You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/p__Paperlibrary__Random__Pr...

1267 lines
1.3 MiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

(self.webpackChunk=self.webpackChunk||[]).push([[337],{89489:function(bn,Wt,z){"use strict";z.d(Wt,{Z:function(){return Me}});var y=z(54476),he=z(59301),de={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},$e=de,pe=z(7657),me=function(se,_e){return he.createElement(pe.Z,(0,y.Z)({},se,{ref:_e,icon:$e}))},ve=he.forwardRef(me),Me=ve},59477:function(bn,Wt,z){"use strict";z.d(Wt,{Z:function(){return Me}});var y=z(54476),he=z(59301),de={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},$e=de,pe=z(7657),me=function(se,_e){return he.createElement(pe.Z,(0,y.Z)({},se,{ref:_e,icon:$e}))},ve=he.forwardRef(me),Me=ve},40001:function(bn,Wt,z){"use strict";z.d(Wt,{Z:function(){return Me}});var y=z(54476),he=z(59301),de={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"},$e=de,pe=z(7657),me=function(se,_e){return he.createElement(pe.Z,(0,y.Z)({},se,{ref:_e,icon:$e}))},ve=he.forwardRef(me),Me=ve},49198:function(bn,Wt,z){"use strict";z.d(Wt,{Z:function(){return Me}});var y=z(54476),he=z(59301),de={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},$e=de,pe=z(7657),me=function(se,_e){return he.createElement(pe.Z,(0,y.Z)({},se,{ref:_e,icon:$e}))},ve=he.forwardRef(me),Me=ve},87169:function(bn,Wt,z){"use strict";z.d(Wt,{Z:function(){return Me}});var y=z(54476),he=z(59301),de={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"},$e=de,pe=z(7657),me=function(se,_e){return he.createElement(pe.Z,(0,y.Z)({},se,{ref:_e,icon:$e}))},ve=he.forwardRef(me),Me=ve},73331:function(bn,Wt,z){"use strict";z.d(Wt,{Z:function(){return Me}});var y=z(54476),he=z(59301),de={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"},$e=de,pe=z(7657),me=function(se,_e){return he.createElement(pe.Z,(0,y.Z)({},se,{ref:_e,icon:$e}))},ve=he.forwardRef(me),Me=ve},15277:function(bn,Wt,z){"use strict";z.d(Wt,{Z:function(){return Me}});var y=z(54476),he=z(59301),de={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"},$e=de,pe=z(7657),me=function(se,_e){return he.createElement(pe.Z,(0,y.Z)({},se,{ref:_e,icon:$e}))},ve=he.forwardRef(me),Me=ve},52671:function(bn,Wt,z){"use strict";z.d(Wt,{Z:function(){return Me}});var y=z(54476),he=z(59301),de={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},$e=de,pe=z(7657),me=function(se,_e){return he.createElement(pe.Z,(0,y.Z)({},se,{ref:_e,icon:$e}))},ve=he.forwardRef(me),Me=ve},8657:function(bn,Wt,z){"use strict";z.d(Wt,{Z:function(){return Me}});var y=z(54476),he=z(59301),de={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},$e=de,pe=z(7657),me=function(se,_e){return he.createElement(pe.Z,(0,y.Z)({},se,{ref:_e,icon:$e}))},ve=he.forwardRef(me),Me=ve},56082:function(bn,Wt,z){"use strict";z.d(Wt,{Z:function(){return Me}});var y=z(54476),he=z(59301),de={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},$e=de,pe=z(7657),me=function(se,_e){return he.createElement(pe.Z,(0,y.Z)({},se,{ref:_e,icon:$e}))},ve=he.forwardRef(me),Me=ve},33853:function(bn,Wt,z){"use strict";z.d(Wt,{Z:function(){return Me}});var y=z(54476),he=z(59301),de={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},$e=de,pe=z(7657),me=function(se,_e){return he.createElement(pe.Z,(0,y.Z)({},se,{ref:_e,icon:$e}))},ve=he.forwardRef(me),Me=ve},12893:function(bn,Wt,z){"use strict";z.d(Wt,{Z:function(){return Me}});var y=z(54476),he=z(59301),de={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"},$e=de,pe=z(7657),me=function(se,_e){return he.createElement(pe.Z,(0,y.Z)({},se,{ref:_e,icon:$e}))},ve=he.forwardRef(me),Me=ve},15075:function(bn,Wt,z){"use strict";z.d(Wt,{Z:function(){return Me}});var y=z(54476),he=z(59301),de={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},$e=de,pe=z(7657),me=function(se,_e){return he.createElement(pe.Z,(0,y.Z)({},se,{ref:_e,icon:$e}))},ve=he.forwardRef(me),Me=ve},32134:function(bn,Wt,z){"use strict";z.d(Wt,{Z:function(){return Me}});var y=z(54476),he=z(59301),de={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"},$e=de,pe=z(7657),me=function(se,_e){return he.createElement(pe.Z,(0,y.Z)({},se,{ref:_e,icon:$e}))},ve=he.forwardRef(me),Me=ve},43531:function(bn,Wt,z){"use strict";z.d(Wt,{Z:function(){return Me}});var y=z(54476),he=z(59301),de={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},$e=de,pe=z(7657),me=function(se,_e){return he.createElement(pe.Z,(0,y.Z)({},se,{ref:_e,icon:$e}))},ve=he.forwardRef(me),Me=ve},61485:function(bn,Wt,z){"use strict";z.d(Wt,{Z:function(){return Me}});var y=z(54476),he=z(59301),de={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"},$e=de,pe=z(7657),me=function(se,_e){return he.createElement(pe.Z,(0,y.Z)({},se,{ref:_e,icon:$e}))},ve=he.forwardRef(me),Me=ve},47472:function(bn,Wt,z){"use strict";z.d(Wt,{Z:function(){return Me}});var y=z(54476),he=z(59301),de={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"},$e=de,pe=z(7657),me=function(se,_e){return he.createElement(pe.Z,(0,y.Z)({},se,{ref:_e,icon:$e}))},ve=he.forwardRef(me),Me=ve},87395:function(bn,Wt,z){"use strict";z.d(Wt,{Z:function(){return Me}});var y=z(54476),he=z(59301),de={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"},$e=de,pe=z(7657),me=function(se,_e){return he.createElement(pe.Z,(0,y.Z)({},se,{ref:_e,icon:$e}))},ve=he.forwardRef(me),Me=ve},3706:function(){"use strict"},96772:function(){"use strict"},50718:function(bn,Wt){"use strict";Wt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},78681:function(bn,Wt){"use strict";Wt.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"}},11961:function(bn,Wt,z){"use strict";var y=z(59301),he=Object.defineProperty,de=Object.getOwnPropertySymbols,$e=Object.prototype.hasOwnProperty,pe=Object.prototype.propertyIsEnumerable,me=(ge,se,_e)=>se in ge?he(ge,se,{enumerable:!0,configurable:!0,writable:!0,value:_e}):ge[se]=_e,ve=(ge,se)=>{for(var _e in se||(se={}))$e.call(se,_e)&&me(ge,_e,se[_e]);if(de)for(var _e of de(se))pe.call(se,_e)&&me(ge,_e,se[_e]);return ge};const Me=ge=>React.createElement("svg",ve({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},ge),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"})));Wt.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48Y2lyY2xlIGZpbGw9IiNGQ0IwNDEiIGN4PSI3IiBjeT0iNyIgcj0iNyIvPjxwYXRoIGQ9Ik03LjUzMSA5LjYzOGEuNjE2LjYxNiAwIDEgMS0xLjIzMSAwdi0uMDJhLjYxNi42MTYgMCAxIDEgMS4yMzEgMHYuMDJabTAtMi4yNWEuNjE2LjYxNiAwIDEgMS0xLjIzMSAwVjQuMTE3YS42MTYuNjE2IDAgMSAxIDEuMjMxIDB2My4yNzNaIiBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L2c+PC9zdmc+"},45936: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 bn={},Wt="5.0",z={},y=null,he=!1,de=!1,$e=null,pe=!1,me=null,ve=null,Me=0;Me<arguments.length;Me++){var ge=arguments[Me];if(ge!==null)switch(typeof ge){case"number":Wt=ge.toFixed(1);break;case"string":ge.match(new RegExp("^[0-9]\\.[0-9]+$"))?Wt=ge:$e=ge;break;case"object":typeof ge.is3D!="undefined"?y=ge:z=ge;break;case"boolean":he=ge,de=!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},z.material_id!==void 0&&!de&&(he=!0)),$e!==null&&z.id===void 0&&(z.id=$e);var se="",_e="",Ae=!1,tt=null,je=null,Te=null,Ce=!1,Se=null,Pe=null,Ye=null,ct=null,Be=null;z.height!==void 0&&(z.height=Math.round(z.height)),z.width!==void 0&&(z.width=Math.round(z.width));var Oe=function(Ee){return parseFloat(Ee)>4?parseFloat(Ee):5};bn.setHTML5Codebase=function(Ee,ot){ve=Ee,Bt(Ee,ot)},bn.setJavaCodebase=bn.setJavaCodebaseVersion=bn.isCompiledInstalled=bn.setPreCompiledScriptPath=bn.setPreCompiledResourcePath=function(){},bn.setHTML5CodebaseVersion=function(Ee,ot){var qe=parseFloat(Ee);if(qe!==NaN&&qe<5){console.log("The GeoGebra HTML5 codebase version "+qe+" is deprecated. Using version latest instead.");return}me=Ee,ye(Ee,ot)},bn.getHTML5CodebaseVersion=function(){return je},bn.getParameters=function(){return z},bn.setFontsCSSURL=function(Ee){ct=Ee},bn.setGiacJSURL=function(Ee){},bn.setJNLPFile=function(Ee){se=Ee},bn.setJNLPBaseDir=function(Ee){},bn.inject=function(){function Ee(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var ot="auto",qe=z.id,zt,ht=!1,lt=0;lt<arguments.length;lt++){var rt=arguments[lt];typeof rt=="string"?(rt=rt.toLowerCase(),rt.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?ot=rt:qe=arguments[lt]):typeof rt=="boolean"?ht=rt:rt instanceof HTMLElement&&(zt=rt)}on();function on(){if(!pe){setTimeout(on,200);return}ot=Mt(ot);var kt=zt||document.getElementById(qe);if(!kt){console.log("possibly bug on ajax loading? ");return}if(bn.removeExistingApplet(kt,!1),z.width===void 0&&kt.clientWidth&&(z.width=kt.clientWidth),z.height===void 0&&kt.clientHeight&&(z.height=kt.clientHeight),!(z.width&&z.height)&&ot==="html5"&&(delete z.width,delete z.height),tt=ot,ot==="screenshot")Ne(kt,z);else{var ae=!1;z.hasOwnProperty("playButton")&&z.playButton||z.hasOwnProperty("clickToLoad")&&z.clickToLoad?ae=!0:z.hasOwnProperty("playButtonAutoDecide")&&z.playButtonAutoDecide&&(ae=(!Re()||Ee())&&Ke()),ae?(tt="screenshot",mt(kt,z,ht,ot)):et(kt,z,ht)}}};function Re(){try{return window.self!==window.top}catch(Ee){return!0}}function Ke(){return z.hasOwnProperty("screenshotGenerator")&&z.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}bn.getViews=function(){return y},bn.isJavaInstalled=function(){return!1};var vt=function(Ee){var ot=function(lt){var rt=JSON.parse(lt),on=function(re){return re.type=="G"||re.type=="E"},kt=rt.elements?rt.elements.filter(on)[0]:rt;if(!kt||!kt.url){qe();return}z.fileName=kt.url,it(kt.settings||{}),y.is3D=!0;var ae="https://www.geogebra.org/images/";bn.setPreviewImage(Se||kt.previewUrl,ae+"GeoGebra_loading.png",ae+"applet_play.png"),Ee()},qe=function(){z.onError&&z.onError(),jt("Error: Fetching material (id "+z.material_id+") failed.",z)},zt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",ht="/materials/"+z.material_id+"?scope=basic";Qe("https://"+zt+"/api/proxy.php?path="+encodeURIComponent(ht),ot,qe)};function it(Ee){var ot=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(qe){Ee[qe]=!!Ee[qe]}),ot.forEach(function(qe){z[qe]===void 0&&Ee[qe]!==void 0&&(z[qe]=Ee[qe])}),z.showToolBarHelp===void 0&&(z.showToolBarHelp=z.showToolBar)}function Qe(Ee,ot,qe){var zt=new XMLHttpRequest;zt.open("GET",Ee),zt.onload=function(){ot(zt.responseText)},zt.onerror=qe,zt.send()}bn.isHTML5Installed=function(){return!0},bn.getLoadedAppletType=function(){return tt},bn.setPreviewImage=function(Ee,ot,qe){Se=Ee,Pe=ot,Ye=qe},bn.removeExistingApplet=function(Ee,ot){var qe;typeof Ee=="string"&&(Ee=document.getElementById(Ee)),tt=null;var zt=null;for(qe=0;qe<Ee.childNodes.length;qe++){var ht=Ee.childNodes[qe],lt=ht.className;lt==="applet_screenshot"?ot?(ht.style.display="block",tt="screenshot"):ht.style.display="none":lt!=="applet_scaler prerender"&&(Ee.removeChild(ht),zt=lt&&lt.indexOf("appletParameters")!=-1?ht.id:null,qe--)}var rt=z.id!==void 0?z.id:zt,on=window[rt];on&&typeof on.getBase64=="function"&&(on.remove(),window[rt]=null)},bn.refreshHitPoints=function(){if(Oe(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Ee=bn.getAppletObject();return Ee&&typeof Ee.recalculateEnvironments=="function"?(Ee.recalculateEnvironments(),!0):!1},bn.startAnimation=function(){var Ee=bn.getAppletObject();return Ee&&typeof Ee.startAnimation=="function"?(Ee.startAnimation(),!0):!1},bn.stopAnimation=function(){var Ee=bn.getAppletObject();return Ee&&typeof Ee.stopAnimation=="function"?(Ee.stopAnimation(),!0):!1},bn.getAppletObject=function(){var Ee=z.id!==void 0?z.id:"ggbApplet";return window[Ee]},bn.resize=function(){};var ut=function(Ee,ot,qe){var zt=document.createElement("param");zt.setAttribute("name",ot),zt.setAttribute("value",qe),Ee.appendChild(zt)},be=function(Ee){return Ee&&Ee!=="false"},et=function(Ee,ot,qe){Oe(je)<=4.2&&(qe=!0);var zt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==je||ggbHTML5LoadedCodebaseIsWebSimple&&!Ce)&&(zt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var ht=document.createElement("div");ht.classList.add("appletParameters","notranslate");var lt=ot.width,rt=ot.height;if(ot.disableAutoScale=ot.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():ot.disableAutoScale,ot.width!==void 0)if(Oe(je)<=4.4)be(ot.showToolBar)&&(ot.height-=7),be(ot.showAlgebraInput)&&(ot.height-=37),ot.width<605&&be(ot.showToolBar)&&(ot.width=605,lt=605);else{var on=100;(be(ot.showToolBar)||be(ot.showMenuBar))&&(ot.hasOwnProperty("customToolBar")&&(ot.customToolbar=ot.customToolBar),on=be(ot.showMenuBar)?245:155),lt<on&&(ot.width=on,lt=on)}ht.style.border="none",ht.style.display="inline-block";for(var kt in ot)ot.hasOwnProperty(kt)&&kt!=="appletOnLoad"&&ht.setAttribute("data-param-"+kt,ot[kt]);ct&&ht.setAttribute("data-param-fontscssurl",ct),bn.resize=function(){GGBAppletUtils.responsiveResize(Ee,ot)},window.addEventListener("resize",function(ft){bn.resize()});var ae=typeof ot.appletOnLoad=="function"?ot.appletOnLoad:function(){};if(!qe&&ot.width!==void 0){ot.hasOwnProperty("showSplash")||ht.setAttribute("data-param-showSplash","false");var re=Ee.querySelector(".applet_scaler.prerender"),te=re!==null;if(te)var ie=re.querySelector(".ggb_preview");else{var ie=nt(lt,rt,ot.borderColor,!1);re=document.createElement("div"),re.className="applet_scaler",re.style.position="relative",re.style.display="block",re.style.width=lt+"px",re.style.height=rt+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(re,"66%"),Oe(je)>=5?(ot.appletOnLoad=function(ft){var Pt=Ee.querySelector(".ggb_preview");Pt&&Pt.parentNode.removeChild(Pt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(re),window.GGBT_wsf_view&&$(window).trigger("resize"),ae(ft)},te||re.appendChild(ie)):ht.appendChild(ie),re.appendChild(ht),te||Ee.appendChild(re),setTimeout(function(){bn.resize()},1)}else{var ce=document.createElement("div");ce.className="applet_scaler",ce.style.position="relative",ce.style.display="block",ce.appendChild(ht),Ee.appendChild(ce),ot.appletOnLoad=function(ft){bn.resize(),ae(ft)}}function ne(ft,Pt){Pt&&typeof Pt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(ft,Pt.appletOnLoad):renderGGBElement(ft),jt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Pt)}function le(ft,Pt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:ft,params:Pt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Le){ne(Le.article,Le.params)}),html5AppletsToProcess=null)},Oe(je)<5&&(ft.className+=" geogebraweb")):ne(ft,Pt)}if(zt){scriptLoadStarted=!0;for(var Ie=0;Ie<ht.childNodes.length;Ie++){var bt=ht.childNodes[Ie].tagName;bt==="TABLE"&&(ht.removeChild(ht.childNodes[Ie]),Ie--)}if(ggbHTML5LoadedScript!==null){var Ue=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Ue!=null&&Ue.parentNode.removeChild(Ue)}var He=document.createElement("script"),at=function(){le(ht,ot)};He.src=_e+Te,ggbHTML5LoadedCodebaseIsWebSimple=Ce,ggbHTML5LoadedCodebaseVersion=je,ggbHTML5LoadedScript=He.src,jt("GeoGebra HTML5 codebase loaded: '"+_e+"'.",ot),!ve&&(!me||me=="5.0")?(Ce?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),at()):_e.requirejs?__webpack_require__.e(2667).then(function(){var ft=[__webpack_require__(72667)];at.apply(null,ft)}.bind(this)).catch(__webpack_require__.oe):(He.onload=at,Ee.appendChild(He))}else le(ht,ot);ot.height=rt,ot.width=lt},Ne=function(Ee,ot,qe){var zt=nt(ot.width,ot.height,ot.borderColor,qe),ht=document.createElement("div");ht.style.position="relative",ht.style.display="block",ht.style.width=ot.width+"px",ht.style.height=ot.height+"px",ht.className="applet_screenshot applet_scaler"+(qe?" applet_screenshot_play":""),ht.appendChild(zt);var lt=GGBAppletUtils.getScale(ot,Ee,qe);qe?(Ee.appendChild(Ze()),window.GGBT_wsf_view||(Ee.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(ht,"66%"),Ee.appendChild(ht),lt!==1&&!isNaN(lt)&&(GGBAppletUtils.scaleElement(ht,lt),ht.style.width=ot.width+"px",ht.style.height=ot.height+"px",ht.parentNode.style.width=ot.width*lt+"px",ht.parentNode.style.height=ot.height*lt+"px"),bn.resize=function(){ue(Ee,zt,ht,qe)},window.addEventListener("resize",function(rt){bn.resize()}),bn.resize()};function ue(Ee,ot,qe,zt){if(Ee.contains(ot)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ee.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Ee)}var ht=GGBAppletUtils.getScale(z,Ee,zt);qe.parentNode!==null&&(!isNaN(ht)&&ht!==1?(GGBAppletUtils.scaleElement(qe,ht),qe.parentNode.style.width=z.width*ht+"px",qe.parentNode.style.height=z.height*ht+"px"):(GGBAppletUtils.scaleElement(qe,1),qe.parentNode.style.width=z.width+"px",qe.parentNode.style.height=z.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Ee),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}bn.onExitFullscreen=function(Ee,ot){ot.appendChild(Ee)};var mt=function(Ee,ot,qe,zt){Ne(Ee,ot,!0);for(var ht=function(){var on=[];for(rt=0;rt<Ee.childNodes.length;rt++)on.push(Ee.childNodes[rt]);if(window.GGBT_wsf_view){var kt=window.GGBT_wsf_view.renderFullScreen(Ee,ot.id),ae=document.getElementById("fullscreencontainer"),re=jQuery(Ee).find(".fullscreencontent");re.length>0?(kt.remove(),re.attr("id","fullscreencontent").show(),jQuery(ae).append(re),window.dispatchEvent(new Event("resize"))):et(kt,ot,!1),window.GGBT_wsf_view.launchFullScreen(ae)}else tt=zt,et(Ee,ot,!1);if(!window.GGBT_wsf_view)for(rt=0;rt<on.length;rt++)Ee.removeChild(on[rt])},lt=Ee.getElementsByClassName("ggb_preview_play"),rt=0;rt<lt.length;rt++)lt[rt].addEventListener("click",ht,!1),lt[rt].addEventListener("ontouchstart",ht,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Ee),Ke()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Ze=function(){var Ee=document.createElement("div");if(Ee.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var ot='.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");}',qe=document.createElement("style");qe.styleSheet?qe.styleSheet.cssText=ot:qe.appendChild(document.createTextNode(ot)),document.getElementsByTagName("head")[0].appendChild(qe)}return Ee},nt=function(Ee,ot,qe,zt){var ht=document.createElement("div");ht.className="ggb_preview",ht.style.position="absolute",ht.style.zIndex="90",ht.style.width=Ee-2+"px",ht.style.height=ot-2+"px",ht.style.top="0px",ht.style.left="0px",ht.style.overflow="hidden",ht.style.backgroundColor="white";var lt="lightgrey";qe!==void 0&&(qe==="none"?lt="transparent":lt=qe),ht.style.border="1px solid "+lt;var rt=document.createElement("img");if(rt.style.position="relative",rt.style.zIndex="1000",rt.style.top="-1px",rt.style.left="-1px",Se!==null&&rt.setAttribute("src",Se),rt.style.opacity=.7,Pe!==null){var on,kt,ae;if(!zt){on=document.createElement("img"),on.style.position="absolute",on.style.zIndex="1001",on.style.opacity=1,rt.style.opacity=.3,kt=360,kt>Ee/4*3&&(kt=Ee/4*3),ae=kt/5.8,on.setAttribute("src",Pe),on.setAttribute("width",kt),on.setAttribute("height",ae);var re=(Ee-kt)/2,te=(ot-ae)/2;on.style.left=re+"px",on.style.top=te+"px",ht.appendChild(on)}}return ht.appendChild(rt),ht},Mt=function(Ee){return Ee=Ee.toLowerCase(),Ee==="html5"||Ee==="screenshot"?Ee:"html5"},Fe=["web","webSimple","web3d","tablet","tablet3d","phone"],ye=function(Ee,ot){if(je=Ee,ot){Bt(je,!0);return}var qe=!he;if(qe){var zt=Oe(je);!isNaN(zt)&&zt<4.4&&(qe=!1)}var ht,lt;window.location.protocol.substr(0,4)==="http"?ht=window.location.protocol:ht="http:";var rt=je.indexOf("//");rt>0?lt=je:rt===0?lt=ht+je:lt="https://www.geogebra.org/apps/5.2.814.0/";for(var on in Fe)if(je.slice(Fe[on].length*-1)===Fe[on]||je.slice((Fe[on].length+1)*-1)===Fe[on]+"/"){Bt(lt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&qe&&!y.is3D&&!y.AV&&!y.SV&&!y.CV&&!y.EV2&&!y.CP&&!y.PC&&!y.DA&&!y.FI&&!y.PV&&!be(z.showToolBar)&&!be(z.showMenuBar)&&!be(z.showAlgebraInput)&&!be(z.enableRightClick)&&(!z.appName||z.appName=="classic")?lt+="webSimple/":lt+="web3d/",Bt(lt,!1)},Bt=function(Ee,ot){if(Ee.requirejs){_e=Ee;return}Ee.slice(-1)!=="/"&&(Ee+="/"),_e=Ee,ot===null&&(ot=Ee.indexOf("http")===-1),Ae=ot,Te="web.nocache.js",Ce=!1;var qe=_e.split("/");qe.length>1&&(!ot&&qe[qe.length-2]==="webSimple"?(Te="webSimple.nocache.js",Ce=!0):Fe.indexOf(qe[qe.length-2])>=0&&(Te=qe[qe.length-2]+".nocache.js")),qe=Ee.split("/"),je=qe[qe.length-3],je.substr(0,4)==="test"?je=je.substr(4,1)+"."+je.substr(5,1):(je.substr(0,3)==="war"||je.substr(0,4)==="beta")&&(je="5.0");var zt=parseFloat(je);zt!==NaN&&zt<5&&Ee.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+zt+" is deprecated. Using version latest instead."),ye("5.0",ot))},jt=function(Ee,ot){window.console&&window.console.log&&(!ot||typeof ot.showLogging=="undefined"||ot.showLogging&&ot.showLogging!=="false")&&console.log(Ee)};z.material_id!==void 0?vt(Lt):Lt();function Lt(){var Ee=Wt;me!==null?Ee=me:parseFloat(Ee)<5&&(Ee="5.0"),ye(Ee,!1),ve!==null&&Bt(ve,Ae),pe=!0}return bn},GGBAppletUtils=function(){"use strict";function bn(){return window.GGBT_wsf_edit!==void 0}function Wt(pe,me){me!=1?(pe.style.transformOrigin="0% 0% 0px",pe.style.webkitTransformOrigin="0% 0% 0px",pe.style.transform="scale("+me+","+me+")",pe.style.webkitTransform="scale("+me+","+me+")",pe.style.maxWidth="initial",pe.querySelector(".ggb_preview")!==null&&(pe.querySelector(".ggb_preview").style.maxWidth="initial"),pe.querySelectorAll(".ggb_preview img")[0]!==void 0&&(pe.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),pe.querySelectorAll(".ggb_preview img")[1]!==void 0&&(pe.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(pe.style.transform="none",pe.style.webkitTransform="none")}function z(pe,me,ve,Me,ge,se){var _e=null;if(se!=null&&se!="")for(var Ae=pe.parentNode;Ae!=null;)if((" "+Ae.className+" ").indexOf(" "+se+" ")>-1){_e=Ae;break}else Ae=Ae.parentNode;var tt=0,je=0,Te=0,Ce=0,Se=0,Pe=0,Ye=0;if(_e)tt=_e.offsetWidth,je=Math.max(Me?_e.offsetWidth:0,_e.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(tt=Math.min(window.innerWidth,document.documentElement.clientWidth),je=Math.min(window.innerHeight,document.documentElement.clientHeight),Te=tt):(tt=window.innerWidth,je=window.innerHeight,Te=window.innerWidth),pe){var ct=pe.getBoundingClientRect();ct.left>0&&ct.left<=tt&&(ge===void 0||!ge)&&(document.dir==="rtl"?(Se=tt-ct.width-ct.left,Pe=Te<=480?10:30):(Pe=ct.left,Se=Te<=480?10:30),Ce=Pe+Se)}if(pe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var Be=pe.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ce=40,Ye=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ce=0,Ye=40)}}return pe&&((ve===void 0||!ve)&&me>0&&me+Ce<tt?tt=me:tt-=Ce,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ve===void 0||!ve)&&(je-=Ye)),{width:tt,height:je}}function y(pe,me,ve,Me,ge){if(pe.isScreenshoGenerator)return 1;var se=Me!==void 0&&Me,_e=pe.noScaleMargin!=null&&pe.noScaleMargin,Ae=function(Be){return Be&&Be!=="false"},tt=Ae(pe.autoHeight),je=z(me,pe.width,ve,tt,se&&window.GGBT_wsf_view||_e,ge),Te=parseInt(je.width),Ce=pe.width,Se=pe.height;if(Ce===void 0){var Pe=me.querySelector(".appletParameters");Pe&&(Ce=Pe.offsetWidth,Se=Pe.offsetHeight)}var Ye=Te/Ce,ct=se?1:je.height/Se;return ve!==void 0&&!ve&&(Ye=Math.min(1,Ye),ct=Math.min(1,ct)),Math.min(Ye,ct)}function he(pe,me,ve){var Me=1,ge,se=!1;if(pe.hasOwnProperty("allowUpscale")&&(se=pe.allowUpscale),pe.hasOwnProperty("scale")&&(Me=parseFloat(pe.scale),(isNaN(Me)||Me===null||Me===0)&&(Me=1),Me>1&&(se=!0)),me&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(se=!0),!(pe.hasOwnProperty("disableAutoScale")&&pe.disableAutoScale))ge=y(pe,me,se,ve,pe.scaleContainerClass);else return Me;return se&&(!pe.hasOwnProperty("scale")||Me===1)?ge:Math.min(Me,ge)}function de(pe){var me=Math.min(window.innerWidth,document.documentElement.clientWidth),ve=Math.min(window.innerHeight,document.documentElement.clientHeight),Me=pe.getBoundingClientRect(),ge=(me-Me.width)/2,se=(ve-Me.height)/2;se<0&&(se=0),pe.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ge<40?pe.style.left="40px":pe.style.left=ge+"px",pe.style.top=se+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(se<40?pe.style.top="40px":pe.style.top=se+"px",pe.style.left=ge+"px")}function $e(pe,me){var ve=pe.querySelector(".appletParameters");if(ve){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(me.id!==ve.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(pe)}if(ve.parentElement&&/fullscreen/.test(ve.parentElement.className))return;var Me=he(me,pe);bn()&&ve.setAttribute("data-param-scale",Me);for(var ge=null,se=0;se<pe.childNodes.length;se++)if(pe.childNodes[se].className!==void 0&&pe.childNodes[se].className.match(/^applet_scaler/)){ge=pe.childNodes[se];break}if(ge!==null&&ge.querySelector(".noscale")!==null)return;var _e=me.id!==void 0?me.id:"ggbApplet",Ae=window[_e];(Ae==null||!Ae.recalculateEnvironments)&&ge!==null&&!ge.className.match(/fullscreen/)&&(ge.parentNode.style.transform="",!isNaN(Me)&&Me!==1?(ge.parentNode.style.width=me.width*Me+"px",ge.parentNode.style.height=me.height*Me+"px",Wt(ge,Me)):(Wt(ge,1),ge.parentNode.style.width=me.width+"px",ge.parentNode.style.height=me.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&de(pe),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(ve).parents(".content-added-content"))}}return{responsiveResize:$e,isFlexibleWorksheetEditor:bn,positionCenter:de,getScale:he,scaleElement:Wt}}();__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 bn=n.location.search;return bn.indexOf(J)!=-1||bn.indexOf(K)!=-1}function q(bn,Wt){}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(bn){var Wt=s[L].bindings;s[L].bindings=function(){for(var z=Wt?Wt():{},y=bn[webModule.__softPermutationId],he=O;he<y.length;he++){var de=y[he];z[de[O]]=de[P]}return z}};var t;function u(){return v(),t}function v(){if(!t){var bn=o.createElement(Q);if(bn.id=L,bn.style.cssText=R+S,bn.tabIndex=-1,o.body.appendChild(bn),t=bn.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Wt=document.compatMode==U?V:W;t.write(Wt+X),t.close()}}}function w(bn){function Wt(y){function he(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var de=he();if(de){y();return}function $e(){if(!de){if(!he())return;de=!0,y(),o.removeEventListener&&o.removeEventListener(Z,$e,!1),pe&&clearInterval(pe)}}o.addEventListener&&o.addEventListener(Z,$e,!1);var pe=setInterval(function(){$e()},$)}function z(y){var he=u(),de=he.body,$e=he.createElement(_);$e.language=ab,$e.crossOrigin=W,$e.src=y,webModule.__errFn&&($e.onerror=function(){webModule.__errFn(L,new Error(bb+y))}),de.appendChild($e)}Wt(function(){z(bn)})}webModule.__startLoadingFragment=function(bn){return C(bn)},webModule.__installRunAsyncCode=function(bn){var Wt=u(),z=Wt.body,y=Wt.createElement(_);y.language=ab,y.text=bn,z.appendChild(y),z.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(bn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(bn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(bn){var Wt=c[bn];return Wt==null?null:Wt},r=d,webModule.__errFn=e}function B(){function bn(pe){var me=pe.lastIndexOf(rb);me==-1&&(me=pe.length);var ve=pe.indexOf(sb);ve==-1&&(ve=pe.length);var Me=pe.lastIndexOf(tb,Math.min(ve,me));return Me>=O?pe.substring(O,Me+P):W}function Wt(pe){if(!pe.match(/^\w+:\/\//)){var me=o.createElement(ub);me.src=pe+vb,pe=bn(me.src)}return pe}function z(){var pe=__gwt_getMetaProperty(wb);return pe!=null?pe:W}function y(){for(var pe=o.getElementsByTagName(_),me=O;me<pe.length;++me)if(pe[me].src.indexOf(xb)!=-1)return bn(pe[me].src);return W}function he(){var pe=o.getElementsByTagName(yb);return pe.length>O?pe[pe.length-P].href:W}function de(){var pe=o.location;return pe.href==pe.protocol+zb+pe.host+pe.pathname+pe.search+pe.hash}var $e=z();return $e==W&&($e=y()),$e==W&&($e=he()),$e==W&&de()&&($e=bn(o.location.href)),$e=Wt($e),$e}function C(bn){return bn.match(/^\//)||bn.match(/^[a-zA-Z]+:\/\//)?bn:webModule.__moduleBase+bn}function D(){var bn=[],Wt=O,z=[],y=[];function he(pe){var me=y[pe](),ve=z[pe];if(me in ve)return me;var Me=[];for(var ge in ve)Me[ve[ge]]=ge;throw r&&r(pe,Me,me),null}if(__gwt_isKnownPropertyValue=function(pe,me){return me in z[pe]},webModule.__getPropMap=function(){var pe={};for(var me in z)z.hasOwnProperty(me)&&(pe[me]=he(me));return pe},webModule.__computePropValue=he,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var de;try{de=Cb;var $e=de.indexOf(Db);$e!=-1&&(Wt=parseInt(de.substring($e+P),$),de=de.substring(O,$e))}catch(pe){}return webModule.__softPermutationId=Wt,C(de+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})()},8240:function(bn,Wt,z){"use strict";z.d(Wt,{Ax:function(){return $e},Ds:function(){return pe},KI:function(){return ve},SI:function(){return de},f1:function(){return he}});var y=z(35783);function he(Me){let ge=!0;if(Me.length>0){for(let se=0;se<Me.length;se++)if(Me[se].compile_success==0||!Me[se].compile_success){ge=!1;break}}else ge=!1;return ge}function de(Me,ge=""){let se=[];for(let _e=0;_e<Me.length;_e++){let Ae=Me[_e],tt=ge?`${ge}/${Ae.name}`:`${Ae.name}`;se.push({title:Ae.name,type:Ae.type,isLeaf:Ae.type!=="tree",key:tt})}return se}function $e(Me,ge,se){for(let _e=0;_e<Me.length;_e++){let Ae=Me[_e];if(Ae.key===ge){Ae.children=se;break}Ae.children&&$e(Ae.children,ge,se)}return Me}function pe(Me,ge,se){let _e;return function(){let Ae=this,tt=arguments,je=function(){_e=null,se||Me.apply(Ae,tt)},Te=se&&!_e;clearTimeout(_e),_e=setTimeout(je,ge),Te&&Me.apply(Ae,tt)}}const me=!0,ve=y.Z.API_SERVER},99050:function(bn,Wt,z){"use strict";z.d(Wt,{Z:function(){return je}});var y=z(7939),he=z(59301),de=Object.defineProperty,$e=Object.defineProperties,pe=Object.getOwnPropertyDescriptors,me=Object.getOwnPropertySymbols,ve=Object.prototype.hasOwnProperty,Me=Object.prototype.propertyIsEnumerable,ge=(Te,Ce,Se)=>Ce in Te?de(Te,Ce,{enumerable:!0,configurable:!0,writable:!0,value:Se}):Te[Ce]=Se,se=(Te,Ce)=>{for(var Se in Ce||(Ce={}))ve.call(Ce,Se)&&ge(Te,Se,Ce[Se]);if(me)for(var Se of me(Ce))Me.call(Ce,Se)&&ge(Te,Se,Ce[Se]);return Te},_e=(Te,Ce)=>$e(Te,pe(Ce)),Ae=(Te,Ce)=>{var Se={};for(var Pe in Te)ve.call(Te,Pe)&&Ce.indexOf(Pe)<0&&(Se[Pe]=Te[Pe]);if(Te!=null&&me)for(var Pe of me(Te))Ce.indexOf(Pe)<0&&Me.call(Te,Pe)&&(Se[Pe]=Te[Pe]);return Se},tt=(Te,Ce,Se)=>new Promise((Pe,Ye)=>{var ct=Re=>{try{Oe(Se.next(Re))}catch(Ke){Ye(Ke)}},Be=Re=>{try{Oe(Se.throw(Re))}catch(Ke){Ye(Ke)}},Oe=Re=>Re.done?Pe(Re.value):Promise.resolve(Re.value).then(ct,Be);Oe((Se=Se.apply(Te,Ce)).next())});const je=Te=>{var Ce=Te,{children:Se}=Ce,Pe=Ae(Ce,["children"]);const[Ye,ct]=(0,he.useState)(!1);return he.createElement(y.ZP,_e(se({},Pe),{loading:Ye,onClick:Be=>tt(void 0,null,function*(){try{ct(!0),yield Pe.onClick(Be),ct(!1)}catch(Oe){console.error(Oe),ct(!1)}})}),Se)}},39794:function(bn,Wt,z){"use strict";z.d(Wt,{Z:function(){return tt}});var y=z(59301),he=z(6767),de=z(37568),$e={codeBox:"codeBox___WpkVl"},pe=z(92310),me=z.n(pe),ve=Object.defineProperty,Me=(je,Te,Ce)=>Te in je?ve(je,Te,{enumerable:!0,configurable:!0,writable:!0,value:Ce}):je[Te]=Ce,ge=(je,Te,Ce)=>Me(je,typeof Te!="symbol"?Te+"":Te,Ce),se=(je,Te,Ce)=>new Promise((Se,Pe)=>{var Ye=Oe=>{try{Be(Ce.next(Oe))}catch(Re){Pe(Re)}},ct=Oe=>{try{Be(Ce.throw(Oe))}catch(Re){Pe(Re)}},Be=Oe=>Oe.done?Se(Oe.value):Promise.resolve(Oe.value).then(Ye,ct);Be((Ce=Ce.apply(je,Te)).next())});class _e extends y.Component{constructor(Te){super(Te),ge(this,"canvas"),ge(this,"randomNum",(Ce,Se)=>Math.floor(Math.random()*(Se-Ce)+Ce)),ge(this,"drawPic",()=>{this.randomCode()}),ge(this,"reloadPic",()=>{this.drawPic()}),ge(this,"changeCode",Ce=>{console.log(Ce.target.value,222),this.setState({value:Ce.target.value,showError:!1})}),ge(this,"onVerify",()=>{let Ce;return this.state.value.toLowerCase()!==""&&this.state.value.toLowerCase()!==this.state.code.toLowerCase()?(Ce=!0,he.ZP.error("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u9A8C\u8BC1\u7801"),this.reloadPic()):this.state.value.toLowerCase()===""?(Ce=!0,he.ZP.error("\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801")):this.state.value.toLowerCase()===this.state.code.toLowerCase()&&(Ce=!1),this.setState({showError:Ce}),Ce}),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,Ce){const Se=this.randomNum(Te,Ce),Pe=this.randomNum(Te,Ce),Ye=this.randomNum(Te,Ce);return`rgb(${Se}, ${Pe}, ${Ye})`}drawText(Te,Ce,Se){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 Ye=10,ct=(this.state.contentWidth-40)/(this.state.code.length-1);let Be=Ye;Se>0&&(Be=Ye+Se*ct);let Oe=this.randomNum(this.state.fontSizeMax,this.state.contentHeight-5);Pe>40&&(Oe=40);const Re=this.randomNum(-10,10);Te.translate(Be,Oe),Te.rotate(Re*Math.PI/180),Te.fillText(Ce,0,0),Te.rotate(-Re*Math.PI/180),Te.translate(-Be,-Oe)}drawLine(Te){for(let Ce=0;Ce<1;Ce++)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 Ce=0;Ce<100;Ce++)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 Ce="QWERTYUPLKJHGFDSAZXCVBNMqwertyupkjhgfdsazxcvbnm1234567890";for(let Se=0;Se<this.state.codeLength;Se++){const Pe=Math.floor(Math.random()*57);Te+=Ce[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 Ye=0;Ye<this.state.code.length;Ye++)this.drawText(Pe,this.state.code[Ye],Ye);this.drawLine(Pe),this.drawDot(Pe)})}render(){const{className:Te,width:Ce=300}=this.props;return y.createElement("div",{className:me()($e.codeBox,Te),style:{width:Ce}},y.createElement("aside",null,y.createElement(de.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 Ae=(je,Te)=>{let Ce;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:Se=>Ce=Se})),onOk:()=>se(void 0,null,function*(){if(Ce.onVerify())return Promise.reject();je()})})};var tt=_e},86793:function(bn,Wt,z){"use strict";z.d(Wt,{Z:function(){return ge}});var y=z(59301),he=z(37568),de=z(96599),$e=z(6767),pe={flex:"flex___eLcnP",flex1:"flex1___yUTT7",color666:"color666___TiUhG",error:"error___gTTtv",deleteIcon:"deleteIcon___mnZW1",addIcon:"addIcon___JC5NS"},me=z(62772);const{TextArea:ve}=he.default;class Me extends y.Component{constructor(_e){super(_e),this.state={inputVisible:!1,EditInputIndex:-1}}render(){let{index:_e,onAnswerChange:Ae,addChildAnswer:tt,exerciseIsPublish:je,answers:Te,activeOptionErrorIndex:Ce,flex:Se="0 0 1000px"}=this.props;console.log("----",Te);let{inputVisible:Pe,EditInputIndex:Ye}=this.state;return y.createElement("div",{className:pe.flex},y.createElement("div",{className:`${pe.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((ct,Be)=>y.createElement(y.Fragment,null,Ye!==Be?(ct==null?void 0:ct.length)>0?y.createElement(de.default,{className:"edit-tag",key:ct,closable:!(_e===0&&Be===0),onClose:Oe=>{Oe.preventDefault(),(Te==null?void 0:Te.length)===1&&Be===0?this.props.deleteChildAnswermain(_e,Be):this.props.deleteChildAnswer(_e,Be)}},y.createElement("span",{onDoubleClick:Oe=>{this.setState({EditInputIndex:Be}),Oe.preventDefault()}},ct)):y.createElement(he.default,{defaultValue:ct,style:{width:78,marginRight:8,height:24,verticalAlign:"top"},onBlur:Oe=>{if(Oe.target.value.replaceAll(" ","").length<=0){$e.ZP.info("\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7EAF\u7A7A\u683C");return}Ae(_e,Be,Oe.target.value),this.setState({EditInputIndex:-1,inputVisible:!1})}}):y.createElement(he.default,{defaultValue:ct,style:{width:78,marginRight:8,height:24,verticalAlign:"top"},onBlur:Oe=>{if(Oe.target.value.replaceAll(" ","").length<=0){$e.ZP.info("\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7EAF\u7A7A\u683C");return}Ae(_e,Be,Oe.target.value),this.setState({EditInputIndex:-1,inputVisible:!1})}}))),!Pe&&y.createElement(de.default,{className:"site-tag-plus",onClick:()=>{tt(_e),this.setState({inputVisible:!0})}},y.createElement(me.Z,null)," \u65B0\u589E\u7B54\u6848")))}}var ge=Me},96609:function(bn,Wt,z){"use strict";z.d(Wt,{Z:function(){return me}});var y=z(37639),he={text:"text___FxbAX",wrap:"wrap___UlBQ1",contact:"contact____pUDq",img:"img___BapAv"},de=z(32637),$e=z(59301),me=({type:ve,style:Me})=>{const ge=$e.createElement("div",{className:he.wrap,onClick:se=>{se.preventDefault(),se.stopPropagation()}},$e.createElement("p",null,ve==="shixun"||ve==="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",$e.createElement("br",null),"\u6839\u636E\u5E73\u53F0\u4F7F\u7528\u89C4\u5219\uFF0C\u9700\u8981\u6388\u6743\u624D\u80FD\u4F7F\u7528\u3002",ve==="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"),$e.createElement("div",{className:he.contact},$e.createElement("div",{className:he.img},$e.createElement("img",{src:de,width:"124px",height:"124px"})),$e.createElement("div",{className:"tc font14 mt10",style:{color:"#777A93"}},"\u626B\u4E00\u626B\uFF0C\u83B7\u53D6\u6388\u6743\u7801")));return $e.createElement(y.Z,{content:ge},$e.createElement("span",{className:he.text,style:Me},"\u9AD8\u6D88\u8017"))}},78265:function(bn,Wt,z){"use strict";z.d(Wt,{Z:function(){return _e}});var y=z(59301),he={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},de=z(92310),$e=z.n(de),pe=z(29787),me=z(2859),ve=z(22972),Me=z(68911),ge=(Ae,tt,je)=>new Promise((Te,Ce)=>{var Se=ct=>{try{Ye(je.next(ct))}catch(Be){Ce(Be)}},Pe=ct=>{try{Ye(je.throw(ct))}catch(Be){Ce(Be)}},Ye=ct=>ct.done?Te(ct.value):Promise.resolve(ct.value).then(Se,Pe);Ye((je=je.apply(Ae,tt)).next())}),_e=({data:Ae,className:tt,fullWidth:je,style:Te={},onClose:Ce,onOk:Se,showFullTools:Pe,noAssociationId:Ye})=>{const ct=(0,y.useRef)(null),Be=(0,y.useRef)(null),Oe=(0,y.useRef)(null),Re=(0,y.useRef)(null),[Ke,vt]=(0,y.useState)(!1),[it,Qe]=(0,y.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,y.useEffect)(()=>(Oe.current||(Oe.current=document.createElement("style"),document.head.appendChild(Oe.current)),Ae!=null&&Ae.visible?(document.body.setAttribute("data-custom","y-hidden"),Oe.current.innerHTML=" html { overflow-y: hidden; }",Ae!=null&&Ae.src&&ut()):(document.body.removeAttribute("data-custom"),Oe.current&&(document.head.removeChild(Oe.current),Oe.current=null)),()=>{document.body.removeAttribute("data-custom"),Oe.current&&(document.head.removeChild(Oe.current),Oe.current=null)}),[Ae==null?void 0:Ae.visible]);const ut=()=>ge(void 0,null,function*(){vt(!0),Qe("\u6B63\u5728\u52A0\u8F7D\u4E2D");const ue=yield(0,Me.ZJ)(Ae==null?void 0:Ae.src);ct.current.src="",ct.current.src=ue,ct.current.onload=function(){Ne()},vt(!1),Qe("")}),be=ue=>ge(void 0,null,function*(){vt(!0),Qe("\u6B63\u5728\u4FDD\u5B58\u4E2D");const mt=yield(0,ve.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Ae.title,file:ue.dataUrl}});mt!=null&&mt.id&&!Ye?(yield(0,ve.ZP)(`/api/attachments/${Ae.id}/add_subitem.json`,{method:"post",body:{subitem_id:mt==null?void 0:mt.id,settings:JSON.stringify(ue.state)}})).status===0&&Se():mt!=null&&mt.id&&Se(mt),vt(!1),Qe("")}),et=()=>{const ue=document.querySelector('a[href="https://markerjs.com/"]');ue&&ue.parentNode&&(ue.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(Ze=>{const nt=document.querySelector(Ze.name);nt&&nt.setAttribute("title",Ze.title)})},Ne=()=>{Be.current=new me.hP(ct.current),Be.current.targetRoot=Re.current,Be.current.addEventListener("render",be),Be.current.addEventListener("beforeclose",Ce),Pe&&(Be.current.availableMarkerTypes=Be.current.ALL_MARKER_TYPES,Be.current.uiStyleSettings.redoButtonVisible=!0,Be.current.uiStyleSettings.notesButtonVisible=!0,Be.current.uiStyleSettings.zoomButtonVisible=!0,Be.current.uiStyleSettings.zoomOutButtonVisible=!0,Be.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=Be.current.uiStyleSettings,Be.current.show(),Ae!=null&&Ae.snapshotData&&Be.current.restoreState(Ae.snapshotData),setTimeout(()=>{window.scrollTo(0,0),et()},300)};return y.createElement(y.Fragment,null,(Ae==null?void 0:Ae.visible)&&y.createElement(pe.Z,{spinning:Ke,tip:it,style:{position:"absolute",width:"100vw"}},y.createElement("div",{ref:Re,className:$e()(he.imageDimensions,tt,je?he.fullWidth:""),style:Te},y.createElement("img",{className:he.img,ref:ct}))))}},59641:function(bn,Wt,z){"use strict";var y=z(59301),he=z(50718),de=z(48136),$e=z(9043),pe=z(62957),me=z(59301);const ve=(0,y.forwardRef)(({callback:Me,width:ge,onChange:se,disabled:_e,readOnly:Ae,type:tt="",value:je="",style:Te={}},Ce)=>{const Se=(0,y.useRef)(),Pe=(0,y.useRef)(),[Ye,ct]=(0,y.useState)(0),[Be,Oe]=(0,y.useState)(0),[Re,Ke]=(0,y.useState)(!1),vt=()=>{var be=document.createElement("div");be.innerHTML=Se.current.getValue();var et=be.innerText;return Me&&Me(et),et};(0,y.useImperativeHandle)(Ce,()=>({getData:vt}));const it=be=>{be.preventDefault();const et=be.clientX-Ye,Ne=be.clientY-Be;document.body.onmousemove=ue=>{let mt=ue.clientX-et,Ze=ue.clientY-Ne;const nt=document.getElementsByClassName("markdown-popup-form")[0],Mt=window.innerWidth-nt.offsetWidth,Fe=window.innerHeight-nt.offsetHeight;mt=Math.max(0,Math.min(mt,Mt)),Ze=Math.max(0,Math.min(Ze,Fe)),Qe(ue.clientX,ue.clientY,et,Ne)&&(ct(mt),Oe(Ze))},document.body.onmouseup=function(){document.body.onmousemove=null}},Qe=(be,et,Ne,ue)=>{const mt=document.body.clientHeight,Ze=document.body.clientWidth;return be<20&&Ne>be||be>Ze-20&&Ne<be||et<20&&ue>et||et>mt-20&&ue<et?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};(0,y.useEffect)(()=>{Re&&setTimeout(()=>{const be=document.getElementsByClassName("markdown-popup-form")[0],et=window.innerWidth/2-be.offsetWidth/2,Ne=window.innerHeight/2-be.offsetHeight/2;ct(et),Oe(Ne)},0)},[Re]);const ut=()=>{_e||Ae||Ke(!0)};return me.createElement("div",{style:Te},me.createElement("div",{style:{width:ge||"100%",position:"relative"},className:`${he.Z.mathFillWrap} ${_e||Ae?"cursorDefault":""}`,onClick:()=>ut()},me.createElement("math-field",{disabled:_e,locale:"zh_cn",class:`${he.Z.mathField} ${tt}`,readOnly:Ae,placeholder:"\u8BF7\u8F93\u5165\u516C\u5F0F",ref:Se,style:{width:"100%",fontSize:je?18:14},value:je||""})),me.createElement(pe.default,{maskClosable:!1,centered:!0,width:860,style:{position:"absolute",left:Ye,top:Be},title:me.createElement("div",{style:{cursor:"move"},onMouseDown:it},"\u8F93\u5165\u516C\u5F0F"),open:Re,onOk:()=>{const be=Pe.current.getData();Se.current.setValue(be),se(be),Ke(!1)},onCancel:()=>{Ke(!1)},destroyOnClose:!0,className:"markdown-popup-form"},me.createElement($e.Z,{value:je,ref:Pe,onChange:se,showSaveButton:!1})))});Wt.Z=ve},9043:function(bn,Wt,z){"use strict";var y=z(59301),he=z(77019),de=z(5269),$e=z(31691),pe=z(7939),me=z(56375),ve=z(50718),Me=z(48136),ge=z(59301);const se=(0,y.forwardRef)(({callback:_e,showSaveButton:Ae,value:tt=""},je)=>{const Te=(0,y.useRef)(),Ce=[{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 "}]}]}],Se=[{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=Be=>{Te.current.setValue(Te.current.getValue()+" "+Be.value+" ")},Ye=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:ge.createElement(he.Z,{className:ve.Z.lists,gutter:[10,10]},Ce.map((Be,Oe)=>ge.createElement(de.Z,{flex:"110px",className:ve.Z.item},ge.createElement("div",null,ge.createElement(me.Z,{value:`$$${Be.value}$$`}),Be.name),ge.createElement("div",{className:ve.Z.children},Be.children.map((Re,Ke)=>ge.createElement("div",{key:Ke},ge.createElement("h1",null,Re.name),ge.createElement(he.Z,{gutter:[10,10]},Re.data.map((vt,it)=>ge.createElement(de.Z,{key:it,onClick:()=>Pe(vt),className:ve.Z.diamond},ge.createElement(me.Z,{value:"`$$"+vt.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:ge.createElement(he.Z,{className:ve.Z.lists,gutter:[10,10]},Se.map((Be,Oe)=>ge.createElement(de.Z,{flex:"110px",className:ve.Z.item},ge.createElement("div",null,ge.createElement(me.Z,{value:"`$$"+Be.value+"$$`"}),Be.name),ge.createElement("div",{className:ve.Z.children},Be.children.map((Re,Ke)=>ge.createElement("div",{key:Ke},Re.name&&ge.createElement("h1",null,Re.name),ge.createElement(he.Z,{gutter:[10,10]},Re.data.map((vt,it)=>ge.createElement(de.Z,{key:it,onClick:()=>Pe(vt),className:ve.Z.diamond},ge.createElement(me.Z,{value:"`$$"+vt.value+"$$`"}))))))))))}],ct=()=>{var Be=document.createElement("div");Be.innerHTML=Te.current.getValue();var Oe=Be.innerText;return _e&&_e(Oe),Oe};return(0,y.useImperativeHandle)(je,()=>({getData:ct})),ge.createElement("div",{className:ve.Z.mathWrap},ge.createElement($e.default,{defaultActiveKey:"1",items:Ye}),ge.createElement("math-field",{locale:"zh_cn",className:ve.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:Te,style:{width:800,marginTop:30,fontSize:18}},tt||""),Ae&&ge.createElement("div",{className:ve.Z.button},ge.createElement(pe.ZP,{size:"large",onClick:ct,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Wt.Z=se},71347:function(bn,Wt,z){"use strict";var y=z(59301),he=z(93314),de=z(7939),$e=Object.defineProperty,pe=Object.defineProperties,me=Object.getOwnPropertyDescriptors,ve=Object.getOwnPropertySymbols,Me=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable,se=(je,Te,Ce)=>Te in je?$e(je,Te,{enumerable:!0,configurable:!0,writable:!0,value:Ce}):je[Te]=Ce,_e=(je,Te)=>{for(var Ce in Te||(Te={}))Me.call(Te,Ce)&&se(je,Ce,Te[Ce]);if(ve)for(var Ce of ve(Te))ge.call(Te,Ce)&&se(je,Ce,Te[Ce]);return je},Ae=(je,Te)=>pe(je,me(Te));const tt=({img:je,buttonProps:Te={},styles:Ce={},customText:Se,ButtonText:Pe,ButtonClick:Ye,Buttonclass:ct,ButtonTwo:Be,imgStyles:Oe,loading:Re=!1,className:Ke=""})=>y.createElement("section",{className:`tc animated fadeIn ${Ke}`,style:_e({color:"#999",margin:"100px auto",visibility:Re?"hidden":"visible"},Ce)},y.createElement("img",{src:je||he,style:Ae(_e({},Oe),{pointerEvents:"none",userSelect:"none"})}),y.createElement("p",{className:"mt20 font14"},Se||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),Pe&&y.createElement(de.ZP,_e({className:ct,onClick:Ye},Te),Pe),Be&&Be);Wt.Z=tt},98893:function(bn,Wt,z){"use strict";z.d(Wt,{Z:function(){return ct}});var y=z(59301),he={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",showClose:"showClose___edZQA",embed:"embed___hvpEJ"},de=z(7939),$e=z(70557),pe=z(94871),me=z(25399),ve=z(68911),Me=z(58870),ge=z(71347),se=z(35783),_e=z(25341),Ae=z(59301),tt=Object.defineProperty,je=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,Ce=Object.prototype.propertyIsEnumerable,Se=(Be,Oe,Re)=>Oe in Be?tt(Be,Oe,{enumerable:!0,configurable:!0,writable:!0,value:Re}):Be[Oe]=Re,Pe=(Be,Oe)=>{for(var Re in Oe||(Oe={}))Te.call(Oe,Re)&&Se(Be,Re,Oe[Re]);if(je)for(var Re of je(Oe))Ce.call(Oe,Re)&&Se(Be,Re,Oe[Re]);return Be},Ye=(Be,Oe,Re)=>new Promise((Ke,vt)=>{var it=be=>{try{ut(Re.next(be))}catch(et){vt(et)}},Qe=be=>{try{ut(Re.throw(be))}catch(et){vt(et)}},ut=be=>be.done?Ke(be.value):Promise.resolve(be.value).then(it,Qe);ut((Re=Re.apply(Be,Oe)).next())}),ct=({editOffice:Be="view",data:Oe,issaver:Re,onSaver:Ke,theme:vt,type:it,filename:Qe,monacoEditor:ut,className:be,style:et,close:Ne,onClose:ue,hasMask:mt,disabledDownload:Ze,onImgDimensions:nt,showNodata:Mt,recordInfo:Fe})=>{const[ye,Bt]=(0,y.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[jt,Lt]=(0,y.useState)(""),[Ee,ot]=(0,y.useState)(),qe=window.ENV==="build"?"/react/build":"",zt=location.host.startsWith("localhost")?se.Z.PROXY_SERVER:se.Z.API_SERVER,lt=10*(1024*1024),rt=(0,y.useRef)();Oe!=null&&Oe.startsWith("/api")&&it!=="txt"&&(Oe=se.Z.API_SERVER+Oe);const on=ce=>ce.substring(ce.lastIndexOf("/")+1).split(".").pop();Qe&&ut&&(ut.filename=Qe),(0,y.useEffect)(()=>{var ce,ne;const le=(ne=(ce=document.cookie)==null?void 0:ce.replace(/\s/g,""))==null?void 0:ne.split(";");le==null||le.map(Ie=>{let bt=Ie.split("=");bt[0]==="_educoder_session"&&Lt(bt[1])})},[]),(0,y.useEffect)(()=>{it==="office"&&(Oe.indexOf("bigfilescdn.")>-1||Oe.indexOf("bigfiles1")>-1?ot({url:Oe,fileType:on(Oe),model:Oe.indexOf("model=edit")?"edit":"view"}):Oe.indexOf("coze")>-1?ot({url:Oe,fileType:"doc",model:"view"}):ae())},[it,Oe]);function kt(ce){return Ye(this,null,function*(){ce.data.type==="pdfdata"&&(Ke(ce.data.data),window.removeEventListener("message",kt,!1)),console.log("mess---:",ce.data)})}const ae=()=>Ye(void 0,null,function*(){console.log("data:",Oe);let ce=Oe;Oe.startsWith("http")||(ce=location.origin+ce);let ne=new URL(ce).pathname.split("/").pop();const le=yield(0,Me.gJ)({attachment_id:ne});le.url=zt+le.url,ot(le)}),re=()=>{if(Oe.startsWith("http")||Oe.startsWith("blob:")){te();return}(0,ve.Sv)(Qe||"educoder",Oe,Qe)},te=()=>{Fe&&(0,_e.fc)({id:Fe==null?void 0:Fe.id,watch_type:1,course_id:Fe==null?void 0:Fe.course_id}),(0,ve.Nd)(Qe||"educoder",decodeURIComponent(Oe))};(0,y.useEffect)(()=>(window.addEventListener("message",ie),()=>{window.removeEventListener("message",ie)}),[]);const ie=ce=>{var ne;((ne=ce==null?void 0:ce.data)==null?void 0:ne.type)==="closePop"&&ue()};return Ae.createElement("div",{style:Pe({},et||{}),className:`${mt&&he.bgBlack} ${it?he.wrp:"hide"}`},!!it&&Ne&&Ae.createElement("div",{id:"closePop",className:he.close,ref:rt},!!nt&&Ae.createElement(me.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>rt.current},Ae.createElement("span",{onClick:()=>{ue(),nt()}},Ae.createElement("i",{className:"icon-yulanpizhu"}))),!Ze&&window.parent===window&&Ae.createElement(me.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>rt.current},Ae.createElement("span",{onClick:te},Ae.createElement("i",{className:"icon-quxiaozhiding"}))),Re&&Ae.createElement(me.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>rt.current},Ae.createElement("span",{className:"",onClick:()=>{const ce=document.getElementById("pdfiframe");window.addEventListener("message",kt,!1),setTimeout(()=>{ce.contentWindow.postMessage("getData","*")},300)}},Ae.createElement("i",{className:"icon-baocun"}))),Ae.createElement(me.Z,{title:"\u5173\u95ED",getPopupContainer:()=>rt.current},Ae.createElement("span",{className:"",onClick:()=>{ue()}},Ae.createElement("i",{className:"icon-guanbi1"})))),Ae.createElement("div",{className:`${he[be]} ${be} ${he.monaco} ${it==="txt"?"show":"hide"}`},it==="txt"&&Ae.createElement(Ae.Fragment,null,Ae.createElement(pe.ZP,Pe({},ut)))),it==="audio"&&Ae.createElement("audio",{src:`${(Oe==null?void 0:Oe.indexOf("http://"))>-1||(Oe==null?void 0:Oe.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${Oe}`,autoPlay:!0}),it==="video"&&Ae.createElement(Ae.Fragment,null,(Oe==null?void 0:Oe.indexOf("http"))>-1?Ae.createElement("video",{controls:!0,src:`${Oe}`,autoPlay:!0}):Ae.createElement("video",{controls:!0,src:`data:video/mp4;base64,${Oe}`,autoPlay:!0})),it==="office"&&Ee&&Ae.createElement("iframe",{src:`${qe}/office.html?key=${Ee.key}&url=${btoa(Ee.url)}&callbackUrl=${zt+(Ee.callbackUrl||"")}&fileType=${Ee.fileType}&title=${Ee.title||""}&model=${Be}&officeServer=${se.Z.ONLYOFFICE}&disabledDownload=${!!Ze}`}),it==="html"&&Ae.createElement("iframe",{src:Oe+"&disposition=inline"}),it==="pdf"&&Ae.createElement("iframe",{id:"pdfiframe",src:`${qe}/js/pdf/index.html?filename=${Qe||"educoder.pdf"}&url=${encodeURIComponent(Oe)}&disabledDownload=${!!Ze}&model=${Be}`}),it==="image"&&Ae.createElement("img",{src:`${(Oe==null?void 0:Oe.indexOf("http://"))>-1||(Oe==null?void 0:Oe.indexOf("https://"))>-1?"":"data:image/png;base64,"}${Oe}`}),(it==="other"||it==="download")&&Ae.createElement(Ae.Fragment,null,Mt?Ae.createElement(ge.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:Ae.createElement(de.ZP,{icon:Ae.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:re,disabled:Ze},"\u4E0B\u8F7D")}):Ae.createElement(de.ZP,{type:"primary",size:"middle",onClick:re,disabled:Ze},Ae.createElement($e.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")),it==="flowChart"&&Ae.createElement("div",{className:"embed"},Ae.createElement("iframe",{src:`/drawio/src/main/webapp/viewer.html?id=${Oe||""}&gapi=0&od=0&db=0&gh=0&gl=0`,width:"100%",height:"100%",frameBorder:"0"})))}},63269:function(bn,Wt,z){"use strict";z.d(Wt,{t:function(){return te}});var y=z(59301),he=z(37568),de=z(28284),$e=z(62957),pe=z(77019),me=z(5269),ve=z(4875),Me=z(82326),ge=z(47889),se=z(8831),_e=z(63823),Ae=z(78681),tt=z(6767),je=z(7939),Te=z(29787),Ce=z(24334),Se={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=z(22972),Ye=z(10084),ct=z(32862),Be=z(56102),Oe=z(21667),Re=z(59301),Ke=Object.defineProperty,vt=Object.defineProperties,it=Object.getOwnPropertyDescriptors,Qe=Object.getOwnPropertySymbols,ut=Object.prototype.hasOwnProperty,be=Object.prototype.propertyIsEnumerable,et=(ie,ce,ne)=>ce in ie?Ke(ie,ce,{enumerable:!0,configurable:!0,writable:!0,value:ne}):ie[ce]=ne,Ne=(ie,ce)=>{for(var ne in ce||(ce={}))ut.call(ce,ne)&&et(ie,ne,ce[ne]);if(Qe)for(var ne of Qe(ce))be.call(ce,ne)&&et(ie,ne,ce[ne]);return ie},ue=(ie,ce)=>vt(ie,it(ce)),mt=(ie,ce,ne)=>new Promise((le,Ie)=>{var bt=at=>{try{He(ne.next(at))}catch(ft){Ie(ft)}},Ue=at=>{try{He(ne.throw(at))}catch(ft){Ie(ft)}},He=at=>at.done?le(at.value):Promise.resolve(at.value).then(bt,Ue);He((ne=ne.apply(ie,ce)).next())}),nt=({buttonProps:ie,buttonText:ce,form:ne,hackIdentifier:le="",answerKey:Ie,data:bt})=>{const[Ue,He]=(0,y.useState)(!1),[at,ft]=(0,y.useState)(!1),[Pt,Le]=(0,y.useState)(!1),[We,Nt]=(0,y.useState)({}),[Qt,un]=(0,y.useState)(""),[rn,Rt]=(0,y.useState)(""),ln=(0,y.useRef)(le),Ht=(0,y.useRef)(""),ze=(0,y.useRef)(!1);(0,y.useEffect)(()=>{Pt&&Ve()},[Pt]),(0,y.useEffect)(()=>()=>{sessionStorage.removeItem("projectFill")},[]);const yt=()=>new Date().getTime(),Kt=bt==null?void 0:bt.code,tn=()=>{var dt,Ot;let Gt=Kt?bt==null?void 0:bt.code:(dt=ne.getFieldValue("hack_codes"))==null?void 0:dt.code,mn=Kt?bt==null?void 0:bt.answer_content:ne.getFieldValue(Ie),An=Kt?bt==null?void 0:bt.input:(Ot=ne.getFieldValue("hack_sets"))==null?void 0:Ot.input;mn==null||mn.forEach(hn=>{const Fn=hn.value||hn.answer_text||"";Gt=Gt.replace(/(@▁@|@▁▁@)/,Fn)}),Rt(An),un(Gt),Nt({}),Le(!0)},Ve=()=>mt(void 0,null,function*(){var dt,Ot,Gt,mn;const An=yt(),hn=Kt?bt==null?void 0:bt.time_limit:(dt=ne.getFieldsValue())==null?void 0:dt.hack.time_limit,Fn=Kt?(Ot=bt==null?void 0:bt.answer_content)==null?void 0:Ot.length:(mn=(Gt=ne.getFieldsValue())==null?void 0:Gt.standard_answers)==null?void 0:mn.length;He(!0),yield(0,Ye.bM)(Ht.current,{test_hack_code:Qt,test_input:rn});function Ft(){return mt(this,null,function*(){const{status:Tt,data:Ut}=yield(0,Ye.rX)(Ht.current,"submit"),Xt=yt()-An>(hn+3)*1e3*Fn;if(ze.current){if(Xt){tt.ZP.error("\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"),He(!1);return}if(Tt===0){He(!1),Nt(ue(Ne({},Ut),{showText:!0}));return}setTimeout(Ft,1e3)}})}Ft()}),Ct=()=>mt(void 0,null,function*(){var dt,Ot,Gt,mn,An,hn,Fn;if(!bt){try{yield ne.validateFields()}catch(an){(Gt=(Ot=(dt=an==null?void 0:an.errorFields)==null?void 0:dt[0])==null?void 0:Ot.name)!=null&&Gt.includes("standard_answers")?tt.ZP.error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"):tt.ZP.error(an.errorFields[0].errors[0]),ne.scrollToField(an.errorFields[0].name,{behavior:"smooth",block:"center"});return}ft(!0);let Tt="";const Ut=ne.getFieldsValue();ln.current?Tt=yield(0,Pe.ZP)(`/api/problems/${ln.current}.json`,{method:"put",body:ue(Ne({},Ut),{hack:ue(Ne({},Ut==null?void 0:Ut.hack),{sub_discipline_id:(Fn=(hn=Ut==null?void 0:Ut.hack)==null?void 0:hn.sub_discipline_id)==null?void 0:Fn[1],difficult:Ut.difficulty,item_banks_group_id:Ut.item_banks_group_id}),hack_codes:ue(Ne({},Ut.hack_codes),{code:Ce.Base64.encode(Ut.hack_codes.code)}),update_hack_sets:[Ne({},Ut.hack_sets)],is_blank:!0,item_type:"BPROGRAM"})}):(Tt=yield(0,Pe.ZP)("/api/problems.json",{method:"post",body:ue(Ne({},Ut),{hack:ue(Ne({},Ut==null?void 0:Ut.hack),{sub_discipline_id:(An=(mn=Ut==null?void 0:Ut.hack)==null?void 0:mn.sub_discipline_id)==null?void 0:An[1],difficult:Ut.difficulty,item_banks_group_id:Ut.item_banks_group_id}),hack_codes:ue(Ne({},Ut.hack_codes),{code:Ce.Base64.encode(Ut.hack_codes.code)}),hack_sets:[Ne({},Ut.hack_sets)],is_blank:!0,item_type:"BPROGRAM"})}),ln.current=Tt==null?void 0:Tt.identifier,sessionStorage.projectFill=Tt==null?void 0:Tt.identifier)}const Ft=yield(0,Pe.ZP)(`/api/problems/${ln.current}/start.json`,{method:"get"});if((Ft==null?void 0:Ft.status)===0){Ht.current=Ft==null?void 0:Ft.identifier,ze.current=!0,ft(!1),tn();return}ft(!1)}),$t=dt=>{const{status:Ot,error_msg:Gt,execute_time:mn,output:An,input:hn,expected_output:Fn}=dt;let Ft=null;switch(Ot){case Oe.h.OK:Ft=Re.createElement(Re.Fragment,null,Re.createElement("p",null,"\u6267\u884C\u7528\u65F6\uFF1A",mn/1e3,"\u79D2"),Re.createElement("p",null,"\u6267\u884C\u7ED3\u679C\uFF1A\u8C03\u8BD5\u901A\u8FC7"));break;case Oe.h.NOMATCH:Ft=Re.createElement(Re.Fragment,null,Re.createElement("div",null,"\u8F93\u5165\uFF1A"),Re.createElement("pre",{style:{fontFamily:"initial"}},hn),Re.createElement("div",null,"\u8F93\u51FA\uFF1A"),Re.createElement("pre",{style:{fontFamily:"initial"}},An&&Ce.Base64.decode(An)),Re.createElement("div",null,"\u9884\u671F\u8F93\u51FA\uFF1A"),Re.createElement("pre",{style:{fontFamily:"initial"}},Fn&&Ce.Base64.decode(Fn)));break;case Oe.h.EXECUTEFAILURE:Ft=Re.createElement(Re.Fragment,null,Re.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",Re.createElement("pre",null,hn)),Re.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),Re.createElement("pre",{className:"error"},Ce.Base64.decode(Gt)));break;case Oe.h.COMPILEFAILURE:Ft=Re.createElement(Re.Fragment,null,Re.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",Re.createElement("pre",null,hn)),Re.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),Re.createElement("pre",{className:"error"},Ce.Base64.decode(Gt)));break;case Oe.h.PODFAILURE:Ft=Re.createElement("p",null,"\u521B\u5EFApod\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break;case Oe.h.TIMEOUT:Ft=Re.createElement("p",null,"\u8BC4\u6D4B\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break}return Re.createElement(Re.Fragment,null," ",Ft," ")};return Re.createElement("div",null,Re.createElement(je.ZP,ue(Ne({loading:at},ie),{onClick:Ct}),ce),Re.createElement($e.default,{open:Pt,title:"\u8C03\u8BD5\u4EE3\u7801",destroyOnClose:!0,width:1200,okText:"\u8FD0\u884C\u6D4B\u8BD5",confirmLoading:Ue,cancelButtonProps:{style:{display:"none"}},onOk:()=>Ve(),onCancel:()=>{ze.current=!1,Le(!1)}},Re.createElement("div",{className:Se.result},Re.createElement("div",{className:Se.left},Re.createElement("div",{className:"mb20"},Re.createElement("span",{className:"c-black"},"\u6267\u884C\u4EE3\u7801"),!bt&&Re.createElement(Be.CopyToClipboard,{text:Qt,onCopy:()=>tt.ZP.success("\u590D\u5236\u6210\u529F")},Re.createElement("span",{style:{float:"right"},className:"current c-light-primary"},Re.createElement("i",{className:"iconfont icon-fuzhi8 mr5"}),"\u590D\u5236"))),Re.createElement(ct.Z,{height:510,className:"mb0",hidetoolBar:!0,defaultValue:Qt,onChange:dt=>un(dt)})),Re.createElement("div",{className:Se.right},Re.createElement("div",{className:"c-black mb20"},"\u81EA\u5B9A\u4E49\u6D4B\u8BD5\u7528\u4F8B"),Re.createElement("div",{className:Se.box},Re.createElement("div",{className:Se.li},Re.createElement(he.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165",value:rn,onChange:dt=>Rt(dt.target.value),bordered:!1,style:{height:180}}))),Re.createElement("div",{className:"c-black mb20 mt30"},"\u4EE3\u7801\u6267\u884C\u7ED3\u679C"),Re.createElement("div",{className:Se.box},Re.createElement(Te.Z,{spinning:Ue,tip:"\u4EE3\u7801\u6267\u884C\u4E2D"},Re.createElement("div",{className:Se.li,style:{height:196,overflow:"auto",padding:10}},$t(We))))))))},Mt=z(87169),Fe=z(59301),ye=Object.defineProperty,Bt=Object.defineProperties,jt=Object.getOwnPropertyDescriptors,Lt=Object.getOwnPropertySymbols,Ee=Object.prototype.hasOwnProperty,ot=Object.prototype.propertyIsEnumerable,qe=(ie,ce,ne)=>ce in ie?ye(ie,ce,{enumerable:!0,configurable:!0,writable:!0,value:ne}):ie[ce]=ne,zt=(ie,ce)=>{for(var ne in ce||(ce={}))Ee.call(ce,ne)&&qe(ie,ne,ce[ne]);if(Lt)for(var ne of Lt(ce))ot.call(ce,ne)&&qe(ie,ne,ce[ne]);return ie},ht=(ie,ce)=>Bt(ie,jt(ce)),lt=(ie,ce)=>{var ne={};for(var le in ie)Ee.call(ie,le)&&ce.indexOf(le)<0&&(ne[le]=ie[le]);if(ie!=null&&Lt)for(var le of Lt(ie))ce.indexOf(le)<0&&ot.call(ie,le)&&(ne[le]=ie[le]);return ne};const{TextArea:rt}=he.default,on=[{title:"C",key:"C"},{title:"C++",key:"C++"},{title:"Python",key:"Python"},{title:"Java",key:"Java"}],kt=({value:ie,onChange:ce})=>Fe.createElement(Switch,{checked:ie,onChange:ne=>{ce(ne)}}),ae="@\u2581@",re="@\u2581\u2581@",te=({questionTitlePlaceholder:ie,form:ce,scoreByBlank:ne=!1,hackidentifier:le,answerKey:Ie})=>{const[bt,Ue]=(0,y.useState)(!1),[He,at]=(0,y.useState)(!1),Pt=(0,_e.useParams)().type==="edit",Le=(Ht,ze)=>{const yt=ze.line;let Kt=0;for(let Ve=0;Ve<yt;Ve++)Kt+=Ht.getLine(Ve).split(ae).length-1;for(let Ve=0;Ve<yt;Ve++)Kt+=Ht.getLine(Ve).split(re).length-1;const tn=Ht.getLine(yt).substring(0,ze.ch);return Kt+=tn.split(ae).length-1,Kt+=tn.split(re).length-1,Kt},We=(Ht,ze,yt,Kt)=>{const tn=Ht.getRange(ze.from,ze.to);let Ve=0;if(ze.text.forEach(Ct=>{Ve+=Ct.split(ae).length-1}),ze.text.forEach(Ct=>{Ve+=Ct.split(re).length-1}),ze.origin!=="setValue"){if(tn&&(tn.indexOf(ae)!==-1||tn.indexOf(re)!==-1)){const Ct=tn.split(ae).length-1+tn.split(re).length-1,$t=Le(Ht,ze.from);if(console.log(`\u5220\u9664${Ct}\u4E2A\uFF0C \u524D\u9762\u6709${$t}\u4E2A\uFF0C\u65B0\u589E${Ve}\u4E2A`),Ct>1){const dt=Array.from({length:Ct},(Ot,Gt)=>$t+Gt);Kt(dt)}else Kt($t)}else if(Ve>0){const Ct=Le(Ht,ze.from);console.log(`\u65B0\u589E${Ve}\u4E2A\uFF0C\u4E4B\u524D\u6709${Ct}\u4E2A`),yt(Ve,Ct)}}},Nt=()=>{const Ht=ce.getFieldValue(Ie);ce.setFieldsValue({[Ie]:Ht==null?void 0:Ht.map((ze,yt)=>ht(zt({},ze),{position:yt+1}))})},Qt=(0,y.useRef)(),un=(Ht,ze)=>{for(let yt=0;yt<Ht;yt++)Qt.current({position:null,answer_text:""},ze+yt);Nt()},rn=(0,y.useRef)(),Rt=Ht=>{rn.current(Ht),Nt()},ln=de.default.useWatch(Ie,ce);return Fe.createElement("div",{className:Ae.Z.wrap},Fe.createElement(de.default.Item,{label:"\u8BD5\u9898\u63CF\u8FF0",name:["hack","description"],style:{display:"table"},className:"w100",labelCol:{span:24},rules:[{required:!0}]},Fe.createElement(se.h,{scrollId:"name",watch:!0,height:140})),Fe.createElement("div",{className:Ae.Z.questionTitleEditorWrap},Fe.createElement(de.default.Item,{label:"\u7A0B\u5E8F\u4EE3\u7801",name:["hack_codes","code"],labelCol:{span:24},rules:[{required:!0}]},Fe.createElement(se.h,{scrollId:"name",watch:!0,height:400,showNullProgramButton:!0,onChange:(Ht,ze)=>{const yt=ce.getFieldValue(Ie);console.log("--preAnswerData",yt,ze),ce.setFieldsValue({[Ie]:yt==null?void 0:yt.map((Kt,tn)=>{var Ve;return ht(zt({},Kt),{position:tn+1,multi_line:(Ve=ze==null?void 0:ze[tn])==null?void 0:Ve.multiLine})})})},placeholder:ie,onCMBeforeChange:(Ht,ze)=>{We(Ht,ze,un,Rt)}}))),Fe.createElement(de.default.List,{name:Ie,rules:[{validator(Ht,ze){if(!(ze!=null&&ze.length))return Promise.reject(new Error("\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"));for(const yt of ze){const{answer_text:Kt}=yt||{};if((Kt==null?void 0:Kt.length)===0)return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(Ht,{add:ze,remove:yt},{errors:Kt})=>(Qt.current=ze,rn.current=yt,Fe.createElement(Fe.Fragment,null,Fe.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},Fe.createElement(de.default.Item,{label:"\u586B\u7A7A\u9879\u7B54\u6848",required:!0,labelCol:{span:24}}),Fe.createElement("div",{onClick:()=>{$e.default.warning({title:"\u7ED9\u5206\u8BF4\u660E",icon:null,width:700,centered:!0,content:Fe.createElement("div",null,Fe.createElement("div",null,"1.\u5B66\u751F\u586B\u5199\u7B54\u6848\u4E4B\u540E\uFF0C\u5FC5\u987B\u63D0\u4EA4\u4EE3\u7801",Fe.createElement("span",{style:{color:"#e30000"}},"\u8FDB\u884C\u8BC4\u6D4B"),"\u624D\u80FD\u5F97\u5206\u3002"),Fe.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"}},Fe.createElement(Mt.Z,{style:{marginRight:3,color:"#3061D0"}}),Fe.createElement("span",null," \u7ED9\u5206\u8BF4\u660E"))),Ht.map((tn,Ve)=>{var Ct=tn,{key:$t,name:dt}=Ct,Ot=lt(Ct,["key","name"]),Gt,mn;return Fe.createElement(pe.Z,{className:"mb20",key:$t,align:"middle",wrap:!1},Fe.createElement(me.Z,{flex:"0 0 auto",className:`${Ae.Z.blankIndex}`},"\u586B\u7A7A\u9879",Ve+1),Fe.createElement(me.Z,{flex:1},Fe.createElement(pe.Z,{align:"top",justify:"space-between",wrap:!1},Fe.createElement(me.Z,null,Fe.createElement(de.default.Item,ht(zt({},Ot),{name:[dt,"answer_text"],noStyle:!0}),(Gt=ln==null?void 0:ln[dt])!=null&&Gt.multi_line||(mn=ln==null?void 0:ln[dt])!=null&&mn.multiLine?Fe.createElement(rt,{spellCheck:!1,style:{marginLeft:10,width:550}}):Fe.createElement(he.default,{style:{marginLeft:10,width:550},className:Ae.Z.blankInput,size:"large",maxLength:1e3,onBlur:An=>{}}))),ne&&Fe.createElement(me.Z,{flex:"224px"},Fe.createElement(de.default.Item,ht(zt({},Ot),{name:[dt,"score"],label:"\u5206\u503C",rules:[{required:!0}]}),Fe.createElement(ve.Z,{size:"large",className:Ae.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C"}))))))})))),Fe.createElement("div",{onClick:()=>Ue(!0)},Fe.createElement(de.default.Item,{name:["hack","analysis"],label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Fe.createElement(se.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:bt}))),Fe.createElement(de.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"}]},Fe.createElement(Me.default,{size:"large"},on.map(Ht=>Fe.createElement(Me.default.Option,{key:Ht.title,value:Ht.key}," ",Ht.title)))),Fe.createElement(de.default.Item,{label:"\u6700\u5927\u8BC4\u6D4B\u65F6\u957F\uFF08\u79D2\uFF09",style:{marginTop:30},labelCol:{span:24},required:!0},Fe.createElement(de.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},Fe.createElement(ve.Z,{precision:0,max:10,min:3,size:"large",style:{width:"97%"}})),Fe.createElement("span",{className:"ml10 font14"},"\u79D2")),Fe.createElement(de.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"}]},Fe.createElement(ge.ZP.Group,{style:{marginTop:-10}},Fe.createElement(ge.ZP,{value:0},"\u4E0D\u5FFD\u7565\u7A7A\u683C"),Fe.createElement(ge.ZP,{value:1},"\u5FFD\u7565\u9996\u5C3E\u7A7A\u683C"),Fe.createElement(ge.ZP,{value:2},"\u5FFD\u7565\u6240\u6709\u7A7A\u683C"))),Fe.createElement(de.default.Item,{label:"\u6D4B\u8BD5\u7528\u4F8B",required:!0,style:{marginTop:30}}),Fe.createElement("div",{style:{background:"#F6F7F9",padding:15}},Fe.createElement(de.default.Item,{label:"\u8F93\u5165",labelCol:{span:24},name:["hack_sets","input"]},Fe.createElement(rt,{rows:4})),Fe.createElement(de.default.Item,{label:"\u8F93\u51FA",labelCol:{span:24},name:["hack_sets","output"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8F93\u51FA\u5185\u5BB9"}]},Fe.createElement(rt,{rows:4}))),Fe.createElement(nt,{form:ce,answerKey:Ie,hackIdentifier:le,buttonText:"\u8FD0\u884C\u8C03\u8BD5",buttonProps:{ghost:!0,icon:Fe.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"}}}))}},5772:function(bn,Wt,z){"use strict";z.d(Wt,{u:function(){return Re}});var y=z(59301),he=z(77019),de=z(5269),$e=z(25399),pe=z(28284),me=z(78681),ve=z(32134),Me=z(12893),ge=z(8831),se=z(59301),_e=Object.defineProperty,Ae=Object.defineProperties,tt=Object.getOwnPropertyDescriptors,je=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,Ce=Object.prototype.propertyIsEnumerable,Se=(Ke,vt,it)=>vt in Ke?_e(Ke,vt,{enumerable:!0,configurable:!0,writable:!0,value:it}):Ke[vt]=it,Pe=(Ke,vt)=>{for(var it in vt||(vt={}))Te.call(vt,it)&&Se(Ke,it,vt[it]);if(je)for(var it of je(vt))Ce.call(vt,it)&&Se(Ke,it,vt[it]);return Ke},Ye=(Ke,vt)=>Ae(Ke,tt(vt)),ct=(Ke,vt)=>{var it={};for(var Qe in Ke)Te.call(Ke,Qe)&&vt.indexOf(Qe)<0&&(it[Qe]=Ke[Qe]);if(Ke!=null&&je)for(var Qe of je(Ke))vt.indexOf(Qe)<0&&Ce.call(Ke,Qe)&&(it[Qe]=Ke[Qe]);return it};const Be=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Oe=({value:Ke,onChange:vt,choiceTextKey:it,answerKey:Qe,index:ut,isEdit:be,setInputActive:et,form:Ne,choiceOptionsPath:ue,allowChangeMode:mt,showAddIcon:Ze,addItem:nt,deleteItem:Mt})=>{console.log(Ke,"value");const Fe=(Ke==null?void 0:Ke[Qe])===1,ye=()=>{const jt=Ne.getFieldValue(ue);Ne.setFieldValue(ue,jt.map(Lt=>Ye(Pe({},Lt),{[Qe]:0})))},Bt=()=>{Fe?vt(Ye(Pe({},Ke),{[Qe]:0})):(mt||ye(),vt(Ye(Pe({},Ke),{[Qe]:1})))};return se.createElement(he.Z,{className:me.Z.choiceWrap,align:"middle",wrap:!1},se.createElement(de.Z,{onClick:Bt,className:`${me.Z.choiceIndex} ${Fe?me.Z.activeAnswer:""}`},Be[ut]),se.createElement(de.Z,{flex:1,className:`${me.Z.editorWrap} ml15`,onClick:et},se.createElement(ge.x,{height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",isEdit:be,value:Ke==null?void 0:Ke[it],onChange:jt=>{vt(Ye(Pe({},Ke),{[it]:jt}))}})),se.createElement(de.Z,{flex:"0 0 auto",className:"ml15"},se.createElement("div",{onClick:Bt,className:`${me.Z.setAnswerBtn} ${Fe?me.Z.activeAnswer:""}`},Fe?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")),se.createElement(de.Z,{className:me.Z.actionWrapper},se.createElement($e.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},se.createElement(ve.Z,{className:me.Z.addIcon,onClick:nt,style:{visibility:Ze?"visible":"hidden"}})),se.createElement($e.Z,{title:"\u5220\u9664"},se.createElement(Me.Z,{className:me.Z.deleteIcon,onClick:Mt,style:{visibility:ut>1?"visible":"hidden"}}))))},Re=({questionTitlePlaceholder:Ke,titleKey:vt,choiceKey:it,analysisKey:Qe,choiceTextKey:ut,answerKey:be,choiceOptionsPath:et,allowChangeMode:Ne=!0,form:ue,showAnalysis:mt=!0})=>{const[Ze,nt]=(0,y.useState)(),[Mt,Fe]=(0,y.useState)(!1);return se.createElement("div",{className:me.Z.wrap},se.createElement("div",{className:me.Z.questionTitleEditorWrap},se.createElement(pe.default.Item,{label:"\u9898\u5E72",name:vt,labelCol:{span:24},rules:[{required:!0}]},se.createElement(ge.h,{scrollId:Array.isArray(vt)?vt.join("_"):`${vt}`,watch:!0,height:140,placeholder:Ke}))),se.createElement(pe.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}}),se.createElement(pe.default.List,{name:it,rules:[{validator(ye,Bt){const jt=Bt.some(Ee=>Ee[be]===1),Lt=Bt.findIndex(Ee=>{var ot;return((ot=Ee[ut])==null?void 0:ot.length)<=0});return Lt!==-1?Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${Be[Lt]}\u9009\u9879\u7684\u5185\u5BB9`)):jt?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},(ye,{add:Bt,remove:jt})=>se.createElement("div",{id:Array.isArray(et)?et.join("_"):`${et}`},ye.map((Lt,Ee)=>{var ot=Lt,{key:qe,name:zt}=ot,ht=ct(ot,["key","name"]);const lt=Ze===qe,rt=()=>{nt(qe)},on=Ee<14&&Ee===ye.length-1,kt=()=>Bt({[ut]:"",[be]:0}),ae=()=>jt(zt);return se.createElement(pe.default.Item,Ye(Pe({},ht),{key:qe,name:zt,className:me.Z.choiceListWrap,rules:[{validator(re,te){return te!=null&&te.choice_text?Promise.resolve():Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${Be[Ee]}\u9009\u9879\u7684\u5185\u5BB9`))}}]}),se.createElement(Oe,{choiceTextKey:ut,answerKey:be,index:Ee,isEdit:lt,setInputActive:rt,form:ue,choiceOptionsPath:et,allowChangeMode:Ne,showAddIcon:on,addItem:kt,deleteItem:ae}))}),ye.length<15&&se.createElement("div",{className:`${me.Z.addBtn} mb30`,onClick:()=>Bt({[ut]:"",[be]:0})},"\u6DFB\u52A0\u9009\u9879"))),mt&&se.createElement("div",{onClick:()=>Fe(!0)},se.createElement(pe.default.Item,{name:Qe,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:Mt}))))}},25747:function(bn,Wt,z){"use strict";z.d(Wt,{u:function(){return ue}});var y=z(59301),he=z(62957),de=z(77019),$e=z(5269),pe=z(37568),me=z(25399),ve=z(58755),Me=z(28284),ge=z(47889),se=z(4875),_e=z(7939),Ae=z(8831),tt=z(12893),je=z(32134),Te=z(61485),Ce=z(78681),Se=z(59641),Pe=z(59301),Ye=Object.defineProperty,ct=Object.defineProperties,Be=Object.getOwnPropertyDescriptors,Oe=Object.getOwnPropertySymbols,Re=Object.prototype.hasOwnProperty,Ke=Object.prototype.propertyIsEnumerable,vt=(mt,Ze,nt)=>Ze in mt?Ye(mt,Ze,{enumerable:!0,configurable:!0,writable:!0,value:nt}):mt[Ze]=nt,it=(mt,Ze)=>{for(var nt in Ze||(Ze={}))Re.call(Ze,nt)&&vt(mt,nt,Ze[nt]);if(Oe)for(var nt of Oe(Ze))Ke.call(Ze,nt)&&vt(mt,nt,Ze[nt]);return mt},Qe=(mt,Ze)=>ct(mt,Be(Ze)),ut=(mt,Ze)=>{var nt={};for(var Mt in mt)Re.call(mt,Mt)&&Ze.indexOf(Mt)<0&&(nt[Mt]=mt[Mt]);if(mt!=null&&Oe)for(var Mt of Oe(mt))Ze.indexOf(Mt)<0&&Ke.call(mt,Mt)&&(nt[Mt]=mt[Mt]);return nt};const be=({value:mt,onChange:Ze,position:nt,removeBlank:Mt})=>{const Fe=Bt=>{he.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:Ce.Z.modal,onOk:()=>{const jt=[...mt];jt.splice(Bt,1),jt.length===0?Mt(nt-1):Ze(jt)}})},ye=()=>{const Bt=[...mt];Bt.push(""),Ze(Bt)};return Pe.createElement(de.Z,{className:"ml20"},Pe.createElement($e.Z,{flex:1},mt==null?void 0:mt.map((Bt,jt)=>Pe.createElement(de.Z,{key:`${Bt}_${jt}`,className:"mb20"},Pe.createElement(pe.default.TextArea,{style:{flex:1,minHeight:44},defaultValue:Bt,autoSize:{maxRows:3},maxLength:1e3,onBlur:Lt=>{const Ee=[...mt],ot=Lt.target.value.trim();Ee[jt]=ot,Ze(Ee)}}),Pe.createElement(me.Z,{title:"\u5220\u9664"},Pe.createElement(tt.Z,{className:Ce.Z.deleteIcon,style:{marginLeft:15,visibility:nt===1&&jt===0?"hidden":"visible"},onClick:()=>Fe(jt)})),Pe.createElement(me.Z,{title:"\u65B0\u589E\u7B54\u6848"},Pe.createElement(je.Z,{style:{color:"#2A5DD8",fontSize:16,marginLeft:15,visibility:jt===0?"visible":"hidden"},onClick:()=>{ye()}}))))))},et=({value:mt,onChange:Ze,position:nt,removeBlank:Mt})=>{const Fe=Bt=>{he.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:Ce.Z.modal,onOk:()=>{const jt=[...mt];jt.splice(Bt,1),jt.length===0?Mt(nt-1):Ze(jt)}})},ye=()=>{const Bt=[...mt];Bt.push(""),Ze(Bt)};return Pe.createElement(de.Z,{className:"ml20"},Pe.createElement($e.Z,{flex:1},mt==null?void 0:mt.map((Bt,jt)=>Pe.createElement(de.Z,{key:`${Bt}_${jt}`,align:"middle",className:"mb20"},Pe.createElement(Se.Z,{value:Bt,style:{flex:1},onChange:Lt=>{const Ee=[...mt];Ee[jt]=Lt,Ze(Ee)}}),Pe.createElement(me.Z,{title:"\u5220\u9664"},Pe.createElement(tt.Z,{className:Ce.Z.deleteIcon,style:{marginLeft:15,visibility:nt===1&&jt===0?"hidden":"visible"},onClick:()=>Fe(jt)})),Pe.createElement(me.Z,{title:"\u65B0\u589E\u7B54\u6848"},Pe.createElement(je.Z,{style:{color:"#2A5DD8",fontSize:16,marginLeft:15,visibility:jt===0?"visible":"hidden"},onClick:()=>{ye()}}))))))},Ne=({value:mt=!0,onChange:Ze})=>Pe.createElement(ve.Z,{checked:!mt,onChange:nt=>{Ze(!nt)}}),ue=({questionTitlePlaceholder:mt,form:Ze,scoreByBlank:nt=!1,answerKey:Mt})=>{const[Fe,ye]=(0,y.useState)(!1),Bt=()=>{const zt=Ze.getFieldValue(Mt);Ze.setFieldsValue({[Mt]:zt.map((ht,lt)=>Qe(it({},ht),{position:lt+1}))})},jt=(0,y.useRef)(),Lt=(zt,ht)=>{for(let lt=0;lt<zt;lt++)jt.current({position:null,answer_text:[""],model:1},ht+lt);Bt()},Ee=(0,y.useRef)(),ot=zt=>{Ee.current(zt),Bt()},qe=Me.default.useWatch(Mt,Ze);return Pe.createElement("div",{className:Ce.Z.wrap},Pe.createElement("div",{className:Ce.Z.questionTitleEditorWrap},Pe.createElement(Me.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},Pe.createElement(Ae.h,{scrollId:"name",watch:!0,height:140,placeholder:mt,showNullButton:!0,onAddBlank:()=>{const zt=Ze.getFieldValue(Mt);Lt(1,zt==null?void 0:zt.length)}}))),Pe.createElement(Me.default.List,{name:Mt,rules:[{validator(zt,ht){if(!(ht!=null&&ht.length))return Promise.reject(new Error("\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879"));for(const lt of ht){const{answer_text:rt}=lt||{};if(rt!=null&&rt.some(on=>(on==null?void 0:on.length)===0))return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(zt,{add:ht,remove:lt},{errors:rt})=>(jt.current=ht,Ee.current=lt,Pe.createElement(Pe.Fragment,null,Pe.createElement(Me.default.Item,{label:Pe.createElement("span",null,"\u586B\u7A7A\u9879\u7B54\u6848"),required:!0,labelCol:{span:24}}),zt.map((on,kt)=>{var ae=on,{key:re,name:te}=ae,ie=ut(ae,["key","name"]),ce,ne;return Pe.createElement("div",{style:{marginBottom:10},key:re},Pe.createElement(de.Z,{className:"mb20",align:"middle",wrap:!1},Pe.createElement($e.Z,{style:{marginRight:10},flex:"0 0 auto",className:`${Ce.Z.blankIndex}`},"\u586B\u7A7A\u9879",kt+1),Pe.createElement(Me.default.Item,Qe(it({},ie),{name:[te,"model"],noStyle:!0}),Pe.createElement(ge.ZP.Group,{onChange:()=>{const le=Ze.getFieldValue(Mt);Ze.setFieldsValue({[Mt]:le.map((Ie,bt)=>Qe(it({},Ie),{answer_text:te===bt?[""]:Ie.answer_text}))})}},Pe.createElement(ge.ZP,{value:1},"\u6587\u672C\u6A21\u5F0F ",Pe.createElement(me.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(ge.ZP,{value:2},"\u6570\u5B66\u516C\u5F0F\u6A21\u5F0F ",Pe.createElement(me.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(de.Z,{style:{marginLeft:20},align:"middle",wrap:!1},Pe.createElement($e.Z,{flex:1},Pe.createElement(de.Z,{align:"top",justify:"space-between",wrap:!1},Pe.createElement($e.Z,{flex:1},Pe.createElement(Me.default.Item,Qe(it({},ie),{name:[te,"answer_text"],noStyle:!0}),((ne=(ce=Ze.getFieldValue(Mt))==null?void 0:ce[te])==null?void 0:ne.model)===1?Pe.createElement(be,{removeBlank:ot,position:kt+1}):Pe.createElement(et,{removeBlank:ot,position:kt+1}))),nt&&Pe.createElement($e.Z,{flex:"224px",style:{margin:"-2px 0 0 20px"}},Pe.createElement(Me.default.Item,Qe(it({},ie),{name:[te,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:Ce.Z.blankInputNumberWrapper}),Pe.createElement(se.Z,{min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C"})))),Pe.createElement(Me.default.Item,Qe(it({},ie),{name:[te,"position"],noStyle:!0}),Pe.createElement(pe.default,{type:"hidden"})))))})))),Pe.createElement(_e.ZP,{className:"mb20",onClick:()=>Lt(1,qe==null?void 0:qe.length),type:"primary",shape:"round"},"\u65B0\u589E\u586B\u7A7A\u9879"),Pe.createElement(de.Z,{align:"middle"},Pe.createElement(Me.default.Item,{name:"downcase",valuePropName:"checked"},Pe.createElement(ve.Z,null)),Pe.createElement($e.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),Pe.createElement(de.Z,{align:"middle"},Pe.createElement(Me.default.Item,{name:"no_space",valuePropName:"checked"},Pe.createElement(ve.Z,null)),Pe.createElement($e.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),(qe==null?void 0:qe.length)>1&&Pe.createElement(de.Z,{align:"middle",className:(qe==null?void 0:qe.length)>1?"mb30":`${Ce.Z.hide}`},Pe.createElement(Me.default.Item,{name:"is_ordered"},Pe.createElement(Ne,null)),Pe.createElement($e.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:()=>ye(!0)},Pe.createElement(Me.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Pe.createElement(Ae.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Fe}))))}},2375:function(bn,Wt,z){"use strict";z.d(Wt,{Z:function(){return ct}});var y=z(59301),he=z(77019),de=z(5269),$e=z(28284),pe=z(78681),me=z(8831),ve=z(59301),Me=Object.defineProperty,ge=Object.defineProperties,se=Object.getOwnPropertyDescriptors,_e=Object.getOwnPropertySymbols,Ae=Object.prototype.hasOwnProperty,tt=Object.prototype.propertyIsEnumerable,je=(Be,Oe,Re)=>Oe in Be?Me(Be,Oe,{enumerable:!0,configurable:!0,writable:!0,value:Re}):Be[Oe]=Re,Te=(Be,Oe)=>{for(var Re in Oe||(Oe={}))Ae.call(Oe,Re)&&je(Be,Re,Oe[Re]);if(_e)for(var Re of _e(Oe))tt.call(Oe,Re)&&je(Be,Re,Oe[Re]);return Be},Ce=(Be,Oe)=>ge(Be,se(Oe)),Se=(Be,Oe)=>{var Re={};for(var Ke in Be)Ae.call(Be,Ke)&&Oe.indexOf(Ke)<0&&(Re[Ke]=Be[Ke]);if(Be!=null&&_e)for(var Ke of _e(Be))Oe.indexOf(Ke)<0&&tt.call(Be,Ke)&&(Re[Ke]=Be[Ke]);return Re};const Pe={\u6B63\u786E:"T",\u9519\u8BEF:"F"},Ye=({value:Be,onChange:Oe,form:Re})=>{const Ke=(Be==null?void 0:Be.is_answer)===1,vt=Be==null?void 0:Be.choice_text,it=()=>{const Qe=Re.getFieldsValue().choices.map(ut=>({choice_text:ut.choice_text,is_answer:0}));Re.setFieldsValue({choices:Qe}),Oe(Ce(Te({},Be),{is_answer:1}))};return ve.createElement(he.Z,{className:pe.Z.choiceWrap,align:"middle",wrap:!1,style:{marginBottom:"20px"}},ve.createElement(de.Z,{onClick:it,className:`${pe.Z.choiceIndex} ${pe.Z.judgementIndex} ${Ke?pe.Z.activeAnswer:""}`},Pe[vt]),ve.createElement(de.Z,{flex:1,className:`${pe.Z.editorWrap} ml15`},ve.createElement("div",{className:`${pe.Z.inputBorder} ${pe.Z.placeholder} ${Ke?pe.Z.activeJudgementAnswer:""}`},vt)),ve.createElement(de.Z,{flex:"0 0 auto",className:"ml15"},ve.createElement("div",{onClick:it,className:`${pe.Z.setAnswerBtn} ${Ke?pe.Z.activeAnswer:""}`},Ke?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")))},ct=({questionTitlePlaceholder:Be,choiceKey:Oe,form:Re})=>{const[Ke,vt]=(0,y.useState)(!1);return ve.createElement("div",{className:pe.Z.wrap},ve.createElement("div",{className:pe.Z.questionTitleEditorWrap},ve.createElement($e.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},ve.createElement(me.h,{scrollId:"name",watch:!0,height:140,placeholder:Be}))),ve.createElement($e.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}},ve.createElement($e.default.List,{name:"choices",rules:[{validator(it,Qe){return Qe.some(be=>(be==null?void 0:be.is_answer)===1)?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},it=>ve.createElement("div",{id:"choices"},it.map(Qe=>{var ut=Qe,{key:be,name:et}=ut,Ne=Se(ut,["key","name"]);return ve.createElement($e.default.Item,Ce(Te({},Ne),{key:be,name:et,noStyle:!0}),ve.createElement(Ye,{form:Re}))})))),ve.createElement("div",{onClick:()=>vt(!0)},ve.createElement($e.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},ve.createElement(me.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Ke}))))}},8831:function(bn,Wt,z){"use strict";z.d(Wt,{h:function(){return Te},x:function(){return Ce}});var y=z(32862),he=z(78681),de=z(56375),$e=z(59301),pe=Object.defineProperty,me=Object.defineProperties,ve=Object.getOwnPropertyDescriptors,Me=Object.getOwnPropertySymbols,ge=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable,_e=(Se,Pe,Ye)=>Pe in Se?pe(Se,Pe,{enumerable:!0,configurable:!0,writable:!0,value:Ye}):Se[Pe]=Ye,Ae=(Se,Pe)=>{for(var Ye in Pe||(Pe={}))ge.call(Pe,Ye)&&_e(Se,Ye,Pe[Ye]);if(Me)for(var Ye of Me(Pe))se.call(Pe,Ye)&&_e(Se,Ye,Pe[Ye]);return Se},tt=(Se,Pe)=>me(Se,ve(Pe)),je=(Se,Pe)=>{var Ye={};for(var ct in Se)ge.call(Se,ct)&&Pe.indexOf(ct)<0&&(Ye[ct]=Se[ct]);if(Se!=null&&Me)for(var ct of Me(Se))Pe.indexOf(ct)<0&&se.call(Se,ct)&&(Ye[ct]=Se[ct]);return Ye};const Te=Se=>{var Pe=Se,{value:Ye,onChange:ct,scrollId:Be}=Pe,Oe=je(Pe,["value","onChange","scrollId"]);return $e.createElement("div",{id:Be||""},$e.createElement(y.Z,tt(Ae({},Oe),{defaultValue:Ye,onChange:(Re,Ke)=>{Ke!=null&&Ke.length?ct(Re,Ke):ct(Re)}})))},Ce=({value:Se,onChange:Pe,placeholder:Ye,height:ct=140,isEdit:Be,miniToolbar:Oe,watch:Re=!0})=>Be?$e.createElement(y.Z,{watch:Re,isFocus:!0,height:ct||void 0,placeholder:Ye,defaultValue:Se,onChange:Pe,miniToolbar:Oe}):$e.createElement("div",{style:{cursor:"pointer"}},Se?$e.createElement(de.Z,{className:he.Z.inputBorder,value:Se}):$e.createElement("div",{className:`${he.Z.inputBorder} ${he.Z.placeholder} inputBorderError`},Ye))},10485:function(bn,Wt,z){"use strict";z.d(Wt,{W:function(){return ut}});var y=z(59301),he=z(6767),de=z(96599),$e=z(28284),pe=z(58755),me=z(77019),ve=z(5269),Me=z(25399),ge=z(37568),se=z(4875),_e=z(78681),Ae=z(8831),tt=z(32862),je=z(61485),Te=Object.defineProperty,Ce=Object.defineProperties,Se=Object.getOwnPropertyDescriptors,Pe=Object.getOwnPropertySymbols,Ye=Object.prototype.hasOwnProperty,ct=Object.prototype.propertyIsEnumerable,Be=(be,et,Ne)=>et in be?Te(be,et,{enumerable:!0,configurable:!0,writable:!0,value:Ne}):be[et]=Ne,Oe=(be,et)=>{for(var Ne in et||(et={}))Ye.call(et,Ne)&&Be(be,Ne,et[Ne]);if(Pe)for(var Ne of Pe(et))ct.call(et,Ne)&&Be(be,Ne,et[Ne]);return be},Re=(be,et)=>Ce(be,Se(et)),Ke=(be,et)=>{var Ne={};for(var ue in be)Ye.call(be,ue)&&et.indexOf(ue)<0&&(Ne[ue]=be[ue]);if(be!=null&&Pe)for(var ue of Pe(be))et.indexOf(ue)<0&&ct.call(be,ue)&&(Ne[ue]=be[ue]);return Ne};const vt=be=>{var et=be,{value:Ne,onChange:ue}=et,mt=Ke(et,["value","onChange"]);const Ze=nt=>{ue([nt])};return y.createElement(tt.Z,Re(Oe({},mt),{defaultValue:Ne==null?void 0:Ne[0],onChange:Ze}))},it=be=>{if(!be)return!1;if(/^s*$/.test(be)||be.trim()===""){he.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u5168\u4E3A\u7A7A\u683C");return}let et=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 be==="|"?(he.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},Qe=({value:be=[],onClose:et})=>y.createElement(de.default,{closable:!0,onClose:et,className:_e.Z.keywordTag},y.createElement("pre",{style:{margin:"0px",whiteSpace:"pre-wrap"}},be.join(" \u6216 "))),ut=({questionTitlePlaceholder:be,form:et,showKeywords:Ne,isMustKeyWords:ue=Ne})=>{const[mt,Ze]=(0,y.useState)(!1),[nt,Mt]=(0,y.useState)(""),Fe=$e.default.useWatch("use_keywords",et),ye=$e.default.useWatch("question_score",et);return y.createElement("div",{className:_e.Z.wrap},y.createElement("div",{className:_e.Z.questionTitleEditorWrap},y.createElement($e.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},y.createElement(Ae.h,{scrollId:"name",watch:!0,height:140,placeholder:be}))),y.createElement($e.default.Item,{label:"\u53C2\u8003\u7B54\u6848",name:"answer_texts",labelCol:{span:24}},y.createElement(vt,{watch:!0,height:140,placeholder:"\u8BF7\u7F16\u8F91\u53C2\u8003\u7B54\u6848\uFF08\u975E\u5FC5\u586B\uFF09"})),Ne&&!ue&&y.createElement($e.default.Item,{hidden:!0,name:"use_keywords",valuePropName:"checked"},y.createElement(pe.Z,{defaultChecked:!0})),Ne&&ue&&y.createElement(me.Z,{align:"middle",className:"mb30"},y.createElement($e.default.Item,{name:"use_keywords",valuePropName:"checked"},y.createElement(pe.Z,null)),y.createElement(ve.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),y.createElement(ve.Z,null,y.createElement(Me.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(je.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),(Fe||!ue)&&y.createElement($e.default.List,{name:"keywords",rules:[{validator(Bt,jt){return ue?jt!=null&&jt.length?(jt==null?void 0:jt.reduce((Ee,ot)=>Ee+ot.score,0))>parseFloat(ye)?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()}}]},(Bt,{add:jt,remove:Lt})=>y.createElement(y.Fragment,null,y.createElement("div",{className:`${_e.Z.title} mb10`},ue?"\u5173\u952E\u8BCD":y.createElement("span",{style:{color:"#9096A3"}},"\u5224\u5206\u5173\u952E\u8BCD")),y.createElement(me.Z,{align:"middle",className:"font14 mb30"},y.createElement(ve.Z,{flex:1},y.createElement(ge.default,{value:nt,onChange:Ee=>{Mt(Ee.target.value)},maxLength:500,allowClear:!0,onPressEnter:Ee=>{var ot,qe,zt,ht;const lt=`${(ot=Ee.target)==null?void 0:ot.value}`,rt=(zt=(qe=lt==null?void 0:lt.split("|"))==null?void 0:qe.filter(ae=>!!ae))==null?void 0:zt.map(ae=>ae==null?void 0:ae.trim()),on=et.getFieldValue("keywords"),kt=((ht=on==null?void 0:on.map(ae=>ae==null?void 0:ae.keyword))==null?void 0:ht.flat())||[];for(const ae of rt)if(kt.includes(ae)){he.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}it(lt)&&(jt({keyword:rt,score:1}),Mt(""))},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(ve.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),Bt.map(Ee=>{var ot=Ee,{key:qe,name:zt}=ot,ht=Ke(ot,["key","name"]);return y.createElement(me.Z,{key:qe,className:"mb20",style:{marginRight:148}},y.createElement(ve.Z,{flex:1},y.createElement(me.Z,{align:"middle",justify:"space-between"},y.createElement($e.default.Item,Re(Oe({},ht),{name:[zt,"keyword"]}),y.createElement(Qe,{onClose:()=>Lt(zt)})),ue&&y.createElement($e.default.Item,Re(Oe({},ht),{name:[zt,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:_e.Z.blankInputNumberWrapper}),y.createElement(se.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:()=>Ze(!0)},y.createElement($e.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},y.createElement(Ae.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:mt}))))}},98203:function(bn,Wt,z){"use strict";z.d(Wt,{tc:function(){return $t.t},uh:function(){return y.u},rL:function(){return Ct},u8:function(){return de.u},ZZ:function(){return he.Z},Wk:function(){return $e.W}});var y=z(5772),he=z(2375),de=z(25747),$e=z(10485),pe=z(59301),me=z(8848),ve=z(28284),Me=z(77019),ge=z(5269),se=z(4875),_e=z(25399),Ae=z(75727),tt=z(78681),je=z(12893),Te=z(8831),Ce=z(62957),Se=z(37568),Pe=z(58755),Ye=z(7939),ct=z(32134),Be=z(59301),Oe=Object.defineProperty,Re=Object.defineProperties,Ke=Object.getOwnPropertyDescriptors,vt=Object.getOwnPropertySymbols,it=Object.prototype.hasOwnProperty,Qe=Object.prototype.propertyIsEnumerable,ut=(dt,Ot,Gt)=>Ot in dt?Oe(dt,Ot,{enumerable:!0,configurable:!0,writable:!0,value:Gt}):dt[Ot]=Gt,be=(dt,Ot)=>{for(var Gt in Ot||(Ot={}))it.call(Ot,Gt)&&ut(dt,Gt,Ot[Gt]);if(vt)for(var Gt of vt(Ot))Qe.call(Ot,Gt)&&ut(dt,Gt,Ot[Gt]);return dt},et=(dt,Ot)=>Re(dt,Ke(Ot)),Ne=(dt,Ot)=>{var Gt={};for(var mn in dt)it.call(dt,mn)&&Ot.indexOf(mn)<0&&(Gt[mn]=dt[mn]);if(dt!=null&&vt)for(var mn of vt(dt))Ot.indexOf(mn)<0&&Qe.call(dt,mn)&&(Gt[mn]=dt[mn]);return Gt};const ue=({value:dt,onChange:Ot,position:Gt,removeBlank:mn})=>{const An=Fn=>{Ce.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:tt.Z.modal,onOk:()=>{const Ft=[...dt];Ft.splice(Fn,1),Ft.length===0?mn(Gt-1):Ot(Ft)}})},hn=()=>{const Fn=[...dt];Fn.push(""),Ot(Fn)};return Be.createElement(Me.Z,{className:"ml20"},Be.createElement(ge.Z,{flex:1},dt==null?void 0:dt.map((Fn,Ft)=>Be.createElement(Me.Z,{key:`${Fn}_${Ft}`,className:"mb20"},Be.createElement(Se.default.TextArea,{style:{flex:1,minHeight:44},defaultValue:Fn,autoSize:{maxRows:3},maxLength:1e3,onBlur:Tt=>{const Ut=[...dt],an=Tt.target.value.trim();Ut[Ft]=an,Ot(Ut)}}),Be.createElement(_e.Z,{title:"\u5220\u9664"},Be.createElement(je.Z,{className:tt.Z.deleteIcon,style:{marginLeft:15,visibility:Gt===1&&Ft===0?"hidden":"visible"},onClick:()=>An(Ft)})),Be.createElement(_e.Z,{title:"\u65B0\u589E\u7B54\u6848"},Be.createElement(ct.Z,{style:{color:"#2A5DD8",fontSize:16,marginLeft:15,visibility:Ft===0?"visible":"hidden"},onClick:()=>{hn()}}))))))},mt=({value:dt=!0,onChange:Ot})=>Be.createElement(Pe.Z,{checked:!dt,onChange:Gt=>{Ot(!Gt)}}),Ze=({questionTitlePlaceholder:dt,form:Ot,name:Gt,scoreByBlank:mn=!1,answerKey:An,titleKey:hn="name",analysisKey:Fn="analysis",isOrdered:Ft="is_ordered"})=>{var Tt,Ut;const[an,Xt]=(0,pe.useState)(!1),yn=()=>{const Wn=Ot.getFieldValue(["sub_item_banks",...An]);Ot.setFieldValue(["sub_item_banks",...An],Wn==null?void 0:Wn.map((Hn,ur)=>et(be({},Hn),{position:ur+1})))},sn=(0,pe.useRef)(),wn=(Wn,Hn)=>{for(let ur=0;ur<Wn;ur++)sn.current({position:null,answer_text:[""]},Hn+ur);yn()},Vn=(0,pe.useRef)(),Mn=Wn=>{Vn.current(Wn),yn()},$n=(Ut=(Tt=Ot.getFieldValue("sub_item_banks"))==null?void 0:Tt[An==null?void 0:An[0]])==null?void 0:Ut[An==null?void 0:An[1]];return Be.createElement("div",{className:tt.Z.wrap},Be.createElement("div",{className:tt.Z.questionTitleEditorWrap},Be.createElement(ve.default.Item,{label:"\u9898\u5E72",name:hn,labelCol:{span:24},rules:[{required:!0}]},Be.createElement(Te.h,{scrollId:"name",watch:!0,height:140,placeholder:dt,showNullButton:!0,onAddBlank:()=>{const Wn=Ot.getFieldValue(["sub_item_banks",...An]);wn(1,Wn==null?void 0:Wn.length)}}))),Be.createElement(ve.default.List,{name:An,rules:[{validator(Wn,Hn){if((Hn==null?void 0:Hn.length)===0)return Promise.reject(new Error("\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879"));for(const ur of Hn){const{answer_text:rr}=ur||{};if(rr!=null&&rr.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()}}]},(Wn,{add:Hn,remove:ur},{errors:rr})=>(sn.current=Hn,Vn.current=ur,Be.createElement(Be.Fragment,null,Be.createElement(ve.default.Item,{label:Be.createElement("span",null,"\u586B\u7A7A\u9879\u7B54\u6848"),required:!0,labelCol:{span:24}}),Wn.map((dn,xn)=>{var jn=dn,{key:zn,name:xt}=jn,_t=Ne(jn,["key","name"]);return Be.createElement(Me.Z,{align:"top",key:zn},Be.createElement(ge.Z,{className:`${tt.Z.blankIndex} pt5`},"\u586B\u7A7A\u9879",xn+1),Be.createElement(ge.Z,{flex:1},Be.createElement(Me.Z,{align:"top",justify:"space-between"},Be.createElement(ge.Z,{flex:1},Be.createElement(ve.default.Item,et(be({},_t),{name:[xt,"answer_text"],noStyle:!0}),Be.createElement(ue,{removeBlank:Mn,position:xn+1}))),mn&&Be.createElement(ge.Z,{flex:"224px"},Be.createElement(ve.default.Item,et(be({},_t),{name:[xt,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:tt.Z.blankInputNumberWrapper}),Be.createElement(se.Z,{className:tt.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u6309\u7A7A\u7ED9\u5206\u8BF7\u8F93\u5165\u5206\u503C"})))),Be.createElement(ve.default.Item,et(be({},_t),{name:[xt,"position"],noStyle:!0}),Be.createElement(Se.default,{type:"hidden"}))))})))),Be.createElement(Ye.ZP,{className:"mb20",onClick:()=>wn(1,$n==null?void 0:$n.length),type:"primary",shape:"round"},"\u65B0\u589E\u586B\u7A7A\u9879"),Be.createElement(Me.Z,{align:"middle"},Be.createElement(ve.default.Item,{name:[Gt,"downcase"],valuePropName:"checked"},Be.createElement(Pe.Z,null)),Be.createElement(ge.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),Be.createElement(Me.Z,{align:"middle"},Be.createElement(ve.default.Item,{name:[Gt,"no_space"],valuePropName:"checked"},Be.createElement(Pe.Z,null)),Be.createElement(ge.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),($n==null?void 0:$n.length)>1&&Be.createElement(Me.Z,{align:"middle",className:($n==null?void 0:$n.length)>1?"mb30":`${tt.Z.hide}`},Be.createElement(ve.default.Item,{name:Ft},Be.createElement(mt,null)),Be.createElement(ge.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")),Be.createElement("div",{className:"mt30",onClick:()=>Xt(!0)},Be.createElement(ve.default.Item,{name:Fn,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Be.createElement(Te.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:an}))))};var nt=z(59301),Mt=Object.defineProperty,Fe=Object.defineProperties,ye=Object.getOwnPropertyDescriptors,Bt=Object.getOwnPropertySymbols,jt=Object.prototype.hasOwnProperty,Lt=Object.prototype.propertyIsEnumerable,Ee=(dt,Ot,Gt)=>Ot in dt?Mt(dt,Ot,{enumerable:!0,configurable:!0,writable:!0,value:Gt}):dt[Ot]=Gt,ot=(dt,Ot)=>{for(var Gt in Ot||(Ot={}))jt.call(Ot,Gt)&&Ee(dt,Gt,Ot[Gt]);if(Bt)for(var Gt of Bt(Ot))Lt.call(Ot,Gt)&&Ee(dt,Gt,Ot[Gt]);return dt},qe=(dt,Ot)=>Fe(dt,ye(Ot)),zt=(dt,Ot)=>{var Gt={};for(var mn in dt)jt.call(dt,mn)&&Ot.indexOf(mn)<0&&(Gt[mn]=dt[mn]);if(dt!=null&&Bt)for(var mn of Bt(dt))Ot.indexOf(mn)<0&&Lt.call(dt,mn)&&(Gt[mn]=dt[mn]);return Gt};const ht={\u6B63\u786E:"T",\u9519\u8BEF:"F"},lt=({value:dt,onChange:Ot,form:Gt,choiceKey:mn})=>{const An=(dt==null?void 0:dt.is_answer)===1,hn=dt==null?void 0:dt.choice_text,Fn=()=>{var Ft;const Tt=(Ft=Gt==null?void 0:Gt.getFieldValue(["sub_item_banks",...mn]))==null?void 0:Ft.map(Ut=>({choice_text:Ut.choice_text,is_answer:0}));Gt==null||Gt.setFieldValue(["sub_item_banks",...mn],Tt),Ot(qe(ot({},dt),{is_answer:1}))};return nt.createElement(Me.Z,{className:tt.Z.choiceWrap,align:"middle",wrap:!1},nt.createElement(ge.Z,{onClick:Fn,className:`${tt.Z.choiceIndex} ${tt.Z.judgementIndex} ${An?tt.Z.activeAnswer:""}`},ht[hn]),nt.createElement(ge.Z,{flex:1,className:`${tt.Z.editorWrap} ml15`},nt.createElement("div",{className:`${tt.Z.inputBorder} ${tt.Z.placeholder} ${An?tt.Z.activeJudgementAnswer:""}`},hn)),nt.createElement(ge.Z,{flex:"0 0 auto",className:"ml15"},nt.createElement("div",{onClick:Fn,className:`${tt.Z.setAnswerBtn} ${An?tt.Z.activeAnswer:""}`},An?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")))},rt=({questionTitlePlaceholder:dt,choiceKey:Ot="choices",form:Gt,titleKey:mn="name",analysisKey:An="analysis"})=>{const[hn,Fn]=(0,pe.useState)(!1);return nt.createElement("div",{className:tt.Z.wrap},nt.createElement("div",{className:tt.Z.questionTitleEditorWrap},nt.createElement(ve.default.Item,{label:"\u9898\u5E72",name:mn,labelCol:{span:24},rules:[{required:!0}]},nt.createElement(Te.h,{scrollId:"name",watch:!0,height:140,placeholder:dt}))),nt.createElement(ve.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}},nt.createElement(ve.default.List,{name:Ot,rules:[{validator(Ft,Tt){return Tt.some(an=>(an==null?void 0:an.is_answer)===1)?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},Ft=>nt.createElement("div",{id:"choices",style:{display:"flex",flexDirection:"column",gap:"20px"}},Ft.map(Tt=>{var Ut=Tt,{key:an,name:Xt}=Ut,yn=zt(Ut,["key","name"]);return nt.createElement(ve.default.Item,qe(ot({},yn),{key:an,name:Xt,noStyle:!0}),nt.createElement(lt,{form:Gt,choiceKey:Ot}))})))),nt.createElement("div",{className:"mt30",onClick:()=>Fn(!0)},nt.createElement(ve.default.Item,{name:An,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},nt.createElement(Te.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:hn}))))};var on=z(6767),kt=z(96599),ae=z(32862),re=z(61485),te=Object.defineProperty,ie=Object.defineProperties,ce=Object.getOwnPropertyDescriptors,ne=Object.getOwnPropertySymbols,le=Object.prototype.hasOwnProperty,Ie=Object.prototype.propertyIsEnumerable,bt=(dt,Ot,Gt)=>Ot in dt?te(dt,Ot,{enumerable:!0,configurable:!0,writable:!0,value:Gt}):dt[Ot]=Gt,Ue=(dt,Ot)=>{for(var Gt in Ot||(Ot={}))le.call(Ot,Gt)&&bt(dt,Gt,Ot[Gt]);if(ne)for(var Gt of ne(Ot))Ie.call(Ot,Gt)&&bt(dt,Gt,Ot[Gt]);return dt},He=(dt,Ot)=>ie(dt,ce(Ot)),at=(dt,Ot)=>{var Gt={};for(var mn in dt)le.call(dt,mn)&&Ot.indexOf(mn)<0&&(Gt[mn]=dt[mn]);if(dt!=null&&ne)for(var mn of ne(dt))Ot.indexOf(mn)<0&&Ie.call(dt,mn)&&(Gt[mn]=dt[mn]);return Gt};const ft=dt=>{var Ot=dt,{value:Gt,onChange:mn}=Ot,An=at(Ot,["value","onChange"]);const hn=Fn=>{mn([Fn])};return pe.createElement(ae.Z,He(Ue({},An),{defaultValue:Gt==null?void 0:Gt[0],onChange:hn}))},Pt=dt=>{if(!dt)return!1;let Ot=new RegExp("[ `~!@#$^&*()={}':;,\\[\\].<>/?~\uFF01@#\uFFE5\u2026\u2026&*\uFF08\uFF09\u2014\u3010\u3011\u2018\uFF1B\uFF1A\u201D\u201C\u3002\uFF0C\u3001\uFF1F\u300C\u300D\u300E\u300F_\\+\\-\xB7%\u300A\u300B]|[\\\\/]");return dt==="|"?(on.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},Le=({value:dt=[],onClose:Ot})=>pe.createElement(kt.default,{closable:!0,onClose:Ot,className:tt.Z.keywordTag},pe.createElement("pre",{style:{margin:"0px",whiteSpace:"pre-wrap"}},dt.join(" \u6216 "))),We=({questionTitlePlaceholder:dt,form:Ot,showKeywords:Gt,isMustKeyWords:mn=Gt,titleKey:An="name",analysisKey:hn="analysis",answerTexts:Fn="answer_texts",keywords:Ft="keywords",useKeywords:Tt="use_keywords",indexs:Ut})=>{const[an,Xt]=(0,pe.useState)(!1),[yn,sn]=(0,pe.useState)(""),[wn,Vn]=(0,pe.useState)(!1),Mn=ve.default.useWatch("question_score",Ot);return pe.createElement("div",{className:tt.Z.wrap},pe.createElement("div",{className:tt.Z.questionTitleEditorWrap},pe.createElement(ve.default.Item,{label:"\u9898\u5E72",name:An,labelCol:{span:24},rules:[{required:!0}]},pe.createElement(Te.h,{scrollId:"name",watch:!0,height:140,placeholder:dt}))),pe.createElement(ve.default.Item,{label:"\u53C2\u8003\u7B54\u6848",name:Fn,labelCol:{span:24}},pe.createElement(ft,{watch:!0,height:140,placeholder:"\u8BF7\u7F16\u8F91\u53C2\u8003\u7B54\u6848\uFF08\u975E\u5FC5\u586B\uFF09"})),Gt&&!mn&&pe.createElement(ve.default.Item,{hidden:!0,name:Tt,valuePropName:"checked"},pe.createElement(Pe.Z,{defaultChecked:!0})),Gt&&mn&&pe.createElement(Me.Z,{align:"middle",className:"mb30"},pe.createElement(ve.default.Item,{name:Tt,valuePropName:"checked"},pe.createElement(Pe.Z,{onChange:()=>{var $n,Wn,Hn,ur,rr,dn;console.log(Ot.getFieldsValue()),Vn((Hn=(Wn=($n=Ot.getFieldsValue())==null?void 0:$n.sub_item_banks)==null?void 0:Wn[Ut])==null?void 0:Hn.use_keywords),console.log((dn=(rr=(ur=Ot.getFieldsValue())==null?void 0:ur.sub_item_banks)==null?void 0:rr[Ut])==null?void 0:dn.use_keywords),console.log(wn)}})),pe.createElement(ge.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),pe.createElement(ge.Z,null,pe.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"},pe.createElement(re.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),(wn||!mn)&&pe.createElement(ve.default.List,{name:Ft,rules:[{validator($n,Wn){return mn?Wn!=null&&Wn.length?(Wn==null?void 0:Wn.reduce((ur,rr)=>ur+rr.score,0))>parseFloat(Mn)?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()}}]},($n,{add:Wn,remove:Hn})=>pe.createElement(pe.Fragment,null,pe.createElement("div",{className:`${tt.Z.title} mb10`},mn?"\u5173\u952E\u8BCD":pe.createElement("span",{style:{color:"#9096A3"}},"\u5224\u5206\u5173\u952E\u8BCD")),pe.createElement(Me.Z,{align:"middle",className:"font14 mb30"},pe.createElement(ge.Z,{flex:1},pe.createElement(Se.default,{value:yn,onChange:ur=>{sn(ur.target.value)},maxLength:50,allowClear:!0,onPressEnter:ur=>{var rr,dn,xn,jn;const zn=`${(rr=ur.target)==null?void 0:rr.value}`,xt=(xn=(dn=zn==null?void 0:zn.split("|"))==null?void 0:dn.filter(Dt=>!!Dt))==null?void 0:xn.map(Dt=>Dt==null?void 0:Dt.trim()),_t=Ot.getFieldValue(["sub_item_banks",...Ft]),Je=((jn=_t==null?void 0:_t.map(Dt=>Dt==null?void 0:Dt.keyword))==null?void 0:jn.flat())||[];for(const Dt of xt)if(Je.includes(Dt)){on.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}Pt(zn)&&(Wn({keyword:xt,score:1}),sn(""))},className:tt.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"})),pe.createElement(ge.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),$n.map(ur=>{var rr=ur,{key:dn,name:xn}=rr,jn=at(rr,["key","name"]);return pe.createElement(Me.Z,{key:dn,className:"mb20",style:{marginRight:148}},pe.createElement(ge.Z,{flex:1},pe.createElement(Me.Z,{align:"middle",justify:"space-between"},pe.createElement(ve.default.Item,He(Ue({},jn),{name:[xn,"keyword"]}),pe.createElement(Le,{onClose:()=>Hn(xn)})),mn&&pe.createElement(ve.default.Item,He(Ue({},jn),{name:[xn,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:tt.Z.blankInputNumberWrapper}),pe.createElement(se.Z,{className:tt.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))}))),pe.createElement("div",{onClick:()=>Xt(!0)},pe.createElement(ve.default.Item,{name:hn,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},pe.createElement(Te.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:an}))))};var Nt=z(59301),Qt=Object.defineProperty,un=Object.defineProperties,rn=Object.getOwnPropertyDescriptors,Rt=Object.getOwnPropertySymbols,ln=Object.prototype.hasOwnProperty,Ht=Object.prototype.propertyIsEnumerable,ze=(dt,Ot,Gt)=>Ot in dt?Qt(dt,Ot,{enumerable:!0,configurable:!0,writable:!0,value:Gt}):dt[Ot]=Gt,yt=(dt,Ot)=>{for(var Gt in Ot||(Ot={}))ln.call(Ot,Gt)&&ze(dt,Gt,Ot[Gt]);if(Rt)for(var Gt of Rt(Ot))Ht.call(Ot,Gt)&&ze(dt,Gt,Ot[Gt]);return dt},Kt=(dt,Ot)=>un(dt,rn(Ot)),tn=(dt,Ot)=>{var Gt={};for(var mn in dt)ln.call(dt,mn)&&Ot.indexOf(mn)<0&&(Gt[mn]=dt[mn]);if(dt!=null&&Rt)for(var mn of Rt(dt))Ot.indexOf(mn)<0&&Ht.call(dt,mn)&&(Gt[mn]=dt[mn]);return Gt};const{Panel:Ve}=me.default,Ct=({questionTitlePlaceholder:dt,choiceKey:Ot,form:Gt,withScore:mn})=>{const[An,hn]=(0,pe.useState)([]),Fn=Ft=>{hn(Ft)};return Nt.createElement("div",{className:tt.Z.wrap},Nt.createElement("div",{className:tt.Z.questionTitleEditorWrap},Nt.createElement(ve.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},Nt.createElement(Te.h,{scrollId:"name",watch:!0,height:140,placeholder:dt}))),Nt.createElement(ve.default.Item,{label:"\u5C0F\u9898",required:!0,labelCol:{span:24}}),Nt.createElement(ve.default.List,{name:"sub_item_banks",rules:[{validator(Ft,Tt){return Tt?Promise.resolve():Promise.reject(new Error("\u8BF7\u6DFB\u52A0\u5C0F\u9898"))}}]},(Ft,{add:Tt,remove:Ut,move:an})=>{const Xt=Gt.getFieldValue("sub_item_banks");return Nt.createElement(Nt.Fragment,null,Nt.createElement(me.default,{className:Ft.length>0?tt.Z.collapseWrapper:"",bordered:!1,activeKey:An,onChange:Fn,expandIcon:({isActive:yn})=>Nt.createElement("i",{className:`iconfont icon-weizhankai ${yn?tt.Z.open:tt.Z.close}`,style:{fontSize:14,transition:"all .2s"}})},Ft.map((yn,sn)=>{var wn=yn,{key:Vn,name:Mn}=wn,$n=tn(wn,["key","name"]),Wn,Hn,ur,rr,dn,xn,jn,zn,xt,_t;return Nt.createElement(Ve,{className:tt.Z.panel,forceRender:!0,header:Nt.createElement("div",{className:tt.Z.panelHeader},"\u7B2C",sn+1,"\u5C0F\u9898",Nt.createElement("span",null,"\uFF08",((Wn=Xt==null?void 0:Xt[Mn])==null?void 0:Wn.item_type)=="SINGLE"?"\u5355\u9009\u9898":((Hn=Xt==null?void 0:Xt[Mn])==null?void 0:Hn.item_type)=="MULTIPLE"?"\u591A\u9009\u9898":((ur=Xt==null?void 0:Xt[Mn])==null?void 0:ur.item_type)=="COMPLETION"?"\u586B\u7A7A\u9898":((rr=Xt==null?void 0:Xt[Mn])==null?void 0:rr.item_type)=="JUDGMENT"?"\u5224\u65AD\u9898":"\u7B80\u7B54\u9898","\uFF09")),key:Mn,extra:Nt.createElement(Me.Z,{align:"middle",onClick:Je=>Je.stopPropagation()},mn&&Nt.createElement(ge.Z,null,Nt.createElement(ve.default.Item,Kt(yt({},$n),{rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5C0F\u9898\u5206\u503C"}],label:"\u5206\u503C",name:[Mn,"question_score"],className:tt.Z.blankInputNumberWrapper}),Nt.createElement(se.Z,{className:tt.Z.blankInput,placeholder:"\u8BF7\u8F93\u5165\u5F53\u524D\u5C0F\u9898\u5206\u6570",min:.1,precision:1,max:100,style:{width:150}}))),Nt.createElement(ge.Z,null,Nt.createElement(Me.Z,{align:"middle",className:"pl40",justify:"end"},sn!==0&&Nt.createElement("div",{onClick:()=>{var Je;an(sn,sn-1);const Dt=(Je=Gt.getFieldValue("sub_item_banks"))==null?void 0:Je.map((Ge,At)=>(Ft.map((Jt,Rn)=>{At===Rn&&(Ge.q_position=Number(Jt.name)+1)}),Ge));Gt.setFieldValue("sub_item_banks",Dt)}},Nt.createElement(_e.Z,{title:"\u4E0A\u79FB"},Nt.createElement("i",{className:"iconfont icon-shangyi3 c-grey-999 primary-hover"}))),sn<Ft.length-1&&Nt.createElement("div",{onClick:()=>{var Je;an(sn,sn+1);const Dt=(Je=Gt.getFieldValue("sub_item_banks"))==null?void 0:Je.map((Ge,At)=>(Ft.map((Jt,Rn)=>{At===Rn&&(Ge.q_position=Number(Jt.name)+1)}),Ge));Gt.setFieldValue("sub_item_banks",Dt)},className:sn===0?"":"ml15"},Nt.createElement(_e.Z,{title:"\u4E0B\u79FB"},Nt.createElement("i",{className:"iconfont icon-xiayi3 c-grey-999 primary-hover"}))))),Nt.createElement(ge.Z,null,Nt.createElement(_e.Z,{title:"\u5220\u9664"},Nt.createElement(je.Z,{className:`${tt.Z.deleteIcon} ml15`,onClick:()=>Ut(Mn)}))))},Nt.createElement(ve.default.Item,Kt(yt({},$n),{name:Mn}),(((dn=Xt==null?void 0:Xt[Mn])==null?void 0:dn.item_type)=="SINGLE"||((xn=Xt==null?void 0:Xt[Mn])==null?void 0:xn.item_type)=="MULTIPLE")&&Nt.createElement(y.u,{questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9009\u62E9\u9898\u9898\u5E72\u5185\u5BB9",allowChangeMode:((jn=Xt==null?void 0:Xt[Mn])==null?void 0:jn.item_type)=="MULTIPLE",form:Gt,choiceKey:[Mn,"choices"],titleKey:[Mn,"name"],analysisKey:[Mn,"analysis"],choiceOptionsPath:["sub_item_banks",Mn,"choices"],choiceTextKey:"choice_text",answerKey:"is_answer"}),((zn=Xt==null?void 0:Xt[Mn])==null?void 0:zn.item_type)=="COMPLETION"&&Nt.createElement(Ze,{form:Gt,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9898\u5E72\uFF0C\u60A8\u53EF\u4EE5\u7528\u4EFB\u610F\u5B57\u7B26\u8868\u793A\u586B\u7A7A\u9879",scoreByBlank:!1,name:Mn,titleKey:[Mn,"name"],analysisKey:[Mn,"analysis"],isOrdered:[Mn,"is_ordered"],answerKey:[Mn,"standard_answers"]}),((xt=Xt==null?void 0:Xt[Mn])==null?void 0:xt.item_type)=="JUDGMENT"&&Nt.createElement(rt,{form:Gt,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u5224\u65AD\u9898\u9898\u5E72\u5185\u5BB9",titleKey:[Mn,"name"],analysisKey:[Mn,"analysis"],choiceKey:[Mn,"choices"]}),((_t=Xt==null?void 0:Xt[Mn])==null?void 0:_t.item_type)=="SUBJECTIVE"&&Nt.createElement(We,{showKeywords:!0,isMustKeyWords:!1,form:Gt,titleKey:[Mn,"name"],analysisKey:[Mn,"analysis"],answerTexts:[Mn,"answer_texts"],useKeywords:[Mn,"use_keywords"],keywords:[Mn,"keywords"],indexs:Mn,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7B80\u7B54\u9898\u9898\u5E72\u5185\u5BB9"})))})),Ft.length<20&&Nt.createElement(Ae.Z,{menu:{items:[{label:Nt.createElement("div",{onClick:()=>{Tt({name:"",choices:Array.from({length:4},()=>({choice_text:"",is_answer:0})),analysis:"",item_type:"SINGLE"}),hn([Ft==null?void 0:Ft.length,...An])}},"\u5355\u9009\u9898"),key:"1",show:!0},{label:Nt.createElement("div",{onClick:()=>{Tt({name:"",choices:Array.from({length:4},()=>({choice_text:"",is_answer:0})),analysis:"",item_type:"MULTIPLE"}),hn([Ft==null?void 0:Ft.length,...An])}},"\u591A\u9009\u9898"),key:"2",show:!0},{label:Nt.createElement("div",{onClick:()=>{Tt({name:"",choices:[{choice_text:"\u6B63\u786E",is_answer:0},{choice_text:"\u9519\u8BEF",is_answer:0}],analysis:"",item_type:"JUDGMENT"}),hn([Ft==null?void 0:Ft.length,...An])}},"\u5224\u65AD\u9898"),key:"3",show:!0},{label:Nt.createElement("div",{onClick:()=>{Tt({name:"",analysis:"",is_ordered:!0,standard_answers:[{position:1,answer_text:[""]}],item_type:"COMPLETION",downcase:!0,no_space:!0}),hn([Ft==null?void 0:Ft.length,...An])}},"\u586B\u7A7A\u9898"),key:"4",show:!0},{label:Nt.createElement("div",{onClick:()=>{Tt({name:"",answer_texts:[],keywords:[],use_keywords:!0,analysis:"",item_type:"SUBJECTIVE"}),hn([Ft==null?void 0:Ft.length,...An])}},"\u7B80\u7B54\u9898"),key:"5",show:!0}].filter(yn=>yn.show).map(yn=>({label:yn.label,key:yn.key}))}},Nt.createElement("div",{className:`${tt.Z.addBtn}`},"\u6DFB\u52A0\u5C0F\u9898")))}))};var $t=z(63269)},56375:function(bn,Wt,z){"use strict";z.d(Wt,{z:function(){return ut},Z:function(){return be}});var y=z(59301),he=z(64310),de=z(74410),$e=z(64018),pe=z(16471),me=z(35783),ve=z(68911),Me=z(15342),ge=z(44104),se=z(7939),_e=z(1012),Ae=z(98893),tt=z(59301),Te=({html:et})=>{const Ne=(0,y.useRef)(null),ue=(0,y.useRef)(null),mt=`.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 Ze=Ne.current.attachShadow({mode:"open"});ue.current=document.createElement("div"),ue.current.className="markdown-body",ue.current.innerHTML=et,Ze.appendChild(ue.current);const nt=document.createElement("style");return nt.textContent=mt,Ze.appendChild(nt),()=>{Ze.innerHTML=""}},[]),(0,y.useEffect)(()=>{ue.current&&(ue.current.innerHTML=et)},[et]),tt.createElement("div",{ref:Ne})};function Ce(et){const Ne=["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"],ue=new RegExp(`\\b(${Ne.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi"),mt=/<meta\s+http-equiv\s*=\s*["']?refresh["']?[^>]*>/gi;return et.replace(ue,"").replace(mt,"").trim()}var Se={mdBody:"mdBody___raKXb",button:"button___Ch5Pc",previewFlowChart:"previewFlowChart___vY1dq"},Pe=Object.defineProperty,Ye=Object.getOwnPropertySymbols,ct=Object.prototype.hasOwnProperty,Be=Object.prototype.propertyIsEnumerable,Oe=(et,Ne,ue)=>Ne in et?Pe(et,Ne,{enumerable:!0,configurable:!0,writable:!0,value:ue}):et[Ne]=ue,Re=(et,Ne)=>{for(var ue in Ne||(Ne={}))ct.call(Ne,ue)&&Oe(et,ue,Ne[ue]);if(Ye)for(var ue of Ye(Ne))Be.call(Ne,ue)&&Oe(et,ue,Ne[ue]);return et};const Ke="@\u2581\u2581@",vt="@\u2581@",it=/<pre[^>]*>/g;function Qe(et){let Ne=document.createElement("div");return Ne.innerHTML=et,Ne.childNodes.length===0?"":Ne.childNodes[0].nodeValue}const ut=(et,Ne)=>{et=et||"";const ue=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,mt=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ze=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,nt=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return Ne?et.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(ue,(Mt,Fe,ye,Bt,jt,Lt,Ee)=>{const ot=Fe||Bt||Lt,qe=ye||jt||Ee||"?";return me.Z.API_SERVER+"/api/attachments/"+ot+qe+"&t="+(0,ve.Jn)(ot,Date.now())+(Mt.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(et=et.replace(nt,(Mt,Fe,ye,Bt,jt,Lt,Ee)=>{const ot=Fe||Bt||Lt,qe=ye||jt||Ee||"?";return me.Z.API_SERVER+"/attachments/download/"+ot+qe+"&t="+(0,ve.Jn)(ot,Date.now())+(Mt.indexOf(")")>-1?")":"&")}).replace(ue,(Mt,Fe,ye,Bt,jt,Lt,Ee)=>{const ot=Fe||Bt||Lt,qe=ye||jt||Ee||"?";return me.Z.API_SERVER+"/api/attachments/"+ot+qe+"&t="+(0,ve.Jn)(ot,Date.now())+(Mt.indexOf(")")>-1?")":"&")}).replace(mt,(Mt,Fe,ye,Bt,jt)=>{const Lt=Fe||Bt,Ee=ye||jt||"";return'"'+me.Z.API_SERVER+"/api/attachments/"+Lt+Ee+Lt+Ee+"&t="+(0,ve.Jn)(Lt,Date.now())}).replace(Ze,(Mt,Fe,ye,Bt,jt)=>{const Lt=Fe||Bt,Ee=ye||jt||"";return"("+me.Z.API_SERVER+"/files/uploads/"+Lt+Ee+Lt+Ee+"&t="+(0,ve.Jn)(Lt,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,`
`),et)};var be=({value:et="",edit:Ne=!1,className:ue,showTextOnly:mt,showLines:Ze,style:nt={},stylesPrev:Mt={},highlightKeywords:Fe,showProgramFill:ye,isProgramFill:Bt,disabledFill:jt=!1,programFillValue:Lt,openEditor:Ee=()=>{},onFillChange:ot=ht=>{},onFillBlur:qe=()=>{},onFillFocus:zt=()=>{}})=>{let ht=Ce(String(et||""));const lt=(0,y.useRef)(),rt=(0,y.useRef)(),[on,kt]=(0,y.useState)(""),[ae,re]=(0,y.useState)("office"),[te,ie]=(0,y.useState)([]),ce=(0,y.useRef)("a"+(0,_e.Z)()),ne={},le=Rt=>/<style[\s\S]*?>/i.test(Rt||""),Ie=(Rt,ln,Ht)=>{const ze=document.createElement(Rt===vt?"input":"textarea");ze.style.width="100%",ze.style.height=Rt===vt?"40px":"151px",ze.rows=5,ze.spellcheck=!1,ze.name="edu-program-fill",ze.placeholder="\u8BF7\u8F93\u5165",ze.dataset.id=ln;const yt=Object.keys(ne).length;return ne[yt]=ze,`<span class="edu-program-fill-wrap ${Rt===vt?"":"show"}" style="width:${Rt===vt?"600px":"100%"}" title=${Ht||""}><span>${ze.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function bt(Rt){return Rt=Rt.replace(/!\[.*?\]\(.*?\)/g,""),Rt=Rt.replace(/\[.*?\]\(.*?\)/g,""),Rt=Rt.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),Rt=Rt.replace(/<embed.*?>/g,""),Rt=Rt.replace(/<img.*?>/g,""),Rt=Rt.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),Rt=Rt.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),Rt=Rt.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),Rt=Rt.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),Rt}const Ue=Rt=>!mt&&le(ht)?Rt:Rt.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(ln,Ht){let ze=Ht.replace(/(\n|\r)/g,"").split("}"),yt=[];return ze.map(Kt=>{Kt!=""&&yt.push(`.${ce.current} ${Kt}`)}),`<style>${yt.join("}")}</style>`}),He=(0,y.useMemo)(()=>{(0,de.Iy)();try{const ze=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,yt=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Kt=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,tn=/\(\/attachments\/download\//g;ht=ht.replace(tn,"("+me.Z.API_SERVER+"/attachments/download/").replace(ze,"("+me.Z.API_SERVER+"/api/attachments/").replace(yt,'"'+me.Z.API_SERVER+"/api/attachments/").replace(Kt,'"'+me.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,`
`),lt.current.style.display="none"}catch(ze){}if(ye){let ze=-1;return ht=ht.replaceAll("<","&lt;").replaceAll(">","&gt;").replace(/(@▁▁@|@▁@)/g,function(yt,Kt,tn){var Ve;return++ze,Ie(yt,ze,(Ve=Lt==null?void 0:Lt[ze])==null?void 0:Ve.value.replaceAll("<","&lt;").replaceAll(">","&gt;"))}),`<pre style="background:#fff;padding:4px">${Ue(ht||"")}</pre>`}let Rt=Ue(ht);Rt=(0,de.ZP)(Rt);const ln=(0,de.ez)();ht.match(/\[TOC\]/)&&(Rt=Rt.replace("<p>[TOC]</p>",(0,de.Qv)()),(0,de.Iy)()),Rt=Rt.replace(/(__special_katext_id_\d+__)/g,(ze,yt)=>{const{type:Kt,expression:tn}=ln[yt];return(0,Me.renderToString)(Qe(tn)||"",{displayMode:Kt==="block",throwOnError:!1,output:"html"})}),Rt=Rt.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,de.AL)();const Ht=document.createElement("div");if(Ht.innerHTML=Rt,mt)return Ht.innerText;if(Fe){const ze=Fe.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return Le(Ht,ze),Ht.innerHTML}return setTimeout(()=>Qt(),500),Ht.innerHTML},[ht,Fe]);(0,y.useEffect)(()=>{We.current&&We.current.querySelectorAll(["input","textarea"]).forEach(ln=>{ln.oninput=at,ln.onblur=ft,ln.onfocus=Pt})},[te]),(0,y.useEffect)(()=>{var Rt,ln,Ht,ze,yt;if(Lt!=null&&Lt.length)try{const Kt=We.current.querySelectorAll(".edu-program-fill-score"),tn=We.current.querySelectorAll('[name="edu-program-fill"]');for(const[Ve,Ct]of tn.entries())Ct.value=((Rt=Lt==null?void 0:Lt[Ve])==null?void 0:Rt.value)||"",((ln=Lt==null?void 0:Lt[Ve])==null?void 0:ln.type)==="warning"?Ct.className="program-fill-warning":((Ht=Lt==null?void 0:Lt[Ve])==null?void 0:Ht.type)==="success"?Ct.className="program-fill-success":Ct.className="";for(const[Ve,Ct]of Kt.entries())Ct.innerHTML=(ze=Lt==null?void 0:Lt[Ve])!=null&&ze.score?`${(yt=Lt==null?void 0:Lt[Ve])==null?void 0:yt.score}\u5206`:"";ie(Lt)}catch(Kt){console.log(Kt,"error")}},[Lt]);const at=Rt=>{te[Rt.target.dataset.id]=te[Rt.target.dataset.id]||{},te[Rt.target.dataset.id].value=Rt.target.value,ie([...te]),ot(te,Rt.target.dataset.id)},ft=Rt=>{te[Rt.target.dataset.id]=te[Rt.target.dataset.id]||{},te[Rt.target.dataset.id].value=Rt.target.value,ie([...te]),qe(te,Rt.target.dataset.id)},Pt=Rt=>{te[Rt.target.dataset.id]=te[Rt.target.dataset.id]||{},te[Rt.target.dataset.id].value=Rt.target.value,ie([...te]),zt(te,Rt.target.dataset.id)};function Le(Rt,ln){return Rt.childNodes.forEach(Ht=>{var ze;if(Ht.childNodes.length>0)Le(Ht,ln);else if(Ht.nodeName!=="IMG")if(Ht.innerHTML)Ht.innerHTML=(ze=Ht.innerHTML)==null?void 0:ze.replace(new RegExp(ln,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const yt=document.createElement("span");yt.innerHTML=Ht.textContent.replace(new RegExp(ln,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),Ht.replaceWith(yt)}})}const We=(0,y.useRef)();de.jb.WebkitLineClamp=Ze,Ze&&(nt=Re(Re({},nt),de.jb));function Nt(Rt){let ln=Rt.target;if(ln.tagName.toUpperCase()==="A"){let Ht=ln.getAttribute("href");if(Ht.indexOf("office")>-1)Rt.preventDefault(),kt(Ht),re("office");else if(Ht.indexOf("application/pdf")>-1)Rt.preventDefault(),kt(Ht),re("pdf");else if(Ht.indexOf("text/html")>-1)Rt.preventDefault(),kt(Ht),re("html");else if(Ht.startsWith("#")){Rt.preventDefault();let ze=document.getElementById(Ht.replace("#",""));ze&&ze.scrollIntoView(!0)}}}const Qt=()=>{var Rt;const ln=(Rt=We.current)==null?void 0:Rt.querySelectorAll("video");ln==null||ln.forEach(Ht=>{if(Ht.oncontextmenu=()=>!1,Ht.src.indexOf(".m3u8")>-1&&!Ht.canPlayType("application/vnd.apple.mpegurl")){if(pe.ZP.isSupported()){var ze=new pe.ZP;ze.loadSource(Ht.src),ze.attachMedia(Ht)}}})};(0,y.useEffect)(()=>{if(We.current&&He&&He.match(it)&&window.PR.prettyPrint(),We.current)return We.current.addEventListener("click",Nt),()=>{var Rt;(Rt=We.current)==null||Rt.removeEventListener("click",Nt),(0,de.AL)(),(0,de.Iy)()}},[He,We.current,Nt]);const un=Rt=>{Rt.target.nodeName==="IMG"&&Rt.target.className.indexOf("draw-flowchart")>-1?(lt.current.style.zIndex=1,lt.current.style.display="flex",lt.current.style.width=Rt.target.clientWidth+"px",lt.current.style.height=Rt.target.clientHeight+"px",lt.current.style.top=Rt.target.offsetTop+"px",lt.current.style.left=Rt.target.offsetLeft+"px",Rt.target.id&&(rt.current=Rt.target.id)):lt.current.style.display="none"},rn=()=>{lt.current.style.display="none"};return(0,y.useEffect)(()=>{var Rt;const ln=Ht=>{Ht.preventDefault(),Ht.clipboardData.setData("text",window.getSelection().toString())};return(Rt=We.current)==null||Rt.addEventListener("copy",ln),()=>{var Ht;(Ht=We.current)==null||Ht.removeEventListener("copy",ln)}},[We.current]),y.createElement("div",{style:{position:"relative"},onMouseLeave:rn},mt&&y.createElement("div",{ref:We,className:`${Se.mdBody} `},He),!mt&&!le(He)&&y.createElement("div",{ref:We,style:Re({},nt),onMouseOver:un,className:`${ue||""} ${jt?"disabled-fill":""} markdown-body ${Se.mdBody} ${ce.current}`,dangerouslySetInnerHTML:{__html:He}}),!mt&&le(He)&&y.createElement(Te,{html:He}),y.createElement("div",{ref:lt,className:`${Se.button} ${Ne?"":Se.previewFlowChart}`},y.createElement(ge.Z,null,y.createElement(se.ZP,{onClick:()=>{Ne?Ee(rt.current):(kt(rt.current),re("flowChart"))}},Ne?"\u7F16\u8F91":"\u9884\u89C8"))),y.createElement(Ae.Z,{close:!0,data:on,type:on!=null&&on.length?ae:"",style:Re({},Mt),onClose:()=>kt("")}))}},93493:function(bn,Wt,z){"use strict";z.d(Wt,{C:function(){return mt}});var y=z(59301),he={recalculation:"recalculation____i9AE",tips:"tips___GoMu8",filter:"filter___Vx7VO",input:"input___OEMMv",operating:"operating___TS9iA",operatingItem:"operatingItem___AT84q"},de=z(92310),$e=z.n(de),pe=z(62673),me=z(77019),ve=z(6767),Me=z(25399),ge=z(7939),se=z(62957),_e=z(70858),Ae=z(4875),tt=z(28284),je=z(29787),Te=z(68911),Ce=z(22972),Se=z(10102),Pe=z(39794),Ye=z(29596),ct=Object.defineProperty,Be=Object.defineProperties,Oe=Object.getOwnPropertyDescriptors,Re=Object.getOwnPropertySymbols,Ke=Object.prototype.hasOwnProperty,vt=Object.prototype.propertyIsEnumerable,it=(Ze,nt,Mt)=>nt in Ze?ct(Ze,nt,{enumerable:!0,configurable:!0,writable:!0,value:Mt}):Ze[nt]=Mt,Qe=(Ze,nt)=>{for(var Mt in nt||(nt={}))Ke.call(nt,Mt)&&it(Ze,Mt,nt[Mt]);if(Re)for(var Mt of Re(nt))vt.call(nt,Mt)&&it(Ze,Mt,nt[Mt]);return Ze},ut=(Ze,nt)=>Be(Ze,Oe(nt)),be=(Ze,nt,Mt)=>new Promise((Fe,ye)=>{var Bt=Ee=>{try{Lt(Mt.next(Ee))}catch(ot){ye(ot)}},jt=Ee=>{try{Lt(Mt.throw(Ee))}catch(ot){ye(ot)}},Lt=Ee=>Ee.done?Fe(Ee.value):Promise.resolve(Ee.value).then(Bt,jt);Lt((Mt=Mt.apply(Ze,nt)).next())});const et=pe.default.Group,Ne=({className:Ze,title:nt,items:Mt=[],value:Fe,onChange:ye})=>{const Bt=(Mt==null?void 0:Mt.length)===(Fe==null?void 0:Fe.length),jt=(Fe==null?void 0:Fe.length)>0&&(Fe==null?void 0:Fe.length)<(Mt==null?void 0:Mt.length),Lt=Ee=>{const ot=Mt.map(qe=>qe.id);ye(Ee.target.checked?ot:[])};return y.createElement(me.Z,{align:"middle",className:Ze},!!nt&&y.createElement("div",{className:"mr20",style:{color:"#5F6368"}},nt),y.createElement(pe.default,{indeterminate:jt,onChange:Lt,checked:Bt},"\u5168\u90E8"),y.createElement(et,{value:Fe,onChange:ye},Mt.map(Ee=>y.createElement(pe.default,{className:"ml30 c-black",key:Ee.id,value:Ee.id},Ee.name,y.createElement("span",null,`(${Ee.count})`)))))};var mt=({className:Ze,style:nt,dataSource:Mt})=>{var Fe,ye,Bt,jt,Lt,Ee,ot;const[qe,zt]=(0,y.useState)({}),[ht,lt]=(0,y.useState)(!0),[rt,on]=(0,y.useState)(!1),[kt,ae]=(0,y.useState)(!1),[re,te]=(0,y.useState)(null),[ie,ce]=(0,y.useState)(0),[ne,le]=(0,y.useState)({}),[Ie,bt]=(0,y.useState)(!0),[Ue,He]=(0,y.useState)(0),[at,ft]=(0,y.useState)(0),[Pt,Le]=(0,y.useState)(!1),We=(0,y.useRef)(null),[Nt,Qt]=(0,y.useState)(!1),[un,rn]=(0,y.useState)(!0),[Rt,ln]=(0,y.useState)([]),Ht={page:1,per_page:5,keyword:"",review:[],question_status:[],success_status:[],sort_by:null,direction:null},[ze,yt]=(0,y.useState)(Qe({},Ht));(0,y.useEffect)(()=>{Mt!=null&&Mt.question_id&&zt(Mt)},[Mt==null?void 0:Mt.question_id]),(0,y.useEffect)(()=>{var Ft;if(((Ft=qe==null?void 0:qe.exercise_question_resubmit)==null?void 0:Ft.status)==="running"){const Tt=setInterval(()=>{Ve()},3e3);return()=>clearInterval(Tt)}},[(Fe=qe==null?void 0:qe.exercise_question_resubmit)==null?void 0:Fe.status]),(0,y.useEffect)(()=>{var Ft;kt&&(kt===1&&(ze.question_status=Ct.map(Tt=>Tt.value),ze.review=$t.map(Tt=>Tt.value)),kt===2&&(ze.exercise_question_resubmit_id=(Ft=qe==null?void 0:qe.exercise_question_resubmit)==null?void 0:Ft.id,re===1&&(ze.success_status=[1]),re===2&&(ze.success_status=[0])),yt(Qe({},ze)),Kt(ze),ft(qe!=null&&qe.is_mirror?3:10),He(qe!=null&&qe.is_mirror?1:5))},[kt]),(0,y.useEffect)(()=>{Nt&&tn()},[Nt]);const Kt=Ft=>be(void 0,null,function*(){lt(!0);const Tt=yield(0,Ce.ZP)(`/api/exercise_questions/${qe==null?void 0:qe.question_id}/resubmit_student_list.json`,{method:"get",params:Ft});(Tt==null?void 0:Tt.status)==0&&(le(Tt||[]),ce(Tt==null?void 0:Tt.count)),lt(!1)}),tn=()=>be(void 0,null,function*(){rn(!0);const Ft=yield(0,Ce.ZP)(`/api/exercise_questions/${qe==null?void 0:qe.question_id}/resubmit_history.json`,{method:"get"});(Ft==null?void 0:Ft.status)==0&&ln((Ft==null?void 0:Ft.data)||[]),rn(!1)}),Ve=()=>be(void 0,null,function*(){const Ft=yield(0,Ce.ZP)(`/api/exercise_questions/${qe==null?void 0:qe.question_id}/resubmit_status.json`,{method:"get"});(Ft==null?void 0:Ft.status)==0&&zt(ut(Qe({},qe),{show_resubmit_history:!0,exercise_question_resubmit:(Ft==null?void 0:Ft.data)||{}}))}),Ct=[{label:"\u672A\u8BC4\u6D4B",value:2,color:"#9096A3"},{label:"\u672A\u901A\u5173",value:0,color:"#E30000"},{label:"\u5DF2\u901A\u5173",value:1,color:"#00B187"}],$t=[{label:"\u672A\u8BC4\u9605",value:0,color:"#9096A3"},{label:"\u8BC4\u9605\u4E2D",value:2,color:"#FF9D18"},{label:"\u5DF2\u8BC4\u9605",value:1,color:"#3061D0"}],dt=[{label:"\u6210\u529F",value:1,color:"#00B187"},{label:"\u5931\u8D25",value:0,color:"#E30000"}],Ot=[{title:"\u5E8F\u53F7",dataIndex:"key",render:(Ft,Tt,Ut)=>y.createElement("span",{className:"c-black"},Ut+1+(ze.page-1)*ze.per_page)},{title:"\u59D3\u540D",dataIndex:"user_name",render:Ft=>y.createElement("span",{className:"c-black"},Ft)},{title:"\u5B66\u53F7",dataIndex:"student_id",sorter:!0,render:Ft=>y.createElement("span",{className:"c-grey-666"},Ft||"--")},{title:"\u5206\u73ED",dataIndex:"group_name",render:Ft=>y.createElement("span",{className:"c-black"},Ft)},{title:"\u9898\u76EE\u72B6\u6001",dataIndex:"question_status",render:Ft=>{const{label:Tt,color:Ut}=Ct.find(an=>an.value===Ft)||{};return y.createElement("span",{style:{color:Ut}},Tt)}},{title:"\u9898\u76EE\u5F97\u5206",dataIndex:"question_score",sorter:!0,render:Ft=>y.createElement("span",{className:"c-black"},Ft)},{title:"\u6700\u7EC8\u6210\u7EE9",dataIndex:"score",sorter:!0,render:Ft=>y.createElement("span",{className:"c-black"},Ft)},{title:"\u8BC4\u9605\u72B6\u6001",dataIndex:"review",render:Ft=>{const{label:Tt,color:Ut}=$t.find(an=>an.value===Ft)||{};return y.createElement("span",{style:{color:Ut}},Tt)}},kt===2&&{title:"\u91CD\u65B0\u8BC4\u6D4B\u7ED3\u679C",dataIndex:"success_status",render:Ft=>{const{label:Tt,color:Ut}=dt.find(an=>an.value===Ft)||{};return y.createElement("span",{style:{color:Ut}},Tt)}}].filter(Boolean),Gt=(Ft,Tt,Ut)=>{ze.page=Ft==null?void 0:Ft.current,ze.per_page=Ft==null?void 0:Ft.pageSize,Ut!=null&&Ut.order?(ze.sort_by=Ut==null?void 0:Ut.field,ze.direction=(Ut==null?void 0:Ut.order)==="ascend"?"asc":"desc"):(ze.sort_by=null,ze.direction=null),yt(Qe({},ze)),Kt(ze)},mn=()=>{if(!Ue){ve.ZP.warning("\u8BF7\u8F93\u5165\u91CD\u65B0\u8BC4\u6D4B\u4EFB\u52A1\u5E76\u53D1\u4EBA\u6570");return}Le(!0)},An=()=>be(void 0,null,function*(){var Ft,Tt;if((Ft=We.current)!=null&&Ft.onVerify())return;on(!0);const Ut=yield(0,Ce.ZP)(`/api/exercise_questions/${qe==null?void 0:qe.question_id}/resubmit.json`,{method:"post",body:{keyword:ze.keyword,question_status:ze.question_status,review:ze.review_status,success_status:ze.success_status,use_max_score:Ie,permits:Ue,exercise_question_resubmit_id:kt===1?null:(Tt=qe==null?void 0:qe.exercise_question_resubmit)==null?void 0:Tt.id}});(Ut==null?void 0:Ut.status)==0&&(yield Ve(),ve.ZP.success("\u64CD\u4F5C\u6210\u529F"),Le(!1),ae(!1)),on(!1)}),hn=(Ft,Tt)=>{ze.page=1,ze[Tt]=Ft,yt(Qe({},ze)),Kt(ze)},Fn=["","\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:$e()(he.recalculation,Ze),style:nt},y.createElement(Me.Z,{title:Fn[(qe==null?void 0:qe.disable_resubmit_reason)||0]},y.createElement(ge.ZP,{disabled:(qe==null?void 0:qe.disable_resubmit)||((ye=qe==null?void 0:qe.exercise_question_resubmit)==null?void 0:ye.status)==="running",onClick:()=>ae(1),icon:y.createElement("i",{className:"iconfont icon-zhongxinpingce font14"}),type:"primary",ghost:!0},"\u91CD\u65B0\u8BC4\u6D4B\u7B97\u5206")),(qe==null?void 0:qe.show_resubmit_history)&&y.createElement(y.Fragment,null,((Bt=qe==null?void 0:qe.exercise_question_resubmit)==null?void 0:Bt.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"},(jt=qe==null?void 0:qe.exercise_question_resubmit)==null?void 0:jt.rate)):y.createElement("div",{className:"c-grey-666"},"\u91CD\u65B0\u8BC4\u6D4B\u6210\u529F",y.createElement("span",{onClick:()=>{ae(2),te(1)},className:"current",style:{color:"#3061D0",textDecoration:"underline",margin:"0 3px"}},(Lt=qe==null?void 0:qe.exercise_question_resubmit)==null?void 0:Lt.success_student_count),"\u4EBA\uFF0C\u5931\u8D25",y.createElement("span",{onClick:()=>{ae(2),te(2)},className:"current",style:{color:"#E30000",textDecoration:"underline",margin:"0 3px"}},(Ee=qe==null?void 0:qe.exercise_question_resubmit)==null?void 0:Ee.fail_count),"\u4EBA"),y.createElement(Me.Z,{title:"\u64CD\u4F5C\u8BB0\u5F55"},y.createElement("i",{onClick:()=>Qt(!0),className:"iconfont icon-chakanshenqingjilu c-light-primary current font14"})))),y.createElement(se.default,{centered:!0,open:!!kt,title:`\u91CD\u65B0\u8BC4\u6D4B${kt===1?"\u7B97\u5206":"\u7ED3\u679C"}`,width:870,okText:"\u91CD\u65B0\u8BC4\u6D4B\u7B97\u5206",onCancel:()=>ae(!1),onOk:mn,afterClose:()=>{bt(!0),te(null),yt(Qe({},Ht))}},y.createElement("div",{className:he.filter},kt===1&&y.createElement(y.Fragment,null,y.createElement("div",{className:he.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(Ne,{className:"mt10",title:"\u9898\u76EE\u72B6\u6001",items:(ne==null?void 0:ne.question_status)||[],value:ze.question_status,onChange:Ft=>hn(Ft,"question_status")}),y.createElement(Ne,{className:"mt10",title:"\u8BC4\u9605\u72B6\u6001",items:(ne==null?void 0:ne.review_status)||[],value:ze.review,onChange:Ft=>hn(Ft,"review")})),kt===2&&y.createElement(y.Fragment,null,y.createElement(Ne,{className:"mt10",title:"\u91CD\u65B0\u8BC4\u6D4B\u7ED3\u679C",items:(ne==null?void 0:ne.success_status)||[],value:ze.success_status,onChange:Ft=>hn(Ft,"success_status")})),y.createElement(Ye.t7,{className:he.input,style:{bottom:kt===1?10:-5},value:ze.keyword,onChange:Ft=>hn(Ft,"keyword"),placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u8005\u5B66\u53F7\u641C\u7D22"})),y.createElement(_e.default,{className:"mt20",columns:Ot,scroll:((ot=ne==null?void 0:ne.data)==null?void 0:ot.length)>7?{y:300}:{},dataSource:(ne==null?void 0:ne.data)||[],loading:ht,onChange:Gt,pagination:{total:ie,pageSize:ze.per_page,current:ze.page,hideOnSinglePage:!ie,showSizeChanger:!0,pageSizeOptions:["5","10","20","50","100"],showQuickJumper:!0,size:"default",showTotal:Te.rU}}),y.createElement(me.Z,{justify:"space-between",align:"middle",className:"mt10"},y.createElement(pe.default,{className:"c-black",checked:Ie,onChange:Ft=>bt(Ft.target.checked)},"\u91CD\u65B0\u8BC4\u6D4B\u540E\u7684\u5206\u6570\u5927\u4E8E\u539F\u6765\u7684\u5206\u6570\u624D\u66F4\u65B0\u6210\u7EE9"),(0,Se.Ny)()&&y.createElement("div",{className:"c-black"},"\u91CD\u65B0\u8BC4\u6D4B\u4EFB\u52A1\u5E76\u53D1\u4EBA\u6570",y.createElement(Ae.Z,{className:"ml10 mr10",value:Ue,max:at,min:1,precision:0,onChange:Ft=>He(Ft)}),"\u4EBA",y.createElement(Me.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(se.default,{centered:!0,title:"\u91CD\u65B0\u8BC4\u6D4B\u7B97\u5206",open:Pt,width:494,zIndex:1001,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",confirmLoading:rt,destroyOnClose:!0,onOk:An,onCancel:()=>Le(!1)},y.createElement(tt.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:Ft=>We.current=Ft}))),y.createElement(se.default,{centered:!0,title:"\u64CD\u4F5C\u8BB0\u5F55",open:Nt,width:710,onCancel:()=>Qt(!1),footer:null},y.createElement(je.Z,{spinning:un},y.createElement("div",{className:he.operating},Rt.map((Ft,Tt)=>y.createElement("div",{key:Tt,className:he.operatingItem},y.createElement("div",{style:{flex:"0 0 180px"},className:"c-grey-666"},Ft==null?void 0:Ft.created_at),y.createElement("div",{className:"c-black"},Ft==null?void 0:Ft.user_name,"\u64CD\u4F5C\u4E86\u91CD\u65B0\u8BC4\u6D4B\u7B97\u5206"),(Ft==null?void 0:Ft.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"},Ft==null?void 0:Ft.rate)):y.createElement("div",{className:"c-black"},"\u91CD\u65B0\u8BC4\u6D4B\u6210\u529F",y.createElement("span",{style:{color:"#3061D0",margin:"0 3px"}},Ft==null?void 0:Ft.success_student_count),"\u4EBA\uFF0C\u5931\u8D25",y.createElement("span",{style:{color:"#E30000",margin:"0 3px"}},Ft==null?void 0:Ft.fail_count),"\u4EBA")))),y.createElement("div",{style:{height:20}}))))}},15567:function(bn,Wt,z){"use strict";z.d(Wt,{Z:function(){return Me}});var y=z(59301),he={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"},de=z(62957),$e="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAPCAYAAADUFP50AAAAAXNSR0IArs4c6QAAAUFJREFUOE+V0ktKw1AUxvH/rVqIxT4wkgwEUSmK4APRBfiYCKU7cOZEBOkadAMZiwhuwJETBQciFRTtwJkPBLW2BRGrRanU9kpN2sSYiGaWc/PjuznnCN2Qh8AkPo+AzXxKLLiPhW7ICtDqB4GzQkqM/huGFZgZcDCBBDaaicsTMKbZH2xfwdY5/ICAEGSasC0AwRYblj+gKkENwfy4WS9V4LHsgsk49EZteJKHdBa6w7AybdZzr3D64ILxGKjtNrx9gfsSRBSYtf6xZh1/u+qQClrIhtdFuHmGvhisJcz65RPsZl2Jc/3QE7FhpgDHuT80x2+O9cR1K/GiCDt3rkQ/+Ns43gDFD0YVmHIuQGOOmiGTARhxwkGd1cZ7Vwd0OppWr3911StpcV++Iwn67q/kyBMuHchErcqwFxT1XZXsfQJqo2zI6kdI4QAAAABJRU5ErkJggg==",pe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAW1JREFUOE+dkj1IQmEUht9z/blp4VQEjS39eW+oSCFCpFCI4BiKFGWWQUSrCjVVg+lQNJZQDZGNTm1B4NTibS3n2lo0wuqEN8i/a0HfeN7v+d73nO+QJEcKAJzQPAwCnSpKNtoqkyRHqgDrtUFAb6Rnedx43KgT6O5P0GQijFiNLe/Sy3/B8g+YTIRRrb5jP32JYNADr8eOldU0RJEqVlm8r1kyuA/AIEB10OWy4vBgA4ryCIdjCJlMDmfn1zAY6EmyGY/UrAwrgGATWKsn4mGEQl4Uiw+YX9hT73aZiEcl8eMbZAGA0AT6/ZPY3Ykiny/A55tA7uoGqdQFBD2VbDbDugoSTTEj3gTGYgG8Vt7UeG63hNkZJ7a2s+gw1XqPnf5REKhkt4kxNakO08ycbOtRC/7FcakCwNTJ0WwmDI+1LUCZZDkSYGa5Eewf0G0KAnprNYtFQHdPbZhNS1cmLafF5bUTJsyBSVMHPm+/ADTrfrtCH68WAAAAAElFTkSuQmCC",me=(ge,se,_e)=>new Promise((Ae,tt)=>{var je=Se=>{try{Ce(_e.next(Se))}catch(Pe){tt(Pe)}},Te=Se=>{try{Ce(_e.throw(Se))}catch(Pe){tt(Pe)}},Ce=Se=>Se.done?Ae(Se.value):Promise.resolve(Se.value).then(je,Te);Ce((_e=_e.apply(ge,se)).next())}),Me=({type:ge,resdata:se,onok:_e,oktext:Ae,okloading:tt})=>{const[je,Te]=(0,y.useState)(!1),{can_copy_list:Ce,can_copy_num:Se,challenge_type:Pe,course_data_list:Ye,no_copy_list:ct,no_copy_num:Be,no_use_list:Oe,no_use_num:Re,repeat_shixun_num:Ke,student_count:vt,total_num:it,use_num:Qe}=se;let ut=Se>0||ge==="exercise";(0,y.useEffect)(()=>{(se==null?void 0:se.student_count)>0&&Te(!0)},[se]),console.log("---11",tt),(0,y.useEffect)(()=>{tt||Te(!1)},[tt]);const be=()=>{if(ge==="exercise"&&Pe===1)return y.createElement(y.Fragment,null,"\u8BFE\u5802\u5185\u6709",y.createElement("span",{className:he.orangeColor},vt),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",y.createElement("span",{className:he.orangeColor},Qe),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",y.createElement("span",{className:he.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(ge==="exercise"&&Pe===2)return y.createElement(y.Fragment,null,"\u8BFE\u5802\u5185\u6709",y.createElement("span",{className:he.orangeColor},vt),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",y.createElement("span",{className:he.orangeColor},Qe),"\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:he.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(ge==="shixun"&&Pe===1)return y.createElement(y.Fragment,null,"\u8BFE\u5802\u5185\u6709",y.createElement("span",{className:he.orangeColor},vt),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C",y.createElement("span",{className:he.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(ge==="shixun"&&Pe===2)return y.createElement(y.Fragment,null,"\u8BFE\u5802\u5185\u6709",y.createElement("span",{className:he.orangeColor},vt),"\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:he.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(ge==="subject"&&Pe===1)return y.createElement(y.Fragment,null,"\u8BFE\u5802\u5185\u6709",y.createElement("span",{className:he.orangeColor},vt),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",y.createElement("span",{className:he.orangeColor},Qe),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",y.createElement("span",{className:he.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(ge==="subject"&&Pe===2)return y.createElement(y.Fragment,null,"\u8BFE\u5802\u5185\u6709 ",y.createElement("span",{className:he.orangeColor},vt)," \u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u6311\u6218\u8FC7\u5176\u4E2D\u7684 ",y.createElement("span",{className:he.orangeColor},Qe)," \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:he.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(ge==="exercisepush")return y.createElement(y.Fragment,null,"\u8BFE\u5802\u5185\u6709",y.createElement("span",{className:he.orangeColor},vt),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BD5\u5377\u4E2D\u7684",y.createElement("span",{className:he.orangeColor},Qe),"\u4E2A\u5B9E\u8DF5\u9879\u76EE \uFF0C",y.createElement("span",{className:he.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(ge==="shixunpush"&&Pe===1)return y.createElement(y.Fragment,null,"\u8BFE\u5802\u5185\u6709",y.createElement("span",{className:he.orangeColor},vt),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",y.createElement("span",{className:he.orangeColor},Qe),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",y.createElement("span",{className:he.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(ge==="shixunpush"&&Pe===2)return y.createElement(y.Fragment,null,"\u8BFE\u5802\u5185\u6709",y.createElement("span",{className:he.orangeColor},vt),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7",y.createElement("span",{className:he.orangeColor},Qe),"\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:he.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"))},et=()=>{if(ge==="exercise"||ge==="subject"||ge==="exercisepush"||ge==="shixunpush")return y.createElement("div",{style:{marginTop:20}},Be>0&&y.createElement("div",null,y.createElement("span",{className:he.flex},y.createElement("img",{src:pe,style:{width:14}}),y.createElement("span",{className:he.statustitle},"\u4E0D\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),y.createElement("div",{className:he.statusbody},ge==="exercise"&&y.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",y.createElement("span",{className:he.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"),(ge==="subject"||ge==="exercisepush")&&y.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",ut&&y.createElement("span",{className:he.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"),ge==="shixunpush"&&y.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",ut&&y.createElement("span",{className:he.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,ct==null?void 0:ct.map((Ne,ue)=>y.createElement("a",{href:`/shixuns/${Ne.identifier}/challenges`,target:"_blank"},"\u300A",Ne==null?void 0:Ne.name,"\u300B",ue+1!==Be&&"\u3001"))))),Se>0&&y.createElement("div",{style:{marginTop:20}},y.createElement("span",{className:he.flex},y.createElement("img",{src:$e,style:{width:14}}),y.createElement("span",{className:he.statustitle},"\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),y.createElement("div",{className:he.statusbody},ge==="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"),(ge==="subject"||ge==="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"),ge==="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,Ce==null?void 0:Ce.map((Ne,ue)=>y.createElement("a",{href:`/shixuns/${Ne.identifier}/challenges`,target:"_blank"},"\u300A",Ne==null?void 0:Ne.name,"\u300B",ue+1!==Se&&"\u3001"))))));if(ge==="shixun")return y.createElement("div",{style:{marginTop:20}},Se>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(de.default,{open:je,onCancel:()=>{Te(!1)},cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",width:700,centered:!0,cancelButtonProps:{style:{display:!ut&&"none"}},zIndex:1003,confirmLoading:tt,okText:ut?Ae:"\u6211\u77E5\u9053\u4E86",onOk:()=>me(void 0,null,function*(){ut?yield _e([...Ce,...Oe]):Te(!1)})},y.createElement("div",{style:{maxHeight:600,overflow:"auto"}},be(),et()))}},20150:function(bn,Wt,z){"use strict";z.d(Wt,{Z:function(){return me}});var y=z(59301),he={btn:"btn___kReTL",redBtn:"redBtn___UFEL0"},de=z(92310),$e=z.n(de),me=({className:ve,style:Me,state:ge,onClick:se})=>{var _e,Ae;return y.createElement("div",{onClick:se,className:$e()(ge?(_e=he)==null?void 0:_e.redBtn:(Ae=he)==null?void 0:Ae.btn,ve),style:Me},ge?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")))}},56383:function(bn,Wt,z){"use strict";z.d(Wt,{h:function(){return Be}});var y=z(59301),he=z(82326),de=z(28284),$e=z(7939),pe=z(89780),me=z.n(pe),ve=z(3706),Me=z(96772),ge=Object.defineProperty,se=Object.defineProperties,_e=Object.getOwnPropertyDescriptors,Ae=Object.getOwnPropertySymbols,tt=Object.prototype.hasOwnProperty,je=Object.prototype.propertyIsEnumerable,Te=(Oe,Re,Ke)=>Re in Oe?ge(Oe,Re,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Oe[Re]=Ke,Ce=(Oe,Re)=>{for(var Ke in Re||(Re={}))tt.call(Re,Ke)&&Te(Oe,Ke,Re[Ke]);if(Ae)for(var Ke of Ae(Re))je.call(Re,Ke)&&Te(Oe,Ke,Re[Ke]);return Oe},Se=(Oe,Re)=>se(Oe,_e(Re));const Pe=he.default.Option,Ye={labelCol:{span:4},wrapperCol:{span:20}},ct={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"]};Wt.Z=({callback:Oe,onCancel:Re})=>{const[Ke,vt]=(0,y.useState)("python");function it(ut){vt(ct[ut][1])}function Qe(ut){Oe(ut)}return y.createElement(de.default,Se(Ce({},Ye),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Qe,style:{width:500}}),y.createElement(de.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},y.createElement(he.default,{getPopupContainer:ut=>ut.parentNode,onChange:it},Object.keys(ct).map(ut=>y.createElement(Pe,{key:ut,value:ut},ct[ut][0])))),y.createElement(de.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},y.createElement(Be,{mode:Ke})),y.createElement("div",{className:"flex-container flex-end"},y.createElement($e.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),y.createElement($e.ZP,{type:"ghost",onClick:Re},"\u53D6\u6D88")))};function Be({value:Oe,onChange:Re,mode:Ke,options:vt={}}){const it=(0,y.useRef)(),[Qe,ut]=(0,y.useState)();return(0,y.useEffect)(()=>{if(Qe){let be=function(et){const Ne=et.getValue();Re&&Re(Ne)};return Qe.on("change",be),()=>{Qe.off("change",be)}}},[Qe,Re]),(0,y.useEffect)(()=>{Qe&&Qe.setOption("mode",Ke)},[Qe,Ke]),(0,y.useEffect)(()=>{Qe&&(Oe!==Qe.getValue()||Oe==="")&&setTimeout(()=>{Qe.setValue(Oe||"")},300)},[Qe,Oe]),(0,y.useEffect)(()=>{if(it.current&&!Qe){const be=me().fromTextArea(it.current,Ce({mode:Ke,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},vt));ut(be)}},[it.current,Qe]),y.createElement("div",{className:"my-codemirror-container"},y.createElement("textarea",{ref:it}))}},32862:function(bn,Wt,z){"use strict";z.d(Wt,{Z:function(){return an}});var y=z(59301),he=z(63823),de=z(89780),$e=z.n(de),pe=z(76374),me=z(3706),ve=z(6313),Me=z(25717),ge=z(99498),se=z(25419),_e=z(67549),Ae=z(56375),tt=({value:Xt="",className:yn,showTextOnly:sn,showLines:wn,style:Vn={}})=>{const Mn=(0,y.useMemo)(()=>"",[Xt]);return y.createElement(y.Fragment,null,y.createElement("div",{dangerouslySetInnerHTML:{__html:Mn}}))},je=Object.defineProperty,Te=Object.defineProperties,Ce=Object.getOwnPropertyDescriptors,Se=Object.getOwnPropertySymbols,Pe=Object.prototype.hasOwnProperty,Ye=Object.prototype.propertyIsEnumerable,ct=(Xt,yn,sn)=>yn in Xt?je(Xt,yn,{enumerable:!0,configurable:!0,writable:!0,value:sn}):Xt[yn]=sn,Be=(Xt,yn)=>{for(var sn in yn||(yn={}))Pe.call(yn,sn)&&ct(Xt,sn,yn[sn]);if(Se)for(var sn of Se(yn))Ye.call(yn,sn)&&ct(Xt,sn,yn[sn]);return Xt},Oe=(Xt,yn)=>Te(Xt,Ce(yn));let Re=[{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 Ke({onActionCallback:Xt,title:yn,icon:sn,actionName:wn,className:Vn="",children:Mn}){function $n(){Xt(wn)}return y.createElement("a",{title:yn,className:Vn,onClick:$n},y.createElement("i",{className:`${sn}`}),Mn)}var vt=({watch:Xt,showNullButton:yn,showNullProgramButton:sn,onActionCallback:wn,fullScreen:Vn,insertTemp:Mn,hidetoolBar:$n,extraUse:Wn})=>{const Hn=[...Re,{title:`${Xt?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Xt?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return y.createElement("ul",{className:"markdown-toolbar-container"},!$n&&Hn.map((ur,rr)=>y.createElement("li",{key:rr},ur.actionName?y.createElement(Ke,Oe(Be({},ur),{onActionCallback:wn})):y.createElement("span",{className:"v-line"}))),yn?y.createElement("li",null,y.createElement(Ke,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:wn},y.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,sn?y.createElement(y.Fragment,null,y.createElement("li",null,y.createElement(Ke,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:wn},y.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u5355\u884C\u586B\u7A7A\u9879"))),y.createElement("li",null,y.createElement(Ke,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:wn},y.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u591A\u884C\u586B\u7A7A\u9879")))):null,Mn&&y.createElement("li",null,y.createElement(Ke,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Mn}`,onActionCallback:wn},y.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Wn&&y.createElement("li",null,Wn),y.createElement("li",{className:"btn-full-screen"},y.createElement(Ke,{icon:`${Vn?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Vn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:wn})))},it=z(88969),Qe=z(28284),ut=z(37568),be=z(7939),et=Object.defineProperty,Ne=Object.defineProperties,ue=Object.getOwnPropertyDescriptors,mt=Object.getOwnPropertySymbols,Ze=Object.prototype.hasOwnProperty,nt=Object.prototype.propertyIsEnumerable,Mt=(Xt,yn,sn)=>yn in Xt?et(Xt,yn,{enumerable:!0,configurable:!0,writable:!0,value:sn}):Xt[yn]=sn,Fe=(Xt,yn)=>{for(var sn in yn||(yn={}))Ze.call(yn,sn)&&Mt(Xt,sn,yn[sn]);if(mt)for(var sn of mt(yn))nt.call(yn,sn)&&Mt(Xt,sn,yn[sn]);return Xt},ye=(Xt,yn)=>Ne(Xt,ue(yn));const Bt={labelCol:{span:4},wrapperCol:{span:20}};var jt=({callback:Xt,onCancel:yn})=>{function sn(wn){Xt(wn)}return y.createElement(Qe.default,ye(Fe({},Bt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:sn,style:{width:500}}),y.createElement(Qe.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},y.createElement(ut.default,null)),y.createElement(Qe.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},y.createElement(ut.default,null)),y.createElement("div",{className:"flex-container flex-end"},y.createElement(be.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),y.createElement(be.ZP,{type:"ghost",onClick:yn},"\u53D6\u6D88")))},Lt=z(56383),Ee=z(79203),ot=z(62957),qe=z(77019),zt=z(78265),ht=z(59301),lt=({callback:Xt,onCancel:yn})=>{const sn=document.createElement("canvas"),wn=sn.getContext("2d");sn.width=1e3,sn.height=800,wn.fillStyle="#ffffff",wn.fillRect(0,0,sn.width,sn.height);const Vn=sn.toDataURL("image/png");return ht.createElement(ot.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},ht.createElement(qe.Z,{style:{height:"100vh"}},ht.createElement(zt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Vn,visible:!0,title:String(Date.now())},onOk:Mn=>{Xt({src:Mn.url})},onClose:yn})))},rt=z(36207),on=z(5269),kt=z(6767),ae={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re",drawerWrap:"drawerWrap___MfDw8"},re=z(59301),ie=(0,y.forwardRef)(({onCancel:Xt,editImgId:yn,callback:sn},wn)=>{let Vn=(0,y.useRef)(),Mn=(0,y.useRef)(),$n=(0,y.useRef)(),Wn=(0,y.useRef)(!1);const Hn=(0,y.useRef)(!1);console.log("ref:",wn);const[ur,rr]=(0,y.useState)(0),[dn,xn]=(0,y.useState)("100vh");return(0,y.useEffect)(()=>{rr(1)},[]),(0,y.useImperativeHandle)(wn,()=>({setHeight:xn})),re.createElement("div",{ref:Hn,className:"body-overflow-initial"},re.createElement(rt.Z,{width:"100vw",height:dn,footer:null,closable:!0,placement:"bottom",open:!!ur,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${ae.drawerWrap}`,onClose:()=>{window.saveDrawData(jn=>{sn({src:`/api/attachments/${jn}`,id:jn})})},title:re.createElement(qe.Z,{align:"middle"},re.createElement(on.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),re.createElement(on.Z,{onClick:()=>{xn(dn==="60px"?"100vh":"60px")}},re.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),re.createElement(on.Z,{onClick:()=>{window.saveDrawData(jn=>{if(jn===null){kt.ZP.warning({content:"\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7ED8\u5236\u6D41\u7A0B\u56FE",key:"saveFlowChart"});return}kt.ZP.success({content:"\u4FDD\u5B58\u6210\u529F",key:"saveFlowChart",style:{zIndex:999999999}}),sn({src:`/api/attachments/${jn}`,id:jn,disabledClose:!0})})}},re.createElement(be.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},re.createElement("iframe",{src:`/drawio/src/main/webapp/?id=${yn||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:Mn})))}),ce=z(35783),ne=z(47889),le=z(4875);const Ie=ne.ZP.Group,bt={margin:"0 8px"};var Ue=({callback:Xt,onCancel:yn})=>{function sn(wn){Xt(wn)}return y.createElement(Qe.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:sn},y.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},y.createElement("span",{style:bt},"\u5355\u5143\u683C\u6570\uFF1A"),y.createElement("span",{style:bt},"\u884C\u6570"),y.createElement(Qe.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},y.createElement(le.Z,null)),y.createElement("span",{style:bt},"\u5217\u6570"),y.createElement(Qe.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},y.createElement(le.Z,null))),y.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},y.createElement("span",{style:bt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),y.createElement(Qe.default.Item,{name:"align"},y.createElement(Ie,null,y.createElement(ne.ZP,{value:"default"},y.createElement("i",{className:"fa fa-align-justify"})),y.createElement(ne.ZP,{value:"left"},y.createElement("i",{className:"fa fa-align-left"})),y.createElement(ne.ZP,{value:"center"},y.createElement("i",{className:"fa fa-align-center"})),y.createElement(ne.ZP,{value:"right"},y.createElement("i",{className:"fa fa-align-right"}))))),y.createElement("div",{className:"flex-container flex-end"},y.createElement(be.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),y.createElement(be.ZP,{type:"ghost",onClick:yn},"\u53D6\u6D88")))},He=z(58755),at=z(45936),ft=z.n(at),Le=(0,y.forwardRef)(({use3d:Xt,width:yn,height:sn,callback:wn,showSaveButton:Vn},Mn)=>{const $n=(0,y.useRef)(),Wn=(0,y.useRef)(),[Hn,ur]=(0,y.useState)(!1),rr=(0,y.useRef)({id:$n,appName:"graphing",width:yn||1e3,height:sn||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)(()=>{Wn.current=new(ft())(rr.current,!0),window.onload=function(){Wn.current.inject("applet_container")}},[]);const dn=()=>{var xn=window.ggbApplet.getPNGBase64(1,!0,72);return wn&&wn(xn),xn};return(0,y.useEffect)(()=>{rr.current.appName=Hn?"3D":"graphing",Wn.current.inject("applet_container")},[Hn]),(0,y.useEffect)(()=>{ur(Xt)},[Xt]),(0,y.useImperativeHandle)(Mn,()=>({getImgData:dn})),y.createElement(y.Fragment,null,y.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:$n}),y.createElement(qe.Z,{align:"middle"},y.createElement(on.Z,{flex:1},y.createElement(He.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Hn,onChange:xn=>ur(xn)})),y.createElement(on.Z,null,y.createElement(be.ZP,{size:"large",onClick:dn,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),We=z(9043);const Nt="link",Qt="upload-image",un="add-flowchart",rn="draw-image",Rt="add-flowchart",ln="code-block",Ht="add-table",ze="------------",yt={default:ze,left:`:${ze}`,center:`:${ze}:`,right:`${ze}:`};var Kt=z(2408),tn=z(68911);function Ve(){}let Ct=0;const $t=1e4,dt="\u2581",Ot="@\u2581\u2581@",Gt="@\u2581@",mn=`
**\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`,An=["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 hn(Xt){return/^\d+$/.test(Xt)?`${Xt}px`:Xt}const Ft=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Tt={[Ft+"-B"]:"bold",[Ft+"-I"]:"italic"},Ut={[Nt]:"\u6DFB\u52A0\u94FE\u63A5",[ln]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Qt]:"\u6DFB\u52A0\u56FE\u7247",[rn]:"\u6DFB\u52A0\u753B\u56FE",[un]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Ht]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var an=({defaultValue:Xt="",onChange:yn,width:sn="100%",height:wn=400,miniToolbar:Vn=!1,isFocus:Mn=!1,watch:$n,insertTemp:Wn,mode:Hn="markdown",id:ur="markdown-editor-id",showResizeBar:rr=!1,noStorage:dn=!1,showNullButton:xn=!1,showNullProgramButton:jn=!1,hidetoolBar:zn=!1,fullScreen:xt=!1,onBlur:_t,onCMBeforeChange:Je,onFullScreen:Dt,className:Ge="",disablePaste:At=!1,disabled:Jt=!1,disabledFill:Rn=!1,placeholder:Zn="",values:pt="",extraUse:Et,onAddBlank:St})=>{const[It,fn]=(0,y.useState)(null),[Bn,On]=(0,y.useState)(Xt),[Nn,qn]=(0,y.useState)($n),[nr,ir]=(0,y.useState)(xt),[lr,Qn]=(0,y.useState)(""),[ar,fr]=(0,y.useState)(0),[Sr,br]=(0,y.useState)(wn),[Zr,jr]=(0,y.useState)(!1),[hr,Mr]=(0,y.useState)(0),[eo,kr]=(0,y.useState)(0),Fr=(0,y.useRef)(),or=(0,y.useRef)(),Ur=(0,y.useRef)(),Rr=(0,y.useRef)(),Br=(0,y.useRef)(),Cr=(0,y.useRef)(),so=(0,he.useDispatch)();(0,y.useEffect)(()=>{const Un=window.scrollY||window.pageYOffset;On(pt),It==null||It.setValue(pt),window.scrollTo(0,Un)},[pt]),(0,y.useEffect)(()=>{Dt==null||Dt(nr)},[nr]),(0,y.useEffect)(()=>{if(Fr.current){let Un=function(sr,pr){var _r;if(At){pr.preventDefault();return}const Yr=pr.clipboardData;if(Yr){const to=Yr.types.toString(),Fo=Yr.items;if(to==="Files"||Yr.types.indexOf("Files")>-1){if(pr.preventDefault(),Hn=="stex")return;try{let Mo=Fo[1];((_r=Fo[0])==null?void 0:_r.kind)==="file"&&(Mo=Fo[0]);const Yo=Mo.getAsFile(),Jo=Yo.name.split(".").pop();(0,Ee.I)(Yo,ni=>{var ri,Mi,$i;ni.id?((ri=Yo==null?void 0:Yo.type)==null?void 0:ri.indexOf("image"))>-1?Jn.replaceSelection(`<img width="100%" src="/api/attachments/${ni.id}?type=${ni.content_type})" alt="" />`):((Mi=Yo==null?void 0:Yo.type)==null?void 0:Mi.indexOf("video"))>-1?Jn.replaceSelection(`<video width="100%" controls src="/api/attachments/${ni.id}"></video>`):(($i=Yo==null?void 0:Yo.type)==null?void 0:$i.indexOf("pdf"))>-1?Jn.replaceSelection(`<a href="/api/attachments/${ni.id}?type=${Yo.type}&disposition=inline" target="_blank">${Yo.name}</a>`):An.includes(Jo)?Jn.replaceSelection(`<a href="/api/attachments/${ni.id}?type=office&disposition=inline" target="_blank">${Yo.name}</a>`):Jn.replaceSelection(`[${Yo.name}](/api/attachments/${ni.id}?type=${ni.content_type})`):(ni==null?void 0:ni.status)===401&&(document.location.href="/user/login")})}catch(Mo){kt.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Jn=$e().fromTextArea(Fr.current,{mode:Hn,lineNumbers:!Vn,lineWrapping:!0,value:Xt,autoCloseTags:!0,autoCloseBrackets:!0});return Jn.on("keyup",function(sr,pr){pr.keyCode===8&&(sr.getValue()==""?Jn.setOption("placeholder",Zn):Jn.setOption("placeholder",null))}),Jn.on("keydown",function(sr,pr){if(pr.keyCode===8){var _r=ti(sr);_r&&pr.preventDefault()}}),Mn&&Jn.focus(),Jn.on("paste",Un),Jt&&Jn.on("beforeChange",function(sr,pr){(pr.origin==="paste"||pr.origin==="+input")&&pr.cancel()}),fn(Jn),()=>{Jn.off("paste",Un)}}},[]);const Ho=(0,y.useCallback)(()=>{if(or.current)try{}catch(Un){console.log(Un,"---- to set md editor body height")}},[Sr,or,nr]);(0,y.useEffect)(()=>{function Un(){let Jn=new pe.Z(sr=>{for(let pr of sr)(pr.target.offsetHeight>0||pr.target.offsetWidth>0)&&(Ho(),It.setSize("100%","100%"),It.refresh())});return Jn.observe(Fr.current.parentElement),Jn}if(It){const Jn=Un();return()=>{var sr,pr;(sr=Fr.current)!=null&&sr.parentElement&&Jn.unobserve((pr=Fr.current)==null?void 0:pr.parentElement)}}},[It,Ho]),(0,y.useEffect)(()=>{if(It){let Un=[];for(const[Jn,sr]of Object.entries(Tt)){let pr={[Jn]:()=>{xo(sr)}};Un.push(pr),It.addKeyMap(pr)}return()=>{for(let Jn of Un)It.removeKeyMap(Jn)}}},[It]),(0,y.useEffect)(()=>{xt!==nr&&ir(xt)},[xt]),(0,Kt.Z)(()=>{if(!dn&&ar>0){let Un=new Date().getTime(),Jn=window.sessionStorage.getItem(ur);Un>=ar+$t&&(!Jn||Jn!==Bn)&&(window.sessionStorage.setItem(ur,Bn),jr(!0))}},$t),(0,y.useEffect)(()=>{qn($n)},[It,$n]),(0,y.useEffect)(()=>{It&&Mn&&It.focus()},[It,Mn]),(0,y.useEffect)(()=>{if(Nn&&It){let Un=function(sr){let pr=sr.target;if(Rr.current){let _r=pr.scrollTop/pr.scrollHeight;Rr.current.scrollTop=Rr.current.scrollHeight*_r}};const Jn=It.getScrollerElement();return Jn.addEventListener("scroll",Un),()=>{Jn.removeEventListener("scroll",Un)}}},[It,Nn]),(0,y.useEffect)(()=>{if(It&&Je){let Un=function(Jn,sr){Je(Jn,sr)};return It.on("beforeChange",Un),()=>{It.off("beforeChange",Un)}}},[It,Je]),(0,y.useEffect)(()=>{if(It&&_t){let Un=function(){_t(It.getValue())};return It.on("blur",Un),()=>{It.off("blur",Un)}}},[It,_t]);function ti(Un,Jn){var sr=Un.getDoc(),pr=sr.getCursor(),_r=sr.getLine(pr.line),Yr=_r.charAt(pr.ch-1),to=_r.lastIndexOf("@\u2581@",pr.ch),Fo=_r.lastIndexOf("@\u2581\u2581@",pr.ch),Mo=to>Fo?to:Fo,Yo=to>Fo?3:4;if(Ot.indexOf(Yr)===-1)return null;if(console.log("change1:",Jn,Un,_r,pr,Mo,to,Fo,Yr),Mo>=0&&pr.ch-Mo<5){var Jo=Mo+Yo;return sr.replaceRange("",{line:pr.line,ch:Mo},{line:pr.line,ch:Jo}),{line:pr.line,ch:Jo}}return null}(0,y.useEffect)(()=>{if(It){let Un=function(Jn,sr){const pr=Jn.getValue();On(pr),fr(new Date().getTime()),Jn.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),yn&&(jn?yn(pr,Gn(pr)):yn(pr))};return It.on("change",Un),()=>{It.off("change",Un)}}},[It,yn]),(0,y.useEffect)(()=>{if(It)if(Xt==null)It.setValue(""),On("");else{const Un=window.scrollY||window.pageYOffset;Xt!==It.getValue()&&(It.setValue(Xt),On(Xt),It.setCursor(Jt?1:It.lineCount(),0),window.scrollTo(0,Un))}},[It,Xt]);const xo=(0,y.useCallback)(Un=>{const Jn=It.getCursor(),sr=It.getSelection();let pr=sr.split(`
`);switch(Un){case"bold":return It.replaceSelection("**"+sr+"**"),sr===""&&It.setCursor(Jn.line,Jn.ch+2),It.focus();case"italic":return It.replaceSelection("*"+sr+"*"),sr===""&&It.setCursor(Jn.line,Jn.ch+1),It.focus();case"code":return It.replaceSelection("`"+sr+"`"),sr===""&&It.setCursor(Jn.line,Jn.ch+1),It.focus();case"inline-latex":return(0,tn.Ye)(so)?void 0:(Qn("inline-latex"),It.focus());case"latex":return It.replaceSelection("```latex\n"+sr+"\n```"),It.setCursor(Jn.line+1,sr.length+1),It.focus();case"line-break":return It.replaceSelection(`<br/>
`),It.focus();case"list-ul":return sr===""?It.replaceSelection("- "+sr):It.replaceSelection(pr.map(_r=>_r===""?"":`- ${_r}`).join(`
`)),It.focus();case"list-ol":return sr===""?It.replaceSelection("1. "+sr):It.replaceSelection(pr.map((_r,Yr)=>_r===""?"":`${Yr+1}. ${_r}`).join(`
`)),It.focus();case"add-null-ch":St==null||St();return;case"add-signal":return sr===""&&It.setCursor(Jn.line,Jn.ch),It.replaceSelection(Gt),It.focus();case"add-multiple":return sr===""&&It.setCursor(Jn.line,Jn.ch),It.replaceSelection(Ot),It.focus();case"inster-template-1":return sr===""&&It.setCursor(Jn.line,Jn.ch),It.replaceSelection(mn),It.focus();case"eraser":return It.setValue(""),It.focus();case"trigger-watch":return qn(!Nn),It.focus();case"trigger-full-screen":return ir(!nr),It.focus();case Nt:Qn(Nt);return;case ln:Qn(ln);return;case Qt:Qn(Qt);return;case rn:Qn(rn);return;case"maths-latex":if((0,tn.Ye)(so))return;Qn("maths-latex");return;case un:Br.current="",sessionStorage.removeItem("file_id"),Qn(un);return;case Ht:Qn(Ht);return;default:throw new Error}},[It,Nn,nr]),No=(0,y.useCallback)((Un,Jn)=>{var sr,pr,_r,Yr,to,Fo;Un!=null&&Un.disabledClose||Qn("");const{src:Mo,alt:Yo,id:Jo}=Un||{};switch(lr){case Nt:const{title:Xi,link:Yi}=Un;return It.replaceSelection(`[${Xi}](${Yi})`),It.focus();case ln:const{language:ta,content:Lo}=Un;return It.replaceSelection(["```"+ta,Lo,"```"].join(`
`)),It.focus();case"maths-latex":for(var ni=atob(Un),ri=new Uint8Array(ni.length),Mi=0;Mi<ni.length;Mi++)ri[Mi]=ni.charCodeAt(Mi);var $i=new Blob([ri],{type:"image/png"});(0,Ee.I)($i,da=>{da.id?It.replaceSelection(`![,](/api/attachments/${da.id}?type=${da.content_type})`):(da==null?void 0:da.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":if((0,tn.Ye)(so))return;It.replaceSelection("`$$"+Un+"$$`");break;case Rt:if(!Jo)return;It.getValue().indexOf(Mo)===-1?It.replaceSelection(`<center><img id="${Jo}" width="80%" src="${Mo}" class="draw-flowchart" alt="${Yo||""}" /></center>`):document.getElementById(Jo).src=ce.Z.API_SERVER+Mo+"?t="+Date.now();break;case Qt:case rn:const co=Jn,wi=(_r=(pr=(sr=co==null?void 0:co.name)==null?void 0:sr.split("."))==null?void 0:pr.pop)==null?void 0:_r.call(pr);return((Yr=co==null?void 0:co.type)==null?void 0:Yr.indexOf("image"))>-1||!(co!=null&&co.type)?co!=null&&co.align||co!=null&&co.width?It.replaceSelection(`<p style="text-align:${co.align||"initial"}"><img width="${co.width?co.width+"%":"initial"}" src="${Mo}" alt="${Yo||""}" /></p>`):It.replaceSelection(`<img width="100%" src="${Mo}" alt="${Yo||""}" />`):((to=co==null?void 0:co.type)==null?void 0:to.indexOf("video"))>-1?It.replaceSelection(`<video width="100%" controls src="${Mo}"></video>`):((Fo=co==null?void 0:co.type)==null?void 0:Fo.indexOf("pdf"))>-1?It.replaceSelection(`<a href="${Mo}?type=${co.type}&disposition=inline" target="_blank">${co.name}</a>`):An.includes(wi)?It.replaceSelection(`<a href="${Mo}?type=office&disposition=inline" target="_blank">${co.name}</a>`):It.replaceSelection(`[${co.name}](${Mo})`),It.focus();case Ht:const{row:wo,col:aa,align:Qa}=Un;let Ha=`
`;for(let da=0;da<wo;da++){let fa=[],Ti=[];for(let ka=0;ka<aa;ka++)da===1&&Ti.push(yt[Qa]),fa.push(" ");da===1&&(Ha+=`| ${Ti.join(" | ")} |
`),Ha+=`| ${fa.join(aa===1?"":" | ")} |
`}return It.replaceSelection(Ha+`
`),It.focus();default:throw new Error}},[It,lr]),To=(0,y.useMemo)(()=>{switch(lr){case Nt:return y.createElement(jt,{callback:No,onCancel:Xo});case ln:return y.createElement(Lt.Z,{callback:No,onCancel:Xo});case Qt:return y.createElement(Ee.Z,{callback:No,onCancel:Xo});case un:return y.createElement(ie,{editImgId:Br.current,callback:No,onCancel:Xo});case Ht:return y.createElement(Ue,{callback:No,onCancel:Xo});case"maths-latex":return y.createElement(Le,{showSaveButton:!0,callback:No});case"inline-latex":return y.createElement(We.Z,{showSaveButton:!0,callback:No});default:return null}},[lr]);function Xo(){Qn("")}(0,y.useEffect)(()=>{if(Ur.current){let Un=function(to){_r=!0,Yr=to.pageY},Jn=function(){_r=!1},sr=function(to){if(_r){let Fo=to.pageY-Yr;Fo<0&&(Fo=0),Fo>300&&(Fo=300);let Mo=wn+Fo+"px";br(Mo)}},pr=Ur.current,_r=!1,Yr=0;return pr.addEventListener("mousedown",Un),document.addEventListener("mousemove",sr),document.addEventListener("mouseup",Jn),()=>{pr.removeEventListener("mousedown",Un),document.removeEventListener("mousemove",sr),document.removeEventListener("mouseup",Jn)}}},[It,Ur]),(0,y.useEffect)(()=>{br(wn)},[wn]);const ko=hn(sn),go=hn(Sr),dr={width:ko,height:go},Tn=(0,y.useMemo)(()=>{if(ar){let Un=new Date(ar),Jn=Un.getHours(),sr=Un.getMinutes(),pr=Un.getSeconds();return Jn=Jn<10?"0"+Jn:Jn,sr=sr<10?"0"+sr:sr,pr=pr<10?"0"+pr:pr,`${Jn}:${sr}:${pr}`}return 0},[ar]),Gn=Un=>{const Jn=[];if(jn){let sr=-1;Un=Un.replace(/(@▁▁@|@▁@)/g,function(pr,_r,Yr){Jn.push({multiLine:pr!==Gt})})}return Jn};function Yn(){window.sessionStorage.removeItem(ur),jr(!1),fr(0)}function Ln(){jr(!1),fr(0),It.setValue(window.sessionStorage.getItem(ur))}(0,y.useEffect)(()=>{Ut[lr]&&lr!==rn&&lr!==un&&setTimeout(()=>{const Un=document.getElementsByClassName("markdown-popup-form")[0],Jn=window.innerWidth/2-Un.offsetWidth/2,sr=window.innerHeight/2-Un.offsetHeight/2;Mr(Jn),kr(sr)},0)},[lr]);const mr=Un=>{Un.preventDefault();const Jn=Un.clientX-hr,sr=Un.clientY-eo;document.body.onmousemove=pr=>{let _r=pr.clientX-Jn,Yr=pr.clientY-sr;const to=document.getElementsByClassName("markdown-popup-form")[0],Fo=window.innerWidth-to.offsetWidth,Mo=window.innerHeight-to.offsetHeight;_r=Math.max(0,Math.min(_r,Fo)),Yr=Math.max(0,Math.min(Yr,Mo)),wr(pr.clientX,pr.clientY,Jn,sr)&&(Mr(_r),kr(Yr))},document.body.onmouseup=function(){document.body.onmousemove=null}},wr=(Un,Jn,sr,pr)=>{const _r=document.body.clientHeight,Yr=document.body.clientWidth;return Un<20&&sr>Un||Un>Yr-20&&sr<Un||Jn<20&&pr>Jn||Jn>_r-20&&pr<Jn?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return y.createElement(y.Fragment,null,y.createElement("div",{className:"markdown-editor-wrapper",ref:or},y.createElement("div",{className:`markdown-editor-container ${Ge} ${Nn?"on-preview":""} ${Vn?"mini":""} ${nr?"full-screen":""}`,style:dr},y.createElement(vt,{insertTemp:Wn,watch:Nn,fullScreen:nr,showNullButton:xn,showNullProgramButton:jn,onActionCallback:xo,hidetoolBar:zn,extraUse:Et}),y.createElement("div",{className:"markdown-editor-body"},y.createElement("div",{className:"codemirror-container"},y.createElement("textarea",{ref:Fr,placeholder:Zn})),Nn?y.createElement("div",{ref:Rr,className:"preview-container"},Hn==="stex"&&y.createElement(tt,{value:Bn}),Hn!=="stex"&&y.createElement(Ae.Z,{edit:!0,disabledFill:Rn,showProgramFill:jn,value:Bn,openEditor:Un=>{var Jn;Br.current=Un,(Jn=Cr.current)==null||Jn.setHeight("100vh"),setTimeout(()=>{Qn("add-flowchart")},150)}})):null))),rr?y.createElement("a",{ref:Ur,className:"editor-resize"}):null,lr===rn&&y.createElement(lt,{callback:No,onCancel:Xo}),lr===un&&y.createElement(ie,{ref:Cr,editImgId:Br.current,callback:No,onCancel:Xo}),y.createElement(it.Z,null,Ut[lr]&&lr!==rn&&lr!==un?y.createElement(ot.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:hr,top:eo},title:y.createElement("div",{style:{cursor:"move"},onMouseDown:mr},Ut[lr]),open:!0,onCancel:Xo,footer:null,destroyOnClose:!0,width:lr===un?"1200px":null,height:lr===un?"80vh":null,className:"markdown-popup-form"},To):null))}},79203:function(bn,Wt,z){"use strict";z.d(Wt,{Z:function(){return Re},I:function(){return vt}});var y=z(28284),he=z(6767),de=z(37568),$e=z(44104),pe=z(4875),me=z(47889),ve=z(7939),Me=z(8240),ge=z(59301),se=z(59301),_e=Object.defineProperty,Ae=Object.defineProperties,tt=Object.getOwnPropertyDescriptors,je=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,Ce=Object.prototype.propertyIsEnumerable,Se=(it,Qe,ut)=>Qe in it?_e(it,Qe,{enumerable:!0,configurable:!0,writable:!0,value:ut}):it[Qe]=ut,Pe=(it,Qe)=>{for(var ut in Qe||(Qe={}))Te.call(Qe,ut)&&Se(it,ut,Qe[ut]);if(je)for(var ut of je(Qe))Ce.call(Qe,ut)&&Se(it,ut,Qe[ut]);return it},Ye=(it,Qe)=>Ae(it,tt(Qe));const{useForm:ct}=y.default,Be={width:280,marginRight:10},Oe={labelCol:{span:5},wrapperCol:{span:19}};var Re=({callback:it,onCancel:Qe})=>{const[ut]=ct();let be=(0,ge.useRef)();function et(mt){be.current.width=ut.getFieldValue("width"),be.current.align=ut.getFieldValue("align"),it(mt,be.current)}function Ne(mt,Ze){if(mt.status===-1){he.ZP.error(mt.message);return}ut.setFieldsValue({src:`/api/attachments/${mt.id}`,type:Ze.type})}function ue(mt){let Ze=mt.target.files[0];be.current=Ze,vt(Ze,Ne)}return se.createElement(y.default,Ye(Pe({form:ut},Oe),{className:"upload-image-panel",onFinish:et,style:{width:470,overflow:"hidden"}}),se.createElement(y.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},se.createElement("div",{className:"flex-container"},se.createElement(y.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},se.createElement(de.default,{style:Be})),se.createElement(Ke,{onFileChange:ue}))),se.createElement(y.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},se.createElement(de.default,{style:{width:264}})),se.createElement(y.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},se.createElement($e.Z,null,se.createElement(y.default.Item,{name:"width",style:{margin:0}},se.createElement(pe.Z,{style:{width:264}})),se.createElement("span",{className:"ml8"},"%"))),se.createElement(y.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},se.createElement(me.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"}]})),se.createElement("aside",null,se.createElement(y.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},se.createElement(ve.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),se.createElement(ve.ZP,{type:"default",onClick:Qe},"\u53D6\u6D88"))))};function Ke({onFileChange:it}){return se.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",se.createElement("input",{type:"file",onChange:it}))}function vt(it,Qe){if(!it)throw new String("\u6CA1\u6709\u6587\u4EF6");let ut=new FormData;ut.append("editormd-image-file",it),ut.append("file_param_name","editormd-image-file"),ut.append("byxhr","true");var be=new window.XMLHttpRequest;be.withCredentials=!0,be.addEventListener("load",function(et){Qe(JSON.parse(et.target.responseText),it)},!1),be.addEventListener("error",function(et){console.error(et)},!1),be.open("POST",`${Me.KI}/api/attachments.json`),be.send(ut)}},88969:function(bn,Wt,z){"use strict";z.d(Wt,{Z:function(){return de}});var y=z(59301),he=z(4676);class de extends y.Component{constructor(pe){super(pe);const me=window.document;this.node=me.createElement("div"),me.body.appendChild(this.node)}render(){const{children:pe}=this.props;return(0,he.createPortal)(pe,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},94871:function(bn,Wt,z){"use strict";z.d(Wt,{SV:function(){return lt},ZP:function(){return ht}});var y=z(59301),he=z(76374);const de={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"]},$e={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"]},pe={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(`
`)}]},me={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(`
`)}]},ve={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 Me=z(53184),ge=z.n(Me),se=(rt,on,kt)=>new Promise((ae,re)=>{var te=ne=>{try{ce(kt.next(ne))}catch(le){re(le)}},ie=ne=>{try{ce(kt.throw(ne))}catch(le){re(le)}},ce=ne=>ne.done?ae(ne.value):Promise.resolve(ne.value).then(te,ie);ce((kt=kt.apply(rt,on)).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"]}},Ae=(rt,on,kt,ae)=>{const re=on.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:kt.lineNumber,endColumn:kt.column});return Array.from(new Set(re.match(/\b\w{2,}\b/g)||[])).map(ie=>({label:ie,kind:rt.languages.CompletionItemKind.Text,insertText:ie,range:ae}))},tt=(rt,on,kt,ae)=>{rt.languages.registerCompletionItemProvider(on,{provideCompletionItems(re,te){const ie=re.getWordUntilPosition(te),ce={startLineNumber:te.lineNumber,endLineNumber:te.lineNumber,startColumn:ie.startColumn,endColumn:ie.endColumn},ne=re.getLineContent(te.lineNumber).substring(ie.startColumn-2,ie.endColumn);return{suggestions:[...Ae(rt,re,te,ce),...kt.map(Ie=>({label:Ie,kind:rt.languages.CompletionItemKind.Keyword,documentation:Ie,insertText:Ie,insertTextRules:rt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ce})),...ae.map(Ie=>({label:Ie.label,kind:rt.languages.CompletionItemKind.Snippet,documentation:Ie.content,insertText:ne.startsWith("#")?Ie.content.replace(/#/,""):Ie.content,insertTextRules:rt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ce}))]}}})};var je=rt=>{_e.languages.forEach(on=>{rt.languages.registerDocumentFormattingEditProvider(on,{provideDocumentFormattingEdits(kt){return se(this,null,function*(){const ae=ge()(kt.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:kt.getFullModelRange(),text:ae}]})}})}),tt(rt,"java",$e.keywords,$e.quickKey),tt(rt,"cpp",pe.keywords,pe.quickKey),tt(rt,"c",de.keywords,[]),tt(rt,"python",me.keywords,me.quickKey),tt(rt,"scala",ve.keywords,ve.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 Ce=Object.defineProperty,Se=(rt,on,kt)=>on in rt?Ce(rt,on,{enumerable:!0,configurable:!0,writable:!0,value:kt}):rt[on]=kt,Pe=(rt,on,kt)=>Se(rt,typeof on!="symbol"?on+"":on,kt);const Ye=class ju{constructor(on,kt,ae){this.placeholder=on,this.editor=kt,this.monaco=ae,kt.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return ju.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(Ye,"ID","editor.widget.placeholderHint");var Be=Ye,Oe=z(96236),Re=z(6767),Ke=z(25399),vt=z(89392),it=z(99936),Qe=z(56102),ut=Object.defineProperty,be=Object.defineProperties,et=Object.getOwnPropertyDescriptors,Ne=Object.getOwnPropertySymbols,ue=Object.prototype.hasOwnProperty,mt=Object.prototype.propertyIsEnumerable,Ze=(rt,on,kt)=>on in rt?ut(rt,on,{enumerable:!0,configurable:!0,writable:!0,value:kt}):rt[on]=kt,nt=(rt,on)=>{for(var kt in on||(on={}))ue.call(on,kt)&&Ze(rt,kt,on[kt]);if(Ne)for(var kt of Ne(on))mt.call(on,kt)&&Ze(rt,kt,on[kt]);return rt},Mt=(rt,on)=>be(rt,et(on)),Fe=(rt,on)=>{var kt={};for(var ae in rt)ue.call(rt,ae)&&on.indexOf(ae)<0&&(kt[ae]=rt[ae]);if(rt!=null&&Ne)for(var ae of Ne(rt))on.indexOf(ae)<0&&mt.call(rt,ae)&&(kt[ae]=rt[ae]);return kt},ye=(rt,on,kt)=>new Promise((ae,re)=>{var te=ne=>{try{ce(kt.next(ne))}catch(le){re(le)}},ie=ne=>{try{ce(kt.throw(ne))}catch(le){re(le)}},ce=ne=>ne.done?ae(ne.value):Promise.resolve(ne.value).then(te,ie);ce((kt=kt.apply(rt,on)).next())});function Bt(rt){return/^\d+$/.test(rt)?`${rt}px`:rt}function jt(){}let Lt=!1;const Ee={"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 ot(rt=[]){let on=rt;if(Array.isArray(rt)){for(let kt=0;kt<rt.length;kt++){let ae=Ee[rt[kt]];if(ae)return ae}return on[0]}return Ee[on]||on}let qe=null;const zt=()=>ye(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(rt){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",rt)}});var ht=rt=>{var on=rt,{width:kt="100%",height:ae="100%",value:re,language:te="javascript",style:ie={},options:ce={},overrideServices:ne={},theme:le="vs-dark",onEditBlur:Ie,isCopy:bt=!1,onSave:Ue,autoHeight:He=!1,forbidCopy:at=!1,forbidCopyTips:ft,onChange:Pt=jt,editorDidMount:Le=jt,onFocus:We=jt,onBreakPoint:Nt=jt,breakPointValue:Qt=[],filename:un="educoder.txt",errorLine:rn,errorContent:Rt="",highlightLine:ln,openBreakPoint:Ht=!1,placeholder:ze="",showMiniMap:yt=!0}=on,Kt=Fe(on,["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 tn=(0,y.useRef)(),Ve=(0,y.useRef)({}),Ct=(0,y.useRef)(),$t=(0,y.useRef)(),dt=(0,y.useRef)([]),Ot=(0,y.useRef)(!1),Gt=(0,y.useRef)(),mn=(0,y.useRef)(),An=(0,y.useRef)(!1),[hn,Fn]=(0,y.useState)(!1);function Ft(){let dn;return tn.current&&(dn=new he.Z(xn=>{for(let jn of xn)(jn.target.offsetHeight>0||jn.target.offsetWidth>0)&&Ve.current.instance.layout()}),dn.observe(tn.current)),dn}function Tt(){Re.ZP.warning({content:decodeURIComponent(ft||Te),key:"monaco-editor-tip"})}const Ut=()=>{let dn=Ve.current.instance;if(re!=null&&dn&&hn){const xn=dn.getModel();xn&&re!==xn.getValue()&&(Lt=!0,xn.setValue(re),dn.layout(),Lt=!1)}};(0,y.useEffect)(()=>{const dn=it.Z.subscribe("formatDocument",xn=>{var jn;let zn=Ve.current.instance;(jn=zn==null?void 0:zn.getAction)==null||jn.call(zn,"editor.action.formatDocument").run()});return window.updateMonacoValue=xn=>{Pt(xn)},dn},[]),(0,y.useEffect)(()=>{var dn;let xn=Ve.current.instance;$t.current&&clearTimeout($t.current),$t.current=setTimeout(()=>{Ut()},500),re&&(re!=null&&re.length)&&((dn=xn==null?void 0:xn.updateOptions)==null||dn.call(xn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(re.split(/\r\n|\r|\n/g).length))+3,5)}))},[re,hn,Ve.current]),(0,y.useEffect)(()=>{if(rn&&Ve.current&&Ve.current.instance){let xn=Ve.current.instance;xn.changeViewZones(function(jn){var zn=document.createElement("div");zn.style.padding="10px 20px",zn.style.width="calc(100% - 20px)",zn.className="my-error-line-wrp",zn.innerHTML=Rt,jn.addZone({afterLineNumber:rn||11,heightInLines:3,domNode:zn})});var dn={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}};xn.addOverlayWidget(dn),xn.revealPositionInCenter({lineNumber:20,column:1})}},[rn,Ve.current,hn]);const an=(dn="",xn)=>{if(!dn||dn.trim()==="")return!0;const zn=Ve.current.instance.getModel().getLineTokens(xn);let xt=!1;for(let _t=0;_t<2;_t++)zn.getStandardTokenType(_t)===1&&(xt=!0);return xt};(0,y.useEffect)(()=>{var dn;const xn=(dn=Ve.current)==null?void 0:dn.instance;if(xn&&hn&&at){const jn=xn.onDidBlurEditorWidget(()=>{An.current=!1}),zn=xn.onDidFocusEditorText(()=>{An.current=!0});return()=>{jn.dispose(),zn.dispose()}}},[Ve.current,hn,at]),(0,y.useEffect)(()=>{var dn;if((dn=Ve.current)!=null&&dn.instance&&hn&&Ht){let xn=Ve.current.instance,jn=xn.getModel();if(!jn)return;(()=>{var Et;let St=[],It=[];const fn=jn.getAllDecorations();for(let On of fn)On.options.className==="highlighted-line"&&(St.push((Et=On==null?void 0:On.range)==null?void 0:Et.startLineNumber),It.push(On==null?void 0:On.id));if(ln===St[0])return;jn.deltaDecorations(It,[]);const Bn=jn.getLineCount();ln&&ln<=Bn&&(xn.deltaDecorations([],[{range:new qe.Range(ln,1,ln,jn.getLineMaxColumn(ln)),options:{isWholeLine:!0,className:"highlighted-line"}}]),xn.revealLineInCenter(ln))})();const xt=(Et=!1)=>{var St;let It=[],fn=[];const Bn=jn.getAllDecorations();for(let On of Bn)On.options.linesDecorationsClassName==="breakpoints-select"&&(It.push((St=On==null?void 0:On.range)==null?void 0:St.startLineNumber),fn.push(On==null?void 0:On.id));if(Et)return{lines:It,ids:fn};Nt(It)},_t=Et=>ye(void 0,null,function*(){let St={range:new qe.Range(Et,1,Et,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield jn.deltaDecorations([],[St]),xt()}),Je=Et=>ye(void 0,null,function*(){let St=[];const It=xn.getLineDecorations(Et);for(let fn of It)fn.options.linesDecorationsClassName==="breakpoints-select"&&St.push(fn.id);yield jn.deltaDecorations(St,[]),xt()}),Dt=Et=>{let St=xn.getLineDecorations(Et);for(let It of St)if(It.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,vt.isEqual)(Qt,xt(!0).lines)){jn.deltaDecorations(xt(!0).ids,[]);const Et=Qt.map(St=>({range:new qe.Range(St,1,St,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));jn.deltaDecorations([],Et)}const Ge=xn.onDidChangeModelContent(Et=>{let St=xn.getPosition();if(St){let It=St.lineNumber;clearTimeout(mn.current),mn.current=setTimeout(()=>{an(jn.getLineContent(It),It)?Je(It):Dt(It)?(Je(It),_t(It)):xt()},100)}}),At=xn.onMouseDown(Et=>{var St,It,fn;if(Et.target.detail&&((fn=(It=(St=Et.target)==null?void 0:St.element)==null?void 0:It.className)!=null&&fn.includes("line-numbers"))){let Bn=Et.target.position.lineNumber;if(an(jn.getLineContent(Bn),Bn))return;Dt(Bn)?Je(Bn):_t(Bn)}}),Jt=Et=>{let St={range:new qe.Range(Et,1,Et,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};dt.current=xn.deltaDecorations(dt.current,[St])},Rn=()=>{dt.current=xn.deltaDecorations(dt.current,[])},Zn=xn.onMouseMove(Et=>{var St,It,fn;if(Rn(),Et.target.detail&&((fn=(It=(St=Et.target)==null?void 0:St.element)==null?void 0:It.className)!=null&&fn.includes("line-numbers"))){let Bn=Et.target.position.lineNumber;if(an(jn.getLineContent(Bn),Bn))return;Jt(Bn)}}),pt=xn.onMouseLeave(()=>{Rn()});return()=>{Ge.dispose(),At.dispose(),Zn.dispose(),pt.dispose()}}},[Ve.current,hn,Qt,ln,Ht,te]),(0,y.useEffect)(()=>{var dn;(dn=Ve.current)!=null&&dn.instance&&Ht&&Ve.current.instance.setPosition({lineNumber:0,column:0})},[ln]);function Xt(){let dn=Ve.current.instance;if(dn){const xn=dn.getSelection(),jn=Ve.current.pastePos||{},zn=new qe.Range(jn.startLineNumber||xn.endLineNumber,jn.startColumn||xn.endColumn,jn.endLineNumber||xn.endLineNumber,jn.endColumn||xn.endColumn);setTimeout(()=>{dn.executeEdits("",[{range:zn,text:""}])},300)}}function yn(dn){(window.navigator.platform.match("Mac")?dn.metaKey:dn.ctrlKey)&&dn.keyCode==83&&(dn.preventDefault(),Ue())}const sn=()=>{if(He&&Ve.current.instance){const dn=Ve.current.instance.getContentHeight();ur(dn<ae?ae:dn)}else ur(ae)};function wn(dn){var xn=document.createEvent("MouseEvents");xn.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),dn.dispatchEvent(xn)}const Vn=dn=>{if(!An.current)return;const{keyCode:xn,ctrlKey:jn,metaKey:zn,target:xt,type:_t}=dn;return(_t==="paste"||(xn===67||xn===86)&&(zn||jn))&&xt.nodeName==="TEXTAREA"&&(Tt(),dn.preventDefault()),!1};function Mn(dn,xn){var jn=window.URL||window.webkitURL||window,zn=new Blob([xn]),xt=document.createElementNS("http://www.w3.org/1999/xhtml","a");xt.href=jn.createObjectURL(zn),xt.download=dn,wn(xt)}(0,y.useEffect)(()=>{sn()},[sn]),(0,y.useEffect)(()=>{tn.current&&!hn&&Promise.all([z.e(8909),z.e(1859)]).then(z.bind(z,71448)).then(dn=>{try{qe=dn,Ve.current.instance=qe.editor.create(tn.current,{value:re,language:ot(te),theme:le,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:yt||!1}},ne);const xn=Ve.current.instance;let xt=[...Oe.BH._menuItems].find(Ge=>Ge[0]._debugName=="EditorContext")[1],_t=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Je=(Ge,At)=>{var Jt,Rn;let Zn=Ge._first;do At.includes((Rn=(Jt=Zn.element)==null?void 0:Jt.command)==null?void 0:Rn.id)&&Ge._remove(Zn);while(Zn=Zn.next)};if(Le(xn,qe),setTimeout(()=>{sn(),Ve.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Mn(un||"educoder.txt",xn.getValue())}})},500),Ve.current.subscription=xn.onDidChangeModelContent(Ge=>{Ot.current?clearTimeout(Gt.current):(sn(),Pt(xn.getValue(),Ge)),Gt.current=setTimeout(()=>{Ot.current=!1},500)}),window.Monaco||je(qe,ot(te)),at&&(Je(xt,_t),tn.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Vn),window.removeEventListener("paste",Vn),window.addEventListener("keydown",Vn),window.addEventListener("paste",Vn)),window.Monaco=qe,Ie&&xn.onDidBlurEditorWidget(()=>{Ie(xn.getValue())}),We&&xn.onDidFocusEditorText(()=>{at&&zt(),We(xn.getValue())}),at){zt();try{xn.onDidPaste(Ge=>{const At=xn.getSelection(),Jt=Ve.current.pastePos||{},Rn=new qe.Range(Jt.startLineNumber||At.endLineNumber,Jt.startColumn||At.endColumn,Jt.endLineNumber||At.endLineNumber,Jt.endColumn||At.endColumn);xn.executeEdits("",[{range:Ge.range,text:""}])})}catch(Ge){}}let Dt=Ft();return ze&&typeof ze=="string"&&new Be(ze,xn,qe),Fn(!0),()=>{const Ge=Ve.current.instance;Ge.dispose();const At=Ge.getModel();At&&At.dispose(),Ve.current.subscription&&Ve.current.subscription.dispose(),Dt.unobserve(tn.current)}}catch(xn){}})},[]),(0,y.useEffect)(()=>{if(Ve.current.instance&&hn)return document.addEventListener("keydown",yn,!1),()=>{document.removeEventListener("keydown",yn)}},[Ue,hn]),(0,y.useEffect)(()=>{let dn=Ve.current.instance;if(dn&&hn){let xn=ot(te);qe.editor.setModelLanguage(dn.getModel(),xn)}},[te,hn]),(0,y.useEffect)(()=>{Ve.current.instance&&hn&&qe.editor.setTheme(le)},[le,hn]),(0,y.useEffect)(()=>{let dn=Ve.current.instance;Ct.current=ce,dn&&hn&&(dn.updateOptions(nt({},ce)),setTimeout(()=>{dn.getModel().updateOptions(nt({},ce))},200))},[JSON.stringify(ce),hn]),(0,y.useEffect)(()=>{let dn=Ve.current.instance;dn&&hn&&dn.layout()},[kt,ae,hn]);const[$n,Wn]=(0,y.useState)(Bt(kt)),[Hn,ur]=(0,y.useState)(Bt(ae)),rr=Mt(nt({},ie),{width:$n,height:Hn,position:"relative"});return y.createElement("div",{className:"my-monaco-editor",ref:tn,style:rr,onFocus:()=>{at&&zt()}},bt&&y.createElement(Qe.CopyToClipboard,{text:re,onCopy:()=>Re.ZP.success("\u590D\u5236\u6210\u529F")},y.createElement(Ke.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 lt({width:rt="100%",height:on="100%",original:kt,modified:ae,language:re,options:te={}}){const ie=(0,y.useRef)(),[ce,ne]=(0,y.useState)(null);function le(He){let at;return ie.current&&(at=new he.Z(ft=>{for(let Pt of ft)(Pt.target.offsetHeight>0||Pt.target.offsetWidth>0)&&He.layout()}),at.observe(ie.current)),at}(0,y.useEffect)(()=>(ie.current&&Promise.all([z.e(8909),z.e(9404)]).then(z.bind(z,2550)).then(He=>{qe=He;const at=qe.editor.createDiffEditor(ie.current,Mt(nt({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},te),{wordWrap:!0}));ne(at);let ft=le(at);return()=>{at.dispose();const Pt=at.getModel();Pt&&Pt.dispose(),ft.unobserve(ie.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,y.useEffect)(()=>{ce&&ce.setModel({original:qe.editor.createModel(kt,re),modified:qe.editor.createModel(ae,re)})},[kt,ae,re,ce]);const Ie=Bt(rt),bt=Bt(on),Ue={width:Ie,height:bt};return y.createElement("div",{className:"my-diff-editor",ref:ie,style:Ue})}},64194:function(bn,Wt,z){"use strict";z.d(Wt,{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"},he=z(29787),de=z(25399),$e=z(89787),pe=z(92310),me=z.n(pe),ve=z(68911),Me=z(71347),ge=z(59301),_e=({className:Ae,dataSource:tt=[],col:je=4,right:Te,bottom:Ce=23,precision:Se=0,wrapWidth:Pe=1200,trackEventItems:Ye,loading:ct,onRemove:Be=()=>{},isCurrent:Oe=!0,showProgress:Re=!1,showAlias:Ke=!1,category:vt,hiddenClick:it})=>{const Qe=Math.floor((Pe-(je-1)*Te)/je),ut=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png",ptclass:"sprite-70",swclass:"sprite-68"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png",ptclass:"sprite-60",swclass:"sprite-65"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png",ptclass:"sprite-58",swclass:"sprite-63"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png",ptclass:"sprite-62",swclass:"sprite-67"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png",ptclass:"sprite-61",swclass:"sprite-66"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png",ptclass:"sprite-59",swclass:"sprite-64"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png",ptclass:"sprite-71",swclass:"sprite-69"}];return ge.createElement(he.Z,{spinning:ct},ge.createElement("div",{className:me()(y.list,Ae)},!!(tt!=null&&tt.length)&&(tt==null?void 0:tt.map((be,et)=>{var Ne,ue,mt,Ze,nt,Mt,Fe,ye,Bt,jt,Lt,Ee,ot;const{name:qe,id:zt,identifier:ht,featured:lt,school_name:rt,image_url:on,excellent:kt,is_plan:ae}=be;return ge.createElement("div",{key:zt,className:Oe&&Re?y.wrapisCurrent:y.wrap,style:{width:Qe,marginRight:(1+et)%je===0?0:Te+Se,marginBottom:Ce}},ge.createElement("a",{className:y.li,onClick:re=>{re.preventDefault(),re.stopPropagation(),Ye&&(0,ve.L9)([Ye]),(0,ve.xg)(`/paths/${ht}`)}},ge.createElement("div",{className:y.img},ge.createElement("img",{className:y.cover,src:`${on}`}),(Ne=be==null?void 0:be.subject_tags)==null?void 0:Ne.map((re,te)=>{var ie,ce;if(te===0){const le=(ie=ut.find(Ie=>Ie.name==re))==null?void 0:ie.swclass;return ge.createElement("span",{className:`sprite ${le} ${y.sign}`,style:{left:"-4px"}})}const ne=(ce=ut.find(le=>le.name==re))==null?void 0:ce.ptclass;return ge.createElement("span",{className:`sprite ${ne} ${y.sign}`,style:{left:`${48+52*(te-1)+2*te}px`}})}),ge.createElement("div",{className:y.tagsDom},ge.createElement("div",{className:"flex flex-wrap gap-10px item-center"},(be==null?void 0:be.excellent)&&ge.createElement("div",{className:y.bq},"\u5F00\u653E\u8BFE\u7A0B"),((ue=be==null?void 0:be.custom_tags)==null?void 0:ue.length)>0&&ge.createElement(de.Z,{title:(nt=(Ze=be==null?void 0:be.custom_tags)==null?void 0:Ze[((mt=be==null?void 0:be.custom_tags)==null?void 0:mt.length)-1])==null?void 0:nt.tag_name},ge.createElement("div",{className:"px-6px rounded-2px c-white h-16px flex item-center",style:{maxWidth:"62px",background:"#3061D0",border:"0.5px solid #8FAFF8"}},ge.createElement("span",{className:"multi-llipsis1e text-10px"},(ye=(Fe=be==null?void 0:be.custom_tags)==null?void 0:Fe[((Mt=be==null?void 0:be.custom_tags)==null?void 0:Mt.length)-1])==null?void 0:ye.tag_name))))),vt=="hide"&&(be==null?void 0:be.studying)&&Oe&&ge.createElement("div",{className:`${y.movebq} user-path-items`,onClick:re=>{re.stopPropagation(),Be(be)}},ge.createElement("i",{className:"iconfont icon-yichu1 font12"}),ge.createElement("span",null,"\u79FB\u9664")),!["collect","payed"].includes(vt)&&Oe&&ge.createElement("div",{className:`${y.hiddenbq} user-path-items`,onClick:re=>{re.stopPropagation(),it(be)}},ge.createElement("i",{className:`iconfont ${vt=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),ge.createElement("span",null,vt=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF"))),ge.createElement("div",{className:y.name},ge.createElement(de.Z,{title:Ke&&(be!=null&&be.excellent_alias_name)?ge.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${qe}`,ge.createElement("br",null),ge.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${be==null?void 0:be.excellent_alias_name}`)):qe},ge.createElement("span",{className:y.e},Ke&&(be==null?void 0:be.excellent_alias_name)||qe))),Oe&&Re&&((Bt=be==null?void 0:be.progress)==null?void 0:Bt.all_score)!=0&&ge.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},ge.createElement($e.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((jt=be==null?void 0:be.progress)==null?void 0:jt.my_score)/((Lt=be==null?void 0:be.progress)==null?void 0:Lt.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(Ee=be==null?void 0:be.progress)==null?void 0:Ee.my_score,"/",(ot=be==null?void 0:be.progress)==null?void 0:ot.all_score),(!Oe||!Re)&&ge.createElement(de.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${rt}`},ge.createElement("div",{className:y.unit},ge.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),rt)),(!Oe||!Re)&&ge.createElement("div",{className:y.tags},ge.createElement("div",null,ge.createElement(de.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},ge.createElement("span",null,ge.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),ge.createElement("span",null,be.stages_count))),ge.createElement(de.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},ge.createElement("span",null,ge.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),ge.createElement("span",null,be.members_count)))))))})),!tt.length&&ge.createElement(Me.Z,null)))}},29596:function(bn,Wt,z){"use strict";z.d(Wt,{jL:function(){return $e},w9:function(){return ye},QD:function(){return Qt},cQ:function(){return et.Z},op:function(){return at},O5:function(){return Ft},_b:function(){return ze},t7:function(){return Se},Gi:function(){return qe},YG:function(){return Ee},qp:function(){return se},vr:function(){return Rt},qE:function(){return Le},Je:function(){return ct},wb:function(){return be},cq:function(){return kt},tp:function(){return tt}});var y=z(59301),he={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"},$e=({dataSource:Tt=[],img:Ut,imgWidth:an=346,title:Xt,sunTitle:yn,bannerExtraContent:sn})=>y.createElement("div",{className:he.banner},y.createElement("div",{className:he.content},y.createElement("aside",null,y.createElement("p",null,y.createElement("b",null,Xt),y.createElement("span",null,yn)),Tt.length>0&&y.createElement("div",{className:he.btns},Tt.map((wn,Vn)=>y.createElement("div",{key:Vn,onClick:wn.click},wn.name,wn.sign?y.createElement("span",{className:"sprite sprite-33"}):null))),sn),Ut&&y.createElement("img",{style:{marginTop:33,marginRight:38},src:Ut,width:an}))),pe={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"},me=z(92310),ve=z.n(me),Me=z(89392),se=({dataSource:Tt=[],value:Ut,onChange:an,onTitleChange:Xt,className:yn,title:sn,titleWidth:wn=41,style:Vn={},fontColor:Mn="#6A7283",showCount:$n})=>{const[Wn,Hn]=(0,y.useState)(1),[ur,rr]=(0,y.useState)(!1),dn=(0,y.useRef)(null),xn=(0,y.useRef)(null);return(0,y.useEffect)(()=>{var jn;Tt.length!==0&&(((jn=dn==null?void 0:dn.current)==null?void 0:jn.clientHeight)>97?Hn(1):Hn(0)),Tt.length===0&&Hn(0),rr(!1)},[Tt]),y.createElement("div",{className:ve()(pe.row,yn,"fadeIn","animated"),style:Vn},y.createElement("div",{onClick:(0,Me.throttle)(()=>Xt==null?void 0:Xt(),2e3),style:{width:wn,marginTop:ur?12:4},className:`${pe.title} ${Xt?"current":""}`},sn),y.createElement("div",{className:ur?`${pe.tagsWrap} ${pe.tagsBorderWrap}`:pe.tagsWrap},y.createElement("div",{className:pe.bar,ref:xn,style:Wn>0?{height:Wn===1?97:"auto",overflow:Wn===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},y.createElement("div",{className:pe.tag,ref:dn},Tt==null?void 0:Tt.map(jn=>y.createElement("span",{onClick:()=>an(jn.id),key:jn.id,style:{color:Mn},className:Ut===jn.id?pe.active:""},y.createElement("span",{title:jn.name,className:pe.name},jn.name),!!$n&&y.createElement("span",{className:pe.num},jn.count))))),!!Wn&&y.createElement(y.Fragment,null,Wn===1?y.createElement("div",{onClick:()=>{var jn;Hn(2),((jn=dn==null?void 0:dn.current)==null?void 0:jn.clientHeight)>245?rr(!0):rr(!1)},className:pe.action},"\u5C55\u5F00",y.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):y.createElement("div",{onClick:()=>{xn.current.scrollTop=0,Hn(1),rr(!1)},className:pe.action},"\u6536\u8D77",y.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},_e={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"},tt=({dataSource:Tt=[],value:Ut,onChange:an,className:Xt,style:yn={}})=>y.createElement("div",{style:yn,className:ve()(_e.tabs,Xt)},Tt.map(sn=>y.createElement("span",{onClick:()=>an(sn.id),className:Ut===sn.id?_e.active:"",key:sn.id},sn.name))),je={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"},Te=z(37568),Se=({dataSource:Tt=[],value:Ut="",onChange:an,onInputChange:Xt=()=>{},className:yn,style:sn={},placeholder:wn,allowClear:Vn=!1})=>{var Mn;const[$n,Wn]=(0,y.useState)(""),[Hn,ur]=(0,y.useState)("");(0,y.useEffect)(()=>{var xn;let jn=Ut;(xn=JSON.stringify(Ut))!=null&&xn.includes("{")&&(Wn(Ut.id),jn=Ut.value||"");try{ur(decodeURIComponent(jn||""))}catch(zn){ur(decodeURIComponent(jn||""))}},[Ut]);const rr=()=>{an(encodeURIComponent(Hn),$n||null)},dn=xn=>{xn!==$n&&(Wn(xn),an(encodeURIComponent(Hn),xn))};return y.createElement("div",{className:ve()(je.input,yn),style:sn},!!Tt.length&&y.createElement("div",{className:je.dropdown},y.createElement("div",{className:je.text},(Mn=Tt.find(xn=>xn.id===$n))==null?void 0:Mn.name,y.createElement("i",{className:"iconfont icon-zhankai4"}),y.createElement("b",{className:je.b1}),y.createElement("b",{className:je.b2})),y.createElement("div",{className:je.menu},Tt.map((xn,jn)=>y.createElement("div",{key:jn,onClick:()=>dn(xn.id)},xn.name)))),y.createElement(Te.default,{onPressEnter:rr,value:Hn,onChange:xn=>{ur(xn.target.value),Xt(encodeURIComponent(xn.target.value),$n||null)},placeholder:wn,variant:"borderless",allowClear:Vn,onClear:()=>an("",$n||null)}),y.createElement("i",{onClick:rr,className:"iconfont icon-sousuo9 font14 current"}))},Pe={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"},ct=({value:Tt,onChange:Ut,className:an,total:Xt,pageSize:yn,style:sn={}})=>{const wn=Tt<2,Vn=Tt>=Math.ceil(Xt/yn);return Xt<=yn?y.createElement(y.Fragment,null):y.createElement("div",{className:ve()(Pe.quickPager,an),style:sn},y.createElement("div",{onClick:()=>{wn||Ut(Tt-1,"prev")},className:wn?Pe.disabled:""},"\u4E0A\u4E00\u9875"),y.createElement("div",{onClick:()=>{Vn||Ut(Tt+1,"next")},className:Vn?Pe.disabled:""},"\u4E0B\u4E00\u9875"))},Be={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"},Oe=z(29787),Re=z(25399),Ke=z(63139),vt=z(35783),it=z(68911),Qe=z(71347),be=({className:Tt,dataSource:Ut=[],col:an=4,right:Xt,bottom:yn=23,precision:sn=0,wrapWidth:wn=1200,trackEventItems:Vn,loading:Mn})=>{const $n=Math.floor((wn-(an-1)*Xt)/an);return y.createElement(Oe.Z,{spinning:Mn},y.createElement("div",{className:ve()(Be.list,Tt)},!!Ut.length&&Ut.map((Wn,Hn)=>{const{name:ur,id:rr,identifier:dn,power:xn,cover_image_id:jn,pic:zn}=Wn;return y.createElement("div",{className:Be.wrap,key:rr,style:{width:$n,marginRight:(1+Hn)%an===0?0:Xt+sn,marginBottom:yn}},y.createElement("a",{target:"_blank",href:`/shixuns/${dn}/challenges`,className:Be.li,onClick:xt=>{xt.preventDefault(),Vn&&(0,it.L9)([Vn]),xn&&(0,it.xg)(`/shixuns/${dn}/challenges`)}},y.createElement("div",{className:Be.img},y.createElement("img",{className:Be.cover,src:`${zn}`}),Wn.is_jupyter&&y.createElement("span",{className:`sprite sprite-43 ${Be.sign}`}),Wn.is_jupyter_lab&&y.createElement("span",{className:`sprite sprite-42 ${Be.sign}`}),Wn.is_unity_3d&&y.createElement("span",{className:`sprite sprite-44 ${Be.sign}`})),y.createElement("div",{className:Be.name},y.createElement(Re.Z,{title:ur||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},y.createElement("span",{className:Be.e},ur||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),y.createElement("div",{className:Be.tags},y.createElement(Re.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},y.createElement("span",null,y.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),y.createElement("span",null,Wn.challenges_count))),!!Wn.myshixuns_count&&y.createElement(Re.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,Wn.myshixuns_count))),y.createElement(Re.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},y.createElement("span",null,y.createElement("span",null,Wn.level))),y.createElement("div",{className:Be.rate},y.createElement(Ke.Z,{allowHalf:!0,disabled:!0,defaultValue:Wn.score_info}),y.createElement("span",null,"\xA0",Wn.score_info?`${Wn.score_info}\u5206`:"5\u5206")))),!xn&&y.createElement("div",{className:Be.lockWrap},y.createElement("img",{src:`${vt.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")))}),!Ut.length&&y.createElement(Qe.Z,null)))},et=z(64194),Ne={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",btnsTop:"btnsTop___Lrm6T",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},ue=z(62957),mt=z(96599),Ze="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",nt=z(59301),Mt=(Tt,Ut,an)=>new Promise((Xt,yn)=>{var sn=Mn=>{try{Vn(an.next(Mn))}catch($n){yn($n)}},wn=Mn=>{try{Vn(an.throw(Mn))}catch($n){yn($n)}},Vn=Mn=>Mn.done?Xt(Mn.value):Promise.resolve(Mn.value).then(sn,wn);Vn((an=an.apply(Tt,Ut)).next())}),ye=({className:Tt,dataSource:Ut=[],col:an=4,right:Xt,bottom:yn=23,precision:sn=0,wrapWidth:wn=1200,trackEventItems:Vn,loading:Mn,category:$n,hiddenClick:Wn,handleVery:Hn=()=>!0,isCurrent:ur})=>{const[rr,dn]=ue.default.useModal(),xn=Math.floor((wn-(an-1)*Xt)/an),jn=zn=>Mt(void 0,null,function*(){rr.confirm({title:"\u7F6E\u9876",width:500,content:nt.createElement("div",null,"\u60A8\u786E\u5B9A\u8981\u5C06",nt.createElement("span",{className:"c-blue"},"\u201C",zn.name,"\u201D"),"\u8BFE\u5802\u7F6E\u9876\u5417\uFF1F"),okText:"\u786E\u8BA4\u7F6E\u9876",centered:!0,cancelText:"\u53D6\u6D88"})});return nt.createElement(Oe.Z,{spinning:Mn},dn,nt.createElement("div",{className:ve()(Ne.list,Tt)},!!Ut.length&&Ut.map((zn,xt)=>{const{subject_identifier:_t,id:Je,identifier:Dt,power:Ge}=zn,At=zn.is_public!=0&&zn.is_public;return nt.createElement("div",{className:Ne.wrap,key:Je,style:{width:xn,marginRight:(1+xt)%an===0?0:Xt+sn,marginBottom:yn}},zn.homepage_show&&nt.createElement("div",{className:Ne.btnsTop},nt.createElement(mt.default,{color:"red"},"\u7F6E\u9876")),nt.createElement("a",{className:Ne.li,onClick:Jt=>{Jt.preventDefault(),Hn(zn==null?void 0:zn.first_category_url)&&(Vn&&(0,it.L9)([Vn]),(0,it.xg)(zn.first_category_url))}},nt.createElement("div",{className:Ne.top},nt.createElement(Re.Z,{title:zn.name},nt.createElement("div",{className:Ne.name},zn.name)),nt.createElement("img",{className:Ne.img,src:vt.Z.IMG_SERVER+"/images/"+zn.avatar_url}),nt.createElement("div",{className:Ne.text,title:zn.creator},zn.creator),_t&&nt.createElement("div",{className:Ne.btns},nt.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),nt.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),At&&nt.createElement("div",{className:Ne.sign},"\u516C\u5F00"),ur&&nt.createElement("div",{className:Ne.hidden,onClick:Jt=>{Jt.stopPropagation(),Wn(zn)}},nt.createElement("i",{className:`iconfont ${$n=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),$n=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF")),nt.createElement("div",{className:Ne.bottom},zn.visits>0&&nt.createElement(Re.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},nt.createElement("span",null,nt.createElement("i",{className:"iconfont icon-liulanyan"}),nt.createElement("span",null,zn.visits))),zn.course_members_count>0&&nt.createElement(Re.Z,{title:"\u6210\u5458",placement:"bottom"},nt.createElement("span",null,nt.createElement("i",{className:"iconfont icon-chengyuan"}),zn.course_members_count)),zn.tasks_count>0&&nt.createElement(Re.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},nt.createElement("span",null,nt.createElement("i",{className:"iconfont icon-zuoye"}),zn.tasks_count)),zn.is_end?nt.createElement("div",{style:{color:"#6B758B"}}):nt.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!zn.is_accessible&&nt.createElement("div",{className:Ne.lockWrap},nt.createElement("img",{src:`${vt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),nt.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Ut.length&&nt.createElement(Qe.Z,null)))},Bt={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=z(63823),Ee=({dataSource:Tt=[],value:Ut,onChange:an,className:Xt,style:yn={},tabBarExtraContent:sn})=>y.createElement("div",{className:ve()(Bt.tabs,Xt),style:yn},y.createElement("div",{className:Bt.tabsWrap},Tt.map((wn,Vn)=>!(wn!=null&&wn.hide)&&y.createElement("aside",{className:Bt.tab,onClick:()=>{an(wn.id),wn.link&&jt.history.push(wn.link)},key:Vn},y.createElement("div",{className:Ut===wn.id?Bt.active:""},wn.name),(wn==null?void 0:wn.resetCount)==null&&(wn==null?void 0:wn.total)!==void 0&&y.createElement("span",null,"\uFF08",wn==null?void 0:wn.total,"\uFF09"),(wn==null?void 0:wn.resetCount)!==void 0&&(wn==null?void 0:wn.total)!==void 0&&y.createElement(Re.Z,{title:(wn==null?void 0:wn.tip)!=null?wn==null?void 0:wn.tip:""},y.createElement("span",{style:{color:"#9096A3"}},"\uFF08",y.createElement("span",{style:{color:"#000"}},wn==null?void 0:wn.resetCount),"/",y.createElement("span",null,wn==null?void 0:wn.total),"\uFF09"))))),y.createElement("div",{className:Bt.tabBar},sn)),qe=({className:Tt,style:Ut={},children:an})=>y.createElement("div",{className:ve()(Tt),style:Ut},an),zt={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"},ht=z(75727),lt=z(93041);const rt=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var kt=({sortValue:Tt,dropValue:Ut,className:an,onSort:Xt,onDrop:yn,dataSource:sn=rt})=>{var wn;return y.createElement("div",{className:ve()(zt.orderWrap,an)},y.createElement(ht.Z,{dropdownRender:()=>y.createElement(lt.default,null,sn.map((Vn,Mn)=>y.createElement(lt.default.Item,{key:Mn,onClick:()=>yn(Vn.id)},Vn.name)))},y.createElement("span",{className:zt.orderTextWrap},(wn=sn.find(Vn=>Ut===Vn.id))==null?void 0:wn.name)),y.createElement("span",{className:zt.orderIconWrap},y.createElement("span",{className:zt.orderAsc},y.createElement("i",{className:Tt==="asc"?`iconfont icon-sanjiaoxing-up font12 ${zt.cursorPointer} ${zt.active}`:`iconfont icon-sanjiaoxing-up font12 ${zt.cursorPointer}`,onClick:()=>Xt(Tt==="asc"?"desc":"asc")})),y.createElement("span",{className:zt.orderDesc},y.createElement("i",{className:Tt==="desc"?`iconfont icon-sanjiaoxing-down font12 ${zt.cursorPointer} ${zt.active}`:`iconfont icon-sanjiaoxing-down font12 ${zt.cursorPointer}`,onClick:()=>Xt(Tt==="asc"?"desc":"asc")}))))},ae={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=z(7939),te=Object.defineProperty,ie=Object.getOwnPropertySymbols,ce=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,le=(Tt,Ut,an)=>Ut in Tt?te(Tt,Ut,{enumerable:!0,configurable:!0,writable:!0,value:an}):Tt[Ut]=an,Ie=(Tt,Ut)=>{for(var an in Ut||(Ut={}))ce.call(Ut,an)&&le(Tt,an,Ut[an]);if(ie)for(var an of ie(Ut))ne.call(Ut,an)&&le(Tt,an,Ut[an]);return Tt},bt=(Tt,Ut)=>{var an={};for(var Xt in Tt)ce.call(Tt,Xt)&&Ut.indexOf(Xt)<0&&(an[Xt]=Tt[Xt]);if(Tt!=null&&ie)for(var Xt of ie(Tt))Ut.indexOf(Xt)<0&&ne.call(Tt,Xt)&&(an[Xt]=Tt[Xt]);return an},Ue=(Tt,Ut,an)=>new Promise((Xt,yn)=>{var sn=Mn=>{try{Vn(an.next(Mn))}catch($n){yn($n)}},wn=Mn=>{try{Vn(an.throw(Mn))}catch($n){yn($n)}},Vn=Mn=>Mn.done?Xt(Mn.value):Promise.resolve(Mn.value).then(sn,wn);Vn((an=an.apply(Tt,Ut)).next())}),at=Tt=>{var Ut=Tt,{className:an,style:Xt,children:yn,loading:sn=!1,openLoading:wn,onClick:Vn=()=>{},size:Mn="middle",shape:$n="round"}=Ut,Wn=bt(Ut,["className","style","children","loading","openLoading","onClick","size","shape"]);const[Hn,ur]=(0,y.useState)(!1);return y.createElement(re.ZP,Ie({onClick:(0,Me.throttle)(rr=>Ue(void 0,null,function*(){wn&&ur(!0);try{yield Vn(rr)}catch(dn){console.log("error",dn)}wn&&ur(!1)}),2e3,{leading:!0,trailing:!1}),className:ve()(ae.btn,ae[`${Mn}-${$n}`],an),style:Xt,size:Mn,shape:$n,loading:Hn||sn},Wn),yn)},ft={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"},Le=({className:Tt,style:Ut,children:an=null,onClick:Xt,title:yn})=>y.createElement("div",{className:ve()(ft.head,Tt),style:Ut},y.createElement("span",{className:"primary-hover",onClick:Xt},y.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),y.createElement("b",{title:yn},yn),y.createElement("div",{className:ft.node},an)),We={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"},Qt=({confirmShow:Tt=!0,confirmTitle:Ut,confirmClick:an,cancelShow:Xt=!0,cancelTitle:yn,cancelClick:sn,className:wn,style:Vn,confirmLoading:Mn=!1})=>y.createElement("div",{className:ve()(We.btns,wn),style:Vn},Tt&&y.createElement(re.ZP,{loading:Mn,onClick:an,type:"primary",className:We.confirm},Ut),Xt&&y.createElement(re.ZP,{onClick:sn,className:We.cancel},yn)),un={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"},Rt=({className:Tt,style:Ut={},LeftContent:an,children:Xt,RightContent:yn})=>y.createElement("div",{className:ve()(un.fixedBottom,Tt),style:Ut},y.createElement("div",{className:un.wrap},y.createElement("div",{className:un.left},an),y.createElement("div",{className:un.center},Xt),y.createElement("div",{className:un.right},yn))),ln={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"},ze=({className:Tt,style:Ut={},dataSource:an=[]})=>y.createElement("div",{className:ve()(ln.crumbs,Tt),style:Ut},an.map((Xt,yn)=>yn<an.length-1?y.createElement(y.Fragment,{key:yn},Xt.path||Xt.onClick?y.createElement("span",{className:ln.hover,onClick:Xt!=null&&Xt.onClick?Xt.onClick:()=>jt.history.push(Xt.path)},Xt.name):y.createElement("span",null,Xt.name),y.createElement("span",null,"\xA0",">","\xA0")):y.createElement("span",{key:yn,style:{color:"#5F6368"}},Xt.name))),yt=z(11938),Kt=Object.defineProperty,tn=Object.defineProperties,Ve=Object.getOwnPropertyDescriptors,Ct=Object.getOwnPropertySymbols,$t=Object.prototype.hasOwnProperty,dt=Object.prototype.propertyIsEnumerable,Ot=(Tt,Ut,an)=>Ut in Tt?Kt(Tt,Ut,{enumerable:!0,configurable:!0,writable:!0,value:an}):Tt[Ut]=an,Gt=(Tt,Ut)=>{for(var an in Ut||(Ut={}))$t.call(Ut,an)&&Ot(Tt,an,Ut[an]);if(Ct)for(var an of Ct(Ut))dt.call(Ut,an)&&Ot(Tt,an,Ut[an]);return Tt},mn=(Tt,Ut)=>tn(Tt,Ve(Ut)),An=(Tt,Ut)=>{var an={};for(var Xt in Tt)$t.call(Tt,Xt)&&Ut.indexOf(Xt)<0&&(an[Xt]=Tt[Xt]);if(Tt!=null&&Ct)for(var Xt of Ct(Tt))Ut.indexOf(Xt)<0&&dt.call(Tt,Xt)&&(an[Xt]=Tt[Xt]);return an};const{Countdown:hn}=yt.default;var Ft=Tt=>{var Ut=Tt,{onChange:an}=Ut,Xt=An(Ut,["onChange"]);const[yn,sn]=(0,y.useState)(null);(0,y.useEffect)(()=>{typeof yn=="number"&&yn>=0&&an(yn)},[yn]);const wn=Vn=>{const Mn=Math.floor(Vn/1e3);sn(Mn)};return y.createElement(hn,mn(Gt({},Xt),{onChange:wn}))}},2408:function(bn,Wt,z){"use strict";z.d(Wt,{Z:function(){return he}});var y=z(59301);function he(de,$e){const pe=(0,y.useRef)();(0,y.useEffect)(()=>{pe.current=de}),(0,y.useEffect)(()=>{function me(){pe.current()}if($e!==null){let ve=setInterval(me,$e);return()=>clearInterval(ve)}},[$e])}},21667:function(bn,Wt,z){"use strict";z.d(Wt,{h:function(){return y}});var y=(he=>(he[he.NOMATCH=-1]="NOMATCH",he[he.OK=0]="OK",he[he.TIMEOUT=2]="TIMEOUT",he[he.PODFAILURE=3]="PODFAILURE",he[he.COMPILEFAILURE=4]="COMPILEFAILURE",he[he.EXECUTEFAILURE=5]="EXECUTEFAILURE",he[he.HIDE_COMPILE_STATUS=11]="HIDE_COMPILE_STATUS",he))(y||{})},10084:function(bn,Wt,z){"use strict";z.d(Wt,{H7:function(){return Te},MK:function(){return je},MU:function(){return se},X6:function(){return Ae},bM:function(){return ge},fi:function(){return Ce},fu:function(){return Me},n4:function(){return Se},rX:function(){return tt},vl:function(){return Pe},zO:function(){return _e}});var y=z(22972),he=Object.defineProperty,de=Object.getOwnPropertySymbols,$e=Object.prototype.hasOwnProperty,pe=Object.prototype.propertyIsEnumerable,me=(Ye,ct,Be)=>ct in Ye?he(Ye,ct,{enumerable:!0,configurable:!0,writable:!0,value:Be}):Ye[ct]=Be,ve=(Ye,ct)=>{for(var Be in ct||(ct={}))$e.call(ct,Be)&&me(Ye,Be,ct[Be]);if(de)for(var Be of de(ct))pe.call(ct,Be)&&me(Ye,Be,ct[Be]);return Ye};function Me(Ye,ct){return(0,y.U2)(`myproblems/${Ye}.json`,ve({hidePopLogin:!0},ct||{}))}function ge(Ye,ct){return(0,y.v_)(`myproblems/${Ye}/code_submit.json`,ct)}function se(Ye,ct){return(0,y.v_)(`myproblems/${Ye}/code_debug.json`,ct)}function _e(Ye,ct){return ct.language&&(ct.language=encodeURIComponent(ct.language)),(0,y.U2)(`myproblems/${Ye}/submit_records.json`,ct)}function Ae(Ye){return(0,y.U2)("myproblems/record_detail.json",{id:Ye})}function tt(Ye,ct){return(0,y.U2)(`myproblems/${Ye}/result.json`,{mode:ct})}function je(Ye,ct){return(0,y.v_)(`myproblems/${Ye}/add_notes.json`,ct)}function Te(Ye,ct){return(0,y.v_)(`myproblems/${Ye}/restore_initial_code.json`,ct)}function Ce(Ye){return(0,y.v_)(`myproblems/${Ye}/sync_code.json`)}function Se(Ye,ct){return(0,y.v_)(`myproblems/${Ye}/update_code.json`,ct)}function Pe(Ye,ct){return(0,y.v_)(`discusses/${Ye}/plus.json`,ct)}},26931:function(bn,Wt,z){"use strict";z.d(Wt,{Z:function(){return ci}});var y=z(59301),he={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"},de=z(28284),$e=z(25399),pe=z(7939),me=z(62957),ve=z(4875),Me=z(6767),ge=z(37568),se=z(37285),_e=z(62673),Ae=z(37639),tt=z(77019),je=z(5269),Te=z(31709),Ce=Object.defineProperty,Se=Object.getOwnPropertySymbols,Pe=Object.prototype.hasOwnProperty,Ye=Object.prototype.propertyIsEnumerable,ct=(gt,Zt,qt)=>Zt in gt?Ce(gt,Zt,{enumerable:!0,configurable:!0,writable:!0,value:qt}):gt[Zt]=qt,Be=(gt,Zt)=>{for(var qt in Zt||(Zt={}))Pe.call(Zt,qt)&&ct(gt,qt,Zt[qt]);if(Se)for(var qt of Se(Zt))Ye.call(Zt,qt)&&ct(gt,qt,Zt[qt]);return gt};const Oe=gt=>React.createElement("svg",Be({width:34,height:34,xmlns:"http://www.w3.org/2000/svg"},gt),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 Re="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cmVjdCBmaWxsPSIjRTRFNkZEIiB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHJ4PSIxMCIvPjxnIGZpbGwtcnVsZT0ibm9uemVybyI+PHBhdGggZD0iTTEzLjgwOCAxMS40NDhhLjU1OC41NTggMCAwIDEgMCAuNzg4bC0xLjU2NCAxLjU2NWEuNTU4LjU1OCAwIDEgMS0uNzg5LS43OWwxLjU2NC0xLjU2M2EuNTU4LjU1OCAwIDAgMSAuNzkgMFptOS44ODIgMi40NjJhLjU1OC41NTggMCAwIDEtLjc4OSAwbC0xLjU2NC0xLjU2M2EuNTU4LjU1OCAwIDEgMSAuNzg5LS43ODlsMS41NjQgMS41NjRhLjU1Ni41NTYgMCAwIDEgMCAuNzg4WiIgZmlsbD0iIzY2NzhFQiIvPjxwYXRoIGQ9Ik0yMS43NTMgMjEuNzA3YTUuOTM3IDUuOTM3IDAgMSAwLTguNTguMDE1bC0uOTM3LjkzNmEuNTU4LjU1OCAwIDEgMCAuNzg5Ljc4OGwuOTk1LS45OTRhNS45MSA1LjkxIDAgMCAwIDMuNDM2IDEuMDk1YzEuMjg3IDAgMi40OC0uNDEgMy40NTItMS4xMDZsLjk5Mi45OTJhLjU1OC41NTggMCAxIDAgLjc4OS0uNzg5bC0uOTM2LS45MzdaIiBmaWxsPSIjNjY3OEVCIi8+PHBhdGggZD0ibTIwLjg1OCAxOC45NS0zLjAyNC0xLjc0NXYtMi4wNTRhLjU1OC41NTggMCAxIDAtMS4xMTcgMHYyLjM1MWMwIC4wNjQuMDExLjEyNi4wMzEuMTg0YS41NTEuNTUxIDAgMCAwIC4yNTguMzNsMy4yOTMgMS45YS41NTcuNTU3IDAgMCAwIC41NTktLjk2NloiIGZpbGw9IiNGRkYiLz48L2c+PC9nPjwvc3ZnPg==",Ke=z(56375),vt=z(63823),it=z(68911),Qe=z(22972),ut=Object.defineProperty,be=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,Ne=Object.prototype.propertyIsEnumerable,ue=(gt,Zt,qt)=>Zt in gt?ut(gt,Zt,{enumerable:!0,configurable:!0,writable:!0,value:qt}):gt[Zt]=qt,mt=(gt,Zt)=>{for(var qt in Zt||(Zt={}))et.call(Zt,qt)&&ue(gt,qt,Zt[qt]);if(be)for(var qt of be(Zt))Ne.call(Zt,qt)&&ue(gt,qt,Zt[qt]);return gt};const Ze=gt=>React.createElement("svg",mt({width:34,height:34,xmlns:"http://www.w3.org/2000/svg"},gt),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 nt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cmVjdCB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHJ4PSIxMCIgZmlsbD0iI0VBRjNGNCIvPjxwYXRoIGQ9Ik0yNS45MDUgMTUuMzdhLjc3NS43NzUgMCAwIDAtLjYyNi0uNTI5bC00LjgxNC0uNy0yLjE1Mi00LjM2MmEuNzc2Ljc3NiAwIDAgMC0xLjM5MiAwbC0yLjE1MyA0LjM2My00LjgxNC42OTlhLjc3NS43NzUgMCAwIDAtLjQzIDEuMzIzbDMuNDg0IDMuMzk2LS44MjMgNC43OTRhLjc3Ny43NzcgMCAwIDAgMS4xMjYuODE4bDQuMzA2LTIuMjY0IDQuMzA1IDIuMjY0YS43NzguNzc4IDAgMCAwIC44MTctLjA1OS43NzcuNzc3IDAgMCAwIC4zMS0uNzU5bC0uODIzLTQuNzk0IDMuNDgzLTMuMzk2YS43NzcuNzc3IDAgMCAwIC4xOTYtLjc5NVoiIGZpbGw9IiMyMUMwQTYiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvZz48L3N2Zz4=",Mt=Object.defineProperty,Fe=Object.getOwnPropertySymbols,ye=Object.prototype.hasOwnProperty,Bt=Object.prototype.propertyIsEnumerable,jt=(gt,Zt,qt)=>Zt in gt?Mt(gt,Zt,{enumerable:!0,configurable:!0,writable:!0,value:qt}):gt[Zt]=qt,Lt=(gt,Zt)=>{for(var qt in Zt||(Zt={}))ye.call(Zt,qt)&&jt(gt,qt,Zt[qt]);if(Fe)for(var qt of Fe(Zt))Bt.call(Zt,qt)&&jt(gt,qt,Zt[qt]);return gt};const Ee=gt=>React.createElement("svg",Lt({width:34,height:34,xmlns:"http://www.w3.org/2000/svg"},gt),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 ot="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cmVjdCBmaWxsPSIjRTdGM0ZGIiB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHJ4PSIxMCIvPjxnIGZpbGw9IiM0QzZGRkYiIGZpbGwtcnVsZT0ibm9uemVybyI+PHBhdGggZD0ibTIzLjcxOSAxMy4zMjUtNC4wOTgtMy45NGMtLjA5Ny0uMTMtLjIyNS0uMTYyLS4zNTUtLjE2Mi0uMTI5IDAtLjI1OC4wNjQtLjM4Ny4xNjFsLTcuNTUgNy43NTNjLS4wNjUuMDY1LS4wOTguMTYyLS4xMy4yMjdsLTEuMDMyIDUuNDI3Yy0uMDMzLjE5NC4wMzIuMzIzLjE2LjQ4NC4xMy4xMy4yMjcuMTYyLjM4OS4xNjJoLjA5Nmw0Ljc3Ni0xLjA5OWMuMDk3LS4wMzIuMTk0LS4wNjQuMjU4LS4xNjFsNy44NDEtOC4xMDhjLjE5NC0uMTYyLjE5NC0uNTE3LjAzMy0uNzQ0aC0uMDAxWm0tOC4xIDguMDQ0YS41MzQuNTM0IDAgMCAxLS4zODYuMTYyLjU2LjU2IDAgMCAxLS4zODgtLjE2MmwtMy0yLjgxYy0uMjI2LS4xOTQtLjIyNi0uNTE3LS4wMzMtLjc0My4xOTQtLjIyNy41MTctLjIyNy43NDMtLjAzM2wzIDIuODExYy4yNTkuMjI2LjI5MS41NS4wNjUuNzc2Wk0xNyAyMi45Mmg2Ljg0NHYxLjA1NUgxN3oiLz48L2c+PC9nPjwvc3ZnPg==",qe=z(11961),zt=z(32862),ht=z(86793),lt={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"},rt=z(59301),on=Object.defineProperty,kt=Object.defineProperties,ae=Object.getOwnPropertyDescriptors,re=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable,ce=(gt,Zt,qt)=>Zt in gt?on(gt,Zt,{enumerable:!0,configurable:!0,writable:!0,value:qt}):gt[Zt]=qt,ne=(gt,Zt)=>{for(var qt in Zt||(Zt={}))te.call(Zt,qt)&&ce(gt,qt,Zt[qt]);if(re)for(var qt of re(Zt))ie.call(Zt,qt)&&ce(gt,qt,Zt[qt]);return gt},le=(gt,Zt)=>kt(gt,ae(Zt)),Ie=(gt,Zt)=>{var qt={};for(var vn in gt)te.call(gt,vn)&&Zt.indexOf(vn)<0&&(qt[vn]=gt[vn]);if(gt!=null&&re)for(var vn of re(gt))Zt.indexOf(vn)<0&&ie.call(gt,vn)&&(qt[vn]=gt[vn]);return qt};const bt=null,Ue=(gt,Zt)=>{var qt=gt,{globalSetting:vn,loading:yo,dispatch:Vr,isEdit:fo,editData:Pr}=qt,Kr=Ie(qt,["globalSetting","loading","dispatch","isEdit","editData"]);const[_o,ho]=(0,y.useState)(""),[oi,pi]=(0,y.useState)(""),[Qo,gr]=(0,y.useState)([]),[io,bo]=(0,y.useState)(""),[Ao,zr]=(0,y.useState)(),[Go,fi]=(0,y.useState)(!1),[ao,Co]=(0,y.useState)({}),[Nr,no]=(0,y.useState)([]);(0,y.useEffect)(()=>{!Pr||!fo||(ho(Pr==null?void 0:Pr.name),pi(Pr==null?void 0:Pr.analysis),zr(Pr==null?void 0:Pr.is_ordered),Co(Pr),fi(!0))},[Pr]),(0,y.useEffect)(()=>{if(!Go)return;const cr=Pr==null?void 0:Pr.standard_answer.map(Di=>Di==null?void 0:Di.answer_text);gr(cr);const Ci=Pr==null?void 0:Pr.standard_answer.map(Di=>Di==null?void 0:Di.score);no(Ci),fi(!1)},[Go]),(0,y.useImperativeHandle)(Zt,()=>({onSave:bi,Clear:pa}));const bi=()=>{let cr=[],Ci=!1;return _o?(Qo.forEach((Di,Ei)=>{cr.push({position:Ei+1,answer_text:[],score:Nr[Ei]}),Di==null||Di.forEach((wa,Ql)=>{cr[Ei].answer_text.push(wa),(!wa||!(0,it.eR)(wa,1e4))&&(bo(`${Ei}-${Ql}`),Me.ZP.info(wa?"\u7B54\u6848\u4E0D\u80FD\u8D85\u8FC710000\u5B57\u7B26":"\u7B54\u6848\uFF1A\u4E0D\u80FD\u4E3A\u7A7A"),Ci=!0)})}),Ci?!1:(cr==null?void 0:cr.length)>20?(Me.ZP.warning("\u586B\u7A7A\u9898\u6807\u51C6\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A/\u4E0D\u80FD\u8D85\u8FC720\u4E2A\uFF01"),!1):{name:_o,analysis:oi,standard_answers:cr,is_ordered:Ao,downcase:ao==null?void 0:ao.downcase,no_space:ao==null?void 0:ao.no_space,use_blank_score:ao==null?void 0:ao.use_blank_score}):(Me.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1)},pa=()=>{ho(""),pi(""),gr([]),zr(!1)},Ji=(cr,Ci,Di)=>{const Ei=Qo.slice();if(Ci&&Ei.splice(cr,Ci),Di)for(let wa=0;wa<Di;wa++)Ei.splice(cr+wa,0,[""]);gr(Ei)},hl=(cr,Ci,Di)=>{bo("");let Ei=Qo.slice();Ei[cr][Ci]=Di,gr(Ei)},zo=cr=>{let Ci=Qo.slice();Ci[cr]=[...Ci[cr],""],gr(Ci)},Za=(cr,Ci)=>{let Di=Qo.slice();if(!Di[cr][Ci]){Di[cr]=Di[cr].filter((Ei,wa)=>wa!==Ci),gr(Di);return}me.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:lt.modal,onOk:()=>{Di[cr]=Di[cr].filter((Ei,wa)=>wa!==Ci),gr(Di)}})},Aa=cr=>{me.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:lt.modal,onOk:()=>{let Ci=Qo.slice();Ci=Qo.filter((Di,Ei)=>cr!==Ei),gr(Ci)}})};return rt.createElement("section",{className:lt.wrap},rt.createElement("p",{className:lt.titleWrap},rt.createElement("span",{className:lt.required},"*"),rt.createElement("span",{className:lt.title},"\u9898\u5E72\uFF1A")),rt.createElement("div",null,rt.createElement(zt.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:_o,onChange:cr=>ho(cr),showNullButton:!0,onAddBlank:()=>gr(cr=>[...cr,[""]])})),rt.createElement("div",{className:"mt20 flex flex-col gap-10px"},Qo.map((cr,Ci)=>rt.createElement("div",{style:{display:"flex"}},rt.createElement("div",{style:{flex:1}},rt.createElement(ht.Z,{key:Ci,answers:cr,index:Ci,flex:1,is_md:!0,activeOptionErrorIndex:io,onAnswerChange:hl,addChildAnswer:zo,deleteChildAnswer:Za,deleteChildAnswermain:Aa})),ao.use_blank_score&&rt.createElement("div",{style:{display:"flex",alignItems:"center",width:"165px"}},rt.createElement("span",{style:{color:"red",margin:"auto 5px auto 10px"}},"*"),"\u5206\u503C\uFF1A",rt.createElement(ve.Z,{style:{width:"100px"},size:"large",defaultValue:Nr[Ci],onBlur:Di=>{Nr[Ci]=Di.target.value,no([...Nr])}}))))),rt.createElement(pe.ZP,{className:"mt20",onClick:()=>gr(cr=>[...cr,[""]]),type:"primary",shape:"round"},"\u65B0\u589E\u586B\u7A7A\u9879"),rt.createElement("div",null,rt.createElement(_e.default,{className:`${lt.color333} font14 mt20`,checked:ao.use_blank_score,onChange:cr=>Co(le(ne({},ao),{use_blank_score:cr.target.checked}))},"\u5224\u5206\u65F6\u6309\u7A7A\u7ED9\u5206"),rt.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")),rt.createElement("div",null,rt.createElement(_e.default,{className:`${lt.color333} font14 mt20`,checked:ao.downcase,onChange:cr=>Co(le(ne({},ao),{downcase:cr.target.checked}))},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),rt.createElement("div",null,rt.createElement(_e.default,{className:`${lt.color333} font14 mt20`,checked:ao.no_space,onChange:cr=>Co(le(ne({},ao),{no_space:cr.target.checked}))},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),rt.createElement("div",{className:"mt20"},(Qo==null?void 0:Qo.length)>1&&rt.createElement("span",null,rt.createElement(_e.default,{checked:Ao,onChange:cr=>zr(cr.target.checked),className:`${lt.color333} font14`},"\u591A\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u6709\u987A\u5E8F\u8981\u6C42"),rt.createElement("span",{className:`${lt.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"))),rt.createElement("p",{className:lt.titleWrap},rt.createElement("span",{className:lt.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),rt.createElement(zt.Z,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:oi,onChange:cr=>pi(cr)}))};var He=(0,vt.connect)(({loading:gt,globalSetting:Zt})=>({globalSetting:Zt,loading:gt.effects}),null,null,{forwardRef:!0})((0,y.forwardRef)(Ue)),at=z(47889),ft=Object.getOwnPropertySymbols,Pt=Object.prototype.hasOwnProperty,Le=Object.prototype.propertyIsEnumerable,We=(gt,Zt)=>{var qt={};for(var vn in gt)Pt.call(gt,vn)&&Zt.indexOf(vn)<0&&(qt[vn]=gt[vn]);if(gt!=null&&ft)for(var vn of ft(gt))Zt.indexOf(vn)<0&&Le.call(gt,vn)&&(qt[vn]=gt[vn]);return qt};const Nt=null,Qt=(gt,Zt)=>{var qt=gt,{globalSetting:vn,loading:yo,editData:Vr,dispatch:fo,onRef:Pr=()=>{},isEdit:Kr}=qt,_o=We(qt,["globalSetting","loading","editData","dispatch","onRef","isEdit"]);const[ho,oi]=(0,y.useState)(),[pi,Qo]=(0,y.useState)(""),[gr,io]=(0,y.useState)("");(0,y.useEffect)(()=>{if(!Vr||!Kr)return;Qo(Vr==null?void 0:Vr.name),io(Vr==null?void 0:Vr.analysis);const zr=Vr==null?void 0:Vr.choices.find(Go=>Go.is_answer);oi(zr.choice_text==="\u6B63\u786E"?"0":"1")},[Vr]),(0,y.useImperativeHandle)(Zt,()=>({onSave:bo,Clear:Ao}));const bo=()=>pi?ho?{name:pi,choices:[{choice_text:"\u6B63\u786E",is_answer:ho==="0"?1:0},{choice_text:"\u9519\u8BEF",is_answer:ho==="1"?1:0}],analysis:gr}:(Me.ZP.info("\u8BF7\u5148\u70B9\u51FB\u9009\u62E9\u672C\u9009\u62E9\u9898\u7684\u6B63\u786E\u9009\u9879"),!1):(Me.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1),Ao=()=>{Qo(""),io(""),oi("")};return y.createElement("section",{className:lt.wrap},y.createElement("p",{className:lt.titleWrap},y.createElement("span",{className:lt.required},"*"),y.createElement("span",{className:lt.title},"\u9898\u5E72\uFF1A")),y.createElement(zt.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:pi,onChange:zr=>Qo(zr)}),y.createElement("p",{className:lt.titleWrap},y.createElement("span",{className:lt.required},"*"),y.createElement("span",{className:lt.title},"\u7B54\u6848\u9009\u9879\uFF1A",y.createElement("span",{className:lt.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),y.createElement(at.ZP.Group,{buttonStyle:"solid",value:ho,onChange:zr=>oi(zr.target.value)},y.createElement(at.ZP.Button,{value:"0",className:`${lt.radio} mr40`},"\u6B63\u786E"),y.createElement(at.ZP.Button,{value:"1",className:lt.radio},"\u9519\u8BEF")),y.createElement("p",{className:lt.titleWrap},y.createElement("span",{className:lt.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),y.createElement(zt.Z,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:gr,onChange:zr=>io(zr)}))};var un=(0,vt.connect)(({loading:gt,globalSetting:Zt})=>({globalSetting:Zt,loading:gt.effects}),null,null,{forwardRef:!0})((0,y.forwardRef)(Qt)),rn=Object.getOwnPropertySymbols,Rt=Object.prototype.hasOwnProperty,ln=Object.prototype.propertyIsEnumerable,Ht=(gt,Zt)=>{var qt={};for(var vn in gt)Rt.call(gt,vn)&&Zt.indexOf(vn)<0&&(qt[vn]=gt[vn]);if(gt!=null&&rn)for(var vn of rn(gt))Zt.indexOf(vn)<0&&ln.call(gt,vn)&&(qt[vn]=gt[vn]);return qt};const ze=null,yt=(gt,Zt)=>{var qt=gt,{globalSetting:vn,loading:yo,editData:Vr,dispatch:fo,onRef:Pr=()=>{},isEdit:Kr}=qt,_o=Ht(qt,["globalSetting","loading","editData","dispatch","onRef","isEdit"]);const[ho,oi]=(0,y.useState)([]);(0,y.useEffect)(()=>{var io;if(!Vr||!Kr)return;const bo=(io=Vr==null?void 0:Vr.shixun)==null?void 0:io.challenges.map(Ao=>({id:Ao==null?void 0:Ao.id,score:Ao.score}));oi(bo)},[Vr]),(0,y.useImperativeHandle)(Zt,()=>({onSave:pi,Clear:Qo}));const pi=()=>({challenges:[...ho]}),Qo=()=>{oi([])};console.log("editData--",Vr);const gr=io=>{var bo,Ao;return y.createElement("div",null,(Ao=(bo=io==null?void 0:io.shixun)==null?void 0:bo.challenges)==null?void 0:Ao.map((zr,Go)=>{var fi;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",Go+1,"\u5173"),y.createElement($e.Z,{key:Go,title:zr==null?void 0:zr.challenge_name},y.createElement("span",null,(0,it.Pq)(zr==null?void 0:zr.challenge_name,44)))),y.createElement("p",{style:{marginBottom:0}},y.createElement("span",{className:lt.required},"*"),y.createElement("span",{className:lt.title},"\u5206\u503C\uFF1A"),y.createElement(ve.Z,{precision:1,min:1,max:100,className:lt.baseFormItem,style:{width:176},value:(fi=ho.find(ao=>ao.id===zr.id))==null?void 0:fi.score,onChange:ao=>{ho.find(Co=>Co.id===zr.id).score=ao,oi([...ho])}})))}),y.createElement("div",{style:{clear:"both"}}))};return y.createElement("section",{className:lt.wrap},y.createElement(Ke.Z,{style:{paddingRight:10},className:lt.titleHtml,value:`${Vr==null?void 0:Vr.position}\u3001${Vr==null?void 0:Vr.name}`}),y.createElement("p",{style:{marginBottom:"10px",marginTop:"25px"}},y.createElement("span",{className:lt.required},"*"),y.createElement("span",{className:lt.title},"\u5173\u5361")),gr(Vr))};var Kt=(0,vt.connect)(({loading:gt,globalSetting:Zt})=>({globalSetting:Zt,loading:gt.effects}),null,null,{forwardRef:!0})((0,y.forwardRef)(yt)),tn=Object.getOwnPropertySymbols,Ve=Object.prototype.hasOwnProperty,Ct=Object.prototype.propertyIsEnumerable,$t=(gt,Zt)=>{var qt={};for(var vn in gt)Ve.call(gt,vn)&&Zt.indexOf(vn)<0&&(qt[vn]=gt[vn]);if(gt!=null&&tn)for(var vn of tn(gt))Zt.indexOf(vn)<0&&Ct.call(gt,vn)&&(qt[vn]=gt[vn]);return qt};const dt=["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"],Ot=(gt,Zt)=>{var qt=gt,{editData:vn,globalSetting:yo,loading:Vr,dispatch:fo,onRef:Pr=()=>{},isEdit:Kr}=qt,_o=$t(qt,["editData","globalSetting","loading","dispatch","onRef","isEdit"]);const[ho,oi]=(0,y.useState)([]),[pi,Qo]=(0,y.useState)(),[gr,io]=(0,y.useState)([]),[bo,Ao]=(0,y.useState)(""),[zr,Go]=(0,y.useState)("");(0,y.useEffect)(()=>{oi(["","","",""])},[]),(0,y.useEffect)(()=>{if(!vn||!Kr)return;Ao(vn==null?void 0:vn.name),Go(vn==null?void 0:vn.analysis),oi(vn==null?void 0:vn.choices.map(Nr=>Nr.choice_text));const Co=[];vn==null||vn.choices.map((Nr,no)=>{Nr.is_answer&&Co.push(no)}),io(Co)},[vn]),(0,y.useImperativeHandle)(Zt,()=>({onSave:fi,Clear:ao}));const fi=()=>{if(!bo)return Me.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;const Co=ho.findIndex(no=>!no);if(Co>-1)return Me.ZP.info(`\u8BF7\u5148\u8F93\u5165 ${dt[Co]} \u9009\u9879\u7684\u5185\u5BB9`),!1;if(!gr.length)return Me.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(gr.length<2)return Me.ZP.info("\u591A\u9009\u9898\u6700\u5C0F\u6B63\u786E\u9009\u9879\u4E3A2\u4E2A"),!1;const Nr=ho.map((no,bi)=>({choice_text:no,is_answer:gr.includes(bi)?1:0}));return{name:bo,choices:Nr,analysis:zr}},ao=()=>{oi(["","","",""]),Ao(""),Go(""),io("")};return y.createElement("section",{className:lt.wrap},y.createElement("p",{className:lt.titleWrap},y.createElement("span",{className:lt.required},"*"),y.createElement("span",{className:lt.title},"\u9898\u5E72\uFF1A")),y.createElement(zt.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:bo,onChange:Co=>Ao(Co)}),y.createElement("p",{className:lt.titleWrap},y.createElement("span",{className:lt.required},"*"),y.createElement("span",{className:lt.title},"\u7B54\u6848\u9009\u9879\uFF1A",y.createElement("span",{className:lt.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),ho.map((Co,Nr)=>y.createElement("div",{className:lt.choiceWrap,key:Nr},y.createElement($e.Z,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},y.createElement("div",{className:`${lt.answer} ${gr.includes(Nr)?lt.activeAnswer:""}`,onClick:()=>{gr.includes(Nr)?io(gr.filter(no=>no!==Nr)):io([...gr,Nr])}},dt[Nr])),y.createElement("div",{className:lt.editorWrap},pi===Nr?y.createElement(zt.Z,{id:`single-question-option-${Nr}`,watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:Co,onChange:no=>{ho[Nr]=no,oi(ho)}}):y.createElement("div",{className:lt.htmlWrap,onClick:()=>Qo(Nr)},y.createElement(Ke.Z,{value:Co}))),Nr>1&&y.createElement($e.Z,{title:"\u5220\u9664"},y.createElement("i",{className:`${lt.deleteIcon} iconfont icon-htmal5icon19`,onClick:()=>{oi(ho.filter((no,bi)=>bi!==Nr)),gr.includes(Nr)?io(gr.filter(no=>no!==Nr)):io([...gr,Nr])}})),Nr<14&&Nr===ho.length-1&&y.createElement($e.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},y.createElement("i",{className:`${lt.addIcon} iconfont icon-roundaddfill ml6`,onClick:()=>oi([...ho,""])})))),y.createElement("p",{className:lt.titleWrap},y.createElement("span",{className:lt.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),y.createElement(zt.Z,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:zr,onChange:Co=>Go(Co)}))};var Gt=(0,vt.connect)(({loading:gt,globalSetting:Zt})=>({globalSetting:Zt,loading:gt.effects}),null,null,{forwardRef:!0})((0,y.forwardRef)(Ot)),mn=Object.getOwnPropertySymbols,An=Object.prototype.hasOwnProperty,hn=Object.prototype.propertyIsEnumerable,Fn=(gt,Zt)=>{var qt={};for(var vn in gt)An.call(gt,vn)&&Zt.indexOf(vn)<0&&(qt[vn]=gt[vn]);if(gt!=null&&mn)for(var vn of mn(gt))Zt.indexOf(vn)<0&&hn.call(gt,vn)&&(qt[vn]=gt[vn]);return qt};const Ft=["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"],Tt=(gt,Zt)=>{var qt=gt,{editData:vn,globalSetting:yo,loading:Vr,dispatch:fo,onRef:Pr=()=>{},isEdit:Kr}=qt,_o=Fn(qt,["editData","globalSetting","loading","dispatch","onRef","isEdit"]);const[ho,oi]=(0,y.useState)([]),[pi,Qo]=(0,y.useState)(),[gr,io]=(0,y.useState)(),[bo,Ao]=(0,y.useState)(""),[zr,Go]=(0,y.useState)("");(0,y.useEffect)(()=>{oi(["","","",""])},[]),(0,y.useEffect)(()=>{if(!vn||!Kr)return;const Co=[],Nr=[];vn==null||vn.choices.forEach((no,bi)=>{Co.push(no.choice_text),no.is_answer&&Nr.push(bi)}),Ao(vn==null?void 0:vn.name),Go(vn==null?void 0:vn.analysis),oi(Co),io(Nr)},[vn]),(0,y.useImperativeHandle)(Zt,()=>({onSave:fi,Clear:ao}));const fi=()=>{if(!bo)return Me.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;const Co=ho.findIndex(no=>!no);if(Co>-1)return Me.ZP.info(`\u8BF7\u5148\u8F93\u5165 ${Ft[Co]} \u9009\u9879\u7684\u5185\u5BB9`),!1;if(!Array.isArray(gr))return Me.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 Nr=ho.map((no,bi)=>({choice_text:no,is_answer:gr.includes(bi)?1:0}));return{name:bo,choices:Nr,analysis:zr}},ao=()=>{oi(["","","",""]),Ao(""),Go(""),io("")};return y.createElement("section",{className:lt.wrap},y.createElement("p",{className:lt.titleWrap},y.createElement("span",{className:lt.required},"*"),y.createElement("span",{className:lt.title},"\u9898\u5E72\uFF1A")),y.createElement(zt.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:bo,onChange:Co=>Ao(Co)}),y.createElement("p",{className:lt.titleWrap},y.createElement("span",{className:lt.required},"*"),y.createElement("span",{className:lt.title},"\u7B54\u6848\u9009\u9879\uFF1A",y.createElement("span",{className:lt.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),ho.map((Co,Nr)=>y.createElement("div",{className:lt.choiceWrap,key:Nr},y.createElement($e.Z,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},y.createElement("div",{className:`${lt.answer} ${gr!=null&&gr.includes(Nr)?lt.activeAnswer:""}`,onClick:()=>io([Nr])},Ft[Nr])),y.createElement("div",{className:lt.editorWrap},pi===Nr?y.createElement(zt.Z,{id:`single-question-option-${Nr}`,watch:!0,height:155,isFocus:!0,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",defaultValue:Co,onChange:no=>{ho[Nr]=no,oi(ho)}}):y.createElement("div",{className:lt.htmlWrap,onClick:()=>Qo(Nr)},y.createElement(Ke.Z,{value:Co}))),Nr>1&&y.createElement($e.Z,{title:"\u5220\u9664"},y.createElement("i",{className:`${lt.deleteIcon} iconfont icon-htmal5icon19`,onClick:()=>{oi(ho.filter((no,bi)=>bi!==Nr)),Nr===gr&&io(null)}})),Nr<14&&Nr===ho.length-1&&y.createElement($e.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},y.createElement("i",{className:`${lt.addIcon} iconfont icon-roundaddfill ml6`,onClick:()=>oi([...ho,""])})))),y.createElement("p",{className:lt.titleWrap},y.createElement("span",{className:lt.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),y.createElement(zt.Z,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:zr,onChange:Co=>Go(Co)}))};var Ut=(0,vt.connect)(({loading:gt,globalSetting:Zt})=>({globalSetting:Zt,loading:gt.effects}),null,null,{forwardRef:!0})((0,y.forwardRef)(Tt)),an=z(96599),Xt=z(58755),yn=z(61485),sn=z(59301),wn=Object.defineProperty,Vn=Object.defineProperties,Mn=Object.getOwnPropertyDescriptors,$n=Object.getOwnPropertySymbols,Wn=Object.prototype.hasOwnProperty,Hn=Object.prototype.propertyIsEnumerable,ur=(gt,Zt,qt)=>Zt in gt?wn(gt,Zt,{enumerable:!0,configurable:!0,writable:!0,value:qt}):gt[Zt]=qt,rr=(gt,Zt)=>{for(var qt in Zt||(Zt={}))Wn.call(Zt,qt)&&ur(gt,qt,Zt[qt]);if($n)for(var qt of $n(Zt))Hn.call(Zt,qt)&&ur(gt,qt,Zt[qt]);return gt},dn=(gt,Zt)=>Vn(gt,Mn(Zt)),xn=(gt,Zt)=>{var qt={};for(var vn in gt)Wn.call(gt,vn)&&Zt.indexOf(vn)<0&&(qt[vn]=gt[vn]);if(gt!=null&&$n)for(var vn of $n(gt))Zt.indexOf(vn)<0&&Hn.call(gt,vn)&&(qt[vn]=gt[vn]);return qt},jn=(gt,Zt,qt)=>new Promise((vn,yo)=>{var Vr=Kr=>{try{Pr(qt.next(Kr))}catch(_o){yo(_o)}},fo=Kr=>{try{Pr(qt.throw(Kr))}catch(_o){yo(_o)}},Pr=Kr=>Kr.done?vn(Kr.value):Promise.resolve(Kr.value).then(Vr,fo);Pr((qt=qt.apply(gt,Zt)).next())});const zn=gt=>{if(!gt)return!1;if(/^s*$/.test(gt)||gt.trim()===""){Me.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u5168\u4E3A\u7A7A\u683C");return}let Zt=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 gt==="|"?(Me.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},xt=({value:gt=[],onClose:Zt})=>sn.createElement(an.default,{closable:!0,onClose:Zt,className:lt.keywordTag},sn.createElement("pre",{style:{margin:"0px",whiteSpace:"pre-wrap"}},gt.join(" \u6216 "))),_t=(gt,Zt)=>{var qt=gt,{editData:vn,globalSetting:yo,loading:Vr,dispatch:fo,onRef:Pr=()=>{},isEdit:Kr}=qt,_o=xn(qt,["editData","globalSetting","loading","dispatch","onRef","isEdit"]);const[ho,oi]=(0,y.useState)(""),[pi,Qo]=(0,y.useState)(""),[gr,io]=(0,y.useState)(""),[bo,Ao]=(0,y.useState)(""),[zr]=de.default.useForm(),Go=de.default.useWatch("use_keywords",zr);(0,y.useEffect)(()=>{var Nr;!vn||!Kr||(oi(vn==null?void 0:vn.name),Qo(vn==null?void 0:vn.analysis),io((Nr=vn==null?void 0:vn.answer_texts)==null?void 0:Nr[0]),zr.setFieldsValue(rr({},vn)))},[vn]),(0,y.useImperativeHandle)(Zt,()=>({onSave:fi,Clear:ao}));const fi=()=>jn(void 0,null,function*(){if(!ho)return Me.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;try{yield zr.validateFields()}catch(no){Me.ZP.error(no.errorFields[0].errors[0]);return}const Nr=zr.getFieldsValue();return console.log(Nr,"values"),rr({name:ho,answer_texts:[gr],analysis:pi},Nr)}),ao=()=>{oi(""),Qo(""),io(""),zr.resetFields()},Co=vn==null?void 0:vn.score;return sn.createElement("section",{className:lt.wrap},sn.createElement("p",{className:lt.titleWrap},sn.createElement("span",{className:lt.required},"*"),sn.createElement("span",{className:lt.title},"\u9898\u5E72\uFF1A")),sn.createElement(zt.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:ho,onChange:Nr=>oi(Nr)}),sn.createElement("p",{className:lt.titleWrap},sn.createElement("span",{className:lt.title},"\u53C2\u8003\u7B54\u6848\uFF1A")),sn.createElement(zt.Z,{id:"single-question-reference-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u53C2\u8003\u7B54\u6848",defaultValue:gr,onChange:Nr=>io(Nr)}),sn.createElement("p",{className:lt.titleWrap},sn.createElement("span",{className:lt.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),sn.createElement(zt.Z,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:pi,onChange:Nr=>Qo(Nr)}),sn.createElement(de.default,{form:zr,size:"large",onFinishFailed:Nr=>jn(void 0,null,function*(){var no,bi;Me.ZP.error(Nr.errorFields[0].errors[0]),zr.scrollToField((bi=(no=Nr==null?void 0:Nr.errorFields)==null?void 0:no[0])==null?void 0:bi.name,{behavior:"smooth",block:"center"})})},sn.createElement(tt.Z,{align:"middle",className:"mb30 mt20"},sn.createElement(de.default.Item,{noStyle:!0,name:"use_keywords",valuePropName:"checked"},sn.createElement(Xt.Z,null)),sn.createElement(je.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),sn.createElement(je.Z,null,sn.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"},sn.createElement(yn.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),Go&&sn.createElement(de.default.List,{name:"keywords",rules:[{validator(Nr,no){return no!=null&&no.length?(no==null?void 0:no.reduce((pa,Ji)=>pa+Ji.score,0))>parseFloat(Co)?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"))}}]},(Nr,{add:no,remove:bi})=>sn.createElement(sn.Fragment,null,sn.createElement("div",{className:"mb10"},"\u5173\u952E\u8BCD"),sn.createElement(tt.Z,{align:"middle",className:"font14 mb30"},sn.createElement(je.Z,{flex:1},sn.createElement(ge.default,{value:bo,onChange:pa=>{Ao(pa.target.value)},maxLength:50,allowClear:!0,onPressEnter:pa=>{var Ji,hl,zo,Za;const Aa=`${(Ji=pa.target)==null?void 0:Ji.value}`,cr=(zo=(hl=Aa==null?void 0:Aa.split("|"))==null?void 0:hl.filter(Ei=>!!Ei))==null?void 0:zo.map(Ei=>Ei==null?void 0:Ei.trim()),Ci=zr.getFieldValue("keywords"),Di=((Za=Ci==null?void 0:Ci.map(Ei=>Ei==null?void 0:Ei.keyword))==null?void 0:Za.flat())||[];for(const Ei of cr)if(Di.includes(Ei)){Me.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}zn(Aa)&&(no({keyword:cr,score:1}),Ao(""))},className:lt.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"})),sn.createElement(je.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),Nr.map(pa=>{var Ji=pa,{key:hl,name:zo}=Ji,Za=xn(Ji,["key","name"]);return sn.createElement(tt.Z,{key:hl,style:{marginRight:148}},sn.createElement(je.Z,{flex:1},sn.createElement(tt.Z,{align:"middle",justify:"space-between"},sn.createElement(de.default.Item,dn(rr({},Za),{name:[zo,"keyword"]}),sn.createElement(xt,{onClose:()=>bi(zo)})),sn.createElement(de.default.Item,dn(rr({},Za),{name:[zo,"score"],label:"\u5206\u503C",rules:[{required:!0}]}),sn.createElement(ve.Z,{min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))})))))};var Je=(0,vt.connect)(({loading:gt,globalSetting:Zt})=>({globalSetting:Zt,loading:gt.effects}),null,null,{forwardRef:!0})((0,y.forwardRef)(_t)),Dt=z(8848),Ge={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"},At=z(32134),Jt=z(12893),Rn=Object.defineProperty,Zn=Object.defineProperties,pt=Object.getOwnPropertyDescriptors,Et=Object.getOwnPropertySymbols,St=Object.prototype.hasOwnProperty,It=Object.prototype.propertyIsEnumerable,fn=(gt,Zt,qt)=>Zt in gt?Rn(gt,Zt,{enumerable:!0,configurable:!0,writable:!0,value:qt}):gt[Zt]=qt,Bn=(gt,Zt)=>{for(var qt in Zt||(Zt={}))St.call(Zt,qt)&&fn(gt,qt,Zt[qt]);if(Et)for(var qt of Et(Zt))It.call(Zt,qt)&&fn(gt,qt,Zt[qt]);return gt},On=(gt,Zt)=>Zn(gt,pt(Zt)),Nn=(gt,Zt)=>{var qt={};for(var vn in gt)St.call(gt,vn)&&Zt.indexOf(vn)<0&&(qt[vn]=gt[vn]);if(gt!=null&&Et)for(var vn of Et(gt))Zt.indexOf(vn)<0&&It.call(gt,vn)&&(qt[vn]=gt[vn]);return qt};const qn=gt=>{var Zt=gt,{value:qt,onChange:vn,scrollId:yo}=Zt,Vr=Nn(Zt,["value","onChange","scrollId"]);return y.createElement("div",{id:yo||""},y.createElement(zt.Z,On(Bn({},Vr),{defaultValue:qt,onChange:(fo,Pr)=>{Pr!=null&&Pr.length?vn(fo,Pr):vn(fo)}})))},nr=({value:gt,onChange:Zt,placeholder:qt,height:vn=140,isEdit:yo})=>yo?y.createElement(zt.Z,{watch:!0,isFocus:!0,height:vn,placeholder:qt,defaultValue:gt,onChange:Zt}):y.createElement("div",{style:{cursor:"pointer"}},gt?y.createElement(Ke.Z,{className:Ge.inputBorder,value:gt}):y.createElement("div",{className:`${Ge.inputBorder} ${Ge.placeholder}`},qt));var ir=z(59301),lr=Object.defineProperty,Qn=Object.defineProperties,ar=Object.getOwnPropertyDescriptors,fr=Object.getOwnPropertySymbols,Sr=Object.prototype.hasOwnProperty,br=Object.prototype.propertyIsEnumerable,Zr=(gt,Zt,qt)=>Zt in gt?lr(gt,Zt,{enumerable:!0,configurable:!0,writable:!0,value:qt}):gt[Zt]=qt,jr=(gt,Zt)=>{for(var qt in Zt||(Zt={}))Sr.call(Zt,qt)&&Zr(gt,qt,Zt[qt]);if(fr)for(var qt of fr(Zt))br.call(Zt,qt)&&Zr(gt,qt,Zt[qt]);return gt},hr=(gt,Zt)=>Qn(gt,ar(Zt)),Mr=(gt,Zt)=>{var qt={};for(var vn in gt)Sr.call(gt,vn)&&Zt.indexOf(vn)<0&&(qt[vn]=gt[vn]);if(gt!=null&&fr)for(var vn of fr(gt))Zt.indexOf(vn)<0&&br.call(gt,vn)&&(qt[vn]=gt[vn]);return qt};const eo=["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"],kr=({value:gt,onChange:Zt,choiceTextKey:qt,answerKey:vn,index:yo,isEdit:Vr,setInputActive:fo,form:Pr,choiceOptionsPath:Kr,allowChangeMode:_o,showAddIcon:ho,addItem:oi,deleteItem:pi})=>{const Qo=(gt==null?void 0:gt[vn])===!0,gr=()=>{const bo=Pr.getFieldValue(Kr);Pr.setFieldValue(Kr,bo.map(Ao=>hr(jr({},Ao),{[vn]:!1})))},io=()=>{Qo?Zt(hr(jr({},gt),{[vn]:!1})):(_o||gr(),Zt(hr(jr({},gt),{[vn]:!0})))};return ir.createElement(tt.Z,{className:Ge.choiceWrap,align:"middle",wrap:!1},ir.createElement(je.Z,{onClick:io,className:`${Ge.choiceIndex} ${Qo?Ge.activeAnswer:""}`},eo[yo]),ir.createElement(je.Z,{flex:1,className:`${Ge.editorWrap} ml15`,onClick:fo},ir.createElement(nr,{height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",isEdit:Vr,value:gt==null?void 0:gt[qt],onChange:bo=>{Zt(hr(jr({},gt),{[qt]:bo}))}})),ir.createElement(je.Z,{flex:"0 0 auto",className:"ml15"},ir.createElement("div",{onClick:io,className:`${Ge.setAnswerBtn} ${Qo?Ge.activeAnswer:""}`},Qo?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")),ir.createElement(je.Z,{className:Ge.actionWrapper},ir.createElement($e.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},ir.createElement(At.Z,{className:Ge.addIcon,onClick:oi,style:{visibility:ho?"visible":"hidden"}})),ir.createElement($e.Z,{title:"\u5220\u9664"},ir.createElement(Jt.Z,{className:Ge.deleteIcon,onClick:pi,style:{visibility:yo>1?"visible":"hidden"}}))))},Fr=({questionTitlePlaceholder:gt,titleKey:Zt,choiceKey:qt,analysisKey:vn,choiceTextKey:yo,answerKey:Vr,choiceOptionsPath:fo,allowChangeMode:Pr=!0,form:Kr,showAnalysis:_o=!0})=>{const[ho,oi]=(0,y.useState)(),[pi,Qo]=(0,y.useState)(!1);return ir.createElement("div",{className:Ge.wrap},ir.createElement("div",{className:Ge.questionTitleEditorWrap},ir.createElement(de.default.Item,{label:"\u9898\u5E72",name:Zt,labelCol:{span:24},rules:[{required:!0}]},ir.createElement(qn,{scrollId:Array.isArray(Zt)?Zt.join("_"):`${Zt}`,watch:!0,height:140,placeholder:gt}))),ir.createElement(de.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}}),ir.createElement(de.default.List,{name:qt,rules:[{validator(gr,io){const bo=io.some(zr=>zr[Vr]),Ao=io.findIndex(zr=>{var Go;return((Go=zr[yo])==null?void 0:Go.length)<=0});return Ao!==-1?Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${eo[Ao]}\u9009\u9879\u7684\u5185\u5BB9`)):bo?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},(gr,{add:io,remove:bo})=>ir.createElement("div",{id:Array.isArray(fo)?fo.join("_"):`${fo}`},gr.map((Ao,zr)=>{var Go=Ao,{key:fi,name:ao}=Go,Co=Mr(Go,["key","name"]);const Nr=ho===fi,no=()=>{oi(fi)},bi=zr<7&&zr===gr.length-1,pa=()=>io({[yo]:"",[Vr]:0}),Ji=()=>bo(ao);return ir.createElement(de.default.Item,hr(jr({},Co),{key:fi,name:ao,noStyle:!0}),ir.createElement(kr,{choiceTextKey:yo,answerKey:Vr,index:zr,isEdit:Nr,setInputActive:no,form:Kr,choiceOptionsPath:fo,allowChangeMode:Pr,showAddIcon:bi,addItem:pa,deleteItem:Ji}))}),gr.length<15&&ir.createElement("div",{className:`${Ge.addBtn} mb30`,onClick:()=>io({[yo]:"",[Vr]:0})},"\u6DFB\u52A0\u9009\u9879"))),_o&&ir.createElement("div",{onClick:()=>Qo(!0)},ir.createElement(de.default.Item,{name:vn,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},ir.createElement(nr,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:pi}))))};var or=z(59301),Ur=Object.defineProperty,Rr=Object.defineProperties,Br=Object.getOwnPropertyDescriptors,Cr=Object.getOwnPropertySymbols,so=Object.prototype.hasOwnProperty,Ho=Object.prototype.propertyIsEnumerable,ti=(gt,Zt,qt)=>Zt in gt?Ur(gt,Zt,{enumerable:!0,configurable:!0,writable:!0,value:qt}):gt[Zt]=qt,xo=(gt,Zt)=>{for(var qt in Zt||(Zt={}))so.call(Zt,qt)&&ti(gt,qt,Zt[qt]);if(Cr)for(var qt of Cr(Zt))Ho.call(Zt,qt)&&ti(gt,qt,Zt[qt]);return gt},No=(gt,Zt)=>Rr(gt,Br(Zt)),To=(gt,Zt)=>{var qt={};for(var vn in gt)so.call(gt,vn)&&Zt.indexOf(vn)<0&&(qt[vn]=gt[vn]);if(gt!=null&&Cr)for(var vn of Cr(gt))Zt.indexOf(vn)<0&&Ho.call(gt,vn)&&(qt[vn]=gt[vn]);return qt};const Xo=({value:gt,onChange:Zt,position:qt,removeBlank:vn})=>{const yo=fo=>{me.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:Ge.modal,onOk:()=>{const Pr=[...gt];Pr.splice(fo,1),Pr.length===0?vn(qt-1):Zt(Pr)}})},Vr=()=>{const fo=[...gt];fo.push(""),Zt(fo)};return or.createElement(tt.Z,{className:"ml20"},or.createElement(je.Z,{flex:1},gt==null?void 0:gt.map((fo,Pr)=>or.createElement(tt.Z,{key:`${fo}_${Pr}`,className:"mb20"},or.createElement(ge.default.TextArea,{style:{flex:1,minHeight:44},defaultValue:fo,autoSize:{maxRows:3},maxLength:1e3,onBlur:Kr=>{const _o=[...gt],ho=Kr.target.value.trim();_o[Pr]=ho,Zt(_o)}}),or.createElement($e.Z,{title:"\u5220\u9664"},or.createElement(Jt.Z,{className:Ge.deleteIcon,style:{marginLeft:15,visibility:qt===1&&Pr===0?"hidden":"visible"},onClick:()=>yo(Pr)})),or.createElement($e.Z,{title:"\u65B0\u589E\u7B54\u6848"},or.createElement(At.Z,{style:{color:"#2A5DD8",fontSize:16,marginLeft:15,visibility:Pr===0?"visible":"hidden"},onClick:()=>{Vr()}}))))))},ko=({value:gt=!0,onChange:Zt})=>or.createElement(Xt.Z,{checked:!gt,onChange:qt=>{Zt(!qt)}}),go="\u2581",dr=({questionTitlePlaceholder:gt,form:Zt,name:qt,scoreByBlank:vn="use_blank_score",answerKey:yo,titleKey:Vr="name",analysisKey:fo="analysis",isOrdered:Pr="is_ordered"})=>{var Kr,_o;const[ho,oi]=(0,y.useState)(!1),pi=()=>{const zr=Zt.getFieldValue(["sub_item_banks",...yo]);Zt.setFieldValue(["sub_item_banks",...yo],zr==null?void 0:zr.map((Go,fi)=>No(xo({},Go),{position:fi+1})))},Qo=(0,y.useRef)(),gr=(zr,Go)=>{for(let fi=0;fi<zr;fi++)Qo.current({position:null,answer_text:[""]},Go+fi);pi()},io=(0,y.useRef)(),bo=zr=>{io.current(zr),pi()},Ao=(_o=(Kr=Zt.getFieldValue("sub_item_banks"))==null?void 0:Kr[yo==null?void 0:yo[0]])==null?void 0:_o[yo==null?void 0:yo[1]];return or.createElement("div",{className:Ge.wrap},or.createElement("div",{className:Ge.questionTitleEditorWrap},or.createElement(de.default.Item,{label:"\u9898\u5E72",name:Vr,labelCol:{span:24},rules:[{required:!0}]},or.createElement(qn,{scrollId:"name",watch:!0,height:140,placeholder:gt,showNullButton:!0,onAddBlank:()=>{const zr=Zt.getFieldValue(["sub_item_banks",...yo]);gr(1,zr==null?void 0:zr.length)}}))),or.createElement(de.default.List,{name:yo,rules:[{validator(zr,Go){if((Go==null?void 0:Go.length)===0)return Promise.reject(new Error("\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"));for(const fi of Go){const{answer_text:ao}=fi||{};if(ao!=null&&ao.some(Co=>(Co==null?void 0:Co.length)===0))return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(zr,{add:Go,remove:fi},{errors:ao})=>(Qo.current=Go,io.current=fi,or.createElement(or.Fragment,null,or.createElement(de.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}}),zr.map((Co,Nr)=>{var no=Co,{key:bi,name:pa}=no,Ji=To(no,["key","name"]);return or.createElement(tt.Z,{key:bi,align:"top",wrap:!1},or.createElement(je.Z,{flex:"0 0 auto",className:`${Ge.blankIndex} pt5`},"\u586B\u7A7A\u9879",Nr+1),or.createElement(je.Z,{flex:1},or.createElement(tt.Z,{align:"top",justify:"space-between",wrap:!1},or.createElement(je.Z,{flex:1},or.createElement(de.default.Item,No(xo({},Ji),{name:[pa,"answer_text"],noStyle:!0}),or.createElement(Xo,{removeBlank:bo,position:Nr+1}))),(Zt==null?void 0:Zt.getFieldValue(["sub_item_banks",...vn]))&&or.createElement(je.Z,{flex:"224px",style:{margin:"-2px 0px 0px 20px"}},or.createElement(de.default.Item,No(xo({},Ji),{name:[pa,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:Ge.blankInputNumberWrapper}),or.createElement(ve.Z,{className:Ge.blankInput,min:.1,max:100,style:{width:"100%"},placeholder:"\u6309\u7A7A\u7ED9\u5206\u8BF7\u8F93\u5165\u5206\u503C"})))),or.createElement(de.default.Item,No(xo({},Ji),{name:[pa,"position"],noStyle:!0}),or.createElement(ge.default,{type:"hidden"}))))})))),or.createElement(pe.ZP,{className:"mb20",onClick:()=>gr(1,Ao==null?void 0:Ao.length),type:"primary",shape:"round"},"\u65B0\u589E\u586B\u7A7A\u9879"),or.createElement(tt.Z,{align:"middle"},or.createElement(de.default.Item,{name:[qt,"downcase"],valuePropName:"checked"},or.createElement(Xt.Z,null)),or.createElement(je.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),or.createElement(tt.Z,{align:"middle"},or.createElement(de.default.Item,{name:[qt,"no_space"],valuePropName:"checked"},or.createElement(Xt.Z,null)),or.createElement(je.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),(Ao==null?void 0:Ao.length)>1&&or.createElement(tt.Z,{align:"middle",className:(Ao==null?void 0:Ao.length)>1?"mb30":`${Ge.hide}`},or.createElement(de.default.Item,{name:Pr},or.createElement(ko,null)),or.createElement(je.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")),or.createElement("div",{onClick:()=>oi(!0)},or.createElement(de.default.Item,{name:fo,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},or.createElement(nr,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:ho}))))};var Tn=Object.defineProperty,Gn=Object.defineProperties,Yn=Object.getOwnPropertyDescriptors,Ln=Object.getOwnPropertySymbols,mr=Object.prototype.hasOwnProperty,wr=Object.prototype.propertyIsEnumerable,Un=(gt,Zt,qt)=>Zt in gt?Tn(gt,Zt,{enumerable:!0,configurable:!0,writable:!0,value:qt}):gt[Zt]=qt,Jn=(gt,Zt)=>{for(var qt in Zt||(Zt={}))mr.call(Zt,qt)&&Un(gt,qt,Zt[qt]);if(Ln)for(var qt of Ln(Zt))wr.call(Zt,qt)&&Un(gt,qt,Zt[qt]);return gt},sr=(gt,Zt)=>Gn(gt,Yn(Zt)),pr=(gt,Zt)=>{var qt={};for(var vn in gt)mr.call(gt,vn)&&Zt.indexOf(vn)<0&&(qt[vn]=gt[vn]);if(gt!=null&&Ln)for(var vn of Ln(gt))Zt.indexOf(vn)<0&&wr.call(gt,vn)&&(qt[vn]=gt[vn]);return qt};const _r={\u6B63\u786E:"T",\u9519\u8BEF:"F"},Yr=({value:gt,onChange:Zt,form:qt,choiceKey:vn})=>{const yo=(gt==null?void 0:gt.is_answer)===!0,Vr=gt==null?void 0:gt.choice_text,fo=()=>{var Pr;const Kr=(Pr=qt==null?void 0:qt.getFieldValue(["sub_item_banks",...vn]))==null?void 0:Pr.map(_o=>({choice_text:_o==null?void 0:_o.choice_text,is_answer:!1}));qt==null||qt.setFieldValue(["sub_item_banks",...vn],Kr),Zt(sr(Jn({},gt),{is_answer:!0}))};return y.createElement(tt.Z,{className:Ge.choiceWrap,align:"middle",wrap:!1},y.createElement(je.Z,{onClick:fo,className:`${Ge.choiceIndex} ${Ge.judgementIndex} ${yo?Ge.activeAnswer:""}`},_r[Vr]),y.createElement(je.Z,{flex:1,className:`${Ge.editorWrap} ml15`},y.createElement("div",{className:`${Ge.inputBorder} ${Ge.placeholder} ${yo?Ge.activeJudgementAnswer:""}`},Vr)),y.createElement(je.Z,{flex:"0 0 auto",className:"ml15"},y.createElement("div",{onClick:fo,className:`${Ge.setAnswerBtn} ${yo?Ge.activeAnswer:""}`},yo?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")))},to=({questionTitlePlaceholder:gt,choiceKey:Zt="choices",form:qt,titleKey:vn="name",analysisKey:yo="analysis"})=>{const[Vr,fo]=(0,y.useState)(!1);return y.createElement("div",{className:Ge.wrap},y.createElement("div",{className:Ge.questionTitleEditorWrap},y.createElement(de.default.Item,{label:"\u9898\u5E72",name:vn,labelCol:{span:24},rules:[{required:!0}]},y.createElement(qn,{scrollId:"name",watch:!0,height:140,placeholder:gt}))),y.createElement(de.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}},y.createElement(de.default.List,{name:Zt,rules:[{validator(Pr,Kr){return Kr.some(ho=>(ho==null?void 0:ho.is_answer)===!0)?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},Pr=>y.createElement("div",{id:"choices"},Pr.map(Kr=>{var _o=Kr,{key:ho,name:oi}=_o,pi=pr(_o,["key","name"]);return y.createElement(de.default.Item,sr(Jn({},pi),{key:ho,name:oi,noStyle:!0}),y.createElement(Yr,{form:qt,choiceKey:Zt}))})))),y.createElement("div",{onClick:()=>fo(!0)},y.createElement(de.default.Item,{name:yo,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},y.createElement(nr,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Vr}))))};var Fo=Object.defineProperty,Mo=Object.defineProperties,Yo=Object.getOwnPropertyDescriptors,Jo=Object.getOwnPropertySymbols,ni=Object.prototype.hasOwnProperty,ri=Object.prototype.propertyIsEnumerable,Mi=(gt,Zt,qt)=>Zt in gt?Fo(gt,Zt,{enumerable:!0,configurable:!0,writable:!0,value:qt}):gt[Zt]=qt,$i=(gt,Zt)=>{for(var qt in Zt||(Zt={}))ni.call(Zt,qt)&&Mi(gt,qt,Zt[qt]);if(Jo)for(var qt of Jo(Zt))ri.call(Zt,qt)&&Mi(gt,qt,Zt[qt]);return gt},Xi=(gt,Zt)=>Mo(gt,Yo(Zt)),Yi=(gt,Zt)=>{var qt={};for(var vn in gt)ni.call(gt,vn)&&Zt.indexOf(vn)<0&&(qt[vn]=gt[vn]);if(gt!=null&&Jo)for(var vn of Jo(gt))Zt.indexOf(vn)<0&&ri.call(gt,vn)&&(qt[vn]=gt[vn]);return qt};const ta=gt=>{var Zt=gt,{value:qt,onChange:vn}=Zt,yo=Yi(Zt,["value","onChange"]);const Vr=fo=>{vn([fo])};return y.createElement(zt.Z,Xi($i({},yo),{defaultValue:qt==null?void 0:qt[0],onChange:Vr}))},Lo=gt=>{if(!gt)return!1;let Zt=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 gt==="|"?(Me.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},co=({value:gt=[],onClose:Zt})=>y.createElement(an.default,{closable:!0,onClose:Zt,className:Ge.keywordTag},gt==null?void 0:gt.join(" \u6216 ")),wi=({questionTitlePlaceholder:gt,form:Zt,showKeywords:qt,isMustKeyWords:vn=qt,titleKey:yo="name",analysisKey:Vr="analysis",answerTexts:fo="answer_texts",keywords:Pr="keywords",useKeywords:Kr="use_keywords",indexs:_o})=>{const[ho,oi]=(0,y.useState)(!1),[pi,Qo]=(0,y.useState)(""),gr=de.default.useWatch("sub_item_banks",Zt),{use_keywords:io,score:bo}=(gr==null?void 0:gr[_o])||{};return console.log(io,bo,"itemValues"),y.createElement("div",{className:Ge.wrap},y.createElement("div",{className:Ge.questionTitleEditorWrap},y.createElement(de.default.Item,{label:"\u9898\u5E72",name:yo,labelCol:{span:24},rules:[{required:!0}]},y.createElement(qn,{scrollId:"name",watch:!0,height:140,placeholder:gt}))),y.createElement(de.default.Item,{label:"\u53C2\u8003\u7B54\u6848",name:fo,labelCol:{span:24}},y.createElement(ta,{watch:!0,height:140,placeholder:"\u8BF7\u7F16\u8F91\u53C2\u8003\u7B54\u6848\uFF08\u975E\u5FC5\u586B\uFF09"})),qt&&!vn&&y.createElement(de.default.Item,{hidden:!0,name:Kr,valuePropName:"checked"},y.createElement(Xt.Z,{defaultChecked:!0})),qt&&vn&&y.createElement(tt.Z,{align:"middle",className:"mb30"},y.createElement(de.default.Item,{name:Kr,valuePropName:"checked"},y.createElement(Xt.Z,null)),y.createElement(je.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),y.createElement(je.Z,null,y.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"},y.createElement(yn.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),(io||!vn)&&y.createElement(de.default.List,{name:Pr,rules:[{validator(Ao,zr){return vn?zr!=null&&zr.length?(zr==null?void 0:zr.reduce((fi,ao)=>fi+ao.score,0))>parseFloat(bo)?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()}}]},(Ao,{add:zr,remove:Go})=>y.createElement(y.Fragment,null,y.createElement("div",{className:`${Ge.title} mb10`},vn?"\u5173\u952E\u8BCD":y.createElement("span",{style:{color:"#9096A3"}},"\u5224\u5206\u5173\u952E\u8BCD")),y.createElement(tt.Z,{align:"middle",className:"font14 mb30"},y.createElement(je.Z,{flex:1},y.createElement(ge.default,{value:pi,onChange:fi=>{Qo(fi.target.value)},maxLength:50,allowClear:!0,onPressEnter:fi=>{var ao,Co,Nr,no;const bi=`${(ao=fi.target)==null?void 0:ao.value}`,pa=(Nr=(Co=bi==null?void 0:bi.split("|"))==null?void 0:Co.filter(zo=>!!zo))==null?void 0:Nr.map(zo=>zo==null?void 0:zo.trim()),Ji=Zt.getFieldValue(["sub_item_banks",...Pr]),hl=((no=Ji==null?void 0:Ji.map(zo=>zo==null?void 0:zo.keyword))==null?void 0:no.flat())||[];for(const zo of pa)if(hl.includes(zo)){Me.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}Lo(bi)&&(zr({keyword:pa,score:1}),Qo(""))},className:Ge.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(je.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),Ao.map(fi=>{var ao=fi,{key:Co,name:Nr}=ao,no=Yi(ao,["key","name"]);return y.createElement(tt.Z,{key:Co,className:"mb20",style:{marginRight:148}},y.createElement(je.Z,{flex:1},y.createElement(tt.Z,{align:"middle",justify:"space-between"},y.createElement(de.default.Item,Xi($i({},no),{name:[Nr,"keyword"]}),y.createElement(co,{onClose:()=>Go(Nr)})),vn&&y.createElement(de.default.Item,Xi($i({},no),{name:[Nr,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:Ge.blankInputNumberWrapper}),y.createElement(ve.Z,{className:Ge.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))}))),y.createElement("div",{onClick:()=>oi(!0)},y.createElement(de.default.Item,{name:Vr,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},y.createElement(nr,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:ho}))))};var wo=z(59301),aa=Object.defineProperty,Qa=Object.defineProperties,Ha=Object.getOwnPropertyDescriptors,da=Object.getOwnPropertySymbols,fa=Object.prototype.hasOwnProperty,Ti=Object.prototype.propertyIsEnumerable,ka=(gt,Zt,qt)=>Zt in gt?aa(gt,Zt,{enumerable:!0,configurable:!0,writable:!0,value:qt}):gt[Zt]=qt,ol=(gt,Zt)=>{for(var qt in Zt||(Zt={}))fa.call(Zt,qt)&&ka(gt,qt,Zt[qt]);if(da)for(var qt of da(Zt))Ti.call(Zt,qt)&&ka(gt,qt,Zt[qt]);return gt},Ja=(gt,Zt)=>Qa(gt,Ha(Zt)),la=(gt,Zt)=>{var qt={};for(var vn in gt)fa.call(gt,vn)&&Zt.indexOf(vn)<0&&(qt[vn]=gt[vn]);if(gt!=null&&da)for(var vn of da(gt))Zt.indexOf(vn)<0&&Ti.call(gt,vn)&&(qt[vn]=gt[vn]);return qt},Pl=(gt,Zt,qt)=>new Promise((vn,yo)=>{var Vr=Kr=>{try{Pr(qt.next(Kr))}catch(_o){yo(_o)}},fo=Kr=>{try{Pr(qt.throw(Kr))}catch(_o){yo(_o)}},Pr=Kr=>Kr.done?vn(Kr.value):Promise.resolve(Kr.value).then(Vr,fo);Pr((qt=qt.apply(gt,Zt)).next())});const{Panel:El}=Dt.default,jo=null,ai=(gt,Zt)=>{var qt=gt,{globalSetting:vn,loading:yo,dispatch:Vr,editData:fo,onRef:Pr=()=>{},isEdit:Kr}=qt,_o=la(qt,["globalSetting","loading","dispatch","editData","onRef","isEdit"]);const[ho,oi]=(0,y.useState)(""),[pi,Qo]=(0,y.useState)([]),[gr]=de.default.useForm();(0,y.useEffect)(()=>{!fo||!Kr||(oi(fo==null?void 0:fo.name),Qo(fo==null?void 0:fo.sub_item_banks),gr.setFieldsValue(ol({},fo)))},[fo]),(0,y.useEffect)(()=>{Qo(gr.getFieldValue("sub_item_banks"))},[de.default.useWatch("sub_item_banks",gr)]),(0,y.useImperativeHandle)(Zt,()=>({onSave:io,Clear:bo}));const io=()=>Pl(void 0,null,function*(){if(!ho)return Me.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;try{yield gr.validateFields()}catch(Co){return console.log(Co,"errInfo"),Me.ZP.error(Co.errorFields[0].errors[0]),!1}const ao=pi.map(Co=>ol({id:Co.id>1?Co.id:null},Co));return{name:ho,sub_item_banks:ao}}),bo=()=>{oi(""),Qo([])},Ao={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"},zr=({value:ao})=>wo.createElement("div",{style:{textAlign:"center",color:"#DF3065",margin:"0 5px"}},ao),[Go,fi]=(0,y.useState)();return wo.createElement("section",{className:lt.wrap},wo.createElement("p",{className:lt.titleWrap},wo.createElement("span",{className:lt.required},"*"),wo.createElement("span",{className:lt.title},"\u9898\u5E72\uFF1A")),wo.createElement(zt.Z,{id:"combination-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:ho,onChange:ao=>oi(ao)}),wo.createElement(de.default,{form:gr,autoComplete:"off"},wo.createElement(de.default.List,{name:"sub_item_banks",rules:[{validator(ao,Co){return Co?Promise.resolve():Promise.reject(new Error("\u8BF7\u6DFB\u52A0\u5C0F\u9898"))}}]},(ao,{add:Co,remove:Nr})=>{const no=gr.getFieldValue("sub_item_banks");return wo.createElement(wo.Fragment,null,wo.createElement(Dt.default,{className:ao.length>0?lt.collapseWrapper:"",bordered:!1,expandIcon:({isActive:bi})=>wo.createElement("i",{className:`iconfont icon-weizhankai ${bi?lt.open:lt.close}`,style:{fontSize:14,transition:"all .2s"}})},ao.map((bi,pa)=>{var Ji=bi,{key:hl,name:zo}=Ji,Za=la(Ji,["key","name"]),Aa,cr,Ci,Di,Ei,wa,Ql,Jl,ss,Al,Rl,Cs;return wo.createElement(El,{className:lt.panel,forceRender:!0,header:wo.createElement("div",{className:lt.panelHeader},"\u7B2C",pa+1,"\u5C0F\u9898",wo.createElement("span",null,"\uFF08",Ao[(Aa=no==null?void 0:no[zo])==null?void 0:Aa.item_type],"\uFF09")),extra:wo.createElement(tt.Z,{align:"middle",onClick:Nl=>Nl.stopPropagation(),style:{display:"flex",alignItems:"center"}},((cr=no==null?void 0:no[zo])==null?void 0:cr.item_type)=="completion"&&wo.createElement(de.default.Item,Ja(ol({},Za),{name:[zo,"score"],className:lt.blankInputNumberWrapper,style:{marginBottom:0}}),((Ci=no==null?void 0:no[zo])==null?void 0:Ci.item_type)=="completion"&&wo.createElement("div",{style:{display:"flex",alignItems:"center",color:"#191919"}},"\u5171",wo.createElement(zr,{value:(Di=no==null?void 0:no[zo])==null?void 0:Di.score}),"\u5206")),((Ei=no==null?void 0:no[zo])==null?void 0:Ei.item_type)=="completion"&&wo.createElement(wo.Fragment,null,wo.createElement(at.ZP.Group,{defaultValue:(wa=no==null?void 0:no[zo])==null?void 0:wa.use_blank_score,className:lt.scoreByBlankRadio,style:{marginRight:10},optionType:"button",options:[{label:"\u6309\u7A7A\u7ED9\u5206",value:!0},{label:"\u6309\u9898\u7ED9\u5206",value:!1}],onChange:Nl=>{var us;console.log(gr.getFieldsValue()),gr==null||gr.setFieldValue(["sub_item_banks",zo,"use_blank_score"],(us=Nl==null?void 0:Nl.target)==null?void 0:us.value),fi(new Date)}}),wo.createElement($e.Z,{overlayInnerStyle:{width:460},title:wo.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",wo.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")},wo.createElement("i",{className:"icon-tishixiaowenhao font18 c-3061d0"})))),key:hl},wo.createElement(de.default.Item,Ja(ol({},Za),{name:zo}),(((Ql=no==null?void 0:no[zo])==null?void 0:Ql.item_type)=="single"||((Jl=no==null?void 0:no[zo])==null?void 0:Jl.item_type)=="multiple")&&wo.createElement(Fr,{questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9009\u62E9\u9898\u9898\u5E72\u5185\u5BB9",allowChangeMode:((ss=no==null?void 0:no[zo])==null?void 0:ss.item_type)!="single",form:gr,choiceKey:[zo,"choices"],titleKey:[zo,"name"],analysisKey:[zo,"analysis"],choiceOptionsPath:["sub_item_banks",zo,"choices"],choiceTextKey:"choice_text",answerKey:"is_answer"}),((Al=no==null?void 0:no[zo])==null?void 0:Al.item_type)=="completion"&&wo.createElement(dr,{form:gr,name:zo,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9898\u5E72\uFF0C\u60A8\u53EF\u4EE5\u7528\u4EFB\u610F\u5B57\u7B26\u8868\u793A\u586B\u7A7A\u9879",scoreByBlank:[zo,"use_blank_score"],titleKey:[zo,"name"],analysisKey:[zo,"analysis"],isOrdered:[zo,"is_ordered"],answerKey:[zo,"standard_answer"],key:Go}),((Rl=no==null?void 0:no[zo])==null?void 0:Rl.item_type)=="judgement"&&wo.createElement(to,{form:gr,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u5224\u65AD\u9898\u9898\u5E72\u5185\u5BB9",titleKey:[zo,"name"],analysisKey:[zo,"analysis"],choiceKey:[zo,"choices"]}),((Cs=no==null?void 0:no[zo])==null?void 0:Cs.item_type)=="subjective"&&wo.createElement(wi,{showKeywords:!0,form:gr,titleKey:[zo,"name"],analysisKey:[zo,"analysis"],answerTexts:[zo,"answer_texts"],useKeywords:[zo,"use_keywords"],keywords:[zo,"keywords"],indexs:zo,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7B80\u7B54\u9898\u9898\u5E72\u5185\u5BB9"})))})))})))};var Ro=(0,vt.connect)(({loading:gt,globalSetting:Zt})=>({globalSetting:Zt,loading:gt.effects}),null,null,{forwardRef:!0})((0,y.forwardRef)(ai)),Bo=z(99050),qo=z(79939),Bi=z(82326),Wa=z(70858),zi={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"},Qi=z(29596),sa=z(21546),cl=z(89923),xl=z(63596),Ka=z(71347),Sl=z(96609),dl=({open:gt,onCancel:Zt,onOk:qt})=>{const vn=(0,sa.g)(),[yo,Vr,fo,Pr]=(0,xl.U)(cl.Gm,{page:1,limit:10,keyword:"",diff:"",shixun_publish_status:"",discipline_id:"",sub_discipline_id:"",type:0,include_shixuns:!0,item_type:"SHIXUN"}),[Kr,_o]=(0,y.useState)(!1);(0,y.useEffect)(()=>{gt&&fo({page:1,limit:10,type:0},!0).then(gr=>{(gr==null?void 0:gr.shixuns_count)===0&&_o(!0)})},[gt]);const[ho,oi]=(0,y.useState)([]),[pi,Qo]=(0,y.useState)([]);return y.createElement(me.default,{title:"\u9009\u62E9\u5B9E\u8BAD\u9898",open:gt,width:948,centered:!0,closable:!0,onCancel:Zt,onOk:()=>qt(pi),destroyOnClose:!0},y.createElement(tt.Z,{justify:"space-between",className:"mb20",style:{maxHeight:650}},y.createElement(je.Z,null,y.createElement(qo.Z,{style:{width:160},size:"large",placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",options:vn,onChange:gr=>{fo({page:1,discipline_id:gr==null?void 0:gr[0],sub_discipline_id:gr==null?void 0:gr[1]})}}),y.createElement(Bi.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:gr=>fo({page:1,diff:gr})}),y.createElement(Bi.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:gr=>fo({page:1,shixun_publish_status:gr})})),y.createElement(Qi.t7,{placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22",style:{width:290},onChange:gr=>{fo({keyword:gr,page:1})}})),Kr?y.createElement("div",null,y.createElement(Ka.Z,{customText:"\u6682\u65E0\u6570\u636E",ButtonText:"\u524D\u5F80\u5B9E\u8DF5\u9879\u76EE\u5E93\uFF0C\u6DFB\u52A0\u66F4\u591A\u8BD5\u9898>",ButtonClick:()=>(0,it.xg)("/shixuns")})):y.createElement(Wa.default,{loading:Vr,rowKey:"id",columns:[{title:"\u8BD5\u9898\u540D\u79F0",dataIndex:"name",width:"30%",ellipsis:{showTitle:!0},render:(gr,io)=>y.createElement("div",{style:{display:"flex",alignItems:"center"}},y.createElement("div",{className:io!=null&&io.high_resources_consume?zi.title:"",title:gr||"--"},y.createElement(Ke.Z,{key:1,showLines:1,showTextOnly:!0,value:gr||"--"})),(io==null?void 0:io.high_resources_consume)&&y.createElement(Sl.Z,{type:"shixun",style:{marginLeft:10}}))},{title:"\u96BE\u5EA6",dataIndex:"level"},{title:"\u5173\u5361\u6570\u91CF",dataIndex:"challenges_count",key:"challenges_count",render:(gr,io,bo)=>y.createElement("span",null,gr||"- -")},{title:"\u4F7F\u7528\u6B21\u6570",dataIndex:"study_count"},{title:y.createElement("span",null,"\u53D1\u5E03\u72B6\u6001 ",y.createElement($e.Z,{title:"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528"},y.createElement(yn.Z,null))),dataIndex:"shixun_tag_num_name",key:"shixun_tag_num_name",width:100,render:(gr,io,bo)=>y.createElement("span",null,gr||"- -")},{title:"\u64CD\u4F5C",render(gr,io){const{title:bo,challenge_names:Ao,author_name:zr,identifier:Go,author_school_name:fi,study_count:ao}=io||{};return y.createElement("div",null,y.createElement("span",{style:{color:"#165DFF",cursor:"pointer"},onClick:()=>{me.default.confirm({title:"\u9898\u76EE\u8BE6\u60C5",closable:!0,width:1e3,centered:!0,icon:null,footer:null,content:y.createElement("div",null,y.createElement(Ke.Z,{value:bo,style:{marginBottom:18}}),y.createElement("div",{className:zi.challengeNameWrapper},Ao.map((Co,Nr)=>y.createElement("div",{className:zi.challengeName,key:Nr},"\u7B2C",(0,it.EM)(Nr+1),"\u9898\xA0",Co))),y.createElement(tt.Z,{className:zi.shixunPreviewFooter,justify:"space-between",style:{alignItems:"center"}},y.createElement(je.Z,{className:zi.shixunInfoWrapper},y.createElement("span",null,"\u521B\u5EFA\u8005"),y.createElement("span",{className:zi.shixunInfo},zr.split("\u3001")[0]),y.createElement("span",null,"\u6240\u5C5E\u5355\u4F4D"),y.createElement("span",{className:zi.shixunInfo},fi),y.createElement("span",null,"\u5B66\u4E60\u4EBA\u6570"),y.createElement("span",{className:zi.shixunInfo},ao)),y.createElement(pe.ZP,{type:"primary",className:zi.btnToDetail,onClick:()=>(0,it.xg)(`/shixuns/${Go}/challenges?exercise=true`)},y.createElement("i",{className:"iconfont icon-shixunkecheng"}),"\u5B9E\u8BAD\u8BE6\u60C5")))})}},"\u67E5\u770B"),(io==null?void 0:io.shixun_tag_num)===1&&y.createElement("a",{target:"_blank",href:`/shixuns/${io==null?void 0:io.identifier}/challenges`,style:{marginLeft:10}},"\u53BB\u53D1\u5E03"))}}],dataSource:Pr==null?void 0:Pr.items,rowSelection:{type:"radio",selectedRowKeys:ho,preserveSelectedRowKeys:!0,getCheckboxProps:gr=>({disabled:gr.shixun_tag_num===1}),onChange(gr,io){var bo,Ao,zr;console.log(gr),oi(gr);const Go=[];for(const ao of pi)gr.includes(ao.id)&&Go.push(ao);const fi=Go.map(ao=>ao.id);for(const ao of io)ao&&gr.includes(ao.id)&&!fi.includes(ao.id)&&Go.push({id:ao.id,difficulty:ao.level,identifier:ao.identifier,name:ao.name,real_name:(bo=ao==null?void 0:ao.author_name)==null?void 0:bo.split("\u3001")[0],school_name:ao.author_school_name,challenge_names:ao.challenge_names,challenges:(Ao=ao.challenge_names)==null?void 0:Ao.map((Co,Nr)=>({subject:Co,id:Nr,score:5})),score:((zr=ao.challenge_names)==null?void 0:zr.length)*5,study_count:ao.study_count,challenges_count:ao.challenges_count});Qo(Go)}},pagination:{current:yo.page,pageSize:yo.limit,total:Pr==null?void 0:Pr.items_count,showTotal:gr=>y.createElement("span",null,"\u5171\xA0",y.createElement("span",{style:{color:"#165DFF"}},gr),"\xA0\u6761\u6570\u636E"),showQuickJumper:!0,onChange(gr,io){fo({page:gr,limit:io})},size:"default"},scroll:{y:400}}))},zl=z(15567),Fs=z(52123),Gl=(gt,Zt,qt)=>new Promise((vn,yo)=>{var Vr=Kr=>{try{Pr(qt.next(Kr))}catch(_o){yo(_o)}},fo=Kr=>{try{Pr(qt.throw(Kr))}catch(_o){yo(_o)}},Pr=Kr=>Kr.done?vn(Kr.value):Promise.resolve(Kr.value).then(Vr,fo);Pr((qt=qt.apply(gt,Zt)).next())}),Ll=({visible:gt,getdata:Zt,onCancel:qt,onRandomExchange:vn,selectFromProblemSet:yo,questionParams:Vr})=>{const[fo,Pr]=(0,y.useState)(!1),[Kr,_o]=(0,y.useState)(!1),[ho,oi]=(0,y.useState)({}),pi=(0,vt.useParams)(),[Qo,gr]=(0,y.useState)(),io=(bo,Ao)=>Gl(void 0,null,function*(){_o(!0);const zr=yield(0,Qe.ZP)(`/api/exercises/${pi.categoryId}/toggle_random_question.json`,{method:"post",body:{question_id:Vr.id,item_bank_id:bo,shixuns_info:[{id:bo,is_copy:Ao!=1,is_use:Ao!=1}]}});_o(!1),zr!=null&&zr.status||(Me.ZP.info("\u6362\u9898\u6210\u529F"),qt(),Zt())});return y.createElement(me.default,{title:"\u8BF7\u9009\u62E9\u66FF\u6362\u65B9\u5F0F",open:gt,onCancel:qt,centered:!0,maskClosable:!0,footer:null},y.createElement(tt.Z,{justify:"center",className:"pb20"},y.createElement(Bo.Z,{onClick:vn},"\u968F\u673A\u66F4\u6362"),(Vr==null?void 0:Vr.type)!=="PRACTICAL"&&y.createElement(pe.ZP,{style:{marginLeft:24},onClick:yo},"\u4ECE\u9898\u5E93\u4E2D\u9009\u62E9"),(Vr==null?void 0:Vr.type)==="PRACTICAL"&&y.createElement(pe.ZP,{style:{marginLeft:24},onClick:()=>{Pr(!0)}},"\u4ECE\u9898\u5E93\u4E2D\u9009\u62E9")),y.createElement(dl,{open:fo,onCancel:()=>Pr(!1),onOk:bo=>Gl(void 0,null,function*(){if(console.log("----selectedRows",bo,pi),(bo==null?void 0:bo.length)<=0){Me.ZP.info("\u8BF7\u9009\u62E9\u5B9E\u8BAD");return}let Ao=bo==null?void 0:bo.map(Go=>Go==null?void 0:Go.id),zr=yield(0,Fs.Tr)({id:[...Ao],course_id:pi.coursesId,type:"shixun"});(zr==null?void 0:zr.student_count)===0?io(Ao==null?void 0:Ao[0],1):(gr(Ao),oi(zr)),Pr(!1)})}),y.createElement(zl.Z,{resdata:ho,type:"shixun",okloading:Kr,oktext:(ho==null?void 0:ho.can_copy_num)===0?"\u786E\u5B9A":"\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362",onok:bo=>Gl(void 0,null,function*(){io(Qo==null?void 0:Qo[0],2)})}))},fl=z(98203),is=z(24334),Xl=z(20150),bs=z(93493),Il=z(68798),Ls=z(10102),as=Object.defineProperty,wl=Object.defineProperties,Hl=Object.getOwnPropertyDescriptors,Wl=Object.getOwnPropertySymbols,ls=Object.prototype.hasOwnProperty,Kl=Object.prototype.propertyIsEnumerable,Yl=(gt,Zt,qt)=>Zt in gt?as(gt,Zt,{enumerable:!0,configurable:!0,writable:!0,value:qt}):gt[Zt]=qt,qa=(gt,Zt)=>{for(var qt in Zt||(Zt={}))ls.call(Zt,qt)&&Yl(gt,qt,Zt[qt]);if(Wl)for(var qt of Wl(Zt))Kl.call(Zt,qt)&&Yl(gt,qt,Zt[qt]);return gt},el=(gt,Zt)=>wl(gt,Hl(Zt)),Zi=(gt,Zt,qt)=>new Promise((vn,yo)=>{var Vr=Kr=>{try{Pr(qt.next(Kr))}catch(_o){yo(_o)}},fo=Kr=>{try{Pr(qt.throw(Kr))}catch(_o){yo(_o)}},Pr=Kr=>Kr.done?vn(Kr.value):Promise.resolve(Kr.value).then(Vr,fo);Pr((qt=qt.apply(gt,Zt)).next())});const yi=({data:gt,submit:Zt,goBack:qt,loading:vn,onTypeScore:yo,editPreview:Vr=!1,onSkipExamination:fo,selectValue:Pr,onExchange:Kr,getdata:_o,handleMarkWrongQuestion:ho,dispatch:oi})=>{var pi,Qo,gr,io,bo,Ao,zr,Go,fi,ao,Co;const Nr=(0,y.useRef)(),[no,bi]=(0,y.useState)(null),[pa,Ji]=(0,y.useState)(!1),[hl,zo]=(0,y.useState)(!1),Za=(0,y.useRef)(),[Aa]=de.default.useForm(),cr=(0,vt.useParams)(),[Ci,Di]=(0,y.useState)(!1),[Ei,wa]=(0,y.useState)([]);(0,y.useEffect)(()=>{Ji(!0)},[]),(0,y.useEffect)(()=>{Vr||(0,it.Dk)("\u8BD5\u5377\u9884\u89C8")},[Vr]),(0,y.useEffect)(()=>{var En;((En=gt==null?void 0:gt.questionList)==null?void 0:En.length)>0&&(gt==null||gt.questionList.forEach(Or=>{var Wo;Or.type==="PRACTICAL"&&((Wo=Or==null?void 0:Or.questions)==null||Wo.forEach((Lr,Xn)=>{var $o;Ei[Xn]=!(($o=Lr==null?void 0:Lr.shixun)!=null&&$o.ignore_prompt),wa([...Ei])}))}))},[gt]);const Ql=["\u5BB9\u6613","\u7B80\u5355","\u9002\u4E2D","\u56F0\u96BE"],Jl={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"},ss={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"},Al=En=>{var Or;const Wo=[];return y.createElement(y.Fragment,null,y.createElement("aside",{className:he.single},(Or=En==null?void 0:En.choices)==null?void 0:Or.map((Lr,Xn)=>(Lr.is_answer&&Wo.push(Il.k4[Xn]),y.createElement("ul",{key:Xn},y.createElement("li",null,Il.k4[Xn],"\u3001"),y.createElement("li",null,y.createElement(Ke.Z,{value:Lr.choice_text})))))),y.createElement("div",{className:he.analysis},y.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A",Wo.join(""),y.createElement("span",{className:"ml30"},"\u96BE\u5EA6\uFF1A",Ql[En.difficulty])),y.createElement("aside",null,y.createElement("span",{className:he.text},"\u89E3\u6790:"),y.createElement(Ke.Z,{value:En.analysis?En.analysis:"\u6682\u65E0\u89E3\u6790"})),y.createElement("ul",null,y.createElement("li",null,y.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u8BFE\u7A0B:"),`${(En==null?void 0:En.course_discipline_name)||"--"}`),y.createElement($e.Z,{title:En==null?void 0:En.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:"),En==null?void 0:En.tag_discipline_name)))))},Rl=(En,Or)=>{var Wo;const Lr=(Wo=En==null?void 0:En.standard_answer)==null?void 0:Wo.map((Xn,$o)=>{var Vo;return y.createElement("div",{key:$o},`\u7B54\u6848\uFF08\u586B\u7A7A${Xn==null?void 0:Xn.position}\uFF09\uFF1A${(Vo=Xn==null?void 0:Xn.answer_text)==null?void 0:Vo.join("\u3001")}`)});return y.createElement(y.Fragment,null,y.createElement("div",{className:he.analysis},y.createElement("div",{style:{display:"flex"}},y.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A"),y.createElement("div",null,Lr)),y.createElement("aside",null,y.createElement("span",{className:he.text},"\u89E3\u6790:"),y.createElement(Ke.Z,{value:En.analysis?En.analysis:"\u6682\u65E0\u89E3\u6790"})),y.createElement("ul",null,y.createElement("li",null,y.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u8BFE\u7A0B:"),`${(Or==null?void 0:Or.course_discipline_name)||"--"}`),y.createElement($e.Z,{title:Or?Or==null?void 0:Or.tag_discipline_name:En==null?void 0:En.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:"),Or?Or==null?void 0:Or.tag_discipline_name:En==null?void 0:En.tag_discipline_name)))))},Cs=En=>{var Or;const Wo=(Or=En==null?void 0:En.standard_answer)==null?void 0:Or.map((Lr,Xn)=>y.createElement("div",{key:Xn},`\u7B54\u6848\uFF08\u586B\u7A7A${(Lr==null?void 0:Lr.position)||(Lr==null?void 0:Lr.exercise_choice_id)}\uFF09\uFF1A${Lr==null?void 0:Lr.answer_text}`));return y.createElement(y.Fragment,null,y.createElement("div",{className:he.analysis},y.createElement("div",{style:{display:"flex"}},y.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A"),y.createElement("div",null,Wo)),y.createElement("aside",null,y.createElement("span",{className:he.text},"\u89E3\u6790:"),y.createElement(Ke.Z,{value:En.analysis?En.analysis:"\u6682\u65E0\u89E3\u6790"})),y.createElement("ul",null,y.createElement("li",null,y.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u8BFE\u7A0B:"),`${(En==null?void 0:En.course_discipline_name)||"--"}`),y.createElement($e.Z,{title:En==null?void 0:En.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:"),En==null?void 0:En.tag_discipline_name)))))},Nl=(En,Or)=>{var Wo;return y.createElement("div",{className:he.analysis},y.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A",(Wo=En==null?void 0:En.answer_texts)==null?void 0:Wo[0]),y.createElement("aside",null,y.createElement("span",{className:he.text},"\u89E3\u6790:"),y.createElement(Ke.Z,{value:En.analysis?En.analysis:"\u6682\u65E0\u89E3\u6790"})),y.createElement("ul",null,y.createElement("li",null,y.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u8BFE\u7A0B:"),`${(Or==null?void 0:Or.course_discipline_name)||"--"}`),y.createElement($e.Z,{title:Or?Or==null?void 0:Or.tag_discipline_name:En==null?void 0:En.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:"),Or?Or==null?void 0:Or.tag_discipline_name:En==null?void 0:En.tag_discipline_name))))},us=En=>{var Or,Wo;return y.createElement("div",{className:he.analysis},y.createElement("aside",null,y.createElement("span",{className:he.text},"\u9884\u671F\u8F93\u51FA:"),y.createElement(Ke.Z,{value:(Or=En==null?void 0:En.program_attr)==null?void 0:Or.description})),y.createElement("div",{style:{marginTop:20}},"\u6B63\u786E\u7B54\u6848\uFF1A",((Wo=En==null?void 0:En.program_attr)==null?void 0:Wo.answer_text)||"--"),y.createElement("aside",null,y.createElement("span",{className:he.text},"\u89E3\u6790:"),y.createElement(Ke.Z,{value:En.analysis?En.analysis:"\u6682\u65E0\u89E3\u6790"})),y.createElement("ul",null,y.createElement("li",null,y.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u8BFE\u7A0B:"),`${(En==null?void 0:En.course_discipline_name)||"--"}`),y.createElement($e.Z,{title:En==null?void 0:En.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:"),En==null?void 0:En.tag_discipline_name))))},Es=(En,Or)=>{var Wo;return y.createElement("div",null,(Wo=En==null?void 0:En.sub_item_banks)==null?void 0:Wo.map((Lr,Xn)=>{var $o,Vo;const ki=[];return y.createElement(y.Fragment,null,y.createElement("div",{style:{marginLeft:25,fontSize:"16px",color:"#333",paddingTop:"15px"}},Or+1+"."+(Xn+1),"\uFF08",Jl[Lr.item_type]||ss[Lr.item_type],"\uFF09",Lr.name),(Lr.item_type=="SINGLE"||Lr.item_type=="MULTIPLE"||Lr.item_type=="JUDGMENT"||Lr.item_type=="single"||Lr.item_type=="multiple"||Lr.item_type=="judgement")&&y.createElement(y.Fragment,null,y.createElement("aside",{className:he.single},($o=Lr==null?void 0:Lr.choices)==null?void 0:$o.map((li,va)=>(li.is_answer&&ki.push(Il.k4[va]),y.createElement("ul",{key:va},y.createElement("li",null,Il.k4[va],"\u3001"),y.createElement("li",null,y.createElement(Ke.Z,{value:li.choice_text})))))),y.createElement("div",{className:he.analysis},y.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A",ki.join(""),y.createElement("span",{className:"ml30"},"\u96BE\u5EA6\uFF1A",Ql[Lr.difficulty])),y.createElement("aside",null,y.createElement("span",{className:he.text},"\u89E3\u6790:"),y.createElement(Ke.Z,{value:Lr.analysis?Lr.analysis:"\u6682\u65E0\u89E3\u6790"})),y.createElement("ul",null,y.createElement("li",null,y.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u8BFE\u7A0B:"),`${(En==null?void 0:En.course_discipline_name)||"--"}`),y.createElement($e.Z,{title:En==null?void 0:En.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:"),En==null?void 0:En.tag_discipline_name))))),(Lr.item_type=="COMPLETION"||Lr.item_type=="completion")&&Rl(Lr,En),(Lr.item_type=="SUBJECTIVE"||Lr.item_type=="subjective")&&Nl(Lr,En),((Vo=gt==null?void 0:gt.exam)==null?void 0:Vo.exercise_status)===3&&y.createElement("div",{className:"flex gap-20px mt20"},y.createElement(Xl.Z,{state:Lr==null?void 0:Lr.is_wrong,onClick:()=>{ho==null||ho({value:el(qa({},Lr),{question_id:Lr==null?void 0:Lr.id,question_score:Lr==null?void 0:Lr.score})})}}),Lr.item_type=="single"&&y.createElement(pe.ZP,{style:{color:"#3061D0"},onClick:()=>{_l({value:Lr})}},"\u589E\u8BBE\u6B63\u786E\u7B54\u6848")))}))},Rs=En=>{var Or,Wo,Lr;return y.createElement("div",{style:{marginTop:"12px"}},(Wo=(Or=En==null?void 0:En.shixun)==null?void 0:Or.challenges)==null?void 0:Wo.map((Xn,$o)=>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",$o+1,"\u5173"),y.createElement($e.Z,{key:$o,title:Xn==null?void 0:Xn.challenge_name},y.createElement("span",null,(0,it.Pq)(Xn==null?void 0:Xn.challenge_name,44)))),Vr&&y.createElement("div",null,"\u5206\u503C\uFF1A",Xn.score,"\u5206"))),y.createElement(vt.Link,{style:{float:"right"},target:"_blank",to:`/shixuns/${(Lr=En==null?void 0:En.shixun)==null?void 0:Lr.identifier}/challenges`},"\u5B9E\u8BAD\u8BE6\u60C5"),y.createElement("div",{style:{clear:"both"}}))},ql=En=>{let Or=En.questions_score/En.questions_count;me.default.confirm({icon:null,centered:!0,title:"\u5206\u6570\u8BBE\u7F6E",content:y.createElement("div",{className:he.modalColumn},y.createElement("div",{className:he.modalRow,style:{justifyContent:"flex-start"}},y.createElement("sup",{className:he.sup},"*"),y.createElement("span",null,En==null?void 0:En.name,"\uFF1A"),y.createElement(ve.Z,{min:0,precision:1,defaultValue:Or,onChange:Wo=>{Or=Wo}}),y.createElement("span",{className:"ml5"},"\u5206/\u9898"))),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>Zi(void 0,null,function*(){var Wo;if(!Or)return Me.ZP.warning("\u5206\u6570\u4E0D\u80FD\u4E3A\u7A7A\u6216\u4E3A0"),Promise.reject();const Lr={type:En==null?void 0:En.type,score:Or,scoreTotal:Number((Wo=Or*En.questions_count)==null?void 0:Wo.toFixed(1))};yo(Lr)})})},cs=()=>{let En="";me.default.confirm({icon:null,centered:!0,title:"\u4FDD\u5B58\u8BD5\u5377",content:y.createElement("div",{className:he.modalColumn},y.createElement("div",{style:{color:"#676A6C",display:"flex",alignItems:"center"},className:"font14 mt20"},y.createElement("img",{style:{marginRight:5},src:qe.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:he.modalRow,style:{marginTop:20}},y.createElement("sup",{className:he.sup},"*"),y.createElement("span",{style:{flexShrink:0}},"\u8BD5\u5377\u540D\u79F0\uFF1A"),y.createElement(ge.default,{placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u540D\u79F0",min:0,maxLength:60,defaultValue:En,onChange:Or=>{En=Or.target.value}}))),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>Zi(void 0,null,function*(){var Or;if(!En)return Me.ZP.warning("\u8BD5\u5377\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"),Promise.reject();const Wo=[],Lr=[],Xn=[],$o=[];(Or=gt==null?void 0:gt.questionList)==null||Or.forEach(ki=>{var li;(li=ki.questions)==null||li.forEach(va=>{let Ri=ki.questions_score/ki.questions_count;Ri=Ri&&Ri.toFixed(1),ki.type==="COMBINATION"&&Xn.push({id:va.id,sub_item_bank_ids:va.sub_item_banks.map(Bl=>Bl.id)}),ki.type==="PRACTICAL"?$o.push(va.id):(Wo.push(va.id),Lr.push(Ri))})}),console.log("-----",Xn),yield Zt({item_bank_ids:Wo,item_bank_scores:Lr,name:En,combination_item_banks:Xn,shixun_ids:$o})})})},es=(En,Or,Wo,Lr)=>{var Xn;const $o=`${location.pathname}${location.search}`,Vo=(Xn=Lr.questions)==null?void 0:Xn.map(ki=>ki==null?void 0:ki.id);if($o.includes("exercise"))Za.current={id:En,ids:Vo,type:Or,index:Wo},zo(!0);else{let ki=me.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:()=>Zi(void 0,null,function*(){ki.update({cancelButtonProps:{disabled:!0}}),yield Kr({single_question_id:En,seleted_item_bank_ids:Vo},{type:Or,index:Wo}),ki.update({cancelButtonProps:{disabled:!1}}),Me.ZP.success("\u5DF2\u91CD\u65B0\u968F\u673A\u751F\u6210\u8BD5\u9898")})})}},ds=En=>{var Or;const Wo=(Or=En.questions)==null?void 0:Or.map($o=>$o==null?void 0:$o.id),Lr=En.name;let Xn=me.default.confirm({icon:null,centered:!0,title:"\u6E29\u99A8\u63D0\u793A",content:`\u786E\u8BA4\u66F4\u6362${Lr}\u4E2D\u7684\u6240\u6709\u8BD5\u9898\u5417\uFF1F`,cancelButtonProps:{disabled:!1},maskClosable:!1,keyboard:!1,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>Zi(void 0,null,function*(){Xn.update({cancelButtonProps:{disabled:!0}}),yield Kr({seleted_item_bank_ids:Wo},{type:En.type}),Xn.update({cancelButtonProps:{disabled:!1}}),Me.ZP.success(`\u5DF2\u91CD\u65B0\u968F\u673A\u751F\u6210${Lr}\u8BD5\u9898`)})})},fs=()=>{let En=me.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:()=>Zi(void 0,null,function*(){En.update({cancelButtonProps:{disabled:!0}}),yield Kr(),En.update({cancelButtonProps:{disabled:!1}}),Me.ZP.success("\u5DF2\u91CD\u65B0\u968F\u673A\u751F\u6210\u6574\u5F20\u8BD5\u9898")})})},hs=En=>{console.log(En,"key"),fo(En-1)},Qs=(En,Or)=>{var Wo,Lr;if(Or==="SINGLE")return y.createElement(y.Fragment,null,y.createElement(Ut,{ref:Nr,editData:En,isEdit:!0}),y.createElement(se.Z,null));if(Or==="MULTIPLE")return y.createElement(y.Fragment,null,y.createElement(Gt,{ref:Nr,editData:En,isEdit:!0}),y.createElement(se.Z,null));if(Or==="JUDGMENT")return y.createElement(y.Fragment,null,y.createElement(un,{ref:Nr,editData:En,isEdit:!0}),y.createElement(se.Z,null));if(Or==="COMPLETION")return y.createElement(y.Fragment,null,y.createElement(He,{ref:Nr,editData:En,isEdit:!0}),y.createElement(se.Z,null));if(Or==="SUBJECTIVE")return y.createElement(y.Fragment,null,y.createElement(Je,{ref:Nr,editData:En,isEdit:!0}),y.createElement(se.Z,null));if(Or==="COMBINATION")return y.createElement(y.Fragment,null,y.createElement(Ro,{ref:Nr,editData:En,isEdit:!0}),y.createElement(se.Z,null));if(Or==="BPROGRAM")return y.createElement(y.Fragment,null,y.createElement(de.default,{form:Aa,style:{marginTop:20},onFinishFailed:Xn=>{var $o,Vo;Xn.errorFields[0].name.includes("standard_answers")?Me.ZP.error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"):Me.ZP.error(Xn.errorFields[0].errors[0]),Aa.scrollToField((Vo=($o=Xn==null?void 0:Xn.errorFields)==null?void 0:$o[0])==null?void 0:Vo.name,{behavior:"smooth",block:"center"})},onFinish:Xn=>Zi(void 0,null,function*(){var $o;let Vo=el(qa({question_score:En.score},Xn),{question_type:8,hack:el(qa({},Xn.hack),{difficult:En.program_attr.difficult}),hack_codes:el(qa({},Xn.hack_codes),{code:is.Base64.encode(($o=Xn.hack_codes)==null?void 0:$o.code)})});Ci&&(Vo.is_cover=1);const ki=yield(0,Qe.ZP)(`/api/exercise_questions/${En.id}.json`,{method:"put",body:Vo});(ki==null?void 0:ki.status)===0&&(Me.ZP.success("\u7F16\u8F91\u6210\u529F"),hs(Pr+1)),bi(null)})},y.createElement(fl.tc,{form:Aa,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9898\u5E72\u5E76\u8BBE\u7F6E\u586B\u7A7A\u9879",scoreByBlank:!1,hackidentifier:(Wo=En==null?void 0:En.program_attr)==null?void 0:Wo.identifier,answerKey:"standard_answers"}),y.createElement(se.Z,null)));if(Or==="PROGRAM"&&vt.history.push(`/problems/${(Lr=En==null?void 0:En.program_attr)==null?void 0:Lr.identifier}/edit?type=exercises&express_id=${cr.categoryId}&question_id=${En==null?void 0:En.id}&score=${En==null?void 0:En.score}&callback_url=${location.pathname}&select=${Pr}&exercise=true`),Or==="PRACTICAL")return y.createElement(y.Fragment,null,y.createElement(Kt,{ref:Nr,editData:En,isEdit:!0}),y.createElement(se.Z,null))},_s=(En,Or)=>Zi(void 0,null,function*(){var Wo,Lr,Xn,$o,Vo,ki;const li=yield(Wo=Nr.current)==null?void 0:Wo.onSave();if(!li)return;const va=po=>{const ga=po.map(La=>La.choice_text.trim().replace(/^\s+|\s+$/g,""));return new Set(ga).size!==ga.length},Ri={question_score:Or.score,analysis:li.analysis};if(En==="SINGLE"||En==="MULTIPLE"||En==="JUDGMENT"){if(En!=="JUDGMENT"&&va(li==null?void 0:li.choices)){Me.ZP.error("\u9009\u62E9\u9898\u9009\u9879\u5185\u5BB9\u4E0D\u80FD\u91CD\u590D\uFF0C\u8BF7\u4FEE\u6539\u540E\u518D\u4FDD\u5B58");return}const po=[],ga=[];Ri.question_type=En==="JUDGMENT"?2:1,Ri.question_title=li==null?void 0:li.name,(Lr=li==null?void 0:li.choices)==null||Lr.forEach((il,La)=>{po.push(il.choice_text),il!=null&&il.is_answer&&ga.push(La+1)}),Ri.question_choices=po,Ri.standard_answers=ga}if(En==="COMPLETION"){let po=(Xn=li==null?void 0:li.standard_answers)==null?void 0:Xn.map((La,De)=>Number(La==null?void 0:La.score)?null:De+1).filter(La=>La!==null);if((po==null?void 0:po.length)>0)return Me.ZP.warning(`\u7B2C${po.join("\u3001")}\u9879\u7684\u5206\u503C\u4E0D\u80FD\u4E3A\u7A7A`),!1;let ga=($o=li==null?void 0:li.standard_answers)==null?void 0:$o.reduce((La,De)=>La+(Number(De==null?void 0:De.score)||0),0);if(parseFloat(ga.toFixed(2))!=(Ri==null?void 0:Ri.question_score))return Me.ZP.warning("\u5404\u586B\u7A7A\u9879\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u7B49\u4E8E\u8BE5\u5C0F\u9898\u5206\u503C\uFF01"),!1;Ri.is_ordered=li.is_ordered,Ri.question_title=li==null?void 0:li.name,Ri.use_blank_score=li==null?void 0:li.use_blank_score,Ri.question_type=3;const il=[];(Vo=li==null?void 0:li.standard_answers)==null||Vo.forEach((La,De)=>{il.push({choice_id:La.position,answer_text:La.answer_text,score:La.score})}),Ri.standard_answers=il,Ri.downcase=li==null?void 0:li.downcase,Ri.no_space=li==null?void 0:li.no_space}if(En==="SUBJECTIVE"&&(console.log("editorData"),console.log(li),Ri.question_title=li==null?void 0:li.name,Ri.question_type=4,Ri.answer_texts=li==null?void 0:li.answer_texts,Ri.use_keywords=li==null?void 0:li.use_keywords,Ri.keywords=li==null?void 0:li.keywords),En==="COMBINATION"){Ri.question_title=li==null?void 0:li.name,Ri.question_type=7;try{Ri.sub_questions=(ki=li==null?void 0:li.sub_item_banks)==null?void 0:ki.map((po,ga)=>{var il,La,De;if((po==null?void 0:po.item_type)=="single"||(po==null?void 0:po.item_type)=="multiple"){if(va(po==null?void 0:po.choices))throw new Error(`\u7B2C${ga+1}\u5C0F\u9898\u9009\u9879\u5185\u5BB9\u91CD\u590D\uFF0C\u8BF7\u4FEE\u6539\u540E\u518D\u4FDD\u5B58`);const we=[],st=[];return(il=po==null?void 0:po.choices)==null||il.forEach((wt,Vt)=>{we.push(wt.choice_text),wt!=null&&wt.is_answer&&st.push(Vt+1)}),{id:po.id,question_id:po.id,question_title:po.name,difficulty:po.difficulty,question_type:(po==null?void 0:po.item_type)=="single"?0:(po==null?void 0:po.item_type)=="multiple"?1:2,question_choices:we,standard_answers:st,analysis:po.analysis,question_score:po==null?void 0:po.score}}else if((po==null?void 0:po.item_type)=="completion"){let we=(La=po==null?void 0:po.standard_answer)==null?void 0:La.reduce((wt,Vt)=>wt+(Number(Vt==null?void 0:Vt.score)||0),0);if(parseFloat(we.toFixed(2))!=(po==null?void 0:po.score))throw new Error("\u5404\u586B\u7A7A\u9879\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u7B49\u4E8E\u8BE5\u5C0F\u9898\u5206\u503C\uFF01");const st=[];return(De=po==null?void 0:po.standard_answer)==null||De.forEach((wt,Vt)=>{st.push({choice_id:wt.position,answer_text:wt.answer_text,score:wt.score})}),{id:po.id,question_id:po.id,is_ordered:po.is_ordered,question_title:po.name,difficulty:po.difficulty,question_type:3,standard_answers:st,use_blank_score:po.use_blank_score,analysis:po.analysis,downcase:po==null?void 0:po.downcase,no_space:po==null?void 0:po.no_space,question_score:po==null?void 0:po.score}}else if((po==null?void 0:po.item_type)=="subjective")return{id:po.id,question_id:po.id,question_title:po.name,question_type:4,difficulty:po.difficulty,answer_texts:po==null?void 0:po.answer_texts,analysis:po.analysis,question_score:po==null?void 0:po.score,use_keywords:po.use_keywords,keywords:po==null?void 0:po.keywords}})}catch(po){Me.ZP.warning(po.message);return}delete Ri.analysis}let Bl=!1;(Or==null?void 0:Or.is_my)===1&&(Bl=yield new Promise((ga,il)=>{me.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:()=>{ga(!0)},onCancel:()=>{ga(!1)}})})),Bl&&(Ri.is_cover=1);const ms=En!=="PRACTICAL"?yield(0,Qe.ZP)(`/api/exercise_questions/${Or.id}.json`,{method:"put",body:Ri}):yield(0,Qe.ZP)(`/api/exercise_questions/${Or.id}/update_shixun_score.json`,{method:"post",body:qa({},li)});(ms==null?void 0:ms.status)===0&&(Me.ZP.success("\u7F16\u8F91\u6210\u529F"),hs(Pr+1),bi(null))}),mu=()=>Zi(void 0,null,function*(){(0,vt.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u66F4\u65B0\u8BD5\u5377\uFF0C\u8BF7\u7A0D\u540E..."}}),(yield(0,Qe.ZP)(`/api/exercises/${cr.categoryId}/sync_random_question.json`,{method:"post"})).status===0&&(yield fo(Pr),Me.ZP.success("\u66F4\u65B0\u6210\u529F")),(0,vt.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1}})}),_l=({value:En}={})=>{var Or;const Wo=[];let Lr=[];const Xn=(Or=En==null?void 0:En.choices)==null?void 0:Or.map((Vo,ki)=>{var li;const va=ki+1;return Vo!=null&&Vo.is_answer&&(Wo.push(va),Lr.push(va)),{value:va,label:y.createElement(Ke.Z,{className:"c-black font14",value:`${(li=Il.k4)==null?void 0:li[ki]}. ${Vo==null?void 0:Vo.choice_text}`}),disabled:Vo==null?void 0:Vo.origin_standard_answer}}),$o=me.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 ",Wo==null?void 0:Wo.map(Vo=>{var ki;return(ki=Il.k4)==null?void 0:ki[Vo-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:Xn,defaultValue:Lr,onChange:Vo=>{Lr=Vo}})),onOk:()=>Zi(void 0,null,function*(){const Vo=yield(0,Qe.ZP)(`/api/exercises/${cr.categoryId}/questions/${En==null?void 0:En.id}/add_standard_answers.json`,{method:"put",body:{standard_answer:Lr}});(Vo==null?void 0:Vo.status)===0&&(Me.ZP.success("\u4FEE\u6539\u6210\u529F"),hs(Pr+1))})})},Ml=(pi=gt==null?void 0:gt.questionList)==null?void 0:pi.reduce((En,Or)=>En+Number(Or.questions_score),0),$s=Vr&&((Qo=gt==null?void 0:gt.exam)==null?void 0:Qo.exercise_status)!==1,pu=En=>Zi(void 0,null,function*(){const Or=yield(0,Qe.ZP)(`/api/courses/${cr==null?void 0:cr.coursesId}/sync_shixuns.json`,{method:"post",body:{exercise_ids:[cr==null?void 0:cr.categoryId],exercise_question_id:En.id}});(Or==null?void 0:Or.status)===0&&(oi({type:"classroomList/setActionTabs",payload:{}}),Me.ZP.info("\u5B9E\u8BAD\u540C\u6B65\u4E2D\uFF0C\u8BF7\u7A0D\u540E"))}),Js=(En,Or)=>Zi(void 0,null,function*(){let Wo=yield(0,Qe.ZP)(`/api/courses/${cr==null?void 0:cr.coursesId}/ignore_prompt.json`,{method:"post",body:{container_type:"Exercise",container_id:cr==null?void 0:cr.categoryId,exercise_question_id:En==null?void 0:En.id}});(Wo==null?void 0:Wo.status)===0&&(Ei[Or]=!1,wa([...Ei]))});return y.createElement("section",{className:he.wrap},y.createElement("div",{id:"id_left_preview",className:he.left,onMouseEnter:En=>{const Or=document.getElementById("id_left_preview");Or.style.overflowY="auto"},onMouseLeave:En=>{const Or=document.getElementById("id_left_preview");Or.style.overflowY="hidden"}},y.createElement("div",{className:he.title},y.createElement("div",{className:"body-overflow-initial"},y.createElement("b",null),y.createElement("span",null,"\u7B54\u9898\u5361"))),y.createElement("div",{className:he.total},y.createElement("div",null,y.createElement("img",{src:nt}),y.createElement("span",null,"\u9898\u6570(\u9053)"),y.createElement("aside",null,gt==null?void 0:gt.all_questions_count)),y.createElement("div",{className:"mr30 ml30"},y.createElement("img",{src:ot}),y.createElement("span",null,"\u603B\u5206(\u5206)"),y.createElement("aside",null,Ml&&Ml.toFixed(1))),y.createElement("div",null,y.createElement("img",{src:Re}),y.createElement("span",null,"\u65F6\u957F(\u5206)"),y.createElement("aside",null,((gr=gt==null?void 0:gt.exam)==null?void 0:gr.time)===-1||((io=gt==null?void 0:gt.exam)==null?void 0:io.time)===null?"\u4E0D\u9650":(bo=gt==null?void 0:gt.exam)==null?void 0:bo.time))),(Ao=gt==null?void 0:gt.questionList)==null?void 0:Ao.map((En,Or)=>{var Wo;return y.createElement("div",{className:he.list,key:Or},y.createElement("div",{className:he.name},y.createElement("b",null),y.createElement("span",null,En.name)),y.createElement("aside",null,y.createElement("div",null,"\u5171",y.createElement("span",{className:he.b},En.questions_count),"\u9898 ",y.createElement("span",{className:he.l},"|"),"\u5171",y.createElement("span",{className:he.r},En.questions_score),"\u5206"),y.createElement("div",{className:he.answerSheet},(Wo=En==null?void 0:En.questions)==null?void 0:Wo.map((Lr,Xn)=>y.createElement("div",{onClick:()=>{const $o=`Anchor_${Lr==null?void 0:Lr.id}`;let Vo=document.getElementById($o);Vo&&setTimeout(()=>Vo.scrollIntoView({block:"center",behavior:"smooth"}))},key:Lr==null?void 0:Lr.id,className:he.tag},Xn+1)))))})),y.createElement("div",{className:he.right},y.createElement("div",{className:he.examName,id:"examName"},y.createElement("div",{className:he.name},y.createElement($e.Z,{title:(zr=gt==null?void 0:gt.exam)==null?void 0:zr.name,getPopupContainer:En=>En.parentNode},y.createElement("span",{className:he.t},(Go=gt==null?void 0:gt.exam)==null?void 0:Go.name))),Vr&&((fi=gt==null?void 0:gt.exam)==null?void 0:fi.exercise_status)===1&&y.createElement(Qi.op,{openLoading:!0,shape:"default",onClick:()=>{me.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:()=>{mu()}})},type:"primary"},"\u66F4\u65B0\u8BD5\u5377"),!Vr&&y.createElement(pe.ZP,{onClick:fs,type:"primary"},"\u968F\u673A\u66F4\u6362")),y.createElement("div",{className:he.topWarp},(ao=gt==null?void 0:gt.questionList)==null?void 0:ao.map((En,Or)=>{var Wo,Lr;return y.createElement(y.Fragment,{key:Or},y.createElement("div",{className:he.head,style:Or===0?{border:0,marginTop:-16}:{}},y.createElement("div",{className:he.name},y.createElement("b",null),y.createElement("span",null,En.name)),y.createElement("div",{className:he.so},"\u5171",y.createElement("span",{className:he.b},En.questions_count," "),"\u9898 ",En.type==="COMBINATION"&&`\uFF08\u5305\u542B${(Wo=En==null?void 0:En.questions)==null?void 0:Wo.map(Xn=>{var $o;return($o=Xn==null?void 0:Xn.sub_item_banks)==null?void 0:$o.length}).reduce((Xn,$o)=>Xn+$o)}\u5C0F\u9898\uFF09`,y.createElement("span",{className:he.l},"|"),"\u5171",y.createElement("span",{className:he.r},En.questions_score),"\u5206"),!Vr&&y.createElement("div",{className:he.btn},y.createElement(pe.ZP,{onClick:()=>{ql(En)},type:"primary",ghost:!0,className:"mr20"},"\u8BBE\u7F6E\u5F97\u5206"),y.createElement(pe.ZP,{onClick:()=>ds(En),type:"primary",ghost:!0},"\u968F\u673A\u66F4\u6362"))),(Lr=En==null?void 0:En.questions)==null?void 0:Lr.map((Xn,$o)=>{var Vo,ki,li,va,Ri;return no===(Xn==null?void 0:Xn.id)?y.createElement("div",{id:`Anchor_${Xn==null?void 0:Xn.id}`,className:he.content,style:{padding:0,marginTop:24},key:Xn==null?void 0:Xn.id},y.createElement("div",{style:{float:"right",marginTop:`${(En==null?void 0:En.type)==="PRACTICAL"?"-2px":"-6px"}`}},y.createElement(pe.ZP,{onClick:()=>bi(null),className:"mr20",type:"primary",ghost:!0},"\u53D6\u6D88"),y.createElement(pe.ZP,{onClick:()=>{_s(En==null?void 0:En.type,Xn)},type:"primary"},"\u4FDD\u5B58")),Qs(Xn,En.type)):y.createElement("div",{id:`Anchor_${Xn==null?void 0:Xn.id}`,className:he.content,key:Xn==null?void 0:Xn.id},y.createElement("div",{className:he.titleWrap},(Xn==null?void 0:Xn.item_type)==="bprogram"?y.createElement(Ke.Z,{style:{paddingRight:10},value:$o+1+"\u3001"+((Vo=Xn==null?void 0:Xn.program_attr)==null?void 0:Vo.description)}):y.createElement(Ke.Z,{style:{paddingRight:10},className:he.titleHtml,value:$o+1+`\u3001${(Xn==null?void 0:Xn.item_type)==="combination"?"\uFF08\u9898\u5E72\uFF09":""}`+(Xn==null?void 0:Xn.name)}),(0,Ls.G5)()&&((ki=Xn==null?void 0:Xn.shixun)==null?void 0:ki.shixun_change)&&y.createElement(Ae.Z,{trigger:"click",open:Ei[$o],onOpenChange:Bl=>{Ei[$o]=!0,wa([...Ei])},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:he.btn_warp},y.createElement(pe.ZP,{size:"small",onClick:()=>Js(Xn,$o)},"\u5FFD\u7565"),y.createElement(pe.ZP,{className:"ml20",size:"small",type:"primary",onClick:()=>{Ei[$o]=!1,wa([...Ei]),oi({type:"classroomList/setActionTabs",payload:{key:"\u5B9E\u8BAD\u540C\u6B65\u786E\u8BA4",onOK:()=>pu(Xn)}})}},"\u786E\u8BA4\u540C\u6B65"),y.createElement(pe.ZP,{className:"ml20",size:"small",type:"primary",onClick:()=>(0,it.xg)(`/shixuns/${Xn==null?void 0:Xn.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:Bl=>Bl.stopPropagation()})),Vr&&y.createElement(pe.ZP,{onClick:()=>{var Bl,ms,po;if(no){Me.ZP.warning("\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898");return}Aa.setFieldsValue({standard_answers:Xn==null?void 0:Xn.standard_answer,hack:qa(qa({},Xn),Xn==null?void 0:Xn.program_attr),hack_codes:el(qa({},Xn==null?void 0:Xn.program_attr),{code:is.Base64.decode(((Bl=Xn==null?void 0:Xn.program_attr)==null?void 0:Bl.code)||"")}),hack_sets:qa({},(ms=Xn==null?void 0:Xn.hack_sets)==null?void 0:ms[0])}),(Xn==null?void 0:Xn.item_type)=="program"?vt.history.push(`/problems/newedit/${(po=Xn==null?void 0:Xn.program_attr)==null?void 0:po.identifier}?type=exercises&express_id=${cr.categoryId}&question_id=${Xn==null?void 0:Xn.id}&score=${Xn==null?void 0:Xn.score}&exercise=true&callback_url=/classrooms/${cr.coursesId}/exercise/${cr.categoryId}/detail?random=true`):bi(Xn==null?void 0:Xn.id)},type:"primary",style:{marginLeft:"auto"},ghost:!0},"\u7F16\u8F91"),!$s&&y.createElement(pe.ZP,{disabled:$s,className:"ml20",onClick:()=>es(Xn==null?void 0:Xn.id,En.type,$o,En),type:"primary",ghost:!0},"\u6362\u4E00\u9898")),(Xn==null?void 0:Xn.item_type)==="bprogram"&&y.createElement(Ke.Z,{style:{paddingRight:10,paddingLeft:25},showProgramFill:!0,disabledFill:!0,className:he.titleHtml,value:is.Base64.decode(((li=Xn==null?void 0:Xn.program_attr)==null?void 0:li.code)||"")}),(En.type==="SINGLE"||En.type==="JUDGMENT"||En.type==="MULTIPLE")&&Al(Xn),En.type==="COMPLETION"&&Rl(Xn),En.type==="SUBJECTIVE"&&Nl(Xn),En.type==="PROGRAM"&&us(Xn),En.type==="BPROGRAM"&&Cs(Xn),En.type==="COMBINATION"&&Es(Xn,$o),En.type==="PRACTICAL"&&Rs(Xn),y.createElement(tt.Z,{className:"mt20",wrap:!1,align:"middle",gutter:20},((va=gt==null?void 0:gt.exam)==null?void 0:va.exercise_status)===3&&!["PROGRAM","BPROGRAM","PRACTICAL","COMBINATION"].includes(En.type)&&y.createElement(je.Z,null,y.createElement(Xl.Z,{state:Xn==null?void 0:Xn.is_wrong,onClick:()=>{ho==null||ho({value:el(qa({},Xn),{question_id:Xn==null?void 0:Xn.id,question_score:Xn==null?void 0:Xn.score})})}})),["PROGRAM","BPROGRAM","PRACTICAL"].includes(En.type)&&(Xn==null?void 0:Xn.show_resubmit)&&y.createElement(je.Z,null,y.createElement(bs.C,{dataSource:el(qa({},Xn),{question_id:Xn==null?void 0:Xn.id})})),((Ri=gt==null?void 0:gt.exam)==null?void 0:Ri.exercise_status)===3&&["SINGLE"].includes(En.type)&&y.createElement(je.Z,null,y.createElement(pe.ZP,{style:{color:"#3061D0"},onClick:()=>{_l({value:Xn})}},"\u589E\u8BBE\u6B63\u786E\u7B54\u6848"))))}))}))),Vr?y.createElement(Qi.vr,null,y.createElement(Te.Z,{showTotal:it.rU,total:(Co=gt==null?void 0:gt.exam)==null?void 0:Co.total_num,pageSize:1,current:Pr+1,showSizeChanger:!1,onChange:hs,showQuickJumper:!1,hideOnSinglePage:!1})):y.createElement(Qi.vr,{LeftContent:y.createElement(Qi.op,{onClick:qt,shape:"default",style:{height:38,background:"#fff",boxShadow:"none"}},"\u8FD4\u56DE"),RightContent:y.createElement(tt.Z,{align:"middle"},y.createElement(Ae.Z,{color:"#55575D",overlayClassName:he.popover,open:pa,getPopupContainer:En=>En==null?void 0:En.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(Qi.op,{onMouseEnter:()=>Ji(!0),onMouseLeave:()=>Ji(!1),onClick:()=>Zi(void 0,null,function*(){const En=Number(Ml);[100,120,150].includes(En)||(yield new Promise((Or,Wo)=>{me.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"}},En),"\u5206\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u8FDB\u884C\u4FDD\u5B58\uFF1F"),onOk:()=>Zi(void 0,null,function*(){Or("")}),onCancel:()=>{Wo()}})})),cs()}),shape:"default",style:{height:38,background:"#fff",boxShadow:"none"}},"\u4FDD\u5B58")),y.createElement(Qi.op,{shape:"default",type:"primary",onClick:()=>Zi(void 0,null,function*(){const En=Number(Ml);[100,120,150].includes(En)||(yield new Promise((Or,Wo)=>{me.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"}},En),"\u5206\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u8FDB\u884C\u4FDD\u5B58\uFF1F"),onOk:()=>Zi(void 0,null,function*(){Or("")}),onCancel:()=>{Wo()}})})),Zt()}),style:{height:38,marginLeft:20}},"\u63D0\u4EA4"))}),y.createElement(Ll,{visible:hl,questionParams:Za.current,getdata:_o,onRandomExchange:()=>Zi(void 0,null,function*(){const En=Za.current;yield Kr({single_question_id:En.id,seleted_item_bank_ids:En.ids},{type:En.type,index:En.index}),zo(!1)}),selectFromProblemSet:()=>{const En=Za.current,Or=`${location.pathname}${location.search}`;Or.includes("exercise")&&vt.history.push(`/paperlibrary/exchangequestion?type=exercise&qid=${En.id}&qtype=${En.type}&exerciseid=${cr.categoryId}&from=${Or}`)},onCancel:()=>{zo(!1)}}))};var ci=(0,vt.connect)(({classroomList:gt})=>({classroomList:gt}))(yi)},39202:function(bn,Wt,z){"use strict";z.r(Wt),z.d(Wt,{default:function(){return Pe}});var y=z(59301),he=z(63823),de={flex_box_center:"flex_box_center___kQBcj",flex_space_between:"flex_space_between___Znlbo",flex_box_vertical_center:"flex_box_vertical_center___CPD50",flex_box_center_end:"flex_box_center_end___jzPvK",flex_box_column:"flex_box_column___cvIBS",wrap:"wrap___lab8O",crumbs:"crumbs___qvTza"},$e=z(26931),pe=z(6767),me=z(458),ve=z(22972),Me=z(68911),ge=z(59301),se=Object.defineProperty,_e=Object.getOwnPropertySymbols,Ae=Object.prototype.hasOwnProperty,tt=Object.prototype.propertyIsEnumerable,je=(Ye,ct,Be)=>ct in Ye?se(Ye,ct,{enumerable:!0,configurable:!0,writable:!0,value:Be}):Ye[ct]=Be,Te=(Ye,ct)=>{for(var Be in ct||(ct={}))Ae.call(ct,Be)&&je(Ye,Be,ct[Be]);if(_e)for(var Be of _e(ct))tt.call(ct,Be)&&je(Ye,Be,ct[Be]);return Ye},Ce=(Ye,ct,Be)=>new Promise((Oe,Re)=>{var Ke=Qe=>{try{it(Be.next(Qe))}catch(ut){Re(ut)}},vt=Qe=>{try{it(Be.throw(Qe))}catch(ut){Re(ut)}},it=Qe=>Qe.done?Oe(Qe.value):Promise.resolve(Qe.value).then(Ke,vt);it((Be=Be.apply(Ye,ct)).next())});const Se=({paperlibrary:Ye,user:ct,globalSetting:Be,dispatch:Oe,location:Re})=>{var Ke,vt,it,Qe;const[ut]=(0,he.useSearchParams)(),be=ut.get("select")||0,[et,Ne]=(0,y.useState)(!1),[ue,mt]=(0,y.useState)(!0),[Ze,nt]=(0,y.useState)(Number(be)),[Mt,Fe]=(0,y.useState)({}),ye=(0,he.useParams)(),{userInfo:Bt}=ct,{actionTabs:jt}=Ye;(0,y.useEffect)(()=>(Oe({type:"globalSetting/footerToggle",payload:!1}),()=>{Oe({type:"globalSetting/footerToggle",payload:!0})}),[]),(0,y.useEffect)(()=>(Oe({type:"globalSetting/onlyShowBackTopToggle",payload:!1}),Oe({type:"globalSetting/onlyShowBackTopIconToggle",payload:!1}),Oe({type:"exercise/getWorkSetting",payload:Te({},ye)}),()=>{Oe({type:"globalSetting/onlyShowBackTopToggle",payload:!0}),Oe({type:"globalSetting/onlyShowBackTopIconToggle",payload:!0})}),[]),(0,y.useEffect)(()=>{Lt(Ze)},[]),(0,y.useEffect)(()=>{var lt;(lt=jt==null?void 0:jt.params)!=null&&lt.isUpdateData&&Lt(Ze)},[(Ke=jt==null?void 0:jt.params)==null?void 0:Ke.isUpdateData]);const Lt=(lt=0)=>Ce(void 0,null,function*(){console.log(ye),mt(!0);const rt=yield(0,ve.ZP)(`/api/exercises/${ye.categoryId}/preview_random_exercise.json`,{method:"get",params:{num:lt}});Oe({type:"paperlibrary/setActionTabs",payload:{params:{isUpdateData:!1}}}),mt(!1),Fe((0,Me.PF)(rt))}),Ee=()=>{he.history.push(`/classrooms/${ye.coursesId}/exercise`)},ot=()=>{alert("\u4FDD\u5B58")},qe=(lt,rt)=>Ce(void 0,null,function*(){const on=yield(0,ve.ZP)(`/api/exercises/${ye.categoryId}/toggle_random_question.json`,{method:"post",body:{question_id:lt==null?void 0:lt.single_question_id}});on!=null&&on.question&&(pe.ZP.info("\u6362\u9898\u6210\u529F"),Lt(Ze))}),zt=lt=>Ce(void 0,null,function*(){document.body.scrollIntoView(),nt(lt),yield Lt(lt)}),ht=lt=>{Oe({type:"exercise/setActionTabs",payload:{key:"\u6807\u8BB0\u9519\u9898",params:lt}})};return console.log((0,he.useLocation)(),"location333"),ge.createElement("section",{className:de.wrap},ge.createElement(me.Z,{loading:ue,active:!0,paragraph:{rows:5}},((it=(vt=(0,he.useLocation)())==null?void 0:vt.pathname)==null?void 0:it.includes("preview"))&&ge.createElement("div",{className:de.crumbs},ge.createElement("b",null),ge.createElement("span",{className:"current",onClick:()=>he.history.push(`/classrooms/${ye.coursesId}/exercise`)},`${(Qe=Bt==null?void 0:Bt.course)==null?void 0:Qe.course_name}>`),ge.createElement("span",{className:"current",onClick:()=>he.history.push(`/classrooms/${ye.coursesId}/exercise`)},"\u8BD5\u5377\u5217\u8868>"),ge.createElement("span",{style:{color:"#bebebe"}},"\u9884\u89C8")),ge.createElement($e.Z,{loading:et,submit:ot,goBack:Ee,data:Mt,getdata:()=>{Lt(Ze)},selectValue:Ze,editPreview:!0,onExchange:qe,onSkipExamination:zt,handleMarkWrongQuestion:ht})))};var Pe=(0,he.connect)(({paperlibrary:Ye,user:ct,globalSetting:Be})=>({paperlibrary:Ye,user:ct,globalSetting:Be}))(Se)},21546:function(bn,Wt,z){"use strict";z.d(Wt,{g:function(){return pe}});var y=z(59301),he=z(18632),de=z(76154),$e=(me,ve,Me)=>new Promise((ge,se)=>{var _e=je=>{try{tt(Me.next(je))}catch(Te){se(Te)}},Ae=je=>{try{tt(Me.throw(je))}catch(Te){se(Te)}},tt=je=>je.done?ge(je.value):Promise.resolve(je.value).then(_e,Ae);tt((Me=Me.apply(me,ve)).next())});const pe=()=>{const[me,ve]=(0,y.useState)([]);return(0,y.useEffect)(()=>{$e(void 0,null,function*(){const ge=yield(0,he.d1)({source:"question"});ge!=null&&ge.disciplines&&ve((0,de.L)(ge==null?void 0:ge.disciplines))})},[]),me}},63596:function(bn,Wt,z){"use strict";z.d(Wt,{U:function(){return ge}});var y=z(59301),he=Object.defineProperty,de=Object.getOwnPropertySymbols,$e=Object.prototype.hasOwnProperty,pe=Object.prototype.propertyIsEnumerable,me=(se,_e,Ae)=>_e in se?he(se,_e,{enumerable:!0,configurable:!0,writable:!0,value:Ae}):se[_e]=Ae,ve=(se,_e)=>{for(var Ae in _e||(_e={}))$e.call(_e,Ae)&&me(se,Ae,_e[Ae]);if(de)for(var Ae of de(_e))pe.call(_e,Ae)&&me(se,Ae,_e[Ae]);return se},Me=(se,_e,Ae)=>new Promise((tt,je)=>{var Te=Pe=>{try{Se(Ae.next(Pe))}catch(Ye){je(Ye)}},Ce=Pe=>{try{Se(Ae.throw(Pe))}catch(Ye){je(Ye)}},Se=Pe=>Pe.done?tt(Pe.value):Promise.resolve(Pe.value).then(Te,Ce);Se((Ae=Ae.apply(se,_e)).next())});function ge(se,_e){const[Ae,tt]=(0,y.useState)(_e),[je,Te]=(0,y.useState)(!1),[Ce,Se]=(0,y.useState)();return[Ae,je,(Ye,ct=!1)=>Me(this,null,function*(){const Be=ct?_e:ve(ve({},Ae),Ye);Te(!0),tt(Be);const Oe=yield se(Be);return Te(!1),Se(Oe),Oe}),Ce,Se]}},74410:function(bn,Wt,z){"use strict";z.d(Wt,{AL:function(){return Be},Iy:function(){return _e},Qv:function(){return je},ez:function(){return ct},jb:function(){return Ae}});var y=z(32834),he=z.n(y),de=z(11690),$e=z.n(de);let pe=1;function me(it,Qe){const ut=it.match(/^(\s+)(?:```)/);if(ut===null)return Qe;const be=ut[1];return Qe.split(`
`).map(et=>{const Ne=et.match(/^\s+/);if(Ne===null)return et;const[ue]=Ne;return ue.length>=be.length?et.slice(be.length):et}).join(`
`)}let ve=[],Me=["<ul>"];const ge=new(he()).Renderer,se=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function _e(){ve.length=0,Me=["<ul>"]}const Ae={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function tt(it,Qe,ut,be){if(Qe>=it.length||it[Qe].level<=ut)return Qe;var et=it[Qe];be.push("<li><a href='#"+pe+et.anchor+"'>"+et.text+"</a>"),Qe++;var Ne=[];return Qe=tt(it,Qe,et.level,Ne),Ne.length>0&&(be.push("<ul>"),Ne.forEach(function(ue){be.push(ue)}),be.push("</ul>")),be.push("</li>"),Qe=tt(it,Qe,ut,be),Qe}function je(){return tt(ve,0,0,Me),Me.push("</ul>"),Me.join("")}const Te={heading(it){const Qe=se.exec(it);if(pe+=1,Qe)return{type:"heading",raw:Qe[0],depth:Qe[1].length,text:Qe[2]}},fences(it){const Qe=this.rules.block.fences.exec(it);if(Qe){const ut=Qe[0];let be=me(ut,Qe[3]||"");const et=Qe[2]?Qe[2].trim():Qe[2];if(["latex","katex","math"].indexOf(et)>=0){const Ne=Pe(),ue=be;be=Ne,Ye[Ne]={type:"block",expression:ue}}return{type:"code",raw:ut,lang:et,text:be}}}},Ce=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let Se=0;const Pe=()=>`__special_katext_id_${Se++}__`;let Ye={};function ct(){return Ye}function Be(){Se=0,Ye={}}function Oe(it){return it=it.replace(Ce,(Qe,ut)=>{const be=Pe();return Ye[be]={type:"inline",expression:ut},be}),it}const Re=ge.listitem;ge.listitem=function(it){return Re(Oe(it))};const Ke=ge.paragraph;ge.paragraph=function(it){return Ke(Oe(it))};const vt=ge.tablecell;ge.tablecell=function(it,Qe){return vt(Oe(it),Qe)},ge.code=function(it,Qe,ut){const be=(Qe||"").match(/\S*/)[0];return be?["latex","katex","math"].indexOf(be)>=0?`<p class='editormd-tex'>${it}</p>`:`<pre class="prettyprint linenums"><code class="language-${Qe}">${ut?it:(0,de.escape)(it,!0)}</code></pre>
`:'<pre class="prettyprint linenums"><code>'+(ut?it:(0,de.escape)(it,!0))+"</code></pre>"},ge.heading=function(it,Qe,ut){let be=this.options.headerPrefix+ut.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return ve.push({anchor:be,level:Qe,text:it}),"<h"+Qe+' id="'+pe+be+'">'+it+"</h"+Qe+">"},he().setOptions({silent:!0,gfm:!0,pedantic:!1}),he().use({tokenizer:Te,renderer:ge}),Wt.ZP=he()},9981:function(bn,Wt){"use strict";const z=function(){const y=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let he=1;he<arguments.length;he++){const de=he<0||arguments.length<=he?void 0:arguments[he];de&&Object.keys(de).forEach($e=>{const pe=de[$e];pe!==void 0&&(y[$e]=pe)})}return y};Wt.Z=z},86013:function(bn,Wt,z){"use strict";var y=z(59301),he=z(19248);const de=$e=>{let pe;return typeof $e=="object"&&($e!=null&&$e.clearIcon)?pe=$e:$e&&(pe={clearIcon:y.createElement(he.Z,null)}),pe};Wt.Z=de},54500:function(bn,Wt,z){"use strict";z.d(Wt,{Z:function(){return y}});const y=he=>he?typeof he=="function"?he():he:null},97224:function(bn,Wt,z){"use strict";z.d(Wt,{F:function(){return y}});function y(de){return de!=null&&de===de.window}const he=de=>{var $e,pe;if(typeof window=="undefined")return 0;let me=0;return y(de)?me=de.pageYOffset:de instanceof Document?me=de.documentElement.scrollTop:(de instanceof HTMLElement||de)&&(me=de.scrollTop),de&&!y(de)&&typeof me!="number"&&(me=(pe=(($e=de.ownerDocument)!==null&&$e!==void 0?$e:de).documentElement)===null||pe===void 0?void 0:pe.scrollTop),me};Wt.Z=he},83010:function(bn,Wt,z){"use strict";z.d(Wt,{Z:function(){return $e}});var y=z(16089);function he(pe,me,ve,Me){const ge=ve-me;return pe/=Me/2,pe<1?ge/2*pe*pe*pe+me:ge/2*((pe-=2)*pe*pe+2)+me}var de=z(97224);function $e(pe){let me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:ve=()=>window,callback:Me,duration:ge=450}=me,se=ve(),_e=(0,de.Z)(se),Ae=Date.now(),tt=()=>{const Te=Date.now()-Ae,Ce=he(Te>ge?ge:Te,_e,pe,ge);(0,de.F)(se)?se.scrollTo(window.pageXOffset,Ce):se instanceof Document||se.constructor.name==="HTMLDocument"?se.documentElement.scrollTop=Ce:se.scrollTop=Ce,Te<ge?(0,y.Z)(tt):typeof Me=="function"&&Me()};(0,y.Z)(tt)}},79939:function(bn,Wt,z){"use strict";z.d(Wt,{Z:function(){return Zn}});var y=z(94480),he=z(59301),de=z(92310),$e=z.n(de),pe=z(54476),me=z(33885),ve=z(42978),Me=z(75931),ge=z(37463),se=z(6551),_e=z(6089),Ae=z(18929),tt=he.createContext({}),je=tt,Te=z(76190),Ce=z(20068),Se="__rc_cascader_search_mark__",Pe=function(Et,St,It){var fn=It.label,Bn=fn===void 0?"":fn;return St.some(function(On){return String(On[Bn]).toLowerCase().includes(Et.toLowerCase())})},Ye=function(Et,St,It,fn){return St.map(function(Bn){return Bn[fn.label]}).join(" / ")},ct=function(Et,St,It,fn,Bn,On){var Nn=Bn.filter,qn=Nn===void 0?Pe:Nn,nr=Bn.render,ir=nr===void 0?Ye:nr,lr=Bn.limit,Qn=lr===void 0?50:lr,ar=Bn.sort;return he.useMemo(function(){var fr=[];if(!Et)return[];function Sr(br,Zr){var jr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;br.forEach(function(hr){if(!(!ar&&Qn!==!1&&Qn>0&&fr.length>=Qn)){var Mr=[].concat((0,y.Z)(Zr),[hr]),eo=hr[It.children],kr=jr||hr.disabled;if((!eo||eo.length===0||On)&&qn(Et,Mr,{label:It.label})){var Fr;fr.push((0,me.Z)((0,me.Z)({},hr),{},(Fr={disabled:kr},(0,Ce.Z)(Fr,It.label,ir(Et,Mr,fn,It)),(0,Ce.Z)(Fr,Se,Mr),(0,Ce.Z)(Fr,It.children,void 0),Fr)))}eo&&Sr(hr[It.children],Mr,kr)}})}return Sr(St,[]),ar&&fr.sort(function(br,Zr){return ar(br[Se],Zr[Se],Et,It)}),Qn!==!1&&Qn>0?fr.slice(0,Qn):fr},[Et,St,It,fn,ir,On,qn,ar,Qn])},Be=ct,Oe="__RC_CASCADER_SPLIT__",Re="SHOW_PARENT",Ke="SHOW_CHILD";function vt(pt){return pt.join(Oe)}function it(pt){return pt.map(vt)}function Qe(pt){return pt.split(Oe)}function ut(pt){var Et=pt||{},St=Et.label,It=Et.value,fn=Et.children,Bn=It||"value";return{label:St||"label",value:Bn,key:Bn,children:fn||"children"}}function be(pt,Et){var St,It;return(St=pt.isLeaf)!==null&&St!==void 0?St:!((It=pt[Et.children])!==null&&It!==void 0&&It.length)}function et(pt){var Et=pt.parentElement;if(Et){var St=pt.offsetTop-Et.offsetTop;St-Et.scrollTop<0?Et.scrollTo({top:St}):St+pt.offsetHeight-Et.scrollTop>Et.offsetHeight&&Et.scrollTo({top:St+pt.offsetHeight-Et.offsetHeight})}}function Ne(pt,Et){return pt.map(function(St){var It;return(It=St[Se])===null||It===void 0?void 0:It.map(function(fn){return fn[Et.value]})})}function ue(pt){return Array.isArray(pt)&&Array.isArray(pt[0])}function mt(pt){return pt?ue(pt)?pt:(pt.length===0?[]:[pt]).map(function(Et){return Array.isArray(Et)?Et:[Et]}):[]}function Ze(pt,Et,St){var It=new Set(pt),fn=Et();return pt.filter(function(Bn){var On=fn[Bn],Nn=On?On.parent:null,qn=On?On.children:null;return On&&On.node.disabled?!0:St===Ke?!(qn&&qn.some(function(nr){return nr.key&&It.has(nr.key)})):!(Nn&&!Nn.node.disabled&&It.has(Nn.key))})}function nt(pt,Et,St){for(var It=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,fn=Et,Bn=[],On=function(){var nr,ir,lr,Qn=pt[Nn],ar=(nr=fn)===null||nr===void 0?void 0:nr.findIndex(function(Sr){var br=Sr[St.value];return It?String(br)===String(Qn):br===Qn}),fr=ar!==-1?(ir=fn)===null||ir===void 0?void 0:ir[ar]:null;Bn.push({value:(lr=fr==null?void 0:fr[St.value])!==null&&lr!==void 0?lr:Qn,index:ar,option:fr}),fn=fr==null?void 0:fr[St.children]},Nn=0;Nn<pt.length;Nn+=1)On();return Bn}var Mt=function(pt,Et,St,It,fn){return he.useMemo(function(){var Bn=fn||function(On){var Nn=It?On.slice(-1):On,qn=" / ";return Nn.every(function(nr){return["string","number"].includes((0,Te.Z)(nr))})?Nn.join(qn):Nn.reduce(function(nr,ir,lr){var Qn=he.isValidElement(ir)?he.cloneElement(ir,{key:lr}):ir;return lr===0?[Qn]:[].concat((0,y.Z)(nr),[qn,Qn])},[])};return pt.map(function(On){var Nn,qn=nt(On,Et,St),nr=Bn(qn.map(function(lr){var Qn,ar=lr.option,fr=lr.value;return(Qn=ar==null?void 0:ar[St.label])!==null&&Qn!==void 0?Qn:fr}),qn.map(function(lr){var Qn=lr.option;return Qn})),ir=vt(On);return{label:nr,value:ir,key:ir,valueCells:On,disabled:(Nn=qn[qn.length-1])===null||Nn===void 0||(Nn=Nn.option)===null||Nn===void 0?void 0:Nn.disabled}})},[pt,Et,St,fn,It])};function Fe(pt,Et){return he.useCallback(function(St){var It=[],fn=[];return St.forEach(function(Bn){var On=nt(Bn,pt,Et);On.every(function(Nn){return Nn.option})?fn.push(Bn):It.push(Bn)}),[fn,It]},[pt,Et])}var ye=z(34061),Bt=function(pt,Et){var St=he.useRef({options:[],info:{keyEntities:{},pathKeyEntities:{}}}),It=he.useCallback(function(){return St.current.options!==pt&&(St.current.options=pt,St.current.info=(0,ye.I8)(pt,{fieldNames:Et,initWrapper:function(Bn){return(0,me.Z)((0,me.Z)({},Bn),{},{pathKeyEntities:{}})},processEntity:function(Bn,On){var Nn=Bn.nodes.map(function(qn){return qn[Et.value]}).join(Oe);On.pathKeyEntities[Nn]=Bn,Bn.key=Nn}})),St.current.info.pathKeyEntities},[Et,pt]);return It};function jt(pt,Et){var St=he.useMemo(function(){return Et||[]},[Et]),It=Bt(St,pt),fn=he.useCallback(function(Bn){var On=It();return Bn.map(function(Nn){var qn=On[Nn].nodes;return qn.map(function(nr){return nr[pt.value]})})},[It,pt]);return[St,It,fn]}var Lt=z(48736);function Ee(pt){return he.useMemo(function(){if(!pt)return[!1,{}];var Et={matchInputWidth:!0,limit:50};return pt&&(0,Te.Z)(pt)==="object"&&(Et=(0,me.Z)((0,me.Z)({},Et),pt)),Et.limit<=0&&(Et.limit=!1),[!0,Et]},[pt])}var ot=z(34643);function qe(pt,Et,St,It,fn,Bn,On,Nn){return function(qn){if(!pt)Et(qn);else{var nr=vt(qn),ir=it(St),lr=it(It),Qn=ir.includes(nr),ar=fn.some(function(kr){return vt(kr)===nr}),fr=St,Sr=fn;if(ar&&!Qn)Sr=fn.filter(function(kr){return vt(kr)!==nr});else{var br=Qn?ir.filter(function(kr){return kr!==nr}):[].concat((0,y.Z)(ir),[nr]),Zr=Bn(),jr;if(Qn){var hr=(0,ot.S)(br,{checked:!1,halfCheckedKeys:lr},Zr);jr=hr.checkedKeys}else{var Mr=(0,ot.S)(br,!0,Zr);jr=Mr.checkedKeys}var eo=Ze(jr,Bn,Nn);fr=On(eo)}Et([].concat((0,y.Z)(Sr),(0,y.Z)(fr)))}}}function zt(pt,Et,St,It,fn){return he.useMemo(function(){var Bn=fn(Et),On=(0,ve.Z)(Bn,2),Nn=On[0],qn=On[1];if(!pt||!Et.length)return[Nn,[],qn];var nr=it(Nn),ir=St(),lr=(0,ot.S)(nr,!0,ir),Qn=lr.checkedKeys,ar=lr.halfCheckedKeys;return[It(Qn),It(ar),qn]},[pt,Et,St,It,fn])}var ht=he.memo(function(pt){var Et=pt.children;return Et},function(pt,Et){return!Et.open}),lt=ht;function rt(pt){var Et,St=pt.prefixCls,It=pt.checked,fn=pt.halfChecked,Bn=pt.disabled,On=pt.onClick,Nn=pt.disableCheckbox,qn=he.useContext(je),nr=qn.checkable,ir=typeof nr!="boolean"?nr:null;return he.createElement("span",{className:$e()("".concat(St),(Et={},(0,Ce.Z)(Et,"".concat(St,"-checked"),It),(0,Ce.Z)(Et,"".concat(St,"-indeterminate"),!It&&fn),(0,Ce.Z)(Et,"".concat(St,"-disabled"),Bn||Nn),Et)),onClick:On},ir)}var on="__cascader_fix_label__";function kt(pt){var Et=pt.prefixCls,St=pt.multiple,It=pt.options,fn=pt.activeValue,Bn=pt.prevValuePath,On=pt.onToggleOpen,Nn=pt.onSelect,qn=pt.onActive,nr=pt.checkedSet,ir=pt.halfCheckedSet,lr=pt.loadingKeys,Qn=pt.isSelectable,ar=pt.disabled,fr="".concat(Et,"-menu"),Sr="".concat(Et,"-menu-item"),br=he.useContext(je),Zr=br.fieldNames,jr=br.changeOnSelect,hr=br.expandTrigger,Mr=br.expandIcon,eo=br.loadingIcon,kr=br.dropdownMenuColumnStyle,Fr=br.optionRender,or=hr==="hover",Ur=function(Cr){return ar||Cr},Rr=he.useMemo(function(){return It.map(function(Br){var Cr,so=Br.disabled,Ho=Br.disableCheckbox,ti=Br[Se],xo=(Cr=Br[on])!==null&&Cr!==void 0?Cr:Br[Zr.label],No=Br[Zr.value],To=be(Br,Zr),Xo=ti?ti.map(function(Gn){return Gn[Zr.value]}):[].concat((0,y.Z)(Bn),[No]),ko=vt(Xo),go=lr.includes(ko),dr=nr.has(ko),Tn=ir.has(ko);return{disabled:so,label:xo,value:No,isLeaf:To,isLoading:go,checked:dr,halfChecked:Tn,option:Br,disableCheckbox:Ho,fullPath:Xo,fullPathKey:ko}})},[It,nr,Zr,ir,lr,Bn]);return he.createElement("ul",{className:fr,role:"menu"},Rr.map(function(Br){var Cr,so=Br.disabled,Ho=Br.label,ti=Br.value,xo=Br.isLeaf,No=Br.isLoading,To=Br.checked,Xo=Br.halfChecked,ko=Br.option,go=Br.fullPath,dr=Br.fullPathKey,Tn=Br.disableCheckbox,Gn=function(){if(!Ur(so)){var wr=(0,y.Z)(go);or&&xo&&wr.pop(),qn(wr)}},Yn=function(){Qn(ko)&&!Ur(so)&&Nn(go,xo)},Ln;return typeof ko.title=="string"?Ln=ko.title:typeof Ho=="string"&&(Ln=Ho),he.createElement("li",{key:dr,className:$e()(Sr,(Cr={},(0,Ce.Z)(Cr,"".concat(Sr,"-expand"),!xo),(0,Ce.Z)(Cr,"".concat(Sr,"-active"),fn===ti||fn===dr),(0,Ce.Z)(Cr,"".concat(Sr,"-disabled"),Ur(so)),(0,Ce.Z)(Cr,"".concat(Sr,"-loading"),No),Cr)),style:kr,role:"menuitemcheckbox",title:Ln,"aria-checked":To,"data-path-key":dr,onClick:function(){Gn(),!Tn&&(!St||xo)&&Yn()},onDoubleClick:function(){jr&&On(!1)},onMouseEnter:function(){or&&Gn()},onMouseDown:function(wr){wr.preventDefault()}},St&&he.createElement(rt,{prefixCls:"".concat(Et,"-checkbox"),checked:To,halfChecked:Xo,disabled:Ur(so)||Tn,disableCheckbox:Tn,onClick:function(wr){Tn||(wr.stopPropagation(),Yn())}}),he.createElement("div",{className:"".concat(Sr,"-content")},Fr?Fr(ko):Ho),!No&&Mr&&!xo&&he.createElement("div",{className:"".concat(Sr,"-expand-icon")},Mr),No&&eo&&he.createElement("div",{className:"".concat(Sr,"-loading-icon")},eo))}))}var ae=function(Et,St){var It=he.useContext(je),fn=It.values,Bn=fn[0],On=he.useState([]),Nn=(0,ve.Z)(On,2),qn=Nn[0],nr=Nn[1];return he.useEffect(function(){Et||nr(Bn||[])},[St,Bn]),[qn,nr]},re=ae,te=z(10228),ie=function(pt,Et,St,It,fn,Bn,On){var Nn=On.direction,qn=On.searchValue,nr=On.toggleOpen,ir=On.open,lr=Nn==="rtl",Qn=he.useMemo(function(){for(var kr=-1,Fr=Et,or=[],Ur=[],Rr=It.length,Br=Ne(Et,St),Cr=function(No){var To=Fr.findIndex(function(Xo,ko){return(Br[ko]?vt(Br[ko]):Xo[St.value])===It[No]});if(To===-1)return 1;kr=To,or.push(kr),Ur.push(It[No]),Fr=Fr[kr][St.children]},so=0;so<Rr&&Fr&&!Cr(so);so+=1);for(var Ho=Et,ti=0;ti<or.length-1;ti+=1)Ho=Ho[or[ti]][St.children];return[Ur,kr,Ho,Br]},[It,St,Et]),ar=(0,ve.Z)(Qn,4),fr=ar[0],Sr=ar[1],br=ar[2],Zr=ar[3],jr=function(Fr){fn(Fr)},hr=function(Fr){var or=br.length,Ur=Sr;Ur===-1&&Fr<0&&(Ur=or);for(var Rr=0;Rr<or;Rr+=1){Ur=(Ur+Fr+or)%or;var Br=br[Ur];if(Br&&!Br.disabled){var Cr=fr.slice(0,-1).concat(Zr[Ur]?vt(Zr[Ur]):Br[St.value]);jr(Cr);return}}},Mr=function(){if(fr.length>1){var Fr=fr.slice(0,-1);jr(Fr)}else nr(!1)},eo=function(){var Fr,or=((Fr=br[Sr])===null||Fr===void 0?void 0:Fr[St.children])||[],Ur=or.find(function(Br){return!Br.disabled});if(Ur){var Rr=[].concat((0,y.Z)(fr),[Ur[St.value]]);jr(Rr)}};he.useImperativeHandle(pt,function(){return{onKeyDown:function(Fr){var or=Fr.which;switch(or){case te.Z.UP:case te.Z.DOWN:{var Ur=0;or===te.Z.UP?Ur=-1:or===te.Z.DOWN&&(Ur=1),Ur!==0&&hr(Ur);break}case te.Z.LEFT:{if(qn)break;lr?eo():Mr();break}case te.Z.RIGHT:{if(qn)break;lr?Mr():eo();break}case te.Z.BACKSPACE:{qn||Mr();break}case te.Z.ENTER:{if(fr.length){var Rr=br[Sr],Br=(Rr==null?void 0:Rr[Se])||[];Br.length?Bn(Br.map(function(Cr){return Cr[St.value]}),Br[Br.length-1]):Bn(fr,br[Sr])}break}case te.Z.ESC:nr(!1),ir&&Fr.stopPropagation()}},onKeyUp:function(){}}})},ce=he.forwardRef(function(pt,Et){var St,It,fn,Bn=pt.prefixCls,On=pt.multiple,Nn=pt.searchValue,qn=pt.toggleOpen,nr=pt.notFoundContent,ir=pt.direction,lr=pt.open,Qn=pt.disabled,ar=he.useRef(null),fr=ir==="rtl",Sr=he.useContext(je),br=Sr.options,Zr=Sr.values,jr=Sr.halfValues,hr=Sr.fieldNames,Mr=Sr.changeOnSelect,eo=Sr.onSelect,kr=Sr.searchOptions,Fr=Sr.dropdownPrefixCls,or=Sr.loadData,Ur=Sr.expandTrigger,Rr=Fr||Bn,Br=he.useState([]),Cr=(0,ve.Z)(Br,2),so=Cr[0],Ho=Cr[1],ti=function(Yr){if(!(!or||Nn)){var to=nt(Yr,br,hr),Fo=to.map(function(Jo){var ni=Jo.option;return ni}),Mo=Fo[Fo.length-1];if(Mo&&!be(Mo,hr)){var Yo=vt(Yr);Ho(function(Jo){return[].concat((0,y.Z)(Jo),[Yo])}),or(Fo)}}};he.useEffect(function(){so.length&&so.forEach(function(_r){var Yr=Qe(_r),to=nt(Yr,br,hr,!0).map(function(Mo){var Yo=Mo.option;return Yo}),Fo=to[to.length-1];(!Fo||Fo[hr.children]||be(Fo,hr))&&Ho(function(Mo){return Mo.filter(function(Yo){return Yo!==_r})})})},[br,so,hr]);var xo=he.useMemo(function(){return new Set(it(Zr))},[Zr]),No=he.useMemo(function(){return new Set(it(jr))},[jr]),To=re(On,lr),Xo=(0,ve.Z)(To,2),ko=Xo[0],go=Xo[1],dr=function(Yr){go(Yr),ti(Yr)},Tn=function(Yr){if(Qn)return!1;var to=Yr.disabled,Fo=be(Yr,hr);return!to&&(Fo||Mr||On)},Gn=function(Yr,to){var Fo=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;eo(Yr),!On&&(to||Mr&&(Ur==="hover"||Fo))&&qn(!1)},Yn=he.useMemo(function(){return Nn?kr:br},[Nn,kr,br]),Ln=he.useMemo(function(){for(var _r=[{options:Yn}],Yr=Yn,to=Ne(Yr,hr),Fo=function(){var Jo=ko[Mo],ni=Yr.find(function(Mi,$i){return(to[$i]?vt(to[$i]):Mi[hr.value])===Jo}),ri=ni==null?void 0:ni[hr.children];if(!(ri!=null&&ri.length))return 1;Yr=ri,_r.push({options:ri})},Mo=0;Mo<ko.length&&!Fo();Mo+=1);return _r},[Yn,ko,hr]),mr=function(Yr,to){Tn(to)&&Gn(Yr,be(to,hr),!0)};ie(Et,Yn,hr,ko,dr,mr,{direction:ir,searchValue:Nn,toggleOpen:qn,open:lr}),he.useEffect(function(){if(!Nn)for(var _r=0;_r<ko.length;_r+=1){var Yr,to=ko.slice(0,_r+1),Fo=vt(to),Mo=(Yr=ar.current)===null||Yr===void 0?void 0:Yr.querySelector('li[data-path-key="'.concat(Fo.replace(/\\{0,2}"/g,'\\"'),'"]'));Mo&&et(Mo)}},[ko,Nn]);var wr=!((St=Ln[0])!==null&&St!==void 0&&(St=St.options)!==null&&St!==void 0&&St.length),Un=[(It={},(0,Ce.Z)(It,hr.value,"__EMPTY__"),(0,Ce.Z)(It,on,nr),(0,Ce.Z)(It,"disabled",!0),It)],Jn=(0,me.Z)((0,me.Z)({},pt),{},{multiple:!wr&&On,onSelect:Gn,onActive:dr,onToggleOpen:qn,checkedSet:xo,halfCheckedSet:No,loadingKeys:so,isSelectable:Tn}),sr=wr?[{options:Un}]:Ln,pr=sr.map(function(_r,Yr){var to=ko.slice(0,Yr),Fo=ko[Yr];return he.createElement(kt,(0,pe.Z)({key:Yr},Jn,{prefixCls:Rr,options:_r.options,prevValuePath:to,activeValue:Fo}))});return he.createElement(lt,{open:lr},he.createElement("div",{className:$e()("".concat(Rr,"-menus"),(fn={},(0,Ce.Z)(fn,"".concat(Rr,"-menu-empty"),wr),(0,Ce.Z)(fn,"".concat(Rr,"-rtl"),fr),fn)),ref:ar},pr))}),ne=ce,le=he.forwardRef(function(pt,Et){var St=(0,ge.lk)();return he.createElement(ne,(0,pe.Z)({},pt,St,{ref:Et}))}),Ie=le,bt=z(70425);function Ue(){}function He(pt){var Et,St=pt,It=St.prefixCls,fn=It===void 0?"rc-cascader":It,Bn=St.style,On=St.className,Nn=St.options,qn=St.checkable,nr=St.defaultValue,ir=St.value,lr=St.fieldNames,Qn=St.changeOnSelect,ar=St.onChange,fr=St.showCheckedStrategy,Sr=St.loadData,br=St.expandTrigger,Zr=St.expandIcon,jr=Zr===void 0?">":Zr,hr=St.loadingIcon,Mr=St.direction,eo=St.notFoundContent,kr=eo===void 0?"Not Found":eo,Fr=St.disabled,or=!!qn,Ur=(0,bt.C8)(nr,{value:ir,postState:mt}),Rr=(0,ve.Z)(Ur,2),Br=Rr[0],Cr=Rr[1],so=he.useMemo(function(){return ut(lr)},[JSON.stringify(lr)]),Ho=jt(so,Nn),ti=(0,ve.Z)(Ho,3),xo=ti[0],No=ti[1],To=ti[2],Xo=Fe(xo,so),ko=zt(or,Br,No,To,Xo),go=(0,ve.Z)(ko,3),dr=go[0],Tn=go[1],Gn=go[2],Yn=(0,bt.zX)(function(sr){if(Cr(sr),ar){var pr=mt(sr),_r=pr.map(function(Fo){return nt(Fo,xo,so).map(function(Mo){return Mo.option})}),Yr=or?pr:pr[0],to=or?_r:_r[0];ar(Yr,to)}}),Ln=qe(or,Yn,dr,Tn,Gn,No,To,fr),mr=(0,bt.zX)(function(sr){Ln(sr)}),wr=he.useMemo(function(){return{options:xo,fieldNames:so,values:dr,halfValues:Tn,changeOnSelect:Qn,onSelect:mr,checkable:qn,searchOptions:[],dropdownPrefixCls:void 0,loadData:Sr,expandTrigger:br,expandIcon:jr,loadingIcon:hr,dropdownMenuColumnStyle:void 0}},[xo,so,dr,Tn,Qn,mr,qn,Sr,br,jr,hr]),Un="".concat(fn,"-panel"),Jn=!xo.length;return he.createElement(je.Provider,{value:wr},he.createElement("div",{className:$e()(Un,(Et={},(0,Ce.Z)(Et,"".concat(Un,"-rtl"),Mr==="rtl"),(0,Ce.Z)(Et,"".concat(Un,"-empty"),Jn),Et),On),style:Bn},Jn?kr:he.createElement(ne,{prefixCls:fn,searchValue:"",multiple:or,toggleOpen:Ue,open:!0,direction:Mr,disabled:Fr})))}function at(pt){var Et=pt.onPopupVisibleChange,St=pt.popupVisible,It=pt.popupClassName,fn=pt.popupPlacement;warning(!Et,"`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."),warning(St===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning(It===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning(fn===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function ft(pt,Et){if(pt){var St=function It(fn){for(var Bn=0;Bn<fn.length;Bn++){var On=fn[Bn];if(On[Et==null?void 0:Et.value]===null)return warning(!1,"`value` in Cascader options should not be `null`."),!0;if(Array.isArray(On[Et==null?void 0:Et.children])&&It(On[Et==null?void 0:Et.children]))return!0}};St(pt)}}var Pt=null,Le=["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"],We=he.forwardRef(function(pt,Et){var St=pt.id,It=pt.prefixCls,fn=It===void 0?"rc-cascader":It,Bn=pt.fieldNames,On=pt.defaultValue,Nn=pt.value,qn=pt.changeOnSelect,nr=pt.onChange,ir=pt.displayRender,lr=pt.checkable,Qn=pt.autoClearSearchValue,ar=Qn===void 0?!0:Qn,fr=pt.searchValue,Sr=pt.onSearch,br=pt.showSearch,Zr=pt.expandTrigger,jr=pt.options,hr=pt.dropdownPrefixCls,Mr=pt.loadData,eo=pt.popupVisible,kr=pt.open,Fr=pt.popupClassName,or=pt.dropdownClassName,Ur=pt.dropdownMenuColumnStyle,Rr=pt.dropdownStyle,Br=pt.popupPlacement,Cr=pt.placement,so=pt.onDropdownVisibleChange,Ho=pt.onPopupVisibleChange,ti=pt.expandIcon,xo=ti===void 0?">":ti,No=pt.loadingIcon,To=pt.children,Xo=pt.dropdownMatchSelectWidth,ko=Xo===void 0?!1:Xo,go=pt.showCheckedStrategy,dr=go===void 0?Re:go,Tn=pt.optionRender,Gn=(0,Me.Z)(pt,Le),Yn=(0,se.ZP)(St),Ln=!!lr,mr=(0,Ae.Z)(On,{value:Nn,postState:mt}),wr=(0,ve.Z)(mr,2),Un=wr[0],Jn=wr[1],sr=he.useMemo(function(){return ut(Bn)},[JSON.stringify(Bn)]),pr=jt(sr,jr),_r=(0,ve.Z)(pr,3),Yr=_r[0],to=_r[1],Fo=_r[2],Mo=(0,Ae.Z)("",{value:fr,postState:function(qo){return qo||""}}),Yo=(0,ve.Z)(Mo,2),Jo=Yo[0],ni=Yo[1],ri=function(qo,Bi){ni(qo),Bi.source!=="blur"&&Sr&&Sr(qo)},Mi=Ee(br),$i=(0,ve.Z)(Mi,2),Xi=$i[0],Yi=$i[1],ta=Be(Jo,Yr,sr,hr||fn,Yi,qn||Ln),Lo=Fe(Yr,sr),co=zt(Ln,Un,to,Fo,Lo),wi=(0,ve.Z)(co,3),wo=wi[0],aa=wi[1],Qa=wi[2],Ha=he.useMemo(function(){var Bo=it(wo),qo=Ze(Bo,to,dr);return[].concat((0,y.Z)(Qa),(0,y.Z)(Fo(qo)))},[wo,to,Fo,Qa,dr]),da=Mt(Ha,Yr,sr,Ln,ir),fa=(0,_e.Z)(function(Bo){if(Jn(Bo),nr){var qo=mt(Bo),Bi=qo.map(function(Qi){return nt(Qi,Yr,sr).map(function(sa){return sa.option})}),Wa=Ln?qo:qo[0],zi=Ln?Bi:Bi[0];nr(Wa,zi)}}),Ti=qe(Ln,fa,wo,aa,Qa,to,Fo,dr),ka=(0,_e.Z)(function(Bo){(!Ln||ar)&&ni(""),Ti(Bo)}),ol=function(qo,Bi){if(Bi.type==="clear"){fa([]);return}var Wa=Bi.values[0],zi=Wa.valueCells;ka(zi)},Ja=kr!==void 0?kr:eo,la=or||Fr,Pl=Cr||Br,El=function(qo){so==null||so(qo),Ho==null||Ho(qo)},jo=he.useMemo(function(){return{options:Yr,fieldNames:sr,values:wo,halfValues:aa,changeOnSelect:qn,onSelect:ka,checkable:lr,searchOptions:ta,dropdownPrefixCls:hr,loadData:Mr,expandTrigger:Zr,expandIcon:xo,loadingIcon:No,dropdownMenuColumnStyle:Ur,optionRender:Tn}},[Yr,sr,wo,aa,qn,ka,lr,ta,hr,Mr,Zr,xo,No,Ur,Tn]),ai=!(Jo?ta:Yr).length,Ro=Jo&&Yi.matchInputWidth||ai?{}:{minWidth:"auto"};return he.createElement(je.Provider,{value:jo},he.createElement(ge.Ac,(0,pe.Z)({},Gn,{ref:Et,id:Yn,prefixCls:fn,autoClearSearchValue:ar,dropdownMatchSelectWidth:ko,dropdownStyle:(0,me.Z)((0,me.Z)({},Ro),Rr),displayValues:da,onDisplayValuesChange:ol,mode:Ln?"multiple":void 0,searchValue:Jo,onSearch:ri,showSearch:Xi,OptionList:Ie,emptyOptions:ai,open:Ja,dropdownClassName:la,placement:Pl,onDropdownVisibleChange:El,getRawInputElement:function(){return To}})))});We.SHOW_PARENT=Re,We.SHOW_CHILD=Ke,We.Panel=He;var Nt=We,Qt=Nt,un=z(2738),rn=z(75030),Rt=z(86641),ln=z(45915),Ht=z(82855),ze=z(48755),yt=z(38406),Kt=z(2171),tn=z(83397),Ve=z(31756),Ct=z(56553),$t=z(24971),dt=z(1722),Ot=z(90376),Gt=z(68525),mn=z(90005),An=z(70045);function hn(pt,Et){const{getPrefixCls:St,direction:It,renderEmpty:fn}=he.useContext(ze.E_),Bn=Et||It,On=St("select",pt),Nn=St("cascader",pt);return[On,Nn,Bn,fn]}var Fn=hn;function Ft(pt,Et){return he.useMemo(()=>Et?he.createElement("span",{className:`${pt}-checkbox-inner`}):!1,[Et])}var Tt=z(33853),Ut=z(58617),an=z(38819),yn=(pt,Et,St)=>{let It=St;St||(It=Et?he.createElement(Tt.Z,null):he.createElement(an.Z,null));const fn=he.createElement("span",{className:`${pt}-menu-item-loading-icon`},he.createElement(Ut.Z,{spin:!0}));return he.useMemo(()=>[It,fn],[It])},sn=z(56119),wn=z(16931),Vn=z(36237),Mn=z(36170),$n=z(63356),Hn=pt=>{const{prefixCls:Et,componentCls:St}=pt,It=`${St}-menu-item`,fn=`
&${It}-expand ${It}-expand-icon,
${It}-loading-icon
`;return[(0,Mn.C2)(`${Et}-checkbox`,pt),{[St]:{"&-checkbox":{top:0,marginInlineEnd:pt.paddingXS,pointerEvents:"unset"},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${St}-menu-empty`]:{[`${St}-menu`]:{width:"100%",height:"auto",[It]:{color:pt.colorTextDisabled}}}},"&-menu":{flexGrow:1,flexShrink:0,minWidth:pt.controlItemWidth,height:pt.dropdownHeight,margin:0,padding:pt.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${(0,Vn.unit)(pt.lineWidth)} ${pt.lineType} ${pt.colorSplit}`},"&-item":Object.assign(Object.assign({},$n.vS),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:pt.optionPadding,lineHeight:pt.lineHeight,cursor:"pointer",transition:`all ${pt.motionDurationMid}`,borderRadius:pt.borderRadiusSM,"&:hover":{background:pt.controlItemBgHover},"&-disabled":{color:pt.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[fn]:{color:pt.colorTextDisabled}},[`&-active:not(${It}-disabled)`]:{"&, &:hover":{color:pt.optionSelectedColor,fontWeight:pt.optionSelectedFontWeight,backgroundColor:pt.optionSelectedBg}},"&-content":{flex:"auto"},[fn]:{marginInlineStart:pt.paddingXXS,color:pt.colorTextDescription,fontSize:pt.fontSizeIcon},"&-keyword":{color:pt.colorHighlight}})}}}]};const ur=pt=>{const{componentCls:Et,antCls:St}=pt;return[{[Et]:{width:pt.controlWidth}},{[`${Et}-dropdown`]:[{[`&${St}-select-dropdown`]:{padding:0}},Hn(pt)]},{[`${Et}-dropdown-rtl`]:{direction:"rtl"}},(0,sn.c)(pt)]},rr=pt=>{const Et=Math.round((pt.controlHeight-pt.fontSize*pt.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:pt.controlItemBgActive,optionSelectedFontWeight:pt.fontWeightStrong,optionPadding:`${Et}px ${pt.paddingSM}px`,menuPadding:pt.paddingXXS,optionSelectedColor:pt.colorText}};var dn=(0,wn.I$)("Cascader",pt=>[ur(pt)],rr);const xn=pt=>{const{componentCls:Et}=pt;return{[`${Et}-panel`]:[Hn(pt),{display:"inline-flex",border:`${(0,Vn.unit)(pt.lineWidth)} ${pt.lineType} ${pt.colorSplit}`,borderRadius:pt.borderRadiusLG,overflowX:"auto",maxWidth:"100%",[`${Et}-menus`]:{alignItems:"stretch"},[`${Et}-menu`]:{height:"auto"},"&-empty":{padding:pt.paddingXXS}}]}};var jn=(0,wn.A1)(["Cascader","Panel"],pt=>xn(pt),rr);function zn(pt){const{prefixCls:Et,className:St,multiple:It,rootClassName:fn,notFoundContent:Bn,direction:On,expandIcon:Nn,disabled:qn}=pt,nr=he.useContext(Kt.Z),ir=qn!=null?qn:nr,[lr,Qn,ar,fr]=Fn(Et,On),Sr=(0,tn.Z)(Qn),[br,Zr,jr]=dn(Qn,Sr);jn(Qn);const hr=ar==="rtl",[Mr,eo]=yn(lr,hr,Nn),kr=Bn||(fr==null?void 0:fr("Cascader"))||he.createElement(yt.Z,{componentName:"Cascader"}),Fr=Ft(Qn,It);return br(he.createElement(He,Object.assign({},pt,{checkable:Fr,prefixCls:Qn,className:$e()(St,Zr,fn,jr,Sr),notFoundContent:kr,direction:ar,expandIcon:Mr,loadingIcon:eo,disabled:ir})))}var xt=zn,_t=function(pt,Et){var St={};for(var It in pt)Object.prototype.hasOwnProperty.call(pt,It)&&Et.indexOf(It)<0&&(St[It]=pt[It]);if(pt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var fn=0,It=Object.getOwnPropertySymbols(pt);fn<It.length;fn++)Et.indexOf(It[fn])<0&&Object.prototype.propertyIsEnumerable.call(pt,It[fn])&&(St[It[fn]]=pt[It[fn]]);return St};const{SHOW_CHILD:Je,SHOW_PARENT:Dt}=Qt;function Ge(pt,Et,St){const It=pt.toLowerCase().split(Et).reduce((On,Nn,qn)=>qn===0?[Nn]:[].concat((0,y.Z)(On),[Et,Nn]),[]),fn=[];let Bn=0;return It.forEach((On,Nn)=>{const qn=Bn+On.length;let nr=pt.slice(Bn,qn);Bn=qn,Nn%2===1&&(nr=he.createElement("span",{className:`${St}-menu-item-keyword`,key:`separator-${Nn}`},nr)),fn.push(nr)}),fn}const At=(pt,Et,St,It)=>{const fn=[],Bn=pt.toLowerCase();return Et.forEach((On,Nn)=>{Nn!==0&&fn.push(" / ");let qn=On[It.label];const nr=typeof qn;(nr==="string"||nr==="number")&&(qn=Ge(String(qn),Bn,St)),fn.push(qn)}),fn},Jt=he.forwardRef((pt,Et)=>{var St;const{prefixCls:It,size:fn,disabled:Bn,className:On,rootClassName:Nn,multiple:qn,bordered:nr=!0,transitionName:ir,choiceTransitionName:lr="",popupClassName:Qn,dropdownClassName:ar,expandIcon:fr,placement:Sr,showSearch:br,allowClear:Zr=!0,notFoundContent:jr,direction:hr,getPopupContainer:Mr,status:eo,showArrow:kr,builtinPlacements:Fr,style:or,variant:Ur}=pt,Rr=_t(pt,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style","variant"]),Br=(0,un.Z)(Rr,["suffixIcon"]),{getPrefixCls:Cr,getPopupContainer:so,className:Ho,style:ti}=(0,ze.dj)("cascader"),{popupOverflow:xo}=he.useContext(ze.E_),{status:No,hasFeedback:To,isFormItemInput:Xo,feedbackIcon:ko}=he.useContext(Ct.aM),go=(0,Ht.F)(No,eo),[dr,Tn,Gn,Yn]=Fn(It,hr),Ln=Gn==="rtl",mr=Cr(),wr=(0,tn.Z)(dr),[Un,Jn,sr]=(0,Ot.Z)(dr,wr),pr=(0,tn.Z)(Tn),[_r]=dn(Tn,pr),{compactSize:Yr,compactItemClassnames:to}=(0,An.ri)(dr,hr),[Fo,Mo]=(0,$t.Z)("cascader",Ur,nr),Yo=jr||(Yn==null?void 0:Yn("Cascader"))||he.createElement(yt.Z,{componentName:"Cascader"}),Jo=$e()(Qn||ar,`${Tn}-dropdown`,{[`${Tn}-dropdown-rtl`]:Gn==="rtl"},Nn,wr,pr,Jn,sr),ni=he.useMemo(()=>{if(!br)return br;let fa={render:At};return typeof br=="object"&&(fa=Object.assign(Object.assign({},fa),br)),fa},[br]),ri=(0,Ve.Z)(fa=>{var Ti;return(Ti=fn!=null?fn:Yr)!==null&&Ti!==void 0?Ti:fa}),Mi=he.useContext(Kt.Z),$i=Bn!=null?Bn:Mi,[Xi,Yi]=yn(dr,Ln,fr),ta=Ft(Tn,qn),Lo=(0,mn.Z)(pt.suffixIcon,kr),{suffixIcon:co,removeIcon:wi,clearIcon:wo}=(0,Gt.Z)(Object.assign(Object.assign({},pt),{hasFeedback:To,feedbackIcon:ko,showSuffixIcon:Lo,multiple:qn,prefixCls:dr,componentName:"Cascader"})),aa=he.useMemo(()=>Sr!==void 0?Sr:Ln?"bottomRight":"bottomLeft",[Sr,Ln]),Qa=Zr===!0?{clearIcon:wo}:Zr,[Ha]=(0,rn.Cn)("SelectLike",(St=Br.dropdownStyle)===null||St===void 0?void 0:St.zIndex),da=he.createElement(Qt,Object.assign({prefixCls:dr,className:$e()(!It&&Tn,{[`${dr}-lg`]:ri==="large",[`${dr}-sm`]:ri==="small",[`${dr}-rtl`]:Ln,[`${dr}-${Fo}`]:Mo,[`${dr}-in-form-item`]:Xo},(0,Ht.Z)(dr,go,To),to,Ho,On,Nn,wr,pr,Jn,sr),disabled:$i,style:Object.assign(Object.assign({},ti),or)},Br,{builtinPlacements:(0,dt.Z)(Fr,xo),direction:Gn,placement:aa,notFoundContent:Yo,allowClear:Qa,showSearch:ni,expandIcon:Xi,suffixIcon:co,removeIcon:wi,loadingIcon:Yi,checkable:ta,dropdownClassName:Jo,dropdownPrefixCls:It||Tn,dropdownStyle:Object.assign(Object.assign({},Br.dropdownStyle),{zIndex:Ha}),choiceTransitionName:(0,Rt.m)(mr,"",lr),transitionName:(0,Rt.m)(mr,"slide-up",ir),getPopupContainer:Mr||so,ref:Et}));return _r(Un(da))}),Rn=(0,ln.Z)(Jt,"dropdownAlign",pt=>(0,un.Z)(pt,["visible"]));Jt.SHOW_PARENT=Dt,Jt.SHOW_CHILD=Je,Jt.Panel=xt,Jt._InternalPanelDoNotUseOrYouWillBeFired=Rn;var Zn=Jt},62673:function(bn,Wt,z){"use strict";z.d(Wt,{default:function(){return it}});var y=z(59301),he=z(92310),de=z.n(he),$e=z(16632),pe=z(8654),me=z(12919),ve=z(63872),Me=z(48755),ge=z(2171),se=z(83397),_e=z(56553),tt=y.createContext(null),je=z(36170),Te=z(74632),Ce=function(Qe,ut){var be={};for(var et in Qe)Object.prototype.hasOwnProperty.call(Qe,et)&&ut.indexOf(et)<0&&(be[et]=Qe[et]);if(Qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ne=0,et=Object.getOwnPropertySymbols(Qe);Ne<et.length;Ne++)ut.indexOf(et[Ne])<0&&Object.prototype.propertyIsEnumerable.call(Qe,et[Ne])&&(be[et[Ne]]=Qe[et[Ne]]);return be};const Se=(Qe,ut)=>{var be;const{prefixCls:et,className:Ne,rootClassName:ue,children:mt,indeterminate:Ze=!1,style:nt,onMouseEnter:Mt,onMouseLeave:Fe,skipGroup:ye=!1,disabled:Bt}=Qe,jt=Ce(Qe,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:Lt,direction:Ee,checkbox:ot}=y.useContext(Me.E_),qe=y.useContext(tt),{isFormItemInput:zt}=y.useContext(_e.aM),ht=y.useContext(ge.Z),lt=(be=(qe==null?void 0:qe.disabled)||Bt)!==null&&be!==void 0?be:ht,rt=y.useRef(jt.value),on=y.useRef(null),kt=(0,pe.sQ)(ut,on);y.useEffect(()=>{qe==null||qe.registerValue(jt.value)},[]),y.useEffect(()=>{if(!ye)return jt.value!==rt.current&&(qe==null||qe.cancelValue(rt.current),qe==null||qe.registerValue(jt.value),rt.current=jt.value),()=>qe==null?void 0:qe.cancelValue(jt.value)},[jt.value]),y.useEffect(()=>{var He;!((He=on.current)===null||He===void 0)&&He.input&&(on.current.input.indeterminate=Ze)},[Ze]);const ae=Lt("checkbox",et),re=(0,se.Z)(ae),[te,ie,ce]=(0,je.ZP)(ae,re),ne=Object.assign({},jt);qe&&!ye&&(ne.onChange=function(){jt.onChange&&jt.onChange.apply(jt,arguments),qe.toggleOption&&qe.toggleOption({label:mt,value:jt.value})},ne.name=qe.name,ne.checked=qe.value.includes(jt.value));const le=de()(`${ae}-wrapper`,{[`${ae}-rtl`]:Ee==="rtl",[`${ae}-wrapper-checked`]:ne.checked,[`${ae}-wrapper-disabled`]:lt,[`${ae}-wrapper-in-form-item`]:zt},ot==null?void 0:ot.className,Ne,ue,ce,re,ie),Ie=de()({[`${ae}-indeterminate`]:Ze},ve.A,ie),[bt,Ue]=(0,Te.Z)(ne.onClick);return te(y.createElement(me.Z,{component:"Checkbox",disabled:lt},y.createElement("label",{className:le,style:Object.assign(Object.assign({},ot==null?void 0:ot.style),nt),onMouseEnter:Mt,onMouseLeave:Fe,onClick:bt},y.createElement($e.Z,Object.assign({},ne,{onClick:Ue,prefixCls:ae,className:Ie,disabled:lt,ref:kt})),mt!==void 0&&y.createElement("span",{className:`${ae}-label`},mt))))};var Ye=y.forwardRef(Se),ct=z(94480),Be=z(2738),Oe=function(Qe,ut){var be={};for(var et in Qe)Object.prototype.hasOwnProperty.call(Qe,et)&&ut.indexOf(et)<0&&(be[et]=Qe[et]);if(Qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ne=0,et=Object.getOwnPropertySymbols(Qe);Ne<et.length;Ne++)ut.indexOf(et[Ne])<0&&Object.prototype.propertyIsEnumerable.call(Qe,et[Ne])&&(be[et[Ne]]=Qe[et[Ne]]);return be},Ke=y.forwardRef((Qe,ut)=>{const{defaultValue:be,children:et,options:Ne=[],prefixCls:ue,className:mt,rootClassName:Ze,style:nt,onChange:Mt}=Qe,Fe=Oe(Qe,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:ye,direction:Bt}=y.useContext(Me.E_),[jt,Lt]=y.useState(Fe.value||be||[]),[Ee,ot]=y.useState([]);y.useEffect(()=>{"value"in Fe&&Lt(Fe.value||[])},[Fe.value]);const qe=y.useMemo(()=>Ne.map(Ie=>typeof Ie=="string"||typeof Ie=="number"?{label:Ie,value:Ie}:Ie),[Ne]),zt=Ie=>{ot(bt=>bt.filter(Ue=>Ue!==Ie))},ht=Ie=>{ot(bt=>[].concat((0,ct.Z)(bt),[Ie]))},lt=Ie=>{const bt=jt.indexOf(Ie.value),Ue=(0,ct.Z)(jt);bt===-1?Ue.push(Ie.value):Ue.splice(bt,1),"value"in Fe||Lt(Ue),Mt==null||Mt(Ue.filter(He=>Ee.includes(He)).sort((He,at)=>{const ft=qe.findIndex(Le=>Le.value===He),Pt=qe.findIndex(Le=>Le.value===at);return ft-Pt}))},rt=ye("checkbox",ue),on=`${rt}-group`,kt=(0,se.Z)(rt),[ae,re,te]=(0,je.ZP)(rt,kt),ie=(0,Be.Z)(Fe,["value","disabled"]),ce=Ne.length?qe.map(Ie=>y.createElement(Ye,{prefixCls:rt,key:Ie.value.toString(),disabled:"disabled"in Ie?Ie.disabled:Fe.disabled,value:Ie.value,checked:jt.includes(Ie.value),onChange:Ie.onChange,className:`${on}-item`,style:Ie.style,title:Ie.title,id:Ie.id,required:Ie.required},Ie.label)):et,ne={toggleOption:lt,value:jt,disabled:Fe.disabled,name:Fe.name,registerValue:ht,cancelValue:zt},le=de()(on,{[`${on}-rtl`]:Bt==="rtl"},mt,Ze,te,kt,re);return ae(y.createElement("div",Object.assign({className:le,style:nt},ie,{ref:ut}),y.createElement(tt.Provider,{value:ne},ce)))});const vt=Ye;vt.Group=Ke,vt.__ANT_CHECKBOX=!0;var it=vt},36170:function(bn,Wt,z){"use strict";z.d(Wt,{C2:function(){return me}});var y=z(36237),he=z(63356),de=z(51636),$e=z(16931);const pe=ve=>{const{checkboxCls:Me}=ve,ge=`${Me}-wrapper`;return[{[`${Me}-group`]:Object.assign(Object.assign({},(0,he.Wf)(ve)),{display:"inline-flex",flexWrap:"wrap",columnGap:ve.marginXS,[`> ${ve.antCls}-row`]:{flex:1}}),[ge]:Object.assign(Object.assign({},(0,he.Wf)(ve)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${ge}`]:{marginInlineStart:0},[`&${ge}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[Me]:Object.assign(Object.assign({},(0,he.Wf)(ve)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:ve.borderRadiusSM,alignSelf:"center",[`${Me}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${Me}-inner`]:Object.assign({},(0,he.oN)(ve))},[`${Me}-inner`]:{boxSizing:"border-box",display:"block",width:ve.checkboxSize,height:ve.checkboxSize,direction:"ltr",backgroundColor:ve.colorBgContainer,border:`${(0,y.unit)(ve.lineWidth)} ${ve.lineType} ${ve.colorBorder}`,borderRadius:ve.borderRadiusSM,borderCollapse:"separate",transition:`all ${ve.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:ve.calc(ve.checkboxSize).div(14).mul(5).equal(),height:ve.calc(ve.checkboxSize).div(14).mul(8).equal(),border:`${(0,y.unit)(ve.lineWidthBold)} solid ${ve.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${ve.motionDurationFast} ${ve.motionEaseInBack}, opacity ${ve.motionDurationFast}`}},"& + span":{paddingInlineStart:ve.paddingXS,paddingInlineEnd:ve.paddingXS}})},{[`
${ge}:not(${ge}-disabled),
${Me}:not(${Me}-disabled)
`]:{[`&:hover ${Me}-inner`]:{borderColor:ve.colorPrimary}},[`${ge}:not(${ge}-disabled)`]:{[`&:hover ${Me}-checked:not(${Me}-disabled) ${Me}-inner`]:{backgroundColor:ve.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${Me}-checked:not(${Me}-disabled):after`]:{borderColor:ve.colorPrimaryHover}}},{[`${Me}-checked`]:{[`${Me}-inner`]:{backgroundColor:ve.colorPrimary,borderColor:ve.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${ve.motionDurationMid} ${ve.motionEaseOutBack} ${ve.motionDurationFast}`}}},[`
${ge}-checked:not(${ge}-disabled),
${Me}-checked:not(${Me}-disabled)
`]:{[`&:hover ${Me}-inner`]:{backgroundColor:ve.colorPrimaryHover,borderColor:"transparent"}}},{[Me]:{"&-indeterminate":{[`${Me}-inner`]:{backgroundColor:`${ve.colorBgContainer} !important`,borderColor:`${ve.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:ve.calc(ve.fontSizeLG).div(2).equal(),height:ve.calc(ve.fontSizeLG).div(2).equal(),backgroundColor:ve.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${Me}-inner`]:{backgroundColor:`${ve.colorBgContainer} !important`,borderColor:`${ve.colorPrimary} !important`}}}},{[`${ge}-disabled`]:{cursor:"not-allowed"},[`${Me}-disabled`]:{[`&, ${Me}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${Me}-inner`]:{background:ve.colorBgContainerDisabled,borderColor:ve.colorBorder,"&:after":{borderColor:ve.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:ve.colorTextDisabled},[`&${Me}-indeterminate ${Me}-inner::after`]:{background:ve.colorTextDisabled}}}]};function me(ve,Me){const ge=(0,de.mergeToken)(Me,{checkboxCls:`.${ve}`,checkboxSize:Me.controlInteractiveSize});return[pe(ge)]}Wt.ZP=(0,$e.I$)("Checkbox",(ve,Me)=>{let{prefixCls:ge}=Me;return[me(ge,ve)]})},38406:function(bn,Wt,z){"use strict";var y=z(59301),he=z(48755),de=z(584);const $e=pe=>{const{componentName:me}=pe,{getPrefixCls:ve}=(0,y.useContext)(he.E_),Me=ve("empty");switch(me){case"Table":case"List":return y.createElement(de.Z,{image:de.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return y.createElement(de.Z,{image:de.Z.PRESENTED_IMAGE_SIMPLE,className:`${Me}-small`});case"Table.filter":return null;default:return y.createElement(de.Z,null)}};Wt.Z=$e},37285:function(bn,Wt,z){"use strict";z.d(Wt,{Z:function(){return je}});var y=z(59301),he=z(92310),de=z.n(he),$e=z(48755),pe=z(36237),me=z(63356),ve=z(16931),Me=z(51636);const ge=Te=>{const{componentCls:Ce,sizePaddingEdgeHorizontal:Se,colorSplit:Pe,lineWidth:Ye,textPaddingInline:ct,orientationMargin:Be,verticalMarginInline:Oe}=Te;return{[Ce]:Object.assign(Object.assign({},(0,me.Wf)(Te)),{borderBlockStart:`${(0,pe.unit)(Ye)} solid ${Pe}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:Oe,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${(0,pe.unit)(Ye)} solid ${Pe}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${(0,pe.unit)(Te.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${Ce}-with-text`]:{display:"flex",alignItems:"center",margin:`${(0,pe.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,pe.unit)(Ye)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${Ce}-with-text-start`]:{"&::before":{width:`calc(${Be} * 100%)`},"&::after":{width:`calc(100% - ${Be} * 100%)`}},[`&-horizontal${Ce}-with-text-end`]:{"&::before":{width:`calc(100% - ${Be} * 100%)`},"&::after":{width:`calc(${Be} * 100%)`}},[`${Ce}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:ct},"&-dashed":{background:"none",borderColor:Pe,borderStyle:"dashed",borderWidth:`${(0,pe.unit)(Ye)} 0 0`},[`&-horizontal${Ce}-with-text${Ce}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${Ce}-dashed`]:{borderInlineStartWidth:Ye,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:Pe,borderStyle:"dotted",borderWidth:`${(0,pe.unit)(Ye)} 0 0`},[`&-horizontal${Ce}-with-text${Ce}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${Ce}-dotted`]:{borderInlineStartWidth:Ye,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${Ce}-with-text`]:{color:Te.colorText,fontWeight:"normal",fontSize:Te.fontSize},[`&-horizontal${Ce}-with-text-start${Ce}-no-default-orientation-margin-start`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${Ce}-inner-text`]:{paddingInlineStart:Se}},[`&-horizontal${Ce}-with-text-end${Ce}-no-default-orientation-margin-end`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${Ce}-inner-text`]:{paddingInlineEnd:Se}}})}},se=Te=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:Te.marginXS});var _e=(0,ve.I$)("Divider",Te=>{const Ce=(0,Me.mergeToken)(Te,{dividerHorizontalWithTextGutterMargin:Te.margin,dividerHorizontalGutterMargin:Te.marginLG,sizePaddingEdgeHorizontal:0});return[ge(Ce)]},se,{unitless:{orientationMargin:!0}}),Ae=function(Te,Ce){var Se={};for(var Pe in Te)Object.prototype.hasOwnProperty.call(Te,Pe)&&Ce.indexOf(Pe)<0&&(Se[Pe]=Te[Pe]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ye=0,Pe=Object.getOwnPropertySymbols(Te);Ye<Pe.length;Ye++)Ce.indexOf(Pe[Ye])<0&&Object.prototype.propertyIsEnumerable.call(Te,Pe[Ye])&&(Se[Pe[Ye]]=Te[Pe[Ye]]);return Se},je=Te=>{const{getPrefixCls:Ce,direction:Se,className:Pe,style:Ye}=(0,$e.dj)("divider"),{prefixCls:ct,type:Be="horizontal",orientation:Oe="center",orientationMargin:Re,className:Ke,rootClassName:vt,children:it,dashed:Qe,variant:ut="solid",plain:be,style:et}=Te,Ne=Ae(Te,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style"]),ue=Ce("divider",ct),[mt,Ze,nt]=_e(ue),Mt=!!it,Fe=y.useMemo(()=>Oe==="left"?Se==="rtl"?"end":"start":Oe==="right"?Se==="rtl"?"start":"end":Oe,[Se,Oe]),ye=Fe==="start"&&Re!=null,Bt=Fe==="end"&&Re!=null,jt=de()(ue,Pe,Ze,nt,`${ue}-${Be}`,{[`${ue}-with-text`]:Mt,[`${ue}-with-text-${Fe}`]:Mt,[`${ue}-dashed`]:!!Qe,[`${ue}-${ut}`]:ut!=="solid",[`${ue}-plain`]:!!be,[`${ue}-rtl`]:Se==="rtl",[`${ue}-no-default-orientation-margin-start`]:ye,[`${ue}-no-default-orientation-margin-end`]:Bt},Ke,vt),Lt=y.useMemo(()=>typeof Re=="number"?Re:/^\d+$/.test(Re)?Number(Re):Re,[Re]),Ee={marginInlineStart:ye?Lt:void 0,marginInlineEnd:Bt?Lt:void 0};return mt(y.createElement("div",Object.assign({className:jt,style:Object.assign(Object.assign({},Ye),et)},Ne,{role:"separator"}),it&&Be!=="vertical"&&y.createElement("span",{className:`${ue}-inner-text`,style:Ee},it)))}},36207:function(bn,Wt,z){"use strict";z.d(Wt,{Z:function(){return bt}});var y=z(59301),he=z(92310),de=z.n(he),$e=z(33885),pe=z(42978),me=z(43403),ve=z(34280),Me=y.createContext(null),ge=y.createContext({}),se=Me,_e=z(20068),Ae=z(54476),tt=z(77900),je=z(10228),Te=z(26112),Ce=z(75931),Se=z(8654),Pe=["prefixCls","className","containerRef"],Ye=function(He){var at=He.prefixCls,ft=He.className,Pt=He.containerRef,Le=(0,Ce.Z)(He,Pe),We=y.useContext(ge),Nt=We.panel,Qt=(0,Se.x1)(Nt,Pt);return y.createElement("div",(0,Ae.Z)({className:de()("".concat(at,"-content"),ft),role:"dialog",ref:Qt},(0,Te.Z)(He,{aria:!0}),{"aria-modal":"true"},Le))},ct=Ye,Be=z(48736);function Oe(Ue){return typeof Ue=="string"&&String(Number(Ue))===Ue?((0,Be.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(Ue)):Ue}function Re(Ue){warning(!("wrapperClassName"in Ue),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!Ue.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var Ke={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function vt(Ue,He){var at,ft,Pt,Le=Ue.prefixCls,We=Ue.open,Nt=Ue.placement,Qt=Ue.inline,un=Ue.push,rn=Ue.forceRender,Rt=Ue.autoFocus,ln=Ue.keyboard,Ht=Ue.classNames,ze=Ue.rootClassName,yt=Ue.rootStyle,Kt=Ue.zIndex,tn=Ue.className,Ve=Ue.id,Ct=Ue.style,$t=Ue.motion,dt=Ue.width,Ot=Ue.height,Gt=Ue.children,mn=Ue.mask,An=Ue.maskClosable,hn=Ue.maskMotion,Fn=Ue.maskClassName,Ft=Ue.maskStyle,Tt=Ue.afterOpenChange,Ut=Ue.onClose,an=Ue.onMouseEnter,Xt=Ue.onMouseOver,yn=Ue.onMouseLeave,sn=Ue.onClick,wn=Ue.onKeyDown,Vn=Ue.onKeyUp,Mn=Ue.styles,$n=Ue.drawerRender,Wn=y.useRef(),Hn=y.useRef(),ur=y.useRef();y.useImperativeHandle(He,function(){return Wn.current});var rr=function(St){var It=St.keyCode,fn=St.shiftKey;switch(It){case je.Z.TAB:{if(It===je.Z.TAB){if(!fn&&document.activeElement===ur.current){var Bn;(Bn=Hn.current)===null||Bn===void 0||Bn.focus({preventScroll:!0})}else if(fn&&document.activeElement===Hn.current){var On;(On=ur.current)===null||On===void 0||On.focus({preventScroll:!0})}}break}case je.Z.ESC:{Ut&&ln&&(St.stopPropagation(),Ut(St));break}}};y.useEffect(function(){if(We&&Rt){var Et;(Et=Wn.current)===null||Et===void 0||Et.focus({preventScroll:!0})}},[We]);var dn=y.useState(!1),xn=(0,pe.Z)(dn,2),jn=xn[0],zn=xn[1],xt=y.useContext(se),_t;typeof un=="boolean"?_t=un?{}:{distance:0}:_t=un||{};var Je=(at=(ft=(Pt=_t)===null||Pt===void 0?void 0:Pt.distance)!==null&&ft!==void 0?ft:xt==null?void 0:xt.pushDistance)!==null&&at!==void 0?at:180,Dt=y.useMemo(function(){return{pushDistance:Je,push:function(){zn(!0)},pull:function(){zn(!1)}}},[Je]);y.useEffect(function(){if(We){var Et;xt==null||(Et=xt.push)===null||Et===void 0||Et.call(xt)}else{var St;xt==null||(St=xt.pull)===null||St===void 0||St.call(xt)}},[We]),y.useEffect(function(){return function(){var Et;xt==null||(Et=xt.pull)===null||Et===void 0||Et.call(xt)}},[]);var Ge=mn&&y.createElement(tt.default,(0,Ae.Z)({key:"mask"},hn,{visible:We}),function(Et,St){var It=Et.className,fn=Et.style;return y.createElement("div",{className:de()("".concat(Le,"-mask"),It,Ht==null?void 0:Ht.mask,Fn),style:(0,$e.Z)((0,$e.Z)((0,$e.Z)({},fn),Ft),Mn==null?void 0:Mn.mask),onClick:An&&We?Ut:void 0,ref:St})}),At=typeof $t=="function"?$t(Nt):$t,Jt={};if(jn&&Je)switch(Nt){case"top":Jt.transform="translateY(".concat(Je,"px)");break;case"bottom":Jt.transform="translateY(".concat(-Je,"px)");break;case"left":Jt.transform="translateX(".concat(Je,"px)");break;default:Jt.transform="translateX(".concat(-Je,"px)");break}Nt==="left"||Nt==="right"?Jt.width=Oe(dt):Jt.height=Oe(Ot);var Rn={onMouseEnter:an,onMouseOver:Xt,onMouseLeave:yn,onClick:sn,onKeyDown:wn,onKeyUp:Vn},Zn=y.createElement(tt.default,(0,Ae.Z)({key:"panel"},At,{visible:We,forceRender:rn,onVisibleChanged:function(St){Tt==null||Tt(St)},removeOnLeave:!1,leavedClassName:"".concat(Le,"-content-wrapper-hidden")}),function(Et,St){var It=Et.className,fn=Et.style,Bn=y.createElement(ct,(0,Ae.Z)({id:Ve,containerRef:St,prefixCls:Le,className:de()(tn,Ht==null?void 0:Ht.content),style:(0,$e.Z)((0,$e.Z)({},Ct),Mn==null?void 0:Mn.content)},(0,Te.Z)(Ue,{aria:!0}),Rn),Gt);return y.createElement("div",(0,Ae.Z)({className:de()("".concat(Le,"-content-wrapper"),Ht==null?void 0:Ht.wrapper,It),style:(0,$e.Z)((0,$e.Z)((0,$e.Z)({},Jt),fn),Mn==null?void 0:Mn.wrapper)},(0,Te.Z)(Ue,{data:!0})),$n?$n(Bn):Bn)}),pt=(0,$e.Z)({},yt);return Kt&&(pt.zIndex=Kt),y.createElement(se.Provider,{value:Dt},y.createElement("div",{className:de()(Le,"".concat(Le,"-").concat(Nt),ze,(0,_e.Z)((0,_e.Z)({},"".concat(Le,"-open"),We),"".concat(Le,"-inline"),Qt)),style:pt,tabIndex:-1,ref:Wn,onKeyDown:rr},Ge,y.createElement("div",{tabIndex:0,ref:Hn,style:Ke,"aria-hidden":"true","data-sentinel":"start"}),Zn,y.createElement("div",{tabIndex:0,ref:ur,style:Ke,"aria-hidden":"true","data-sentinel":"end"})))}var it=y.forwardRef(vt),Qe=it,ut=function(He){var at=He.open,ft=at===void 0?!1:at,Pt=He.prefixCls,Le=Pt===void 0?"rc-drawer":Pt,We=He.placement,Nt=We===void 0?"right":We,Qt=He.autoFocus,un=Qt===void 0?!0:Qt,rn=He.keyboard,Rt=rn===void 0?!0:rn,ln=He.width,Ht=ln===void 0?378:ln,ze=He.mask,yt=ze===void 0?!0:ze,Kt=He.maskClosable,tn=Kt===void 0?!0:Kt,Ve=He.getContainer,Ct=He.forceRender,$t=He.afterOpenChange,dt=He.destroyOnClose,Ot=He.onMouseEnter,Gt=He.onMouseOver,mn=He.onMouseLeave,An=He.onClick,hn=He.onKeyDown,Fn=He.onKeyUp,Ft=He.panelRef,Tt=y.useState(!1),Ut=(0,pe.Z)(Tt,2),an=Ut[0],Xt=Ut[1],yn=y.useState(!1),sn=(0,pe.Z)(yn,2),wn=sn[0],Vn=sn[1];(0,ve.Z)(function(){Vn(!0)},[]);var Mn=wn?ft:!1,$n=y.useRef(),Wn=y.useRef();(0,ve.Z)(function(){Mn&&(Wn.current=document.activeElement)},[Mn]);var Hn=function(jn){var zn;if(Xt(jn),$t==null||$t(jn),!jn&&Wn.current&&!((zn=$n.current)!==null&&zn!==void 0&&zn.contains(Wn.current))){var xt;(xt=Wn.current)===null||xt===void 0||xt.focus({preventScroll:!0})}},ur=y.useMemo(function(){return{panel:Ft}},[Ft]);if(!Ct&&!an&&!Mn&&dt)return null;var rr={onMouseEnter:Ot,onMouseOver:Gt,onMouseLeave:mn,onClick:An,onKeyDown:hn,onKeyUp:Fn},dn=(0,$e.Z)((0,$e.Z)({},He),{},{open:Mn,prefixCls:Le,placement:Nt,autoFocus:un,keyboard:Rt,width:Ht,mask:yt,maskClosable:tn,inline:Ve===!1,afterOpenChange:Hn,ref:$n},rr);return y.createElement(ge.Provider,{value:ur},y.createElement(me.Z,{open:Mn||Ct||an,autoDestroy:!1,getContainer:Ve,autoLock:yt&&(Mn||an)},y.createElement(Qe,dn)))},be=ut,et=be,Ne=z(62487),ue=z(75030),mt=z(86641),Ze=z(55743),nt=z(48755),Mt=z(91190),Fe=z(78776),ye=z(458),jt=Ue=>{var He,at;const{prefixCls:ft,title:Pt,footer:Le,extra:We,loading:Nt,onClose:Qt,headerStyle:un,bodyStyle:rn,footerStyle:Rt,children:ln,classNames:Ht,styles:ze}=Ue,yt=(0,nt.dj)("drawer"),Kt=y.useCallback(dt=>y.createElement("button",{type:"button",onClick:Qt,"aria-label":"Close",className:`${ft}-close`},dt),[Qt]),[tn,Ve]=(0,Fe.Z)((0,Fe.w)(Ue),(0,Fe.w)(yt),{closable:!0,closeIconRender:Kt}),Ct=y.useMemo(()=>{var dt,Ot;return!Pt&&!tn?null:y.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(dt=yt.styles)===null||dt===void 0?void 0:dt.header),un),ze==null?void 0:ze.header),className:de()(`${ft}-header`,{[`${ft}-header-close-only`]:tn&&!Pt&&!We},(Ot=yt.classNames)===null||Ot===void 0?void 0:Ot.header,Ht==null?void 0:Ht.header)},y.createElement("div",{className:`${ft}-header-title`},Ve,Pt&&y.createElement("div",{className:`${ft}-title`},Pt)),We&&y.createElement("div",{className:`${ft}-extra`},We))},[tn,Ve,We,un,ft,Pt]),$t=y.useMemo(()=>{var dt,Ot;if(!Le)return null;const Gt=`${ft}-footer`;return y.createElement("div",{className:de()(Gt,(dt=yt.classNames)===null||dt===void 0?void 0:dt.footer,Ht==null?void 0:Ht.footer),style:Object.assign(Object.assign(Object.assign({},(Ot=yt.styles)===null||Ot===void 0?void 0:Ot.footer),Rt),ze==null?void 0:ze.footer)},Le)},[Le,Rt,ft]);return y.createElement(y.Fragment,null,Ct,y.createElement("div",{className:de()(`${ft}-body`,Ht==null?void 0:Ht.body,(He=yt.classNames)===null||He===void 0?void 0:He.body),style:Object.assign(Object.assign(Object.assign({},(at=yt.styles)===null||at===void 0?void 0:at.body),rn),ze==null?void 0:ze.body)},Nt?y.createElement(ye.Z,{active:!0,title:!1,paragraph:{rows:5},className:`${ft}-body-skeleton`}):ln),$t)},Lt=z(36237),Ee=z(63356),ot=z(16931),qe=z(51636);const zt=Ue=>{const He="100%";return{left:`translateX(-${He})`,right:`translateX(${He})`,top:`translateY(-${He})`,bottom:`translateY(${He})`}[Ue]},ht=(Ue,He)=>({"&-enter, &-appear":Object.assign(Object.assign({},Ue),{"&-active":He}),"&-leave":Object.assign(Object.assign({},He),{"&-active":Ue})}),lt=(Ue,He)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${He}`}}},ht({opacity:Ue},{opacity:1})),rt=(Ue,He)=>[lt(.7,He),ht({transform:zt(Ue)},{transform:"none"})];var kt=Ue=>{const{componentCls:He,motionDurationSlow:at}=Ue;return{[He]:{[`${He}-mask-motion`]:lt(0,at),[`${He}-panel-motion`]:["left","right","top","bottom"].reduce((ft,Pt)=>Object.assign(Object.assign({},ft),{[`&-${Pt}`]:rt(Pt,at)}),{})}}};const ae=Ue=>{const{borderRadiusSM:He,componentCls:at,zIndexPopup:ft,colorBgMask:Pt,colorBgElevated:Le,motionDurationSlow:We,motionDurationMid:Nt,paddingXS:Qt,padding:un,paddingLG:rn,fontSizeLG:Rt,lineHeightLG:ln,lineWidth:Ht,lineType:ze,colorSplit:yt,marginXS:Kt,colorIcon:tn,colorIconHover:Ve,colorBgTextHover:Ct,colorBgTextActive:$t,colorText:dt,fontWeightStrong:Ot,footerPaddingBlock:Gt,footerPaddingInline:mn,calc:An}=Ue,hn=`${at}-content-wrapper`;return{[at]:{position:"fixed",inset:0,zIndex:ft,pointerEvents:"none",color:dt,"&-pure":{position:"relative",background:Le,display:"flex",flexDirection:"column",[`&${at}-left`]:{boxShadow:Ue.boxShadowDrawerLeft},[`&${at}-right`]:{boxShadow:Ue.boxShadowDrawerRight},[`&${at}-top`]:{boxShadow:Ue.boxShadowDrawerUp},[`&${at}-bottom`]:{boxShadow:Ue.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${at}-mask`]:{position:"absolute",inset:0,zIndex:ft,background:Pt,pointerEvents:"auto"},[hn]:{position:"absolute",zIndex:ft,maxWidth:"100vw",transition:`all ${We}`,"&-hidden":{display:"none"}},[`&-left > ${hn}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:Ue.boxShadowDrawerLeft},[`&-right > ${hn}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:Ue.boxShadowDrawerRight},[`&-top > ${hn}`]:{top:0,insetInline:0,boxShadow:Ue.boxShadowDrawerUp},[`&-bottom > ${hn}`]:{bottom:0,insetInline:0,boxShadow:Ue.boxShadowDrawerDown},[`${at}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:Le,pointerEvents:"auto"},[`${at}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${(0,Lt.unit)(un)} ${(0,Lt.unit)(rn)}`,fontSize:Rt,lineHeight:ln,borderBottom:`${(0,Lt.unit)(Ht)} ${ze} ${yt}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${at}-extra`]:{flex:"none"},[`${at}-close`]:Object.assign({display:"inline-flex",width:An(Rt).add(Qt).equal(),height:An(Rt).add(Qt).equal(),borderRadius:He,justifyContent:"center",alignItems:"center",marginInlineEnd:Kt,color:tn,fontWeight:Ot,fontSize:Rt,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${Nt}`,textRendering:"auto","&:hover":{color:Ve,backgroundColor:Ct,textDecoration:"none"},"&:active":{backgroundColor:$t}},(0,Ee.Qy)(Ue)),[`${at}-title`]:{flex:1,margin:0,fontWeight:Ue.fontWeightStrong,fontSize:Rt,lineHeight:ln},[`${at}-body`]:{flex:1,minWidth:0,minHeight:0,padding:rn,overflow:"auto",[`${at}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${at}-footer`]:{flexShrink:0,padding:`${(0,Lt.unit)(Gt)} ${(0,Lt.unit)(mn)}`,borderTop:`${(0,Lt.unit)(Ht)} ${ze} ${yt}`},"&-rtl":{direction:"rtl"}}}},re=Ue=>({zIndexPopup:Ue.zIndexPopupBase,footerPaddingBlock:Ue.paddingXS,footerPaddingInline:Ue.padding});var te=(0,ot.I$)("Drawer",Ue=>{const He=(0,qe.mergeToken)(Ue,{});return[ae(He),kt(He)]},re),ie=function(Ue,He){var at={};for(var ft in Ue)Object.prototype.hasOwnProperty.call(Ue,ft)&&He.indexOf(ft)<0&&(at[ft]=Ue[ft]);if(Ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pt=0,ft=Object.getOwnPropertySymbols(Ue);Pt<ft.length;Pt++)He.indexOf(ft[Pt])<0&&Object.prototype.propertyIsEnumerable.call(Ue,ft[Pt])&&(at[ft[Pt]]=Ue[ft[Pt]]);return at};const ce=null,ne={distance:180},le=Ue=>{var He;const{rootClassName:at,width:ft,height:Pt,size:Le="default",mask:We=!0,push:Nt=ne,open:Qt,afterOpenChange:un,onClose:rn,prefixCls:Rt,getContainer:ln,style:Ht,className:ze,visible:yt,afterVisibleChange:Kt,maskStyle:tn,drawerStyle:Ve,contentWrapperStyle:Ct}=Ue,$t=ie(Ue,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:dt,getPrefixCls:Ot,direction:Gt,className:mn,style:An,classNames:hn,styles:Fn}=(0,nt.dj)("drawer"),Ft=Ot("drawer",Rt),[Tt,Ut,an]=te(Ft),Xt=ln===void 0&&dt?()=>dt(document.body):ln,yn=de()({"no-mask":!We,[`${Ft}-rtl`]:Gt==="rtl"},at,Ut,an),sn=y.useMemo(()=>ft!=null?ft:Le==="large"?736:378,[ft,Le]),wn=y.useMemo(()=>Pt!=null?Pt:Le==="large"?736:378,[Pt,Le]),Vn={motionName:(0,mt.m)(Ft,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},Mn=dn=>({motionName:(0,mt.m)(Ft,`panel-motion-${dn}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),$n=(0,Mt.H)(),[Wn,Hn]=(0,ue.Cn)("Drawer",$t.zIndex),{classNames:ur={},styles:rr={}}=$t;return Tt(y.createElement(Ne.Z,{form:!0,space:!0},y.createElement(Ze.Z.Provider,{value:Hn},y.createElement(et,Object.assign({prefixCls:Ft,onClose:rn,maskMotion:Vn,motion:Mn},$t,{classNames:{mask:de()(ur.mask,hn.mask),content:de()(ur.content,hn.content),wrapper:de()(ur.wrapper,hn.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},rr.mask),tn),Fn.mask),content:Object.assign(Object.assign(Object.assign({},rr.content),Ve),Fn.content),wrapper:Object.assign(Object.assign(Object.assign({},rr.wrapper),Ct),Fn.wrapper)},open:Qt!=null?Qt:yt,mask:We,push:Nt,width:sn,height:wn,style:Object.assign(Object.assign({},An),Ht),className:de()(mn,ze),rootClassName:yn,getContainer:Xt,afterOpenChange:un!=null?un:Kt,panelRef:$n,zIndex:Wn}),y.createElement(jt,Object.assign({prefixCls:Ft},$t,{onClose:rn}))))))},Ie=Ue=>{const{prefixCls:He,style:at,className:ft,placement:Pt="right"}=Ue,Le=ie(Ue,["prefixCls","style","className","placement"]),{getPrefixCls:We}=y.useContext(nt.E_),Nt=We("drawer",He),[Qt,un,rn]=te(Nt),Rt=de()(Nt,`${Nt}-pure`,`${Nt}-${Pt}`,un,rn,ft);return Qt(y.createElement("div",{className:Rt,style:at},y.createElement(jt,Object.assign({prefixCls:Nt},Le))))};le._InternalPanelDoNotUseOrYouWillBeFired=Ie;var bt=le},19563:function(bn,Wt,z){"use strict";z.d(Wt,{Z:function(){return Lt}});var y=z(59301),he=z(33853),de=z(38819),$e=z(92310),pe=z.n($e),me=z(96478),ve=z(6089),Me=z(18929),ge=z(2738),se=z(75030),Ae=Ee=>typeof Ee!="object"&&typeof Ee!="function"||Ee===null,tt=z(52838),je=z(45915),Te=z(22703),Ce=z(32383),Se=z(55743),Pe=z(48755),Ye=z(83397),ct=z(93041),Be=z(78857),Oe=z(57700),Re=z(36237),Ke=z(63356),vt=z(46e3),it=z(93873),Qe=z(34925),ut=z(37645),be=z(36305),et=z(16931),Ne=z(51636),mt=Ee=>{const{componentCls:ot,menuCls:qe,colorError:zt,colorTextLightSolid:ht}=Ee,lt=`${qe}-item`;return{[`${ot}, ${ot}-menu-submenu`]:{[`${qe} ${lt}`]:{[`&${lt}-danger:not(${lt}-disabled)`]:{color:zt,"&:hover":{color:ht,backgroundColor:zt}}}}}};const Ze=Ee=>{const{componentCls:ot,menuCls:qe,zIndexPopup:zt,dropdownArrowDistance:ht,sizePopupArrow:lt,antCls:rt,iconCls:on,motionDurationMid:kt,paddingBlock:ae,fontSize:re,dropdownEdgeChildPadding:te,colorTextDisabled:ie,fontSizeIcon:ce,controlPaddingHorizontal:ne,colorBgElevated:le}=Ee;return[{[ot]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:zt,display:"block","&::before":{position:"absolute",insetBlock:Ee.calc(lt).div(2).sub(ht).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${rt}-btn`]:{[`& > ${on}-down, & > ${rt}-btn-icon > ${on}-down`]:{fontSize:ce}},[`${ot}-wrap`]:{position:"relative",[`${rt}-btn > ${on}-down`]:{fontSize:ce},[`${on}-down::before`]:{transition:`transform ${kt}`}},[`${ot}-wrap-open`]:{[`${on}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${rt}-slide-down-enter${rt}-slide-down-enter-active${ot}-placement-bottomLeft,
&${rt}-slide-down-appear${rt}-slide-down-appear-active${ot}-placement-bottomLeft,
&${rt}-slide-down-enter${rt}-slide-down-enter-active${ot}-placement-bottom,
&${rt}-slide-down-appear${rt}-slide-down-appear-active${ot}-placement-bottom,
&${rt}-slide-down-enter${rt}-slide-down-enter-active${ot}-placement-bottomRight,
&${rt}-slide-down-appear${rt}-slide-down-appear-active${ot}-placement-bottomRight`]:{animationName:vt.fJ},[`&${rt}-slide-up-enter${rt}-slide-up-enter-active${ot}-placement-topLeft,
&${rt}-slide-up-appear${rt}-slide-up-appear-active${ot}-placement-topLeft,
&${rt}-slide-up-enter${rt}-slide-up-enter-active${ot}-placement-top,
&${rt}-slide-up-appear${rt}-slide-up-appear-active${ot}-placement-top,
&${rt}-slide-up-enter${rt}-slide-up-enter-active${ot}-placement-topRight,
&${rt}-slide-up-appear${rt}-slide-up-appear-active${ot}-placement-topRight`]:{animationName:vt.Qt},[`&${rt}-slide-down-leave${rt}-slide-down-leave-active${ot}-placement-bottomLeft,
&${rt}-slide-down-leave${rt}-slide-down-leave-active${ot}-placement-bottom,
&${rt}-slide-down-leave${rt}-slide-down-leave-active${ot}-placement-bottomRight`]:{animationName:vt.Uw},[`&${rt}-slide-up-leave${rt}-slide-up-leave-active${ot}-placement-topLeft,
&${rt}-slide-up-leave${rt}-slide-up-leave-active${ot}-placement-top,
&${rt}-slide-up-leave${rt}-slide-up-leave-active${ot}-placement-topRight`]:{animationName:vt.ly}}},(0,ut.ZP)(Ee,le,{arrowPlacement:{top:!0,bottom:!0}}),{[`${ot} ${qe}`]:{position:"relative",margin:0},[`${qe}-submenu-popup`]:{position:"absolute",zIndex:zt,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${ot}, ${ot}-menu-submenu`]:Object.assign(Object.assign({},(0,Ke.Wf)(Ee)),{[qe]:Object.assign(Object.assign({padding:te,listStyleType:"none",backgroundColor:le,backgroundClip:"padding-box",borderRadius:Ee.borderRadiusLG,outline:"none",boxShadow:Ee.boxShadowSecondary},(0,Ke.Qy)(Ee)),{"&:empty":{padding:0,boxShadow:"none"},[`${qe}-item-group-title`]:{padding:`${(0,Re.unit)(ae)} ${(0,Re.unit)(ne)}`,color:Ee.colorTextDescription,transition:`all ${kt}`},[`${qe}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${qe}-item-icon`]:{minWidth:re,marginInlineEnd:Ee.marginXS,fontSize:Ee.fontSizeSM},[`${qe}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${kt}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${qe}-item-extra`]:{paddingInlineStart:Ee.padding,marginInlineStart:"auto",fontSize:Ee.fontSizeSM,color:Ee.colorTextDescription}},[`${qe}-item, ${qe}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${(0,Re.unit)(ae)} ${(0,Re.unit)(ne)}`,color:Ee.colorText,fontWeight:"normal",fontSize:re,lineHeight:Ee.lineHeight,cursor:"pointer",transition:`all ${kt}`,borderRadius:Ee.borderRadiusSM,"&:hover, &-active":{backgroundColor:Ee.controlItemBgHover}},(0,Ke.Qy)(Ee)),{"&-selected":{color:Ee.colorPrimary,backgroundColor:Ee.controlItemBgActive,"&:hover, &-active":{backgroundColor:Ee.controlItemBgActiveHover}},"&-disabled":{color:ie,cursor:"not-allowed","&:hover":{color:ie,backgroundColor:le,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${(0,Re.unit)(Ee.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:Ee.colorSplit},[`${ot}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Ee.paddingXS,[`${ot}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Ee.colorTextDescription,fontSize:ce,fontStyle:"normal"}}}),[`${qe}-item-group-list`]:{margin:`0 ${(0,Re.unit)(Ee.marginXS)}`,padding:0,listStyle:"none"},[`${qe}-submenu-title`]:{paddingInlineEnd:Ee.calc(ne).add(Ee.fontSizeSM).equal()},[`${qe}-submenu-vertical`]:{position:"relative"},[`${qe}-submenu${qe}-submenu-disabled ${ot}-menu-submenu-title`]:{[`&, ${ot}-menu-submenu-arrow-icon`]:{color:ie,backgroundColor:le,cursor:"not-allowed"}},[`${qe}-submenu-selected ${ot}-menu-submenu-title`]:{color:Ee.colorPrimary}})})},[(0,vt.oN)(Ee,"slide-up"),(0,vt.oN)(Ee,"slide-down"),(0,it.Fm)(Ee,"move-up"),(0,it.Fm)(Ee,"move-down"),(0,Qe._y)(Ee,"zoom-big")]]},nt=Ee=>Object.assign(Object.assign({zIndexPopup:Ee.zIndexPopupBase+50,paddingBlock:(Ee.controlHeight-Ee.fontSize*Ee.lineHeight)/2},(0,ut.wZ)({contentRadius:Ee.borderRadiusLG,limitVerticalRadius:!0})),(0,be.w)(Ee));var Mt=(0,et.I$)("Dropdown",Ee=>{const{marginXXS:ot,sizePopupArrow:qe,paddingXXS:zt,componentCls:ht}=Ee,lt=(0,Ne.mergeToken)(Ee,{menuCls:`${ht}-menu`,dropdownArrowDistance:Ee.calc(qe).div(2).add(ot).equal(),dropdownEdgeChildPadding:zt});return[Ze(lt),mt(lt)]},nt,{resetStyle:!1});const Fe=null,ye=Ee=>{var ot;const{menu:qe,arrow:zt,prefixCls:ht,children:lt,trigger:rt,disabled:on,dropdownRender:kt,getPopupContainer:ae,overlayClassName:re,rootClassName:te,overlayStyle:ie,open:ce,onOpenChange:ne,visible:le,onVisibleChange:Ie,mouseEnterDelay:bt=.15,mouseLeaveDelay:Ue=.1,autoAdjustOverflow:He=!0,placement:at="",overlay:ft,transitionName:Pt}=Ee,{getPopupContainer:Le,getPrefixCls:We,direction:Nt,dropdown:Qt}=y.useContext(Pe.E_),un=(0,Ce.ln)("Dropdown"),rn=y.useMemo(()=>{const Xt=We();return Pt!==void 0?Pt:at.includes("top")?`${Xt}-slide-down`:`${Xt}-slide-up`},[We,at,Pt]),Rt=y.useMemo(()=>at?at.includes("Center")?at.slice(0,at.indexOf("Center")):at:Nt==="rtl"?"bottomRight":"bottomLeft",[at,Nt]),ln=We("dropdown",ht),Ht=(0,Ye.Z)(ln),[ze,yt,Kt]=Mt(ln,Ht),[,tn]=(0,Oe.ZP)(),Ve=y.Children.only(Ae(lt)?y.createElement("span",null,lt):lt),Ct=(0,Te.Tm)(Ve,{className:pe()(`${ln}-trigger`,{[`${ln}-rtl`]:Nt==="rtl"},Ve.props.className),disabled:(ot=Ve.props.disabled)!==null&&ot!==void 0?ot:on}),$t=on?[]:rt,dt=!!($t!=null&&$t.includes("contextMenu")),[Ot,Gt]=(0,Me.Z)(!1,{value:ce!=null?ce:le}),mn=(0,ve.Z)(Xt=>{ne==null||ne(Xt,{source:"trigger"}),Ie==null||Ie(Xt),Gt(Xt)}),An=pe()(re,te,yt,Kt,Ht,Qt==null?void 0:Qt.className,{[`${ln}-rtl`]:Nt==="rtl"}),hn=(0,tt.Z)({arrowPointAtCenter:typeof zt=="object"&&zt.pointAtCenter,autoAdjustOverflow:He,offset:tn.marginXXS,arrowWidth:zt?tn.sizePopupArrow:0,borderRadius:tn.borderRadius}),Fn=y.useCallback(()=>{qe!=null&&qe.selectable&&(qe!=null&&qe.multiple)||(ne==null||ne(!1,{source:"menu"}),Gt(!1))},[qe==null?void 0:qe.selectable,qe==null?void 0:qe.multiple]),Ft=()=>{let Xt;return qe!=null&&qe.items?Xt=y.createElement(ct.default,Object.assign({},qe)):typeof ft=="function"?Xt=ft():Xt=ft,kt&&(Xt=kt(Xt)),Xt=y.Children.only(typeof Xt=="string"?y.createElement("span",null,Xt):Xt),y.createElement(Be.J,{prefixCls:`${ln}-menu`,rootClassName:pe()(Kt,Ht),expandIcon:y.createElement("span",{className:`${ln}-menu-submenu-arrow`},Nt==="rtl"?y.createElement(he.Z,{className:`${ln}-menu-submenu-arrow-icon`}):y.createElement(de.Z,{className:`${ln}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Fn,validator:yn=>{let{mode:sn}=yn}},Xt)},[Tt,Ut]=(0,se.Cn)("Dropdown",ie==null?void 0:ie.zIndex);let an=y.createElement(me.Z,Object.assign({alignPoint:dt},(0,ge.Z)(Ee,["rootClassName"]),{mouseEnterDelay:bt,mouseLeaveDelay:Ue,visible:Ot,builtinPlacements:hn,arrow:!!zt,overlayClassName:An,prefixCls:ln,getPopupContainer:ae||Le,transitionName:rn,trigger:$t,overlay:Ft,placement:Rt,onVisibleChange:mn,overlayStyle:Object.assign(Object.assign(Object.assign({},Qt==null?void 0:Qt.style),ie),{zIndex:Tt})}),Ct);return Tt&&(an=y.createElement(Se.Z.Provider,{value:Ut},an)),ze(an)},Bt=(0,je.Z)(ye,"align",void 0,"dropdown",Ee=>Ee),jt=Ee=>y.createElement(Bt,Object.assign({},Ee),y.createElement("span",null));ye._InternalPanelDoNotUseOrYouWillBeFired=jt;var Lt=ye},75727:function(bn,Wt,z){"use strict";z.d(Wt,{Z:function(){return je}});var y=z(19563),he=z(59301),de=z(18785),$e=z(92310),pe=z.n($e),me=z(7939),ve=z(48755),Me=z(44104),ge=z(70045),se=function(Te,Ce){var Se={};for(var Pe in Te)Object.prototype.hasOwnProperty.call(Te,Pe)&&Ce.indexOf(Pe)<0&&(Se[Pe]=Te[Pe]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ye=0,Pe=Object.getOwnPropertySymbols(Te);Ye<Pe.length;Ye++)Ce.indexOf(Pe[Ye])<0&&Object.prototype.propertyIsEnumerable.call(Te,Pe[Ye])&&(Se[Pe[Ye]]=Te[Pe[Ye]]);return Se};const _e=Te=>{const{getPopupContainer:Ce,getPrefixCls:Se,direction:Pe}=he.useContext(ve.E_),{prefixCls:Ye,type:ct="default",danger:Be,disabled:Oe,loading:Re,onClick:Ke,htmlType:vt,children:it,className:Qe,menu:ut,arrow:be,autoFocus:et,overlay:Ne,trigger:ue,align:mt,open:Ze,onOpenChange:nt,placement:Mt,getPopupContainer:Fe,href:ye,icon:Bt=he.createElement(de.Z,null),title:jt,buttonsRender:Lt=bt=>bt,mouseEnterDelay:Ee,mouseLeaveDelay:ot,overlayClassName:qe,overlayStyle:zt,destroyPopupOnHide:ht,dropdownRender:lt}=Te,rt=se(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"]),on=Se("dropdown",Ye),kt=`${on}-button`,ae={menu:ut,arrow:be,autoFocus:et,align:mt,disabled:Oe,trigger:Oe?[]:ue,onOpenChange:nt,getPopupContainer:Fe||Ce,mouseEnterDelay:Ee,mouseLeaveDelay:ot,overlayClassName:qe,overlayStyle:zt,destroyPopupOnHide:ht,dropdownRender:lt},{compactSize:re,compactItemClassnames:te}=(0,ge.ri)(on,Pe),ie=pe()(kt,te,Qe);"overlay"in Te&&(ae.overlay=Ne),"open"in Te&&(ae.open=Ze),"placement"in Te?ae.placement=Mt:ae.placement=Pe==="rtl"?"bottomLeft":"bottomRight";const ce=he.createElement(me.ZP,{type:ct,danger:Be,disabled:Oe,loading:Re,onClick:Ke,htmlType:vt,href:ye,title:jt},it),ne=he.createElement(me.ZP,{type:ct,danger:Be,icon:Bt}),[le,Ie]=Lt([ce,ne]);return he.createElement(Me.Z.Compact,Object.assign({className:ie,size:re,block:!0},rt),le,he.createElement(y.Z,Object.assign({},ae),Ie))};_e.__ANT_BUTTON=!0;var Ae=_e;const tt=y.Z;tt.Button=Ae;var je=tt},584:function(bn,Wt,z){"use strict";z.d(Wt,{Z:function(){return ct}});var y=z(59301),he=z(92310),de=z.n(he),$e=z(9017),pe=z(17835),me=z(57700),Me=()=>{const[,Be]=(0,me.ZP)(),[Oe]=(0,$e.Z)("Empty"),Ke=new pe.FastColor(Be.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return y.createElement("svg",{style:Ke,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},y.createElement("title",null,(Oe==null?void 0:Oe.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"}))))},se=()=>{const[,Be]=(0,me.ZP)(),[Oe]=(0,$e.Z)("Empty"),{colorFill:Re,colorFillTertiary:Ke,colorFillQuaternary:vt,colorBgContainer:it}=Be,{borderColor:Qe,shadowColor:ut,contentColor:be}=(0,y.useMemo)(()=>({borderColor:new pe.FastColor(Re).onBackground(it).toHexString(),shadowColor:new pe.FastColor(Ke).onBackground(it).toHexString(),contentColor:new pe.FastColor(vt).onBackground(it).toHexString()}),[Re,Ke,vt,it]);return y.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},y.createElement("title",null,(Oe==null?void 0:Oe.description)||"Empty"),y.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},y.createElement("ellipse",{fill:ut,cx:"32",cy:"33",rx:"32",ry:"7"}),y.createElement("g",{fillRule:"nonzero",stroke:Qe},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:be}))))},_e=z(16931),Ae=z(51636);const tt=Be=>{const{componentCls:Oe,margin:Re,marginXS:Ke,marginXL:vt,fontSize:it,lineHeight:Qe}=Be;return{[Oe]:{marginInline:Ke,fontSize:it,lineHeight:Qe,textAlign:"center",[`${Oe}-image`]:{height:Be.emptyImgHeight,marginBottom:Ke,opacity:Be.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${Oe}-description`]:{color:Be.colorTextDescription},[`${Oe}-footer`]:{marginTop:Re},"&-normal":{marginBlock:vt,color:Be.colorTextDescription,[`${Oe}-description`]:{color:Be.colorTextDescription},[`${Oe}-image`]:{height:Be.emptyImgHeightMD}},"&-small":{marginBlock:Ke,color:Be.colorTextDescription,[`${Oe}-image`]:{height:Be.emptyImgHeightSM}}}}};var je=(0,_e.I$)("Empty",Be=>{const{componentCls:Oe,controlHeightLG:Re,calc:Ke}=Be,vt=(0,Ae.mergeToken)(Be,{emptyImgCls:`${Oe}-img`,emptyImgHeight:Ke(Re).mul(2.5).equal(),emptyImgHeightMD:Re,emptyImgHeightSM:Ke(Re).mul(.875).equal()});return[tt(vt)]}),Te=z(48755),Ce=function(Be,Oe){var Re={};for(var Ke in Be)Object.prototype.hasOwnProperty.call(Be,Ke)&&Oe.indexOf(Ke)<0&&(Re[Ke]=Be[Ke]);if(Be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vt=0,Ke=Object.getOwnPropertySymbols(Be);vt<Ke.length;vt++)Oe.indexOf(Ke[vt])<0&&Object.prototype.propertyIsEnumerable.call(Be,Ke[vt])&&(Re[Ke[vt]]=Be[Ke[vt]]);return Re};const Se=y.createElement(Me,null),Pe=y.createElement(se,null),Ye=Be=>{const{className:Oe,rootClassName:Re,prefixCls:Ke,image:vt=Se,description:it,children:Qe,imageStyle:ut,style:be,classNames:et,styles:Ne}=Be,ue=Ce(Be,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:mt,direction:Ze,className:nt,style:Mt,classNames:Fe,styles:ye}=(0,Te.dj)("empty"),Bt=mt("empty",Ke),[jt,Lt,Ee]=je(Bt),[ot]=(0,$e.Z)("Empty"),qe=typeof it!="undefined"?it:ot==null?void 0:ot.description,zt=typeof qe=="string"?qe:"empty";let ht=null;return typeof vt=="string"?ht=y.createElement("img",{alt:zt,src:vt}):ht=vt,jt(y.createElement("div",Object.assign({className:de()(Lt,Ee,Bt,nt,{[`${Bt}-normal`]:vt===Pe,[`${Bt}-rtl`]:Ze==="rtl"},Oe,Re,Fe.root,et==null?void 0:et.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},ye.root),Mt),Ne==null?void 0:Ne.root),be)},ue),y.createElement("div",{className:de()(`${Bt}-image`,Fe.image,et==null?void 0:et.image),style:Object.assign(Object.assign(Object.assign({},ut),ye.image),Ne==null?void 0:Ne.image)},ht),qe&&y.createElement("div",{className:de()(`${Bt}-description`,Fe.description,et==null?void 0:et.description),style:Object.assign(Object.assign({},ye.description),Ne==null?void 0:Ne.description)},qe),Qe&&y.createElement("div",{className:de()(`${Bt}-footer`,Fe.footer,et==null?void 0:et.footer),style:Object.assign(Object.assign({},ye.footer),Ne==null?void 0:Ne.footer)},Qe)))};Ye.PRESENTED_IMAGE_DEFAULT=Se,Ye.PRESENTED_IMAGE_SIMPLE=Pe;var ct=Ye},28284:function(bn,Wt,z){"use strict";z.d(Wt,{default:function(){return _t}});var y=z(56553),he=z(94480),de=z(59301),$e=z(92310),pe=z.n($e),me=z(77900),ve=z(86641),Me=z(83397);function ge(Je){const[Dt,Ge]=de.useState(Je);return de.useEffect(()=>{const At=setTimeout(()=>{Ge(Je)},Je.length?0:10);return()=>{clearTimeout(At)}},[Je]),Dt}var se=z(36237),_e=z(63356),Ae=z(34925),tt=z(34961),je=z(51636),Te=z(16931),Se=Je=>{const{componentCls:Dt}=Je,Ge=`${Dt}-show-help`,At=`${Dt}-show-help-item`;return{[Ge]:{transition:`opacity ${Je.motionDurationFast} ${Je.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[At]:{overflow:"hidden",transition:`height ${Je.motionDurationFast} ${Je.motionEaseInOut},
opacity ${Je.motionDurationFast} ${Je.motionEaseInOut},
transform ${Je.motionDurationFast} ${Je.motionEaseInOut} !important`,[`&${At}-appear, &${At}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${At}-leave-active`]:{transform:"translateY(-5px)"}}}}};const Pe=Je=>({legend:{display:"block",width:"100%",marginBottom:Je.marginLG,padding:0,color:Je.colorTextDescription,fontSize:Je.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${(0,se.unit)(Je.lineWidth)} ${Je.lineType} ${Je.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,se.unit)(Je.controlOutlineWidth)} ${Je.controlOutline}`},output:{display:"block",paddingTop:15,color:Je.colorText,fontSize:Je.fontSize,lineHeight:Je.lineHeight}}),Ye=(Je,Dt)=>{const{formItemCls:Ge}=Je;return{[Ge]:{[`${Ge}-label > label`]:{height:Dt},[`${Ge}-control-input`]:{minHeight:Dt}}}},ct=Je=>{const{componentCls:Dt}=Je;return{[Je.componentCls]:Object.assign(Object.assign(Object.assign({},(0,_e.Wf)(Je)),Pe(Je)),{[`${Dt}-text`]:{display:"inline-block",paddingInlineEnd:Je.paddingSM},"&-small":Object.assign({},Ye(Je,Je.controlHeightSM)),"&-large":Object.assign({},Ye(Je,Je.controlHeightLG))})}},Be=Je=>{const{formItemCls:Dt,iconCls:Ge,rootPrefixCls:At,antCls:Jt,labelRequiredMarkColor:Rn,labelColor:Zn,labelFontSize:pt,labelHeight:Et,labelColonMarginInlineStart:St,labelColonMarginInlineEnd:It,itemMarginBottom:fn}=Je;return{[Dt]:Object.assign(Object.assign({},(0,_e.Wf)(Je)),{marginBottom:fn,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
&-hidden${Jt}-row`]:{display:"none"},"&-has-warning":{[`${Dt}-split`]:{color:Je.colorError}},"&-has-error":{[`${Dt}-split`]:{color:Je.colorWarning}},[`${Dt}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:Je.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:Et,color:Zn,fontSize:pt,[`> ${Ge}`]:{fontSize:Je.fontSize,verticalAlign:"top"},[`&${Dt}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:Je.marginXXS,color:Rn,fontSize:Je.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${Dt}-required-mark-hidden, &${Dt}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${Dt}-optional`]:{display:"inline-block",marginInlineStart:Je.marginXXS,color:Je.colorTextDescription,[`&${Dt}-required-mark-hidden`]:{display:"none"}},[`${Dt}-tooltip`]:{color:Je.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:Je.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:St,marginInlineEnd:It},[`&${Dt}-no-colon::after`]:{content:'"\\a0"'}}},[`${Dt}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${At}-col-'"]):not([class*="' ${At}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:Je.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[Dt]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:Je.colorTextDescription,fontSize:Je.fontSize,lineHeight:Je.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:Je.controlHeightSM,transition:`color ${Je.motionDurationMid} ${Je.motionEaseOut}`},"&-explain":{"&-error":{color:Je.colorError},"&-warning":{color:Je.colorWarning}}},[`&-with-help ${Dt}-explain`]:{height:"auto",opacity:1},[`${Dt}-feedback-icon`]:{fontSize:Je.fontSize,textAlign:"center",visibility:"visible",animationName:Ae.kr,animationDuration:Je.motionDurationMid,animationTimingFunction:Je.motionEaseOutBack,pointerEvents:"none","&-success":{color:Je.colorSuccess},"&-error":{color:Je.colorError},"&-warning":{color:Je.colorWarning},"&-validating":{color:Je.colorPrimary}}})}},Oe=(Je,Dt)=>{const{formItemCls:Ge}=Je;return{[`${Dt}-horizontal`]:{[`${Ge}-label`]:{flexGrow:0},[`${Ge}-control`]:{flex:"1 1 0",minWidth:0},[`${Ge}-label[class$='-24'], ${Ge}-label[class*='-24 ']`]:{[`& + ${Ge}-control`]:{minWidth:"unset"}}}}},Re=Je=>{const{componentCls:Dt,formItemCls:Ge,inlineItemMarginBottom:At}=Je;return{[`${Dt}-inline`]:{display:"flex",flexWrap:"wrap",[Ge]:{flex:"none",marginInlineEnd:Je.margin,marginBottom:At,"&-row":{flexWrap:"nowrap"},[`> ${Ge}-label,
> ${Ge}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${Ge}-label`]:{flex:"none"},[`${Dt}-text`]:{display:"inline-block"},[`${Ge}-has-feedback`]:{display:"inline-block"}}}}},Ke=Je=>({padding:Je.verticalLabelPadding,margin:Je.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),vt=Je=>{const{componentCls:Dt,formItemCls:Ge,rootPrefixCls:At}=Je;return{[`${Ge} ${Ge}-label`]:Ke(Je),[`${Dt}:not(${Dt}-inline)`]:{[Ge]:{flexWrap:"wrap",[`${Ge}-label, ${Ge}-control`]:{[`&:not([class*=" ${At}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},it=Je=>{const{componentCls:Dt,formItemCls:Ge,antCls:At}=Je;return{[`${Dt}-vertical`]:{[`${Ge}:not(${Ge}-horizontal)`]:{[`${Ge}-row`]:{flexDirection:"column"},[`${Ge}-label > label`]:{height:"auto"},[`${Ge}-control`]:{width:"100%"},[`${Ge}-label,
${At}-col-24${Ge}-label,
${At}-col-xl-24${Ge}-label`]:Ke(Je)}},[`@media (max-width: ${(0,se.unit)(Je.screenXSMax)})`]:[vt(Je),{[Dt]:{[`${Ge}:not(${Ge}-horizontal)`]:{[`${At}-col-xs-24${Ge}-label`]:Ke(Je)}}}],[`@media (max-width: ${(0,se.unit)(Je.screenSMMax)})`]:{[Dt]:{[`${Ge}:not(${Ge}-horizontal)`]:{[`${At}-col-sm-24${Ge}-label`]:Ke(Je)}}},[`@media (max-width: ${(0,se.unit)(Je.screenMDMax)})`]:{[Dt]:{[`${Ge}:not(${Ge}-horizontal)`]:{[`${At}-col-md-24${Ge}-label`]:Ke(Je)}}},[`@media (max-width: ${(0,se.unit)(Je.screenLGMax)})`]:{[Dt]:{[`${Ge}:not(${Ge}-horizontal)`]:{[`${At}-col-lg-24${Ge}-label`]:Ke(Je)}}}}},Qe=Je=>{const{formItemCls:Dt,antCls:Ge}=Je;return{[`${Dt}-vertical`]:{[`${Dt}-row`]:{flexDirection:"column"},[`${Dt}-label > label`]:{height:"auto"},[`${Dt}-control`]:{width:"100%"}},[`${Dt}-vertical ${Dt}-label,
${Ge}-col-24${Dt}-label,
${Ge}-col-xl-24${Dt}-label`]:Ke(Je),[`@media (max-width: ${(0,se.unit)(Je.screenXSMax)})`]:[vt(Je),{[Dt]:{[`${Ge}-col-xs-24${Dt}-label`]:Ke(Je)}}],[`@media (max-width: ${(0,se.unit)(Je.screenSMMax)})`]:{[Dt]:{[`${Ge}-col-sm-24${Dt}-label`]:Ke(Je)}},[`@media (max-width: ${(0,se.unit)(Je.screenMDMax)})`]:{[Dt]:{[`${Ge}-col-md-24${Dt}-label`]:Ke(Je)}},[`@media (max-width: ${(0,se.unit)(Je.screenLGMax)})`]:{[Dt]:{[`${Ge}-col-lg-24${Dt}-label`]:Ke(Je)}}}},ut=Je=>({labelRequiredMarkColor:Je.colorError,labelColor:Je.colorTextHeading,labelFontSize:Je.fontSize,labelHeight:Je.controlHeight,labelColonMarginInlineStart:Je.marginXXS/2,labelColonMarginInlineEnd:Je.marginXS,itemMarginBottom:Je.marginLG,verticalLabelPadding:`0 0 ${Je.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),be=(Je,Dt)=>(0,je.mergeToken)(Je,{formItemCls:`${Je.componentCls}-item`,rootPrefixCls:Dt});var et=(0,Te.I$)("Form",(Je,Dt)=>{let{rootPrefixCls:Ge}=Dt;const At=be(Je,Ge);return[ct(At),Be(At),Se(At),Oe(At,At.componentCls),Oe(At,At.formItemCls),Re(At),it(At),Qe(At),(0,tt.Z)(At),Ae.kr]},ut,{order:-1e3});const Ne=[];function ue(Je,Dt,Ge){let At=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof Je=="string"?Je:`${Dt}-${At}`,error:Je,errorStatus:Ge}}var Ze=Je=>{let{help:Dt,helpStatus:Ge,errors:At=Ne,warnings:Jt=Ne,className:Rn,fieldId:Zn,onVisibleChanged:pt}=Je;const{prefixCls:Et}=de.useContext(y.Rk),St=`${Et}-item-explain`,It=(0,Me.Z)(Et),[fn,Bn,On]=et(Et,It),Nn=de.useMemo(()=>(0,ve.Z)(Et),[Et]),qn=ge(At),nr=ge(Jt),ir=de.useMemo(()=>Dt!=null?[ue(Dt,"help",Ge)]:[].concat((0,he.Z)(qn.map((ar,fr)=>ue(ar,"error","error",fr))),(0,he.Z)(nr.map((ar,fr)=>ue(ar,"warning","warning",fr)))),[Dt,Ge,qn,nr]),lr=de.useMemo(()=>{const ar={};return ir.forEach(fr=>{let{key:Sr}=fr;ar[Sr]=(ar[Sr]||0)+1}),ir.map((fr,Sr)=>Object.assign(Object.assign({},fr),{key:ar[fr.key]>1?`${fr.key}-fallback-${Sr}`:fr.key}))},[ir]),Qn={};return Zn&&(Qn.id=`${Zn}_help`),fn(de.createElement(me.default,{motionDeadline:Nn.motionDeadline,motionName:`${Et}-show-help`,visible:!!lr.length,onVisibleChanged:pt},ar=>{const{className:fr,style:Sr}=ar;return de.createElement("div",Object.assign({},Qn,{className:pe()(St,fr,On,It,Rn,Bn),style:Sr}),de.createElement(me.CSSMotionList,Object.assign({keys:lr},(0,ve.Z)(Et),{motionName:`${Et}-show-help-item`,component:!1}),br=>{const{key:Zr,error:jr,errorStatus:hr,className:Mr,style:eo}=br;return de.createElement("div",{key:Zr,className:pe()(Mr,{[`${St}-${hr}`]:hr}),style:eo},jr)}))}))},nt=z(22001),Mt=z(48755),Fe=z(2171),ye=z(31756),Bt=z(23069),jt=z(76846),Lt=z(16722);const Ee=["parentNode"],ot="form_item";function qe(Je){return Je===void 0||Je===!1?[]:Array.isArray(Je)?Je:[Je]}function zt(Je,Dt){if(!Je.length)return;const Ge=Je.join("_");return Dt?`${Dt}_${Ge}`:Ee.includes(Ge)?`${ot}_${Ge}`:Ge}function ht(Je,Dt,Ge,At,Jt,Rn){let Zn=At;return Rn!==void 0?Zn=Rn:Ge.validating?Zn="validating":Je.length?Zn="error":Dt.length?Zn="warning":(Ge.touched||Jt&&Ge.validated)&&(Zn="success"),Zn}var lt=function(Je,Dt){var Ge={};for(var At in Je)Object.prototype.hasOwnProperty.call(Je,At)&&Dt.indexOf(At)<0&&(Ge[At]=Je[At]);if(Je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Jt=0,At=Object.getOwnPropertySymbols(Je);Jt<At.length;Jt++)Dt.indexOf(At[Jt])<0&&Object.prototype.propertyIsEnumerable.call(Je,At[Jt])&&(Ge[At[Jt]]=Je[At[Jt]]);return Ge};function rt(Je){return qe(Je).join("_")}function on(Je,Dt){const Ge=Dt.getFieldInstance(Je),At=(0,jt.bn)(Ge);if(At)return At;const Jt=zt(qe(Je),Dt.__INTERNAL__.name);if(Jt)return document.getElementById(Jt)}function kt(Je){const[Dt]=(0,nt.useForm)(),Ge=de.useRef({}),At=de.useMemo(()=>Je!=null?Je:Object.assign(Object.assign({},Dt),{__INTERNAL__:{itemRef:Jt=>Rn=>{const Zn=rt(Jt);Rn?Ge.current[Zn]=Rn:delete Ge.current[Zn]}},scrollToField:function(Jt){let Rn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{focus:Zn}=Rn,pt=lt(Rn,["focus"]),Et=on(Jt,At);Et&&((0,Lt.Z)(Et,Object.assign({scrollMode:"if-needed",block:"nearest"},pt)),Zn&&At.focusField(Jt))},focusField:Jt=>{var Rn,Zn;const pt=At.getFieldInstance(Jt);typeof(pt==null?void 0:pt.focus)=="function"?pt.focus():(Zn=(Rn=on(Jt,At))===null||Rn===void 0?void 0:Rn.focus)===null||Zn===void 0||Zn.call(Rn)},getFieldInstance:Jt=>{const Rn=rt(Jt);return Ge.current[Rn]}}),[Je,Dt]);return[At]}var ae=z(98350),re=function(Je,Dt){var Ge={};for(var At in Je)Object.prototype.hasOwnProperty.call(Je,At)&&Dt.indexOf(At)<0&&(Ge[At]=Je[At]);if(Je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Jt=0,At=Object.getOwnPropertySymbols(Je);Jt<At.length;Jt++)Dt.indexOf(At[Jt])<0&&Object.prototype.propertyIsEnumerable.call(Je,At[Jt])&&(Ge[At[Jt]]=Je[At[Jt]]);return Ge};const te=(Je,Dt)=>{const Ge=de.useContext(Fe.Z),{getPrefixCls:At,direction:Jt,requiredMark:Rn,colon:Zn,scrollToFirstError:pt,className:Et,style:St}=(0,Mt.dj)("form"),{prefixCls:It,className:fn,rootClassName:Bn,size:On,disabled:Nn=Ge,form:qn,colon:nr,labelAlign:ir,labelWrap:lr,labelCol:Qn,wrapperCol:ar,hideRequiredMark:fr,layout:Sr="horizontal",scrollToFirstError:br,requiredMark:Zr,onFinishFailed:jr,name:hr,style:Mr,feedbackIcons:eo,variant:kr}=Je,Fr=re(Je,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),or=(0,ye.Z)(On),Ur=de.useContext(ae.Z),Rr=de.useMemo(()=>Zr!==void 0?Zr:fr?!1:Rn!==void 0?Rn:!0,[fr,Zr,Rn]),Br=nr!=null?nr:Zn,Cr=At("form",It),so=(0,Me.Z)(Cr),[Ho,ti,xo]=et(Cr,so),No=pe()(Cr,`${Cr}-${Sr}`,{[`${Cr}-hide-required-mark`]:Rr===!1,[`${Cr}-rtl`]:Jt==="rtl",[`${Cr}-${or}`]:or},xo,so,ti,Et,fn,Bn),[To]=kt(qn),{__INTERNAL__:Xo}=To;Xo.name=hr;const ko=de.useMemo(()=>({name:hr,labelAlign:ir,labelCol:Qn,labelWrap:lr,wrapperCol:ar,vertical:Sr==="vertical",colon:Br,requiredMark:Rr,itemRef:Xo.itemRef,form:To,feedbackIcons:eo}),[hr,ir,Qn,ar,Sr,Br,Rr,To,eo]),go=de.useRef(null);de.useImperativeHandle(Dt,()=>{var Gn;return Object.assign(Object.assign({},To),{nativeElement:(Gn=go.current)===null||Gn===void 0?void 0:Gn.nativeElement})});const dr=(Gn,Yn)=>{if(Gn){let Ln={block:"nearest"};typeof Gn=="object"&&(Ln=Object.assign(Object.assign({},Ln),Gn)),To.scrollToField(Yn,Ln)}},Tn=Gn=>{if(jr==null||jr(Gn),Gn.errorFields.length){const Yn=Gn.errorFields[0].name;if(br!==void 0){dr(br,Yn);return}pt!==void 0&&dr(pt,Yn)}};return Ho(de.createElement(y.pg.Provider,{value:kr},de.createElement(Fe.n,{disabled:Nn},de.createElement(Bt.Z.Provider,{value:or},de.createElement(y.RV,{validateMessages:Ur},de.createElement(y.q3.Provider,{value:ko},de.createElement(nt.default,Object.assign({id:hr},Fr,{name:hr,onFinishFailed:Tn,form:To,ref:go,style:Object.assign(Object.assign({},St),Mr),className:No}))))))))};var ce=de.forwardRef(te),ne=z(41799),le=z(8654),Ie=z(22703),bt=z(32383),Ue=z(11592);function He(Je){if(typeof Je=="function")return Je;const Dt=(0,Ue.Z)(Je);return Dt.length<=1?Dt[0]:Dt}const at=()=>{const{status:Je,errors:Dt=[],warnings:Ge=[]}=de.useContext(y.aM);return{status:Je,errors:Dt,warnings:Ge}};at.Context=y.aM;var ft=at,Pt=z(16089);function Le(Je){const[Dt,Ge]=de.useState(Je),At=de.useRef(null),Jt=de.useRef([]),Rn=de.useRef(!1);de.useEffect(()=>(Rn.current=!1,()=>{Rn.current=!0,Pt.Z.cancel(At.current),At.current=null}),[]);function Zn(pt){Rn.current||(At.current===null&&(Jt.current=[],At.current=(0,Pt.Z)(()=>{At.current=null,Ge(Et=>{let St=Et;return Jt.current.forEach(It=>{St=It(St)}),St})})),Jt.current.push(pt))}return[Dt,Zn]}function We(){const{itemRef:Je}=de.useContext(y.q3),Dt=de.useRef({});function Ge(At,Jt){const Rn=Jt&&typeof Jt=="object"&&(0,le.C4)(Jt),Zn=At.join("_");return(Dt.current.name!==Zn||Dt.current.originRef!==Rn)&&(Dt.current.name=Zn,Dt.current.originRef=Rn,Dt.current.ref=(0,le.sQ)(Je(At),Rn)),Dt.current.ref}return Ge}var Nt=z(29194),Qt=z(34280),un=z(2738),rn=z(65970),Rt=z(70425),ln=z(5472);const Ht=Je=>{const{formItemCls:Dt}=Je;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${Dt}-control`]:{display:"flex"}}}};var ze=(0,Te.bk)(["Form","item-item"],(Je,Dt)=>{let{rootPrefixCls:Ge}=Dt;const At=be(Je,Ge);return[Ht(At)]}),yt=function(Je,Dt){var Ge={};for(var At in Je)Object.prototype.hasOwnProperty.call(Je,At)&&Dt.indexOf(At)<0&&(Ge[At]=Je[At]);if(Je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Jt=0,At=Object.getOwnPropertySymbols(Je);Jt<At.length;Jt++)Dt.indexOf(At[Jt])<0&&Object.prototype.propertyIsEnumerable.call(Je,At[Jt])&&(Ge[At[Jt]]=Je[At[Jt]]);return Ge};const Kt=24;var Ve=Je=>{const{prefixCls:Dt,status:Ge,labelCol:At,wrapperCol:Jt,children:Rn,errors:Zn,warnings:pt,_internalItemRender:Et,extra:St,help:It,fieldId:fn,marginBottom:Bn,onErrorVisibleChanged:On,label:Nn}=Je,qn=`${Dt}-item`,nr=de.useContext(y.q3),ir=de.useMemo(()=>{let Fr=Object.assign({},Jt||nr.wrapperCol||{});return Nn===null&&!At&&!Jt&&nr.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(Ur=>{const Rr=Ur?[Ur]:[],Br=(0,Rt.U2)(nr.labelCol,Rr),Cr=typeof Br=="object"?Br:{},so=(0,Rt.U2)(Fr,Rr),Ho=typeof so=="object"?so:{};"span"in Cr&&!("offset"in Ho)&&Cr.span<Kt&&(Fr=(0,Rt.t8)(Fr,[].concat(Rr,["offset"]),Cr.span))}),Fr},[Jt,nr]),lr=pe()(`${qn}-control`,ir.className),Qn=de.useMemo(()=>{const{labelCol:Fr,wrapperCol:or}=nr;return yt(nr,["labelCol","wrapperCol"])},[nr]),ar=de.useRef(null),[fr,Sr]=de.useState(0);(0,Qt.Z)(()=>{St&&ar.current?Sr(ar.current.clientHeight):Sr(0)},[St]);const br=de.createElement("div",{className:`${qn}-control-input`},de.createElement("div",{className:`${qn}-control-input-content`},Rn)),Zr=de.useMemo(()=>({prefixCls:Dt,status:Ge}),[Dt,Ge]),jr=Bn!==null||Zn.length||pt.length?de.createElement(y.Rk.Provider,{value:Zr},de.createElement(Ze,{fieldId:fn,errors:Zn,warnings:pt,help:It,helpStatus:Ge,className:`${qn}-explain-connected`,onVisibleChanged:On})):null,hr={};fn&&(hr.id=`${fn}_extra`);const Mr=St?de.createElement("div",Object.assign({},hr,{className:`${qn}-extra`,ref:ar}),St):null,eo=jr||Mr?de.createElement("div",{className:`${qn}-additional`,style:Bn?{minHeight:Bn+fr}:{}},jr,Mr):null,kr=Et&&Et.mark==="pro_table_render"&&Et.render?Et.render(Je,{input:br,errorList:jr,extra:Mr}):de.createElement(de.Fragment,null,br,eo);return de.createElement(y.q3.Provider,{value:Qn},de.createElement(ln.Z,Object.assign({},ir,{className:lr}),kr),de.createElement(ze,{prefixCls:Dt}))},Ct=z(61485),$t=z(9017),dt=z(85981),Ot=z(25399),Gt=function(Je,Dt){var Ge={};for(var At in Je)Object.prototype.hasOwnProperty.call(Je,At)&&Dt.indexOf(At)<0&&(Ge[At]=Je[At]);if(Je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Jt=0,At=Object.getOwnPropertySymbols(Je);Jt<At.length;Jt++)Dt.indexOf(At[Jt])<0&&Object.prototype.propertyIsEnumerable.call(Je,At[Jt])&&(Ge[At[Jt]]=Je[At[Jt]]);return Ge};function mn(Je){return Je?typeof Je=="object"&&!de.isValidElement(Je)?Je:{title:Je}:null}var hn=Je=>{let{prefixCls:Dt,label:Ge,htmlFor:At,labelCol:Jt,labelAlign:Rn,colon:Zn,required:pt,requiredMark:Et,tooltip:St,vertical:It}=Je;var fn;const[Bn]=(0,$t.Z)("Form"),{labelAlign:On,labelCol:Nn,labelWrap:qn,colon:nr}=de.useContext(y.q3);if(!Ge)return null;const ir=Jt||Nn||{},lr=Rn||On,Qn=`${Dt}-item-label`,ar=pe()(Qn,lr==="left"&&`${Qn}-left`,ir.className,{[`${Qn}-wrap`]:!!qn});let fr=Ge;const Sr=Zn===!0||nr!==!1&&Zn!==!1;Sr&&!It&&typeof Ge=="string"&&Ge.trim()&&(fr=Ge.replace(/[:|]\s*$/,""));const Zr=mn(St);if(Zr){const{icon:Fr=de.createElement(Ct.Z,null)}=Zr,or=Gt(Zr,["icon"]),Ur=de.createElement(Ot.Z,Object.assign({},or),de.cloneElement(Fr,{className:`${Dt}-item-tooltip`,title:"",onClick:Rr=>{Rr.preventDefault()},tabIndex:null}));fr=de.createElement(de.Fragment,null,fr,Ur)}const jr=Et==="optional",hr=typeof Et=="function",Mr=Et===!1;hr?fr=Et(fr,{required:!!pt}):jr&&!pt&&(fr=de.createElement(de.Fragment,null,fr,de.createElement("span",{className:`${Dt}-item-optional`,title:""},(Bn==null?void 0:Bn.optional)||((fn=dt.Z.Form)===null||fn===void 0?void 0:fn.optional))));let eo;Mr?eo="hidden":(jr||hr)&&(eo="optional");const kr=pe()({[`${Dt}-item-required`]:pt,[`${Dt}-item-required-mark-${eo}`]:eo,[`${Dt}-item-no-colon`]:!Sr});return de.createElement(ln.Z,Object.assign({},ir,{className:ar}),de.createElement("label",{htmlFor:At,className:kr,title:typeof Ge=="string"?Ge:""},fr))},Fn=z(29679),Ft=z(19248),Tt=z(96512),Ut=z(58617);const an={success:Fn.Z,warning:Tt.Z,error:Ft.Z,validating:Ut.Z};function Xt(Je){let{children:Dt,errors:Ge,warnings:At,hasFeedback:Jt,validateStatus:Rn,prefixCls:Zn,meta:pt,noStyle:Et}=Je;const St=`${Zn}-item`,{feedbackIcons:It}=de.useContext(y.q3),fn=ht(Ge,At,pt,null,!!Jt,Rn),{isFormItemInput:Bn,status:On,hasFeedback:Nn,feedbackIcon:qn}=de.useContext(y.aM),nr=de.useMemo(()=>{var ir;let lr;if(Jt){const ar=Jt!==!0&&Jt.icons||It,fr=fn&&((ir=ar==null?void 0:ar({status:fn,errors:Ge,warnings:At}))===null||ir===void 0?void 0:ir[fn]),Sr=fn&&an[fn];lr=fr!==!1&&Sr?de.createElement("span",{className:pe()(`${St}-feedback-icon`,`${St}-feedback-icon-${fn}`)},fr||de.createElement(Sr,null)):null}const Qn={status:fn||"",errors:Ge,warnings:At,hasFeedback:!!Jt,feedbackIcon:lr,isFormItemInput:!0};return Et&&(Qn.status=(fn!=null?fn:On)||"",Qn.isFormItemInput=Bn,Qn.hasFeedback=!!(Jt!=null?Jt:Nn),Qn.feedbackIcon=Jt!==void 0?Qn.feedbackIcon:qn),Qn},[fn,Jt,Et,Bn,On]);return de.createElement(y.aM.Provider,{value:nr},Dt)}var yn=function(Je,Dt){var Ge={};for(var At in Je)Object.prototype.hasOwnProperty.call(Je,At)&&Dt.indexOf(At)<0&&(Ge[At]=Je[At]);if(Je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Jt=0,At=Object.getOwnPropertySymbols(Je);Jt<At.length;Jt++)Dt.indexOf(At[Jt])<0&&Object.prototype.propertyIsEnumerable.call(Je,At[Jt])&&(Ge[At[Jt]]=Je[At[Jt]]);return Ge};function sn(Je){const{prefixCls:Dt,className:Ge,rootClassName:At,style:Jt,help:Rn,errors:Zn,warnings:pt,validateStatus:Et,meta:St,hasFeedback:It,hidden:fn,children:Bn,fieldId:On,required:Nn,isRequired:qn,onSubItemMetaChange:nr,layout:ir}=Je,lr=yn(Je,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout"]),Qn=`${Dt}-item`,{requiredMark:ar,vertical:fr}=de.useContext(y.q3),Sr=fr||ir==="vertical",br=de.useRef(null),Zr=ge(Zn),jr=ge(pt),hr=Rn!=null,Mr=!!(hr||Zn.length||pt.length),eo=!!br.current&&(0,Nt.Z)(br.current),[kr,Fr]=de.useState(null);(0,Qt.Z)(()=>{if(Mr&&br.current){const Cr=getComputedStyle(br.current);Fr(parseInt(Cr.marginBottom,10))}},[Mr,eo]);const or=Cr=>{Cr||Fr(null)},Rr=function(){let Cr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const so=Cr?Zr:St.errors,Ho=Cr?jr:St.warnings;return ht(so,Ho,St,"",!!It,Et)}(),Br=pe()(Qn,Ge,At,{[`${Qn}-with-help`]:hr||Zr.length||jr.length,[`${Qn}-has-feedback`]:Rr&&It,[`${Qn}-has-success`]:Rr==="success",[`${Qn}-has-warning`]:Rr==="warning",[`${Qn}-has-error`]:Rr==="error",[`${Qn}-is-validating`]:Rr==="validating",[`${Qn}-hidden`]:fn,[`${Qn}-${ir}`]:ir});return de.createElement("div",{className:Br,style:Jt,ref:br},de.createElement(rn.Z,Object.assign({className:`${Qn}-row`},(0,un.Z)(lr,["_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"])),de.createElement(hn,Object.assign({htmlFor:On},Je,{requiredMark:ar,required:Nn!=null?Nn:qn,prefixCls:Dt,vertical:Sr})),de.createElement(Ve,Object.assign({},Je,St,{errors:Zr,warnings:jr,prefixCls:Dt,status:Rr,help:Rn,marginBottom:kr,onErrorVisibleChanged:or}),de.createElement(y.qI.Provider,{value:nr},de.createElement(Xt,{prefixCls:Dt,meta:St,errors:St.errors,warnings:St.warnings,hasFeedback:It,validateStatus:Rr},Bn)))),!!kr&&de.createElement("div",{className:`${Qn}-margin-offset`,style:{marginBottom:-kr}}))}const wn="__SPLIT__",Vn=null;function Mn(Je,Dt){const Ge=Object.keys(Je),At=Object.keys(Dt);return Ge.length===At.length&&Ge.every(Jt=>{const Rn=Je[Jt],Zn=Dt[Jt];return Rn===Zn||typeof Rn=="function"||typeof Zn=="function"})}const $n=de.memo(Je=>{let{children:Dt}=Je;return Dt},(Je,Dt)=>Mn(Je.control,Dt.control)&&Je.update===Dt.update&&Je.childProps.length===Dt.childProps.length&&Je.childProps.every((Ge,At)=>Ge===Dt.childProps[At]));function Wn(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Hn(Je){const{name:Dt,noStyle:Ge,className:At,dependencies:Jt,prefixCls:Rn,shouldUpdate:Zn,rules:pt,children:Et,required:St,label:It,messageVariables:fn,trigger:Bn="onChange",validateTrigger:On,hidden:Nn,help:qn,layout:nr}=Je,{getPrefixCls:ir}=de.useContext(Mt.E_),{name:lr}=de.useContext(y.q3),Qn=He(Et),ar=typeof Qn=="function",fr=de.useContext(y.qI),{validateTrigger:Sr}=de.useContext(nt.FieldContext),br=On!==void 0?On:Sr,Zr=Dt!=null,jr=ir("form",Rn),hr=(0,Me.Z)(jr),[Mr,eo,kr]=et(jr,hr),Fr=(0,bt.ln)("Form.Item"),or=de.useContext(nt.ListContext),Ur=de.useRef(null),[Rr,Br]=Le({}),[Cr,so]=(0,ne.Z)(()=>Wn()),Ho=go=>{const dr=or==null?void 0:or.getKey(go.name);if(so(go.destroy?Wn():go,!0),Ge&&qn!==!1&&fr){let Tn=go.name;if(go.destroy)Tn=Ur.current||Tn;else if(dr!==void 0){const[Gn,Yn]=dr;Tn=[Gn].concat((0,he.Z)(Yn)),Ur.current=Tn}fr(go,Tn)}},ti=(go,dr)=>{Br(Tn=>{const Gn=Object.assign({},Tn),Ln=[].concat((0,he.Z)(go.name.slice(0,-1)),(0,he.Z)(dr)).join(wn);return go.destroy?delete Gn[Ln]:Gn[Ln]=go,Gn})},[xo,No]=de.useMemo(()=>{const go=(0,he.Z)(Cr.errors),dr=(0,he.Z)(Cr.warnings);return Object.values(Rr).forEach(Tn=>{go.push.apply(go,(0,he.Z)(Tn.errors||[])),dr.push.apply(dr,(0,he.Z)(Tn.warnings||[]))}),[go,dr]},[Rr,Cr.errors,Cr.warnings]),To=We();function Xo(go,dr,Tn){return Ge&&!Nn?de.createElement(Xt,{prefixCls:jr,hasFeedback:Je.hasFeedback,validateStatus:Je.validateStatus,meta:Cr,errors:xo,warnings:No,noStyle:!0},go):de.createElement(sn,Object.assign({key:"row"},Je,{className:pe()(At,kr,hr,eo),prefixCls:jr,fieldId:dr,isRequired:Tn,errors:xo,warnings:No,meta:Cr,onSubItemMetaChange:ti,layout:nr}),go)}if(!Zr&&!ar&&!Jt)return Mr(Xo(Qn));let ko={};return typeof It=="string"?ko.label=It:Dt&&(ko.label=String(Dt)),fn&&(ko=Object.assign(Object.assign({},ko),fn)),Mr(de.createElement(nt.Field,Object.assign({},Je,{messageVariables:ko,trigger:Bn,validateTrigger:br,onMetaChange:Ho}),(go,dr,Tn)=>{const Gn=qe(Dt).length&&dr?dr.name:[],Yn=zt(Gn,lr),Ln=St!==void 0?St:!!(pt!=null&&pt.some(Un=>{if(Un&&typeof Un=="object"&&Un.required&&!Un.warningOnly)return!0;if(typeof Un=="function"){const Jn=Un(Tn);return(Jn==null?void 0:Jn.required)&&!(Jn!=null&&Jn.warningOnly)}return!1})),mr=Object.assign({},go);let wr=null;if(Array.isArray(Qn)&&Zr)wr=Qn;else if(!(ar&&(!(Zn||Jt)||Zr))){if(!(Jt&&!ar&&!Zr))if(de.isValidElement(Qn)){const Un=Object.assign(Object.assign({},Qn.props),mr);if(Un.id||(Un.id=Yn),qn||xo.length>0||No.length>0||Je.extra){const pr=[];(qn||xo.length>0)&&pr.push(`${Yn}_help`),Je.extra&&pr.push(`${Yn}_extra`),Un["aria-describedby"]=pr.join(" ")}xo.length>0&&(Un["aria-invalid"]="true"),Ln&&(Un["aria-required"]="true"),(0,le.Yr)(Qn)&&(Un.ref=To(Gn,Qn)),new Set([].concat((0,he.Z)(qe(Bn)),(0,he.Z)(qe(br)))).forEach(pr=>{Un[pr]=function(){for(var _r,Yr,to,Fo,Mo,Yo=arguments.length,Jo=new Array(Yo),ni=0;ni<Yo;ni++)Jo[ni]=arguments[ni];(to=mr[pr])===null||to===void 0||(_r=to).call.apply(_r,[mr].concat(Jo)),(Mo=(Fo=Qn.props)[pr])===null||Mo===void 0||(Yr=Mo).call.apply(Yr,[Fo].concat(Jo))}});const sr=[Un["aria-required"],Un["aria-invalid"],Un["aria-describedby"]];wr=de.createElement($n,{control:mr,update:Qn,childProps:sr},(0,Ie.Tm)(Qn,Un))}else ar&&(Zn||Jt)&&!Zr?wr=Qn(Tn):wr=Qn}return Xo(wr,Yn,Ln)}))}const ur=Hn;ur.useStatus=ft;var rr=ur,dn=function(Je,Dt){var Ge={};for(var At in Je)Object.prototype.hasOwnProperty.call(Je,At)&&Dt.indexOf(At)<0&&(Ge[At]=Je[At]);if(Je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Jt=0,At=Object.getOwnPropertySymbols(Je);Jt<At.length;Jt++)Dt.indexOf(At[Jt])<0&&Object.prototype.propertyIsEnumerable.call(Je,At[Jt])&&(Ge[At[Jt]]=Je[At[Jt]]);return Ge},jn=Je=>{var{prefixCls:Dt,children:Ge}=Je,At=dn(Je,["prefixCls","children"]);const{getPrefixCls:Jt}=de.useContext(Mt.E_),Rn=Jt("form",Dt),Zn=de.useMemo(()=>({prefixCls:Rn,status:"error"}),[Rn]);return de.createElement(nt.List,Object.assign({},At),(pt,Et,St)=>de.createElement(y.Rk.Provider,{value:Zn},Ge(pt.map(It=>Object.assign(Object.assign({},It),{fieldKey:It.key})),Et,{errors:St.errors,warnings:St.warnings})))};function zn(){const{form:Je}=de.useContext(y.q3);return Je}const xt=ce;xt.Item=rr,xt.List=jn,xt.ErrorList=Ze,xt.useForm=kt,xt.useFormInstance=zn,xt.useWatch=nt.useWatch,xt.Provider=y.RV,xt.create=()=>{};var _t=xt},4875:function(bn,Wt,z){"use strict";z.d(Wt,{Z:function(){return tn}});var y=z(59301),he=z(84105),de=z(87395),$e=z(92310),pe=z.n($e),me=z(54476),ve=z(20068),Me=z(76190),ge=z(42978),se=z(75931),_e=z(67732),Ae=z(83652);function tt(){return typeof BigInt=="function"}function je(Ve){return!Ve&&Ve!==0&&!Number.isNaN(Ve)||!String(Ve).trim()}function Te(Ve){var Ct=Ve.trim(),$t=Ct.startsWith("-");$t&&(Ct=Ct.slice(1)),Ct=Ct.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),Ct.startsWith(".")&&(Ct="0".concat(Ct));var dt=Ct||"0",Ot=dt.split("."),Gt=Ot[0]||"0",mn=Ot[1]||"0";Gt==="0"&&mn==="0"&&($t=!1);var An=$t?"-":"";return{negative:$t,negativeStr:An,trimStr:dt,integerStr:Gt,decimalStr:mn,fullStr:"".concat(An).concat(dt)}}function Ce(Ve){var Ct=String(Ve);return!Number.isNaN(Number(Ct))&&Ct.includes("e")}function Se(Ve){var Ct=String(Ve);if(Ce(Ve)){var $t=Number(Ct.slice(Ct.indexOf("e-")+2)),dt=Ct.match(/\.(\d+)/);return dt!=null&&dt[1]&&($t+=dt[1].length),$t}return Ct.includes(".")&&Ye(Ct)?Ct.length-Ct.indexOf(".")-1:0}function Pe(Ve){var Ct=String(Ve);if(Ce(Ve)){if(Ve>Number.MAX_SAFE_INTEGER)return String(tt()?BigInt(Ve).toString():Number.MAX_SAFE_INTEGER);if(Ve<Number.MIN_SAFE_INTEGER)return String(tt()?BigInt(Ve).toString():Number.MIN_SAFE_INTEGER);Ct=Ve.toFixed(Se(Ct))}return Te(Ct).fullStr}function Ye(Ve){return typeof Ve=="number"?!Number.isNaN(Ve):Ve?/^\s*-?\d+(\.\d+)?\s*$/.test(Ve)||/^\s*-?\d+\.\s*$/.test(Ve)||/^\s*-?\.\d+\s*$/.test(Ve):!1}var ct=function(){function Ve(Ct){if((0,_e.Z)(this,Ve),(0,ve.Z)(this,"origin",""),(0,ve.Z)(this,"negative",void 0),(0,ve.Z)(this,"integer",void 0),(0,ve.Z)(this,"decimal",void 0),(0,ve.Z)(this,"decimalLen",void 0),(0,ve.Z)(this,"empty",void 0),(0,ve.Z)(this,"nan",void 0),je(Ct)){this.empty=!0;return}if(this.origin=String(Ct),Ct==="-"||Number.isNaN(Ct)){this.nan=!0;return}var $t=Ct;if(Ce($t)&&($t=Number($t)),$t=typeof $t=="string"?$t:Pe($t),Ye($t)){var dt=Te($t);this.negative=dt.negative;var Ot=dt.trimStr.split(".");this.integer=BigInt(Ot[0]);var Gt=Ot[1]||"0";this.decimal=BigInt(Gt),this.decimalLen=Gt.length}else this.nan=!0}return(0,Ae.Z)(Ve,[{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($t){var dt="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd($t,"0"));return BigInt(dt)}},{key:"negate",value:function(){var $t=new Ve(this.toString());return $t.negative=!$t.negative,$t}},{key:"cal",value:function($t,dt,Ot){var Gt=Math.max(this.getDecimalStr().length,$t.getDecimalStr().length),mn=this.alignDecimal(Gt),An=$t.alignDecimal(Gt),hn=dt(mn,An).toString(),Fn=Ot(Gt),Ft=Te(hn),Tt=Ft.negativeStr,Ut=Ft.trimStr,an="".concat(Tt).concat(Ut.padStart(Fn+1,"0"));return new Ve("".concat(an.slice(0,-Fn),".").concat(an.slice(-Fn)))}},{key:"add",value:function($t){if(this.isInvalidate())return new Ve($t);var dt=new Ve($t);return dt.isInvalidate()?this:this.cal(dt,function(Ot,Gt){return Ot+Gt},function(Ot){return Ot})}},{key:"multi",value:function($t){var dt=new Ve($t);return this.isInvalidate()||dt.isInvalidate()?new Ve(NaN):this.cal(dt,function(Ot,Gt){return Ot*Gt},function(Ot){return Ot*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($t){return this.toString()===($t==null?void 0:$t.toString())}},{key:"lessEquals",value:function($t){return this.add($t.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var $t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return $t?this.isInvalidate()?"":Te("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),Ve}(),Be=function(){function Ve(Ct){if((0,_e.Z)(this,Ve),(0,ve.Z)(this,"origin",""),(0,ve.Z)(this,"number",void 0),(0,ve.Z)(this,"empty",void 0),je(Ct)){this.empty=!0;return}this.origin=String(Ct),this.number=Number(Ct)}return(0,Ae.Z)(Ve,[{key:"negate",value:function(){return new Ve(-this.toNumber())}},{key:"add",value:function($t){if(this.isInvalidate())return new Ve($t);var dt=Number($t);if(Number.isNaN(dt))return this;var Ot=this.number+dt;if(Ot>Number.MAX_SAFE_INTEGER)return new Ve(Number.MAX_SAFE_INTEGER);if(Ot<Number.MIN_SAFE_INTEGER)return new Ve(Number.MIN_SAFE_INTEGER);var Gt=Math.max(Se(this.number),Se(dt));return new Ve(Ot.toFixed(Gt))}},{key:"multi",value:function($t){var dt=Number($t);if(this.isInvalidate()||Number.isNaN(dt))return new Ve(NaN);var Ot=this.number*dt;if(Ot>Number.MAX_SAFE_INTEGER)return new Ve(Number.MAX_SAFE_INTEGER);if(Ot<Number.MIN_SAFE_INTEGER)return new Ve(Number.MIN_SAFE_INTEGER);var Gt=Math.max(Se(this.number),Se(dt));return new Ve(Ot.toFixed(Gt))}},{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($t){return this.toNumber()===($t==null?void 0:$t.toNumber())}},{key:"lessEquals",value:function($t){return this.add($t.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var $t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return $t?this.isInvalidate()?"":Pe(this.number):this.origin}}]),Ve}();function Oe(Ve){return tt()?new ct(Ve):new Be(Ve)}function Re(Ve,Ct,$t){var dt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(Ve==="")return"";var Ot=Te(Ve),Gt=Ot.negativeStr,mn=Ot.integerStr,An=Ot.decimalStr,hn="".concat(Ct).concat(An),Fn="".concat(Gt).concat(mn);if($t>=0){var Ft=Number(An[$t]);if(Ft>=5&&!dt){var Tt=Oe(Ve).add("".concat(Gt,"0.").concat("0".repeat($t)).concat(10-Ft));return Re(Tt.toString(),Ct,$t,dt)}return $t===0?Fn:"".concat(Fn).concat(Ct).concat(An.padEnd($t,"0").slice(0,$t))}return hn===".0"?Fn:"".concat(Fn).concat(hn)}var Ke=Oe,vt=z(36901),it=z(34280);function Qe(Ve,Ct){return typeof Proxy!="undefined"&&Ve?new Proxy(Ve,{get:function(dt,Ot){if(Ct[Ot])return Ct[Ot];var Gt=dt[Ot];return typeof Gt=="function"?Gt.bind(dt):Gt}}):Ve}var ut=z(8654),be=z(48736);function et(Ve,Ct){var $t=(0,y.useRef)(null);function dt(){try{var Gt=Ve.selectionStart,mn=Ve.selectionEnd,An=Ve.value,hn=An.substring(0,Gt),Fn=An.substring(mn);$t.current={start:Gt,end:mn,value:An,beforeTxt:hn,afterTxt:Fn}}catch(Ft){}}function Ot(){if(Ve&&$t.current&&Ct)try{var Gt=Ve.value,mn=$t.current,An=mn.beforeTxt,hn=mn.afterTxt,Fn=mn.start,Ft=Gt.length;if(Gt.startsWith(An))Ft=An.length;else if(Gt.endsWith(hn))Ft=Gt.length-$t.current.afterTxt.length;else{var Tt=An[Fn-1],Ut=Gt.indexOf(Tt,Fn-1);Ut!==-1&&(Ft=Ut+1)}Ve.setSelectionRange(Ft,Ft)}catch(an){(0,be.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(an.message))}}return[dt,Ot]}var Ne=z(49658),ue=function(){var Ct=(0,y.useState)(!1),$t=(0,ge.Z)(Ct,2),dt=$t[0],Ot=$t[1];return(0,it.Z)(function(){Ot((0,Ne.Z)())},[]),dt},mt=ue,Ze=z(16089),nt=200,Mt=600;function Fe(Ve){var Ct=Ve.prefixCls,$t=Ve.upNode,dt=Ve.downNode,Ot=Ve.upDisabled,Gt=Ve.downDisabled,mn=Ve.onStep,An=y.useRef(),hn=y.useRef([]),Fn=y.useRef();Fn.current=mn;var Ft=function(){clearTimeout(An.current)},Tt=function(Mn,$n){Mn.preventDefault(),Ft(),Fn.current($n);function Wn(){Fn.current($n),An.current=setTimeout(Wn,nt)}An.current=setTimeout(Wn,Mt)};y.useEffect(function(){return function(){Ft(),hn.current.forEach(function(Vn){return Ze.Z.cancel(Vn)})}},[]);var Ut=mt();if(Ut)return null;var an="".concat(Ct,"-handler"),Xt=pe()(an,"".concat(an,"-up"),(0,ve.Z)({},"".concat(an,"-up-disabled"),Ot)),yn=pe()(an,"".concat(an,"-down"),(0,ve.Z)({},"".concat(an,"-down-disabled"),Gt)),sn=function(){return hn.current.push((0,Ze.Z)(Ft))},wn={unselectable:"on",role:"button",onMouseUp:sn,onMouseLeave:sn};return y.createElement("div",{className:"".concat(an,"-wrap")},y.createElement("span",(0,me.Z)({},wn,{onMouseDown:function(Mn){Tt(Mn,!0)},"aria-label":"Increase Value","aria-disabled":Ot,className:Xt}),$t||y.createElement("span",{unselectable:"on",className:"".concat(Ct,"-handler-up-inner")})),y.createElement("span",(0,me.Z)({},wn,{onMouseDown:function(Mn){Tt(Mn,!1)},"aria-label":"Decrease Value","aria-disabled":Gt,className:yn}),dt||y.createElement("span",{unselectable:"on",className:"".concat(Ct,"-handler-down-inner")})))}function ye(Ve){var Ct=typeof Ve=="number"?Pe(Ve):Te(Ve).fullStr,$t=Ct.includes(".");return $t?Te(Ct.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:Ve+"0"}var Bt=z(30292),jt=function(){var Ve=(0,y.useRef)(0),Ct=function(){Ze.Z.cancel(Ve.current)};return(0,y.useEffect)(function(){return Ct},[]),function($t){Ct(),Ve.current=(0,Ze.Z)(function(){$t()})}},Lt=["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"],Ee=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],ot=function(Ct,$t){return Ct||$t.isEmpty()?$t.toString():$t.toNumber()},qe=function(Ct){var $t=Ke(Ct);return $t.isInvalidate()?null:$t},zt=y.forwardRef(function(Ve,Ct){var $t=Ve.prefixCls,dt=Ve.className,Ot=Ve.style,Gt=Ve.min,mn=Ve.max,An=Ve.step,hn=An===void 0?1:An,Fn=Ve.defaultValue,Ft=Ve.value,Tt=Ve.disabled,Ut=Ve.readOnly,an=Ve.upHandler,Xt=Ve.downHandler,yn=Ve.keyboard,sn=Ve.changeOnWheel,wn=sn===void 0?!1:sn,Vn=Ve.controls,Mn=Vn===void 0?!0:Vn,$n=Ve.classNames,Wn=Ve.stringMode,Hn=Ve.parser,ur=Ve.formatter,rr=Ve.precision,dn=Ve.decimalSeparator,xn=Ve.onChange,jn=Ve.onInput,zn=Ve.onPressEnter,xt=Ve.onStep,_t=Ve.changeOnBlur,Je=_t===void 0?!0:_t,Dt=Ve.domRef,Ge=(0,se.Z)(Ve,Lt),At="".concat($t,"-input"),Jt=y.useRef(null),Rn=y.useState(!1),Zn=(0,ge.Z)(Rn,2),pt=Zn[0],Et=Zn[1],St=y.useRef(!1),It=y.useRef(!1),fn=y.useRef(!1),Bn=y.useState(function(){return Ke(Ft!=null?Ft:Fn)}),On=(0,ge.Z)(Bn,2),Nn=On[0],qn=On[1];function nr(Yn){Ft===void 0&&qn(Yn)}var ir=y.useCallback(function(Yn,Ln){if(!Ln)return rr>=0?rr:Math.max(Se(Yn),Se(hn))},[rr,hn]),lr=y.useCallback(function(Yn){var Ln=String(Yn);if(Hn)return Hn(Ln);var mr=Ln;return dn&&(mr=mr.replace(dn,".")),mr.replace(/[^\w.-]+/g,"")},[Hn,dn]),Qn=y.useRef(""),ar=y.useCallback(function(Yn,Ln){if(ur)return ur(Yn,{userTyping:Ln,input:String(Qn.current)});var mr=typeof Yn=="number"?Pe(Yn):Yn;if(!Ln){var wr=ir(mr,Ln);if(Ye(mr)&&(dn||wr>=0)){var Un=dn||".";mr=Re(mr,Un,wr)}}return mr},[ur,ir,dn]),fr=y.useState(function(){var Yn=Fn!=null?Fn:Ft;return Nn.isInvalidate()&&["string","number"].includes((0,Me.Z)(Yn))?Number.isNaN(Yn)?"":Yn:ar(Nn.toString(),!1)}),Sr=(0,ge.Z)(fr,2),br=Sr[0],Zr=Sr[1];Qn.current=br;function jr(Yn,Ln){Zr(ar(Yn.isInvalidate()?Yn.toString(!1):Yn.toString(!Ln),Ln))}var hr=y.useMemo(function(){return qe(mn)},[mn,rr]),Mr=y.useMemo(function(){return qe(Gt)},[Gt,rr]),eo=y.useMemo(function(){return!hr||!Nn||Nn.isInvalidate()?!1:hr.lessEquals(Nn)},[hr,Nn]),kr=y.useMemo(function(){return!Mr||!Nn||Nn.isInvalidate()?!1:Nn.lessEquals(Mr)},[Mr,Nn]),Fr=et(Jt.current,pt),or=(0,ge.Z)(Fr,2),Ur=or[0],Rr=or[1],Br=function(Ln){return hr&&!Ln.lessEquals(hr)?hr:Mr&&!Mr.lessEquals(Ln)?Mr:null},Cr=function(Ln){return!Br(Ln)},so=function(Ln,mr){var wr=Ln,Un=Cr(wr)||wr.isEmpty();if(!wr.isEmpty()&&!mr&&(wr=Br(wr)||wr,Un=!0),!Ut&&!Tt&&Un){var Jn=wr.toString(),sr=ir(Jn,mr);return sr>=0&&(wr=Ke(Re(Jn,".",sr)),Cr(wr)||(wr=Ke(Re(Jn,".",sr,!0)))),wr.equals(Nn)||(nr(wr),xn==null||xn(wr.isEmpty()?null:ot(Wn,wr)),Ft===void 0&&jr(wr,mr)),wr}return Nn},Ho=jt(),ti=function Yn(Ln){if(Ur(),Qn.current=Ln,Zr(Ln),!It.current){var mr=lr(Ln),wr=Ke(mr);wr.isNaN()||so(wr,!0)}jn==null||jn(Ln),Ho(function(){var Un=Ln;Hn||(Un=Ln.replace(/。/g,".")),Un!==Ln&&Yn(Un)})},xo=function(){It.current=!0},No=function(){It.current=!1,ti(Jt.current.value)},To=function(Ln){ti(Ln.target.value)},Xo=function(Ln){var mr;if(!(Ln&&eo||!Ln&&kr)){St.current=!1;var wr=Ke(fn.current?ye(hn):hn);Ln||(wr=wr.negate());var Un=(Nn||Ke(0)).add(wr.toString()),Jn=so(Un,!1);xt==null||xt(ot(Wn,Jn),{offset:fn.current?ye(hn):hn,type:Ln?"up":"down"}),(mr=Jt.current)===null||mr===void 0||mr.focus()}},ko=function(Ln){var mr=Ke(lr(br)),wr;mr.isNaN()?wr=so(Nn,Ln):wr=so(mr,Ln),Ft!==void 0?jr(Nn,!1):wr.isNaN()||jr(wr,!1)},go=function(){St.current=!0},dr=function(Ln){var mr=Ln.key,wr=Ln.shiftKey;St.current=!0,fn.current=wr,mr==="Enter"&&(It.current||(St.current=!1),ko(!1),zn==null||zn(Ln)),yn!==!1&&!It.current&&["Up","ArrowUp","Down","ArrowDown"].includes(mr)&&(Xo(mr==="Up"||mr==="ArrowUp"),Ln.preventDefault())},Tn=function(){St.current=!1,fn.current=!1};y.useEffect(function(){if(wn&&pt){var Yn=function(wr){Xo(wr.deltaY<0),wr.preventDefault()},Ln=Jt.current;if(Ln)return Ln.addEventListener("wheel",Yn,{passive:!1}),function(){return Ln.removeEventListener("wheel",Yn)}}});var Gn=function(){Je&&ko(!1),Et(!1),St.current=!1};return(0,it.o)(function(){Nn.isInvalidate()||jr(Nn,!1)},[rr,ur]),(0,it.o)(function(){var Yn=Ke(Ft);qn(Yn);var Ln=Ke(lr(br));(!Yn.equals(Ln)||!St.current||ur)&&jr(Yn,St.current)},[Ft]),(0,it.o)(function(){ur&&Rr()},[br]),y.createElement("div",{ref:Dt,className:pe()($t,dt,(0,ve.Z)((0,ve.Z)((0,ve.Z)((0,ve.Z)((0,ve.Z)({},"".concat($t,"-focused"),pt),"".concat($t,"-disabled"),Tt),"".concat($t,"-readonly"),Ut),"".concat($t,"-not-a-number"),Nn.isNaN()),"".concat($t,"-out-of-range"),!Nn.isInvalidate()&&!Cr(Nn))),style:Ot,onFocus:function(){Et(!0)},onBlur:Gn,onKeyDown:dr,onKeyUp:Tn,onCompositionStart:xo,onCompositionEnd:No,onBeforeInput:go},Mn&&y.createElement(Fe,{prefixCls:$t,upNode:an,downNode:Xt,upDisabled:eo,downDisabled:kr,onStep:Xo}),y.createElement("div",{className:"".concat(At,"-wrap")},y.createElement("input",(0,me.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":Gt,"aria-valuemax":mn,"aria-valuenow":Nn.isInvalidate()?null:Nn.toString(),step:hn},Ge,{ref:(0,ut.sQ)(Jt,Ct),className:At,value:br,onChange:To,disabled:Tt,readOnly:Ut}))))}),ht=y.forwardRef(function(Ve,Ct){var $t=Ve.disabled,dt=Ve.style,Ot=Ve.prefixCls,Gt=Ot===void 0?"rc-input-number":Ot,mn=Ve.value,An=Ve.prefix,hn=Ve.suffix,Fn=Ve.addonBefore,Ft=Ve.addonAfter,Tt=Ve.className,Ut=Ve.classNames,an=(0,se.Z)(Ve,Ee),Xt=y.useRef(null),yn=y.useRef(null),sn=y.useRef(null),wn=function(Mn){sn.current&&(0,Bt.nH)(sn.current,Mn)};return y.useImperativeHandle(Ct,function(){return Qe(sn.current,{focus:wn,nativeElement:Xt.current.nativeElement||yn.current})}),y.createElement(vt.BaseInput,{className:Tt,triggerFocus:wn,prefixCls:Gt,value:mn,disabled:$t,style:dt,prefix:An,suffix:hn,addonAfter:Ft,addonBefore:Fn,classNames:Ut,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:Xt},y.createElement(zt,(0,me.Z)({prefixCls:Gt,disabled:$t,ref:sn,domRef:yn,className:Ut==null?void 0:Ut.input},an)))}),lt=ht,rt=lt,on=z(62487),kt=z(82855),ae=z(48755),re=z(60840),te=z(2171),ie=z(83397),ce=z(31756),ne=z(56553),le=z(24971),Ie=z(70045),bt=z(36237),Ue=z(53075),He=z(64910),at=z(39082),ft=z(63356),Pt=z(56119),Le=z(16931),We=z(51636),Nt=z(17835);const Qt=Ve=>{var Ct;const $t=(Ct=Ve.handleVisible)!==null&&Ct!==void 0?Ct:"auto",dt=Ve.controlHeightSM-Ve.lineWidth*2;return Object.assign(Object.assign({},(0,He.T)(Ve)),{controlWidth:90,handleWidth:dt,handleFontSize:Ve.fontSize/2,handleVisible:$t,handleActiveBg:Ve.colorFillAlter,handleBg:Ve.colorBgContainer,filledHandleBg:new Nt.FastColor(Ve.colorFillSecondary).onBackground(Ve.colorBgContainer).toHexString(),handleHoverColor:Ve.colorPrimary,handleBorderColor:Ve.colorBorder,handleOpacity:$t===!0?1:0,handleVisibleWidth:$t===!0?dt:0})},un=(Ve,Ct)=>{let{componentCls:$t,borderRadiusSM:dt,borderRadiusLG:Ot}=Ve;const Gt=Ct==="lg"?Ot:dt;return{[`&-${Ct}`]:{[`${$t}-handler-wrap`]:{borderStartEndRadius:Gt,borderEndEndRadius:Gt},[`${$t}-handler-up`]:{borderStartEndRadius:Gt},[`${$t}-handler-down`]:{borderEndEndRadius:Gt}}}},rn=Ve=>{const{componentCls:Ct,lineWidth:$t,lineType:dt,borderRadius:Ot,inputFontSizeSM:Gt,inputFontSizeLG:mn,controlHeightLG:An,controlHeightSM:hn,colorError:Fn,paddingInlineSM:Ft,paddingBlockSM:Tt,paddingBlockLG:Ut,paddingInlineLG:an,colorTextDescription:Xt,motionDurationMid:yn,handleHoverColor:sn,handleOpacity:wn,paddingInline:Vn,paddingBlock:Mn,handleBg:$n,handleActiveBg:Wn,colorTextDisabled:Hn,borderRadiusSM:ur,borderRadiusLG:rr,controlWidth:dn,handleBorderColor:xn,filledHandleBg:jn,lineHeightLG:zn,calc:xt}=Ve;return[{[Ct]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,ft.Wf)(Ve)),(0,Ue.ik)(Ve)),{display:"inline-block",width:dn,margin:0,padding:0,borderRadius:Ot}),(0,at.qG)(Ve,{[`${Ct}-handler-wrap`]:{background:$n,[`${Ct}-handler-down`]:{borderBlockStart:`${(0,bt.unit)($t)} ${dt} ${xn}`}}})),(0,at.H8)(Ve,{[`${Ct}-handler-wrap`]:{background:jn,[`${Ct}-handler-down`]:{borderBlockStart:`${(0,bt.unit)($t)} ${dt} ${xn}`}},"&:focus-within":{[`${Ct}-handler-wrap`]:{background:$n}}})),(0,at.vc)(Ve,{[`${Ct}-handler-wrap`]:{background:$n,[`${Ct}-handler-down`]:{borderBlockStart:`${(0,bt.unit)($t)} ${dt} ${xn}`}}})),(0,at.Mu)(Ve)),{"&-rtl":{direction:"rtl",[`${Ct}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:mn,lineHeight:zn,borderRadius:rr,[`input${Ct}-input`]:{height:xt(An).sub(xt($t).mul(2)).equal(),padding:`${(0,bt.unit)(Ut)} ${(0,bt.unit)(an)}`}},"&-sm":{padding:0,fontSize:Gt,borderRadius:ur,[`input${Ct}-input`]:{height:xt(hn).sub(xt($t).mul(2)).equal(),padding:`${(0,bt.unit)(Tt)} ${(0,bt.unit)(Ft)}`}},"&-out-of-range":{[`${Ct}-input-wrap`]:{input:{color:Fn}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,ft.Wf)(Ve)),(0,Ue.s7)(Ve)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${Ct}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${Ct}-group-addon`]:{borderRadius:rr,fontSize:Ve.fontSizeLG}},"&-sm":{[`${Ct}-group-addon`]:{borderRadius:ur}}},(0,at.ir)(Ve)),(0,at.S5)(Ve)),{[`&:not(${Ct}-compact-first-item):not(${Ct}-compact-last-item)${Ct}-compact-item`]:{[`${Ct}, ${Ct}-group-addon`]:{borderRadius:0}},[`&:not(${Ct}-compact-last-item)${Ct}-compact-first-item`]:{[`${Ct}, ${Ct}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${Ct}-compact-first-item)${Ct}-compact-last-item`]:{[`${Ct}, ${Ct}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${Ct}-input`]:{cursor:"not-allowed"},[Ct]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,ft.Wf)(Ve)),{width:"100%",padding:`${(0,bt.unit)(Mn)} ${(0,bt.unit)(Vn)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:Ot,outline:0,transition:`all ${yn} linear`,appearance:"textfield",fontSize:"inherit"}),(0,Ue.nz)(Ve.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${Ct}-handler-wrap, &-focused ${Ct}-handler-wrap`]:{width:Ve.handleWidth,opacity:1}})},{[Ct]:Object.assign(Object.assign(Object.assign({[`${Ct}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:Ve.handleVisibleWidth,opacity:wn,height:"100%",borderStartStartRadius:0,borderStartEndRadius:Ot,borderEndEndRadius:Ot,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${yn}`,overflow:"hidden",[`${Ct}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
${Ct}-handler-up-inner,
${Ct}-handler-down-inner
`]:{marginInlineEnd:0,fontSize:Ve.handleFontSize}}},[`${Ct}-handler`]:{height:"50%",overflow:"hidden",color:Xt,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${(0,bt.unit)($t)} ${dt} ${xn}`,transition:`all ${yn} linear`,"&:active":{background:Wn},"&:hover":{height:"60%",[`
${Ct}-handler-up-inner,
${Ct}-handler-down-inner
`]:{color:sn}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,ft.Ro)()),{color:Xt,transition:`all ${yn} linear`,userSelect:"none"})},[`${Ct}-handler-up`]:{borderStartEndRadius:Ot},[`${Ct}-handler-down`]:{borderEndEndRadius:Ot}},un(Ve,"lg")),un(Ve,"sm")),{"&-disabled, &-readonly":{[`${Ct}-handler-wrap`]:{display:"none"},[`${Ct}-input`]:{color:"inherit"}},[`
${Ct}-handler-up-disabled,
${Ct}-handler-down-disabled
`]:{cursor:"not-allowed"},[`
${Ct}-handler-up-disabled:hover &-handler-up-inner,
${Ct}-handler-down-disabled:hover &-handler-down-inner
`]:{color:Hn}})}]},Rt=Ve=>{const{componentCls:Ct,paddingBlock:$t,paddingInline:dt,inputAffixPadding:Ot,controlWidth:Gt,borderRadiusLG:mn,borderRadiusSM:An,paddingInlineLG:hn,paddingInlineSM:Fn,paddingBlockLG:Ft,paddingBlockSM:Tt,motionDurationMid:Ut}=Ve;return{[`${Ct}-affix-wrapper`]:Object.assign(Object.assign({[`input${Ct}-input`]:{padding:`${(0,bt.unit)($t)} 0`}},(0,Ue.ik)(Ve)),{position:"relative",display:"inline-flex",alignItems:"center",width:Gt,padding:0,paddingInlineStart:dt,"&-lg":{borderRadius:mn,paddingInlineStart:hn,[`input${Ct}-input`]:{padding:`${(0,bt.unit)(Ft)} 0`}},"&-sm":{borderRadius:An,paddingInlineStart:Fn,[`input${Ct}-input`]:{padding:`${(0,bt.unit)(Tt)} 0`}},[`&:not(${Ct}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${Ct}-disabled`]:{background:"transparent"},[`> div${Ct}`]:{width:"100%",border:"none",outline:"none",[`&${Ct}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${Ct}-handler-wrap`]:{zIndex:2},[Ct]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:Ot},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:dt,marginInlineStart:Ot,transition:`margin ${Ut}`}},[`&:hover ${Ct}-handler-wrap, &-focused ${Ct}-handler-wrap`]:{width:Ve.handleWidth,opacity:1},[`&:not(${Ct}-affix-wrapper-without-controls):hover ${Ct}-suffix`]:{marginInlineEnd:Ve.calc(Ve.handleWidth).add(dt).equal()}})}};var ln=(0,Le.I$)("InputNumber",Ve=>{const Ct=(0,We.mergeToken)(Ve,(0,He.e)(Ve));return[rn(Ct),Rt(Ct),(0,Pt.c)(Ct)]},Qt,{unitless:{handleOpacity:!0}}),Ht=function(Ve,Ct){var $t={};for(var dt in Ve)Object.prototype.hasOwnProperty.call(Ve,dt)&&Ct.indexOf(dt)<0&&($t[dt]=Ve[dt]);if(Ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ot=0,dt=Object.getOwnPropertySymbols(Ve);Ot<dt.length;Ot++)Ct.indexOf(dt[Ot])<0&&Object.prototype.propertyIsEnumerable.call(Ve,dt[Ot])&&($t[dt[Ot]]=Ve[dt[Ot]]);return $t};const ze=y.forwardRef((Ve,Ct)=>{const{getPrefixCls:$t,direction:dt}=y.useContext(ae.E_),Ot=y.useRef(null);y.useImperativeHandle(Ct,()=>Ot.current);const{className:Gt,rootClassName:mn,size:An,disabled:hn,prefixCls:Fn,addonBefore:Ft,addonAfter:Tt,prefix:Ut,suffix:an,bordered:Xt,readOnly:yn,status:sn,controls:wn,variant:Vn}=Ve,Mn=Ht(Ve,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),$n=$t("input-number",Fn),Wn=(0,ie.Z)($n),[Hn,ur,rr]=ln($n,Wn),{compactSize:dn,compactItemClassnames:xn}=(0,Ie.ri)($n,dt);let jn=y.createElement(de.Z,{className:`${$n}-handler-up-inner`}),zn=y.createElement(he.Z,{className:`${$n}-handler-down-inner`});const xt=typeof wn=="boolean"?wn:void 0;typeof wn=="object"&&(jn=typeof wn.upIcon=="undefined"?jn:y.createElement("span",{className:`${$n}-handler-up-inner`},wn.upIcon),zn=typeof wn.downIcon=="undefined"?zn:y.createElement("span",{className:`${$n}-handler-down-inner`},wn.downIcon));const{hasFeedback:_t,status:Je,isFormItemInput:Dt,feedbackIcon:Ge}=y.useContext(ne.aM),At=(0,kt.F)(Je,sn),Jt=(0,ce.Z)(On=>{var Nn;return(Nn=An!=null?An:dn)!==null&&Nn!==void 0?Nn:On}),Rn=y.useContext(te.Z),Zn=hn!=null?hn:Rn,[pt,Et]=(0,le.Z)("inputNumber",Vn,Xt),St=_t&&y.createElement(y.Fragment,null,Ge),It=pe()({[`${$n}-lg`]:Jt==="large",[`${$n}-sm`]:Jt==="small",[`${$n}-rtl`]:dt==="rtl",[`${$n}-in-form-item`]:Dt},ur),fn=`${$n}-group`,Bn=y.createElement(rt,Object.assign({ref:Ot,disabled:Zn,className:pe()(rr,Wn,Gt,mn,xn),upHandler:jn,downHandler:zn,prefixCls:$n,readOnly:yn,controls:xt,prefix:Ut,suffix:St||an,addonBefore:Ft&&y.createElement(on.Z,{form:!0,space:!0},Ft),addonAfter:Tt&&y.createElement(on.Z,{form:!0,space:!0},Tt),classNames:{input:It,variant:pe()({[`${$n}-${pt}`]:Et},(0,kt.Z)($n,At,_t)),affixWrapper:pe()({[`${$n}-affix-wrapper-sm`]:Jt==="small",[`${$n}-affix-wrapper-lg`]:Jt==="large",[`${$n}-affix-wrapper-rtl`]:dt==="rtl",[`${$n}-affix-wrapper-without-controls`]:wn===!1||Zn},ur),wrapper:pe()({[`${fn}-rtl`]:dt==="rtl"},ur),groupWrapper:pe()({[`${$n}-group-wrapper-sm`]:Jt==="small",[`${$n}-group-wrapper-lg`]:Jt==="large",[`${$n}-group-wrapper-rtl`]:dt==="rtl",[`${$n}-group-wrapper-${pt}`]:Et},(0,kt.Z)(`${$n}-group-wrapper`,At,_t),ur)}},Mn));return Hn(Bn)}),yt=ze,Kt=Ve=>y.createElement(re.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},y.createElement(ze,Object.assign({},Ve)));yt._InternalPanelDoNotUseOrYouWillBeFired=Kt;var tn=yt},49397:function(bn,Wt,z){"use strict";z.d(Wt,{Z:function(){return Be}});var y=z(59301),he=z(92310),de=z.n(he),$e=z(36901),pe=z(8654),me=z(62487),ve=z(86013),Me=z(82855),ge=z(48755),se=z(2171),_e=z(83397),Ae=z(31756),tt=z(56553),je=z(24971),Te=z(70045),Ce=z(23826),Se=z(53075);function Pe(Oe){return!!(Oe.prefix||Oe.suffix||Oe.allowClear||Oe.showCount)}var Ye=function(Oe,Re){var Ke={};for(var vt in Oe)Object.prototype.hasOwnProperty.call(Oe,vt)&&Re.indexOf(vt)<0&&(Ke[vt]=Oe[vt]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,vt=Object.getOwnPropertySymbols(Oe);it<vt.length;it++)Re.indexOf(vt[it])<0&&Object.prototype.propertyIsEnumerable.call(Oe,vt[it])&&(Ke[vt[it]]=Oe[vt[it]]);return Ke},Be=(0,y.forwardRef)((Oe,Re)=>{const{prefixCls:Ke,bordered:vt=!0,status:it,size:Qe,disabled:ut,onBlur:be,onFocus:et,suffix:Ne,allowClear:ue,addonAfter:mt,addonBefore:Ze,className:nt,style:Mt,styles:Fe,rootClassName:ye,onChange:Bt,classNames:jt,variant:Lt}=Oe,Ee=Ye(Oe,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:ot,direction:qe,allowClear:zt,autoComplete:ht,className:lt,style:rt,classNames:on,styles:kt}=(0,ge.dj)("input"),ae=ot("input",Ke),re=(0,y.useRef)(null),te=(0,_e.Z)(ae),[ie,ce,ne]=(0,Se.TI)(ae,ye),[le]=(0,Se.ZP)(ae,te),{compactSize:Ie,compactItemClassnames:bt}=(0,Te.ri)(ae,qe),Ue=(0,Ae.Z)(tn=>{var Ve;return(Ve=Qe!=null?Qe:Ie)!==null&&Ve!==void 0?Ve:tn}),He=y.useContext(se.Z),at=ut!=null?ut:He,{status:ft,hasFeedback:Pt,feedbackIcon:Le}=(0,y.useContext)(tt.aM),We=(0,Me.F)(ft,it),Nt=Pe(Oe)||!!Pt,Qt=(0,y.useRef)(Nt),un=(0,Ce.Z)(re,!0),rn=tn=>{un(),be==null||be(tn)},Rt=tn=>{un(),et==null||et(tn)},ln=tn=>{un(),Bt==null||Bt(tn)},Ht=(Pt||Ne)&&y.createElement(y.Fragment,null,Ne,Pt&&Le),ze=(0,ve.Z)(ue!=null?ue:zt),[yt,Kt]=(0,je.Z)("input",Lt,vt);return ie(le(y.createElement($e.default,Object.assign({ref:(0,pe.sQ)(Re,re),prefixCls:ae,autoComplete:ht},Ee,{disabled:at,onBlur:rn,onFocus:Rt,style:Object.assign(Object.assign({},rt),Mt),styles:Object.assign(Object.assign({},kt),Fe),suffix:Ht,allowClear:ze,className:de()(nt,ye,ne,te,bt,lt),onChange:ln,addonBefore:Ze&&y.createElement(me.Z,{form:!0,space:!0},Ze),addonAfter:mt&&y.createElement(me.Z,{form:!0,space:!0},mt),classNames:Object.assign(Object.assign(Object.assign({},jt),on),{input:de()({[`${ae}-sm`]:Ue==="small",[`${ae}-lg`]:Ue==="large",[`${ae}-rtl`]:qe==="rtl"},jt==null?void 0:jt.input,on.input,ce),variant:de()({[`${ae}-${yt}`]:Kt},(0,Me.Z)(ae,We)),affixWrapper:de()({[`${ae}-affix-wrapper-sm`]:Ue==="small",[`${ae}-affix-wrapper-lg`]:Ue==="large",[`${ae}-affix-wrapper-rtl`]:qe==="rtl"},ce),wrapper:de()({[`${ae}-group-rtl`]:qe==="rtl"},ce),groupWrapper:de()({[`${ae}-group-wrapper-sm`]:Ue==="small",[`${ae}-group-wrapper-lg`]:Ue==="large",[`${ae}-group-wrapper-rtl`]:qe==="rtl",[`${ae}-group-wrapper-${yt}`]:Kt},(0,Me.Z)(`${ae}-group-wrapper`,We,Pt),ce)})}))))})},79809:function(bn,Wt,z){"use strict";z.d(Wt,{Z:function(){return Re}});var y=z(59301),he=z(92310),de=z.n(he),$e=z(22711),pe=z(86013),me=z(82855),ve=z(48755),Me=z(2171),ge=z(83397),se=z(31756),_e=z(56553),Ae=z(24971),tt=z(70045),je=z(30292),Te=z(53075),Ce=z(16931),Se=z(51636),Pe=z(64910);const Ye=Ke=>{const{componentCls:vt,paddingLG:it}=Ke,Qe=`${vt}-textarea`;return{[`textarea${vt}`]:{maxWidth:"100%",height:"auto",minHeight:Ke.controlHeight,lineHeight:Ke.lineHeight,verticalAlign:"bottom",transition:`all ${Ke.motionDurationSlow}`,resize:"vertical",[`&${vt}-mouse-active`]:{transition:`all ${Ke.motionDurationSlow}, height 0s, width 0s`}},[`${vt}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[Qe]:{position:"relative","&-show-count":{[`> ${vt}`]:{height:"100%"},[`${vt}-data-count`]:{position:"absolute",bottom:Ke.calc(Ke.fontSize).mul(Ke.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:Ke.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
&-allow-clear > ${vt},
&-affix-wrapper${Qe}-has-feedback ${vt}
`]:{paddingInlineEnd:it},[`&-affix-wrapper${vt}-affix-wrapper`]:{padding:0,[`> textarea${vt}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:Ke.calc(Ke.controlHeight).sub(Ke.calc(Ke.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${vt}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${vt}-clear-icon`]:{position:"absolute",insetInlineEnd:Ke.paddingInline,insetBlockStart:Ke.paddingXS},[`${Qe}-suffix`]:{position:"absolute",top:0,insetInlineEnd:Ke.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${vt}-affix-wrapper-sm`]:{[`${vt}-suffix`]:{[`${vt}-clear-icon`]:{insetInlineEnd:Ke.paddingInlineSM}}}}}};var ct=(0,Ce.I$)(["Input","TextArea"],Ke=>{const vt=(0,Se.mergeToken)(Ke,(0,Pe.e)(Ke));return[Ye(vt)]},Pe.T,{resetFont:!1}),Be=function(Ke,vt){var it={};for(var Qe in Ke)Object.prototype.hasOwnProperty.call(Ke,Qe)&&vt.indexOf(Qe)<0&&(it[Qe]=Ke[Qe]);if(Ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,Qe=Object.getOwnPropertySymbols(Ke);ut<Qe.length;ut++)vt.indexOf(Qe[ut])<0&&Object.prototype.propertyIsEnumerable.call(Ke,Qe[ut])&&(it[Qe[ut]]=Ke[Qe[ut]]);return it},Re=(0,y.forwardRef)((Ke,vt)=>{var it;const{prefixCls:Qe,bordered:ut=!0,size:be,disabled:et,status:Ne,allowClear:ue,classNames:mt,rootClassName:Ze,className:nt,style:Mt,styles:Fe,variant:ye,showCount:Bt,onMouseDown:jt,onResize:Lt}=Ke,Ee=Be(Ke,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:ot,direction:qe,allowClear:zt,autoComplete:ht,className:lt,style:rt,classNames:on,styles:kt}=(0,ve.dj)("textArea"),ae=y.useContext(Me.Z),re=et!=null?et:ae,{status:te,hasFeedback:ie,feedbackIcon:ce}=y.useContext(_e.aM),ne=(0,me.F)(te,Ne),le=y.useRef(null);y.useImperativeHandle(vt,()=>{var Kt;return{resizableTextArea:(Kt=le.current)===null||Kt===void 0?void 0:Kt.resizableTextArea,focus:tn=>{var Ve,Ct;(0,je.nH)((Ct=(Ve=le.current)===null||Ve===void 0?void 0:Ve.resizableTextArea)===null||Ct===void 0?void 0:Ct.textArea,tn)},blur:()=>{var tn;return(tn=le.current)===null||tn===void 0?void 0:tn.blur()}}});const Ie=ot("input",Qe),bt=(0,ge.Z)(Ie),[Ue,He,at]=(0,Te.TI)(Ie,Ze),[ft]=ct(Ie,bt),{compactSize:Pt,compactItemClassnames:Le}=(0,tt.ri)(Ie,qe),We=(0,se.Z)(Kt=>{var tn;return(tn=be!=null?be:Pt)!==null&&tn!==void 0?tn:Kt}),[Nt,Qt]=(0,Ae.Z)("textArea",ye,ut),un=(0,pe.Z)(ue!=null?ue:zt),[rn,Rt]=y.useState(!1),[ln,Ht]=y.useState(!1),ze=Kt=>{Rt(!0),jt==null||jt(Kt);const tn=()=>{Rt(!1),document.removeEventListener("mouseup",tn)};document.addEventListener("mouseup",tn)},yt=Kt=>{var tn,Ve;if(Lt==null||Lt(Kt),rn&&typeof getComputedStyle=="function"){const Ct=(Ve=(tn=le.current)===null||tn===void 0?void 0:tn.nativeElement)===null||Ve===void 0?void 0:Ve.querySelector("textarea");Ct&&getComputedStyle(Ct).resize==="both"&&Ht(!0)}};return Ue(ft(y.createElement($e.default,Object.assign({autoComplete:ht},Ee,{style:Object.assign(Object.assign({},rt),Mt),styles:Object.assign(Object.assign({},kt),Fe),disabled:re,allowClear:un,className:de()(at,bt,nt,Ze,Le,lt,ln&&`${Ie}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},mt),on),{textarea:de()({[`${Ie}-sm`]:We==="small",[`${Ie}-lg`]:We==="large"},He,mt==null?void 0:mt.textarea,on.textarea,rn&&`${Ie}-mouse-active`),variant:de()({[`${Ie}-${Nt}`]:Qt},(0,me.Z)(Ie,ne)),affixWrapper:de()(`${Ie}-textarea-affix-wrapper`,{[`${Ie}-affix-wrapper-rtl`]:qe==="rtl",[`${Ie}-affix-wrapper-sm`]:We==="small",[`${Ie}-affix-wrapper-lg`]:We==="large",[`${Ie}-textarea-show-count`]:Bt||((it=Ke.count)===null||it===void 0?void 0:it.show)},He)}),prefixCls:Ie,suffix:ie&&y.createElement("span",{className:`${Ie}-textarea-suffix`},ce),showCount:Bt,ref:le,onResize:yt,onMouseDown:ze}))))})},23826:function(bn,Wt,z){"use strict";z.d(Wt,{Z:function(){return he}});var y=z(59301);function he(de,$e){const pe=(0,y.useRef)([]),me=()=>{pe.current.push(setTimeout(()=>{var ve,Me,ge,se;!((ve=de.current)===null||ve===void 0)&&ve.input&&((Me=de.current)===null||Me===void 0?void 0:Me.input.getAttribute("type"))==="password"&&(!((ge=de.current)===null||ge===void 0)&&ge.input.hasAttribute("value"))&&((se=de.current)===null||se===void 0||se.input.removeAttribute("value"))}))};return(0,y.useEffect)(()=>($e&&me(),()=>pe.current.forEach(ve=>{ve&&clearTimeout(ve)})),[]),me}},37568:function(bn,Wt,z){"use strict";z.d(Wt,{default:function(){return on}});var y=z(59301),he=z(92310),de=z.n(he),$e=z(48755),pe=z(56553),me=z(53075),Me=kt=>{const{getPrefixCls:ae,direction:re}=(0,y.useContext)($e.E_),{prefixCls:te,className:ie}=kt,ce=ae("input-group",te),ne=ae("input"),[le,Ie,bt]=(0,me.ZP)(ne),Ue=de()(ce,bt,{[`${ce}-lg`]:kt.size==="large",[`${ce}-sm`]:kt.size==="small",[`${ce}-compact`]:kt.compact,[`${ce}-rtl`]:re==="rtl"},Ie,ie),He=(0,y.useContext)(pe.aM),at=(0,y.useMemo)(()=>Object.assign(Object.assign({},He),{isFormItemInput:!1}),[He]);return le(y.createElement("span",{className:Ue,style:kt.style,onMouseEnter:kt.onMouseEnter,onMouseLeave:kt.onMouseLeave,onFocus:kt.onFocus,onBlur:kt.onBlur},y.createElement(pe.aM.Provider,{value:at},kt.children)))},ge=z(49397),se=z(94480),_e=z(6089),Ae=z(26112),tt=z(82855),je=z(31756),Te=z(16931),Ce=z(51636),Se=z(64910);const Pe=kt=>{const{componentCls:ae,paddingXS:re}=kt;return{[ae]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:re,"&-rtl":{direction:"rtl"},[`${ae}-input`]:{textAlign:"center",paddingInline:kt.paddingXXS},[`&${ae}-sm ${ae}-input`]:{paddingInline:kt.calc(kt.paddingXXS).div(2).equal()},[`&${ae}-lg ${ae}-input`]:{paddingInline:kt.paddingXS}}}};var Ye=(0,Te.I$)(["Input","OTP"],kt=>{const ae=(0,Ce.mergeToken)(kt,(0,Se.e)(kt));return[Pe(ae)]},Se.T),ct=z(16089),Be=function(kt,ae){var re={};for(var te in kt)Object.prototype.hasOwnProperty.call(kt,te)&&ae.indexOf(te)<0&&(re[te]=kt[te]);if(kt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ie=0,te=Object.getOwnPropertySymbols(kt);ie<te.length;ie++)ae.indexOf(te[ie])<0&&Object.prototype.propertyIsEnumerable.call(kt,te[ie])&&(re[te[ie]]=kt[te[ie]]);return re},Re=y.forwardRef((kt,ae)=>{const{value:re,onChange:te,onActiveChange:ie,index:ce,mask:ne}=kt,le=Be(kt,["value","onChange","onActiveChange","index","mask"]),Ie=re&&typeof ne=="string"?ne:re,bt=Pt=>{te(ce,Pt.target.value)},Ue=y.useRef(null);y.useImperativeHandle(ae,()=>Ue.current);const He=()=>{(0,ct.Z)(()=>{var Pt;const Le=(Pt=Ue.current)===null||Pt===void 0?void 0:Pt.input;document.activeElement===Le&&Le&&Le.select()})},at=Pt=>{const{key:Le,ctrlKey:We,metaKey:Nt}=Pt;Le==="ArrowLeft"?ie(ce-1):Le==="ArrowRight"?ie(ce+1):Le==="z"&&(We||Nt)&&Pt.preventDefault(),He()},ft=Pt=>{Pt.key==="Backspace"&&!re&&ie(ce-1),He()};return y.createElement(ge.Z,Object.assign({type:ne===!0?"password":"text"},le,{ref:Ue,value:Ie,onInput:bt,onFocus:He,onKeyDown:at,onKeyUp:ft,onMouseDown:He,onMouseUp:He}))}),Ke=function(kt,ae){var re={};for(var te in kt)Object.prototype.hasOwnProperty.call(kt,te)&&ae.indexOf(te)<0&&(re[te]=kt[te]);if(kt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ie=0,te=Object.getOwnPropertySymbols(kt);ie<te.length;ie++)ae.indexOf(te[ie])<0&&Object.prototype.propertyIsEnumerable.call(kt,te[ie])&&(re[te[ie]]=kt[te[ie]]);return re};function vt(kt){return(kt||"").split("")}const it=kt=>{const{index:ae,prefixCls:re,separator:te}=kt,ie=typeof te=="function"?te(ae):te;return ie?y.createElement("span",{className:`${re}-separator`},ie):null};var ut=y.forwardRef((kt,ae)=>{const{prefixCls:re,length:te=6,size:ie,defaultValue:ce,value:ne,onChange:le,formatter:Ie,separator:bt,variant:Ue,disabled:He,status:at,autoFocus:ft,mask:Pt,type:Le,onInput:We,inputMode:Nt}=kt,Qt=Ke(kt,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:un,direction:rn}=y.useContext($e.E_),Rt=un("otp",re),ln=(0,Ae.Z)(Qt,{aria:!0,data:!0,attr:!0}),[Ht,ze,yt]=Ye(Rt),Kt=(0,je.Z)(Ut=>ie!=null?ie:Ut),tn=y.useContext(pe.aM),Ve=(0,tt.F)(tn.status,at),Ct=y.useMemo(()=>Object.assign(Object.assign({},tn),{status:Ve,hasFeedback:!1,feedbackIcon:null}),[tn,Ve]),$t=y.useRef(null),dt=y.useRef({});y.useImperativeHandle(ae,()=>({focus:()=>{var Ut;(Ut=dt.current[0])===null||Ut===void 0||Ut.focus()},blur:()=>{var Ut;for(let an=0;an<te;an+=1)(Ut=dt.current[an])===null||Ut===void 0||Ut.blur()},nativeElement:$t.current}));const Ot=Ut=>Ie?Ie(Ut):Ut,[Gt,mn]=y.useState(()=>vt(Ot(ce||"")));y.useEffect(()=>{ne!==void 0&&mn(vt(ne))},[ne]);const An=(0,_e.Z)(Ut=>{mn(Ut),We&&We(Ut),le&&Ut.length===te&&Ut.every(an=>an)&&Ut.some((an,Xt)=>Gt[Xt]!==an)&&le(Ut.join(""))}),hn=(0,_e.Z)((Ut,an)=>{let Xt=(0,se.Z)(Gt);for(let sn=0;sn<Ut;sn+=1)Xt[sn]||(Xt[sn]="");an.length<=1?Xt[Ut]=an:Xt=Xt.slice(0,Ut).concat(vt(an)),Xt=Xt.slice(0,te);for(let sn=Xt.length-1;sn>=0&&!Xt[sn];sn-=1)Xt.pop();const yn=Ot(Xt.map(sn=>sn||" ").join(""));return Xt=vt(yn).map((sn,wn)=>sn===" "&&!Xt[wn]?Xt[wn]:sn),Xt}),Fn=(Ut,an)=>{var Xt;const yn=hn(Ut,an),sn=Math.min(Ut+an.length,te-1);sn!==Ut&&yn[Ut]!==void 0&&((Xt=dt.current[sn])===null||Xt===void 0||Xt.focus()),An(yn)},Ft=Ut=>{var an;(an=dt.current[Ut])===null||an===void 0||an.focus()},Tt={variant:Ue,disabled:He,status:Ve,mask:Pt,type:Le,inputMode:Nt};return Ht(y.createElement("div",Object.assign({},ln,{ref:$t,className:de()(Rt,{[`${Rt}-sm`]:Kt==="small",[`${Rt}-lg`]:Kt==="large",[`${Rt}-rtl`]:rn==="rtl"},yt,ze)}),y.createElement(pe.aM.Provider,{value:Ct},Array.from({length:te}).map((Ut,an)=>{const Xt=`otp-${an}`,yn=Gt[an]||"";return y.createElement(y.Fragment,{key:Xt},y.createElement(Re,Object.assign({ref:sn=>{dt.current[an]=sn},index:an,size:Kt,htmlSize:1,className:`${Rt}-input`,onChange:Fn,value:yn,onActiveChange:Ft,autoFocus:an===0&&ft},Tt)),an<te-1&&y.createElement(it,{separator:bt,index:an,prefixCls:Rt}))}))))}),be=z(73331),et=z(15277),Ne=z(2738),ue=z(8654),mt=z(2171),Ze=z(23826),nt=function(kt,ae){var re={};for(var te in kt)Object.prototype.hasOwnProperty.call(kt,te)&&ae.indexOf(te)<0&&(re[te]=kt[te]);if(kt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ie=0,te=Object.getOwnPropertySymbols(kt);ie<te.length;ie++)ae.indexOf(te[ie])<0&&Object.prototype.propertyIsEnumerable.call(kt,te[ie])&&(re[te[ie]]=kt[te[ie]]);return re};const Mt=kt=>kt?y.createElement(et.Z,null):y.createElement(be.Z,null),Fe={click:"onClick",hover:"onMouseOver"};var Bt=y.forwardRef((kt,ae)=>{const{disabled:re,action:te="click",visibilityToggle:ie=!0,iconRender:ce=Mt}=kt,ne=y.useContext(mt.Z),le=re!=null?re:ne,Ie=typeof ie=="object"&&ie.visible!==void 0,[bt,Ue]=(0,y.useState)(()=>Ie?ie.visible:!1),He=(0,y.useRef)(null);y.useEffect(()=>{Ie&&Ue(ie.visible)},[Ie,ie]);const at=(0,Ze.Z)(He),ft=()=>{var Kt;if(le)return;bt&&at();const tn=!bt;Ue(tn),typeof ie=="object"&&((Kt=ie.onVisibleChange)===null||Kt===void 0||Kt.call(ie,tn))},Pt=Kt=>{const tn=Fe[te]||"",Ve=ce(bt),Ct={[tn]:ft,className:`${Kt}-icon`,key:"passwordIcon",onMouseDown:$t=>{$t.preventDefault()},onMouseUp:$t=>{$t.preventDefault()}};return y.cloneElement(y.isValidElement(Ve)?Ve:y.createElement("span",null,Ve),Ct)},{className:Le,prefixCls:We,inputPrefixCls:Nt,size:Qt}=kt,un=nt(kt,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:rn}=y.useContext($e.E_),Rt=rn("input",Nt),ln=rn("input-password",We),Ht=ie&&Pt(ln),ze=de()(ln,Le,{[`${ln}-${Qt}`]:!!Qt}),yt=Object.assign(Object.assign({},(0,Ne.Z)(un,["suffix","iconRender","visibilityToggle"])),{type:bt?"text":"password",className:ze,prefixCls:Rt,suffix:Ht});return Qt&&(yt.size=Qt),y.createElement(ge.Z,Object.assign({ref:(0,ue.sQ)(ae,He)},yt))}),jt=z(47472),Lt=z(22703),Ee=z(7939),ot=z(70045),qe=function(kt,ae){var re={};for(var te in kt)Object.prototype.hasOwnProperty.call(kt,te)&&ae.indexOf(te)<0&&(re[te]=kt[te]);if(kt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ie=0,te=Object.getOwnPropertySymbols(kt);ie<te.length;ie++)ae.indexOf(te[ie])<0&&Object.prototype.propertyIsEnumerable.call(kt,te[ie])&&(re[te[ie]]=kt[te[ie]]);return re},ht=y.forwardRef((kt,ae)=>{const{prefixCls:re,inputPrefixCls:te,className:ie,size:ce,suffix:ne,enterButton:le=!1,addonAfter:Ie,loading:bt,disabled:Ue,onSearch:He,onChange:at,onCompositionStart:ft,onCompositionEnd:Pt}=kt,Le=qe(kt,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:We,direction:Nt}=y.useContext($e.E_),Qt=y.useRef(!1),un=We("input-search",re),rn=We("input",te),{compactSize:Rt}=(0,ot.ri)(un,Nt),ln=(0,je.Z)(Fn=>{var Ft;return(Ft=ce!=null?ce:Rt)!==null&&Ft!==void 0?Ft:Fn}),Ht=y.useRef(null),ze=Fn=>{Fn!=null&&Fn.target&&Fn.type==="click"&&He&&He(Fn.target.value,Fn,{source:"clear"}),at==null||at(Fn)},yt=Fn=>{var Ft;document.activeElement===((Ft=Ht.current)===null||Ft===void 0?void 0:Ft.input)&&Fn.preventDefault()},Kt=Fn=>{var Ft,Tt;He&&He((Tt=(Ft=Ht.current)===null||Ft===void 0?void 0:Ft.input)===null||Tt===void 0?void 0:Tt.value,Fn,{source:"input"})},tn=Fn=>{Qt.current||bt||Kt(Fn)},Ve=typeof le=="boolean"?y.createElement(jt.Z,null):null,Ct=`${un}-button`;let $t;const dt=le||{},Ot=dt.type&&dt.type.__ANT_BUTTON===!0;Ot||dt.type==="button"?$t=(0,Lt.Tm)(dt,Object.assign({onMouseDown:yt,onClick:Fn=>{var Ft,Tt;(Tt=(Ft=dt==null?void 0:dt.props)===null||Ft===void 0?void 0:Ft.onClick)===null||Tt===void 0||Tt.call(Ft,Fn),Kt(Fn)},key:"enterButton"},Ot?{className:Ct,size:ln}:{})):$t=y.createElement(Ee.ZP,{className:Ct,type:le?"primary":void 0,size:ln,disabled:Ue,key:"enterButton",onMouseDown:yt,onClick:Kt,loading:bt,icon:Ve},le),Ie&&($t=[$t,(0,Lt.Tm)(Ie,{key:"addonAfter"})]);const Gt=de()(un,{[`${un}-rtl`]:Nt==="rtl",[`${un}-${ln}`]:!!ln,[`${un}-with-button`]:!!le},ie),mn=Object.assign(Object.assign({},Le),{className:Gt,prefixCls:rn,type:"search"}),An=Fn=>{Qt.current=!0,ft==null||ft(Fn)},hn=Fn=>{Qt.current=!1,Pt==null||Pt(Fn)};return y.createElement(ge.Z,Object.assign({ref:(0,ue.sQ)(Ht,ae),onPressEnter:tn},mn,{size:ln,onCompositionStart:An,onCompositionEnd:hn,addonAfter:$t,suffix:ne,onChange:ze,disabled:Ue}))}),lt=z(79809);const rt=ge.Z;rt.Group=Me,rt.Search=ht,rt.TextArea=lt.Z,rt.Password=Bt,rt.OTP=ut;var on=rt},24303:function(bn,Wt,z){"use strict";z.d(Wt,{D:function(){return Ke},Z:function(){return Qe}});var y=z(59301),he=z(54476),de={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},$e=de,pe=z(7657),me=function(be,et){return y.createElement(pe.Z,(0,he.Z)({},be,{ref:et,icon:$e}))},ve=y.forwardRef(me),Me=ve,ge=z(33853),se=z(38819),_e=z(92310),Ae=z.n(_e),tt=z(2738),je=z(48755),Te=z(6989),Ce=z(36237),Se=z(48923),Pe=z(16931);const Ye=ut=>{const{componentCls:be,siderBg:et,motionDurationMid:Ne,motionDurationSlow:ue,antCls:mt,triggerHeight:Ze,triggerColor:nt,triggerBg:Mt,headerHeight:Fe,zeroTriggerWidth:ye,zeroTriggerHeight:Bt,borderRadiusLG:jt,lightSiderBg:Lt,lightTriggerColor:Ee,lightTriggerBg:ot,bodyBg:qe}=ut;return{[be]:{position:"relative",minWidth:0,background:et,transition:`all ${Ne}, background 0s`,"&-has-trigger":{paddingBottom:Ze},"&-right":{order:1},[`${be}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${mt}-menu${mt}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${be}-children`]:{overflow:"hidden"},[`${be}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:Ze,color:nt,lineHeight:(0,Ce.unit)(Ze),textAlign:"center",background:Mt,cursor:"pointer",transition:`all ${Ne}`},[`${be}-zero-width-trigger`]:{position:"absolute",top:Fe,insetInlineEnd:ut.calc(ye).mul(-1).equal(),zIndex:1,width:ye,height:Bt,color:nt,fontSize:ut.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:et,borderRadius:`0 ${(0,Ce.unit)(jt)} ${(0,Ce.unit)(jt)} 0`,cursor:"pointer",transition:`background ${ue} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${ue}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:ut.calc(ye).mul(-1).equal(),borderRadius:`${(0,Ce.unit)(jt)} 0 0 ${(0,Ce.unit)(jt)}`}},"&-light":{background:Lt,[`${be}-trigger`]:{color:Ee,background:ot},[`${be}-zero-width-trigger`]:{color:Ee,background:ot,border:`1px solid ${qe}`,borderInlineStart:0}}}}};var ct=(0,Pe.I$)(["Layout","Sider"],ut=>[Ye(ut)],Se.eh,{deprecatedTokens:Se.jn}),Be=function(ut,be){var et={};for(var Ne in ut)Object.prototype.hasOwnProperty.call(ut,Ne)&&be.indexOf(Ne)<0&&(et[Ne]=ut[Ne]);if(ut!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ue=0,Ne=Object.getOwnPropertySymbols(ut);ue<Ne.length;ue++)be.indexOf(Ne[ue])<0&&Object.prototype.propertyIsEnumerable.call(ut,Ne[ue])&&(et[Ne[ue]]=ut[Ne[ue]]);return et};const Oe={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},Re=ut=>!Number.isNaN(Number.parseFloat(ut))&&isFinite(ut),Ke=y.createContext({}),vt=(()=>{let ut=0;return function(){let be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return ut+=1,`${be}${ut}`}})();var Qe=y.forwardRef((ut,be)=>{const{prefixCls:et,className:Ne,trigger:ue,children:mt,defaultCollapsed:Ze=!1,theme:nt="dark",style:Mt={},collapsible:Fe=!1,reverseArrow:ye=!1,width:Bt=200,collapsedWidth:jt=80,zeroWidthTriggerStyle:Lt,breakpoint:Ee,onCollapse:ot,onBreakpoint:qe}=ut,zt=Be(ut,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:ht}=(0,y.useContext)(Te.V),[lt,rt]=(0,y.useState)("collapsed"in ut?ut.collapsed:Ze),[on,kt]=(0,y.useState)(!1);(0,y.useEffect)(()=>{"collapsed"in ut&&rt(ut.collapsed)},[ut.collapsed]);const ae=(ln,Ht)=>{"collapsed"in ut||rt(ln),ot==null||ot(ln,Ht)},{getPrefixCls:re,direction:te}=(0,y.useContext)(je.E_),ie=re("layout-sider",et),[ce,ne,le]=ct(ie),Ie=(0,y.useRef)(null);Ie.current=ln=>{kt(ln.matches),qe==null||qe(ln.matches),lt!==ln.matches&&ae(ln.matches,"responsive")},(0,y.useEffect)(()=>{function ln(ze){return Ie.current(ze)}let Ht;if(typeof window!="undefined"){const{matchMedia:ze}=window;if(ze&&Ee&&Ee in Oe){Ht=ze(`screen and (max-width: ${Oe[Ee]})`);try{Ht.addEventListener("change",ln)}catch(yt){Ht.addListener(ln)}ln(Ht)}}return()=>{try{Ht==null||Ht.removeEventListener("change",ln)}catch(ze){Ht==null||Ht.removeListener(ln)}}},[Ee]),(0,y.useEffect)(()=>{const ln=vt("ant-sider-");return ht.addSider(ln),()=>ht.removeSider(ln)},[]);const bt=()=>{ae(!lt,"clickTrigger")},Ue=(0,tt.Z)(zt,["collapsed"]),He=lt?jt:Bt,at=Re(He)?`${He}px`:String(He),ft=parseFloat(String(jt||0))===0?y.createElement("span",{onClick:bt,className:Ae()(`${ie}-zero-width-trigger`,`${ie}-zero-width-trigger-${ye?"right":"left"}`),style:Lt},ue||y.createElement(Me,null)):null,Pt=te==="rtl"==!ye,Nt={expanded:Pt?y.createElement(se.Z,null):y.createElement(ge.Z,null),collapsed:Pt?y.createElement(ge.Z,null):y.createElement(se.Z,null)}[lt?"collapsed":"expanded"],Qt=ue!==null?ft||y.createElement("div",{className:`${ie}-trigger`,onClick:bt,style:{width:at}},ue||Nt):null,un=Object.assign(Object.assign({},Mt),{flex:`0 0 ${at}`,maxWidth:at,minWidth:at,width:at}),rn=Ae()(ie,`${ie}-${nt}`,{[`${ie}-collapsed`]:!!lt,[`${ie}-has-trigger`]:Fe&&ue!==null&&!ft,[`${ie}-below`]:!!on,[`${ie}-zero-width`]:parseFloat(at)===0},Ne,ne,le),Rt=y.useMemo(()=>({siderCollapsed:lt}),[lt]);return ce(y.createElement(Ke.Provider,{value:Rt},y.createElement("aside",Object.assign({className:rn},Ue,{style:un,ref:be}),y.createElement("div",{className:`${ie}-children`},mt),Fe||on&&ft?Qt:null)))})},6989:function(bn,Wt,z){"use strict";z.d(Wt,{V:function(){return he}});var y=z(59301);const he=y.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}})},48923:function(bn,Wt,z){"use strict";z.d(Wt,{eh:function(){return $e},jn:function(){return pe}});var y=z(36237),he=z(16931);const de=me=>{const{antCls:ve,componentCls:Me,colorText:ge,footerBg:se,headerHeight:_e,headerPadding:Ae,headerColor:tt,footerPadding:je,fontSize:Te,bodyBg:Ce,headerBg:Se}=me;return{[Me]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Ce,"&, *":{boxSizing:"border-box"},[`&${Me}-has-sider`]:{flexDirection:"row",[`> ${Me}, > ${Me}-content`]:{width:0}},[`${Me}-header, &${Me}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${Me}-header`]:{height:_e,padding:Ae,color:tt,lineHeight:(0,y.unit)(_e),background:Se,[`${ve}-menu`]:{lineHeight:"inherit"}},[`${Me}-footer`]:{padding:je,color:ge,fontSize:Te,background:se},[`${Me}-content`]:{flex:"auto",color:ge,minHeight:0}}},$e=me=>{const{colorBgLayout:ve,controlHeight:Me,controlHeightLG:ge,colorText:se,controlHeightSM:_e,marginXXS:Ae,colorTextLightSolid:tt,colorBgContainer:je}=me,Te=ge*1.25;return{colorBgHeader:"#001529",colorBgBody:ve,colorBgTrigger:"#002140",bodyBg:ve,headerBg:"#001529",headerHeight:Me*2,headerPadding:`0 ${Te}px`,headerColor:se,footerPadding:`${_e}px ${Te}px`,footerBg:ve,siderBg:"#001529",triggerHeight:ge+Ae*2,triggerBg:"#002140",triggerColor:tt,zeroTriggerWidth:ge,zeroTriggerHeight:ge,lightSiderBg:je,lightTriggerBg:je,lightTriggerColor:se}},pe=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];Wt.ZP=(0,he.I$)("Layout",me=>[de(me)],$e,{deprecatedTokens:pe})},78857:function(bn,Wt,z){"use strict";z.d(Wt,{J:function(){return me}});var y=z(59301),he=z(8654),de=z(62487),$e=function(ve,Me){var ge={};for(var se in ve)Object.prototype.hasOwnProperty.call(ve,se)&&Me.indexOf(se)<0&&(ge[se]=ve[se]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _e=0,se=Object.getOwnPropertySymbols(ve);_e<se.length;_e++)Me.indexOf(se[_e])<0&&Object.prototype.propertyIsEnumerable.call(ve,se[_e])&&(ge[se[_e]]=ve[se[_e]]);return ge};const pe=y.createContext(null),me=y.forwardRef((ve,Me)=>{const{children:ge}=ve,se=$e(ve,["children"]),_e=y.useContext(pe),Ae=y.useMemo(()=>Object.assign(Object.assign({},_e),se),[_e,se.prefixCls,se.mode,se.selectable,se.rootClassName]),tt=(0,he.t4)(ge),je=(0,he.x1)(Me,tt?(0,he.C4)(ge):null);return y.createElement(pe.Provider,{value:Ae},y.createElement(de.Z,{space:!0},tt?y.cloneElement(ge,{ref:je}):ge))});Wt.Z=pe},93041:function(bn,Wt,z){"use strict";z.d(Wt,{default:function(){return ce}});var y=z(59301),he=z(28321),de=z(24303),$e=z(18785),pe=z(92310),me=z.n(pe),ve=z(6089),Me=z(2738),ge=z(86641),se=z(22703),_e=z(48755),Ae=z(83397),je=(0,y.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),Te=function(ne,le){var Ie={};for(var bt in ne)Object.prototype.hasOwnProperty.call(ne,bt)&&le.indexOf(bt)<0&&(Ie[bt]=ne[bt]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ue=0,bt=Object.getOwnPropertySymbols(ne);Ue<bt.length;Ue++)le.indexOf(bt[Ue])<0&&Object.prototype.propertyIsEnumerable.call(ne,bt[Ue])&&(Ie[bt[Ue]]=ne[bt[Ue]]);return Ie},Se=ne=>{const{prefixCls:le,className:Ie,dashed:bt}=ne,Ue=Te(ne,["prefixCls","className","dashed"]),{getPrefixCls:He}=y.useContext(_e.E_),at=He("menu",le),ft=me()({[`${at}-item-divider-dashed`]:!!bt},Ie);return y.createElement(he.iz,Object.assign({className:ft},Ue))},Pe=z(11592),Ye=z(25399),Be=ne=>{var le;const{className:Ie,children:bt,icon:Ue,title:He,danger:at,extra:ft}=ne,{prefixCls:Pt,firstLevel:Le,direction:We,disableMenuItemTitleTooltip:Nt,inlineCollapsed:Qt}=y.useContext(je),un=yt=>{const Kt=bt==null?void 0:bt[0],tn=y.createElement("span",{className:me()(`${Pt}-title-content`,{[`${Pt}-title-content-with-extra`]:!!ft||ft===0})},bt);return(!Ue||y.isValidElement(bt)&&bt.type==="span")&&bt&&yt&&Le&&typeof Kt=="string"?y.createElement("div",{className:`${Pt}-inline-collapsed-noicon`},Kt.charAt(0)):tn},{siderCollapsed:rn}=y.useContext(de.D);let Rt=He;typeof He=="undefined"?Rt=Le?bt:"":He===!1&&(Rt="");const ln={title:Rt};!rn&&!Qt&&(ln.title=null,ln.open=!1);const Ht=(0,Pe.Z)(bt).length;let ze=y.createElement(he.ck,Object.assign({},(0,Me.Z)(ne,["title","icon","danger"]),{className:me()({[`${Pt}-item-danger`]:at,[`${Pt}-item-only-child`]:(Ue?Ht+1:Ht)===1},Ie),title:typeof He=="string"?He:void 0}),(0,se.Tm)(Ue,{className:me()(y.isValidElement(Ue)?(le=Ue.props)===null||le===void 0?void 0:le.className:"",`${Pt}-item-icon`)}),un(Qt));return Nt||(ze=y.createElement(Ye.Z,Object.assign({},ln,{placement:We==="rtl"?"left":"right",classNames:{root:`${Pt}-inline-collapsed-tooltip`}}),ze)),ze},Oe=z(78857),Re=z(36237),Ke=z(17835),vt=z(63356),it=z(34961),Qe=z(46e3),ut=z(34925),be=z(16931),et=z(51636),ue=ne=>{const{componentCls:le,motionDurationSlow:Ie,horizontalLineHeight:bt,colorSplit:Ue,lineWidth:He,lineType:at,itemPaddingInline:ft}=ne;return{[`${le}-horizontal`]:{lineHeight:bt,border:0,borderBottom:`${(0,Re.unit)(He)} ${at} ${Ue}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${le}-item, ${le}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:ft},[`> ${le}-item:hover,
> ${le}-item-active,
> ${le}-submenu ${le}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${le}-item, ${le}-submenu-title`]:{transition:[`border-color ${Ie}`,`background ${Ie}`].join(",")},[`${le}-submenu-arrow`]:{display:"none"}}}},Ze=ne=>{let{componentCls:le,menuArrowOffset:Ie,calc:bt}=ne;return{[`${le}-rtl`]:{direction:"rtl"},[`${le}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${le}-rtl${le}-vertical,
${le}-submenu-rtl ${le}-vertical`]:{[`${le}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${(0,Re.unit)(bt(Ie).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${(0,Re.unit)(Ie)})`}}}}};const nt=ne=>Object.assign({},(0,vt.oN)(ne));var Fe=(ne,le)=>{const{componentCls:Ie,itemColor:bt,itemSelectedColor:Ue,subMenuItemSelectedColor:He,groupTitleColor:at,itemBg:ft,subMenuItemBg:Pt,itemSelectedBg:Le,activeBarHeight:We,activeBarWidth:Nt,activeBarBorderWidth:Qt,motionDurationSlow:un,motionEaseInOut:rn,motionEaseOut:Rt,itemPaddingInline:ln,motionDurationMid:Ht,itemHoverColor:ze,lineType:yt,colorSplit:Kt,itemDisabledColor:tn,dangerItemColor:Ve,dangerItemHoverColor:Ct,dangerItemSelectedColor:$t,dangerItemActiveBg:dt,dangerItemSelectedBg:Ot,popupBg:Gt,itemHoverBg:mn,itemActiveBg:An,menuSubMenuBg:hn,horizontalItemSelectedColor:Fn,horizontalItemSelectedBg:Ft,horizontalItemBorderRadius:Tt,horizontalItemHoverBg:Ut}=ne;return{[`${Ie}-${le}, ${Ie}-${le} > ${Ie}`]:{color:bt,background:ft,[`&${Ie}-root:focus-visible`]:Object.assign({},nt(ne)),[`${Ie}-item`]:{"&-group-title, &-extra":{color:at}},[`${Ie}-submenu-selected > ${Ie}-submenu-title`]:{color:He},[`${Ie}-item, ${Ie}-submenu-title`]:{color:bt,[`&:not(${Ie}-item-disabled):focus-visible`]:Object.assign({},nt(ne))},[`${Ie}-item-disabled, ${Ie}-submenu-disabled`]:{color:`${tn} !important`},[`${Ie}-item:not(${Ie}-item-selected):not(${Ie}-submenu-selected)`]:{[`&:hover, > ${Ie}-submenu-title:hover`]:{color:ze}},[`&:not(${Ie}-horizontal)`]:{[`${Ie}-item:not(${Ie}-item-selected)`]:{"&:hover":{backgroundColor:mn},"&:active":{backgroundColor:An}},[`${Ie}-submenu-title`]:{"&:hover":{backgroundColor:mn},"&:active":{backgroundColor:An}}},[`${Ie}-item-danger`]:{color:Ve,[`&${Ie}-item:hover`]:{[`&:not(${Ie}-item-selected):not(${Ie}-submenu-selected)`]:{color:Ct}},[`&${Ie}-item:active`]:{background:dt}},[`${Ie}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Ie}-item-selected`]:{color:Ue,[`&${Ie}-item-danger`]:{color:$t},"a, a:hover":{color:"inherit"}},[`& ${Ie}-item-selected`]:{backgroundColor:Le,[`&${Ie}-item-danger`]:{backgroundColor:Ot}},[`&${Ie}-submenu > ${Ie}`]:{backgroundColor:hn},[`&${Ie}-popup > ${Ie}`]:{backgroundColor:Gt},[`&${Ie}-submenu-popup > ${Ie}`]:{backgroundColor:Gt},[`&${Ie}-horizontal`]:Object.assign(Object.assign({},le==="dark"?{borderBottom:0}:{}),{[`> ${Ie}-item, > ${Ie}-submenu`]:{top:Qt,marginTop:ne.calc(Qt).mul(-1).equal(),marginBottom:0,borderRadius:Tt,"&::after":{position:"absolute",insetInline:ln,bottom:0,borderBottom:`${(0,Re.unit)(We)} solid transparent`,transition:`border-color ${un} ${rn}`,content:'""'},"&:hover, &-active, &-open":{background:Ut,"&::after":{borderBottomWidth:We,borderBottomColor:Fn}},"&-selected":{color:Fn,backgroundColor:Ft,"&:hover":{backgroundColor:Ft},"&::after":{borderBottomWidth:We,borderBottomColor:Fn}}}}),[`&${Ie}-root`]:{[`&${Ie}-inline, &${Ie}-vertical`]:{borderInlineEnd:`${(0,Re.unit)(Qt)} ${yt} ${Kt}`}},[`&${Ie}-inline`]:{[`${Ie}-sub${Ie}-inline`]:{background:Pt},[`${Ie}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${(0,Re.unit)(Nt)} solid ${Ue}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Ht} ${Rt}`,`opacity ${Ht} ${Rt}`].join(","),content:'""'},[`&${Ie}-item-danger`]:{"&::after":{borderInlineEndColor:$t}}},[`${Ie}-selected, ${Ie}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Ht} ${rn}`,`opacity ${Ht} ${rn}`].join(",")}}}}}};const ye=ne=>{const{componentCls:le,itemHeight:Ie,itemMarginInline:bt,padding:Ue,menuArrowSize:He,marginXS:at,itemMarginBlock:ft,itemWidth:Pt,itemPaddingInline:Le}=ne,We=ne.calc(He).add(Ue).add(at).equal();return{[`${le}-item`]:{position:"relative",overflow:"hidden"},[`${le}-item, ${le}-submenu-title`]:{height:Ie,lineHeight:(0,Re.unit)(Ie),paddingInline:Le,overflow:"hidden",textOverflow:"ellipsis",marginInline:bt,marginBlock:ft,width:Pt},[`> ${le}-item,
> ${le}-submenu > ${le}-submenu-title`]:{height:Ie,lineHeight:(0,Re.unit)(Ie)},[`${le}-item-group-list ${le}-submenu-title,
${le}-submenu-title`]:{paddingInlineEnd:We}}};var jt=ne=>{const{componentCls:le,iconCls:Ie,itemHeight:bt,colorTextLightSolid:Ue,dropdownWidth:He,controlHeightLG:at,motionEaseOut:ft,paddingXL:Pt,itemMarginInline:Le,fontSizeLG:We,motionDurationFast:Nt,motionDurationSlow:Qt,paddingXS:un,boxShadowSecondary:rn,collapsedWidth:Rt,collapsedIconSize:ln}=ne,Ht={height:bt,lineHeight:(0,Re.unit)(bt),listStylePosition:"inside",listStyleType:"disc"};return[{[le]:{"&-inline, &-vertical":Object.assign({[`&${le}-root`]:{boxShadow:"none"}},ye(ne))},[`${le}-submenu-popup`]:{[`${le}-vertical`]:Object.assign(Object.assign({},ye(ne)),{boxShadow:rn})}},{[`${le}-submenu-popup ${le}-vertical${le}-sub`]:{minWidth:He,maxHeight:`calc(100vh - ${(0,Re.unit)(ne.calc(at).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${le}-inline`]:{width:"100%",[`&${le}-root`]:{[`${le}-item, ${le}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Qt}`,`background ${Qt}`,`padding ${Nt} ${ft}`].join(","),[`> ${le}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${le}-sub${le}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${le}-submenu > ${le}-submenu-title`]:Ht,[`& ${le}-item-group-title`]:{paddingInlineStart:Pt}},[`${le}-item`]:Ht}},{[`${le}-inline-collapsed`]:{width:Rt,[`&${le}-root`]:{[`${le}-item, ${le}-submenu ${le}-submenu-title`]:{[`> ${le}-inline-collapsed-noicon`]:{fontSize:We,textAlign:"center"}}},[`> ${le}-item,
> ${le}-item-group > ${le}-item-group-list > ${le}-item,
> ${le}-item-group > ${le}-item-group-list > ${le}-submenu > ${le}-submenu-title,
> ${le}-submenu > ${le}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${(0,Re.unit)(ne.calc(ln).div(2).equal())} - ${(0,Re.unit)(Le)})`,textOverflow:"clip",[`
${le}-submenu-arrow,
${le}-submenu-expand-icon
`]:{opacity:0},[`${le}-item-icon, ${Ie}`]:{margin:0,fontSize:ln,lineHeight:(0,Re.unit)(bt),"+ span":{display:"inline-block",opacity:0}}},[`${le}-item-icon, ${Ie}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${le}-item-icon, ${Ie}`]:{display:"none"},"a, a:hover":{color:Ue}},[`${le}-item-group-title`]:Object.assign(Object.assign({},vt.vS),{paddingInline:un})}}]};const Lt=ne=>{const{componentCls:le,motionDurationSlow:Ie,motionDurationMid:bt,motionEaseInOut:Ue,motionEaseOut:He,iconCls:at,iconSize:ft,iconMarginInlineEnd:Pt}=ne;return{[`${le}-item, ${le}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${Ie}`,`background ${Ie}`,`padding calc(${Ie} + 0.1s) ${Ue}`].join(","),[`${le}-item-icon, ${at}`]:{minWidth:ft,fontSize:ft,transition:[`font-size ${bt} ${He}`,`margin ${Ie} ${Ue}`,`color ${Ie}`].join(","),"+ span":{marginInlineStart:Pt,opacity:1,transition:[`opacity ${Ie} ${Ue}`,`margin ${Ie}`,`color ${Ie}`].join(",")}},[`${le}-item-icon`]:Object.assign({},(0,vt.Ro)()),[`&${le}-item-only-child`]:{[`> ${at}, > ${le}-item-icon`]:{marginInlineEnd:0}}},[`${le}-item-disabled, ${le}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${le}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Ee=ne=>{const{componentCls:le,motionDurationSlow:Ie,motionEaseInOut:bt,borderRadius:Ue,menuArrowSize:He,menuArrowOffset:at}=ne;return{[`${le}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:ne.margin,width:He,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Ie} ${bt}, opacity ${Ie}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:ne.calc(He).mul(.6).equal(),height:ne.calc(He).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:Ue,transition:[`background ${Ie} ${bt}`,`transform ${Ie} ${bt}`,`top ${Ie} ${bt}`,`color ${Ie} ${bt}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${(0,Re.unit)(ne.calc(at).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${(0,Re.unit)(at)})`}}}}},ot=ne=>{const{antCls:le,componentCls:Ie,fontSize:bt,motionDurationSlow:Ue,motionDurationMid:He,motionEaseInOut:at,paddingXS:ft,padding:Pt,colorSplit:Le,lineWidth:We,zIndexPopup:Nt,borderRadiusLG:Qt,subMenuItemBorderRadius:un,menuArrowSize:rn,menuArrowOffset:Rt,lineType:ln,groupTitleLineHeight:Ht,groupTitleFontSize:ze}=ne;return[{"":{[Ie]:Object.assign(Object.assign({},(0,vt.dF)()),{"&-hidden":{display:"none"}})},[`${Ie}-submenu-hidden`]:{display:"none"}},{[Ie]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,vt.Wf)(ne)),(0,vt.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:bt,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Ue} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${Ie}-item`]:{flex:"none"}},[`${Ie}-item, ${Ie}-submenu, ${Ie}-submenu-title`]:{borderRadius:ne.itemBorderRadius},[`${Ie}-item-group-title`]:{padding:`${(0,Re.unit)(ft)} ${(0,Re.unit)(Pt)}`,fontSize:ze,lineHeight:Ht,transition:`all ${Ue}`},[`&-horizontal ${Ie}-submenu`]:{transition:[`border-color ${Ue} ${at}`,`background ${Ue} ${at}`].join(",")},[`${Ie}-submenu, ${Ie}-submenu-inline`]:{transition:[`border-color ${Ue} ${at}`,`background ${Ue} ${at}`,`padding ${He} ${at}`].join(",")},[`${Ie}-submenu ${Ie}-sub`]:{cursor:"initial",transition:[`background ${Ue} ${at}`,`padding ${Ue} ${at}`].join(",")},[`${Ie}-title-content`]:{transition:`color ${Ue}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${le}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${Ie}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:ne.padding}},[`${Ie}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${Ie}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Le,borderStyle:ln,borderWidth:0,borderTopWidth:We,marginBlock:We,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Lt(ne)),{[`${Ie}-item-group`]:{[`${Ie}-item-group-list`]:{margin:0,padding:0,[`${Ie}-item, ${Ie}-submenu-title`]:{paddingInline:`${(0,Re.unit)(ne.calc(bt).mul(2).equal())} ${(0,Re.unit)(Pt)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Nt,borderRadius:Qt,boxShadow:"none",transformOrigin:"0 0",[`&${Ie}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${Ie}`]:Object.assign(Object.assign(Object.assign({borderRadius:Qt},Lt(ne)),Ee(ne)),{[`${Ie}-item, ${Ie}-submenu > ${Ie}-submenu-title`]:{borderRadius:un},[`${Ie}-submenu-title::after`]:{transition:`transform ${Ue} ${at}`}})},"\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:ne.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:ne.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:ne.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:ne.paddingXS}}}),Ee(ne)),{[`&-inline-collapsed ${Ie}-submenu-arrow,
&-inline ${Ie}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${(0,Re.unit)(Rt)})`},"&::after":{transform:`rotate(45deg) translateX(${(0,Re.unit)(ne.calc(Rt).mul(-1).equal())})`}},[`${Ie}-submenu-open${Ie}-submenu-inline > ${Ie}-submenu-title > ${Ie}-submenu-arrow`]:{transform:`translateY(${(0,Re.unit)(ne.calc(rn).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${(0,Re.unit)(ne.calc(Rt).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${(0,Re.unit)(Rt)})`}}})},{[`${le}-layout-header`]:{[Ie]:{lineHeight:"inherit"}}}]},qe=ne=>{var le,Ie,bt;const{colorPrimary:Ue,colorError:He,colorTextDisabled:at,colorErrorBg:ft,colorText:Pt,colorTextDescription:Le,colorBgContainer:We,colorFillAlter:Nt,colorFillContent:Qt,lineWidth:un,lineWidthBold:rn,controlItemBgActive:Rt,colorBgTextHover:ln,controlHeightLG:Ht,lineHeight:ze,colorBgElevated:yt,marginXXS:Kt,padding:tn,fontSize:Ve,controlHeightSM:Ct,fontSizeLG:$t,colorTextLightSolid:dt,colorErrorHover:Ot}=ne,Gt=(le=ne.activeBarWidth)!==null&&le!==void 0?le:0,mn=(Ie=ne.activeBarBorderWidth)!==null&&Ie!==void 0?Ie:un,An=(bt=ne.itemMarginInline)!==null&&bt!==void 0?bt:ne.marginXXS,hn=new Ke.FastColor(dt).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:ne.zIndexPopupBase+50,radiusItem:ne.borderRadiusLG,itemBorderRadius:ne.borderRadiusLG,radiusSubMenuItem:ne.borderRadiusSM,subMenuItemBorderRadius:ne.borderRadiusSM,colorItemText:Pt,itemColor:Pt,colorItemTextHover:Pt,itemHoverColor:Pt,colorItemTextHoverHorizontal:Ue,horizontalItemHoverColor:Ue,colorGroupTitle:Le,groupTitleColor:Le,colorItemTextSelected:Ue,itemSelectedColor:Ue,subMenuItemSelectedColor:Ue,colorItemTextSelectedHorizontal:Ue,horizontalItemSelectedColor:Ue,colorItemBg:We,itemBg:We,colorItemBgHover:ln,itemHoverBg:ln,colorItemBgActive:Qt,itemActiveBg:Rt,colorSubItemBg:Nt,subMenuItemBg:Nt,colorItemBgSelected:Rt,itemSelectedBg:Rt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:Gt,colorActiveBarHeight:rn,activeBarHeight:rn,colorActiveBarBorderSize:un,activeBarBorderWidth:mn,colorItemTextDisabled:at,itemDisabledColor:at,colorDangerItemText:He,dangerItemColor:He,colorDangerItemTextHover:He,dangerItemHoverColor:He,colorDangerItemTextSelected:He,dangerItemSelectedColor:He,colorDangerItemBgActive:ft,dangerItemActiveBg:ft,colorDangerItemBgSelected:ft,dangerItemSelectedBg:ft,itemMarginInline:An,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Ht,groupTitleLineHeight:ze,collapsedWidth:Ht*2,popupBg:yt,itemMarginBlock:Kt,itemPaddingInline:tn,horizontalLineHeight:`${Ht*1.15}px`,iconSize:Ve,iconMarginInlineEnd:Ct-Ve,collapsedIconSize:$t,groupTitleFontSize:Ve,darkItemDisabledColor:new Ke.FastColor(dt).setA(.25).toRgbString(),darkItemColor:hn,darkDangerItemColor:He,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:dt,darkItemSelectedBg:Ue,darkDangerItemSelectedBg:He,darkItemHoverBg:"transparent",darkGroupTitleColor:hn,darkItemHoverColor:dt,darkDangerItemHoverColor:Ot,darkDangerItemSelectedColor:dt,darkDangerItemActiveBg:He,itemWidth:Gt?`calc(100% + ${mn}px)`:`calc(100% - ${An*2}px)`}};var zt=function(ne){let le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ne,Ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return(0,be.I$)("Menu",Ue=>{const{colorBgElevated:He,controlHeightLG:at,fontSize:ft,darkItemColor:Pt,darkDangerItemColor:Le,darkItemBg:We,darkSubMenuItemBg:Nt,darkItemSelectedColor:Qt,darkItemSelectedBg:un,darkDangerItemSelectedBg:rn,darkItemHoverBg:Rt,darkGroupTitleColor:ln,darkItemHoverColor:Ht,darkItemDisabledColor:ze,darkDangerItemHoverColor:yt,darkDangerItemSelectedColor:Kt,darkDangerItemActiveBg:tn,popupBg:Ve,darkPopupBg:Ct}=Ue,$t=Ue.calc(ft).div(7).mul(5).equal(),dt=(0,et.mergeToken)(Ue,{menuArrowSize:$t,menuHorizontalHeight:Ue.calc(at).mul(1.15).equal(),menuArrowOffset:Ue.calc($t).mul(.25).equal(),menuSubMenuBg:He,calc:Ue.calc,popupBg:Ve}),Ot=(0,et.mergeToken)(dt,{itemColor:Pt,itemHoverColor:Ht,groupTitleColor:ln,itemSelectedColor:Qt,subMenuItemSelectedColor:Qt,itemBg:We,popupBg:Ct,subMenuItemBg:Nt,itemActiveBg:"transparent",itemSelectedBg:un,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Rt,itemDisabledColor:ze,dangerItemColor:Le,dangerItemHoverColor:yt,dangerItemSelectedColor:Kt,dangerItemActiveBg:tn,dangerItemSelectedBg:rn,menuSubMenuBg:Nt,horizontalItemSelectedColor:Qt,horizontalItemSelectedBg:un});return[ot(dt),ue(dt),jt(dt),Fe(dt,"light"),Fe(Ot,"dark"),Ze(dt),(0,it.Z)(dt),(0,Qe.oN)(dt,"slide-up"),(0,Qe.oN)(dt,"slide-down"),(0,ut._y)(dt,"zoom-big")]},qe,{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:Ie,unitless:{groupTitleLineHeight:!0}})(ne,le)},ht=z(75030),rt=ne=>{var le;const{popupClassName:Ie,icon:bt,title:Ue,theme:He}=ne,at=y.useContext(je),{prefixCls:ft,inlineCollapsed:Pt,theme:Le}=at,We=(0,he.Xl)();let Nt;if(!bt)Nt=Pt&&!We.length&&Ue&&typeof Ue=="string"?y.createElement("div",{className:`${ft}-inline-collapsed-noicon`},Ue.charAt(0)):y.createElement("span",{className:`${ft}-title-content`},Ue);else{const rn=y.isValidElement(Ue)&&Ue.type==="span";Nt=y.createElement(y.Fragment,null,(0,se.Tm)(bt,{className:me()(y.isValidElement(bt)?(le=bt.props)===null||le===void 0?void 0:le.className:"",`${ft}-item-icon`)}),rn?Ue:y.createElement("span",{className:`${ft}-title-content`},Ue))}const Qt=y.useMemo(()=>Object.assign(Object.assign({},at),{firstLevel:!1}),[at]),[un]=(0,ht.Cn)("Menu");return y.createElement(je.Provider,{value:Qt},y.createElement(he.Wd,Object.assign({},(0,Me.Z)(ne,["icon"]),{title:Nt,popupClassName:me()(ft,Ie,`${ft}-${He||Le}`),popupStyle:Object.assign({zIndex:un},ne.popupStyle)})))},on=function(ne,le){var Ie={};for(var bt in ne)Object.prototype.hasOwnProperty.call(ne,bt)&&le.indexOf(bt)<0&&(Ie[bt]=ne[bt]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ue=0,bt=Object.getOwnPropertySymbols(ne);Ue<bt.length;Ue++)le.indexOf(bt[Ue])<0&&Object.prototype.propertyIsEnumerable.call(ne,bt[Ue])&&(Ie[bt[Ue]]=ne[bt[Ue]]);return Ie};function kt(ne){return ne===null||ne===!1}const ae={item:Be,submenu:rt,divider:Se};var te=(0,y.forwardRef)((ne,le)=>{var Ie;const bt=y.useContext(Oe.Z),Ue=bt||{},{getPrefixCls:He,getPopupContainer:at,direction:ft,menu:Pt}=y.useContext(_e.E_),Le=He(),{prefixCls:We,className:Nt,style:Qt,theme:un="light",expandIcon:rn,_internalDisableMenuItemTitleTooltip:Rt,inlineCollapsed:ln,siderCollapsed:Ht,rootClassName:ze,mode:yt,selectable:Kt,onClick:tn,overflowedIndicatorPopupClassName:Ve}=ne,Ct=on(ne,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),$t=(0,Me.Z)(Ct,["collapsedWidth"]);(Ie=Ue.validator)===null||Ie===void 0||Ie.call(Ue,{mode:yt});const dt=(0,ve.Z)(function(){var sn;tn==null||tn.apply(void 0,arguments),(sn=Ue.onClick)===null||sn===void 0||sn.call(Ue)}),Ot=Ue.mode||yt,Gt=Kt!=null?Kt:Ue.selectable,mn=ln!=null?ln:Ht,An={horizontal:{motionName:`${Le}-slide-up`},inline:(0,ge.Z)(Le),other:{motionName:`${Le}-zoom-big`}},hn=He("menu",We||Ue.prefixCls),Fn=(0,Ae.Z)(hn),[Ft,Tt,Ut]=zt(hn,Fn,!bt),an=me()(`${hn}-${un}`,Pt==null?void 0:Pt.className,Nt),Xt=y.useMemo(()=>{var sn,wn;if(typeof rn=="function"||kt(rn))return rn||null;if(typeof Ue.expandIcon=="function"||kt(Ue.expandIcon))return Ue.expandIcon||null;if(typeof(Pt==null?void 0:Pt.expandIcon)=="function"||kt(Pt==null?void 0:Pt.expandIcon))return(Pt==null?void 0:Pt.expandIcon)||null;const Vn=(sn=rn!=null?rn:Ue==null?void 0:Ue.expandIcon)!==null&&sn!==void 0?sn:Pt==null?void 0:Pt.expandIcon;return(0,se.Tm)(Vn,{className:me()(`${hn}-submenu-expand-icon`,y.isValidElement(Vn)?(wn=Vn.props)===null||wn===void 0?void 0:wn.className:void 0)})},[rn,Ue==null?void 0:Ue.expandIcon,Pt==null?void 0:Pt.expandIcon,hn]),yn=y.useMemo(()=>({prefixCls:hn,inlineCollapsed:mn||!1,direction:ft,firstLevel:!0,theme:un,mode:Ot,disableMenuItemTitleTooltip:Rt}),[hn,mn,ft,Rt,un]);return Ft(y.createElement(Oe.Z.Provider,{value:null},y.createElement(je.Provider,{value:yn},y.createElement(he.ZP,Object.assign({getPopupContainer:at,overflowedIndicator:y.createElement($e.Z,null),overflowedIndicatorPopupClassName:me()(hn,`${hn}-${un}`,Ve),mode:Ot,selectable:Gt,onClick:dt},$t,{inlineCollapsed:mn,style:Object.assign(Object.assign({},Pt==null?void 0:Pt.style),Qt),className:an,prefixCls:hn,direction:ft,defaultMotions:An,expandIcon:Xt,ref:le,rootClassName:me()(ze,Tt,Ue.rootClassName,Ut,Fn),_internalComponents:ae})))))});const ie=(0,y.forwardRef)((ne,le)=>{const Ie=(0,y.useRef)(null),bt=y.useContext(de.D);return(0,y.useImperativeHandle)(le,()=>({menu:Ie.current,focus:Ue=>{var He;(He=Ie.current)===null||He===void 0||He.focus(Ue)}})),y.createElement(te,Object.assign({ref:Ie},ne,bt))});ie.Item=Be,ie.SubMenu=rt,ie.Divider=Se,ie.ItemGroup=he.BW;var ce=ie},31709:function(bn,Wt,z){"use strict";z.d(Wt,{Z:function(){return Pt}});var y=z(59301),he=z(54476),de={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},$e=de,pe=z(7657),me=function(We,Nt){return y.createElement(pe.Z,(0,he.Z)({},We,{ref:Nt,icon:$e}))},ve=y.forwardRef(me),Me=ve,ge=z(49198),se=z(33853),_e=z(38819),Ae=z(92310),tt=z.n(Ae),je=z(20068),Te=z(76190),Ce=z(33885),Se=z(42978),Pe=z(18929),Ye=z(10228),ct=z(26112),Be=z(48736),Oe=z(17119),Re=[10,20,50,100],Ke=function(We){var Nt=We.pageSizeOptions,Qt=Nt===void 0?Re:Nt,un=We.locale,rn=We.changeSize,Rt=We.pageSize,ln=We.goButton,Ht=We.quickGo,ze=We.rootPrefixCls,yt=We.disabled,Kt=We.buildOptionText,tn=We.showSizeChanger,Ve=We.sizeChangerRender,Ct=y.useState(""),$t=(0,Se.Z)(Ct,2),dt=$t[0],Ot=$t[1],Gt=function(){return!dt||Number.isNaN(dt)?void 0:Number(dt)},mn=typeof Kt=="function"?Kt:function(yn){return"".concat(yn," ").concat(un.items_per_page)},An=function(sn){Ot(sn.target.value)},hn=function(sn){ln||dt===""||(Ot(""),!(sn.relatedTarget&&(sn.relatedTarget.className.indexOf("".concat(ze,"-item-link"))>=0||sn.relatedTarget.className.indexOf("".concat(ze,"-item"))>=0))&&(Ht==null||Ht(Gt())))},Fn=function(sn){dt!==""&&(sn.keyCode===Ye.Z.ENTER||sn.type==="click")&&(Ot(""),Ht==null||Ht(Gt()))},Ft=function(){return Qt.some(function(sn){return sn.toString()===Rt.toString()})?Qt:Qt.concat([Rt]).sort(function(sn,wn){var Vn=Number.isNaN(Number(sn))?0:Number(sn),Mn=Number.isNaN(Number(wn))?0:Number(wn);return Vn-Mn})},Tt="".concat(ze,"-options");if(!tn&&!Ht)return null;var Ut=null,an=null,Xt=null;return tn&&Ve&&(Ut=Ve({disabled:yt,size:Rt,onSizeChange:function(sn){rn==null||rn(Number(sn))},"aria-label":un.page_size,className:"".concat(Tt,"-size-changer"),options:Ft().map(function(yn){return{label:mn(yn),value:yn}})})),Ht&&(ln&&(Xt=typeof ln=="boolean"?y.createElement("button",{type:"button",onClick:Fn,onKeyUp:Fn,disabled:yt,className:"".concat(Tt,"-quick-jumper-button")},un.jump_to_confirm):y.createElement("span",{onClick:Fn,onKeyUp:Fn},ln)),an=y.createElement("div",{className:"".concat(Tt,"-quick-jumper")},un.jump_to,y.createElement("input",{disabled:yt,type:"text",value:dt,onChange:An,onKeyUp:Fn,onBlur:hn,"aria-label":un.page}),un.page,Xt)),y.createElement("li",{className:Tt},Ut,an)},vt=Ke,it=function(We){var Nt=We.rootPrefixCls,Qt=We.page,un=We.active,rn=We.className,Rt=We.showTitle,ln=We.onClick,Ht=We.onKeyPress,ze=We.itemRender,yt="".concat(Nt,"-item"),Kt=tt()(yt,"".concat(yt,"-").concat(Qt),(0,je.Z)((0,je.Z)({},"".concat(yt,"-active"),un),"".concat(yt,"-disabled"),!Qt),rn),tn=function(){ln(Qt)},Ve=function(dt){Ht(dt,ln,Qt)},Ct=ze(Qt,"page",y.createElement("a",{rel:"nofollow"},Qt));return Ct?y.createElement("li",{title:Rt?String(Qt):null,className:Kt,onClick:tn,onKeyDown:Ve,tabIndex:0},Ct):null},Qe=it,ut=function(We,Nt,Qt){return Qt};function be(){}function et(Le){var We=Number(Le);return typeof We=="number"&&!Number.isNaN(We)&&isFinite(We)&&Math.floor(We)===We}function Ne(Le,We,Nt){var Qt=typeof Le=="undefined"?We:Le;return Math.floor((Nt-1)/Qt)+1}var ue=function(We){var Nt=We.prefixCls,Qt=Nt===void 0?"rc-pagination":Nt,un=We.selectPrefixCls,rn=un===void 0?"rc-select":un,Rt=We.className,ln=We.current,Ht=We.defaultCurrent,ze=Ht===void 0?1:Ht,yt=We.total,Kt=yt===void 0?0:yt,tn=We.pageSize,Ve=We.defaultPageSize,Ct=Ve===void 0?10:Ve,$t=We.onChange,dt=$t===void 0?be:$t,Ot=We.hideOnSinglePage,Gt=We.align,mn=We.showPrevNextJumpers,An=mn===void 0?!0:mn,hn=We.showQuickJumper,Fn=We.showLessItems,Ft=We.showTitle,Tt=Ft===void 0?!0:Ft,Ut=We.onShowSizeChange,an=Ut===void 0?be:Ut,Xt=We.locale,yn=Xt===void 0?Oe.Z:Xt,sn=We.style,wn=We.totalBoundaryShowSizeChanger,Vn=wn===void 0?50:wn,Mn=We.disabled,$n=We.simple,Wn=We.showTotal,Hn=We.showSizeChanger,ur=Hn===void 0?Kt>Vn:Hn,rr=We.sizeChangerRender,dn=We.pageSizeOptions,xn=We.itemRender,jn=xn===void 0?ut:xn,zn=We.jumpPrevIcon,xt=We.jumpNextIcon,_t=We.prevIcon,Je=We.nextIcon,Dt=y.useRef(null),Ge=(0,Pe.Z)(10,{value:tn,defaultValue:Ct}),At=(0,Se.Z)(Ge,2),Jt=At[0],Rn=At[1],Zn=(0,Pe.Z)(1,{value:ln,defaultValue:ze,postState:function(co){return Math.max(1,Math.min(co,Ne(void 0,Jt,Kt)))}}),pt=(0,Se.Z)(Zn,2),Et=pt[0],St=pt[1],It=y.useState(Et),fn=(0,Se.Z)(It,2),Bn=fn[0],On=fn[1];(0,y.useEffect)(function(){On(Et)},[Et]);var Nn=dt!==be,qn="current"in We,nr=Math.max(1,Et-(Fn?3:5)),ir=Math.min(Ne(void 0,Jt,Kt),Et+(Fn?3:5));function lr(Lo,co){var wi=Lo||y.createElement("button",{type:"button","aria-label":co,className:"".concat(Qt,"-item-link")});return typeof Lo=="function"&&(wi=y.createElement(Lo,(0,Ce.Z)({},We))),wi}function Qn(Lo){var co=Lo.target.value,wi=Ne(void 0,Jt,Kt),wo;return co===""?wo=co:Number.isNaN(Number(co))?wo=Bn:co>=wi?wo=wi:wo=Number(co),wo}function ar(Lo){return et(Lo)&&Lo!==Et&&et(Kt)&&Kt>0}var fr=Kt>Jt?hn:!1;function Sr(Lo){(Lo.keyCode===Ye.Z.UP||Lo.keyCode===Ye.Z.DOWN)&&Lo.preventDefault()}function br(Lo){var co=Qn(Lo);switch(co!==Bn&&On(co),Lo.keyCode){case Ye.Z.ENTER:hr(co);break;case Ye.Z.UP:hr(co-1);break;case Ye.Z.DOWN:hr(co+1);break;default:break}}function Zr(Lo){hr(Qn(Lo))}function jr(Lo){var co=Ne(Lo,Jt,Kt),wi=Et>co&&co!==0?co:Et;Rn(Lo),On(wi),an==null||an(Et,Lo),St(wi),dt==null||dt(wi,Lo)}function hr(Lo){if(ar(Lo)&&!Mn){var co=Ne(void 0,Jt,Kt),wi=Lo;return Lo>co?wi=co:Lo<1&&(wi=1),wi!==Bn&&On(wi),St(wi),dt==null||dt(wi,Jt),wi}return Et}var Mr=Et>1,eo=Et<Ne(void 0,Jt,Kt);function kr(){Mr&&hr(Et-1)}function Fr(){eo&&hr(Et+1)}function or(){hr(nr)}function Ur(){hr(ir)}function Rr(Lo,co){if(Lo.key==="Enter"||Lo.charCode===Ye.Z.ENTER||Lo.keyCode===Ye.Z.ENTER){for(var wi=arguments.length,wo=new Array(wi>2?wi-2:0),aa=2;aa<wi;aa++)wo[aa-2]=arguments[aa];co.apply(void 0,wo)}}function Br(Lo){Rr(Lo,kr)}function Cr(Lo){Rr(Lo,Fr)}function so(Lo){Rr(Lo,or)}function Ho(Lo){Rr(Lo,Ur)}function ti(Lo){var co=jn(Lo,"prev",lr(_t,"prev page"));return y.isValidElement(co)?y.cloneElement(co,{disabled:!Mr}):co}function xo(Lo){var co=jn(Lo,"next",lr(Je,"next page"));return y.isValidElement(co)?y.cloneElement(co,{disabled:!eo}):co}function No(Lo){(Lo.type==="click"||Lo.keyCode===Ye.Z.ENTER)&&hr(Bn)}var To=null,Xo=(0,ct.Z)(We,{aria:!0,data:!0}),ko=Wn&&y.createElement("li",{className:"".concat(Qt,"-total-text")},Wn(Kt,[Kt===0?0:(Et-1)*Jt+1,Et*Jt>Kt?Kt:Et*Jt])),go=null,dr=Ne(void 0,Jt,Kt);if(Ot&&Kt<=Jt)return null;var Tn=[],Gn={rootPrefixCls:Qt,onClick:hr,onKeyPress:Rr,showTitle:Tt,itemRender:jn,page:-1},Yn=Et-1>0?Et-1:0,Ln=Et+1<dr?Et+1:dr,mr=hn&&hn.goButton,wr=(0,Te.Z)($n)==="object"?$n.readOnly:!$n,Un=mr,Jn=null;$n&&(mr&&(typeof mr=="boolean"?Un=y.createElement("button",{type:"button",onClick:No,onKeyUp:No},yn.jump_to_confirm):Un=y.createElement("span",{onClick:No,onKeyUp:No},mr),Un=y.createElement("li",{title:Tt?"".concat(yn.jump_to).concat(Et,"/").concat(dr):null,className:"".concat(Qt,"-simple-pager")},Un)),Jn=y.createElement("li",{title:Tt?"".concat(Et,"/").concat(dr):null,className:"".concat(Qt,"-simple-pager")},wr?Bn:y.createElement("input",{type:"text","aria-label":yn.jump_to,value:Bn,disabled:Mn,onKeyDown:Sr,onKeyUp:br,onChange:br,onBlur:Zr,size:3}),y.createElement("span",{className:"".concat(Qt,"-slash")},"/"),dr));var sr=Fn?1:2;if(dr<=3+sr*2){dr||Tn.push(y.createElement(Qe,(0,he.Z)({},Gn,{key:"noPager",page:1,className:"".concat(Qt,"-item-disabled")})));for(var pr=1;pr<=dr;pr+=1)Tn.push(y.createElement(Qe,(0,he.Z)({},Gn,{key:pr,page:pr,active:Et===pr})))}else{var _r=Fn?yn.prev_3:yn.prev_5,Yr=Fn?yn.next_3:yn.next_5,to=jn(nr,"jump-prev",lr(zn,"prev page")),Fo=jn(ir,"jump-next",lr(xt,"next page"));An&&(To=to?y.createElement("li",{title:Tt?_r:null,key:"prev",onClick:or,tabIndex:0,onKeyDown:so,className:tt()("".concat(Qt,"-jump-prev"),(0,je.Z)({},"".concat(Qt,"-jump-prev-custom-icon"),!!zn))},to):null,go=Fo?y.createElement("li",{title:Tt?Yr:null,key:"next",onClick:Ur,tabIndex:0,onKeyDown:Ho,className:tt()("".concat(Qt,"-jump-next"),(0,je.Z)({},"".concat(Qt,"-jump-next-custom-icon"),!!xt))},Fo):null);var Mo=Math.max(1,Et-sr),Yo=Math.min(Et+sr,dr);Et-1<=sr&&(Yo=1+sr*2),dr-Et<=sr&&(Mo=dr-sr*2);for(var Jo=Mo;Jo<=Yo;Jo+=1)Tn.push(y.createElement(Qe,(0,he.Z)({},Gn,{key:Jo,page:Jo,active:Et===Jo})));if(Et-1>=sr*2&&Et!==3&&(Tn[0]=y.cloneElement(Tn[0],{className:tt()("".concat(Qt,"-item-after-jump-prev"),Tn[0].props.className)}),Tn.unshift(To)),dr-Et>=sr*2&&Et!==dr-2){var ni=Tn[Tn.length-1];Tn[Tn.length-1]=y.cloneElement(ni,{className:tt()("".concat(Qt,"-item-before-jump-next"),ni.props.className)}),Tn.push(go)}Mo!==1&&Tn.unshift(y.createElement(Qe,(0,he.Z)({},Gn,{key:1,page:1}))),Yo!==dr&&Tn.push(y.createElement(Qe,(0,he.Z)({},Gn,{key:dr,page:dr})))}var ri=ti(Yn);if(ri){var Mi=!Mr||!dr;ri=y.createElement("li",{title:Tt?yn.prev_page:null,onClick:kr,tabIndex:Mi?null:0,onKeyDown:Br,className:tt()("".concat(Qt,"-prev"),(0,je.Z)({},"".concat(Qt,"-disabled"),Mi)),"aria-disabled":Mi},ri)}var $i=xo(Ln);if($i){var Xi,Yi;$n?(Xi=!eo,Yi=Mr?0:null):(Xi=!eo||!dr,Yi=Xi?null:0),$i=y.createElement("li",{title:Tt?yn.next_page:null,onClick:Fr,tabIndex:Yi,onKeyDown:Cr,className:tt()("".concat(Qt,"-next"),(0,je.Z)({},"".concat(Qt,"-disabled"),Xi)),"aria-disabled":Xi},$i)}var ta=tt()(Qt,Rt,(0,je.Z)((0,je.Z)((0,je.Z)((0,je.Z)((0,je.Z)({},"".concat(Qt,"-start"),Gt==="start"),"".concat(Qt,"-center"),Gt==="center"),"".concat(Qt,"-end"),Gt==="end"),"".concat(Qt,"-simple"),$n),"".concat(Qt,"-disabled"),Mn));return y.createElement("ul",(0,he.Z)({className:ta,style:sn,ref:Dt},Xo),ko,ri,$n?Jn:Tn,$i,y.createElement(vt,{locale:yn,rootPrefixCls:Qt,disabled:Mn,selectPrefixCls:rn,changeSize:jr,pageSize:Jt,pageSizeOptions:dn,quickGo:fr?hr:null,goButton:Un,showSizeChanger:ur,sizeChangerRender:rr}))},mt=ue,Ze=z(61852),nt=z(48755),Mt=z(31756),Fe=z(13783),ye=z(9017),Bt=z(82326),jt=z(57700),Lt=z(36237),Ee=z(53075),ot=z(64910),qe=z(39082),zt=z(63356),ht=z(51636),lt=z(16931);const rt=Le=>{const{componentCls:We}=Le;return{[`${We}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${We}-item-link`]:{color:Le.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${We}-item-link`]:{color:Le.colorTextDisabled,cursor:"not-allowed"}}},[`&${We}-disabled`]:{cursor:"not-allowed",[`${We}-item`]:{cursor:"not-allowed",backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"},a:{color:Le.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:Le.colorBorder,backgroundColor:Le.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:Le.itemActiveBgDisabled},a:{color:Le.itemActiveColorDisabled}}},[`${We}-item-link`]:{color:Le.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${We}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${We}-simple-pager`]:{color:Le.colorTextDisabled},[`${We}-jump-prev, ${We}-jump-next`]:{[`${We}-item-link-icon`]:{opacity:0},[`${We}-item-ellipsis`]:{opacity:1}}},[`&${We}-simple`]:{[`${We}-prev, ${We}-next`]:{[`&${We}-disabled ${We}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},on=Le=>{const{componentCls:We}=Le;return{[`&${We}-mini ${We}-total-text, &${We}-mini ${We}-simple-pager`]:{height:Le.itemSizeSM,lineHeight:(0,Lt.unit)(Le.itemSizeSM)},[`&${We}-mini ${We}-item`]:{minWidth:Le.itemSizeSM,height:Le.itemSizeSM,margin:0,lineHeight:(0,Lt.unit)(Le.calc(Le.itemSizeSM).sub(2).equal())},[`&${We}-mini ${We}-prev, &${We}-mini ${We}-next`]:{minWidth:Le.itemSizeSM,height:Le.itemSizeSM,margin:0,lineHeight:(0,Lt.unit)(Le.itemSizeSM)},[`&${We}-mini:not(${We}-disabled)`]:{[`${We}-prev, ${We}-next`]:{[`&:hover ${We}-item-link`]:{backgroundColor:Le.colorBgTextHover},[`&:active ${We}-item-link`]:{backgroundColor:Le.colorBgTextActive},[`&${We}-disabled:hover ${We}-item-link`]:{backgroundColor:"transparent"}}},[`
&${We}-mini ${We}-prev ${We}-item-link,
&${We}-mini ${We}-next ${We}-item-link
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:Le.itemSizeSM,lineHeight:(0,Lt.unit)(Le.itemSizeSM)}},[`&${We}-mini ${We}-jump-prev, &${We}-mini ${We}-jump-next`]:{height:Le.itemSizeSM,marginInlineEnd:0,lineHeight:(0,Lt.unit)(Le.itemSizeSM)},[`&${We}-mini ${We}-options`]:{marginInlineStart:Le.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:Le.miniOptionsSizeChangerTop},"&-quick-jumper":{height:Le.itemSizeSM,lineHeight:(0,Lt.unit)(Le.itemSizeSM),input:Object.assign(Object.assign({},(0,Ee.x0)(Le)),{width:Le.paginationMiniQuickJumperInputWidth,height:Le.controlHeightSM})}}}},kt=Le=>{const{componentCls:We}=Le;return{[`
&${We}-simple ${We}-prev,
&${We}-simple ${We}-next
`]:{height:Le.itemSizeSM,lineHeight:(0,Lt.unit)(Le.itemSizeSM),verticalAlign:"top",[`${We}-item-link`]:{height:Le.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:Le.colorBgTextHover},"&:active":{backgroundColor:Le.colorBgTextActive},"&::after":{height:Le.itemSizeSM,lineHeight:(0,Lt.unit)(Le.itemSizeSM)}}},[`&${We}-simple ${We}-simple-pager`]:{display:"inline-block",height:Le.itemSizeSM,marginInlineEnd:Le.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${(0,Lt.unit)(Le.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:Le.itemInputBg,border:`${(0,Lt.unit)(Le.lineWidth)} ${Le.lineType} ${Le.colorBorder}`,borderRadius:Le.borderRadius,outline:"none",transition:`border-color ${Le.motionDurationMid}`,color:"inherit","&:hover":{borderColor:Le.colorPrimary},"&:focus":{borderColor:Le.colorPrimaryHover,boxShadow:`${(0,Lt.unit)(Le.inputOutlineOffset)} 0 ${(0,Lt.unit)(Le.controlOutlineWidth)} ${Le.controlOutline}`},"&[disabled]":{color:Le.colorTextDisabled,backgroundColor:Le.colorBgContainerDisabled,borderColor:Le.colorBorder,cursor:"not-allowed"}}}}},ae=Le=>{const{componentCls:We}=Le;return{[`${We}-jump-prev, ${We}-jump-next`]:{outline:0,[`${We}-item-container`]:{position:"relative",[`${We}-item-link-icon`]:{color:Le.colorPrimary,fontSize:Le.fontSizeSM,opacity:0,transition:`all ${Le.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${We}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:Le.colorTextDisabled,letterSpacing:Le.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:Le.paginationEllipsisTextIndent,opacity:1,transition:`all ${Le.motionDurationMid}`}},"&:hover":{[`${We}-item-link-icon`]:{opacity:1},[`${We}-item-ellipsis`]:{opacity:0}}},[`
${We}-prev,
${We}-jump-prev,
${We}-jump-next
`]:{marginInlineEnd:Le.marginXS},[`
${We}-prev,
${We}-next,
${We}-jump-prev,
${We}-jump-next
`]:{display:"inline-block",minWidth:Le.itemSize,height:Le.itemSize,color:Le.colorText,fontFamily:Le.fontFamily,lineHeight:(0,Lt.unit)(Le.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:Le.borderRadius,cursor:"pointer",transition:`all ${Le.motionDurationMid}`},[`${We}-prev, ${We}-next`]:{outline:0,button:{color:Le.colorText,cursor:"pointer",userSelect:"none"},[`${We}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:Le.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${(0,Lt.unit)(Le.lineWidth)} ${Le.lineType} transparent`,borderRadius:Le.borderRadius,outline:"none",transition:`all ${Le.motionDurationMid}`},[`&:hover ${We}-item-link`]:{backgroundColor:Le.colorBgTextHover},[`&:active ${We}-item-link`]:{backgroundColor:Le.colorBgTextActive},[`&${We}-disabled:hover`]:{[`${We}-item-link`]:{backgroundColor:"transparent"}}},[`${We}-slash`]:{marginInlineEnd:Le.paginationSlashMarginInlineEnd,marginInlineStart:Le.paginationSlashMarginInlineStart},[`${We}-options`]:{display:"inline-block",marginInlineStart:Le.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:Le.controlHeight,marginInlineStart:Le.marginXS,lineHeight:(0,Lt.unit)(Le.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},(0,Ee.ik)(Le)),(0,qe.$U)(Le,{borderColor:Le.colorBorder,hoverBorderColor:Le.colorPrimaryHover,activeBorderColor:Le.colorPrimary,activeShadow:Le.activeShadow})),{"&[disabled]":Object.assign({},(0,qe.Xy)(Le)),width:Le.calc(Le.controlHeightLG).mul(1.25).equal(),height:Le.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:Le.marginXS,marginInlineEnd:Le.marginXS})}}}},re=Le=>{const{componentCls:We}=Le;return{[`${We}-item`]:{display:"inline-block",minWidth:Le.itemSize,height:Le.itemSize,marginInlineEnd:Le.marginXS,fontFamily:Le.fontFamily,lineHeight:(0,Lt.unit)(Le.calc(Le.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:Le.itemBg,border:`${(0,Lt.unit)(Le.lineWidth)} ${Le.lineType} transparent`,borderRadius:Le.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${(0,Lt.unit)(Le.paginationItemPaddingInline)}`,color:Le.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${We}-item-active)`]:{"&:hover":{transition:`all ${Le.motionDurationMid}`,backgroundColor:Le.colorBgTextHover},"&:active":{backgroundColor:Le.colorBgTextActive}},"&-active":{fontWeight:Le.fontWeightStrong,backgroundColor:Le.itemActiveBg,borderColor:Le.colorPrimary,a:{color:Le.colorPrimary},"&:hover":{borderColor:Le.colorPrimaryHover},"&:hover a":{color:Le.colorPrimaryHover}}}}},te=Le=>{const{componentCls:We}=Le;return{[We]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,zt.Wf)(Le)),{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:'""'},[`${We}-total-text`]:{display:"inline-block",height:Le.itemSize,marginInlineEnd:Le.marginXS,lineHeight:(0,Lt.unit)(Le.calc(Le.itemSize).sub(2).equal()),verticalAlign:"middle"}}),re(Le)),ae(Le)),kt(Le)),on(Le)),rt(Le)),{[`@media only screen and (max-width: ${Le.screenLG}px)`]:{[`${We}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${Le.screenSM}px)`]:{[`${We}-options`]:{display:"none"}}}),[`&${Le.componentCls}-rtl`]:{direction:"rtl"}}},ie=Le=>{const{componentCls:We}=Le;return{[`${We}:not(${We}-disabled)`]:{[`${We}-item`]:Object.assign({},(0,zt.Qy)(Le)),[`${We}-jump-prev, ${We}-jump-next`]:{"&:focus-visible":Object.assign({[`${We}-item-link-icon`]:{opacity:1},[`${We}-item-ellipsis`]:{opacity:0}},(0,zt.oN)(Le))},[`${We}-prev, ${We}-next`]:{[`&:focus-visible ${We}-item-link`]:Object.assign({},(0,zt.oN)(Le))}}}},ce=Le=>Object.assign({itemBg:Le.colorBgContainer,itemSize:Le.controlHeight,itemSizeSM:Le.controlHeightSM,itemActiveBg:Le.colorBgContainer,itemLinkBg:Le.colorBgContainer,itemActiveColorDisabled:Le.colorTextDisabled,itemActiveBgDisabled:Le.controlItemBgActiveDisabled,itemInputBg:Le.colorBgContainer,miniOptionsSizeChangerTop:0},(0,ot.T)(Le)),ne=Le=>(0,ht.mergeToken)(Le,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:Le.calc(Le.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:Le.calc(Le.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:Le.calc(Le.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:Le.calc(Le.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:Le.marginSM,paginationSlashMarginInlineEnd:Le.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,ot.e)(Le));var le=(0,lt.I$)("Pagination",Le=>{const We=ne(Le);return[te(We),ie(We)]},ce);const Ie=Le=>{const{componentCls:We}=Le;return{[`${We}${We}-bordered${We}-disabled:not(${We}-mini)`]:{"&, &:hover":{[`${We}-item-link`]:{borderColor:Le.colorBorder}},"&:focus-visible":{[`${We}-item-link`]:{borderColor:Le.colorBorder}},[`${We}-item, ${We}-item-link`]:{backgroundColor:Le.colorBgContainerDisabled,borderColor:Le.colorBorder,[`&:hover:not(${We}-item-active)`]:{backgroundColor:Le.colorBgContainerDisabled,borderColor:Le.colorBorder,a:{color:Le.colorTextDisabled}},[`&${We}-item-active`]:{backgroundColor:Le.itemActiveBgDisabled}},[`${We}-prev, ${We}-next`]:{"&:hover button":{backgroundColor:Le.colorBgContainerDisabled,borderColor:Le.colorBorder,color:Le.colorTextDisabled},[`${We}-item-link`]:{backgroundColor:Le.colorBgContainerDisabled,borderColor:Le.colorBorder}}},[`${We}${We}-bordered:not(${We}-mini)`]:{[`${We}-prev, ${We}-next`]:{"&:hover button":{borderColor:Le.colorPrimaryHover,backgroundColor:Le.itemBg},[`${We}-item-link`]:{backgroundColor:Le.itemLinkBg,borderColor:Le.colorBorder},[`&:hover ${We}-item-link`]:{borderColor:Le.colorPrimary,backgroundColor:Le.itemBg,color:Le.colorPrimary},[`&${We}-disabled`]:{[`${We}-item-link`]:{borderColor:Le.colorBorder,color:Le.colorTextDisabled}}},[`${We}-item`]:{backgroundColor:Le.itemBg,border:`${(0,Lt.unit)(Le.lineWidth)} ${Le.lineType} ${Le.colorBorder}`,[`&:hover:not(${We}-item-active)`]:{borderColor:Le.colorPrimary,backgroundColor:Le.itemBg,a:{color:Le.colorPrimary}},"&-active":{borderColor:Le.colorPrimary}}}}};var bt=(0,lt.bk)(["Pagination","bordered"],Le=>{const We=ne(Le);return[Ie(We)]},ce);function Ue(Le){return(0,y.useMemo)(()=>typeof Le=="boolean"?[Le,{}]:Le&&typeof Le=="object"?[!0,Le]:[void 0,void 0],[Le])}var He=function(Le,We){var Nt={};for(var Qt in Le)Object.prototype.hasOwnProperty.call(Le,Qt)&&We.indexOf(Qt)<0&&(Nt[Qt]=Le[Qt]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var un=0,Qt=Object.getOwnPropertySymbols(Le);un<Qt.length;un++)We.indexOf(Qt[un])<0&&Object.prototype.propertyIsEnumerable.call(Le,Qt[un])&&(Nt[Qt[un]]=Le[Qt[un]]);return Nt},ft=Le=>{const{align:We,prefixCls:Nt,selectPrefixCls:Qt,className:un,rootClassName:rn,style:Rt,size:ln,locale:Ht,responsive:ze,showSizeChanger:yt,selectComponentClass:Kt,pageSizeOptions:tn}=Le,Ve=He(Le,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:Ct}=(0,Fe.Z)(ze),[,$t]=(0,jt.ZP)(),{getPrefixCls:dt,direction:Ot,showSizeChanger:Gt,className:mn,style:An}=(0,nt.dj)("pagination"),hn=dt("pagination",Nt),[Fn,Ft,Tt]=le(hn),Ut=(0,Mt.Z)(ln),an=Ut==="small"||!!(Ct&&!Ut&&ze),[Xt]=(0,ye.Z)("Pagination",Ze.Z),yn=Object.assign(Object.assign({},Xt),Ht),[sn,wn]=Ue(yt),[Vn,Mn]=Ue(Gt),$n=sn!=null?sn:Vn,Wn=wn!=null?wn:Mn,Hn=Kt||Bt.default,ur=y.useMemo(()=>tn?tn.map(xt=>Number(xt)):void 0,[tn]),rr=xt=>{var _t;const{disabled:Je,size:Dt,onSizeChange:Ge,"aria-label":At,className:Jt,options:Rn}=xt,{className:Zn,onChange:pt}=Wn||{},Et=(_t=Rn.find(St=>String(St.value)===String(Dt)))===null||_t===void 0?void 0:_t.value;return y.createElement(Hn,Object.assign({disabled:Je,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:St=>St.parentNode,"aria-label":At,options:Rn},Wn,{value:Et,onChange:(St,It)=>{Ge==null||Ge(St),pt==null||pt(St,It)},size:an?"small":"middle",className:tt()(Jt,Zn)}))},dn=y.useMemo(()=>{const xt=y.createElement("span",{className:`${hn}-item-ellipsis`},"\u2022\u2022\u2022"),_t=y.createElement("button",{className:`${hn}-item-link`,type:"button",tabIndex:-1},Ot==="rtl"?y.createElement(_e.Z,null):y.createElement(se.Z,null)),Je=y.createElement("button",{className:`${hn}-item-link`,type:"button",tabIndex:-1},Ot==="rtl"?y.createElement(se.Z,null):y.createElement(_e.Z,null)),Dt=y.createElement("a",{className:`${hn}-item-link`},y.createElement("div",{className:`${hn}-item-container`},Ot==="rtl"?y.createElement(ge.Z,{className:`${hn}-item-link-icon`}):y.createElement(Me,{className:`${hn}-item-link-icon`}),xt)),Ge=y.createElement("a",{className:`${hn}-item-link`},y.createElement("div",{className:`${hn}-item-container`},Ot==="rtl"?y.createElement(Me,{className:`${hn}-item-link-icon`}):y.createElement(ge.Z,{className:`${hn}-item-link-icon`}),xt));return{prevIcon:_t,nextIcon:Je,jumpPrevIcon:Dt,jumpNextIcon:Ge}},[Ot,hn]),xn=dt("select",Qt),jn=tt()({[`${hn}-${We}`]:!!We,[`${hn}-mini`]:an,[`${hn}-rtl`]:Ot==="rtl",[`${hn}-bordered`]:$t.wireframe},mn,un,rn,Ft,Tt),zn=Object.assign(Object.assign({},An),Rt);return Fn(y.createElement(y.Fragment,null,$t.wireframe&&y.createElement(bt,{prefixCls:hn}),y.createElement(mt,Object.assign({},dn,Ve,{style:zn,prefixCls:hn,selectPrefixCls:xn,className:jn,locale:yn,pageSizeOptions:ur,showSizeChanger:$n,sizeChangerRender:rr}))))},Pt=ft},69106:function(bn,Wt,z){"use strict";z.d(Wt,{aV:function(){return ge},t5:function(){return se}});var y=z(59301),he=z(92310),de=z.n(he),$e=z(29125),pe=z(54500),me=z(48755),ve=z(85074),Me=function(Ae,tt){var je={};for(var Te in Ae)Object.prototype.hasOwnProperty.call(Ae,Te)&&tt.indexOf(Te)<0&&(je[Te]=Ae[Te]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ce=0,Te=Object.getOwnPropertySymbols(Ae);Ce<Te.length;Ce++)tt.indexOf(Te[Ce])<0&&Object.prototype.propertyIsEnumerable.call(Ae,Te[Ce])&&(je[Te[Ce]]=Ae[Te[Ce]]);return je};const ge=Ae=>{let{title:tt,content:je,prefixCls:Te}=Ae;return!tt&&!je?null:y.createElement(y.Fragment,null,tt&&y.createElement("div",{className:`${Te}-title`},tt),je&&y.createElement("div",{className:`${Te}-inner-content`},je))},se=Ae=>{const{hashId:tt,prefixCls:je,className:Te,style:Ce,placement:Se="top",title:Pe,content:Ye,children:ct}=Ae,Be=(0,pe.Z)(Pe),Oe=(0,pe.Z)(Ye),Re=de()(tt,je,`${je}-pure`,`${je}-placement-${Se}`,Te);return y.createElement("div",{className:Re,style:Ce},y.createElement("div",{className:`${je}-arrow`}),y.createElement($e.G,Object.assign({},Ae,{className:tt,prefixCls:je}),ct||y.createElement(ge,{prefixCls:je,title:Be,content:Oe})))},_e=Ae=>{const{prefixCls:tt,className:je}=Ae,Te=Me(Ae,["prefixCls","className"]),{getPrefixCls:Ce}=y.useContext(me.E_),Se=Ce("popover",tt),[Pe,Ye,ct]=(0,ve.Z)(Se);return Pe(y.createElement(se,Object.assign({},Te,{prefixCls:Se,hashId:Ye,className:de()(je,ct)})))};Wt.ZP=_e},37639:function(bn,Wt,z){"use strict";var y=z(59301),he=z(92310),de=z.n(he),$e=z(18929),pe=z(10228),me=z(54500),ve=z(86641),Me=z(22703),ge=z(25399),se=z(69106),_e=z(48755),Ae=z(85074),tt=function(Ce,Se){var Pe={};for(var Ye in Ce)Object.prototype.hasOwnProperty.call(Ce,Ye)&&Se.indexOf(Ye)<0&&(Pe[Ye]=Ce[Ye]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,Ye=Object.getOwnPropertySymbols(Ce);ct<Ye.length;ct++)Se.indexOf(Ye[ct])<0&&Object.prototype.propertyIsEnumerable.call(Ce,Ye[ct])&&(Pe[Ye[ct]]=Ce[Ye[ct]]);return Pe};const Te=y.forwardRef((Ce,Se)=>{var Pe,Ye;const{prefixCls:ct,title:Be,content:Oe,overlayClassName:Re,placement:Ke="top",trigger:vt="hover",children:it,mouseEnterDelay:Qe=.1,mouseLeaveDelay:ut=.1,onOpenChange:be,overlayStyle:et={},styles:Ne,classNames:ue}=Ce,mt=tt(Ce,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{getPrefixCls:Ze,className:nt,style:Mt,classNames:Fe,styles:ye}=(0,_e.dj)("popover"),Bt=Ze("popover",ct),[jt,Lt,Ee]=(0,Ae.Z)(Bt),ot=Ze(),qe=de()(Re,Lt,Ee,nt,Fe.root,ue==null?void 0:ue.root),zt=de()(Fe.body,ue==null?void 0:ue.body),[ht,lt]=(0,$e.Z)(!1,{value:(Pe=Ce.open)!==null&&Pe!==void 0?Pe:Ce.visible,defaultValue:(Ye=Ce.defaultOpen)!==null&&Ye!==void 0?Ye:Ce.defaultVisible}),rt=(te,ie)=>{lt(te,!0),be==null||be(te,ie)},on=te=>{te.keyCode===pe.Z.ESC&&rt(!1,te)},kt=te=>{rt(te)},ae=(0,me.Z)(Be),re=(0,me.Z)(Oe);return jt(y.createElement(ge.Z,Object.assign({placement:Ke,trigger:vt,mouseEnterDelay:Qe,mouseLeaveDelay:ut},mt,{prefixCls:Bt,classNames:{root:qe,body:zt},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},ye.root),Mt),et),Ne==null?void 0:Ne.root),body:Object.assign(Object.assign({},ye.body),Ne==null?void 0:Ne.body)},ref:Se,open:ht,onOpenChange:kt,overlay:ae||re?y.createElement(se.aV,{prefixCls:Bt,title:ae,content:re}):null,transitionName:(0,ve.m)(ot,"zoom-big",mt.transitionName),"data-popover-inject":!0}),(0,Me.Tm)(it,{onKeyDown:te=>{var ie,ce;y.isValidElement(it)&&((ce=it==null?void 0:(ie=it.props).onKeyDown)===null||ce===void 0||ce.call(ie,te)),on(te)}})))});Te._InternalPanelDoNotUseOrYouWillBeFired=se.ZP,Wt.Z=Te},85074:function(bn,Wt,z){"use strict";var y=z(63356),he=z(34925),de=z(37645),$e=z(36305),pe=z(34998),me=z(16931),ve=z(51636);const Me=_e=>{const{componentCls:Ae,popoverColor:tt,titleMinWidth:je,fontWeightStrong:Te,innerPadding:Ce,boxShadowSecondary:Se,colorTextHeading:Pe,borderRadiusLG:Ye,zIndexPopup:ct,titleMarginBottom:Be,colorBgElevated:Oe,popoverBg:Re,titleBorderBottom:Ke,innerContentPadding:vt,titlePadding:it}=_e;return[{[Ae]:Object.assign(Object.assign({},(0,y.Wf)(_e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:ct,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":Oe,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${Ae}-content`]:{position:"relative"},[`${Ae}-inner`]:{backgroundColor:Re,backgroundClip:"padding-box",borderRadius:Ye,boxShadow:Se,padding:Ce},[`${Ae}-title`]:{minWidth:je,marginBottom:Be,color:Pe,fontWeight:Te,borderBottom:Ke,padding:it},[`${Ae}-inner-content`]:{color:tt,padding:vt}})},(0,de.ZP)(_e,"var(--antd-arrow-background-color)"),{[`${Ae}-pure`]:{position:"relative",maxWidth:"none",margin:_e.sizePopupArrow,display:"inline-block",[`${Ae}-content`]:{display:"inline-block"}}}]},ge=_e=>{const{componentCls:Ae}=_e;return{[Ae]:pe.i.map(tt=>{const je=_e[`${tt}6`];return{[`&${Ae}-${tt}`]:{"--antd-arrow-background-color":je,[`${Ae}-inner`]:{backgroundColor:je},[`${Ae}-arrow`]:{background:"transparent"}}}})}},se=_e=>{const{lineWidth:Ae,controlHeight:tt,fontHeight:je,padding:Te,wireframe:Ce,zIndexPopupBase:Se,borderRadiusLG:Pe,marginXS:Ye,lineType:ct,colorSplit:Be,paddingSM:Oe}=_e,Re=tt-je,Ke=Re/2,vt=Re/2-Ae,it=Te;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:Se+30},(0,$e.w)(_e)),(0,de.wZ)({contentRadius:Pe,limitVerticalRadius:!0})),{innerPadding:Ce?0:12,titleMarginBottom:Ce?0:Ye,titlePadding:Ce?`${Ke}px ${it}px ${vt}px`:0,titleBorderBottom:Ce?`${Ae}px ${ct} ${Be}`:"none",innerContentPadding:Ce?`${Oe}px ${it}px`:0})};Wt.Z=(0,me.I$)("Popover",_e=>{const{colorBgElevated:Ae,colorText:tt}=_e,je=(0,ve.mergeToken)(_e,{popoverBg:Ae,popoverColor:tt});return[Me(je),ge(je),(0,he._y)(je,"zoom-big")]},se,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]})},89787:function(bn,Wt,z){"use strict";z.d(Wt,{Z:function(){return Ht}});var y=z(59301),he=z(17835),de=z(29679),$e=z(40001),pe=z(19248),me=z(99267),ve=z(92310),Me=z.n(ve),ge=z(2738),se=z(48755),_e=z(54476),Ae=z(33885),tt=z(75931),je={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},Te=function(){var yt=(0,y.useRef)([]),Kt=(0,y.useRef)(null);return(0,y.useEffect)(function(){var tn=Date.now(),Ve=!1;yt.current.forEach(function(Ct){if(Ct){Ve=!0;var $t=Ct.style;$t.transitionDuration=".3s, .3s, .3s, .06s",Kt.current&&tn-Kt.current<100&&($t.transitionDuration="0s, 0s")}}),Ve&&(Kt.current=Date.now())}),yt.current},Ce=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],Se=function(yt){var Kt=(0,Ae.Z)((0,Ae.Z)({},je),yt),tn=Kt.className,Ve=Kt.percent,Ct=Kt.prefixCls,$t=Kt.strokeColor,dt=Kt.strokeLinecap,Ot=Kt.strokeWidth,Gt=Kt.style,mn=Kt.trailColor,An=Kt.trailWidth,hn=Kt.transition,Fn=(0,tt.Z)(Kt,Ce);delete Fn.gapPosition;var Ft=Array.isArray(Ve)?Ve:[Ve],Tt=Array.isArray($t)?$t:[$t],Ut=Te(),an=Ot/2,Xt=100-Ot/2,yn="M ".concat(dt==="round"?an:0,",").concat(an,`
L `).concat(dt==="round"?Xt:100,",").concat(an),sn="0 0 100 ".concat(Ot),wn=0;return y.createElement("svg",(0,_e.Z)({className:Me()("".concat(Ct,"-line"),tn),viewBox:sn,preserveAspectRatio:"none",style:Gt},Fn),y.createElement("path",{className:"".concat(Ct,"-line-trail"),d:yn,strokeLinecap:dt,stroke:mn,strokeWidth:An||Ot,fillOpacity:"0"}),Ft.map(function(Vn,Mn){var $n=1;switch(dt){case"round":$n=1-Ot/100;break;case"square":$n=1-Ot/2/100;break;default:$n=1;break}var Wn={strokeDasharray:"".concat(Vn*$n,"px, 100px"),strokeDashoffset:"-".concat(wn,"px"),transition:hn||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Hn=Tt[Mn]||Tt[Tt.length-1];return wn+=Vn,y.createElement("path",{key:Mn,className:"".concat(Ct,"-line-path"),d:yn,strokeLinecap:dt,stroke:Hn,strokeWidth:Ot,fillOpacity:"0",ref:function(rr){Ut[Mn]=rr},style:Wn})}))},Pe=Se,Ye=z(76190),ct=z(42978),Be=z(47273),Oe=0,Re=(0,Be.Z)();function Ke(){var ze;return Re?(ze=Oe,Oe+=1):ze="TEST_OR_SSR",ze}var vt=function(ze){var yt=y.useState(),Kt=(0,ct.Z)(yt,2),tn=Kt[0],Ve=Kt[1];return y.useEffect(function(){Ve("rc_progress_".concat(Ke()))},[]),ze||tn},it=function(yt){var Kt=yt.bg,tn=yt.children;return y.createElement("div",{style:{width:"100%",height:"100%",background:Kt}},tn)};function Qe(ze,yt){return Object.keys(ze).map(function(Kt){var tn=parseFloat(Kt),Ve="".concat(Math.floor(tn*yt),"%");return"".concat(ze[Kt]," ").concat(Ve)})}var ut=y.forwardRef(function(ze,yt){var Kt=ze.prefixCls,tn=ze.color,Ve=ze.gradientId,Ct=ze.radius,$t=ze.style,dt=ze.ptg,Ot=ze.strokeLinecap,Gt=ze.strokeWidth,mn=ze.size,An=ze.gapDegree,hn=tn&&(0,Ye.Z)(tn)==="object",Fn=hn?"#FFF":void 0,Ft=mn/2,Tt=y.createElement("circle",{className:"".concat(Kt,"-circle-path"),r:Ct,cx:Ft,cy:Ft,stroke:Fn,strokeLinecap:Ot,strokeWidth:Gt,opacity:dt===0?0:1,style:$t,ref:yt});if(!hn)return Tt;var Ut="".concat(Ve,"-conic"),an=An?"".concat(180+An/2,"deg"):"0deg",Xt=Qe(tn,(360-An)/360),yn=Qe(tn,1),sn="conic-gradient(from ".concat(an,", ").concat(Xt.join(", "),")"),wn="linear-gradient(to ".concat(An?"bottom":"top",", ").concat(yn.join(", "),")");return y.createElement(y.Fragment,null,y.createElement("mask",{id:Ut},Tt),y.createElement("foreignObject",{x:0,y:0,width:mn,height:mn,mask:"url(#".concat(Ut,")")},y.createElement(it,{bg:wn},y.createElement(it,{bg:sn}))))}),be=ut,et=100,Ne=function(yt,Kt,tn,Ve,Ct,$t,dt,Ot,Gt,mn){var An=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,hn=tn/100*360*((360-$t)/360),Fn=$t===0?0:{bottom:0,top:180,left:90,right:-90}[dt],Ft=(100-Ve)/100*Kt;Gt==="round"&&Ve!==100&&(Ft+=mn/2,Ft>=Kt&&(Ft=Kt-.01));var Tt=et/2;return{stroke:typeof Ot=="string"?Ot:void 0,strokeDasharray:"".concat(Kt,"px ").concat(yt),strokeDashoffset:Ft+An,transform:"rotate(".concat(Ct+hn+Fn,"deg)"),transformOrigin:"".concat(Tt,"px ").concat(Tt,"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}},ue=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function mt(ze){var yt=ze!=null?ze:[];return Array.isArray(yt)?yt:[yt]}var Ze=function(yt){var Kt=(0,Ae.Z)((0,Ae.Z)({},je),yt),tn=Kt.id,Ve=Kt.prefixCls,Ct=Kt.steps,$t=Kt.strokeWidth,dt=Kt.trailWidth,Ot=Kt.gapDegree,Gt=Ot===void 0?0:Ot,mn=Kt.gapPosition,An=Kt.trailColor,hn=Kt.strokeLinecap,Fn=Kt.style,Ft=Kt.className,Tt=Kt.strokeColor,Ut=Kt.percent,an=(0,tt.Z)(Kt,ue),Xt=et/2,yn=vt(tn),sn="".concat(yn,"-gradient"),wn=Xt-$t/2,Vn=Math.PI*2*wn,Mn=Gt>0?90+Gt/2:-90,$n=Vn*((360-Gt)/360),Wn=(0,Ye.Z)(Ct)==="object"?Ct:{count:Ct,gap:2},Hn=Wn.count,ur=Wn.gap,rr=mt(Ut),dn=mt(Tt),xn=dn.find(function(Ge){return Ge&&(0,Ye.Z)(Ge)==="object"}),jn=xn&&(0,Ye.Z)(xn)==="object",zn=jn?"butt":hn,xt=Ne(Vn,$n,0,100,Mn,Gt,mn,An,zn,$t),_t=Te(),Je=function(){var At=0;return rr.map(function(Jt,Rn){var Zn=dn[Rn]||dn[dn.length-1],pt=Ne(Vn,$n,At,Jt,Mn,Gt,mn,Zn,zn,$t);return At+=Jt,y.createElement(be,{key:Rn,color:Zn,ptg:Jt,radius:wn,prefixCls:Ve,gradientId:sn,style:pt,strokeLinecap:zn,strokeWidth:$t,gapDegree:Gt,ref:function(St){_t[Rn]=St},size:et})}).reverse()},Dt=function(){var At=Math.round(Hn*(rr[0]/100)),Jt=100/Hn,Rn=0;return new Array(Hn).fill(null).map(function(Zn,pt){var Et=pt<=At-1?dn[0]:An,St=Et&&(0,Ye.Z)(Et)==="object"?"url(#".concat(sn,")"):void 0,It=Ne(Vn,$n,Rn,Jt,Mn,Gt,mn,Et,"butt",$t,ur);return Rn+=($n-It.strokeDashoffset+ur)*100/$n,y.createElement("circle",{key:pt,className:"".concat(Ve,"-circle-path"),r:wn,cx:Xt,cy:Xt,stroke:St,strokeWidth:$t,opacity:1,style:It,ref:function(Bn){_t[pt]=Bn}})})};return y.createElement("svg",(0,_e.Z)({className:Me()("".concat(Ve,"-circle"),Ft),viewBox:"0 0 ".concat(et," ").concat(et),style:Fn,id:tn,role:"presentation"},an),!Hn&&y.createElement("circle",{className:"".concat(Ve,"-circle-trail"),r:wn,cx:Xt,cy:Xt,stroke:An,strokeLinecap:zn,strokeWidth:dt||$t,style:xt}),Hn?Dt():Je())},nt=Ze,Mt={Line:Pe,Circle:nt},Fe=z(25399),ye=z(68361);function Bt(ze){return!ze||ze<0?0:ze>100?100:ze}function jt(ze){let{success:yt,successPercent:Kt}=ze,tn=Kt;return yt&&"progress"in yt&&(tn=yt.progress),yt&&"percent"in yt&&(tn=yt.percent),tn}const Lt=ze=>{let{percent:yt,success:Kt,successPercent:tn}=ze;const Ve=Bt(jt({success:Kt,successPercent:tn}));return[Ve,Bt(Bt(yt)-Ve)]},Ee=ze=>{let{success:yt={},strokeColor:Kt}=ze;const{strokeColor:tn}=yt;return[tn||ye.presetPrimaryColors.green,Kt||null]},ot=(ze,yt,Kt)=>{var tn,Ve,Ct,$t;let dt=-1,Ot=-1;if(yt==="step"){const Gt=Kt.steps,mn=Kt.strokeWidth;typeof ze=="string"||typeof ze=="undefined"?(dt=ze==="small"?2:14,Ot=mn!=null?mn:8):typeof ze=="number"?[dt,Ot]=[ze,ze]:[dt=14,Ot=8]=Array.isArray(ze)?ze:[ze.width,ze.height],dt*=Gt}else if(yt==="line"){const Gt=Kt==null?void 0:Kt.strokeWidth;typeof ze=="string"||typeof ze=="undefined"?Ot=Gt||(ze==="small"?6:8):typeof ze=="number"?[dt,Ot]=[ze,ze]:[dt=-1,Ot=8]=Array.isArray(ze)?ze:[ze.width,ze.height]}else(yt==="circle"||yt==="dashboard")&&(typeof ze=="string"||typeof ze=="undefined"?[dt,Ot]=ze==="small"?[60,60]:[120,120]:typeof ze=="number"?[dt,Ot]=[ze,ze]:Array.isArray(ze)&&(dt=(Ve=(tn=ze[0])!==null&&tn!==void 0?tn:ze[1])!==null&&Ve!==void 0?Ve:120,Ot=($t=(Ct=ze[0])!==null&&Ct!==void 0?Ct:ze[1])!==null&&$t!==void 0?$t:120));return[dt,Ot]},qe=3,zt=ze=>qe/ze*100;var lt=ze=>{const{prefixCls:yt,trailColor:Kt=null,strokeLinecap:tn="round",gapPosition:Ve,gapDegree:Ct,width:$t=120,type:dt,children:Ot,success:Gt,size:mn=$t,steps:An}=ze,[hn,Fn]=ot(mn,"circle");let{strokeWidth:Ft}=ze;Ft===void 0&&(Ft=Math.max(zt(hn),6));const Tt={width:hn,height:Fn,fontSize:hn*.15+6},Ut=y.useMemo(()=>{if(Ct||Ct===0)return Ct;if(dt==="dashboard")return 75},[Ct,dt]),an=Lt(ze),Xt=Ve||dt==="dashboard"&&"bottom"||void 0,yn=Object.prototype.toString.call(ze.strokeColor)==="[object Object]",sn=Ee({success:Gt,strokeColor:ze.strokeColor}),wn=Me()(`${yt}-inner`,{[`${yt}-circle-gradient`]:yn}),Vn=y.createElement(nt,{steps:An,percent:An?an[1]:an,strokeWidth:Ft,trailWidth:Ft,strokeColor:An?sn[1]:sn,strokeLinecap:tn,trailColor:Kt,prefixCls:yt,gapDegree:Ut,gapPosition:Xt}),Mn=hn<=20,$n=y.createElement("div",{className:wn,style:Tt},Vn,!Mn&&Ot);return Mn?y.createElement(Fe.Z,{title:Ot},$n):$n},rt=z(36237),on=z(63356),kt=z(16931),ae=z(51636);const re="--progress-line-stroke-color",te="--progress-percent",ie=ze=>{const yt=ze?"100%":"-100%";return new rt.Keyframes(`antProgress${ze?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${yt}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${yt}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},ce=ze=>{const{componentCls:yt,iconCls:Kt}=ze;return{[yt]:Object.assign(Object.assign({},(0,on.Wf)(ze)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:ze.fontSize},[`${yt}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${yt}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:ze.remainingColor,borderRadius:ze.lineBorderRadius},[`${yt}-inner:not(${yt}-circle-gradient)`]:{[`${yt}-circle-path`]:{stroke:ze.defaultColor}},[`${yt}-success-bg, ${yt}-bg`]:{position:"relative",background:ze.defaultColor,borderRadius:ze.lineBorderRadius,transition:`all ${ze.motionDurationSlow} ${ze.motionEaseInOutCirc}`},[`${yt}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${yt}-text`]:{width:"max-content",marginInlineStart:0,marginTop:ze.marginXXS}},[`${yt}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${re})`]},height:"100%",width:`calc(1 / var(${te}) * 100%)`,display:"block"},[`&${yt}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${yt}-text-inner`]:{color:ze.colorWhite,[`&${yt}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${yt}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:ze.colorSuccess},[`${yt}-text`]:{display:"inline-block",marginInlineStart:ze.marginXS,color:ze.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Kt]:{fontSize:ze.fontSize},[`&${yt}-text-outer`]:{width:"max-content"},[`&${yt}-text-outer${yt}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:ze.marginXS}},[`${yt}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${(0,rt.unit)(ze.paddingXXS)}`,[`&${yt}-text-start`]:{justifyContent:"start"},[`&${yt}-text-end`]:{justifyContent:"end"}},[`&${yt}-status-active`]:{[`${yt}-bg::before`]:{position:"absolute",inset:0,backgroundColor:ze.colorBgContainer,borderRadius:ze.lineBorderRadius,opacity:0,animationName:ie(),animationDuration:ze.progressActiveMotionDuration,animationTimingFunction:ze.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${yt}-rtl${yt}-status-active`]:{[`${yt}-bg::before`]:{animationName:ie(!0)}},[`&${yt}-status-exception`]:{[`${yt}-bg`]:{backgroundColor:ze.colorError},[`${yt}-text`]:{color:ze.colorError}},[`&${yt}-status-exception ${yt}-inner:not(${yt}-circle-gradient)`]:{[`${yt}-circle-path`]:{stroke:ze.colorError}},[`&${yt}-status-success`]:{[`${yt}-bg`]:{backgroundColor:ze.colorSuccess},[`${yt}-text`]:{color:ze.colorSuccess}},[`&${yt}-status-success ${yt}-inner:not(${yt}-circle-gradient)`]:{[`${yt}-circle-path`]:{stroke:ze.colorSuccess}}})}},ne=ze=>{const{componentCls:yt,iconCls:Kt}=ze;return{[yt]:{[`${yt}-circle-trail`]:{stroke:ze.remainingColor},[`&${yt}-circle ${yt}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${yt}-circle ${yt}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:ze.circleTextColor,fontSize:ze.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[Kt]:{fontSize:ze.circleIconFontSize}},[`${yt}-circle&-status-exception`]:{[`${yt}-text`]:{color:ze.colorError}},[`${yt}-circle&-status-success`]:{[`${yt}-text`]:{color:ze.colorSuccess}}},[`${yt}-inline-circle`]:{lineHeight:1,[`${yt}-inner`]:{verticalAlign:"bottom"}}}},le=ze=>{const{componentCls:yt}=ze;return{[yt]:{[`${yt}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:ze.progressStepMinWidth,marginInlineEnd:ze.progressStepMarginInlineEnd,backgroundColor:ze.remainingColor,transition:`all ${ze.motionDurationSlow}`,"&-active":{backgroundColor:ze.defaultColor}}}}}},Ie=ze=>{const{componentCls:yt,iconCls:Kt}=ze;return{[yt]:{[`${yt}-small&-line, ${yt}-small&-line ${yt}-text ${Kt}`]:{fontSize:ze.fontSizeSM}}}},bt=ze=>({circleTextColor:ze.colorText,defaultColor:ze.colorInfo,remainingColor:ze.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${ze.fontSize/ze.fontSizeSM}em`});var Ue=(0,kt.I$)("Progress",ze=>{const yt=ze.calc(ze.marginXXS).div(2).equal(),Kt=(0,ae.mergeToken)(ze,{progressStepMarginInlineEnd:yt,progressStepMinWidth:yt,progressActiveMotionDuration:"2.4s"});return[ce(Kt),ne(Kt),le(Kt),Ie(Kt)]},bt),He=function(ze,yt){var Kt={};for(var tn in ze)Object.prototype.hasOwnProperty.call(ze,tn)&&yt.indexOf(tn)<0&&(Kt[tn]=ze[tn]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ve=0,tn=Object.getOwnPropertySymbols(ze);Ve<tn.length;Ve++)yt.indexOf(tn[Ve])<0&&Object.prototype.propertyIsEnumerable.call(ze,tn[Ve])&&(Kt[tn[Ve]]=ze[tn[Ve]]);return Kt};const at=ze=>{let yt=[];return Object.keys(ze).forEach(Kt=>{const tn=parseFloat(Kt.replace(/%/g,""));Number.isNaN(tn)||yt.push({key:tn,value:ze[Kt]})}),yt=yt.sort((Kt,tn)=>Kt.key-tn.key),yt.map(Kt=>{let{key:tn,value:Ve}=Kt;return`${Ve} ${tn}%`}).join(", ")},ft=(ze,yt)=>{const{from:Kt=ye.presetPrimaryColors.blue,to:tn=ye.presetPrimaryColors.blue,direction:Ve=yt==="rtl"?"to left":"to right"}=ze,Ct=He(ze,["from","to","direction"]);if(Object.keys(Ct).length!==0){const dt=at(Ct),Ot=`linear-gradient(${Ve}, ${dt})`;return{background:Ot,[re]:Ot}}const $t=`linear-gradient(${Ve}, ${Kt}, ${tn})`;return{background:$t,[re]:$t}};var Le=ze=>{const{prefixCls:yt,direction:Kt,percent:tn,size:Ve,strokeWidth:Ct,strokeColor:$t,strokeLinecap:dt="round",children:Ot,trailColor:Gt=null,percentPosition:mn,success:An}=ze,{align:hn,type:Fn}=mn,Ft=$t&&typeof $t!="string"?ft($t,Kt):{[re]:$t,background:$t},Tt=dt==="square"||dt==="butt"?0:void 0,Ut=Ve!=null?Ve:[-1,Ct||(Ve==="small"?6:8)],[an,Xt]=ot(Ut,"line",{strokeWidth:Ct}),yn={backgroundColor:Gt||void 0,borderRadius:Tt},sn=Object.assign(Object.assign({width:`${Bt(tn)}%`,height:Xt,borderRadius:Tt},Ft),{[te]:Bt(tn)/100}),wn=jt(ze),Vn={width:`${Bt(wn)}%`,height:Xt,borderRadius:Tt,backgroundColor:An==null?void 0:An.strokeColor},Mn={width:an<0?"100%":an},$n=y.createElement("div",{className:`${yt}-inner`,style:yn},y.createElement("div",{className:Me()(`${yt}-bg`,`${yt}-bg-${Fn}`),style:sn},Fn==="inner"&&Ot),wn!==void 0&&y.createElement("div",{className:`${yt}-success-bg`,style:Vn})),Wn=Fn==="outer"&&hn==="start",Hn=Fn==="outer"&&hn==="end";return Fn==="outer"&&hn==="center"?y.createElement("div",{className:`${yt}-layout-bottom`},$n,Ot):y.createElement("div",{className:`${yt}-outer`,style:Mn},Wn&&Ot,$n,Hn&&Ot)},Nt=ze=>{const{size:yt,steps:Kt,rounding:tn=Math.round,percent:Ve=0,strokeWidth:Ct=8,strokeColor:$t,trailColor:dt=null,prefixCls:Ot,children:Gt}=ze,mn=tn(Kt*(Ve/100)),An=yt==="small"?2:14,hn=yt!=null?yt:[An,Ct],[Fn,Ft]=ot(hn,"step",{steps:Kt,strokeWidth:Ct}),Tt=Fn/Kt,Ut=Array.from({length:Kt});for(let an=0;an<Kt;an++){const Xt=Array.isArray($t)?$t[an]:$t;Ut[an]=y.createElement("div",{key:an,className:Me()(`${Ot}-steps-item`,{[`${Ot}-steps-item-active`]:an<=mn-1}),style:{backgroundColor:an<=mn-1?Xt:dt,width:Tt,height:Ft}})}return y.createElement("div",{className:`${Ot}-steps-outer`},Ut,Gt)},Qt=function(ze,yt){var Kt={};for(var tn in ze)Object.prototype.hasOwnProperty.call(ze,tn)&&yt.indexOf(tn)<0&&(Kt[tn]=ze[tn]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ve=0,tn=Object.getOwnPropertySymbols(ze);Ve<tn.length;Ve++)yt.indexOf(tn[Ve])<0&&Object.prototype.propertyIsEnumerable.call(ze,tn[Ve])&&(Kt[tn[Ve]]=ze[tn[Ve]]);return Kt};const un=null,rn=["normal","exception","active","success"];var ln=y.forwardRef((ze,yt)=>{const{prefixCls:Kt,className:tn,rootClassName:Ve,steps:Ct,strokeColor:$t,percent:dt=0,size:Ot="default",showInfo:Gt=!0,type:mn="line",status:An,format:hn,style:Fn,percentPosition:Ft={}}=ze,Tt=Qt(ze,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:Ut="end",type:an="outer"}=Ft,Xt=Array.isArray($t)?$t[0]:$t,yn=typeof $t=="string"||Array.isArray($t)?$t:void 0,sn=y.useMemo(()=>{if(Xt){const Je=typeof Xt=="string"?Xt:Object.values(Xt)[0];return new he.FastColor(Je).isLight()}return!1},[$t]),wn=y.useMemo(()=>{var Je,Dt;const Ge=jt(ze);return parseInt(Ge!==void 0?(Je=Ge!=null?Ge:0)===null||Je===void 0?void 0:Je.toString():(Dt=dt!=null?dt:0)===null||Dt===void 0?void 0:Dt.toString(),10)},[dt,ze.success,ze.successPercent]),Vn=y.useMemo(()=>!rn.includes(An)&&wn>=100?"success":An||"normal",[An,wn]),{getPrefixCls:Mn,direction:$n,progress:Wn}=y.useContext(se.E_),Hn=Mn("progress",Kt),[ur,rr,dn]=Ue(Hn),xn=mn==="line",jn=xn&&!Ct,zn=y.useMemo(()=>{if(!Gt)return null;const Je=jt(ze);let Dt;const Ge=hn||(Jt=>`${Jt}%`),At=xn&&sn&&an==="inner";return an==="inner"||hn||Vn!=="exception"&&Vn!=="success"?Dt=Ge(Bt(dt),Bt(Je)):Vn==="exception"?Dt=xn?y.createElement(pe.Z,null):y.createElement(me.Z,null):Vn==="success"&&(Dt=xn?y.createElement(de.Z,null):y.createElement($e.Z,null)),y.createElement("span",{className:Me()(`${Hn}-text`,{[`${Hn}-text-bright`]:At,[`${Hn}-text-${Ut}`]:jn,[`${Hn}-text-${an}`]:jn}),title:typeof Dt=="string"?Dt:void 0},Dt)},[Gt,dt,wn,Vn,mn,Hn,hn]);let xt;mn==="line"?xt=Ct?y.createElement(Nt,Object.assign({},ze,{strokeColor:yn,prefixCls:Hn,steps:typeof Ct=="object"?Ct.count:Ct}),zn):y.createElement(Le,Object.assign({},ze,{strokeColor:Xt,prefixCls:Hn,direction:$n,percentPosition:{align:Ut,type:an}}),zn):(mn==="circle"||mn==="dashboard")&&(xt=y.createElement(lt,Object.assign({},ze,{strokeColor:Xt,prefixCls:Hn,progressStatus:Vn}),zn));const _t=Me()(Hn,`${Hn}-status-${Vn}`,{[`${Hn}-${mn==="dashboard"&&"circle"||mn}`]:mn!=="line",[`${Hn}-inline-circle`]:mn==="circle"&&ot(Ot,"circle")[0]<=20,[`${Hn}-line`]:jn,[`${Hn}-line-align-${Ut}`]:jn,[`${Hn}-line-position-${an}`]:jn,[`${Hn}-steps`]:Ct,[`${Hn}-show-info`]:Gt,[`${Hn}-${Ot}`]:typeof Ot=="string",[`${Hn}-rtl`]:$n==="rtl"},Wn==null?void 0:Wn.className,tn,Ve,rr,dn);return ur(y.createElement("div",Object.assign({ref:yt,style:Object.assign(Object.assign({},Wn==null?void 0:Wn.style),Fn),className:_t,role:"progressbar","aria-valuenow":wn,"aria-valuemin":0,"aria-valuemax":100},(0,ge.Z)(Tt,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),xt))}),Ht=ln},63139:function(bn,Wt,z){"use strict";z.d(Wt,{Z:function(){return Lt}});var y=z(59301),he=z(54476),de={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"},$e=de,pe=z(7657),me=function(ot,qe){return y.createElement(pe.Z,(0,he.Z)({},ot,{ref:qe,icon:$e}))},ve=y.forwardRef(me),Me=ve,ge=z(92310),se=z.n(ge),_e=z(20068),Ae=z(42978),tt=z(75931),je=z(18929),Te=z(10228),Ce=z(26112);function Se(Ee,ot){var qe=Ee.disabled,zt=Ee.prefixCls,ht=Ee.character,lt=Ee.characterRender,rt=Ee.index,on=Ee.count,kt=Ee.value,ae=Ee.allowHalf,re=Ee.focused,te=Ee.onHover,ie=Ee.onClick,ce=function(ft){te(ft,rt)},ne=function(ft){ie(ft,rt)},le=function(ft){ft.keyCode===Te.Z.ENTER&&ie(ft,rt)},Ie=rt+1,bt=new Set([zt]);kt===0&&rt===0&&re?bt.add("".concat(zt,"-focused")):ae&&kt+.5>=Ie&&kt<Ie?(bt.add("".concat(zt,"-half")),bt.add("".concat(zt,"-active")),re&&bt.add("".concat(zt,"-focused"))):(Ie<=kt?bt.add("".concat(zt,"-full")):bt.add("".concat(zt,"-zero")),Ie===kt&&re&&bt.add("".concat(zt,"-focused")));var Ue=typeof ht=="function"?ht(Ee):ht,He=y.createElement("li",{className:se()(Array.from(bt)),ref:ot},y.createElement("div",{onClick:qe?null:ne,onKeyDown:qe?null:le,onMouseMove:qe?null:ce,role:"radio","aria-checked":kt>rt?"true":"false","aria-posinset":rt+1,"aria-setsize":on,tabIndex:qe?-1:0},y.createElement("div",{className:"".concat(zt,"-first")},Ue),y.createElement("div",{className:"".concat(zt,"-second")},Ue)));return lt&&(He=lt(He,Ee)),He}var Pe=y.forwardRef(Se);function Ye(){var Ee=y.useRef({});function ot(zt){return Ee.current[zt]}function qe(zt){return function(ht){Ee.current[zt]=ht}}return[ot,qe]}function ct(Ee){var ot=Ee.pageXOffset,qe="scrollLeft";if(typeof ot!="number"){var zt=Ee.document;ot=zt.documentElement[qe],typeof ot!="number"&&(ot=zt.body[qe])}return ot}function Be(Ee){var ot,qe,zt=Ee.ownerDocument,ht=zt.body,lt=zt&&zt.documentElement,rt=Ee.getBoundingClientRect();return ot=rt.left,qe=rt.top,ot-=lt.clientLeft||ht.clientLeft||0,qe-=lt.clientTop||ht.clientTop||0,{left:ot,top:qe}}function Oe(Ee){var ot=Be(Ee),qe=Ee.ownerDocument,zt=qe.defaultView||qe.parentWindow;return ot.left+=ct(zt),ot.left}var Re=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function Ke(Ee,ot){var qe=Ee.prefixCls,zt=qe===void 0?"rc-rate":qe,ht=Ee.className,lt=Ee.defaultValue,rt=Ee.value,on=Ee.count,kt=on===void 0?5:on,ae=Ee.allowHalf,re=ae===void 0?!1:ae,te=Ee.allowClear,ie=te===void 0?!0:te,ce=Ee.keyboard,ne=ce===void 0?!0:ce,le=Ee.character,Ie=le===void 0?"\u2605":le,bt=Ee.characterRender,Ue=Ee.disabled,He=Ee.direction,at=He===void 0?"ltr":He,ft=Ee.tabIndex,Pt=ft===void 0?0:ft,Le=Ee.autoFocus,We=Ee.onHoverChange,Nt=Ee.onChange,Qt=Ee.onFocus,un=Ee.onBlur,rn=Ee.onKeyDown,Rt=Ee.onMouseLeave,ln=(0,tt.Z)(Ee,Re),Ht=Ye(),ze=(0,Ae.Z)(Ht,2),yt=ze[0],Kt=ze[1],tn=y.useRef(null),Ve=function(){if(!Ue){var zn;(zn=tn.current)===null||zn===void 0||zn.focus()}};y.useImperativeHandle(ot,function(){return{focus:Ve,blur:function(){if(!Ue){var zn;(zn=tn.current)===null||zn===void 0||zn.blur()}}}});var Ct=(0,je.Z)(lt||0,{value:rt}),$t=(0,Ae.Z)(Ct,2),dt=$t[0],Ot=$t[1],Gt=(0,je.Z)(null),mn=(0,Ae.Z)(Gt,2),An=mn[0],hn=mn[1],Fn=function(zn,xt){var _t=at==="rtl",Je=zn+1;if(re){var Dt=yt(zn),Ge=Oe(Dt),At=Dt.clientWidth;(_t&&xt-Ge>At/2||!_t&&xt-Ge<At/2)&&(Je-=.5)}return Je},Ft=function(zn){Ot(zn),Nt==null||Nt(zn)},Tt=y.useState(!1),Ut=(0,Ae.Z)(Tt,2),an=Ut[0],Xt=Ut[1],yn=function(){Xt(!0),Qt==null||Qt()},sn=function(){Xt(!1),un==null||un()},wn=y.useState(null),Vn=(0,Ae.Z)(wn,2),Mn=Vn[0],$n=Vn[1],Wn=function(zn,xt){var _t=Fn(xt,zn.pageX);_t!==An&&($n(_t),hn(null)),We==null||We(_t)},Hn=function(zn){Ue||($n(null),hn(null),We==null||We(void 0)),zn&&(Rt==null||Rt(zn))},ur=function(zn,xt){var _t=Fn(xt,zn.pageX),Je=!1;ie&&(Je=_t===dt),Hn(),Ft(Je?0:_t),hn(Je?_t:null)},rr=function(zn){var xt=zn.keyCode,_t=at==="rtl",Je=re?.5:1;ne&&(xt===Te.Z.RIGHT&&dt<kt&&!_t?(Ft(dt+Je),zn.preventDefault()):xt===Te.Z.LEFT&&dt>0&&!_t||xt===Te.Z.RIGHT&&dt>0&&_t?(Ft(dt-Je),zn.preventDefault()):xt===Te.Z.LEFT&&dt<kt&&_t&&(Ft(dt+Je),zn.preventDefault())),rn==null||rn(zn)};y.useEffect(function(){Le&&!Ue&&Ve()},[]);var dn=new Array(kt).fill(0).map(function(jn,zn){return y.createElement(Pe,{ref:Kt(zn),index:zn,count:kt,disabled:Ue,prefixCls:"".concat(zt,"-star"),allowHalf:re,value:Mn===null?dt:Mn,onClick:ur,onHover:Wn,key:jn||zn,character:Ie,characterRender:bt,focused:an})}),xn=se()(zt,ht,(0,_e.Z)((0,_e.Z)({},"".concat(zt,"-disabled"),Ue),"".concat(zt,"-rtl"),at==="rtl"));return y.createElement("ul",(0,he.Z)({className:xn,onMouseLeave:Hn,tabIndex:Ue?-1:Pt,onFocus:Ue?null:yn,onBlur:Ue?null:sn,onKeyDown:Ue?null:rr,ref:tn},(0,Ce.Z)(ln,{aria:!0,data:!0,attr:!0})),dn)}var vt=y.forwardRef(Ke),it=vt,Qe=z(48755),ut=z(25399),be=z(36237),et=z(63356),Ne=z(16931),ue=z(51636);const mt=Ee=>{const{componentCls:ot}=Ee;return{[`${ot}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:Ee.marginXS},"> div":{transition:`all ${Ee.motionDurationMid}, outline 0s`,"&:hover":{transform:Ee.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${(0,be.unit)(Ee.lineWidth)} dashed ${Ee.starColor}`,transform:Ee.starHoverScale}},"&-first, &-second":{color:Ee.starBg,transition:`all ${Ee.motionDurationMid}`,userSelect:"none"},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${ot}-star-first, &-half ${ot}-star-second`]:{opacity:1},[`&-half ${ot}-star-first, &-full ${ot}-star-second`]:{color:"inherit"}}}},Ze=Ee=>({[`&-rtl${Ee.componentCls}`]:{direction:"rtl"}}),nt=Ee=>{const{componentCls:ot}=Ee;return{[ot]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,et.Wf)(Ee)),{display:"inline-block",margin:0,padding:0,color:Ee.starColor,fontSize:Ee.starSize,lineHeight:1,listStyle:"none",outline:"none",[`&-disabled${ot} ${ot}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),mt(Ee)),Ze(Ee))}},Mt=Ee=>({starColor:Ee.yellow6,starSize:Ee.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:Ee.colorFillContent});var Fe=(0,Ne.I$)("Rate",Ee=>{const ot=(0,ue.mergeToken)(Ee,{});return[nt(ot)]},Mt),ye=z(2171),Bt=function(Ee,ot){var qe={};for(var zt in Ee)Object.prototype.hasOwnProperty.call(Ee,zt)&&ot.indexOf(zt)<0&&(qe[zt]=Ee[zt]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ht=0,zt=Object.getOwnPropertySymbols(Ee);ht<zt.length;ht++)ot.indexOf(zt[ht])<0&&Object.prototype.propertyIsEnumerable.call(Ee,zt[ht])&&(qe[zt[ht]]=Ee[zt[ht]]);return qe},Lt=y.forwardRef((Ee,ot)=>{const{prefixCls:qe,className:zt,rootClassName:ht,style:lt,tooltips:rt,character:on=y.createElement(Me,null),disabled:kt}=Ee,ae=Bt(Ee,["prefixCls","className","rootClassName","style","tooltips","character","disabled"]),re=(ft,Pt)=>{let{index:Le}=Pt;return rt?y.createElement(ut.Z,{title:rt[Le]},ft):ft},{getPrefixCls:te,direction:ie,rate:ce}=y.useContext(Qe.E_),ne=te("rate",qe),[le,Ie,bt]=Fe(ne),Ue=Object.assign(Object.assign({},ce==null?void 0:ce.style),lt),He=y.useContext(ye.Z),at=kt!=null?kt:He;return le(y.createElement(it,Object.assign({ref:ot,character:on,characterRender:re,disabled:at},ae,{className:se()(zt,ht,Ie,bt,ce==null?void 0:ce.className),style:Ue,prefixCls:ne,direction:ie})))})},82326:function(bn,Wt,z){"use strict";var y=z(59301),he=z(92310),de=z.n(he),$e=z(37463),pe=z(2738),me=z(75030),ve=z(86641),Me=z(45915),ge=z(82855),se=z(48755),_e=z(38406),Ae=z(2171),tt=z(83397),je=z(31756),Te=z(56553),Ce=z(24971),Se=z(70045),Pe=z(57700),Ye=z(1722),ct=z(90376),Be=z(68525),Oe=z(90005),Re=function(ut,be){var et={};for(var Ne in ut)Object.prototype.hasOwnProperty.call(ut,Ne)&&be.indexOf(Ne)<0&&(et[Ne]=ut[Ne]);if(ut!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ue=0,Ne=Object.getOwnPropertySymbols(ut);ue<Ne.length;ue++)be.indexOf(Ne[ue])<0&&Object.prototype.propertyIsEnumerable.call(ut,Ne[ue])&&(et[Ne[ue]]=ut[Ne[ue]]);return et};const Ke="SECRET_COMBOBOX_MODE_DO_NOT_USE",vt=(ut,be)=>{var et;const{prefixCls:Ne,bordered:ue,className:mt,rootClassName:Ze,getPopupContainer:nt,popupClassName:Mt,dropdownClassName:Fe,listHeight:ye=256,placement:Bt,listItemHeight:jt,size:Lt,disabled:Ee,notFoundContent:ot,status:qe,builtinPlacements:zt,dropdownMatchSelectWidth:ht,popupMatchSelectWidth:lt,direction:rt,style:on,allowClear:kt,variant:ae,dropdownStyle:re,transitionName:te,tagRender:ie,maxCount:ce,prefix:ne}=ut,le=Re(ut,["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:Ie,getPrefixCls:bt,renderEmpty:Ue,direction:He,virtual:at,popupMatchSelectWidth:ft,popupOverflow:Pt}=y.useContext(se.E_),Le=(0,se.dj)("select"),[,We]=(0,Pe.ZP)(),Nt=jt!=null?jt:We==null?void 0:We.controlHeight,Qt=bt("select",Ne),un=bt(),rn=rt!=null?rt:He,{compactSize:Rt,compactItemClassnames:ln}=(0,Se.ri)(Qt,rn),[Ht,ze]=(0,Ce.Z)("select",ae,ue),yt=(0,tt.Z)(Qt),[Kt,tn,Ve]=(0,ct.Z)(Qt,yt),Ct=y.useMemo(()=>{const{mode:rr}=ut;if(rr!=="combobox")return rr===Ke?"combobox":rr},[ut.mode]),$t=Ct==="multiple"||Ct==="tags",dt=(0,Oe.Z)(ut.suffixIcon,ut.showArrow),Ot=(et=lt!=null?lt:ht)!==null&&et!==void 0?et:ft,{status:Gt,hasFeedback:mn,isFormItemInput:An,feedbackIcon:hn}=y.useContext(Te.aM),Fn=(0,ge.F)(Gt,qe);let Ft;ot!==void 0?Ft=ot:Ct==="combobox"?Ft=null:Ft=(Ue==null?void 0:Ue("Select"))||y.createElement(_e.Z,{componentName:"Select"});const{suffixIcon:Tt,itemIcon:Ut,removeIcon:an,clearIcon:Xt}=(0,Be.Z)(Object.assign(Object.assign({},le),{multiple:$t,hasFeedback:mn,feedbackIcon:hn,showSuffixIcon:dt,prefixCls:Qt,componentName:"Select"})),yn=kt===!0?{clearIcon:Xt}:kt,sn=(0,pe.Z)(le,["suffixIcon","itemIcon"]),wn=de()(Mt||Fe,{[`${Qt}-dropdown-${rn}`]:rn==="rtl"},Ze,Ve,yt,tn),Vn=(0,je.Z)(rr=>{var dn;return(dn=Lt!=null?Lt:Rt)!==null&&dn!==void 0?dn:rr}),Mn=y.useContext(Ae.Z),$n=Ee!=null?Ee:Mn,Wn=de()({[`${Qt}-lg`]:Vn==="large",[`${Qt}-sm`]:Vn==="small",[`${Qt}-rtl`]:rn==="rtl",[`${Qt}-${Ht}`]:ze,[`${Qt}-in-form-item`]:An},(0,ge.Z)(Qt,Fn,mn),ln,Le.className,mt,Ze,Ve,yt,tn),Hn=y.useMemo(()=>Bt!==void 0?Bt:rn==="rtl"?"bottomRight":"bottomLeft",[Bt,rn]),[ur]=(0,me.Cn)("SelectLike",re==null?void 0:re.zIndex);return Kt(y.createElement($e.ZP,Object.assign({ref:be,virtual:at,showSearch:Le.showSearch},sn,{style:Object.assign(Object.assign({},Le.style),on),dropdownMatchSelectWidth:Ot,transitionName:(0,ve.m)(un,"slide-up",te),builtinPlacements:(0,Ye.Z)(zt,Pt),listHeight:ye,listItemHeight:Nt,mode:Ct,prefixCls:Qt,placement:Hn,direction:rn,prefix:ne,suffixIcon:Tt,menuItemSelectedIcon:Ut,removeIcon:an,allowClear:yn,notFoundContent:Ft,className:Wn,getPopupContainer:nt||Ie,dropdownClassName:wn,disabled:$n,dropdownStyle:Object.assign(Object.assign({},re),{zIndex:ur}),maxCount:$t?ce:void 0,tagRender:$t?ie:void 0})))},it=y.forwardRef(vt),Qe=(0,Me.Z)(it,"dropdownAlign");it.SECRET_COMBOBOX_MODE_DO_NOT_USE=Ke,it.Option=$e.Wx,it.OptGroup=$e.Xo,it._InternalPanelDoNotUseOrYouWillBeFired=Qe,Wt.default=it},1722:function(bn,Wt){"use strict";const z=he=>{const $e={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:he==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},$e),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},$e),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},$e),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},$e),{points:["br","tr"],offset:[0,-4]})}};function y(he,de){return he||z(de)}Wt.Z=y},90376:function(bn,Wt,z){"use strict";z.d(Wt,{Z:function(){return Ne}});var y=z(63356),he=z(56119),de=z(16931),$e=z(51636),pe=z(46e3),me=z(93873);const ve=ue=>{const{optionHeight:mt,optionFontSize:Ze,optionLineHeight:nt,optionPadding:Mt}=ue;return{position:"relative",display:"block",minHeight:mt,padding:Mt,color:ue.colorText,fontWeight:"normal",fontSize:Ze,lineHeight:nt,boxSizing:"border-box"}};var ge=ue=>{const{antCls:mt,componentCls:Ze}=ue,nt=`${Ze}-item`,Mt=`&${mt}-slide-up-enter${mt}-slide-up-enter-active`,Fe=`&${mt}-slide-up-appear${mt}-slide-up-appear-active`,ye=`&${mt}-slide-up-leave${mt}-slide-up-leave-active`,Bt=`${Ze}-dropdown-placement-`,jt=`${nt}-option-selected`;return[{[`${Ze}-dropdown`]:Object.assign(Object.assign({},(0,y.Wf)(ue)),{position:"absolute",top:-9999,zIndex:ue.zIndexPopup,boxSizing:"border-box",padding:ue.paddingXXS,overflow:"hidden",fontSize:ue.fontSize,fontVariant:"initial",backgroundColor:ue.colorBgElevated,borderRadius:ue.borderRadiusLG,outline:"none",boxShadow:ue.boxShadowSecondary,[`
${Mt}${Bt}bottomLeft,
${Fe}${Bt}bottomLeft
`]:{animationName:pe.fJ},[`
${Mt}${Bt}topLeft,
${Fe}${Bt}topLeft,
${Mt}${Bt}topRight,
${Fe}${Bt}topRight
`]:{animationName:pe.Qt},[`${ye}${Bt}bottomLeft`]:{animationName:pe.Uw},[`
${ye}${Bt}topLeft,
${ye}${Bt}topRight
`]:{animationName:pe.ly},"&-hidden":{display:"none"},[nt]:Object.assign(Object.assign({},ve(ue)),{cursor:"pointer",transition:`background ${ue.motionDurationSlow} ease`,borderRadius:ue.borderRadiusSM,"&-group":{color:ue.colorTextDescription,fontSize:ue.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},y.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${nt}-option-disabled)`]:{backgroundColor:ue.optionActiveBg},[`&-selected:not(${nt}-option-disabled)`]:{color:ue.optionSelectedColor,fontWeight:ue.optionSelectedFontWeight,backgroundColor:ue.optionSelectedBg,[`${nt}-option-state`]:{color:ue.colorPrimary}},"&-disabled":{[`&${nt}-option-selected`]:{backgroundColor:ue.colorBgContainerDisabled},color:ue.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:ue.calc(ue.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},ve(ue)),{color:ue.colorTextDisabled})}),[`${jt}:has(+ ${jt})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${jt}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},(0,pe.oN)(ue,"slide-up"),(0,pe.oN)(ue,"slide-down"),(0,me.Fm)(ue,"move-up"),(0,me.Fm)(ue,"move-down")]},se=z(26743),_e=z(36237);function Ae(ue,mt){const{componentCls:Ze,inputPaddingHorizontalBase:nt,borderRadius:Mt}=ue,Fe=ue.calc(ue.controlHeight).sub(ue.calc(ue.lineWidth).mul(2)).equal(),ye=mt?`${Ze}-${mt}`:"";return{[`${Ze}-single${ye}`]:{fontSize:ue.fontSize,height:ue.controlHeight,[`${Ze}-selector`]:Object.assign(Object.assign({},(0,y.Wf)(ue,!0)),{display:"flex",borderRadius:Mt,flex:"1 1 auto",[`${Ze}-selection-wrap:after`]:{lineHeight:(0,_e.unit)(Fe)},[`${Ze}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
${Ze}-selection-item,
${Ze}-selection-placeholder
`]:{display:"block",padding:0,lineHeight:(0,_e.unit)(Fe),transition:`all ${ue.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${Ze}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${Ze}-selection-item:empty:after`,`${Ze}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
&${Ze}-show-arrow ${Ze}-selection-item,
&${Ze}-show-arrow ${Ze}-selection-search,
&${Ze}-show-arrow ${Ze}-selection-placeholder
`]:{paddingInlineEnd:ue.showArrowPaddingInlineEnd},[`&${Ze}-open ${Ze}-selection-item`]:{color:ue.colorTextPlaceholder},[`&:not(${Ze}-customize-input)`]:{[`${Ze}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${(0,_e.unit)(nt)}`,[`${Ze}-selection-search-input`]:{height:Fe,fontSize:ue.fontSize},"&:after":{lineHeight:(0,_e.unit)(Fe)}}},[`&${Ze}-customize-input`]:{[`${Ze}-selector`]:{"&:after":{display:"none"},[`${Ze}-selection-search`]:{position:"static",width:"100%"},[`${Ze}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${(0,_e.unit)(nt)}`,"&:after":{display:"none"}}}}}}}function tt(ue){const{componentCls:mt}=ue,Ze=ue.calc(ue.controlPaddingHorizontalSM).sub(ue.lineWidth).equal();return[Ae(ue),Ae((0,$e.mergeToken)(ue,{controlHeight:ue.controlHeightSM,borderRadius:ue.borderRadiusSM}),"sm"),{[`${mt}-single${mt}-sm`]:{[`&:not(${mt}-customize-input)`]:{[`${mt}-selector`]:{padding:`0 ${(0,_e.unit)(Ze)}`},[`&${mt}-show-arrow ${mt}-selection-search`]:{insetInlineEnd:ue.calc(Ze).add(ue.calc(ue.fontSize).mul(1.5)).equal()},[`
&${mt}-show-arrow ${mt}-selection-item,
&${mt}-show-arrow ${mt}-selection-placeholder
`]:{paddingInlineEnd:ue.calc(ue.fontSize).mul(1.5).equal()}}}},Ae((0,$e.mergeToken)(ue,{controlHeight:ue.singleItemHeightLG,fontSize:ue.fontSizeLG,borderRadius:ue.borderRadiusLG}),"lg")]}const je=ue=>{const{fontSize:mt,lineHeight:Ze,lineWidth:nt,controlHeight:Mt,controlHeightSM:Fe,controlHeightLG:ye,paddingXXS:Bt,controlPaddingHorizontal:jt,zIndexPopupBase:Lt,colorText:Ee,fontWeightStrong:ot,controlItemBgActive:qe,controlItemBgHover:zt,colorBgContainer:ht,colorFillSecondary:lt,colorBgContainerDisabled:rt,colorTextDisabled:on,colorPrimaryHover:kt,colorPrimary:ae,controlOutline:re}=ue,te=Bt*2,ie=nt*2,ce=Math.min(Mt-te,Mt-ie),ne=Math.min(Fe-te,Fe-ie),le=Math.min(ye-te,ye-ie);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(Bt/2),zIndexPopup:Lt+50,optionSelectedColor:Ee,optionSelectedFontWeight:ot,optionSelectedBg:qe,optionActiveBg:zt,optionPadding:`${(Mt-mt*Ze)/2}px ${jt}px`,optionFontSize:mt,optionLineHeight:Ze,optionHeight:Mt,selectorBg:ht,clearBg:ht,singleItemHeightLG:ye,multipleItemBg:lt,multipleItemBorderColor:"transparent",multipleItemHeight:ce,multipleItemHeightSM:ne,multipleItemHeightLG:le,multipleSelectorBgDisabled:rt,multipleItemColorDisabled:on,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(ue.fontSize*1.25),hoverBorderColor:kt,activeBorderColor:ae,activeOutlineColor:re,selectAffixPadding:Bt}},Te=(ue,mt)=>{const{componentCls:Ze,antCls:nt,controlOutlineWidth:Mt}=ue;return{[`&:not(${Ze}-customize-input) ${Ze}-selector`]:{border:`${(0,_e.unit)(ue.lineWidth)} ${ue.lineType} ${mt.borderColor}`,background:ue.selectorBg},[`&:not(${Ze}-disabled):not(${Ze}-customize-input):not(${nt}-pagination-size-changer)`]:{[`&:hover ${Ze}-selector`]:{borderColor:mt.hoverBorderHover},[`${Ze}-focused& ${Ze}-selector`]:{borderColor:mt.activeBorderColor,boxShadow:`0 0 0 ${(0,_e.unit)(Mt)} ${mt.activeOutlineColor}`,outline:0},[`${Ze}-prefix`]:{color:mt.color}}}},Ce=(ue,mt)=>({[`&${ue.componentCls}-status-${mt.status}`]:Object.assign({},Te(ue,mt))}),Se=ue=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},Te(ue,{borderColor:ue.colorBorder,hoverBorderHover:ue.hoverBorderColor,activeBorderColor:ue.activeBorderColor,activeOutlineColor:ue.activeOutlineColor,color:ue.colorText})),Ce(ue,{status:"error",borderColor:ue.colorError,hoverBorderHover:ue.colorErrorHover,activeBorderColor:ue.colorError,activeOutlineColor:ue.colorErrorOutline,color:ue.colorError})),Ce(ue,{status:"warning",borderColor:ue.colorWarning,hoverBorderHover:ue.colorWarningHover,activeBorderColor:ue.colorWarning,activeOutlineColor:ue.colorWarningOutline,color:ue.colorWarning})),{[`&${ue.componentCls}-disabled`]:{[`&:not(${ue.componentCls}-customize-input) ${ue.componentCls}-selector`]:{background:ue.colorBgContainerDisabled,color:ue.colorTextDisabled}},[`&${ue.componentCls}-multiple ${ue.componentCls}-selection-item`]:{background:ue.multipleItemBg,border:`${(0,_e.unit)(ue.lineWidth)} ${ue.lineType} ${ue.multipleItemBorderColor}`}})}),Pe=(ue,mt)=>{const{componentCls:Ze,antCls:nt}=ue;return{[`&:not(${Ze}-customize-input) ${Ze}-selector`]:{background:mt.bg,border:`${(0,_e.unit)(ue.lineWidth)} ${ue.lineType} transparent`,color:mt.color},[`&:not(${Ze}-disabled):not(${Ze}-customize-input):not(${nt}-pagination-size-changer)`]:{[`&:hover ${Ze}-selector`]:{background:mt.hoverBg},[`${Ze}-focused& ${Ze}-selector`]:{background:ue.selectorBg,borderColor:mt.activeBorderColor,outline:0}}}},Ye=(ue,mt)=>({[`&${ue.componentCls}-status-${mt.status}`]:Object.assign({},Pe(ue,mt))}),ct=ue=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},Pe(ue,{bg:ue.colorFillTertiary,hoverBg:ue.colorFillSecondary,activeBorderColor:ue.activeBorderColor,color:ue.colorText})),Ye(ue,{status:"error",bg:ue.colorErrorBg,hoverBg:ue.colorErrorBgHover,activeBorderColor:ue.colorError,color:ue.colorError})),Ye(ue,{status:"warning",bg:ue.colorWarningBg,hoverBg:ue.colorWarningBgHover,activeBorderColor:ue.colorWarning,color:ue.colorWarning})),{[`&${ue.componentCls}-disabled`]:{[`&:not(${ue.componentCls}-customize-input) ${ue.componentCls}-selector`]:{borderColor:ue.colorBorder,background:ue.colorBgContainerDisabled,color:ue.colorTextDisabled}},[`&${ue.componentCls}-multiple ${ue.componentCls}-selection-item`]:{background:ue.colorBgContainer,border:`${(0,_e.unit)(ue.lineWidth)} ${ue.lineType} ${ue.colorSplit}`}})}),Be=ue=>({"&-borderless":{[`${ue.componentCls}-selector`]:{background:"transparent",border:`${(0,_e.unit)(ue.lineWidth)} ${ue.lineType} transparent`},[`&${ue.componentCls}-disabled`]:{[`&:not(${ue.componentCls}-customize-input) ${ue.componentCls}-selector`]:{color:ue.colorTextDisabled}},[`&${ue.componentCls}-multiple ${ue.componentCls}-selection-item`]:{background:ue.multipleItemBg,border:`${(0,_e.unit)(ue.lineWidth)} ${ue.lineType} ${ue.multipleItemBorderColor}`},[`&${ue.componentCls}-status-error`]:{[`${ue.componentCls}-prefix, ${ue.componentCls}-selection-item`]:{color:ue.colorError}},[`&${ue.componentCls}-status-warning`]:{[`${ue.componentCls}-prefix, ${ue.componentCls}-selection-item`]:{color:ue.colorWarning}}}}),Oe=(ue,mt)=>{const{componentCls:Ze,antCls:nt}=ue;return{[`&:not(${Ze}-customize-input) ${Ze}-selector`]:{borderWidth:`0 0 ${(0,_e.unit)(ue.lineWidth)} 0`,borderStyle:`none none ${ue.lineType} none`,borderColor:mt.borderColor,background:ue.selectorBg,borderRadius:0},[`&:not(${Ze}-disabled):not(${Ze}-customize-input):not(${nt}-pagination-size-changer)`]:{[`&:hover ${Ze}-selector`]:{borderColor:mt.hoverBorderHover},[`${Ze}-focused& ${Ze}-selector`]:{borderColor:mt.activeBorderColor,outline:0},[`${Ze}-prefix`]:{color:mt.color}}}},Re=(ue,mt)=>({[`&${ue.componentCls}-status-${mt.status}`]:Object.assign({},Oe(ue,mt))}),Ke=ue=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},Oe(ue,{borderColor:ue.colorBorder,hoverBorderHover:ue.hoverBorderColor,activeBorderColor:ue.activeBorderColor,activeOutlineColor:ue.activeOutlineColor,color:ue.colorText})),Re(ue,{status:"error",borderColor:ue.colorError,hoverBorderHover:ue.colorErrorHover,activeBorderColor:ue.colorError,activeOutlineColor:ue.colorErrorOutline,color:ue.colorError})),Re(ue,{status:"warning",borderColor:ue.colorWarning,hoverBorderHover:ue.colorWarningHover,activeBorderColor:ue.colorWarning,activeOutlineColor:ue.colorWarningOutline,color:ue.colorWarning})),{[`&${ue.componentCls}-disabled`]:{[`&:not(${ue.componentCls}-customize-input) ${ue.componentCls}-selector`]:{color:ue.colorTextDisabled}},[`&${ue.componentCls}-multiple ${ue.componentCls}-selection-item`]:{background:ue.multipleItemBg,border:`${(0,_e.unit)(ue.lineWidth)} ${ue.lineType} ${ue.multipleItemBorderColor}`}})});var it=ue=>({[ue.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},Se(ue)),ct(ue)),Be(ue)),Ke(ue))});const Qe=ue=>{const{componentCls:mt}=ue;return{position:"relative",transition:`all ${ue.motionDurationMid} ${ue.motionEaseInOut}`,input:{cursor:"pointer"},[`${mt}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${mt}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},ut=ue=>{const{componentCls:mt}=ue;return{[`${mt}-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"}}}},be=ue=>{const{antCls:mt,componentCls:Ze,inputPaddingHorizontalBase:nt,iconCls:Mt}=ue;return{[Ze]:Object.assign(Object.assign({},(0,y.Wf)(ue)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${Ze}-customize-input) ${Ze}-selector`]:Object.assign(Object.assign({},Qe(ue)),ut(ue)),[`${Ze}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},y.vS),{[`> ${mt}-typography`]:{display:"inline"}}),[`${Ze}-selection-placeholder`]:Object.assign(Object.assign({},y.vS),{flex:1,color:ue.colorTextPlaceholder,pointerEvents:"none"}),[`${Ze}-arrow`]:Object.assign(Object.assign({},(0,y.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:nt,height:ue.fontSizeIcon,marginTop:ue.calc(ue.fontSizeIcon).mul(-1).div(2).equal(),color:ue.colorTextQuaternary,fontSize:ue.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${ue.motionDurationSlow} ease`,[Mt]:{verticalAlign:"top",transition:`transform ${ue.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${Ze}-suffix)`]:{pointerEvents:"auto"}},[`${Ze}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${Ze}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${Ze}-prefix`]:{flex:"none",marginInlineEnd:ue.selectAffixPadding},[`${Ze}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:nt,zIndex:1,display:"inline-block",width:ue.fontSizeIcon,height:ue.fontSizeIcon,marginTop:ue.calc(ue.fontSizeIcon).mul(-1).div(2).equal(),color:ue.colorTextQuaternary,fontSize:ue.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${ue.motionDurationMid} ease, opacity ${ue.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:ue.colorTextTertiary}},[`&:hover ${Ze}-clear`]:{opacity:1,background:ue.colorBgBase,borderRadius:"50%"}}),[`${Ze}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${Ze}-has-feedback`]:{[`${Ze}-clear`]:{insetInlineEnd:ue.calc(nt).add(ue.fontSize).add(ue.paddingXS).equal()}}}}}},et=ue=>{const{componentCls:mt}=ue;return[{[mt]:{[`&${mt}-in-form-item`]:{width:"100%"}}},be(ue),tt(ue),(0,se.ZP)(ue),ge(ue),{[`${mt}-rtl`]:{direction:"rtl"}},(0,he.c)(ue,{borderElCls:`${mt}-selector`,focusElCls:`${mt}-focused`})]};var Ne=(0,de.I$)("Select",(ue,mt)=>{let{rootPrefixCls:Ze}=mt;const nt=(0,$e.mergeToken)(ue,{rootPrefixCls:Ze,inputPaddingHorizontalBase:ue.calc(ue.paddingSM).sub(1).equal(),multipleSelectItemHeight:ue.multipleItemHeight,selectHeight:ue.controlHeight});return[et(nt),it(nt)]},je,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}})},26743:function(bn,Wt,z){"use strict";z.d(Wt,{_z:function(){return me},gp:function(){return $e}});var y=z(36237),he=z(63356),de=z(51636);const $e=se=>{const{multipleSelectItemHeight:_e,paddingXXS:Ae,lineWidth:tt,INTERNAL_FIXED_ITEM_MARGIN:je}=se,Te=se.max(se.calc(Ae).sub(tt).equal(),0),Ce=se.max(se.calc(Te).sub(je).equal(),0);return{basePadding:Te,containerPadding:Ce,itemHeight:(0,y.unit)(_e),itemLineHeight:(0,y.unit)(se.calc(_e).sub(se.calc(se.lineWidth).mul(2)).equal())}},pe=se=>{const{multipleSelectItemHeight:_e,selectHeight:Ae,lineWidth:tt}=se;return se.calc(Ae).sub(_e).div(2).sub(tt).equal()},me=se=>{const{componentCls:_e,iconCls:Ae,borderRadiusSM:tt,motionDurationSlow:je,paddingXS:Te,multipleItemColorDisabled:Ce,multipleItemBorderColorDisabled:Se,colorIcon:Pe,colorIconHover:Ye,INTERNAL_FIXED_ITEM_MARGIN:ct}=se;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:ct,borderRadius:tt,cursor:"default",transition:`font-size ${je}, line-height ${je}, height ${je}`,marginInlineEnd:se.calc(ct).mul(2).equal(),paddingInlineStart:Te,paddingInlineEnd:se.calc(Te).div(2).equal(),[`${_e}-disabled&`]:{color:Ce,borderColor:Se,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:se.calc(Te).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,he.Ro)()),{display:"inline-flex",alignItems:"center",color:Pe,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${Ae}`]:{verticalAlign:"-0.2em"},"&:hover":{color:Ye}})}}}},ve=(se,_e)=>{const{componentCls:Ae,INTERNAL_FIXED_ITEM_MARGIN:tt}=se,je=`${Ae}-selection-overflow`,Te=se.multipleSelectItemHeight,Ce=pe(se),Se=_e?`${Ae}-${_e}`:"",Pe=$e(se);return{[`${Ae}-multiple${Se}`]:Object.assign(Object.assign({},me(se)),{[`${Ae}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:Pe.basePadding,paddingBlock:Pe.containerPadding,borderRadius:se.borderRadius,[`${Ae}-disabled&`]:{background:se.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${(0,y.unit)(tt)} 0`,lineHeight:(0,y.unit)(Te),visibility:"hidden",content:'"\\a0"'}},[`${Ae}-selection-item`]:{height:Pe.itemHeight,lineHeight:(0,y.unit)(Pe.itemLineHeight)},[`${Ae}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:(0,y.unit)(Te),marginBlock:tt}},[`${Ae}-prefix`]:{marginInlineStart:se.calc(se.inputPaddingHorizontalBase).sub(Pe.basePadding).equal()},[`${je}-item + ${je}-item,
${Ae}-prefix + ${Ae}-selection-wrap
`]:{[`${Ae}-selection-search`]:{marginInlineStart:0},[`${Ae}-selection-placeholder`]:{insetInlineStart:0}},[`${je}-item-suffix`]:{minHeight:Pe.itemHeight,marginBlock:tt},[`${Ae}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:se.calc(se.inputPaddingHorizontalBase).sub(Ce).equal(),"\n &-input,\n &-mirror\n ":{height:Te,fontFamily:se.fontFamily,lineHeight:(0,y.unit)(Te),transition:`all ${se.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${Ae}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:se.calc(se.inputPaddingHorizontalBase).sub(Pe.basePadding).equal(),insetInlineEnd:se.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${se.motionDurationSlow}`}})}};function Me(se,_e){const{componentCls:Ae}=se,tt=_e?`${Ae}-${_e}`:"",je={[`${Ae}-multiple${tt}`]:{fontSize:se.fontSize,[`${Ae}-selector`]:{[`${Ae}-show-search&`]:{cursor:"text"}},[`
&${Ae}-show-arrow ${Ae}-selector,
&${Ae}-allow-clear ${Ae}-selector
`]:{paddingInlineEnd:se.calc(se.fontSizeIcon).add(se.controlPaddingHorizontal).equal()}}};return[ve(se,_e),je]}const ge=se=>{const{componentCls:_e}=se,Ae=(0,de.mergeToken)(se,{selectHeight:se.controlHeightSM,multipleSelectItemHeight:se.multipleItemHeightSM,borderRadius:se.borderRadiusSM,borderRadiusSM:se.borderRadiusXS}),tt=(0,de.mergeToken)(se,{fontSize:se.fontSizeLG,selectHeight:se.controlHeightLG,multipleSelectItemHeight:se.multipleItemHeightLG,borderRadius:se.borderRadiusLG,borderRadiusSM:se.borderRadius});return[Me(se),Me(Ae,"sm"),{[`${_e}-multiple${_e}-sm`]:{[`${_e}-selection-placeholder`]:{insetInline:se.calc(se.controlPaddingHorizontalSM).sub(se.lineWidth).equal()},[`${_e}-selection-search`]:{marginInlineStart:2}}},Me(tt,"lg")]};Wt.ZP=ge},68525:function(bn,Wt,z){"use strict";z.d(Wt,{Z:function(){return Me}});var y=z(59301),he=z(40001),de=z(19248),$e=z(99267),pe=z(84105),me=z(58617),ve=z(47472);function Me(ge){let{suffixIcon:se,clearIcon:_e,menuItemSelectedIcon:Ae,removeIcon:tt,loading:je,multiple:Te,hasFeedback:Ce,prefixCls:Se,showSuffixIcon:Pe,feedbackIcon:Ye,showArrow:ct,componentName:Be}=ge;const Oe=_e!=null?_e:y.createElement(de.Z,null),Re=Qe=>se===null&&!Ce&&!ct?null:y.createElement(y.Fragment,null,Pe!==!1&&Qe,Ce&&Ye);let Ke=null;if(se!==void 0)Ke=Re(se);else if(je)Ke=Re(y.createElement(me.Z,{spin:!0}));else{const Qe=`${Se}-suffix`;Ke=ut=>{let{open:be,showSearch:et}=ut;return Re(be&&et?y.createElement(ve.Z,{className:Qe}):y.createElement(pe.Z,{className:Qe}))}}let vt=null;Ae!==void 0?vt=Ae:Te?vt=y.createElement(he.Z,null):vt=null;let it=null;return tt!==void 0?it=tt:it=y.createElement($e.Z,null),{clearIcon:Oe,suffixIcon:Ke,itemIcon:vt,removeIcon:it}}},90005:function(bn,Wt,z){"use strict";z.d(Wt,{Z:function(){return y}});function y(he,de){return de!==void 0?de:he!==null}},11938:function(bn,Wt,z){"use strict";z.d(Wt,{default:function(){return ut}});var y=z(59301),he=z(40192),de=z(22703),$e=z(92310),pe=z.n($e),me=z(26112),ve=z(48755),Me=z(458),se=be=>{const{value:et,formatter:Ne,precision:ue,decimalSeparator:mt,groupSeparator:Ze="",prefixCls:nt}=be;let Mt;if(typeof Ne=="function")Mt=Ne(et);else{const Fe=String(et),ye=Fe.match(/^(-?)(\d*)(\.(\d+))?$/);if(!ye||Fe==="-")Mt=Fe;else{const Bt=ye[1];let jt=ye[2]||"0",Lt=ye[4]||"";jt=jt.replace(/\B(?=(\d{3})+(?!\d))/g,Ze),typeof ue=="number"&&(Lt=Lt.padEnd(ue,"0").slice(0,ue>0?ue:0)),Lt&&(Lt=`${mt}${Lt}`),Mt=[y.createElement("span",{key:"int",className:`${nt}-content-value-int`},Bt,jt),Lt&&y.createElement("span",{key:"decimal",className:`${nt}-content-value-decimal`},Lt)]}}return y.createElement("span",{className:`${nt}-content-value`},Mt)},_e=z(63356),Ae=z(16931),tt=z(51636);const je=be=>{const{componentCls:et,marginXXS:Ne,padding:ue,colorTextDescription:mt,titleFontSize:Ze,colorTextHeading:nt,contentFontSize:Mt,fontFamily:Fe}=be;return{[et]:Object.assign(Object.assign({},(0,_e.Wf)(be)),{[`${et}-title`]:{marginBottom:Ne,color:mt,fontSize:Ze},[`${et}-skeleton`]:{paddingTop:ue},[`${et}-content`]:{color:nt,fontSize:Mt,fontFamily:Fe,[`${et}-content-value`]:{display:"inline-block",direction:"ltr"},[`${et}-content-prefix, ${et}-content-suffix`]:{display:"inline-block"},[`${et}-content-prefix`]:{marginInlineEnd:Ne},[`${et}-content-suffix`]:{marginInlineStart:Ne}}})}},Te=be=>{const{fontSizeHeading3:et,fontSize:Ne}=be;return{titleFontSize:Ne,contentFontSize:et}};var Ce=(0,Ae.I$)("Statistic",be=>{const et=(0,tt.mergeToken)(be,{});return[je(et)]},Te),Se=function(be,et){var Ne={};for(var ue in be)Object.prototype.hasOwnProperty.call(be,ue)&&et.indexOf(ue)<0&&(Ne[ue]=be[ue]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var mt=0,ue=Object.getOwnPropertySymbols(be);mt<ue.length;mt++)et.indexOf(ue[mt])<0&&Object.prototype.propertyIsEnumerable.call(be,ue[mt])&&(Ne[ue[mt]]=be[ue[mt]]);return Ne},Ye=be=>{const{prefixCls:et,className:Ne,rootClassName:ue,style:mt,valueStyle:Ze,value:nt=0,title:Mt,valueRender:Fe,prefix:ye,suffix:Bt,loading:jt=!1,formatter:Lt,precision:Ee,decimalSeparator:ot=".",groupSeparator:qe=",",onMouseEnter:zt,onMouseLeave:ht}=be,lt=Se(be,["prefixCls","className","rootClassName","style","valueStyle","value","title","valueRender","prefix","suffix","loading","formatter","precision","decimalSeparator","groupSeparator","onMouseEnter","onMouseLeave"]),{getPrefixCls:rt,direction:on,className:kt,style:ae}=(0,ve.dj)("statistic"),re=rt("statistic",et),[te,ie,ce]=Ce(re),ne=y.createElement(se,{decimalSeparator:ot,groupSeparator:qe,prefixCls:re,formatter:Lt,precision:Ee,value:nt}),le=pe()(re,{[`${re}-rtl`]:on==="rtl"},kt,Ne,ue,ie,ce),Ie=(0,me.Z)(lt,{aria:!0,data:!0});return te(y.createElement("div",Object.assign({},Ie,{className:le,style:Object.assign(Object.assign({},ae),mt),onMouseEnter:zt,onMouseLeave:ht}),Mt&&y.createElement("div",{className:`${re}-title`},Mt),y.createElement(Me.Z,{paragraph:!1,loading:jt,className:`${re}-skeleton`},y.createElement("div",{style:Ze,className:`${re}-content`},ye&&y.createElement("span",{className:`${re}-content-prefix`},ye),Fe?Fe(ne):ne,Bt&&y.createElement("span",{className:`${re}-content-suffix`},Bt)))))};const ct=[["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 Be(be,et){let Ne=be;const ue=/\[[^\]]*]/g,mt=(et.match(ue)||[]).map(Fe=>Fe.slice(1,-1)),Ze=et.replace(ue,"[]"),nt=ct.reduce((Fe,ye)=>{let[Bt,jt]=ye;if(Fe.includes(Bt)){const Lt=Math.floor(Ne/jt);return Ne-=Lt*jt,Fe.replace(new RegExp(`${Bt}+`,"g"),Ee=>{const ot=Ee.length;return Lt.toString().padStart(ot,"0")})}return Fe},Ze);let Mt=0;return nt.replace(ue,()=>{const Fe=mt[Mt];return Mt+=1,Fe})}function Oe(be,et){const{format:Ne=""}=et,ue=new Date(be).getTime(),mt=Date.now(),Ze=Math.max(ue-mt,0);return Be(Ze,Ne)}var Re=function(be,et){var Ne={};for(var ue in be)Object.prototype.hasOwnProperty.call(be,ue)&&et.indexOf(ue)<0&&(Ne[ue]=be[ue]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var mt=0,ue=Object.getOwnPropertySymbols(be);mt<ue.length;mt++)et.indexOf(ue[mt])<0&&Object.prototype.propertyIsEnumerable.call(be,ue[mt])&&(Ne[ue[mt]]=be[ue[mt]]);return Ne};const Ke=1e3/30;function vt(be){return new Date(be).getTime()}const it=be=>{const{value:et,format:Ne="HH:mm:ss",onChange:ue,onFinish:mt}=be,Ze=Re(be,["value","format","onChange","onFinish"]),nt=(0,he.Z)(),Mt=y.useRef(null),Fe=()=>{mt==null||mt(),Mt.current&&(clearInterval(Mt.current),Mt.current=null)},ye=()=>{const Lt=vt(et);Lt>=Date.now()&&(Mt.current=setInterval(()=>{nt(),ue==null||ue(Lt-Date.now()),Lt<Date.now()&&Fe()},Ke))};y.useEffect(()=>(ye(),()=>{Mt.current&&(clearInterval(Mt.current),Mt.current=null)}),[et]);const Bt=(Lt,Ee)=>Oe(Lt,Object.assign(Object.assign({},Ee),{format:Ne})),jt=Lt=>(0,de.Tm)(Lt,{title:void 0});return y.createElement(Ye,Object.assign({},Ze,{value:et,valueRender:jt,formatter:Bt}))};var Qe=y.memo(it);Ye.Countdown=Qe;var ut=Ye},58755:function(bn,Wt,z){"use strict";z.d(Wt,{Z:function(){return mt}});var y=z(59301),he=z(58617),de=z(92310),$e=z.n(de),pe=z(54476),me=z(20068),ve=z(42978),Me=z(75931),ge=z(18929),se=z(10228),_e=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Ae=y.forwardRef(function(Ze,nt){var Mt,Fe=Ze.prefixCls,ye=Fe===void 0?"rc-switch":Fe,Bt=Ze.className,jt=Ze.checked,Lt=Ze.defaultChecked,Ee=Ze.disabled,ot=Ze.loadingIcon,qe=Ze.checkedChildren,zt=Ze.unCheckedChildren,ht=Ze.onClick,lt=Ze.onChange,rt=Ze.onKeyDown,on=(0,Me.Z)(Ze,_e),kt=(0,ge.Z)(!1,{value:jt,defaultValue:Lt}),ae=(0,ve.Z)(kt,2),re=ae[0],te=ae[1];function ie(Ie,bt){var Ue=re;return Ee||(Ue=Ie,te(Ue),lt==null||lt(Ue,bt)),Ue}function ce(Ie){Ie.which===se.Z.LEFT?ie(!1,Ie):Ie.which===se.Z.RIGHT&&ie(!0,Ie),rt==null||rt(Ie)}function ne(Ie){var bt=ie(!re,Ie);ht==null||ht(bt,Ie)}var le=$e()(ye,Bt,(Mt={},(0,me.Z)(Mt,"".concat(ye,"-checked"),re),(0,me.Z)(Mt,"".concat(ye,"-disabled"),Ee),Mt));return y.createElement("button",(0,pe.Z)({},on,{type:"button",role:"switch","aria-checked":re,disabled:Ee,className:le,ref:nt,onKeyDown:ce,onClick:ne}),ot,y.createElement("span",{className:"".concat(ye,"-inner")},y.createElement("span",{className:"".concat(ye,"-inner-checked")},qe),y.createElement("span",{className:"".concat(ye,"-inner-unchecked")},zt)))});Ae.displayName="Switch";var tt=Ae,je=z(12919),Te=z(48755),Ce=z(2171),Se=z(31756),Pe=z(36237),Ye=z(17835),ct=z(63356),Be=z(16931),Oe=z(51636);const Re=Ze=>{const{componentCls:nt,trackHeightSM:Mt,trackPadding:Fe,trackMinWidthSM:ye,innerMinMarginSM:Bt,innerMaxMarginSM:jt,handleSizeSM:Lt,calc:Ee}=Ze,ot=`${nt}-inner`,qe=(0,Pe.unit)(Ee(Lt).add(Ee(Fe).mul(2)).equal()),zt=(0,Pe.unit)(Ee(jt).mul(2).equal());return{[nt]:{[`&${nt}-small`]:{minWidth:ye,height:Mt,lineHeight:(0,Pe.unit)(Mt),[`${nt}-inner`]:{paddingInlineStart:jt,paddingInlineEnd:Bt,[`${ot}-checked, ${ot}-unchecked`]:{minHeight:Mt},[`${ot}-checked`]:{marginInlineStart:`calc(-100% + ${qe} - ${zt})`,marginInlineEnd:`calc(100% - ${qe} + ${zt})`},[`${ot}-unchecked`]:{marginTop:Ee(Mt).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${nt}-handle`]:{width:Lt,height:Lt},[`${nt}-loading-icon`]:{top:Ee(Ee(Lt).sub(Ze.switchLoadingIconSize)).div(2).equal(),fontSize:Ze.switchLoadingIconSize},[`&${nt}-checked`]:{[`${nt}-inner`]:{paddingInlineStart:Bt,paddingInlineEnd:jt,[`${ot}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${ot}-unchecked`]:{marginInlineStart:`calc(100% - ${qe} + ${zt})`,marginInlineEnd:`calc(-100% + ${qe} - ${zt})`}},[`${nt}-handle`]:{insetInlineStart:`calc(100% - ${(0,Pe.unit)(Ee(Lt).add(Fe).equal())})`}},[`&:not(${nt}-disabled):active`]:{[`&:not(${nt}-checked) ${ot}`]:{[`${ot}-unchecked`]:{marginInlineStart:Ee(Ze.marginXXS).div(2).equal(),marginInlineEnd:Ee(Ze.marginXXS).mul(-1).div(2).equal()}},[`&${nt}-checked ${ot}`]:{[`${ot}-checked`]:{marginInlineStart:Ee(Ze.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:Ee(Ze.marginXXS).div(2).equal()}}}}}}},Ke=Ze=>{const{componentCls:nt,handleSize:Mt,calc:Fe}=Ze;return{[nt]:{[`${nt}-loading-icon${Ze.iconCls}`]:{position:"relative",top:Fe(Fe(Mt).sub(Ze.fontSize)).div(2).equal(),color:Ze.switchLoadingIconColor,verticalAlign:"top"},[`&${nt}-checked ${nt}-loading-icon`]:{color:Ze.switchColor}}}},vt=Ze=>{const{componentCls:nt,trackPadding:Mt,handleBg:Fe,handleShadow:ye,handleSize:Bt,calc:jt}=Ze,Lt=`${nt}-handle`;return{[nt]:{[Lt]:{position:"absolute",top:Mt,insetInlineStart:Mt,width:Bt,height:Bt,transition:`all ${Ze.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:Fe,borderRadius:jt(Bt).div(2).equal(),boxShadow:ye,transition:`all ${Ze.switchDuration} ease-in-out`,content:'""'}},[`&${nt}-checked ${Lt}`]:{insetInlineStart:`calc(100% - ${(0,Pe.unit)(jt(Bt).add(Mt).equal())})`},[`&:not(${nt}-disabled):active`]:{[`${Lt}::before`]:{insetInlineEnd:Ze.switchHandleActiveInset,insetInlineStart:0},[`&${nt}-checked ${Lt}::before`]:{insetInlineEnd:0,insetInlineStart:Ze.switchHandleActiveInset}}}}},it=Ze=>{const{componentCls:nt,trackHeight:Mt,trackPadding:Fe,innerMinMargin:ye,innerMaxMargin:Bt,handleSize:jt,calc:Lt}=Ze,Ee=`${nt}-inner`,ot=(0,Pe.unit)(Lt(jt).add(Lt(Fe).mul(2)).equal()),qe=(0,Pe.unit)(Lt(Bt).mul(2).equal());return{[nt]:{[Ee]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:Bt,paddingInlineEnd:ye,transition:`padding-inline-start ${Ze.switchDuration} ease-in-out, padding-inline-end ${Ze.switchDuration} ease-in-out`,[`${Ee}-checked, ${Ee}-unchecked`]:{display:"block",color:Ze.colorTextLightSolid,fontSize:Ze.fontSizeSM,transition:`margin-inline-start ${Ze.switchDuration} ease-in-out, margin-inline-end ${Ze.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:Mt},[`${Ee}-checked`]:{marginInlineStart:`calc(-100% + ${ot} - ${qe})`,marginInlineEnd:`calc(100% - ${ot} + ${qe})`},[`${Ee}-unchecked`]:{marginTop:Lt(Mt).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${nt}-checked ${Ee}`]:{paddingInlineStart:ye,paddingInlineEnd:Bt,[`${Ee}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Ee}-unchecked`]:{marginInlineStart:`calc(100% - ${ot} + ${qe})`,marginInlineEnd:`calc(-100% + ${ot} - ${qe})`}},[`&:not(${nt}-disabled):active`]:{[`&:not(${nt}-checked) ${Ee}`]:{[`${Ee}-unchecked`]:{marginInlineStart:Lt(Fe).mul(2).equal(),marginInlineEnd:Lt(Fe).mul(-1).mul(2).equal()}},[`&${nt}-checked ${Ee}`]:{[`${Ee}-checked`]:{marginInlineStart:Lt(Fe).mul(-1).mul(2).equal(),marginInlineEnd:Lt(Fe).mul(2).equal()}}}}}},Qe=Ze=>{const{componentCls:nt,trackHeight:Mt,trackMinWidth:Fe}=Ze;return{[nt]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,ct.Wf)(Ze)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:Fe,height:Mt,lineHeight:(0,Pe.unit)(Mt),verticalAlign:"middle",background:Ze.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${Ze.motionDurationMid}`,userSelect:"none",[`&:hover:not(${nt}-disabled)`]:{background:Ze.colorTextTertiary}}),(0,ct.Qy)(Ze)),{[`&${nt}-checked`]:{background:Ze.switchColor,[`&:hover:not(${nt}-disabled)`]:{background:Ze.colorPrimaryHover}},[`&${nt}-loading, &${nt}-disabled`]:{cursor:"not-allowed",opacity:Ze.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${nt}-rtl`]:{direction:"rtl"}})}},ut=Ze=>{const{fontSize:nt,lineHeight:Mt,controlHeight:Fe,colorWhite:ye}=Ze,Bt=nt*Mt,jt=Fe/2,Lt=2,Ee=Bt-Lt*2,ot=jt-Lt*2;return{trackHeight:Bt,trackHeightSM:jt,trackMinWidth:Ee*2+Lt*4,trackMinWidthSM:ot*2+Lt*2,trackPadding:Lt,handleBg:ye,handleSize:Ee,handleSizeSM:ot,handleShadow:`0 2px 4px 0 ${new Ye.FastColor("#00230b").setA(.2).toRgbString()}`,innerMinMargin:Ee/2,innerMaxMargin:Ee+Lt+Lt*2,innerMinMarginSM:ot/2,innerMaxMarginSM:ot+Lt+Lt*2}};var be=(0,Be.I$)("Switch",Ze=>{const nt=(0,Oe.mergeToken)(Ze,{switchDuration:Ze.motionDurationMid,switchColor:Ze.colorPrimary,switchDisabledOpacity:Ze.opacityLoading,switchLoadingIconSize:Ze.calc(Ze.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${Ze.opacityLoading})`,switchHandleActiveInset:"-30%"});return[Qe(nt),it(nt),vt(nt),Ke(nt),Re(nt)]},ut),et=function(Ze,nt){var Mt={};for(var Fe in Ze)Object.prototype.hasOwnProperty.call(Ze,Fe)&&nt.indexOf(Fe)<0&&(Mt[Fe]=Ze[Fe]);if(Ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,Fe=Object.getOwnPropertySymbols(Ze);ye<Fe.length;ye++)nt.indexOf(Fe[ye])<0&&Object.prototype.propertyIsEnumerable.call(Ze,Fe[ye])&&(Mt[Fe[ye]]=Ze[Fe[ye]]);return Mt};const ue=y.forwardRef((Ze,nt)=>{const{prefixCls:Mt,size:Fe,disabled:ye,loading:Bt,className:jt,rootClassName:Lt,style:Ee,checked:ot,value:qe,defaultChecked:zt,defaultValue:ht,onChange:lt}=Ze,rt=et(Ze,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[on,kt]=(0,ge.Z)(!1,{value:ot!=null?ot:qe,defaultValue:zt!=null?zt:ht}),{getPrefixCls:ae,direction:re,switch:te}=y.useContext(Te.E_),ie=y.useContext(Ce.Z),ce=(ye!=null?ye:ie)||Bt,ne=ae("switch",Mt),le=y.createElement("div",{className:`${ne}-handle`},Bt&&y.createElement(he.Z,{className:`${ne}-loading-icon`})),[Ie,bt,Ue]=be(ne),He=(0,Se.Z)(Fe),at=$e()(te==null?void 0:te.className,{[`${ne}-small`]:He==="small",[`${ne}-loading`]:Bt,[`${ne}-rtl`]:re==="rtl"},jt,Lt,bt,Ue),ft=Object.assign(Object.assign({},te==null?void 0:te.style),Ee),Pt=function(){kt(arguments.length<=0?void 0:arguments[0]),lt==null||lt.apply(void 0,arguments)};return Ie(y.createElement(je.Z,{component:"Switch"},y.createElement(tt,Object.assign({},rt,{checked:on,onChange:Pt,prefixCls:ne,className:at,style:ft,disabled:ce,ref:nt,loadingIcon:le}))))});ue.__ANT_SWITCH=!0;var mt=ue},70858:function(bn,Wt,z){"use strict";z.d(Wt,{default:function(){return La}});var y=z(59301),he={},de="rc-table-internal-hook",$e=z(42978),pe=z(6089),me=z(34280),ve=z(13697),Me=z(4676);function ge(De){var we=y.createContext(void 0),st=function(Vt){var en=Vt.value,pn=Vt.children,cn=y.useRef(en);cn.current=en;var Cn=y.useState(function(){return{getValue:function(){return cn.current},listeners:new Set}}),gn=(0,$e.Z)(Cn,1),Kn=gn[0];return(0,me.Z)(function(){(0,Me.unstable_batchedUpdates)(function(){Kn.listeners.forEach(function(_n){_n(en)})})},[en]),y.createElement(we.Provider,{value:Kn},pn)};return{Context:we,Provider:st,defaultValue:De}}function se(De,we){var st=(0,pe.Z)(typeof we=="function"?we:function(_n){if(we===void 0)return _n;if(!Array.isArray(we))return _n[we];var kn={};return we.forEach(function(Pn){kn[Pn]=_n[Pn]}),kn}),wt=y.useContext(De==null?void 0:De.Context),Vt=wt||{},en=Vt.listeners,pn=Vt.getValue,cn=y.useRef();cn.current=st(wt?pn():De==null?void 0:De.defaultValue);var Cn=y.useState({}),gn=(0,$e.Z)(Cn,2),Kn=gn[1];return(0,me.Z)(function(){if(!wt)return;function _n(kn){var Pn=st(kn);(0,ve.Z)(cn.current,Pn,!0)||Kn({})}return en.add(_n),function(){en.delete(_n)}},[wt]),cn.current}var _e=z(54476),Ae=z(8654);function tt(){var De=y.createContext(null);function we(){return y.useContext(De)}function st(Vt,en){var pn=(0,Ae.Yr)(Vt),cn=function(gn,Kn){var _n=pn?{ref:Kn}:{},kn=y.useRef(0),Pn=y.useRef(gn),Dn=we();return Dn!==null?y.createElement(Vt,(0,_e.Z)({},gn,_n)):((!en||en(Pn.current,gn))&&(kn.current+=1),Pn.current=gn,y.createElement(De.Provider,{value:kn.current},y.createElement(Vt,(0,_e.Z)({},gn,_n))))};return pn?y.forwardRef(cn):cn}function wt(Vt,en){var pn=(0,Ae.Yr)(Vt),cn=function(gn,Kn){var _n=pn?{ref:Kn}:{};return we(),y.createElement(Vt,(0,_e.Z)({},gn,_n))};return pn?y.memo(y.forwardRef(cn),en):y.memo(cn,en)}return{makeImmutable:st,responseImmutable:wt,useImmutableMark:we}}var je=tt(),Te=je.makeImmutable,Ce=je.responseImmutable,Se=je.useImmutableMark,Pe=tt(),Ye=Pe.makeImmutable,ct=Pe.responseImmutable,Be=Pe.useImmutableMark,Oe=ge(),Re=Oe;function Ke(De,we){var st=React.useRef(0);st.current+=1;var wt=React.useRef(De),Vt=[];Object.keys(De||{}).map(function(pn){var cn;(De==null?void 0:De[pn])!==((cn=wt.current)===null||cn===void 0?void 0:cn[pn])&&Vt.push(pn)}),wt.current=De;var en=React.useRef([]);return Vt.length&&(en.current=Vt),React.useDebugValue(st.current),React.useDebugValue(en.current.join(", ")),we&&console.log("".concat(we,":"),st.current,en.current),st.current}var vt=null,it=null,Qe=z(76190),ut=z(33885),be=z(20068),et=z(92310),Ne=z.n(et),ue=z(80547),mt=z(97938),Ze=z(48736),nt=y.createContext({renderWithProps:!1}),Mt=nt,Fe="RC_TABLE_KEY";function ye(De){return De==null?[]:Array.isArray(De)?De:[De]}function Bt(De){var we=[],st={};return De.forEach(function(wt){for(var Vt=wt||{},en=Vt.key,pn=Vt.dataIndex,cn=en||ye(pn).join("-")||Fe;st[cn];)cn="".concat(cn,"_next");st[cn]=!0,we.push(cn)}),we}function jt(De){return De!=null}function Lt(De){return typeof De=="number"&&!Number.isNaN(De)}function Ee(De){return De&&(0,Qe.Z)(De)==="object"&&!Array.isArray(De)&&!y.isValidElement(De)}function ot(De,we,st,wt,Vt,en){var pn=y.useContext(Mt),cn=Be(),Cn=(0,ue.Z)(function(){if(jt(wt))return[wt];var gn=we==null||we===""?[]:Array.isArray(we)?we:[we],Kn=(0,mt.Z)(De,gn),_n=Kn,kn=void 0;if(Vt){var Pn=Vt(Kn,De,st);Ee(Pn)?(_n=Pn.children,kn=Pn.props,pn.renderWithProps=!0):_n=Pn}return[_n,kn]},[cn,De,wt,we,Vt,st],function(gn,Kn){if(en){var _n=(0,$e.Z)(gn,2),kn=_n[1],Pn=(0,$e.Z)(Kn,2),Dn=Pn[1];return en(Dn,kn)}return pn.renderWithProps?!0:!(0,ve.Z)(gn,Kn,!0)});return Cn}function qe(De,we,st,wt){var Vt=De+we-1;return De<=wt&&Vt>=st}function zt(De,we){return se(Re,function(st){var wt=qe(De,we||1,st.hoverStartRow,st.hoverEndRow);return[wt,st.onHover]})}var ht=z(70425),lt=function(we){var st=we.ellipsis,wt=we.rowType,Vt=we.children,en,pn=st===!0?{showTitle:!0}:st;return pn&&(pn.showTitle||wt==="header")&&(typeof Vt=="string"||typeof Vt=="number"?en=Vt.toString():y.isValidElement(Vt)&&typeof Vt.props.children=="string"&&(en=Vt.props.children)),en};function rt(De){var we,st,wt,Vt,en,pn,cn,Cn,gn=De.component,Kn=De.children,_n=De.ellipsis,kn=De.scope,Pn=De.prefixCls,Dn=De.className,yr=De.align,er=De.record,Er=De.render,Dr=De.dataIndex,xr=De.renderIndex,Tr=De.shouldCellUpdate,Wr=De.index,ro=De.rowType,Qr=De.colSpan,si=De.rowSpan,Oo=De.fixLeft,Eo=De.fixRight,Ko=De.firstFixLeft,oo=De.lastFixLeft,lo=De.firstFixRight,$r=De.lastFixRight,Ir=De.appendNode,qr=De.additionalProps,uo=qr===void 0?{}:qr,Io=De.isSticky,Hr="".concat(Pn,"-cell"),di=se(Re,["supportSticky","allColumnsFixedLeft","rowHoverable"]),hi=di.supportSticky,ha=di.allColumnsFixedLeft,na=di.rowHoverable,Ki=ot(er,Dr,xr,Kn,Er,Tr),ra=(0,$e.Z)(Ki,2),ya=ra[0],mi=ra[1],vi={},ba=typeof Oo=="number"&&hi,Ba=typeof Eo=="number"&&hi;ba&&(vi.position="sticky",vi.left=Oo),Ba&&(vi.position="sticky",vi.right=Eo);var So=(we=(st=(wt=mi==null?void 0:mi.colSpan)!==null&&wt!==void 0?wt:uo.colSpan)!==null&&st!==void 0?st:Qr)!==null&&we!==void 0?we:1,ei=(Vt=(en=(pn=mi==null?void 0:mi.rowSpan)!==null&&pn!==void 0?pn:uo.rowSpan)!==null&&en!==void 0?en:si)!==null&&Vt!==void 0?Vt:1,vo=zt(Wr,ei),Jr=(0,$e.Z)(vo,2),xi=Jr[0],Ii=Jr[1],qi=(0,ht.zX)(function(ji){var _i;er&&Ii(Wr,Wr+ei-1),uo==null||(_i=uo.onMouseEnter)===null||_i===void 0||_i.call(uo,ji)}),Hi=(0,ht.zX)(function(ji){var _i;er&&Ii(-1,-1),uo==null||(_i=uo.onMouseLeave)===null||_i===void 0||_i.call(uo,ji)});if(So===0||ei===0)return null;var Ca=(cn=uo.title)!==null&&cn!==void 0?cn:lt({rowType:ro,ellipsis:_n,children:ya}),Pa=Ne()(Hr,Dn,(Cn={},(0,be.Z)((0,be.Z)((0,be.Z)((0,be.Z)((0,be.Z)((0,be.Z)((0,be.Z)((0,be.Z)((0,be.Z)((0,be.Z)(Cn,"".concat(Hr,"-fix-left"),ba&&hi),"".concat(Hr,"-fix-left-first"),Ko&&hi),"".concat(Hr,"-fix-left-last"),oo&&hi),"".concat(Hr,"-fix-left-all"),oo&&ha&&hi),"".concat(Hr,"-fix-right"),Ba&&hi),"".concat(Hr,"-fix-right-first"),lo&&hi),"".concat(Hr,"-fix-right-last"),$r&&hi),"".concat(Hr,"-ellipsis"),_n),"".concat(Hr,"-with-append"),Ir),"".concat(Hr,"-fix-sticky"),(ba||Ba)&&Io&&hi),(0,be.Z)(Cn,"".concat(Hr,"-row-hover"),!mi&&xi)),uo.className,mi==null?void 0:mi.className),Po={};yr&&(Po.textAlign=yr);var Zo=(0,ut.Z)((0,ut.Z)((0,ut.Z)((0,ut.Z)({},mi==null?void 0:mi.style),vi),Po),uo.style),Ni=ya;return(0,Qe.Z)(Ni)==="object"&&!Array.isArray(Ni)&&!y.isValidElement(Ni)&&(Ni=null),_n&&(oo||lo)&&(Ni=y.createElement("span",{className:"".concat(Hr,"-content")},Ni)),y.createElement(gn,(0,_e.Z)({},mi,uo,{className:Pa,style:Zo,title:Ca,scope:kn,onMouseEnter:na?qi:void 0,onMouseLeave:na?Hi:void 0,colSpan:So!==1?So:null,rowSpan:ei!==1?ei:null}),Ir,Ni)}var on=y.memo(rt);function kt(De,we,st,wt,Vt){var en=st[De]||{},pn=st[we]||{},cn,Cn;en.fixed==="left"?cn=wt.left[Vt==="rtl"?we:De]:pn.fixed==="right"&&(Cn=wt.right[Vt==="rtl"?De:we]);var gn=!1,Kn=!1,_n=!1,kn=!1,Pn=st[we+1],Dn=st[De-1],yr=Pn&&!Pn.fixed||Dn&&!Dn.fixed||st.every(function(Tr){return Tr.fixed==="left"});if(Vt==="rtl"){if(cn!==void 0){var er=Dn&&Dn.fixed==="left";kn=!er&&yr}else if(Cn!==void 0){var Er=Pn&&Pn.fixed==="right";_n=!Er&&yr}}else if(cn!==void 0){var Dr=Pn&&Pn.fixed==="left";gn=!Dr&&yr}else if(Cn!==void 0){var xr=Dn&&Dn.fixed==="right";Kn=!xr&&yr}return{fixLeft:cn,fixRight:Cn,lastFixLeft:gn,firstFixRight:Kn,lastFixRight:_n,firstFixLeft:kn,isSticky:wt.isSticky}}var ae=y.createContext({}),re=ae;function te(De){var we=De.className,st=De.index,wt=De.children,Vt=De.colSpan,en=Vt===void 0?1:Vt,pn=De.rowSpan,cn=De.align,Cn=se(Re,["prefixCls","direction"]),gn=Cn.prefixCls,Kn=Cn.direction,_n=y.useContext(re),kn=_n.scrollColumnIndex,Pn=_n.stickyOffsets,Dn=_n.flattenColumns,yr=st+en-1,er=yr+1===kn?en+1:en,Er=kt(st,st+er-1,Dn,Pn,Kn);return y.createElement(on,(0,_e.Z)({className:we,index:st,component:"td",prefixCls:gn,record:null,dataIndex:null,align:cn,colSpan:er,rowSpan:pn,render:function(){return wt}},Er))}var ie=z(75931),ce=["children"];function ne(De){var we=De.children,st=(0,ie.Z)(De,ce);return y.createElement("tr",st,we)}function le(De){var we=De.children;return we}le.Row=ne,le.Cell=te;var Ie=le;function bt(De){var we=De.children,st=De.stickyOffsets,wt=De.flattenColumns,Vt=se(Re,"prefixCls"),en=wt.length-1,pn=wt[en],cn=y.useMemo(function(){return{stickyOffsets:st,flattenColumns:wt,scrollColumnIndex:pn!=null&&pn.scrollbar?en:null}},[pn,wt,en,st]);return y.createElement(re.Provider,{value:cn},y.createElement("tfoot",{className:"".concat(Vt,"-summary")},we))}var Ue=ct(bt),He=Ie,at=z(29301),ft=z(24514),Pt=z(75152),Le=z(26112);function We(De,we,st,wt,Vt,en,pn){De.push({record:we,indent:st,index:pn});var cn=en(we),Cn=Vt==null?void 0:Vt.has(cn);if(we&&Array.isArray(we[wt])&&Cn)for(var gn=0;gn<we[wt].length;gn+=1)We(De,we[wt][gn],st+1,wt,Vt,en,gn)}function Nt(De,we,st,wt){var Vt=y.useMemo(function(){if(st!=null&&st.size){for(var en=[],pn=0;pn<(De==null?void 0:De.length);pn+=1){var cn=De[pn];We(en,cn,0,we,st,wt,pn)}return en}return De==null?void 0:De.map(function(Cn,gn){return{record:Cn,indent:0,index:gn}})},[De,we,st,wt]);return Vt}function Qt(De,we,st,wt){var Vt=se(Re,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),en=Vt.flattenColumns,pn=Vt.expandableType,cn=Vt.expandedKeys,Cn=Vt.childrenColumnName,gn=Vt.onTriggerExpand,Kn=Vt.rowExpandable,_n=Vt.onRow,kn=Vt.expandRowByClick,Pn=Vt.rowClassName,Dn=pn==="nest",yr=pn==="row"&&(!Kn||Kn(De)),er=yr||Dn,Er=cn&&cn.has(we),Dr=Cn&&De&&De[Cn],xr=(0,ht.zX)(gn),Tr=_n==null?void 0:_n(De,st),Wr=Tr==null?void 0:Tr.onClick,ro=function(Eo){kn&&er&&gn(De,Eo);for(var Ko=arguments.length,oo=new Array(Ko>1?Ko-1:0),lo=1;lo<Ko;lo++)oo[lo-1]=arguments[lo];Wr==null||Wr.apply(void 0,[Eo].concat(oo))},Qr;typeof Pn=="string"?Qr=Pn:typeof Pn=="function"&&(Qr=Pn(De,st,wt));var si=Bt(en);return(0,ut.Z)((0,ut.Z)({},Vt),{},{columnsKey:si,nestExpandable:Dn,expanded:Er,hasNestChildren:Dr,record:De,onTriggerExpand:xr,rowSupportExpand:yr,expandable:er,rowProps:(0,ut.Z)((0,ut.Z)({},Tr),{},{className:Ne()(Qr,Tr==null?void 0:Tr.className),onClick:ro})})}function un(De){var we=De.prefixCls,st=De.children,wt=De.component,Vt=De.cellComponent,en=De.className,pn=De.expanded,cn=De.colSpan,Cn=De.isEmpty,gn=se(Re,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),Kn=gn.scrollbarSize,_n=gn.fixHeader,kn=gn.fixColumn,Pn=gn.componentWidth,Dn=gn.horizonScroll,yr=st;return(Cn?Dn&&Pn:kn)&&(yr=y.createElement("div",{style:{width:Pn-(_n&&!Cn?Kn:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(we,"-expanded-row-fixed")},yr)),y.createElement(wt,{className:en,style:{display:pn?null:"none"}},y.createElement(on,{component:Vt,prefixCls:we,colSpan:cn},yr))}var rn=un;function Rt(De){var we=De.prefixCls,st=De.record,wt=De.onExpand,Vt=De.expanded,en=De.expandable,pn="".concat(we,"-row-expand-icon");if(!en)return y.createElement("span",{className:Ne()(pn,"".concat(we,"-row-spaced"))});var cn=function(gn){wt(st,gn),gn.stopPropagation()};return y.createElement("span",{className:Ne()(pn,(0,be.Z)((0,be.Z)({},"".concat(we,"-row-expanded"),Vt),"".concat(we,"-row-collapsed"),!Vt)),onClick:cn})}function ln(De,we,st){var wt=[];function Vt(en){(en||[]).forEach(function(pn,cn){wt.push(we(pn,cn)),Vt(pn[st])})}return Vt(De),wt}function Ht(De,we,st,wt){return typeof De=="string"?De:typeof De=="function"?De(we,st,wt):""}function ze(De,we,st,wt,Vt){var en=De.record,pn=De.prefixCls,cn=De.columnsKey,Cn=De.fixedInfoList,gn=De.expandIconColumnIndex,Kn=De.nestExpandable,_n=De.indentSize,kn=De.expandIcon,Pn=De.expanded,Dn=De.hasNestChildren,yr=De.onTriggerExpand,er=cn[st],Er=Cn[st],Dr;st===(gn||0)&&Kn&&(Dr=y.createElement(y.Fragment,null,y.createElement("span",{style:{paddingLeft:"".concat(_n*wt,"px")},className:"".concat(pn,"-row-indent indent-level-").concat(wt)}),kn({prefixCls:pn,expanded:Pn,expandable:Dn,record:en,onExpand:yr})));var xr;return we.onCell&&(xr=we.onCell(en,Vt)),{key:er,fixedInfo:Er,appendCellNode:Dr,additionalCellProps:xr||{}}}function yt(De){var we=De.className,st=De.style,wt=De.record,Vt=De.index,en=De.renderIndex,pn=De.rowKey,cn=De.indent,Cn=cn===void 0?0:cn,gn=De.rowComponent,Kn=De.cellComponent,_n=De.scopeCellComponent,kn=Qt(wt,pn,Vt,Cn),Pn=kn.prefixCls,Dn=kn.flattenColumns,yr=kn.expandedRowClassName,er=kn.expandedRowRender,Er=kn.rowProps,Dr=kn.expanded,xr=kn.rowSupportExpand,Tr=y.useRef(!1);Tr.current||(Tr.current=Dr);var Wr=Ht(yr,wt,Vt,Cn),ro=y.createElement(gn,(0,_e.Z)({},Er,{"data-row-key":pn,className:Ne()(we,"".concat(Pn,"-row"),"".concat(Pn,"-row-level-").concat(Cn),Er==null?void 0:Er.className,(0,be.Z)({},Wr,Cn>=1)),style:(0,ut.Z)((0,ut.Z)({},st),Er==null?void 0:Er.style)}),Dn.map(function(Oo,Eo){var Ko=Oo.render,oo=Oo.dataIndex,lo=Oo.className,$r=ze(kn,Oo,Eo,Cn,Vt),Ir=$r.key,qr=$r.fixedInfo,uo=$r.appendCellNode,Io=$r.additionalCellProps;return y.createElement(on,(0,_e.Z)({className:lo,ellipsis:Oo.ellipsis,align:Oo.align,scope:Oo.rowScope,component:Oo.rowScope?_n:Kn,prefixCls:Pn,key:Ir,record:wt,index:Vt,renderIndex:en,dataIndex:oo,render:Ko,shouldCellUpdate:Oo.shouldCellUpdate},qr,{appendNode:uo,additionalProps:Io}))})),Qr;if(xr&&(Tr.current||Dr)){var si=er(wt,Vt,Cn+1,Dr);Qr=y.createElement(rn,{expanded:Dr,className:Ne()("".concat(Pn,"-expanded-row"),"".concat(Pn,"-expanded-row-level-").concat(Cn+1),Wr),prefixCls:Pn,component:gn,cellComponent:Kn,colSpan:Dn.length,isEmpty:!1},si)}return y.createElement(y.Fragment,null,ro,Qr)}var Kt=ct(yt);function tn(De){var we=De.columnKey,st=De.onColumnResize,wt=y.useRef();return(0,me.Z)(function(){wt.current&&st(we,wt.current.offsetWidth)},[]),y.createElement(at.Z,{data:we},y.createElement("td",{ref:wt,style:{padding:0,border:0,height:0}},y.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}var Ve=z(29194);function Ct(De){var we=De.prefixCls,st=De.columnsKey,wt=De.onColumnResize,Vt=y.useRef(null);return y.createElement("tr",{"aria-hidden":"true",className:"".concat(we,"-measure-row"),style:{height:0,fontSize:0},ref:Vt},y.createElement(at.Z.Collection,{onBatchResize:function(pn){(0,Ve.Z)(Vt.current)&&pn.forEach(function(cn){var Cn=cn.data,gn=cn.size;wt(Cn,gn.offsetWidth)})}},st.map(function(en){return y.createElement(tn,{key:en,columnKey:en,onColumnResize:wt})})))}function $t(De){var we=De.data,st=De.measureColumnWidth,wt=se(Re,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),Vt=wt.prefixCls,en=wt.getComponent,pn=wt.onColumnResize,cn=wt.flattenColumns,Cn=wt.getRowKey,gn=wt.expandedKeys,Kn=wt.childrenColumnName,_n=wt.emptyNode,kn=Nt(we,Kn,gn,Cn),Pn=y.useRef({renderWithProps:!1}),Dn=en(["body","wrapper"],"tbody"),yr=en(["body","row"],"tr"),er=en(["body","cell"],"td"),Er=en(["body","cell"],"th"),Dr;we.length?Dr=kn.map(function(Tr,Wr){var ro=Tr.record,Qr=Tr.indent,si=Tr.index,Oo=Cn(ro,Wr);return y.createElement(Kt,{key:Oo,rowKey:Oo,record:ro,index:Wr,renderIndex:si,rowComponent:yr,cellComponent:er,scopeCellComponent:Er,indent:Qr})}):Dr=y.createElement(rn,{expanded:!0,className:"".concat(Vt,"-placeholder"),prefixCls:Vt,component:yr,cellComponent:er,colSpan:cn.length,isEmpty:!0},_n);var xr=Bt(cn);return y.createElement(Mt.Provider,{value:Pn.current},y.createElement(Dn,{className:"".concat(Vt,"-tbody")},st&&y.createElement(Ct,{prefixCls:Vt,columnsKey:xr,onColumnResize:pn}),Dr))}var dt=ct($t),Ot=["expandable"],Gt="RC_TABLE_INTERNAL_COL_DEFINE";function mn(De){var we=De.expandable,st=(0,ie.Z)(De,Ot),wt;return"expandable"in De?wt=(0,ut.Z)((0,ut.Z)({},st),we):wt=st,wt.showExpandColumn===!1&&(wt.expandIconColumnIndex=-1),wt}var An=["columnType"];function hn(De){for(var we=De.colWidths,st=De.columns,wt=De.columCount,Vt=se(Re,["tableLayout"]),en=Vt.tableLayout,pn=[],cn=wt||st.length,Cn=!1,gn=cn-1;gn>=0;gn-=1){var Kn=we[gn],_n=st&&st[gn],kn=void 0,Pn=void 0;if(_n&&(kn=_n[Gt],en==="auto"&&(Pn=_n.minWidth)),Kn||Pn||kn||Cn){var Dn=kn||{},yr=Dn.columnType,er=(0,ie.Z)(Dn,An);pn.unshift(y.createElement("col",(0,_e.Z)({key:gn,style:{width:Kn,minWidth:Pn}},er))),Cn=!0}}return y.createElement("colgroup",null,pn)}var Fn=hn,Ft=z(94480),Tt=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Ut(De,we){return(0,y.useMemo)(function(){for(var st=[],wt=0;wt<we;wt+=1){var Vt=De[wt];if(Vt!==void 0)st[wt]=Vt;else return null}return st},[De.join("_"),we])}var an=y.forwardRef(function(De,we){var st=De.className,wt=De.noData,Vt=De.columns,en=De.flattenColumns,pn=De.colWidths,cn=De.columCount,Cn=De.stickyOffsets,gn=De.direction,Kn=De.fixHeader,_n=De.stickyTopOffset,kn=De.stickyBottomOffset,Pn=De.stickyClassName,Dn=De.onScroll,yr=De.maxContentScroll,er=De.children,Er=(0,ie.Z)(De,Tt),Dr=se(Re,["prefixCls","scrollbarSize","isSticky","getComponent"]),xr=Dr.prefixCls,Tr=Dr.scrollbarSize,Wr=Dr.isSticky,ro=Dr.getComponent,Qr=ro(["header","table"],"table"),si=Wr&&!Kn?0:Tr,Oo=y.useRef(null),Eo=y.useCallback(function(Io){(0,Ae.mH)(we,Io),(0,Ae.mH)(Oo,Io)},[]);y.useEffect(function(){var Io;function Hr(di){var hi=di,ha=hi.currentTarget,na=hi.deltaX;na&&(Dn({currentTarget:ha,scrollLeft:ha.scrollLeft+na}),di.preventDefault())}return(Io=Oo.current)===null||Io===void 0||Io.addEventListener("wheel",Hr,{passive:!1}),function(){var di;(di=Oo.current)===null||di===void 0||di.removeEventListener("wheel",Hr)}},[]);var Ko=y.useMemo(function(){return en.every(function(Io){return Io.width})},[en]),oo=en[en.length-1],lo={fixed:oo?oo.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(xr,"-cell-scrollbar")}}},$r=(0,y.useMemo)(function(){return si?[].concat((0,Ft.Z)(Vt),[lo]):Vt},[si,Vt]),Ir=(0,y.useMemo)(function(){return si?[].concat((0,Ft.Z)(en),[lo]):en},[si,en]),qr=(0,y.useMemo)(function(){var Io=Cn.right,Hr=Cn.left;return(0,ut.Z)((0,ut.Z)({},Cn),{},{left:gn==="rtl"?[].concat((0,Ft.Z)(Hr.map(function(di){return di+si})),[0]):Hr,right:gn==="rtl"?Io:[].concat((0,Ft.Z)(Io.map(function(di){return di+si})),[0]),isSticky:Wr})},[si,Cn,Wr]),uo=Ut(pn,cn);return y.createElement("div",{style:(0,ut.Z)({overflow:"hidden"},Wr?{top:_n,bottom:kn}:{}),ref:Eo,className:Ne()(st,(0,be.Z)({},Pn,!!Pn))},y.createElement(Qr,{style:{tableLayout:"fixed",visibility:wt||uo?null:"hidden"}},(!wt||!yr||Ko)&&y.createElement(Fn,{colWidths:uo?[].concat((0,Ft.Z)(uo),[si]):[],columCount:cn+1,columns:Ir}),er((0,ut.Z)((0,ut.Z)({},Er),{},{stickyOffsets:qr,columns:$r,flattenColumns:Ir}))))}),Xt=y.memo(an),yn=function(we){var st=we.cells,wt=we.stickyOffsets,Vt=we.flattenColumns,en=we.rowComponent,pn=we.cellComponent,cn=we.onHeaderRow,Cn=we.index,gn=se(Re,["prefixCls","direction"]),Kn=gn.prefixCls,_n=gn.direction,kn;cn&&(kn=cn(st.map(function(Dn){return Dn.column}),Cn));var Pn=Bt(st.map(function(Dn){return Dn.column}));return y.createElement(en,kn,st.map(function(Dn,yr){var er=Dn.column,Er=kt(Dn.colStart,Dn.colEnd,Vt,wt,_n),Dr;return er&&er.onHeaderCell&&(Dr=Dn.column.onHeaderCell(er)),y.createElement(on,(0,_e.Z)({},Dn,{scope:er.title?Dn.colSpan>1?"colgroup":"col":null,ellipsis:er.ellipsis,align:er.align,component:pn,prefixCls:Kn,key:Pn[yr]},Er,{additionalProps:Dr,rowType:"header"}))}))},sn=yn;function wn(De){var we=[];function st(pn,cn){var Cn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;we[Cn]=we[Cn]||[];var gn=cn,Kn=pn.filter(Boolean).map(function(_n){var kn={key:_n.key,className:_n.className||"",children:_n.title,column:_n,colStart:gn},Pn=1,Dn=_n.children;return Dn&&Dn.length>0&&(Pn=st(Dn,gn,Cn+1).reduce(function(yr,er){return yr+er},0),kn.hasSubColumns=!0),"colSpan"in _n&&(Pn=_n.colSpan),"rowSpan"in _n&&(kn.rowSpan=_n.rowSpan),kn.colSpan=Pn,kn.colEnd=kn.colStart+Pn-1,we[Cn].push(kn),gn+=Pn,Pn});return Kn}st(De,0);for(var wt=we.length,Vt=function(cn){we[cn].forEach(function(Cn){!("rowSpan"in Cn)&&!Cn.hasSubColumns&&(Cn.rowSpan=wt-cn)})},en=0;en<wt;en+=1)Vt(en);return we}var Vn=function(we){var st=we.stickyOffsets,wt=we.columns,Vt=we.flattenColumns,en=we.onHeaderRow,pn=se(Re,["prefixCls","getComponent"]),cn=pn.prefixCls,Cn=pn.getComponent,gn=y.useMemo(function(){return wn(wt)},[wt]),Kn=Cn(["header","wrapper"],"thead"),_n=Cn(["header","row"],"tr"),kn=Cn(["header","cell"],"th");return y.createElement(Kn,{className:"".concat(cn,"-thead")},gn.map(function(Pn,Dn){var yr=y.createElement(sn,{key:Dn,flattenColumns:Vt,cells:Pn,stickyOffsets:st,rowComponent:_n,cellComponent:kn,onHeaderRow:en,index:Dn});return yr}))},Mn=ct(Vn),$n=z(11592);function Wn(De){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof we=="number"?we:we.endsWith("%")?De*parseFloat(we)/100:null}function Hn(De,we,st){return y.useMemo(function(){if(we&&we>0){var wt=0,Vt=0;De.forEach(function(kn){var Pn=Wn(we,kn.width);Pn?wt+=Pn:Vt+=1});var en=Math.max(we,st),pn=Math.max(en-wt,Vt),cn=Vt,Cn=pn/Vt,gn=0,Kn=De.map(function(kn){var Pn=(0,ut.Z)({},kn),Dn=Wn(we,Pn.width);if(Dn)Pn.width=Dn;else{var yr=Math.floor(Cn);Pn.width=cn===1?pn:yr,pn-=yr,cn-=1}return gn+=Pn.width,Pn});if(gn<en){var _n=en/gn;pn=en,Kn.forEach(function(kn,Pn){var Dn=Math.floor(kn.width*_n);kn.width=Pn===Kn.length-1?pn:Dn,pn-=Dn})}return[Kn,Math.max(gn,en)]}return[De,we]},[De,we,st])}var ur=["children"],rr=["fixed"];function dn(De){return(0,$n.Z)(De).filter(function(we){return y.isValidElement(we)}).map(function(we){var st=we.key,wt=we.props,Vt=wt.children,en=(0,ie.Z)(wt,ur),pn=(0,ut.Z)({key:st},en);return Vt&&(pn.children=dn(Vt)),pn})}function xn(De){return De.filter(function(we){return we&&(0,Qe.Z)(we)==="object"&&!we.hidden}).map(function(we){var st=we.children;return st&&st.length>0?(0,ut.Z)((0,ut.Z)({},we),{},{children:xn(st)}):we})}function jn(De){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return De.filter(function(st){return st&&(0,Qe.Z)(st)==="object"}).reduce(function(st,wt,Vt){var en=wt.fixed,pn=en===!0?"left":en,cn="".concat(we,"-").concat(Vt),Cn=wt.children;return Cn&&Cn.length>0?[].concat((0,Ft.Z)(st),(0,Ft.Z)(jn(Cn,cn).map(function(gn){return(0,ut.Z)({fixed:pn},gn)}))):[].concat((0,Ft.Z)(st),[(0,ut.Z)((0,ut.Z)({key:cn},wt),{},{fixed:pn})])},[])}function zn(De){return De.map(function(we){var st=we.fixed,wt=(0,ie.Z)(we,rr),Vt=st;return st==="left"?Vt="right":st==="right"&&(Vt="left"),(0,ut.Z)({fixed:Vt},wt)})}function xt(De,we){var st=De.prefixCls,wt=De.columns,Vt=De.children,en=De.expandable,pn=De.expandedKeys,cn=De.columnTitle,Cn=De.getRowKey,gn=De.onTriggerExpand,Kn=De.expandIcon,_n=De.rowExpandable,kn=De.expandIconColumnIndex,Pn=De.direction,Dn=De.expandRowByClick,yr=De.columnWidth,er=De.fixed,Er=De.scrollWidth,Dr=De.clientWidth,xr=y.useMemo(function(){var oo=wt||dn(Vt)||[];return xn(oo.slice())},[wt,Vt]),Tr=y.useMemo(function(){if(en){var oo=xr.slice();if(!oo.includes(he)){var lo=kn||0;lo>=0&&(lo||er==="left"||!er)&&oo.splice(lo,0,he),er==="right"&&oo.splice(xr.length,0,he)}var $r=oo.indexOf(he);oo=oo.filter(function(Io,Hr){return Io!==he||Hr===$r});var Ir=xr[$r],qr;er?qr=er:qr=Ir?Ir.fixed:null;var uo=(0,be.Z)((0,be.Z)((0,be.Z)((0,be.Z)((0,be.Z)((0,be.Z)({},Gt,{className:"".concat(st,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",cn),"fixed",qr),"className","".concat(st,"-row-expand-icon-cell")),"width",yr),"render",function(Hr,di,hi){var ha=Cn(di,hi),na=pn.has(ha),Ki=_n?_n(di):!0,ra=Kn({prefixCls:st,expanded:na,expandable:Ki,record:di,onExpand:gn});return Dn?y.createElement("span",{onClick:function(mi){return mi.stopPropagation()}},ra):ra});return oo.map(function(Io){return Io===he?uo:Io})}return xr.filter(function(Io){return Io!==he})},[en,xr,Cn,pn,Kn,Pn]),Wr=y.useMemo(function(){var oo=Tr;return we&&(oo=we(oo)),oo.length||(oo=[{render:function(){return null}}]),oo},[we,Tr,Pn]),ro=y.useMemo(function(){return Pn==="rtl"?zn(jn(Wr)):jn(Wr)},[Wr,Pn,Er]),Qr=y.useMemo(function(){for(var oo=-1,lo=ro.length-1;lo>=0;lo-=1){var $r=ro[lo].fixed;if($r==="left"||$r===!0){oo=lo;break}}if(oo>=0)for(var Ir=0;Ir<=oo;Ir+=1){var qr=ro[Ir].fixed;if(qr!=="left"&&qr!==!0)return!0}var uo=ro.findIndex(function(di){var hi=di.fixed;return hi==="right"});if(uo>=0)for(var Io=uo;Io<ro.length;Io+=1){var Hr=ro[Io].fixed;if(Hr!=="right")return!0}return!1},[ro]),si=Hn(ro,Er,Dr),Oo=(0,$e.Z)(si,2),Eo=Oo[0],Ko=Oo[1];return[Wr,Eo,Ko,Qr]}var _t=xt;function Je(De,we,st){var wt=mn(De),Vt=wt.expandIcon,en=wt.expandedRowKeys,pn=wt.defaultExpandedRowKeys,cn=wt.defaultExpandAllRows,Cn=wt.expandedRowRender,gn=wt.onExpand,Kn=wt.onExpandedRowsChange,_n=wt.childrenColumnName,kn=Vt||Rt,Pn=_n||"children",Dn=y.useMemo(function(){return Cn?"row":De.expandable&&De.internalHooks===de&&De.expandable.__PARENT_RENDER_ICON__||we.some(function(Wr){return Wr&&(0,Qe.Z)(Wr)==="object"&&Wr[Pn]})?"nest":!1},[!!Cn,we]),yr=y.useState(function(){return pn||(cn?ln(we,st,Pn):[])}),er=(0,$e.Z)(yr,2),Er=er[0],Dr=er[1],xr=y.useMemo(function(){return new Set(en||Er||[])},[en,Er]),Tr=y.useCallback(function(Wr){var ro=st(Wr,we.indexOf(Wr)),Qr,si=xr.has(ro);si?(xr.delete(ro),Qr=(0,Ft.Z)(xr)):Qr=[].concat((0,Ft.Z)(xr),[ro]),Dr(Qr),gn&&gn(!si,Wr),Kn&&Kn(Qr)},[st,xr,we,gn,Kn]);return[wt,Dn,xr,kn,Pn,Tr]}function Dt(De,we,st){var wt=De.map(function(Vt,en){return kt(en,en,De,we,st)});return(0,ue.Z)(function(){return wt},[wt],function(Vt,en){return!(0,ve.Z)(Vt,en)})}function Ge(De){var we=(0,y.useRef)(De),st=(0,y.useState)({}),wt=(0,$e.Z)(st,2),Vt=wt[1],en=(0,y.useRef)(null),pn=(0,y.useRef)([]);function cn(Cn){pn.current.push(Cn);var gn=Promise.resolve();en.current=gn,gn.then(function(){if(en.current===gn){var Kn=pn.current,_n=we.current;pn.current=[],Kn.forEach(function(kn){we.current=kn(we.current)}),en.current=null,_n!==we.current&&Vt({})}})}return(0,y.useEffect)(function(){return function(){en.current=null}},[]),[we.current,cn]}function At(De){var we=(0,y.useRef)(De||null),st=(0,y.useRef)();function wt(){window.clearTimeout(st.current)}function Vt(pn){we.current=pn,wt(),st.current=window.setTimeout(function(){we.current=null,st.current=void 0},100)}function en(){return we.current}return(0,y.useEffect)(function(){return wt},[]),[Vt,en]}function Jt(){var De=y.useState(-1),we=(0,$e.Z)(De,2),st=we[0],wt=we[1],Vt=y.useState(-1),en=(0,$e.Z)(Vt,2),pn=en[0],cn=en[1],Cn=y.useCallback(function(gn,Kn){wt(gn),cn(Kn)},[]);return[st,pn,Cn]}var Rn=z(47273),Zn=(0,Rn.Z)()?window:null;function pt(De,we){var st=(0,Qe.Z)(De)==="object"?De:{},wt=st.offsetHeader,Vt=wt===void 0?0:wt,en=st.offsetSummary,pn=en===void 0?0:en,cn=st.offsetScroll,Cn=cn===void 0?0:cn,gn=st.getContainer,Kn=gn===void 0?function(){return Zn}:gn,_n=Kn()||Zn,kn=!!De;return y.useMemo(function(){return{isSticky:kn,stickyClassName:kn?"".concat(we,"-sticky-holder"):"",offsetHeader:Vt,offsetSummary:pn,offsetScroll:Cn,container:_n}},[kn,Cn,Vt,pn,we,_n])}function Et(De,we,st){var wt=(0,y.useMemo)(function(){var Vt=we.length,en=function(gn,Kn,_n){for(var kn=[],Pn=0,Dn=gn;Dn!==Kn;Dn+=_n)kn.push(Pn),we[Dn].fixed&&(Pn+=De[Dn]||0);return kn},pn=en(0,Vt,1),cn=en(Vt-1,-1,-1).reverse();return st==="rtl"?{left:cn,right:pn}:{left:pn,right:cn}},[De,we,st]);return wt}var St=Et;function It(De){var we=De.className,st=De.children;return y.createElement("div",{className:we},st)}var fn=It,Bn=z(8224),On=z(16089),Nn=z(76846);function qn(De){var we=(0,Nn.bn)(De),st=we.getBoundingClientRect(),wt=document.documentElement;return{left:st.left+(window.pageXOffset||wt.scrollLeft)-(wt.clientLeft||document.body.clientLeft||0),top:st.top+(window.pageYOffset||wt.scrollTop)-(wt.clientTop||document.body.clientTop||0)}}var nr=function(we,st){var wt,Vt,en=we.scrollBodyRef,pn=we.onScroll,cn=we.offsetScroll,Cn=we.container,gn=we.direction,Kn=se(Re,"prefixCls"),_n=((wt=en.current)===null||wt===void 0?void 0:wt.scrollWidth)||0,kn=((Vt=en.current)===null||Vt===void 0?void 0:Vt.clientWidth)||0,Pn=_n&&kn*(kn/_n),Dn=y.useRef(),yr=Ge({scrollLeft:0,isHiddenScrollBar:!0}),er=(0,$e.Z)(yr,2),Er=er[0],Dr=er[1],xr=y.useRef({delta:0,x:0}),Tr=y.useState(!1),Wr=(0,$e.Z)(Tr,2),ro=Wr[0],Qr=Wr[1],si=y.useRef(null);y.useEffect(function(){return function(){On.Z.cancel(si.current)}},[]);var Oo=function(){Qr(!1)},Eo=function(Ir){Ir.persist(),xr.current.delta=Ir.pageX-Er.scrollLeft,xr.current.x=0,Qr(!0),Ir.preventDefault()},Ko=function(Ir){var qr,uo=Ir||((qr=window)===null||qr===void 0?void 0:qr.event),Io=uo.buttons;if(!ro||Io===0){ro&&Qr(!1);return}var Hr=xr.current.x+Ir.pageX-xr.current.x-xr.current.delta,di=gn==="rtl";Hr=Math.max(di?Pn-kn:0,Math.min(di?0:kn-Pn,Hr));var hi=!di||Math.abs(Hr)+Math.abs(Pn)<kn;hi&&(pn({scrollLeft:Hr/kn*(_n+2)}),xr.current.x=Ir.pageX)},oo=function(){On.Z.cancel(si.current),si.current=(0,On.Z)(function(){if(en.current){var Ir=qn(en.current).top,qr=Ir+en.current.offsetHeight,uo=Cn===window?document.documentElement.scrollTop+window.innerHeight:qn(Cn).top+Cn.clientHeight;qr-(0,Pt.Z)()<=uo||Ir>=uo-cn?Dr(function(Io){return(0,ut.Z)((0,ut.Z)({},Io),{},{isHiddenScrollBar:!0})}):Dr(function(Io){return(0,ut.Z)((0,ut.Z)({},Io),{},{isHiddenScrollBar:!1})})}})},lo=function(Ir){Dr(function(qr){return(0,ut.Z)((0,ut.Z)({},qr),{},{scrollLeft:Ir/_n*kn||0})})};return y.useImperativeHandle(st,function(){return{setScrollLeft:lo,checkScrollBarVisible:oo}}),y.useEffect(function(){var $r=(0,Bn.Z)(document.body,"mouseup",Oo,!1),Ir=(0,Bn.Z)(document.body,"mousemove",Ko,!1);return oo(),function(){$r.remove(),Ir.remove()}},[Pn,ro]),y.useEffect(function(){if(en.current){for(var $r=[],Ir=(0,Nn.bn)(en.current);Ir;)$r.push(Ir),Ir=Ir.parentElement;return $r.forEach(function(qr){return qr.addEventListener("scroll",oo,!1)}),window.addEventListener("resize",oo,!1),window.addEventListener("scroll",oo,!1),Cn.addEventListener("scroll",oo,!1),function(){$r.forEach(function(qr){return qr.removeEventListener("scroll",oo)}),window.removeEventListener("resize",oo),window.removeEventListener("scroll",oo),Cn.removeEventListener("scroll",oo)}}},[Cn]),y.useEffect(function(){Er.isHiddenScrollBar||Dr(function($r){var Ir=en.current;return Ir?(0,ut.Z)((0,ut.Z)({},$r),{},{scrollLeft:Ir.scrollLeft/Ir.scrollWidth*Ir.clientWidth}):$r})},[Er.isHiddenScrollBar]),_n<=kn||!Pn||Er.isHiddenScrollBar?null:y.createElement("div",{style:{height:(0,Pt.Z)(),width:kn,bottom:cn},className:"".concat(Kn,"-sticky-scroll")},y.createElement("div",{onMouseDown:Eo,ref:Dn,className:Ne()("".concat(Kn,"-sticky-scroll-bar"),(0,be.Z)({},"".concat(Kn,"-sticky-scroll-bar-active"),ro)),style:{width:"".concat(Pn,"px"),transform:"translate3d(".concat(Er.scrollLeft,"px, 0, 0)")}}))},ir=y.forwardRef(nr);function lr(De){return null}var Qn=lr;function ar(De){return null}var fr=ar,Sr="rc-table",br=[],Zr={};function jr(){return"No Data"}function hr(De,we){var st=(0,ut.Z)({rowKey:"key",prefixCls:Sr,emptyText:jr},De),wt=st.prefixCls,Vt=st.className,en=st.rowClassName,pn=st.style,cn=st.data,Cn=st.rowKey,gn=st.scroll,Kn=st.tableLayout,_n=st.direction,kn=st.title,Pn=st.footer,Dn=st.summary,yr=st.caption,er=st.id,Er=st.showHeader,Dr=st.components,xr=st.emptyText,Tr=st.onRow,Wr=st.onHeaderRow,ro=st.onScroll,Qr=st.internalHooks,si=st.transformColumns,Oo=st.internalRefs,Eo=st.tailor,Ko=st.getContainerWidth,oo=st.sticky,lo=st.rowHoverable,$r=lo===void 0?!0:lo,Ir=cn||br,qr=!!Ir.length,uo=Qr===de,Io=y.useCallback(function(Oi,Ai){return(0,mt.Z)(Dr,Oi)||Ai},[Dr]),Hr=y.useMemo(function(){return typeof Cn=="function"?Cn:function(Oi){var Ai=Oi&&Oi[Cn];return Ai}},[Cn]),di=Io(["body"]),hi=Jt(),ha=(0,$e.Z)(hi,3),na=ha[0],Ki=ha[1],ra=ha[2],ya=Je(st,Ir,Hr),mi=(0,$e.Z)(ya,6),vi=mi[0],ba=mi[1],Ba=mi[2],So=mi[3],ei=mi[4],vo=mi[5],Jr=gn==null?void 0:gn.x,xi=y.useState(0),Ii=(0,$e.Z)(xi,2),qi=Ii[0],Hi=Ii[1],Ca=_t((0,ut.Z)((0,ut.Z)((0,ut.Z)({},st),vi),{},{expandable:!!vi.expandedRowRender,columnTitle:vi.columnTitle,expandedKeys:Ba,getRowKey:Hr,onTriggerExpand:vo,expandIcon:So,expandIconColumnIndex:vi.expandIconColumnIndex,direction:_n,scrollWidth:uo&&Eo&&typeof Jr=="number"?Jr:null,clientWidth:qi}),uo?si:null),Pa=(0,$e.Z)(Ca,4),Po=Pa[0],Zo=Pa[1],Ni=Pa[2],ji=Pa[3],_i=Ni!=null?Ni:Jr,Na=y.useMemo(function(){return{columns:Po,flattenColumns:Zo}},[Po,Zo]),Ea=y.useRef(),al=y.useRef(),oa=y.useRef(),Fi=y.useRef();y.useImperativeHandle(we,function(){return{nativeElement:Ea.current,scrollTo:function(Ai){var Ua;if(oa.current instanceof HTMLElement){var gl=Ai.index,Ga=Ai.top,ws=Ai.key;if(Lt(Ga)){var rs;(rs=oa.current)===null||rs===void 0||rs.scrollTo({top:Ga})}else{var Vl,Bs=ws!=null?ws:Hr(Ir[gl]);(Vl=oa.current.querySelector('[data-row-key="'.concat(Bs,'"]')))===null||Vl===void 0||Vl.scrollIntoView()}}else(Ua=oa.current)!==null&&Ua!==void 0&&Ua.scrollTo&&oa.current.scrollTo(Ai)}}});var Wi=y.useRef(),Vi=y.useState(!1),Oa=(0,$e.Z)(Vi,2),ma=Oa[0],Pi=Oa[1],ia=y.useState(!1),Li=(0,$e.Z)(ia,2),ja=Li[0],Da=Li[1],tl=y.useState(new Map),ll=(0,$e.Z)(tl,2),$l=ll[0],Ui=ll[1],Ps=Bt(Zo),nl=Ps.map(function(Oi){return $l.get(Oi)}),Dl=y.useMemo(function(){return nl},[nl.join("_")]),pl=St(Dl,Zo,_n),sl=gn&&jt(gn.y),Gi=gn&&jt(_i)||!!vi.fixed,vl=Gi&&Zo.some(function(Oi){var Ai=Oi.fixed;return Ai}),ts=y.useRef(),Zl=pt(oo,wt),jl=Zl.isSticky,Zs=Zl.offsetHeader,js=Zl.offsetSummary,zs=Zl.offsetScroll,Hs=Zl.stickyClassName,qs=Zl.container,ui=y.useMemo(function(){return Dn==null?void 0:Dn(Ir)},[Dn,Ir]),gi=(sl||jl)&&y.isValidElement(ui)&&ui.type===Ie&&ui.props.fixed,ua,xa,Ra;sl&&(xa={overflowY:qr?"scroll":"auto",maxHeight:gn.y}),Gi&&(ua={overflowX:"auto"},sl||(xa={overflowY:"hidden"}),Ra={width:_i===!0?"auto":_i,minWidth:"100%"});var Ma=y.useCallback(function(Oi,Ai){Ui(function(Ua){if(Ua.get(Oi)!==Ai){var gl=new Map(Ua);return gl.set(Oi,Ai),gl}return Ua})},[]),Tl=At(null),Va=(0,$e.Z)(Tl,2),xs=Va[0],eu=Va[1];function Os(Oi,Ai){Ai&&(typeof Ai=="function"?Ai(Oi):Ai.scrollLeft!==Oi&&(Ai.scrollLeft=Oi,Ai.scrollLeft!==Oi&&setTimeout(function(){Ai.scrollLeft=Oi},0)))}var ps=(0,pe.Z)(function(Oi){var Ai=Oi.currentTarget,Ua=Oi.scrollLeft,gl=_n==="rtl",Ga=typeof Ua=="number"?Ua:Ai.scrollLeft,ws=Ai||Zr;if(!eu()||eu()===ws){var rs;xs(ws),Os(Ga,al.current),Os(Ga,oa.current),Os(Ga,Wi.current),Os(Ga,(rs=ts.current)===null||rs===void 0?void 0:rs.setScrollLeft)}var Vl=Ai||al.current;if(Vl){var Bs=uo&&Eo&&typeof _i=="number"?_i:Vl.scrollWidth,fu=Vl.clientWidth;if(Bs===fu){Pi(!1),Da(!1);return}gl?(Pi(-Ga<Bs-fu),Da(-Ga>0)):(Pi(Ga>0),Da(Ga<Bs-fu))}}),Ws=(0,pe.Z)(function(Oi){ps(Oi),ro==null||ro(Oi)}),vs=function(){if(Gi&&oa.current){var Ai;ps({currentTarget:(0,Nn.bn)(oa.current),scrollLeft:(Ai=oa.current)===null||Ai===void 0?void 0:Ai.scrollLeft})}else Pi(!1),Da(!1)},tu=function(Ai){var Ua,gl=Ai.width;(Ua=ts.current)===null||Ua===void 0||Ua.checkScrollBarVisible();var Ga=Ea.current?Ea.current.offsetWidth:gl;uo&&Ko&&Ea.current&&(Ga=Ko(Ea.current,Ga)||Ga),Ga!==qi&&(vs(),Hi(Ga))},Ks=y.useRef(!1);y.useEffect(function(){Ks.current&&vs()},[Gi,cn,Po.length]),y.useEffect(function(){Ks.current=!0},[]);var nu=y.useState(0),vu=(0,$e.Z)(nu,2),ns=vu[0],ru=vu[1],xu=y.useState(!0),ou=(0,$e.Z)(xu,2),Is=ou[0],Su=ou[1];(0,me.Z)(function(){(!Eo||!uo)&&(oa.current instanceof Element?ru((0,Pt.o)(oa.current).width):ru((0,Pt.o)(Fi.current).width)),Su((0,ft.G)("position","sticky"))},[]),y.useEffect(function(){uo&&Oo&&(Oo.body.current=oa.current)});var wu=y.useCallback(function(Oi){return y.createElement(y.Fragment,null,y.createElement(Mn,Oi),gi==="top"&&y.createElement(Ue,Oi,ui))},[gi,ui]),As=y.useCallback(function(Oi){return y.createElement(Ue,Oi,ui)},[ui]),iu=Io(["table"],"table"),Ns=y.useMemo(function(){return Kn||(vl?_i==="max-content"?"auto":"fixed":sl||jl||Zo.some(function(Oi){var Ai=Oi.ellipsis;return Ai})?"fixed":"auto")},[sl,vl,Zo,Kn,jl]),au,Ms={colWidths:Dl,columCount:Zo.length,stickyOffsets:pl,onHeaderRow:Wr,fixHeader:sl,scroll:gn},lu=y.useMemo(function(){return qr?null:typeof xr=="function"?xr():xr},[qr,xr]),gu=y.createElement(dt,{data:Ir,measureColumnWidth:sl||Gi||jl}),su=y.createElement(Fn,{colWidths:Zo.map(function(Oi){var Ai=Oi.width;return Ai}),columns:Zo}),uu=yr!=null?y.createElement("caption",{className:"".concat(wt,"-caption")},yr):void 0,Bu=(0,Le.Z)(st,{data:!0}),Vs=(0,Le.Z)(st,{aria:!0});if(sl||jl){var gs;typeof di=="function"?(gs=di(Ir,{scrollbarSize:ns,ref:oa,onScroll:ps}),Ms.colWidths=Zo.map(function(Oi,Ai){var Ua=Oi.width,gl=Ai===Zo.length-1?Ua-ns:Ua;return typeof gl=="number"&&!Number.isNaN(gl)?gl:0})):gs=y.createElement("div",{style:(0,ut.Z)((0,ut.Z)({},ua),xa),onScroll:Ws,ref:oa,className:Ne()("".concat(wt,"-body"))},y.createElement(iu,(0,_e.Z)({style:(0,ut.Z)((0,ut.Z)({},Ra),{},{tableLayout:Ns})},Vs),uu,su,gu,!gi&&ui&&y.createElement(Ue,{stickyOffsets:pl,flattenColumns:Zo},ui)));var Ss=(0,ut.Z)((0,ut.Z)((0,ut.Z)({noData:!Ir.length,maxContentScroll:Gi&&_i==="max-content"},Ms),Na),{},{direction:_n,stickyClassName:Hs,onScroll:ps});au=y.createElement(y.Fragment,null,Er!==!1&&y.createElement(Xt,(0,_e.Z)({},Ss,{stickyTopOffset:Zs,className:"".concat(wt,"-header"),ref:al}),wu),gs,gi&&gi!=="top"&&y.createElement(Xt,(0,_e.Z)({},Ss,{stickyBottomOffset:js,className:"".concat(wt,"-summary"),ref:Wi}),As),jl&&oa.current&&oa.current instanceof Element&&y.createElement(ir,{ref:ts,offsetScroll:zs,scrollBodyRef:oa,onScroll:ps,container:qs,direction:_n}))}else au=y.createElement("div",{style:(0,ut.Z)((0,ut.Z)({},ua),xa),className:Ne()("".concat(wt,"-content")),onScroll:ps,ref:oa},y.createElement(iu,(0,_e.Z)({style:(0,ut.Z)((0,ut.Z)({},Ra),{},{tableLayout:Ns})},Vs),uu,su,Er!==!1&&y.createElement(Mn,(0,_e.Z)({},Ms,Na)),gu,ui&&y.createElement(Ue,{stickyOffsets:pl,flattenColumns:Zo},ui)));var cu=y.createElement("div",(0,_e.Z)({className:Ne()(wt,Vt,(0,be.Z)((0,be.Z)((0,be.Z)((0,be.Z)((0,be.Z)((0,be.Z)((0,be.Z)((0,be.Z)((0,be.Z)((0,be.Z)({},"".concat(wt,"-rtl"),_n==="rtl"),"".concat(wt,"-ping-left"),ma),"".concat(wt,"-ping-right"),ja),"".concat(wt,"-layout-fixed"),Kn==="fixed"),"".concat(wt,"-fixed-header"),sl),"".concat(wt,"-fixed-column"),vl),"".concat(wt,"-fixed-column-gapped"),vl&&ji),"".concat(wt,"-scroll-horizontal"),Gi),"".concat(wt,"-has-fix-left"),Zo[0]&&Zo[0].fixed),"".concat(wt,"-has-fix-right"),Zo[Zo.length-1]&&Zo[Zo.length-1].fixed==="right")),style:pn,id:er,ref:Ea},Bu),kn&&y.createElement(fn,{className:"".concat(wt,"-title")},kn(Ir)),y.createElement("div",{ref:Fi,className:"".concat(wt,"-container")},au),Pn&&y.createElement(fn,{className:"".concat(wt,"-footer")},Pn(Ir)));Gi&&(cu=y.createElement(at.Z,{onResize:tu},cu));var du=Dt(Zo,pl,_n),Du=y.useMemo(function(){return{scrollX:_i,prefixCls:wt,getComponent:Io,scrollbarSize:ns,direction:_n,fixedInfoList:du,isSticky:jl,supportSticky:Is,componentWidth:qi,fixHeader:sl,fixColumn:vl,horizonScroll:Gi,tableLayout:Ns,rowClassName:en,expandedRowClassName:vi.expandedRowClassName,expandIcon:So,expandableType:ba,expandRowByClick:vi.expandRowByClick,expandedRowRender:vi.expandedRowRender,onTriggerExpand:vo,expandIconColumnIndex:vi.expandIconColumnIndex,indentSize:vi.indentSize,allColumnsFixedLeft:Zo.every(function(Oi){return Oi.fixed==="left"}),emptyNode:lu,columns:Po,flattenColumns:Zo,onColumnResize:Ma,hoverStartRow:na,hoverEndRow:Ki,onHover:ra,rowExpandable:vi.rowExpandable,onRow:Tr,getRowKey:Hr,expandedKeys:Ba,childrenColumnName:ei,rowHoverable:$r}},[_i,wt,Io,ns,_n,du,jl,Is,qi,sl,vl,Gi,Ns,en,vi.expandedRowClassName,So,ba,vi.expandRowByClick,vi.expandedRowRender,vo,vi.expandIconColumnIndex,vi.indentSize,lu,Po,Zo,Ma,na,Ki,ra,vi.rowExpandable,Tr,Hr,Ba,ei,$r]);return y.createElement(Re.Provider,{value:Du},cu)}var Mr=y.forwardRef(hr);function eo(De){return Ye(Mr,De)}var kr=eo();kr.EXPAND_COLUMN=he,kr.INTERNAL_HOOKS=de,kr.Column=Qn,kr.ColumnGroup=fr,kr.Summary=He;var Fr=kr,or=z(48911),Ur=ge(null),Rr=ge(null);function Br(De,we,st){var wt=we||1;return st[De+wt]-(st[De]||0)}function Cr(De){var we=De.rowInfo,st=De.column,wt=De.colIndex,Vt=De.indent,en=De.index,pn=De.component,cn=De.renderIndex,Cn=De.record,gn=De.style,Kn=De.className,_n=De.inverse,kn=De.getHeight,Pn=st.render,Dn=st.dataIndex,yr=st.className,er=st.width,Er=se(Rr,["columnsOffset"]),Dr=Er.columnsOffset,xr=ze(we,st,wt,Vt,en),Tr=xr.key,Wr=xr.fixedInfo,ro=xr.appendCellNode,Qr=xr.additionalCellProps,si=Qr.style,Oo=Qr.colSpan,Eo=Oo===void 0?1:Oo,Ko=Qr.rowSpan,oo=Ko===void 0?1:Ko,lo=wt-1,$r=Br(lo,Eo,Dr),Ir=Eo>1?er-$r:0,qr=(0,ut.Z)((0,ut.Z)((0,ut.Z)({},si),gn),{},{flex:"0 0 ".concat($r,"px"),width:"".concat($r,"px"),marginRight:Ir,pointerEvents:"auto"}),uo=y.useMemo(function(){return _n?oo<=1:Eo===0||oo===0||oo>1},[oo,Eo,_n]);uo?qr.visibility="hidden":_n&&(qr.height=kn==null?void 0:kn(oo));var Io=uo?function(){return null}:Pn,Hr={};return(oo===0||Eo===0)&&(Hr.rowSpan=1,Hr.colSpan=1),y.createElement(on,(0,_e.Z)({className:Ne()(yr,Kn),ellipsis:st.ellipsis,align:st.align,scope:st.rowScope,component:pn,prefixCls:we.prefixCls,key:Tr,record:Cn,index:en,renderIndex:cn,dataIndex:Dn,render:Io,shouldCellUpdate:st.shouldCellUpdate},Wr,{appendNode:ro,additionalProps:(0,ut.Z)((0,ut.Z)({},Qr),{},{style:qr},Hr)}))}var so=Cr,Ho=["data","index","className","rowKey","style","extra","getHeight"],ti=y.forwardRef(function(De,we){var st=De.data,wt=De.index,Vt=De.className,en=De.rowKey,pn=De.style,cn=De.extra,Cn=De.getHeight,gn=(0,ie.Z)(De,Ho),Kn=st.record,_n=st.indent,kn=st.index,Pn=se(Re,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),Dn=Pn.scrollX,yr=Pn.flattenColumns,er=Pn.prefixCls,Er=Pn.fixColumn,Dr=Pn.componentWidth,xr=se(Ur,["getComponent"]),Tr=xr.getComponent,Wr=Qt(Kn,en,wt,_n),ro=Tr(["body","row"],"div"),Qr=Tr(["body","cell"],"div"),si=Wr.rowSupportExpand,Oo=Wr.expanded,Eo=Wr.rowProps,Ko=Wr.expandedRowRender,oo=Wr.expandedRowClassName,lo;if(si&&Oo){var $r=Ko(Kn,wt,_n+1,Oo),Ir=Ht(oo,Kn,wt,_n),qr={};Er&&(qr={style:(0,be.Z)({},"--virtual-width","".concat(Dr,"px"))});var uo="".concat(er,"-expanded-row-cell");lo=y.createElement(ro,{className:Ne()("".concat(er,"-expanded-row"),"".concat(er,"-expanded-row-level-").concat(_n+1),Ir)},y.createElement(on,{component:Qr,prefixCls:er,className:Ne()(uo,(0,be.Z)({},"".concat(uo,"-fixed"),Er)),additionalProps:qr},$r))}var Io=(0,ut.Z)((0,ut.Z)({},pn),{},{width:Dn});cn&&(Io.position="absolute",Io.pointerEvents="none");var Hr=y.createElement(ro,(0,_e.Z)({},Eo,gn,{"data-row-key":en,ref:si?null:we,className:Ne()(Vt,"".concat(er,"-row"),Eo==null?void 0:Eo.className,(0,be.Z)({},"".concat(er,"-row-extra"),cn)),style:(0,ut.Z)((0,ut.Z)({},Io),Eo==null?void 0:Eo.style)}),yr.map(function(di,hi){return y.createElement(so,{key:hi,component:Qr,rowInfo:Wr,column:di,colIndex:hi,indent:_n,index:wt,renderIndex:kn,record:Kn,inverse:cn,getHeight:Cn})}));return si?y.createElement("div",{ref:we},Hr,lo):Hr}),xo=ct(ti),No=xo,To=y.forwardRef(function(De,we){var st=De.data,wt=De.onScroll,Vt=se(Re,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),en=Vt.flattenColumns,pn=Vt.onColumnResize,cn=Vt.getRowKey,Cn=Vt.expandedKeys,gn=Vt.prefixCls,Kn=Vt.childrenColumnName,_n=Vt.scrollX,kn=Vt.direction,Pn=se(Ur),Dn=Pn.sticky,yr=Pn.scrollY,er=Pn.listItemHeight,Er=Pn.getComponent,Dr=Pn.onScroll,xr=y.useRef(),Tr=Nt(st,Kn,Cn,cn),Wr=y.useMemo(function(){var lo=0;return en.map(function($r){var Ir=$r.width,qr=$r.key;return lo+=Ir,[qr,Ir,lo]})},[en]),ro=y.useMemo(function(){return Wr.map(function(lo){return lo[2]})},[Wr]);y.useEffect(function(){Wr.forEach(function(lo){var $r=(0,$e.Z)(lo,2),Ir=$r[0],qr=$r[1];pn(Ir,qr)})},[Wr]),y.useImperativeHandle(we,function(){var lo,$r={scrollTo:function(qr){var uo;(uo=xr.current)===null||uo===void 0||uo.scrollTo(qr)},nativeElement:(lo=xr.current)===null||lo===void 0?void 0:lo.nativeElement};return Object.defineProperty($r,"scrollLeft",{get:function(){var qr;return((qr=xr.current)===null||qr===void 0?void 0:qr.getScrollInfo().x)||0},set:function(qr){var uo;(uo=xr.current)===null||uo===void 0||uo.scrollTo({left:qr})}}),$r});var Qr=function($r,Ir){var qr,uo=(qr=Tr[Ir])===null||qr===void 0?void 0:qr.record,Io=$r.onCell;if(Io){var Hr,di=Io(uo,Ir);return(Hr=di==null?void 0:di.rowSpan)!==null&&Hr!==void 0?Hr:1}return 1},si=function($r){var Ir=$r.start,qr=$r.end,uo=$r.getSize,Io=$r.offsetY;if(qr<0)return null;for(var Hr=en.filter(function(So){return Qr(So,Ir)===0}),di=Ir,hi=function(ei){if(Hr=Hr.filter(function(vo){return Qr(vo,ei)===0}),!Hr.length)return di=ei,1},ha=Ir;ha>=0&&!hi(ha);ha-=1);for(var na=en.filter(function(So){return Qr(So,qr)!==1}),Ki=qr,ra=function(ei){if(na=na.filter(function(vo){return Qr(vo,ei)!==1}),!na.length)return Ki=Math.max(ei-1,qr),1},ya=qr;ya<Tr.length&&!ra(ya);ya+=1);for(var mi=[],vi=function(ei){var vo=Tr[ei];if(!vo)return 1;en.some(function(Jr){return Qr(Jr,ei)>1})&&mi.push(ei)},ba=di;ba<=Ki;ba+=1)vi(ba);var Ba=mi.map(function(So){var ei=Tr[So],vo=cn(ei.record,So),Jr=function(qi){var Hi=So+qi-1,Ca=cn(Tr[Hi].record,Hi),Pa=uo(vo,Ca);return Pa.bottom-Pa.top},xi=uo(vo);return y.createElement(No,{key:So,data:ei,rowKey:vo,index:So,style:{top:-Io+xi.top},extra:!0,getHeight:Jr})});return Ba},Oo=y.useMemo(function(){return{columnsOffset:ro}},[ro]),Eo="".concat(gn,"-tbody"),Ko=Er(["body","wrapper"]),oo={};return Dn&&(oo.position="sticky",oo.bottom=0,(0,Qe.Z)(Dn)==="object"&&Dn.offsetScroll&&(oo.bottom=Dn.offsetScroll)),y.createElement(Rr.Provider,{value:Oo},y.createElement(or.Z,{fullHeight:!1,ref:xr,prefixCls:"".concat(Eo,"-virtual"),styles:{horizontalScrollBar:oo},className:Eo,height:yr,itemHeight:er||24,data:Tr,itemKey:function($r){return cn($r.record)},component:Ko,scrollWidth:_n,direction:kn,onVirtualScroll:function($r){var Ir,qr=$r.x;wt({currentTarget:(Ir=xr.current)===null||Ir===void 0?void 0:Ir.nativeElement,scrollLeft:qr})},onScroll:Dr,extraRender:si},function(lo,$r,Ir){var qr=cn(lo.record,$r);return y.createElement(No,{data:lo,rowKey:qr,index:$r,style:Ir.style})}))}),Xo=ct(To),ko=Xo,go=function(we,st){var wt=st.ref,Vt=st.onScroll;return y.createElement(ko,{ref:wt,data:we,onScroll:Vt})};function dr(De,we){var st=De.data,wt=De.columns,Vt=De.scroll,en=De.sticky,pn=De.prefixCls,cn=pn===void 0?Sr:pn,Cn=De.className,gn=De.listItemHeight,Kn=De.components,_n=De.onScroll,kn=Vt||{},Pn=kn.x,Dn=kn.y;typeof Pn!="number"&&(Pn=1),typeof Dn!="number"&&(Dn=500);var yr=(0,ht.zX)(function(Dr,xr){return(0,mt.Z)(Kn,Dr)||xr}),er=(0,ht.zX)(_n),Er=y.useMemo(function(){return{sticky:en,scrollY:Dn,listItemHeight:gn,getComponent:yr,onScroll:er}},[en,Dn,gn,yr,er]);return y.createElement(Ur.Provider,{value:Er},y.createElement(Fr,(0,_e.Z)({},De,{className:Ne()(Cn,"".concat(cn,"-virtual")),scroll:(0,ut.Z)((0,ut.Z)({},Vt),{},{x:Pn}),components:(0,ut.Z)((0,ut.Z)({},Kn),{},{body:st!=null&&st.length?go:void 0}),columns:wt,internalHooks:de,tailor:!0,ref:we})))}var Tn=y.forwardRef(dr);function Gn(De){return Ye(Tn,De)}var Yn=Gn(),Ln=null,wr=De=>null,Jn=De=>null,sr=z(84105),pr=z(82661),_r=z(34643),Yr=z(34061),to=z(18929);function Fo(De){const[we,st]=(0,y.useState)(null);return[(0,y.useCallback)((en,pn,cn)=>{const Cn=we!=null?we:en,gn=Math.min(Cn||0,en),Kn=Math.max(Cn||0,en),_n=pn.slice(gn,Kn+1).map(Dn=>De(Dn)),kn=_n.some(Dn=>!cn.has(Dn)),Pn=[];return _n.forEach(Dn=>{kn?(cn.has(Dn)||Pn.push(Dn),cn.add(Dn)):(cn.delete(Dn),Pn.push(Dn))}),st(kn?Kn:null),Pn},[we]),en=>{st(en)}]}var Mo=z(32383),Yo=z(62673),Jo=z(75727),ni=z(47889);const ri={},Mi="SELECT_ALL",$i="SELECT_INVERT",Xi="SELECT_NONE",Yi=[],ta=(De,we)=>{let st=[];return(we||[]).forEach(wt=>{st.push(wt),wt&&typeof wt=="object"&&De in wt&&(st=[].concat((0,Ft.Z)(st),(0,Ft.Z)(ta(De,wt[De]))))}),st};var co=(De,we)=>{const{preserveSelectedRowKeys:st,selectedRowKeys:wt,defaultSelectedRowKeys:Vt,getCheckboxProps:en,onChange:pn,onSelect:cn,onSelectAll:Cn,onSelectInvert:gn,onSelectNone:Kn,onSelectMultiple:_n,columnWidth:kn,type:Pn,selections:Dn,fixed:yr,renderCell:er,hideSelectAll:Er,checkStrictly:Dr=!0}=we||{},{prefixCls:xr,data:Tr,pageData:Wr,getRecordByKey:ro,getRowKey:Qr,expandType:si,childrenColumnName:Oo,locale:Eo,getPopupContainer:Ko}=De,oo=(0,Mo.ln)("Table"),[lo,$r]=Fo(So=>So),[Ir,qr]=(0,to.Z)(wt||Vt||Yi,{value:wt}),uo=y.useRef(new Map),Io=(0,y.useCallback)(So=>{if(st){const ei=new Map;So.forEach(vo=>{let Jr=ro(vo);!Jr&&uo.current.has(vo)&&(Jr=uo.current.get(vo)),ei.set(vo,Jr)}),uo.current=ei}},[ro,st]);y.useEffect(()=>{Io(Ir)},[Ir]);const Hr=(0,y.useMemo)(()=>ta(Oo,Wr),[Oo,Wr]),{keyEntities:di}=(0,y.useMemo)(()=>{if(Dr)return{keyEntities:null};let So=Tr;if(st){const ei=new Set(Hr.map((Jr,xi)=>Qr(Jr,xi))),vo=Array.from(uo.current).reduce((Jr,xi)=>{let[Ii,qi]=xi;return ei.has(Ii)?Jr:Jr.concat(qi)},[]);So=[].concat((0,Ft.Z)(So),(0,Ft.Z)(vo))}return(0,Yr.I8)(So,{externalGetKey:Qr,childrenPropName:Oo})},[Tr,Qr,Dr,Oo,st,Hr]),hi=(0,y.useMemo)(()=>{const So=new Map;return Hr.forEach((ei,vo)=>{const Jr=Qr(ei,vo),xi=(en?en(ei):null)||{};So.set(Jr,xi)}),So},[Hr,Qr,en]),ha=(0,y.useCallback)(So=>{const ei=Qr(So);let vo;return hi.has(ei)?vo=hi.get(Qr(So)):vo=en?en(So):void 0,!!(vo!=null&&vo.disabled)},[hi,Qr]),[na,Ki]=(0,y.useMemo)(()=>{if(Dr)return[Ir||[],[]];const{checkedKeys:So,halfCheckedKeys:ei}=(0,_r.S)(Ir,!0,di,ha);return[So||[],ei]},[Ir,Dr,di,ha]),ra=(0,y.useMemo)(()=>{const So=Pn==="radio"?na.slice(0,1):na;return new Set(So)},[na,Pn]),ya=(0,y.useMemo)(()=>Pn==="radio"?new Set:new Set(Ki),[Ki,Pn]);y.useEffect(()=>{we||qr(Yi)},[!!we]);const mi=(0,y.useCallback)((So,ei)=>{let vo,Jr;Io(So),st?(vo=So,Jr=So.map(xi=>uo.current.get(xi))):(vo=[],Jr=[],So.forEach(xi=>{const Ii=ro(xi);Ii!==void 0&&(vo.push(xi),Jr.push(Ii))})),qr(vo),pn==null||pn(vo,Jr,{type:ei})},[qr,ro,pn,st]),vi=(0,y.useCallback)((So,ei,vo,Jr)=>{if(cn){const xi=vo.map(Ii=>ro(Ii));cn(ro(So),ei,xi,Jr)}mi(vo,"single")},[cn,ro,mi]),ba=(0,y.useMemo)(()=>!Dn||Er?null:(Dn===!0?[Mi,$i,Xi]:Dn).map(ei=>ei===Mi?{key:"all",text:Eo.selectionAll,onSelect(){mi(Tr.map((vo,Jr)=>Qr(vo,Jr)).filter(vo=>{const Jr=hi.get(vo);return!(Jr!=null&&Jr.disabled)||ra.has(vo)}),"all")}}:ei===$i?{key:"invert",text:Eo.selectInvert,onSelect(){const vo=new Set(ra);Wr.forEach((xi,Ii)=>{const qi=Qr(xi,Ii),Hi=hi.get(qi);Hi!=null&&Hi.disabled||(vo.has(qi)?vo.delete(qi):vo.add(qi))});const Jr=Array.from(vo);gn&&(oo.deprecated(!1,"onSelectInvert","onChange"),gn(Jr)),mi(Jr,"invert")}}:ei===Xi?{key:"none",text:Eo.selectNone,onSelect(){Kn==null||Kn(),mi(Array.from(ra).filter(vo=>{const Jr=hi.get(vo);return Jr==null?void 0:Jr.disabled}),"none")}}:ei).map(ei=>Object.assign(Object.assign({},ei),{onSelect:function(){for(var vo,Jr,xi=arguments.length,Ii=new Array(xi),qi=0;qi<xi;qi++)Ii[qi]=arguments[qi];(Jr=ei.onSelect)===null||Jr===void 0||(vo=Jr).call.apply(vo,[ei].concat(Ii)),$r(null)}})),[Dn,ra,Wr,Qr,gn,mi]);return[(0,y.useCallback)(So=>{var ei;if(!we)return So.filter(Fi=>Fi!==ri);let vo=(0,Ft.Z)(So);const Jr=new Set(ra),xi=Hr.map(Qr).filter(Fi=>!hi.get(Fi).disabled),Ii=xi.every(Fi=>Jr.has(Fi)),qi=xi.some(Fi=>Jr.has(Fi)),Hi=()=>{const Fi=[];Ii?xi.forEach(Vi=>{Jr.delete(Vi),Fi.push(Vi)}):xi.forEach(Vi=>{Jr.has(Vi)||(Jr.add(Vi),Fi.push(Vi))});const Wi=Array.from(Jr);Cn==null||Cn(!Ii,Wi.map(Vi=>ro(Vi)),Fi.map(Vi=>ro(Vi))),mi(Wi,"all"),$r(null)};let Ca,Pa;if(Pn!=="radio"){let Fi;if(ba){const Pi={getPopupContainer:Ko,items:ba.map((ia,Li)=>{const{key:ja,text:Da,onSelect:tl}=ia;return{key:ja!=null?ja:Li,onClick:()=>{tl==null||tl(xi)},label:Da}})};Fi=y.createElement("div",{className:`${xr}-selection-extra`},y.createElement(Jo.Z,{menu:Pi,getPopupContainer:Ko},y.createElement("span",null,y.createElement(sr.Z,null))))}const Wi=Hr.map((Pi,ia)=>{const Li=Qr(Pi,ia),ja=hi.get(Li)||{};return Object.assign({checked:Jr.has(Li)},ja)}).filter(Pi=>{let{disabled:ia}=Pi;return ia}),Vi=!!Wi.length&&Wi.length===Hr.length,Oa=Vi&&Wi.every(Pi=>{let{checked:ia}=Pi;return ia}),ma=Vi&&Wi.some(Pi=>{let{checked:ia}=Pi;return ia});Pa=y.createElement(Yo.default,{checked:Vi?Oa:!!Hr.length&&Ii,indeterminate:Vi?!Oa&&ma:!Ii&&qi,onChange:Hi,disabled:Hr.length===0||Vi,"aria-label":Fi?"Custom selection":"Select all",skipGroup:!0}),Ca=!Er&&y.createElement("div",{className:`${xr}-selection`},Pa,Fi)}let Po;Pn==="radio"?Po=(Fi,Wi,Vi)=>{const Oa=Qr(Wi,Vi),ma=Jr.has(Oa),Pi=hi.get(Oa);return{node:y.createElement(ni.ZP,Object.assign({},Pi,{checked:ma,onClick:ia=>{var Li;ia.stopPropagation(),(Li=Pi==null?void 0:Pi.onClick)===null||Li===void 0||Li.call(Pi,ia)},onChange:ia=>{var Li;Jr.has(Oa)||vi(Oa,!0,[Oa],ia.nativeEvent),(Li=Pi==null?void 0:Pi.onChange)===null||Li===void 0||Li.call(Pi,ia)}})),checked:ma}}:Po=(Fi,Wi,Vi)=>{var Oa;const ma=Qr(Wi,Vi),Pi=Jr.has(ma),ia=ya.has(ma),Li=hi.get(ma);let ja;return si==="nest"?ja=ia:ja=(Oa=Li==null?void 0:Li.indeterminate)!==null&&Oa!==void 0?Oa:ia,{node:y.createElement(Yo.default,Object.assign({},Li,{indeterminate:ja,checked:Pi,skipGroup:!0,onClick:Da=>{var tl;Da.stopPropagation(),(tl=Li==null?void 0:Li.onClick)===null||tl===void 0||tl.call(Li,Da)},onChange:Da=>{var tl;const{nativeEvent:ll}=Da,{shiftKey:$l}=ll,Ui=xi.findIndex(nl=>nl===ma),Ps=na.some(nl=>xi.includes(nl));if($l&&Dr&&Ps){const nl=lo(Ui,xi,Jr),Dl=Array.from(Jr);_n==null||_n(!Pi,Dl.map(pl=>ro(pl)),nl.map(pl=>ro(pl))),mi(Dl,"multiple")}else{const nl=na;if(Dr){const Dl=Pi?(0,pr._5)(nl,ma):(0,pr.L0)(nl,ma);vi(ma,!Pi,Dl,ll)}else{const Dl=(0,_r.S)([].concat((0,Ft.Z)(nl),[ma]),!0,di,ha),{checkedKeys:pl,halfCheckedKeys:sl}=Dl;let Gi=pl;if(Pi){const vl=new Set(pl);vl.delete(ma),Gi=(0,_r.S)(Array.from(vl),{checked:!1,halfCheckedKeys:sl},di,ha).checkedKeys}vi(ma,!Pi,Gi,ll)}}$r(Pi?null:Ui),(tl=Li==null?void 0:Li.onChange)===null||tl===void 0||tl.call(Li,Da)}})),checked:Pi}};const Zo=(Fi,Wi,Vi)=>{const{node:Oa,checked:ma}=Po(Fi,Wi,Vi);return er?er(ma,Wi,Vi,Oa):Oa};if(!vo.includes(ri))if(vo.findIndex(Fi=>{var Wi;return((Wi=Fi[Gt])===null||Wi===void 0?void 0:Wi.columnType)==="EXPAND_COLUMN"})===0){const[Fi,...Wi]=vo;vo=[Fi,ri].concat((0,Ft.Z)(Wi))}else vo=[ri].concat((0,Ft.Z)(vo));const Ni=vo.indexOf(ri);vo=vo.filter((Fi,Wi)=>Fi!==ri||Wi===Ni);const ji=vo[Ni-1],_i=vo[Ni+1];let Na=yr;Na===void 0&&((_i==null?void 0:_i.fixed)!==void 0?Na=_i.fixed:(ji==null?void 0:ji.fixed)!==void 0&&(Na=ji.fixed)),Na&&ji&&((ei=ji[Gt])===null||ei===void 0?void 0:ei.columnType)==="EXPAND_COLUMN"&&ji.fixed===void 0&&(ji.fixed=Na);const Ea=Ne()(`${xr}-selection-col`,{[`${xr}-selection-col-with-dropdown`]:Dn&&Pn==="checkbox"}),al=()=>we!=null&&we.columnTitle?typeof we.columnTitle=="function"?we.columnTitle(Pa):we.columnTitle:Ca,oa={fixed:Na,width:kn,className:`${xr}-selection-column`,title:al(),render:Zo,onCell:we.onCell,[Gt]:{className:Ea}};return vo.map(Fi=>Fi===ri?oa:Fi)},[Qr,Hr,we,na,ra,ya,kn,ba,si,hi,_n,vi,ha]),ra]},wi=z(2738);function wo(De,we){return De._antProxy=De._antProxy||{},Object.keys(we).forEach(st=>{if(!(st in De._antProxy)){const wt=De[st];De._antProxy[st]=wt,De[st]=we[st]}}),De}function aa(De,we){return(0,y.useImperativeHandle)(De,()=>{const st=we(),{nativeElement:wt}=st;return typeof Proxy!="undefined"?new Proxy(wt,{get(Vt,en){return st[en]?st[en]:Reflect.get(Vt,en)}}):wo(wt,st)})}var Qa=z(83010),Ha=z(48755),da=z(38406),fa=z(83397),Ti=z(31756),ka=z(13783),ol=z(85981),Ja=z(31709),la=z(29787),Pl=z(57700);function El(De){return we=>{const{prefixCls:st,onExpand:wt,record:Vt,expanded:en,expandable:pn}=we,cn=`${st}-row-expand-icon`;return y.createElement("button",{type:"button",onClick:Cn=>{wt(Vt,Cn),Cn.stopPropagation()},className:Ne()(cn,{[`${cn}-spaced`]:!pn,[`${cn}-expanded`]:pn&&en,[`${cn}-collapsed`]:pn&&!en}),"aria-label":en?De.collapse:De.expand,"aria-expanded":en})}}var jo=El;function ai(De){return(st,wt)=>{const Vt=st.querySelector(`.${De}-container`);let en=wt;if(Vt){const pn=getComputedStyle(Vt),cn=parseInt(pn.borderLeftWidth,10),Cn=parseInt(pn.borderRightWidth,10);en=wt-cn-Cn}return en}}const Ro=(De,we)=>"key"in De&&De.key!==void 0&&De.key!==null?De.key:De.dataIndex?Array.isArray(De.dataIndex)?De.dataIndex.join("."):De.dataIndex:we;function Bo(De,we){return we?`${we}-${De}`:`${De}`}const qo=(De,we)=>typeof De=="function"?De(we):De,Bi=(De,we)=>{const st=qo(De,we);return Object.prototype.toString.call(st)==="[object Object]"?"":st};var Wa={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"},zi=Wa,Qi=z(7657),sa=function(we,st){return y.createElement(Qi.Z,(0,_e.Z)({},we,{ref:st,icon:zi}))},cl=y.forwardRef(sa),xl=cl,Ka=z(9981),Sl=z(40192);function kl(De){const we=y.useRef(De),st=(0,Sl.Z)();return[()=>we.current,wt=>{we.current=wt,st()}]}var dl=z(7939),zl=z(584),Fs=z(93041),Gl=z(78857),Ol=z(18287),Ll=z(47472),fl=z(49397),Xl=De=>{const{value:we,filterSearch:st,tablePrefixCls:wt,locale:Vt,onChange:en}=De;return st?y.createElement("div",{className:`${wt}-filter-dropdown-search`},y.createElement(fl.Z,{prefix:y.createElement(Ll.Z,null),placeholder:Vt.filterSearchPlaceholder,onChange:en,value:we,htmlSize:1,className:`${wt}-filter-dropdown-search-input`})):null},bs=z(10228);const Il=De=>{const{keyCode:we}=De;we===bs.Z.ENTER&&De.stopPropagation()};var as=y.forwardRef((De,we)=>y.createElement("div",{className:De.className,onClick:st=>st.stopPropagation(),onKeyDown:Il,ref:we},De.children));function wl(De){let we=[];return(De||[]).forEach(st=>{let{value:wt,children:Vt}=st;we.push(wt),Vt&&(we=[].concat((0,Ft.Z)(we),(0,Ft.Z)(wl(Vt))))}),we}function Hl(De){return De.some(we=>{let{children:st}=we;return st})}function Wl(De,we){return typeof we=="string"||typeof we=="number"?we==null?void 0:we.toString().toLowerCase().includes(De.trim().toLowerCase()):!1}function ls(De){let{filters:we,prefixCls:st,filteredKeys:wt,filterMultiple:Vt,searchValue:en,filterSearch:pn}=De;return we.map((cn,Cn)=>{const gn=String(cn.value);if(cn.children)return{key:gn||Cn,label:cn.text,popupClassName:`${st}-dropdown-submenu`,children:ls({filters:cn.children,prefixCls:st,filteredKeys:wt,filterMultiple:Vt,searchValue:en,filterSearch:pn})};const Kn=Vt?Yo.default:ni.ZP,_n={key:cn.value!==void 0?gn:Cn,label:y.createElement(y.Fragment,null,y.createElement(Kn,{checked:wt.includes(gn)}),y.createElement("span",null,cn.text))};return en.trim()?typeof pn=="function"?pn(en,cn)?_n:null:Wl(en,cn.text)?_n:null:_n})}function Kl(De){return De||[]}var qa=De=>{var we,st,wt,Vt;const{tablePrefixCls:en,prefixCls:pn,column:cn,dropdownPrefixCls:Cn,columnKey:gn,filterOnClose:Kn,filterMultiple:_n,filterMode:kn="menu",filterSearch:Pn=!1,filterState:Dn,triggerFilter:yr,locale:er,children:Er,getPopupContainer:Dr,rootClassName:xr}=De,{filterResetToDefaultFilteredValue:Tr,defaultFilteredValue:Wr,filterDropdownProps:ro={},filterDropdownOpen:Qr,filterDropdownVisible:si,onFilterDropdownVisibleChange:Oo,onFilterDropdownOpenChange:Eo}=cn,[Ko,oo]=y.useState(!1),lo=!!(Dn&&(!((we=Dn.filteredKeys)===null||we===void 0)&&we.length||Dn.forceFiltered)),$r=Po=>{var Zo;oo(Po),(Zo=ro.onOpenChange)===null||Zo===void 0||Zo.call(ro,Po),Eo==null||Eo(Po),Oo==null||Oo(Po)},Ir=(Vt=(wt=(st=ro.open)!==null&&st!==void 0?st:Qr)!==null&&wt!==void 0?wt:si)!==null&&Vt!==void 0?Vt:Ko,qr=Dn==null?void 0:Dn.filteredKeys,[uo,Io]=kl(Kl(qr)),Hr=Po=>{let{selectedKeys:Zo}=Po;Io(Zo)},di=(Po,Zo)=>{let{node:Ni,checked:ji}=Zo;Hr(_n?{selectedKeys:Po}:{selectedKeys:ji&&Ni.key?[Ni.key]:[]})};y.useEffect(()=>{Ko&&Hr({selectedKeys:Kl(qr)})},[qr]);const[hi,ha]=y.useState([]),na=Po=>{ha(Po)},[Ki,ra]=y.useState(""),ya=Po=>{const{value:Zo}=Po.target;ra(Zo)};y.useEffect(()=>{Ko||ra("")},[Ko]);const mi=Po=>{const Zo=Po!=null&&Po.length?Po:null;if(Zo===null&&(!Dn||!Dn.filteredKeys)||(0,ve.Z)(Zo,Dn==null?void 0:Dn.filteredKeys,!0))return null;yr({column:cn,key:gn,filteredKeys:Zo})},vi=()=>{$r(!1),mi(uo())},ba=function(){let{confirm:Po,closeDropdown:Zo}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};Po&&mi([]),Zo&&$r(!1),ra(""),Io(Tr?(Wr||[]).map(Ni=>String(Ni)):[])},Ba=function(){let{closeDropdown:Po}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};Po&&$r(!1),mi(uo())},So=(Po,Zo)=>{Zo.source==="trigger"&&(Po&&qr!==void 0&&Io(Kl(qr)),$r(Po),!Po&&!cn.filterDropdown&&Kn&&vi())},ei=Ne()({[`${Cn}-menu-without-submenu`]:!Hl(cn.filters||[])}),vo=Po=>{if(Po.target.checked){const Zo=wl(cn==null?void 0:cn.filters).map(Ni=>String(Ni));Io(Zo)}else Io([])},Jr=Po=>{let{filters:Zo}=Po;return(Zo||[]).map((Ni,ji)=>{const _i=String(Ni.value),Na={title:Ni.text,key:Ni.value!==void 0?_i:String(ji)};return Ni.children&&(Na.children=Jr({filters:Ni.children})),Na})},xi=Po=>{var Zo;return Object.assign(Object.assign({},Po),{text:Po.title,value:Po.key,children:((Zo=Po.children)===null||Zo===void 0?void 0:Zo.map(Ni=>xi(Ni)))||[]})};let Ii;const{direction:qi,renderEmpty:Hi}=y.useContext(Ha.E_);if(typeof cn.filterDropdown=="function")Ii=cn.filterDropdown({prefixCls:`${Cn}-custom`,setSelectedKeys:Po=>Hr({selectedKeys:Po}),selectedKeys:uo(),confirm:Ba,clearFilters:ba,filters:cn.filters,visible:Ir,close:()=>{$r(!1)}});else if(cn.filterDropdown)Ii=cn.filterDropdown;else{const Po=uo()||[],Zo=()=>{var ji,_i;const Na=(ji=Hi==null?void 0:Hi("Table.filter"))!==null&&ji!==void 0?ji:y.createElement(zl.Z,{image:zl.Z.PRESENTED_IMAGE_SIMPLE,description:er.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if((cn.filters||[]).length===0)return Na;if(kn==="tree")return y.createElement(y.Fragment,null,y.createElement(Xl,{filterSearch:Pn,value:Ki,onChange:ya,tablePrefixCls:en,locale:er}),y.createElement("div",{className:`${en}-filter-dropdown-tree`},_n?y.createElement(Yo.default,{checked:Po.length===wl(cn.filters).length,indeterminate:Po.length>0&&Po.length<wl(cn.filters).length,className:`${en}-filter-dropdown-checkall`,onChange:vo},(_i=er==null?void 0:er.filterCheckall)!==null&&_i!==void 0?_i:er==null?void 0:er.filterCheckAll):null,y.createElement(Ol.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:_n,checkStrictly:!_n,className:`${Cn}-menu`,onCheck:di,checkedKeys:Po,selectedKeys:Po,showIcon:!1,treeData:Jr({filters:cn.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:Ki.trim()?oa=>typeof Pn=="function"?Pn(Ki,xi(oa)):Wl(Ki,oa.title):void 0})));const Ea=ls({filters:cn.filters||[],filterSearch:Pn,prefixCls:pn,filteredKeys:uo(),filterMultiple:_n,searchValue:Ki}),al=Ea.every(oa=>oa===null);return y.createElement(y.Fragment,null,y.createElement(Xl,{filterSearch:Pn,value:Ki,onChange:ya,tablePrefixCls:en,locale:er}),al?Na:y.createElement(Fs.default,{selectable:!0,multiple:_n,prefixCls:`${Cn}-menu`,className:ei,onSelect:Hr,onDeselect:Hr,selectedKeys:Po,getPopupContainer:Dr,openKeys:hi,onOpenChange:na,items:Ea}))},Ni=()=>Tr?(0,ve.Z)((Wr||[]).map(ji=>String(ji)),Po,!0):Po.length===0;Ii=y.createElement(y.Fragment,null,Zo(),y.createElement("div",{className:`${pn}-dropdown-btns`},y.createElement(dl.ZP,{type:"link",size:"small",disabled:Ni(),onClick:()=>ba()},er.filterReset),y.createElement(dl.ZP,{type:"primary",size:"small",onClick:vi},er.filterConfirm)))}cn.filterDropdown&&(Ii=y.createElement(Gl.J,{selectable:void 0},Ii)),Ii=y.createElement(as,{className:`${pn}-dropdown`},Ii);const Ca=()=>{let Po;return typeof cn.filterIcon=="function"?Po=cn.filterIcon(lo):cn.filterIcon?Po=cn.filterIcon:Po=y.createElement(xl,null),y.createElement("span",{role:"button",tabIndex:-1,className:Ne()(`${pn}-trigger`,{active:lo}),onClick:Zo=>{Zo.stopPropagation()}},Po)},Pa=(0,Ka.Z)({trigger:["click"],placement:qi==="rtl"?"bottomLeft":"bottomRight",children:Ca(),getPopupContainer:Dr},Object.assign(Object.assign({},ro),{rootClassName:Ne()(xr,ro.rootClassName),open:Ir,onOpenChange:So,dropdownRender:()=>typeof(ro==null?void 0:ro.dropdownRender)=="function"?ro.dropdownRender(Ii):Ii}));return y.createElement("div",{className:`${pn}-column`},y.createElement("span",{className:`${en}-column-title`},Er),y.createElement(Jo.Z,Object.assign({},Pa)))};const el=(De,we,st)=>{let wt=[];return(De||[]).forEach((Vt,en)=>{var pn;const cn=Bo(en,st);if(Vt.filters||"filterDropdown"in Vt||"onFilter"in Vt)if("filteredValue"in Vt){let Cn=Vt.filteredValue;"filterDropdown"in Vt||(Cn=(pn=Cn==null?void 0:Cn.map(String))!==null&&pn!==void 0?pn:Cn),wt.push({column:Vt,key:Ro(Vt,cn),filteredKeys:Cn,forceFiltered:Vt.filtered})}else wt.push({column:Vt,key:Ro(Vt,cn),filteredKeys:we&&Vt.defaultFilteredValue?Vt.defaultFilteredValue:void 0,forceFiltered:Vt.filtered});"children"in Vt&&(wt=[].concat((0,Ft.Z)(wt),(0,Ft.Z)(el(Vt.children,we,cn))))}),wt};function Zi(De,we,st,wt,Vt,en,pn,cn,Cn){return st.map((gn,Kn)=>{const _n=Bo(Kn,cn),{filterOnClose:kn=!0,filterMultiple:Pn=!0,filterMode:Dn,filterSearch:yr}=gn;let er=gn;if(er.filters||er.filterDropdown){const Er=Ro(er,_n),Dr=wt.find(xr=>{let{key:Tr}=xr;return Er===Tr});er=Object.assign(Object.assign({},er),{title:xr=>y.createElement(qa,{tablePrefixCls:De,prefixCls:`${De}-filter`,dropdownPrefixCls:we,column:er,columnKey:Er,filterState:Dr,filterOnClose:kn,filterMultiple:Pn,filterMode:Dn,filterSearch:yr,triggerFilter:en,locale:Vt,getPopupContainer:pn,rootClassName:Cn},qo(gn.title,xr))})}return"children"in er&&(er=Object.assign(Object.assign({},er),{children:Zi(De,we,er.children,wt,Vt,en,pn,_n,Cn)})),er})}const yi=De=>{const we={};return De.forEach(st=>{let{key:wt,filteredKeys:Vt,column:en}=st;const pn=wt,{filters:cn,filterDropdown:Cn}=en;if(Cn)we[pn]=Vt||null;else if(Array.isArray(Vt)){const gn=wl(cn);we[pn]=gn.filter(Kn=>Vt.includes(String(Kn)))}else we[pn]=null}),we},ci=(De,we,st)=>we.reduce((Vt,en)=>{const{column:{onFilter:pn,filters:cn},filteredKeys:Cn}=en;return pn&&Cn&&Cn.length?Vt.map(gn=>Object.assign({},gn)).filter(gn=>Cn.some(Kn=>{const _n=wl(cn),kn=_n.findIndex(Dn=>String(Dn)===String(Kn)),Pn=kn!==-1?_n[kn]:Kn;return gn[st]&&(gn[st]=ci(gn[st],we,st)),pn(Pn,gn)})):Vt},De),gt=De=>De.flatMap(we=>"children"in we?[we].concat((0,Ft.Z)(gt(we.children||[]))):[we]);var qt=De=>{const{prefixCls:we,dropdownPrefixCls:st,mergedColumns:wt,onFilterChange:Vt,getPopupContainer:en,locale:pn,rootClassName:cn}=De,Cn=(0,Mo.ln)("Table"),gn=y.useMemo(()=>gt(wt||[]),[wt]),[Kn,_n]=y.useState(()=>el(gn,!0)),kn=y.useMemo(()=>{const er=el(gn,!1);if(er.length===0)return er;let Er=!0,Dr=!0;if(er.forEach(xr=>{let{filteredKeys:Tr}=xr;Tr!==void 0?Er=!1:Dr=!1}),Er){const xr=(gn||[]).map((Tr,Wr)=>Ro(Tr,Bo(Wr)));return Kn.filter(Tr=>{let{key:Wr}=Tr;return xr.includes(Wr)}).map(Tr=>{const Wr=gn[xr.findIndex(ro=>ro===Tr.key)];return Object.assign(Object.assign({},Tr),{column:Object.assign(Object.assign({},Tr.column),Wr),forceFiltered:Wr.filtered})})}return er},[gn,Kn]),Pn=y.useMemo(()=>yi(kn),[kn]),Dn=er=>{const Er=kn.filter(Dr=>{let{key:xr}=Dr;return xr!==er.key});Er.push(er),_n(Er),Vt(yi(Er),Er)};return[er=>Zi(we,st,er,kn,pn,Dn,en,void 0,cn),kn,Pn]},yo=(De,we,st)=>{const wt=y.useRef({});function Vt(en){var pn;if(!wt.current||wt.current.data!==De||wt.current.childrenColumnName!==we||wt.current.getRowKey!==st){let Cn=function(gn){gn.forEach((Kn,_n)=>{const kn=st(Kn,_n);cn.set(kn,Kn),Kn&&typeof Kn=="object"&&we in Kn&&Cn(Kn[we]||[])})};const cn=new Map;Cn(De),wt.current={data:De,childrenColumnName:we,kvMap:cn,getRowKey:st}}return(pn=wt.current.kvMap)===null||pn===void 0?void 0:pn.get(en)}return[Vt]},Vr=function(De,we){var st={};for(var wt in De)Object.prototype.hasOwnProperty.call(De,wt)&&we.indexOf(wt)<0&&(st[wt]=De[wt]);if(De!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Vt=0,wt=Object.getOwnPropertySymbols(De);Vt<wt.length;Vt++)we.indexOf(wt[Vt])<0&&Object.prototype.propertyIsEnumerable.call(De,wt[Vt])&&(st[wt[Vt]]=De[wt[Vt]]);return st};const fo=10;function Pr(De,we){const st={current:De.current,pageSize:De.pageSize};return Object.keys(we&&typeof we=="object"?we:{}).forEach(Vt=>{const en=De[Vt];typeof en!="function"&&(st[Vt]=en)}),st}function Kr(De,we,st){const wt=st&&typeof st=="object"?st:{},{total:Vt=0}=wt,en=Vr(wt,["total"]),[pn,cn]=(0,y.useState)(()=>({current:"defaultCurrent"in en?en.defaultCurrent:1,pageSize:"defaultPageSize"in en?en.defaultPageSize:fo})),Cn=(0,Ka.Z)(pn,en,{total:Vt>0?Vt:De}),gn=Math.ceil((Vt||De)/Cn.pageSize);Cn.current>gn&&(Cn.current=gn||1);const Kn=(kn,Pn)=>{cn({current:kn!=null?kn:1,pageSize:Pn||Cn.pageSize})},_n=(kn,Pn)=>{var Dn;st&&((Dn=st.onChange)===null||Dn===void 0||Dn.call(st,kn,Pn)),Kn(kn,Pn),we(kn,Pn||(Cn==null?void 0:Cn.pageSize))};return st===!1?[{},()=>{}]:[Object.assign(Object.assign({},Cn),{onChange:_n}),Kn]}var _o=Kr,ho=z(89489),oi=z(59477),pi=z(25399);const Qo="ascend",gr="descend",io=De=>typeof De.sorter=="object"&&typeof De.sorter.multiple=="number"?De.sorter.multiple:!1,bo=De=>typeof De=="function"?De:De&&typeof De=="object"&&De.compare?De.compare:!1,Ao=(De,we)=>we?De[De.indexOf(we)+1]:De[0],zr=(De,we,st)=>{let wt=[];const Vt=(en,pn)=>{wt.push({column:en,key:Ro(en,pn),multiplePriority:io(en),sortOrder:en.sortOrder})};return(De||[]).forEach((en,pn)=>{const cn=Bo(pn,st);en.children?("sortOrder"in en&&Vt(en,cn),wt=[].concat((0,Ft.Z)(wt),(0,Ft.Z)(zr(en.children,we,cn)))):en.sorter&&("sortOrder"in en?Vt(en,cn):we&&en.defaultSortOrder&&wt.push({column:en,key:Ro(en,cn),multiplePriority:io(en),sortOrder:en.defaultSortOrder}))}),wt},Go=(De,we,st,wt,Vt,en,pn,cn)=>(we||[]).map((gn,Kn)=>{const _n=Bo(Kn,cn);let kn=gn;if(kn.sorter){const Pn=kn.sortDirections||Vt,Dn=kn.showSorterTooltip===void 0?pn:kn.showSorterTooltip,yr=Ro(kn,_n),er=st.find(Oo=>{let{key:Eo}=Oo;return Eo===yr}),Er=er?er.sortOrder:null,Dr=Ao(Pn,Er);let xr;if(gn.sortIcon)xr=gn.sortIcon({sortOrder:Er});else{const Oo=Pn.includes(Qo)&&y.createElement(oi.Z,{className:Ne()(`${De}-column-sorter-up`,{active:Er===Qo})}),Eo=Pn.includes(gr)&&y.createElement(ho.Z,{className:Ne()(`${De}-column-sorter-down`,{active:Er===gr})});xr=y.createElement("span",{className:Ne()(`${De}-column-sorter`,{[`${De}-column-sorter-full`]:!!(Oo&&Eo)})},y.createElement("span",{className:`${De}-column-sorter-inner`,"aria-hidden":"true"},Oo,Eo))}const{cancelSort:Tr,triggerAsc:Wr,triggerDesc:ro}=en||{};let Qr=Tr;Dr===gr?Qr=ro:Dr===Qo&&(Qr=Wr);const si=typeof Dn=="object"?Object.assign({title:Qr},Dn):{title:Qr};kn=Object.assign(Object.assign({},kn),{className:Ne()(kn.className,{[`${De}-column-sort`]:Er}),title:Oo=>{const Eo=`${De}-column-sorters`,Ko=y.createElement("span",{className:`${De}-column-title`},qo(gn.title,Oo)),oo=y.createElement("div",{className:Eo},Ko,xr);return Dn?typeof Dn!="boolean"&&(Dn==null?void 0:Dn.target)==="sorter-icon"?y.createElement("div",{className:`${Eo} ${De}-column-sorters-tooltip-target-sorter`},Ko,y.createElement(pi.Z,Object.assign({},si),xr)):y.createElement(pi.Z,Object.assign({},si),oo):oo},onHeaderCell:Oo=>{var Eo;const Ko=((Eo=gn.onHeaderCell)===null||Eo===void 0?void 0:Eo.call(gn,Oo))||{},oo=Ko.onClick,lo=Ko.onKeyDown;Ko.onClick=qr=>{wt({column:gn,key:yr,sortOrder:Dr,multiplePriority:io(gn)}),oo==null||oo(qr)},Ko.onKeyDown=qr=>{qr.keyCode===bs.Z.ENTER&&(wt({column:gn,key:yr,sortOrder:Dr,multiplePriority:io(gn)}),lo==null||lo(qr))};const $r=Bi(gn.title,{}),Ir=$r==null?void 0:$r.toString();return Er&&(Ko["aria-sort"]=Er==="ascend"?"ascending":"descending"),Ko["aria-label"]=Ir||"",Ko.className=Ne()(Ko.className,`${De}-column-has-sorters`),Ko.tabIndex=0,gn.ellipsis&&(Ko.title=($r!=null?$r:"").toString()),Ko}})}return"children"in kn&&(kn=Object.assign(Object.assign({},kn),{children:Go(De,kn.children,st,wt,Vt,en,pn,_n)})),kn}),fi=De=>{const{column:we,sortOrder:st}=De;return{column:we,order:st,field:we.dataIndex,columnKey:we.key}},ao=De=>{const we=De.filter(st=>{let{sortOrder:wt}=st;return wt}).map(fi);if(we.length===0&&De.length){const st=De.length-1;return Object.assign(Object.assign({},fi(De[st])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return we.length<=1?we[0]||{}:we},Co=(De,we,st)=>{const wt=we.slice().sort((pn,cn)=>cn.multiplePriority-pn.multiplePriority),Vt=De.slice(),en=wt.filter(pn=>{let{column:{sorter:cn},sortOrder:Cn}=pn;return bo(cn)&&Cn});return en.length?Vt.sort((pn,cn)=>{for(let Cn=0;Cn<en.length;Cn+=1){const gn=en[Cn],{column:{sorter:Kn},sortOrder:_n}=gn,kn=bo(Kn);if(kn&&_n){const Pn=kn(pn,cn,_n);if(Pn!==0)return _n===Qo?Pn:-Pn}}return 0}).map(pn=>{const cn=pn[st];return cn?Object.assign(Object.assign({},pn),{[st]:Co(cn,we,st)}):pn}):Vt};var no=De=>{const{prefixCls:we,mergedColumns:st,sortDirections:wt,tableLocale:Vt,showSorterTooltip:en,onSorterChange:pn}=De,[cn,Cn]=y.useState(zr(st,!0)),gn=(yr,er)=>{const Er=[];return yr.forEach((Dr,xr)=>{const Tr=Bo(xr,er);if(Er.push(Ro(Dr,Tr)),Array.isArray(Dr.children)){const Wr=gn(Dr.children,Tr);Er.push.apply(Er,(0,Ft.Z)(Wr))}}),Er},Kn=y.useMemo(()=>{let yr=!0;const er=zr(st,!1);if(!er.length){const Tr=gn(st);return cn.filter(Wr=>{let{key:ro}=Wr;return Tr.includes(ro)})}const Er=[];function Dr(Tr){yr?Er.push(Tr):Er.push(Object.assign(Object.assign({},Tr),{sortOrder:null}))}let xr=null;return er.forEach(Tr=>{xr===null?(Dr(Tr),Tr.sortOrder&&(Tr.multiplePriority===!1?yr=!1:xr=!0)):(xr&&Tr.multiplePriority!==!1||(yr=!1),Dr(Tr))}),Er},[st,cn]),_n=y.useMemo(()=>{var yr,er;const Er=Kn.map(Dr=>{let{column:xr,sortOrder:Tr}=Dr;return{column:xr,order:Tr}});return{sortColumns:Er,sortColumn:(yr=Er[0])===null||yr===void 0?void 0:yr.column,sortOrder:(er=Er[0])===null||er===void 0?void 0:er.order}},[Kn]),kn=yr=>{let er;yr.multiplePriority===!1||!Kn.length||Kn[0].multiplePriority===!1?er=[yr]:er=[].concat((0,Ft.Z)(Kn.filter(Er=>{let{key:Dr}=Er;return Dr!==yr.key})),[yr]),Cn(er),pn(ao(er),er)};return[yr=>Go(we,yr,Kn,kn,wt,Vt,en),Kn,_n,()=>ao(Kn)]};const bi=(De,we)=>De.map(wt=>{const Vt=Object.assign({},wt);return Vt.title=qo(wt.title,we),"children"in Vt&&(Vt.children=bi(Vt.children,we)),Vt});var Ji=De=>[y.useCallback(st=>bi(st,De),[De])],zo=eo((De,we)=>{const{_renderTimes:st}=De,{_renderTimes:wt}=we;return st!==wt}),Aa=Gn((De,we)=>{const{_renderTimes:st}=De,{_renderTimes:wt}=we;return st!==wt}),cr=z(36237),Ci=z(17835),Di=z(63356),Ei=z(16931),wa=z(51636),Jl=De=>{const{componentCls:we,lineWidth:st,lineType:wt,tableBorderColor:Vt,tableHeaderBg:en,tablePaddingVertical:pn,tablePaddingHorizontal:cn,calc:Cn}=De,gn=`${(0,cr.unit)(st)} ${wt} ${Vt}`,Kn=(_n,kn,Pn)=>({[`&${we}-${_n}`]:{[`> ${we}-container`]:{[`> ${we}-content, > ${we}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${we}-expanded-row-fixed`]:{margin:`${(0,cr.unit)(Cn(kn).mul(-1).equal())}
${(0,cr.unit)(Cn(Cn(Pn).add(st)).mul(-1).equal())}`}}}}}});return{[`${we}-wrapper`]:{[`${we}${we}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${we}-title`]:{border:gn,borderBottom:0},[`> ${we}-container`]:{borderInlineStart:gn,borderTop:gn,[`
> ${we}-content,
> ${we}-header,
> ${we}-body,
> ${we}-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:gn},"> thead":{"> tr:not(:last-child) > th":{borderBottom:gn},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${we}-cell-fix-right-first::after`]:{borderInlineEnd:gn}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${we}-expanded-row-fixed`]:{margin:`${(0,cr.unit)(Cn(pn).mul(-1).equal())} ${(0,cr.unit)(Cn(Cn(cn).add(st)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:st,bottom:0,borderInlineEnd:gn,content:'""'}}}}}},[`&${we}-scroll-horizontal`]:{[`> ${we}-container > ${we}-body`]:{"> table > tbody":{[`
> tr${we}-expanded-row,
> tr${we}-placeholder
`]:{"> th, > td":{borderInlineEnd:0}}}}}},Kn("middle",De.tablePaddingVerticalMiddle,De.tablePaddingHorizontalMiddle)),Kn("small",De.tablePaddingVerticalSmall,De.tablePaddingHorizontalSmall)),{[`> ${we}-footer`]:{border:gn,borderTop:0}}),[`${we}-cell`]:{[`${we}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${(0,cr.unit)(st)} 0 ${(0,cr.unit)(st)} ${en}`}},[`${we}-bordered ${we}-cell-scrollbar`]:{borderInlineEnd:gn}}}},Al=De=>{const{componentCls:we}=De;return{[`${we}-wrapper`]:{[`${we}-cell-ellipsis`]:Object.assign(Object.assign({},Di.vS),{wordBreak:"keep-all",[`
&${we}-cell-fix-left-last,
&${we}-cell-fix-right-first
`]:{overflow:"visible",[`${we}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${we}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},Cs=De=>{const{componentCls:we}=De;return{[`${we}-wrapper`]:{[`${we}-tbody > tr${we}-placeholder`]:{textAlign:"center",color:De.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:De.colorBgContainer}}}}},us=De=>{const{componentCls:we,antCls:st,motionDurationSlow:wt,lineWidth:Vt,paddingXS:en,lineType:pn,tableBorderColor:cn,tableExpandIconBg:Cn,tableExpandColumnWidth:gn,borderRadius:Kn,tablePaddingVertical:_n,tablePaddingHorizontal:kn,tableExpandedRowBg:Pn,paddingXXS:Dn,expandIconMarginTop:yr,expandIconSize:er,expandIconHalfInner:Er,expandIconScale:Dr,calc:xr}=De,Tr=`${(0,cr.unit)(Vt)} ${pn} ${cn}`,Wr=xr(Dn).sub(Vt).equal();return{[`${we}-wrapper`]:{[`${we}-expand-icon-col`]:{width:gn},[`${we}-row-expand-icon-cell`]:{textAlign:"center",[`${we}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${we}-row-indent`]:{height:1,float:"left"},[`${we}-row-expand-icon`]:Object.assign(Object.assign({},(0,Di.Nd)(De)),{position:"relative",float:"left",width:er,height:er,color:"inherit",lineHeight:(0,cr.unit)(er),background:Cn,border:Tr,borderRadius:Kn,transform:`scale(${Dr})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${wt} ease-out`,content:'""'},"&::before":{top:Er,insetInlineEnd:Wr,insetInlineStart:Wr,height:Vt},"&::after":{top:Wr,bottom:Wr,insetInlineStart:Er,width:Vt,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"}}),[`${we}-row-indent + ${we}-row-expand-icon`]:{marginTop:yr,marginInlineEnd:en},[`tr${we}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:Pn}},[`${st}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${we}-expanded-row-fixed`]:{position:"relative",margin:`${(0,cr.unit)(xr(_n).mul(-1).equal())} ${(0,cr.unit)(xr(kn).mul(-1).equal())}`,padding:`${(0,cr.unit)(_n)} ${(0,cr.unit)(kn)}`}}}},Rs=De=>{const{componentCls:we,antCls:st,iconCls:wt,tableFilterDropdownWidth:Vt,tableFilterDropdownSearchWidth:en,paddingXXS:pn,paddingXS:cn,colorText:Cn,lineWidth:gn,lineType:Kn,tableBorderColor:_n,headerIconColor:kn,fontSizeSM:Pn,tablePaddingHorizontal:Dn,borderRadius:yr,motionDurationSlow:er,colorTextDescription:Er,colorPrimary:Dr,tableHeaderFilterActiveBg:xr,colorTextDisabled:Tr,tableFilterDropdownBg:Wr,tableFilterDropdownHeight:ro,controlItemBgHover:Qr,controlItemBgActive:si,boxShadowSecondary:Oo,filterDropdownMenuBg:Eo,calc:Ko}=De,oo=`${st}-dropdown`,lo=`${we}-filter-dropdown`,$r=`${st}-tree`,Ir=`${(0,cr.unit)(gn)} ${Kn} ${_n}`;return[{[`${we}-wrapper`]:{[`${we}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${we}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:Ko(pn).mul(-1).equal(),marginInline:`${(0,cr.unit)(pn)} ${(0,cr.unit)(Ko(Dn).div(2).mul(-1).equal())}`,padding:`0 ${(0,cr.unit)(pn)}`,color:kn,fontSize:Pn,borderRadius:yr,cursor:"pointer",transition:`all ${er}`,"&:hover":{color:Er,background:xr},"&.active":{color:Dr}}}},{[`${st}-dropdown`]:{[lo]:Object.assign(Object.assign({},(0,Di.Wf)(De)),{minWidth:Vt,backgroundColor:Wr,borderRadius:yr,boxShadow:Oo,overflow:"hidden",[`${oo}-menu`]:{maxHeight:ro,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:Eo,"&:empty::after":{display:"block",padding:`${(0,cr.unit)(cn)} 0`,color:Tr,fontSize:Pn,textAlign:"center",content:'"Not Found"'}},[`${lo}-tree`]:{paddingBlock:`${(0,cr.unit)(cn)} 0`,paddingInline:cn,[$r]:{padding:0},[`${$r}-treenode ${$r}-node-content-wrapper:hover`]:{backgroundColor:Qr},[`${$r}-treenode-checkbox-checked ${$r}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:si}}},[`${lo}-search`]:{padding:cn,borderBottom:Ir,"&-input":{input:{minWidth:en},[wt]:{color:Tr}}},[`${lo}-checkall`]:{width:"100%",marginBottom:pn,marginInlineStart:pn},[`${lo}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${(0,cr.unit)(Ko(cn).sub(gn).equal())} ${(0,cr.unit)(cn)}`,overflow:"hidden",borderTop:Ir}})}},{[`${st}-dropdown ${lo}, ${lo}-submenu`]:{[`${st}-checkbox-wrapper + span`]:{paddingInlineStart:cn,color:Cn},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},cs=De=>{const{componentCls:we,lineWidth:st,colorSplit:wt,motionDurationSlow:Vt,zIndexTableFixed:en,tableBg:pn,zIndexTableSticky:cn,calc:Cn}=De,gn=wt;return{[`${we}-wrapper`]:{[`
${we}-cell-fix-left,
${we}-cell-fix-right
`]:{position:"sticky !important",zIndex:en,background:pn},[`
${we}-cell-fix-left-first::after,
${we}-cell-fix-left-last::after
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:Cn(st).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${Vt}`,content:'""',pointerEvents:"none"},[`${we}-cell-fix-left-all::after`]:{display:"none"},[`
${we}-cell-fix-right-first::after,
${we}-cell-fix-right-last::after
`]:{position:"absolute",top:0,bottom:Cn(st).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${Vt}`,content:'""',pointerEvents:"none"},[`${we}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:Cn(cn).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${Vt}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${we}-ping-left`]:{[`&:not(${we}-has-fix-left) ${we}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${gn}`},[`
${we}-cell-fix-left-first::after,
${we}-cell-fix-left-last::after
`]:{boxShadow:`inset 10px 0 8px -8px ${gn}`},[`${we}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${we}-ping-right`]:{[`&:not(${we}-has-fix-right) ${we}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${gn}`},[`
${we}-cell-fix-right-first::after,
${we}-cell-fix-right-last::after
`]:{boxShadow:`inset -10px 0 8px -8px ${gn}`}},[`${we}-fixed-column-gapped`]:{[`
${we}-cell-fix-left-first::after,
${we}-cell-fix-left-last::after,
${we}-cell-fix-right-first::after,
${we}-cell-fix-right-last::after
`]:{boxShadow:"none"}}}}},ds=De=>{const{componentCls:we,antCls:st,margin:wt}=De;return{[`${we}-wrapper`]:{[`${we}-pagination${st}-pagination`]:{margin:`${(0,cr.unit)(wt)} 0`},[`${we}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:De.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},hs=De=>{const{componentCls:we,tableRadius:st}=De;return{[`${we}-wrapper`]:{[we]:{[`${we}-title, ${we}-header`]:{borderRadius:`${(0,cr.unit)(st)} ${(0,cr.unit)(st)} 0 0`},[`${we}-title + ${we}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${we}-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:st,borderStartEndRadius:st,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:st},"> *:last-child":{borderStartEndRadius:st}}},"&-footer":{borderRadius:`0 0 ${(0,cr.unit)(st)} ${(0,cr.unit)(st)}`}}}}},_s=De=>{const{componentCls:we}=De;return{[`${we}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${we}-pagination-left`]:{justifyContent:"flex-end"},[`${we}-pagination-right`]:{justifyContent:"flex-start"},[`${we}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${we}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${we}-row-indent`]:{float:"right"}}}}},_l=De=>{const{componentCls:we,antCls:st,iconCls:wt,fontSizeIcon:Vt,padding:en,paddingXS:pn,headerIconColor:cn,headerIconHoverColor:Cn,tableSelectionColumnWidth:gn,tableSelectedRowBg:Kn,tableSelectedRowHoverBg:_n,tableRowHoverBg:kn,tablePaddingHorizontal:Pn,calc:Dn}=De;return{[`${we}-wrapper`]:{[`${we}-selection-col`]:{width:gn,[`&${we}-selection-col-with-dropdown`]:{width:Dn(gn).add(Vt).add(Dn(en).div(4)).equal()}},[`${we}-bordered ${we}-selection-col`]:{width:Dn(gn).add(Dn(pn).mul(2)).equal(),[`&${we}-selection-col-with-dropdown`]:{width:Dn(gn).add(Vt).add(Dn(en).div(4)).add(Dn(pn).mul(2)).equal()}},[`
table tr th${we}-selection-column,
table tr td${we}-selection-column,
${we}-selection-column
`]:{paddingInlineEnd:De.paddingXS,paddingInlineStart:De.paddingXS,textAlign:"center",[`${st}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${we}-selection-column${we}-cell-fix-left`]:{zIndex:Dn(De.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${we}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${we}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${we}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${De.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:(0,cr.unit)(Dn(Pn).div(4).equal()),[wt]:{color:cn,fontSize:Vt,verticalAlign:"baseline","&:hover":{color:Cn}}},[`${we}-tbody`]:{[`${we}-row`]:{[`&${we}-row-selected`]:{[`> ${we}-cell`]:{background:Kn,"&-row-hover":{background:_n}}},[`> ${we}-cell-row-hover`]:{background:kn}}}}}},$s=De=>{const{componentCls:we,tableExpandColumnWidth:st,calc:wt}=De,Vt=(en,pn,cn,Cn)=>({[`${we}${we}-${en}`]:{fontSize:Cn,[`
${we}-title,
${we}-footer,
${we}-cell,
${we}-thead > tr > th,
${we}-tbody > tr > th,
${we}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{padding:`${(0,cr.unit)(pn)} ${(0,cr.unit)(cn)}`},[`${we}-filter-trigger`]:{marginInlineEnd:(0,cr.unit)(wt(cn).div(2).mul(-1).equal())},[`${we}-expanded-row-fixed`]:{margin:`${(0,cr.unit)(wt(pn).mul(-1).equal())} ${(0,cr.unit)(wt(cn).mul(-1).equal())}`},[`${we}-tbody`]:{[`${we}-wrapper:only-child ${we}`]:{marginBlock:(0,cr.unit)(wt(pn).mul(-1).equal()),marginInline:`${(0,cr.unit)(wt(st).sub(cn).equal())} ${(0,cr.unit)(wt(cn).mul(-1).equal())}`}},[`${we}-selection-extra`]:{paddingInlineStart:(0,cr.unit)(wt(cn).div(4).equal())}}});return{[`${we}-wrapper`]:Object.assign(Object.assign({},Vt("middle",De.tablePaddingVerticalMiddle,De.tablePaddingHorizontalMiddle,De.tableFontSizeMiddle)),Vt("small",De.tablePaddingVerticalSmall,De.tablePaddingHorizontalSmall,De.tableFontSizeSmall))}},Js=De=>{const{componentCls:we,marginXXS:st,fontSizeIcon:wt,headerIconColor:Vt,headerIconHoverColor:en}=De;return{[`${we}-wrapper`]:{[`${we}-thead th${we}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${De.motionDurationSlow}, left 0s`,"&:hover":{background:De.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:De.colorPrimary},[`
&${we}-cell-fix-left:hover,
&${we}-cell-fix-right:hover
`]:{background:De.tableFixedHeaderSortActiveBg}},[`${we}-thead th${we}-column-sort`]:{background:De.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${we}-column-sort`]:{background:De.tableBodySortBg},[`${we}-column-title`]:{position:"relative",zIndex:1,flex:1,minWidth:0},[`${we}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${we}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${we}-column-sorter`]:{marginInlineStart:st,color:Vt,fontSize:0,transition:`color ${De.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:wt,"&.active":{color:De.colorPrimary}},[`${we}-column-sorter-up + ${we}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${we}-column-sorters:hover ${we}-column-sorter`]:{color:en}}}},Or=De=>{const{componentCls:we,opacityLoading:st,tableScrollThumbBg:wt,tableScrollThumbBgHover:Vt,tableScrollThumbSize:en,tableScrollBg:pn,zIndexTableSticky:cn,stickyScrollBarBorderRadius:Cn,lineWidth:gn,lineType:Kn,tableBorderColor:_n}=De,kn=`${(0,cr.unit)(gn)} ${Kn} ${_n}`;return{[`${we}-wrapper`]:{[`${we}-sticky`]:{"&-holder":{position:"sticky",zIndex:cn,background:De.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${(0,cr.unit)(en)} !important`,zIndex:cn,display:"flex",alignItems:"center",background:pn,borderTop:kn,opacity:st,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:en,backgroundColor:wt,borderRadius:Cn,transition:`all ${De.motionDurationSlow}, transform 0s`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:Vt}}}}}}},Lr=De=>{const{componentCls:we,lineWidth:st,tableBorderColor:wt,calc:Vt}=De,en=`${(0,cr.unit)(st)} ${De.lineType} ${wt}`;return{[`${we}-wrapper`]:{[`${we}-summary`]:{position:"relative",zIndex:De.zIndexTableFixed,background:De.tableBg,"> tr":{"> th, > td":{borderBottom:en}}},[`div${we}-summary`]:{boxShadow:`0 ${(0,cr.unit)(Vt(st).mul(-1).equal())} 0 ${wt}`}}}},$o=De=>{const{componentCls:we,motionDurationMid:st,lineWidth:wt,lineType:Vt,tableBorderColor:en,calc:pn}=De,cn=`${(0,cr.unit)(wt)} ${Vt} ${en}`,Cn=`${we}-expanded-row-cell`;return{[`${we}-wrapper`]:{[`${we}-tbody-virtual`]:{[`${we}-tbody-virtual-holder-inner`]:{[`
& > ${we}-row,
& > div:not(${we}-row) > ${we}-row
`]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${we}-cell`]:{borderBottom:cn,transition:`background ${st}`},[`${we}-expanded-row`]:{[`${Cn}${Cn}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${(0,cr.unit)(wt)})`,borderInlineEnd:"none"}}},[`${we}-bordered`]:{[`${we}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:cn,position:"absolute"},[`${we}-cell`]:{borderInlineEnd:cn,[`&${we}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:pn(wt).mul(-1).equal(),borderInlineStart:cn}}},[`&${we}-virtual`]:{[`${we}-placeholder ${we}-cell`]:{borderInlineEnd:cn,borderBottom:cn}}}}}};const Vo=De=>{const{componentCls:we,fontWeightStrong:st,tablePaddingVertical:wt,tablePaddingHorizontal:Vt,tableExpandColumnWidth:en,lineWidth:pn,lineType:cn,tableBorderColor:Cn,tableFontSize:gn,tableBg:Kn,tableRadius:_n,tableHeaderTextColor:kn,motionDurationMid:Pn,tableHeaderBg:Dn,tableHeaderCellSplitColor:yr,tableFooterTextColor:er,tableFooterBg:Er,calc:Dr}=De,xr=`${(0,cr.unit)(pn)} ${cn} ${Cn}`;return{[`${we}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,Di.dF)()),{[we]:Object.assign(Object.assign({},(0,Di.Wf)(De)),{fontSize:gn,background:Kn,borderRadius:`${(0,cr.unit)(_n)} ${(0,cr.unit)(_n)} 0 0`,scrollbarColor:`${De.tableScrollThumbBg} ${De.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${(0,cr.unit)(_n)} ${(0,cr.unit)(_n)} 0 0`,borderCollapse:"separate",borderSpacing:0},[`
${we}-cell,
${we}-thead > tr > th,
${we}-tbody > tr > th,
${we}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{position:"relative",padding:`${(0,cr.unit)(wt)} ${(0,cr.unit)(Vt)}`,overflowWrap:"break-word"},[`${we}-title`]:{padding:`${(0,cr.unit)(wt)} ${(0,cr.unit)(Vt)}`},[`${we}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:kn,fontWeight:st,textAlign:"start",background:Dn,borderBottom:xr,transition:`background ${Pn} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${we}-selection-column):not(${we}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:yr,transform:"translateY(-50%)",transition:`background-color ${Pn}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${we}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${Pn}, border-color ${Pn}`,borderBottom:xr,[`
> ${we}-wrapper:only-child,
> ${we}-expanded-row-fixed > ${we}-wrapper:only-child
`]:{[we]:{marginBlock:(0,cr.unit)(Dr(wt).mul(-1).equal()),marginInline:`${(0,cr.unit)(Dr(en).sub(Vt).equal())}
${(0,cr.unit)(Dr(Vt).mul(-1).equal())}`,[`${we}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:kn,fontWeight:st,textAlign:"start",background:Dn,borderBottom:xr,transition:`background ${Pn} ease`}}},[`${we}-footer`]:{padding:`${(0,cr.unit)(wt)} ${(0,cr.unit)(Vt)}`,color:er,background:Er}})}},ki=De=>{const{colorFillAlter:we,colorBgContainer:st,colorTextHeading:wt,colorFillSecondary:Vt,colorFillContent:en,controlItemBgActive:pn,controlItemBgActiveHover:cn,padding:Cn,paddingSM:gn,paddingXS:Kn,colorBorderSecondary:_n,borderRadiusLG:kn,controlHeight:Pn,colorTextPlaceholder:Dn,fontSize:yr,fontSizeSM:er,lineHeight:Er,lineWidth:Dr,colorIcon:xr,colorIconHover:Tr,opacityLoading:Wr,controlInteractiveSize:ro}=De,Qr=new Ci.FastColor(Vt).onBackground(st).toHexString(),si=new Ci.FastColor(en).onBackground(st).toHexString(),Oo=new Ci.FastColor(we).onBackground(st).toHexString(),Eo=new Ci.FastColor(xr),Ko=new Ci.FastColor(Tr),oo=ro/2-Dr,lo=oo*2+Dr*3;return{headerBg:Oo,headerColor:wt,headerSortActiveBg:Qr,headerSortHoverBg:si,bodySortBg:Oo,rowHoverBg:Oo,rowSelectedBg:pn,rowSelectedHoverBg:cn,rowExpandedBg:we,cellPaddingBlock:Cn,cellPaddingInline:Cn,cellPaddingBlockMD:gn,cellPaddingInlineMD:Kn,cellPaddingBlockSM:Kn,cellPaddingInlineSM:Kn,borderColor:_n,headerBorderRadius:kn,footerBg:Oo,footerColor:wt,cellFontSize:yr,cellFontSizeMD:yr,cellFontSizeSM:yr,headerSplitColor:_n,fixedHeaderSortActiveBg:Qr,headerFilterHoverBg:en,filterDropdownMenuBg:st,filterDropdownBg:st,expandIconBg:st,selectionColumnWidth:Pn,stickyScrollBarBg:Dn,stickyScrollBarBorderRadius:100,expandIconMarginTop:(yr*Er-Dr*3)/2-Math.ceil((er*1.4-Dr*3)/2),headerIconColor:Eo.clone().setA(Eo.a*Wr).toRgbString(),headerIconHoverColor:Ko.clone().setA(Ko.a*Wr).toRgbString(),expandIconHalfInner:oo,expandIconSize:lo,expandIconScale:ro/lo}},li=2;var va=(0,Ei.I$)("Table",De=>{const{colorTextHeading:we,colorSplit:st,colorBgContainer:wt,controlInteractiveSize:Vt,headerBg:en,headerColor:pn,headerSortActiveBg:cn,headerSortHoverBg:Cn,bodySortBg:gn,rowHoverBg:Kn,rowSelectedBg:_n,rowSelectedHoverBg:kn,rowExpandedBg:Pn,cellPaddingBlock:Dn,cellPaddingInline:yr,cellPaddingBlockMD:er,cellPaddingInlineMD:Er,cellPaddingBlockSM:Dr,cellPaddingInlineSM:xr,borderColor:Tr,footerBg:Wr,footerColor:ro,headerBorderRadius:Qr,cellFontSize:si,cellFontSizeMD:Oo,cellFontSizeSM:Eo,headerSplitColor:Ko,fixedHeaderSortActiveBg:oo,headerFilterHoverBg:lo,filterDropdownBg:$r,expandIconBg:Ir,selectionColumnWidth:qr,stickyScrollBarBg:uo,calc:Io}=De,Hr=(0,wa.mergeToken)(De,{tableFontSize:si,tableBg:wt,tableRadius:Qr,tablePaddingVertical:Dn,tablePaddingHorizontal:yr,tablePaddingVerticalMiddle:er,tablePaddingHorizontalMiddle:Er,tablePaddingVerticalSmall:Dr,tablePaddingHorizontalSmall:xr,tableBorderColor:Tr,tableHeaderTextColor:pn,tableHeaderBg:en,tableFooterTextColor:ro,tableFooterBg:Wr,tableHeaderCellSplitColor:Ko,tableHeaderSortBg:cn,tableHeaderSortHoverBg:Cn,tableBodySortBg:gn,tableFixedHeaderSortActiveBg:oo,tableHeaderFilterActiveBg:lo,tableFilterDropdownBg:$r,tableRowHoverBg:Kn,tableSelectedRowBg:_n,tableSelectedRowHoverBg:kn,zIndexTableFixed:li,zIndexTableSticky:Io(li).add(1).equal({unit:!1}),tableFontSizeMiddle:Oo,tableFontSizeSmall:Eo,tableSelectionColumnWidth:qr,tableExpandIconBg:Ir,tableExpandColumnWidth:Io(Vt).add(Io(De.padding).mul(2)).equal(),tableExpandedRowBg:Pn,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:uo,tableScrollThumbBgHover:we,tableScrollBg:st});return[Vo(Hr),ds(Hr),Lr(Hr),Js(Hr),Rs(Hr),Jl(Hr),hs(Hr),us(Hr),Lr(Hr),Cs(Hr),_l(Hr),cs(Hr),Or(Hr),Al(Hr),$s(Hr),_s(Hr),$o(Hr)]},ki,{unitless:{expandIconScale:!0}});const Ri=[],Bl=(De,we)=>{var st,wt;const{prefixCls:Vt,className:en,rootClassName:pn,style:cn,size:Cn,bordered:gn,dropdownPrefixCls:Kn,dataSource:_n,pagination:kn,rowSelection:Pn,rowKey:Dn="key",rowClassName:yr,columns:er,children:Er,childrenColumnName:Dr,onChange:xr,getPopupContainer:Tr,loading:Wr,expandIcon:ro,expandable:Qr,expandedRowRender:si,expandIconColumnIndex:Oo,indentSize:Eo,scroll:Ko,sortDirections:oo,locale:lo,showSorterTooltip:$r={target:"full-header"},virtual:Ir}=De,qr=(0,Mo.ln)("Table"),uo=y.useMemo(()=>er||dn(Er),[er,Er]),Io=y.useMemo(()=>uo.some(ui=>ui.responsive),[uo]),Hr=(0,ka.Z)(Io),di=y.useMemo(()=>{const ui=new Set(Object.keys(Hr).filter(gi=>Hr[gi]));return uo.filter(gi=>!gi.responsive||gi.responsive.some(ua=>ui.has(ua)))},[uo,Hr]),hi=(0,wi.Z)(De,["className","style","columns"]),{locale:ha=ol.Z,direction:na,table:Ki,renderEmpty:ra,getPrefixCls:ya,getPopupContainer:mi}=y.useContext(Ha.E_),vi=(0,Ti.Z)(Cn),ba=Object.assign(Object.assign({},ha.Table),lo),Ba=_n||Ri,So=ya("table",Vt),ei=ya("dropdown",Kn),[,vo]=(0,Pl.ZP)(),Jr=(0,fa.Z)(So),[xi,Ii,qi]=va(So,Jr),Hi=Object.assign(Object.assign({childrenColumnName:Dr,expandIconColumnIndex:Oo},Qr),{expandIcon:(st=Qr==null?void 0:Qr.expandIcon)!==null&&st!==void 0?st:(wt=Ki==null?void 0:Ki.expandable)===null||wt===void 0?void 0:wt.expandIcon}),{childrenColumnName:Ca="children"}=Hi,Pa=y.useMemo(()=>Ba.some(ui=>ui==null?void 0:ui[Ca])?"nest":si||Qr!=null&&Qr.expandedRowRender?"row":null,[Ba]),Po={body:y.useRef(null)},Zo=ai(So),Ni=y.useRef(null),ji=y.useRef(null);aa(we,()=>Object.assign(Object.assign({},ji.current),{nativeElement:Ni.current}));const _i=y.useMemo(()=>typeof Dn=="function"?Dn:ui=>ui==null?void 0:ui[Dn],[Dn]),[Na]=yo(Ba,Ca,_i),Ea={},al=function(ui,gi){let ua=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var xa,Ra,Ma,Tl;const Va=Object.assign(Object.assign({},Ea),ui);ua&&((xa=Ea.resetPagination)===null||xa===void 0||xa.call(Ea),!((Ra=Va.pagination)===null||Ra===void 0)&&Ra.current&&(Va.pagination.current=1),kn&&((Ma=kn.onChange)===null||Ma===void 0||Ma.call(kn,1,(Tl=Va.pagination)===null||Tl===void 0?void 0:Tl.pageSize))),Ko&&Ko.scrollToFirstRowOnChange!==!1&&Po.body.current&&(0,Qa.Z)(0,{getContainer:()=>Po.body.current}),xr==null||xr(Va.pagination,Va.filters,Va.sorter,{currentDataSource:ci(Co(Ba,Va.sorterStates,Ca),Va.filterStates,Ca),action:gi})},oa=(ui,gi)=>{al({sorter:ui,sorterStates:gi},"sort",!1)},[Fi,Wi,Vi,Oa]=no({prefixCls:So,mergedColumns:di,onSorterChange:oa,sortDirections:oo||["ascend","descend"],tableLocale:ba,showSorterTooltip:$r}),ma=y.useMemo(()=>Co(Ba,Wi,Ca),[Ba,Wi]);Ea.sorter=Oa(),Ea.sorterStates=Wi;const Pi=(ui,gi)=>{al({filters:ui,filterStates:gi},"filter",!0)},[ia,Li,ja]=qt({prefixCls:So,locale:ba,dropdownPrefixCls:ei,mergedColumns:di,onFilterChange:Pi,getPopupContainer:Tr||mi,rootClassName:Ne()(pn,Jr)}),Da=ci(ma,Li,Ca);Ea.filters=ja,Ea.filterStates=Li;const tl=y.useMemo(()=>{const ui={};return Object.keys(ja).forEach(gi=>{ja[gi]!==null&&(ui[gi]=ja[gi])}),Object.assign(Object.assign({},Vi),{filters:ui})},[Vi,ja]),[ll]=Ji(tl),$l=(ui,gi)=>{al({pagination:Object.assign(Object.assign({},Ea.pagination),{current:ui,pageSize:gi})},"paginate")},[Ui,Ps]=_o(Da.length,$l,kn);Ea.pagination=kn===!1?{}:Pr(Ui,kn),Ea.resetPagination=Ps;const nl=y.useMemo(()=>{if(kn===!1||!Ui.pageSize)return Da;const{current:ui=1,total:gi,pageSize:ua=fo}=Ui;return Da.length<gi?Da.length>ua?Da.slice((ui-1)*ua,ui*ua):Da:Da.slice((ui-1)*ua,ui*ua)},[!!kn,Da,Ui==null?void 0:Ui.current,Ui==null?void 0:Ui.pageSize,Ui==null?void 0:Ui.total]),[Dl,pl]=co({prefixCls:So,data:Da,pageData:nl,getRowKey:_i,getRecordByKey:Na,expandType:Pa,childrenColumnName:Ca,locale:ba,getPopupContainer:Tr||mi},Pn),sl=(ui,gi,ua)=>{let xa;return typeof yr=="function"?xa=Ne()(yr(ui,gi,ua)):xa=Ne()(yr),Ne()({[`${So}-row-selected`]:pl.has(_i(ui,gi))},xa)};Hi.__PARENT_RENDER_ICON__=Hi.expandIcon,Hi.expandIcon=Hi.expandIcon||ro||jo(ba),Pa==="nest"&&Hi.expandIconColumnIndex===void 0?Hi.expandIconColumnIndex=Pn?1:0:Hi.expandIconColumnIndex>0&&Pn&&(Hi.expandIconColumnIndex-=1),typeof Hi.indentSize!="number"&&(Hi.indentSize=typeof Eo=="number"?Eo:15);const Gi=y.useCallback(ui=>ll(Dl(ia(Fi(ui)))),[Fi,ia,Dl]);let vl,ts;if(kn!==!1&&(Ui!=null&&Ui.total)){let ui;Ui.size?ui=Ui.size:ui=vi==="small"||vi==="middle"?"small":void 0;const gi=Ra=>y.createElement(Ja.Z,Object.assign({},Ui,{className:Ne()(`${So}-pagination ${So}-pagination-${Ra}`,Ui.className),size:ui})),ua=na==="rtl"?"left":"right",{position:xa}=Ui;if(xa!==null&&Array.isArray(xa)){const Ra=xa.find(Va=>Va.includes("top")),Ma=xa.find(Va=>Va.includes("bottom")),Tl=xa.every(Va=>`${Va}`=="none");!Ra&&!Ma&&!Tl&&(ts=gi(ua)),Ra&&(vl=gi(Ra.toLowerCase().replace("top",""))),Ma&&(ts=gi(Ma.toLowerCase().replace("bottom","")))}else ts=gi(ua)}let Zl;typeof Wr=="boolean"?Zl={spinning:Wr}:typeof Wr=="object"&&(Zl=Object.assign({spinning:!0},Wr));const jl=Ne()(qi,Jr,`${So}-wrapper`,Ki==null?void 0:Ki.className,{[`${So}-wrapper-rtl`]:na==="rtl"},en,pn,Ii),Zs=Object.assign(Object.assign({},Ki==null?void 0:Ki.style),cn),js=typeof(lo==null?void 0:lo.emptyText)!="undefined"?lo.emptyText:(ra==null?void 0:ra("Table"))||y.createElement(da.Z,{componentName:"Table"}),zs=Ir?Aa:zo,Hs={},qs=y.useMemo(()=>{const{fontSize:ui,lineHeight:gi,lineWidth:ua,padding:xa,paddingXS:Ra,paddingSM:Ma}=vo,Tl=Math.floor(ui*gi);switch(vi){case"middle":return Ma*2+Tl+ua;case"small":return Ra*2+Tl+ua;default:return xa*2+Tl+ua}},[vo,vi]);return Ir&&(Hs.listItemHeight=qs),xi(y.createElement("div",{ref:Ni,className:jl,style:Zs},y.createElement(la.Z,Object.assign({spinning:!1},Zl),vl,y.createElement(zs,Object.assign({},Hs,hi,{ref:ji,columns:di,direction:na,expandable:Hi,prefixCls:So,className:Ne()({[`${So}-middle`]:vi==="middle",[`${So}-small`]:vi==="small",[`${So}-bordered`]:gn,[`${So}-empty`]:Ba.length===0},qi,Jr,Ii),data:nl,rowKey:_i,rowClassName:sl,emptyText:js,internalHooks:de,internalRefs:Po,transformColumns:Gi,getContainerWidth:Zo})),ts)))};var ms=y.forwardRef(Bl);const po=(De,we)=>{const st=y.useRef(0);return st.current+=1,y.createElement(ms,Object.assign({},De,{ref:we,_renderTimes:st.current}))},ga=y.forwardRef(po);ga.SELECTION_COLUMN=ri,ga.EXPAND_COLUMN=he,ga.SELECTION_ALL=Mi,ga.SELECTION_INVERT=$i,ga.SELECTION_NONE=Xi,ga.Column=wr,ga.ColumnGroup=Jn,ga.Summary=He;var il=ga,La=il},96599:function(bn,Wt,z){"use strict";z.d(Wt,{default:function(){return Ne}});var y=z(59301),he=z(92310),de=z.n(he),$e=z(2738),pe=z(29509),me=z(78776),ve=z(22703),Me=z(12919),ge=z(48755),se=z(36237),_e=z(17835),Ae=z(63356),tt=z(51636),je=z(16931);const Te=ue=>{const{paddingXXS:mt,lineWidth:Ze,tagPaddingHorizontal:nt,componentCls:Mt,calc:Fe}=ue,ye=Fe(nt).sub(Ze).equal(),Bt=Fe(mt).sub(Ze).equal();return{[Mt]:Object.assign(Object.assign({},(0,Ae.Wf)(ue)),{display:"inline-block",height:"auto",marginInlineEnd:ue.marginXS,paddingInline:ye,fontSize:ue.tagFontSize,lineHeight:ue.tagLineHeight,whiteSpace:"nowrap",background:ue.defaultBg,border:`${(0,se.unit)(ue.lineWidth)} ${ue.lineType} ${ue.colorBorder}`,borderRadius:ue.borderRadiusSM,opacity:1,transition:`all ${ue.motionDurationMid}`,textAlign:"start",position:"relative",[`&${Mt}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:ue.defaultColor},[`${Mt}-close-icon`]:{marginInlineStart:Bt,fontSize:ue.tagIconSize,color:ue.colorTextDescription,cursor:"pointer",transition:`all ${ue.motionDurationMid}`,"&:hover":{color:ue.colorTextHeading}},[`&${Mt}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${ue.iconCls}-close, ${ue.iconCls}-close:hover`]:{color:ue.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${Mt}-checkable-checked):hover`]:{color:ue.colorPrimary,backgroundColor:ue.colorFillSecondary},"&:active, &-checked":{color:ue.colorTextLightSolid},"&-checked":{backgroundColor:ue.colorPrimary,"&:hover":{backgroundColor:ue.colorPrimaryHover}},"&:active":{backgroundColor:ue.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${ue.iconCls} + span, > span + ${ue.iconCls}`]:{marginInlineStart:ye}}),[`${Mt}-borderless`]:{borderColor:"transparent",background:ue.tagBorderlessBg}}},Ce=ue=>{const{lineWidth:mt,fontSizeIcon:Ze,calc:nt}=ue,Mt=ue.fontSizeSM;return(0,tt.mergeToken)(ue,{tagFontSize:Mt,tagLineHeight:(0,se.unit)(nt(ue.lineHeightSM).mul(Mt).equal()),tagIconSize:nt(Ze).sub(nt(mt).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:ue.defaultBg})},Se=ue=>({defaultBg:new _e.FastColor(ue.colorFillQuaternary).onBackground(ue.colorBgContainer).toHexString(),defaultColor:ue.colorText});var Pe=(0,je.I$)("Tag",ue=>{const mt=Ce(ue);return Te(mt)},Se),Ye=function(ue,mt){var Ze={};for(var nt in ue)Object.prototype.hasOwnProperty.call(ue,nt)&&mt.indexOf(nt)<0&&(Ze[nt]=ue[nt]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Mt=0,nt=Object.getOwnPropertySymbols(ue);Mt<nt.length;Mt++)mt.indexOf(nt[Mt])<0&&Object.prototype.propertyIsEnumerable.call(ue,nt[Mt])&&(Ze[nt[Mt]]=ue[nt[Mt]]);return Ze},Be=y.forwardRef((ue,mt)=>{const{prefixCls:Ze,style:nt,className:Mt,checked:Fe,onChange:ye,onClick:Bt}=ue,jt=Ye(ue,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:Lt,tag:Ee}=y.useContext(ge.E_),ot=on=>{ye==null||ye(!Fe),Bt==null||Bt(on)},qe=Lt("tag",Ze),[zt,ht,lt]=Pe(qe),rt=de()(qe,`${qe}-checkable`,{[`${qe}-checkable-checked`]:Fe},Ee==null?void 0:Ee.className,Mt,ht,lt);return zt(y.createElement("span",Object.assign({},jt,{ref:mt,style:Object.assign(Object.assign({},nt),Ee==null?void 0:Ee.style),className:rt,onClick:ot})))}),Oe=z(93427);const Re=ue=>(0,Oe.Z)(ue,(mt,Ze)=>{let{textColor:nt,lightBorderColor:Mt,lightColor:Fe,darkColor:ye}=Ze;return{[`${ue.componentCls}${ue.componentCls}-${mt}`]:{color:nt,background:Fe,borderColor:Mt,"&-inverse":{color:ue.colorTextLightSolid,background:ye,borderColor:ye},[`&${ue.componentCls}-borderless`]:{borderColor:"transparent"}}}});var Ke=(0,je.bk)(["Tag","preset"],ue=>{const mt=Ce(ue);return Re(mt)},Se);function vt(ue){return typeof ue!="string"?ue:ue.charAt(0).toUpperCase()+ue.slice(1)}const it=(ue,mt,Ze)=>{const nt=vt(Ze);return{[`${ue.componentCls}${ue.componentCls}-${mt}`]:{color:ue[`color${Ze}`],background:ue[`color${nt}Bg`],borderColor:ue[`color${nt}Border`],[`&${ue.componentCls}-borderless`]:{borderColor:"transparent"}}}};var Qe=(0,je.bk)(["Tag","status"],ue=>{const mt=Ce(ue);return[it(mt,"success","Success"),it(mt,"processing","Info"),it(mt,"error","Error"),it(mt,"warning","Warning")]},Se),ut=function(ue,mt){var Ze={};for(var nt in ue)Object.prototype.hasOwnProperty.call(ue,nt)&&mt.indexOf(nt)<0&&(Ze[nt]=ue[nt]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Mt=0,nt=Object.getOwnPropertySymbols(ue);Mt<nt.length;Mt++)mt.indexOf(nt[Mt])<0&&Object.prototype.propertyIsEnumerable.call(ue,nt[Mt])&&(Ze[nt[Mt]]=ue[nt[Mt]]);return Ze};const et=y.forwardRef((ue,mt)=>{const{prefixCls:Ze,className:nt,rootClassName:Mt,style:Fe,children:ye,icon:Bt,color:jt,onClose:Lt,bordered:Ee=!0,visible:ot}=ue,qe=ut(ue,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:zt,direction:ht,tag:lt}=y.useContext(ge.E_),[rt,on]=y.useState(!0),kt=(0,$e.Z)(qe,["closeIcon","closable"]);y.useEffect(()=>{ot!==void 0&&on(ot)},[ot]);const ae=(0,pe.o2)(jt),re=(0,pe.yT)(jt),te=ae||re,ie=Object.assign(Object.assign({backgroundColor:jt&&!te?jt:void 0},lt==null?void 0:lt.style),Fe),ce=zt("tag",Ze),[ne,le,Ie]=Pe(ce),bt=de()(ce,lt==null?void 0:lt.className,{[`${ce}-${jt}`]:te,[`${ce}-has-color`]:jt&&!te,[`${ce}-hidden`]:!rt,[`${ce}-rtl`]:ht==="rtl",[`${ce}-borderless`]:!Ee},nt,Mt,le,Ie),Ue=We=>{We.stopPropagation(),Lt==null||Lt(We),!We.defaultPrevented&&on(!1)},[,He]=(0,me.Z)((0,me.w)(ue),(0,me.w)(lt),{closable:!1,closeIconRender:We=>{const Nt=y.createElement("span",{className:`${ce}-close-icon`,onClick:Ue},We);return(0,ve.wm)(We,Nt,Qt=>({onClick:un=>{var rn;(rn=Qt==null?void 0:Qt.onClick)===null||rn===void 0||rn.call(Qt,un),Ue(un)},className:de()(Qt==null?void 0:Qt.className,`${ce}-close-icon`)}))}}),at=typeof qe.onClick=="function"||ye&&ye.type==="a",ft=Bt||null,Pt=ft?y.createElement(y.Fragment,null,ft,ye&&y.createElement("span",null,ye)):ye,Le=y.createElement("span",Object.assign({},kt,{ref:mt,className:bt,style:ie}),Pt,He,ae&&y.createElement(Ke,{key:"preset",prefixCls:ce}),re&&y.createElement(Qe,{key:"status",prefixCls:ce}));return ne(at?y.createElement(Me.Z,{component:"Tag"},Le):Le)});et.CheckableTag=Be;var Ne=et},18287:function(bn,Wt,z){"use strict";z.d(Wt,{default:function(){return Lt}});var y=z(3741),he=z(94480),de=z(59301),$e=z(52671),pe=z(8657),me=z(54476),ve={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"},Me=ve,ge=z(7657),se=function(ot,qe){return de.createElement(ge.Z,(0,me.Z)({},ot,{ref:qe,icon:Me}))},_e=de.forwardRef(se),Ae=_e,tt=z(92310),je=z.n(tt),Te=z(82661),Ce=z(34061),Se=z(48755),Pe=z(56082),Ye=z(86641),ct=z(57700),Be=z(12425);const Oe=4;function Re(Ee){const{dropPosition:ot,dropLevelOffset:qe,prefixCls:zt,indent:ht,direction:lt="ltr"}=Ee,rt=lt==="ltr"?"left":"right",on=lt==="ltr"?"right":"left",kt={[rt]:-qe*ht+Oe,[on]:0};switch(ot){case-1:kt.top=-3;break;case 1:kt.bottom=-3;break;default:kt.bottom=-3,kt[rt]=ht+Oe;break}return de.createElement("div",{style:kt,className:`${zt}-drop-indicator`})}var Ke=Re,vt=z(85278),Qe=de.forwardRef((Ee,ot)=>{var qe;const{getPrefixCls:zt,direction:ht,virtual:lt,tree:rt}=de.useContext(Se.E_),{prefixCls:on,className:kt,showIcon:ae=!1,showLine:re,switcherIcon:te,switcherLoadingIcon:ie,blockNode:ce=!1,children:ne,checkable:le=!1,selectable:Ie=!0,draggable:bt,motion:Ue,style:He}=Ee,at=zt("tree",on),ft=zt(),Pt=Ue!=null?Ue:Object.assign(Object.assign({},(0,Ye.Z)(ft)),{motionAppear:!1}),Le=Object.assign(Object.assign({},Ee),{checkable:le,selectable:Ie,showIcon:ae,motion:Pt,blockNode:ce,showLine:!!re,dropIndicatorRender:Ke}),[We,Nt,Qt]=(0,Be.ZP)(at),[,un]=(0,ct.ZP)(),rn=un.paddingXS/2+(((qe=un.Tree)===null||qe===void 0?void 0:qe.titleHeight)||un.controlHeightSM),Rt=de.useMemo(()=>{if(!bt)return!1;let Ht={};switch(typeof bt){case"function":Ht.nodeDraggable=bt;break;case"object":Ht=Object.assign({},bt);break;default:break}return Ht.icon!==!1&&(Ht.icon=Ht.icon||de.createElement(Pe.Z,null)),Ht},[bt]),ln=Ht=>de.createElement(vt.Z,{prefixCls:at,switcherIcon:te,switcherLoadingIcon:ie,treeNodeProps:Ht,showLine:re});return We(de.createElement(y.ZP,Object.assign({itemHeight:rn,ref:ot,virtual:lt},Le,{style:Object.assign(Object.assign({},rt==null?void 0:rt.style),He),prefixCls:at,className:je()({[`${at}-icon-hide`]:!ae,[`${at}-block-node`]:ce,[`${at}-unselectable`]:!Ie,[`${at}-rtl`]:ht==="rtl"},rt==null?void 0:rt.className,kt,Nt,Qt),direction:ht,checkable:le&&de.createElement("span",{className:`${at}-checkbox-inner`}),selectable:Ie,switcherIcon:ln,draggable:Rt}),ne))});const ut=0,be=1,et=2;function Ne(Ee,ot,qe){const{key:zt,children:ht}=qe;function lt(rt){const on=rt[zt],kt=rt[ht];ot(on,rt)!==!1&&Ne(kt||[],ot,qe)}Ee.forEach(lt)}function ue(Ee){let{treeData:ot,expandedKeys:qe,startKey:zt,endKey:ht,fieldNames:lt}=Ee;const rt=[];let on=ut;if(zt&&zt===ht)return[zt];if(!zt||!ht)return[];function kt(ae){return ae===zt||ae===ht}return Ne(ot,ae=>{if(on===et)return!1;if(kt(ae)){if(rt.push(ae),on===ut)on=be;else if(on===be)return on=et,!1}else on===be&&rt.push(ae);return qe.includes(ae)},(0,Ce.w$)(lt)),rt}function mt(Ee,ot,qe){const zt=(0,he.Z)(ot),ht=[];return Ne(Ee,(lt,rt)=>{const on=zt.indexOf(lt);return on!==-1&&(ht.push(rt),zt.splice(on,1)),!!zt.length},(0,Ce.w$)(qe)),ht}var Ze=function(Ee,ot){var qe={};for(var zt in Ee)Object.prototype.hasOwnProperty.call(Ee,zt)&&ot.indexOf(zt)<0&&(qe[zt]=Ee[zt]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ht=0,zt=Object.getOwnPropertySymbols(Ee);ht<zt.length;ht++)ot.indexOf(zt[ht])<0&&Object.prototype.propertyIsEnumerable.call(Ee,zt[ht])&&(qe[zt[ht]]=Ee[zt[ht]]);return qe};function nt(Ee){const{isLeaf:ot,expanded:qe}=Ee;return ot?de.createElement($e.Z,null):qe?de.createElement(pe.Z,null):de.createElement(Ae,null)}function Mt(Ee){let{treeData:ot,children:qe}=Ee;return ot||(0,Ce.zn)(qe)}const Fe=(Ee,ot)=>{var{defaultExpandAll:qe,defaultExpandParent:zt,defaultExpandedKeys:ht}=Ee,lt=Ze(Ee,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const rt=de.useRef(null),on=de.useRef(null),kt=()=>{const{keyEntities:We}=(0,Ce.I8)(Mt(lt));let Nt;return qe?Nt=Object.keys(We):zt?Nt=(0,Te.r7)(lt.expandedKeys||ht||[],We):Nt=lt.expandedKeys||ht||[],Nt},[ae,re]=de.useState(lt.selectedKeys||lt.defaultSelectedKeys||[]),[te,ie]=de.useState(()=>kt());de.useEffect(()=>{"selectedKeys"in lt&&re(lt.selectedKeys)},[lt.selectedKeys]),de.useEffect(()=>{"expandedKeys"in lt&&ie(lt.expandedKeys)},[lt.expandedKeys]);const ce=(We,Nt)=>{var Qt;return"expandedKeys"in lt||ie(We),(Qt=lt.onExpand)===null||Qt===void 0?void 0:Qt.call(lt,We,Nt)},ne=(We,Nt)=>{var Qt;const{multiple:un,fieldNames:rn}=lt,{node:Rt,nativeEvent:ln}=Nt,{key:Ht=""}=Rt,ze=Mt(lt),yt=Object.assign(Object.assign({},Nt),{selected:!0}),Kt=(ln==null?void 0:ln.ctrlKey)||(ln==null?void 0:ln.metaKey),tn=ln==null?void 0:ln.shiftKey;let Ve;un&&Kt?(Ve=We,rt.current=Ht,on.current=Ve,yt.selectedNodes=mt(ze,Ve,rn)):un&&tn?(Ve=Array.from(new Set([].concat((0,he.Z)(on.current||[]),(0,he.Z)(ue({treeData:ze,expandedKeys:te,startKey:Ht,endKey:rt.current,fieldNames:rn}))))),yt.selectedNodes=mt(ze,Ve,rn)):(Ve=[Ht],rt.current=Ht,on.current=Ve,yt.selectedNodes=mt(ze,Ve,rn)),(Qt=lt.onSelect)===null||Qt===void 0||Qt.call(lt,Ve,yt),"selectedKeys"in lt||re(Ve)},{getPrefixCls:le,direction:Ie}=de.useContext(Se.E_),{prefixCls:bt,className:Ue,showIcon:He=!0,expandAction:at="click"}=lt,ft=Ze(lt,["prefixCls","className","showIcon","expandAction"]),Pt=le("tree",bt),Le=je()(`${Pt}-directory`,{[`${Pt}-directory-rtl`]:Ie==="rtl"},Ue);return de.createElement(Qe,Object.assign({icon:nt,ref:ot,blockNode:!0},ft,{showIcon:He,expandAction:at,prefixCls:Pt,className:Le,expandedKeys:te,selectedKeys:ae,onSelect:ne,onExpand:ce}))};var Bt=de.forwardRef(Fe);const jt=Qe;jt.DirectoryTree=Bt,jt.TreeNode=y.OF;var Lt=jt},12425:function(bn,Wt,z){"use strict";z.d(Wt,{ZP:function(){return Te},Yk:function(){return Ae},TM:function(){return tt}});var y=z(36237),he=z(36170),de=z(63356),$e=z(34961),pe=z(51636),me=z(16931);const ve=Ce=>{let{treeCls:Se,treeNodeCls:Pe,directoryNodeSelectedBg:Ye,directoryNodeSelectedColor:ct,motionDurationMid:Be,borderRadius:Oe,controlItemBgHover:Re}=Ce;return{[`${Se}${Se}-directory ${Pe}`]:{[`${Se}-node-content-wrapper`]:{position:"static",[`> *:not(${Se}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${Be}`,content:'""',borderRadius:Oe},"&:hover:before":{background:Re}},[`${Se}-switcher, ${Se}-checkbox, ${Se}-draggable-icon`]:{zIndex:1},"&-selected":{[`${Se}-switcher, ${Se}-draggable-icon`]:{color:ct},[`${Se}-node-content-wrapper`]:{color:ct,background:"transparent","&:before, &:hover:before":{background:Ye}}}}}},Me=new y.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),ge=(Ce,Se)=>({[`.${Ce}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${Se.motionDurationSlow}`}}}),se=(Ce,Se)=>({[`.${Ce}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:Se.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${(0,y.unit)(Se.lineWidthBold)} solid ${Se.colorPrimary}`,borderRadius:"50%",content:'""'}}}),_e=(Ce,Se)=>{const{treeCls:Pe,treeNodeCls:Ye,treeNodePadding:ct,titleHeight:Be,indentSize:Oe,nodeSelectedBg:Re,nodeHoverBg:Ke,colorTextQuaternary:vt,controlItemBgActiveDisabled:it}=Se;return{[Pe]:Object.assign(Object.assign({},(0,de.Wf)(Se)),{background:Se.colorBgContainer,borderRadius:Se.borderRadius,transition:`background-color ${Se.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,de.oN)(Se)),[`${Pe}-list-holder-inner`]:{alignItems:"flex-start"},[`&${Pe}-block-node`]:{[`${Pe}-list-holder-inner`]:{alignItems:"stretch",[`${Pe}-node-content-wrapper`]:{flex:"auto"},[`${Ye}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${Se.colorPrimary}`,opacity:0,animationName:Me,animationDuration:Se.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:Se.borderRadius}}},[Ye]:{display:"flex",alignItems:"flex-start",marginBottom:ct,lineHeight:(0,y.unit)(Be),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:ct},[`&-disabled ${Pe}-node-content-wrapper`]:{color:Se.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${Pe}-checkbox-disabled + ${Pe}-node-selected,&${Ye}-disabled${Ye}-selected ${Pe}-node-content-wrapper`]:{backgroundColor:it},[`${Pe}-checkbox-disabled`]:{pointerEvents:"unset"},[`&:not(${Ye}-disabled)`]:{[`${Pe}-node-content-wrapper`]:{"&:hover":{color:Se.nodeHoverColor}}},[`&-active ${Pe}-node-content-wrapper`]:{background:Se.controlItemBgHover},[`&:not(${Ye}-disabled).filter-node ${Pe}-title`]:{color:Se.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",[`${Pe}-draggable-icon`]:{flexShrink:0,width:Be,textAlign:"center",visibility:"visible",color:vt},[`&${Ye}-disabled ${Pe}-draggable-icon`]:{visibility:"hidden"}}},[`${Pe}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:Oe}},[`${Pe}-draggable-icon`]:{visibility:"hidden"},[`${Pe}-switcher, ${Pe}-checkbox`]:{marginInlineEnd:Se.calc(Se.calc(Be).sub(Se.controlInteractiveSize)).div(2).equal()},[`${Pe}-switcher`]:Object.assign(Object.assign({},ge(Ce,Se)),{position:"relative",flex:"none",alignSelf:"stretch",width:Be,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${Se.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:Be,height:Be,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:Se.borderRadius,transition:`all ${Se.motionDurationSlow}`},[`&:not(${Pe}-switcher-noop):hover:before`]:{backgroundColor:Se.colorBgTextHover},[`&_close ${Pe}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:Se.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:Se.calc(Be).div(2).equal(),bottom:Se.calc(ct).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${Se.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:Se.calc(Se.calc(Be).div(2).equal()).mul(.8).equal(),height:Se.calc(Be).div(2).equal(),borderBottom:`1px solid ${Se.colorBorder}`,content:'""'}}}),[`${Pe}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:Be,paddingBlock:0,paddingInline:Se.paddingXS,background:"transparent",borderRadius:Se.borderRadius,cursor:"pointer",transition:`all ${Se.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},se(Ce,Se)),{"&:hover":{backgroundColor:Ke},[`&${Pe}-node-selected`]:{color:Se.nodeSelectedColor,backgroundColor:Re},[`${Pe}-iconEle`]:{display:"inline-block",width:Be,height:Be,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${Pe}-unselectable ${Pe}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${Ye}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${Se.colorPrimary}`},"&-show-line":{[`${Pe}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:Se.calc(Be).div(2).equal(),bottom:Se.calc(ct).mul(-1).equal(),borderInlineEnd:`1px solid ${Se.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${Pe}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${Ye}-leaf-last ${Pe}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${(0,y.unit)(Se.calc(Be).div(2).equal())} !important`}})}},Ae=function(Ce,Se){let Pe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const Ye=`.${Ce}`,ct=`${Ye}-treenode`,Be=Se.calc(Se.paddingXS).div(2).equal(),Oe=(0,pe.mergeToken)(Se,{treeCls:Ye,treeNodeCls:ct,treeNodePadding:Be});return[_e(Ce,Oe),Pe&&ve(Oe)].filter(Boolean)},tt=Ce=>{const{controlHeightSM:Se,controlItemBgHover:Pe,controlItemBgActive:Ye}=Ce,ct=Se;return{titleHeight:ct,indentSize:ct,nodeHoverBg:Pe,nodeHoverColor:Ce.colorText,nodeSelectedBg:Ye,nodeSelectedColor:Ce.colorText}},je=Ce=>{const{colorTextLightSolid:Se,colorPrimary:Pe}=Ce;return Object.assign(Object.assign({},tt(Ce)),{directoryNodeSelectedColor:Se,directoryNodeSelectedBg:Pe})};var Te=(0,me.I$)("Tree",(Ce,Se)=>{let{prefixCls:Pe}=Se;return[{[Ce.componentCls]:(0,he.C2)(`${Pe}-checkbox`,Ce)},Ae(Pe,Ce),(0,$e.Z)(Ce)]},je)},85278:function(bn,Wt,z){"use strict";z.d(Wt,{Z:function(){return Se}});var y=z(59301),he=z(54476),de={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},$e=de,pe=z(7657),me=function(Ye,ct){return y.createElement(pe.Z,(0,he.Z)({},Ye,{ref:ct,icon:$e}))},ve=y.forwardRef(me),Me=ve,ge=z(52671),se=z(58617),_e=z(15075),Ae=z(43531),tt=z(92310),je=z.n(tt),Te=z(22703),Se=Pe=>{const{prefixCls:Ye,switcherIcon:ct,treeNodeProps:Be,showLine:Oe,switcherLoadingIcon:Re}=Pe,{isLeaf:Ke,expanded:vt,loading:it}=Be;if(it)return y.isValidElement(Re)?Re:y.createElement(se.Z,{className:`${Ye}-switcher-loading-icon`});let Qe;if(Oe&&typeof Oe=="object"&&(Qe=Oe.showLeafIcon),Ke){if(!Oe)return null;if(typeof Qe!="boolean"&&Qe){const et=typeof Qe=="function"?Qe(Be):Qe,Ne=`${Ye}-switcher-line-custom-icon`;return y.isValidElement(et)?(0,Te.Tm)(et,{className:je()(et.props.className||"",Ne)}):et}return Qe?y.createElement(ge.Z,{className:`${Ye}-switcher-line-icon`}):y.createElement("span",{className:`${Ye}-switcher-leaf-line`})}const ut=`${Ye}-switcher-icon`,be=typeof ct=="function"?ct(Be):ct;return y.isValidElement(be)?(0,Te.Tm)(be,{className:je()(be.props.className||"",ut)}):be!==void 0?be:Oe?vt?y.createElement(_e.Z,{className:`${Ye}-switcher-line-icon`}):y.createElement(Ae.Z,{className:`${Ye}-switcher-line-icon`}):y.createElement(Me,{className:ut})}},99498:function(bn,Wt,z){(function(y){y(z(89780))})(function(y){y.defineOption("placeholder","",function(Me,ge,se){var _e=se&&se!=y.Init;if(ge&&!_e)Me.on("blur",pe),Me.on("change",me),Me.on("swapDoc",me),y.on(Me.getInputField(),"compositionupdate",Me.state.placeholderCompose=function(){$e(Me)}),me(Me);else if(!ge&&_e){Me.off("blur",pe),Me.off("change",me),Me.off("swapDoc",me),y.off(Me.getInputField(),"compositionupdate",Me.state.placeholderCompose),he(Me);var Ae=Me.getWrapperElement();Ae.className=Ae.className.replace(" CodeMirror-empty","")}ge&&!Me.hasFocus()&&pe(Me)});function he(Me){Me.state.placeholder&&(Me.state.placeholder.parentNode.removeChild(Me.state.placeholder),Me.state.placeholder=null)}function de(Me){he(Me);var ge=Me.state.placeholder=document.createElement("pre");ge.style.cssText="height: 0; overflow: visible",ge.style.direction=Me.getOption("direction"),ge.className="CodeMirror-placeholder CodeMirror-line-like";var se=Me.getOption("placeholder");typeof se=="string"&&(se=document.createTextNode(se)),ge.appendChild(se),Me.display.lineSpace.insertBefore(ge,Me.display.lineSpace.firstChild)}function $e(Me){setTimeout(function(){var ge=!1,se=Me.getInputField();se.nodeName=="TEXTAREA"?ge=!se.value:Me.lineCount()==1&&(ge=!/[^\u200b]/.test(se.querySelector(".CodeMirror-line").textContent)),ge?de(Me):he(Me)},20)}function pe(Me){ve(Me)&&de(Me)}function me(Me){var ge=Me.getWrapperElement(),se=ve(Me);ge.className=ge.className.replace(" CodeMirror-empty","")+(se?" CodeMirror-empty":""),se?de(Me):he(Me)}function ve(Me){return Me.lineCount()===1&&Me.getLine(0)===""}})},25717:function(bn,Wt,z){(function(y){y(z(89780))})(function(y){var he={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},de=y.Pos;y.defineOption("autoCloseBrackets",!1,function(Te,Ce,Se){Se&&Se!=y.Init&&(Te.removeKeyMap(pe),Te.state.closeBrackets=null),Ce&&(me($e(Ce,"pairs")),Te.state.closeBrackets=Ce,Te.addKeyMap(pe))});function $e(Te,Ce){return Ce=="pairs"&&typeof Te=="string"?Te:typeof Te=="object"&&Te[Ce]!=null?Te[Ce]:he[Ce]}var pe={Backspace:ge,Enter:se};function me(Te){for(var Ce=0;Ce<Te.length;Ce++){var Se=Te.charAt(Ce),Pe="'"+Se+"'";pe[Pe]||(pe[Pe]=ve(Se))}}me(he.pairs+"`");function ve(Te){return function(Ce){return Ae(Ce,Te)}}function Me(Te){var Ce=Te.state.closeBrackets;if(!Ce||Ce.override)return Ce;var Se=Te.getModeAt(Te.getCursor());return Se.closeBrackets||Ce}function ge(Te){var Ce=Me(Te);if(!Ce||Te.getOption("disableInput"))return y.Pass;for(var Se=$e(Ce,"pairs"),Pe=Te.listSelections(),Ye=0;Ye<Pe.length;Ye++){if(!Pe[Ye].empty())return y.Pass;var ct=tt(Te,Pe[Ye].head);if(!ct||Se.indexOf(ct)%2!=0)return y.Pass}for(var Ye=Pe.length-1;Ye>=0;Ye--){var Be=Pe[Ye].head;Te.replaceRange("",de(Be.line,Be.ch-1),de(Be.line,Be.ch+1),"+delete")}}function se(Te){var Ce=Me(Te),Se=Ce&&$e(Ce,"explode");if(!Se||Te.getOption("disableInput"))return y.Pass;for(var Pe=Te.listSelections(),Ye=0;Ye<Pe.length;Ye++){if(!Pe[Ye].empty())return y.Pass;var ct=tt(Te,Pe[Ye].head);if(!ct||Se.indexOf(ct)%2!=0)return y.Pass}Te.operation(function(){var Be=Te.lineSeparator()||`
`;Te.replaceSelection(Be+Be,null),Te.execCommand("goCharLeft"),Pe=Te.listSelections();for(var Oe=0;Oe<Pe.length;Oe++){var Re=Pe[Oe].head.line;Te.indentLine(Re,null,!0),Te.indentLine(Re+1,null,!0)}})}function _e(Te){var Ce=y.cmpPos(Te.anchor,Te.head)>0;return{anchor:new de(Te.anchor.line,Te.anchor.ch+(Ce?-1:1)),head:new de(Te.head.line,Te.head.ch+(Ce?1:-1))}}function Ae(Te,Ce){var Se=Me(Te);if(!Se||Te.getOption("disableInput"))return y.Pass;var Pe=$e(Se,"pairs"),Ye=Pe.indexOf(Ce);if(Ye==-1)return y.Pass;for(var ct=$e(Se,"closeBefore"),Be=$e(Se,"triples"),Oe=Pe.charAt(Ye+1)==Ce,Re=Te.listSelections(),Ke=Ye%2==0,vt,it=0;it<Re.length;it++){var Qe=Re[it],ut=Qe.head,be,et=Te.getRange(ut,de(ut.line,ut.ch+1));if(Ke&&!Qe.empty())be="surround";else if((Oe||!Ke)&&et==Ce)Oe&&je(Te,ut)?be="both":Be.indexOf(Ce)>=0&&Te.getRange(ut,de(ut.line,ut.ch+3))==Ce+Ce+Ce?be="skipThree":be="skip";else if(Oe&&ut.ch>1&&Be.indexOf(Ce)>=0&&Te.getRange(de(ut.line,ut.ch-2),ut)==Ce+Ce){if(ut.ch>2&&/\bstring/.test(Te.getTokenTypeAt(de(ut.line,ut.ch-2))))return y.Pass;be="addFour"}else if(Oe){var Ne=ut.ch==0?" ":Te.getRange(de(ut.line,ut.ch-1),ut);if(!y.isWordChar(et)&&Ne!=Ce&&!y.isWordChar(Ne))be="both";else return y.Pass}else if(Ke&&(et.length===0||/\s/.test(et)||ct.indexOf(et)>-1))be="both";else return y.Pass;if(!vt)vt=be;else if(vt!=be)return y.Pass}var ue=Ye%2?Pe.charAt(Ye-1):Ce,mt=Ye%2?Ce:Pe.charAt(Ye+1);Te.operation(function(){if(vt=="skip")Te.execCommand("goCharRight");else if(vt=="skipThree")for(var Ze=0;Ze<3;Ze++)Te.execCommand("goCharRight");else if(vt=="surround"){for(var nt=Te.getSelections(),Ze=0;Ze<nt.length;Ze++)nt[Ze]=ue+nt[Ze]+mt;Te.replaceSelections(nt,"around"),nt=Te.listSelections().slice();for(var Ze=0;Ze<nt.length;Ze++)nt[Ze]=_e(nt[Ze]);Te.setSelections(nt)}else vt=="both"?(Te.replaceSelection(ue+mt,null),Te.triggerElectric(ue+mt),Te.execCommand("goCharLeft")):vt=="addFour"&&(Te.replaceSelection(ue+ue+ue+ue,"before"),Te.execCommand("goCharRight"))})}function tt(Te,Ce){var Se=Te.getRange(de(Ce.line,Ce.ch-1),de(Ce.line,Ce.ch+1));return Se.length==2?Se:null}function je(Te,Ce){var Se=Te.getTokenAt(de(Ce.line,Ce.ch+1));return/\bstring/.test(Se.type)&&Se.start==Ce.ch&&(Ce.ch==0||!/\bstring/.test(Te.getTokenTypeAt(Ce)))}})},6313:function(bn,Wt,z){(function(y){y(z(89780),z(32855))})(function(y){y.defineOption("autoCloseTags",!1,function(ge,se,_e){if(_e!=y.Init&&_e&&ge.removeKeyMap("autoCloseTags"),!!se){var Ae={name:"autoCloseTags"};(typeof se!="object"||se.whenClosing!==!1)&&(Ae["'/'"]=function(tt){return me(tt)}),(typeof se!="object"||se.whenOpening!==!1)&&(Ae["'>'"]=function(tt){return $e(tt)}),ge.addKeyMap(Ae)}});var he=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],de=["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 $e(ge){if(ge.getOption("disableInput"))return y.Pass;for(var se=ge.listSelections(),_e=[],Ae=ge.getOption("autoCloseTags"),tt=0;tt<se.length;tt++){if(!se[tt].empty())return y.Pass;var je=se[tt].head,Te=ge.getTokenAt(je),Ce=y.innerMode(ge.getMode(),Te.state),Se=Ce.state,Pe=Ce.mode.xmlCurrentTag&&Ce.mode.xmlCurrentTag(Se),Ye=Pe&&Pe.name;if(!Ye)return y.Pass;var ct=Ce.mode.configuration=="html",Be=typeof Ae=="object"&&Ae.dontCloseTags||ct&&he,Oe=typeof Ae=="object"&&Ae.indentTags||ct&&de;Te.end>je.ch&&(Ye=Ye.slice(0,Ye.length-Te.end+je.ch));var Re=Ye.toLowerCase();if(!Ye||Te.type=="string"&&(Te.end!=je.ch||!/[\"\']/.test(Te.string.charAt(Te.string.length-1))||Te.string.length==1)||Te.type=="tag"&&Pe.close||Te.string.indexOf("/")==je.ch-Te.start-1||Be&&ve(Be,Re)>-1||Me(ge,Ce.mode.xmlCurrentContext&&Ce.mode.xmlCurrentContext(Se)||[],Ye,je,!0))return y.Pass;var Ke=typeof Ae=="object"&&Ae.emptyTags;if(Ke&&ve(Ke,Ye)>-1){_e[tt]={text:"/>",newPos:y.Pos(je.line,je.ch+2)};continue}var vt=Oe&&ve(Oe,Re)>-1;_e[tt]={indent:vt,text:">"+(vt?`
`:"")+"</"+Ye+">",newPos:vt?y.Pos(je.line+1,0):y.Pos(je.line,je.ch+1)}}for(var it=typeof Ae=="object"&&Ae.dontIndentOnAutoClose,tt=se.length-1;tt>=0;tt--){var Qe=_e[tt];ge.replaceRange(Qe.text,se[tt].head,se[tt].anchor,"+insert");var ut=ge.listSelections().slice(0);ut[tt]={head:Qe.newPos,anchor:Qe.newPos},ge.setSelections(ut),!it&&Qe.indent&&(ge.indentLine(Qe.newPos.line,null,!0),ge.indentLine(Qe.newPos.line+1,null,!0))}}function pe(ge,se){for(var _e=ge.listSelections(),Ae=[],tt=se?"/":"</",je=ge.getOption("autoCloseTags"),Te=typeof je=="object"&&je.dontIndentOnSlash,Ce=0;Ce<_e.length;Ce++){if(!_e[Ce].empty())return y.Pass;var Se=_e[Ce].head,Pe=ge.getTokenAt(Se),Ye=y.innerMode(ge.getMode(),Pe.state),ct=Ye.state;if(se&&(Pe.type=="string"||Pe.string.charAt(0)!="<"||Pe.start!=Se.ch-1))return y.Pass;var Be,Oe=Ye.mode.name!="xml"&&ge.getMode().name=="htmlmixed";if(Oe&&Ye.mode.name=="javascript")Be=tt+"script";else if(Oe&&Ye.mode.name=="css")Be=tt+"style";else{var Re=Ye.mode.xmlCurrentContext&&Ye.mode.xmlCurrentContext(ct);if(!Re||Re.length&&Me(ge,Re,Re[Re.length-1],Se))return y.Pass;Be=tt+Re[Re.length-1]}ge.getLine(Se.line).charAt(Pe.end)!=">"&&(Be+=">"),Ae[Ce]=Be}if(ge.replaceSelections(Ae),_e=ge.listSelections(),!Te)for(var Ce=0;Ce<_e.length;Ce++)(Ce==_e.length-1||_e[Ce].head.line<_e[Ce+1].head.line)&&ge.indentLine(_e[Ce].head.line)}function me(ge){return ge.getOption("disableInput")?y.Pass:pe(ge,!0)}y.commands.closeTag=function(ge){return pe(ge)};function ve(ge,se){if(ge.indexOf)return ge.indexOf(se);for(var _e=0,Ae=ge.length;_e<Ae;++_e)if(ge[_e]==se)return _e;return-1}function Me(ge,se,_e,Ae,tt){if(!y.scanForClosingTag)return!1;var je=Math.min(ge.lastLine()+1,Ae.line+500),Te=y.scanForClosingTag(ge,Ae,null,je);if(!Te||Te.tag!=_e)return!1;for(var Ce=tt?1:0,Se=se.length-1;Se>=0&&se[Se]==_e;Se--)++Ce;Ae=Te.to;for(var Se=1;Se<Ce;Se++){var Pe=y.scanForClosingTag(ge,Ae,null,je);if(!Pe||Pe.tag!=_e)return!1;Ae=Pe.to}return!0}})},32855:function(bn,Wt,z){(function(y){y(z(89780))})(function(y){"use strict";var he=y.Pos;function de(Se,Pe){return Se.line-Pe.line||Se.ch-Pe.ch}var $e="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",pe=$e+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",me=new RegExp("<(/?)(["+$e+"]["+pe+"]*)","g");function ve(Se,Pe,Ye,ct){this.line=Pe,this.ch=Ye,this.cm=Se,this.text=Se.getLine(Pe),this.min=ct?Math.max(ct.from,Se.firstLine()):Se.firstLine(),this.max=ct?Math.min(ct.to-1,Se.lastLine()):Se.lastLine()}function Me(Se,Pe){var Ye=Se.cm.getTokenTypeAt(he(Se.line,Pe));return Ye&&/\btag\b/.test(Ye)}function ge(Se){if(!(Se.line>=Se.max))return Se.ch=0,Se.text=Se.cm.getLine(++Se.line),!0}function se(Se){if(!(Se.line<=Se.min))return Se.text=Se.cm.getLine(--Se.line),Se.ch=Se.text.length,!0}function _e(Se){for(;;){var Pe=Se.text.indexOf(">",Se.ch);if(Pe==-1){if(ge(Se))continue;return}if(!Me(Se,Pe+1)){Se.ch=Pe+1;continue}var Ye=Se.text.lastIndexOf("/",Pe),ct=Ye>-1&&!/\S/.test(Se.text.slice(Ye+1,Pe));return Se.ch=Pe+1,ct?"selfClose":"regular"}}function Ae(Se){for(;;){var Pe=Se.ch?Se.text.lastIndexOf("<",Se.ch-1):-1;if(Pe==-1){if(se(Se))continue;return}if(!Me(Se,Pe+1)){Se.ch=Pe;continue}me.lastIndex=Pe,Se.ch=Pe;var Ye=me.exec(Se.text);if(Ye&&Ye.index==Pe)return Ye}}function tt(Se){for(;;){me.lastIndex=Se.ch;var Pe=me.exec(Se.text);if(!Pe){if(ge(Se))continue;return}if(!Me(Se,Pe.index+1)){Se.ch=Pe.index+1;continue}return Se.ch=Pe.index+Pe[0].length,Pe}}function je(Se){for(;;){var Pe=Se.ch?Se.text.lastIndexOf(">",Se.ch-1):-1;if(Pe==-1){if(se(Se))continue;return}if(!Me(Se,Pe+1)){Se.ch=Pe;continue}var Ye=Se.text.lastIndexOf("/",Pe),ct=Ye>-1&&!/\S/.test(Se.text.slice(Ye+1,Pe));return Se.ch=Pe+1,ct?"selfClose":"regular"}}function Te(Se,Pe){for(var Ye=[];;){var ct=tt(Se),Be,Oe=Se.line,Re=Se.ch-(ct?ct[0].length:0);if(!ct||!(Be=_e(Se)))return;if(Be!="selfClose")if(ct[1]){for(var Ke=Ye.length-1;Ke>=0;--Ke)if(Ye[Ke]==ct[2]){Ye.length=Ke;break}if(Ke<0&&(!Pe||Pe==ct[2]))return{tag:ct[2],from:he(Oe,Re),to:he(Se.line,Se.ch)}}else Ye.push(ct[2])}}function Ce(Se,Pe){for(var Ye=[];;){var ct=je(Se);if(!ct)return;if(ct=="selfClose"){Ae(Se);continue}var Be=Se.line,Oe=Se.ch,Re=Ae(Se);if(!Re)return;if(Re[1])Ye.push(Re[2]);else{for(var Ke=Ye.length-1;Ke>=0;--Ke)if(Ye[Ke]==Re[2]){Ye.length=Ke;break}if(Ke<0&&(!Pe||Pe==Re[2]))return{tag:Re[2],from:he(Se.line,Se.ch),to:he(Be,Oe)}}}}y.registerHelper("fold","xml",function(Se,Pe){for(var Ye=new ve(Se,Pe.line,0);;){var ct=tt(Ye);if(!ct||Ye.line!=Pe.line)return;var Be=_e(Ye);if(!Be)return;if(!ct[1]&&Be!="selfClose"){var Oe=he(Ye.line,Ye.ch),Re=Te(Ye,ct[2]);return Re&&de(Re.from,Oe)>0?{from:Oe,to:Re.from}:null}}}),y.findMatchingTag=function(Se,Pe,Ye){var ct=new ve(Se,Pe.line,Pe.ch,Ye);if(!(ct.text.indexOf(">")==-1&&ct.text.indexOf("<")==-1)){var Be=_e(ct),Oe=Be&&he(ct.line,ct.ch),Re=Be&&Ae(ct);if(!(!Be||!Re||de(ct,Pe)>0)){var Ke={from:he(ct.line,ct.ch),to:Oe,tag:Re[2]};return Be=="selfClose"?{open:Ke,close:null,at:"open"}:Re[1]?{open:Ce(ct,Re[2]),close:Ke,at:"close"}:(ct=new ve(Se,Oe.line,Oe.ch,Ye),{open:Ke,close:Te(ct,Re[2]),at:"open"})}}},y.findEnclosingTag=function(Se,Pe,Ye,ct){for(var Be=new ve(Se,Pe.line,Pe.ch,Ye);;){var Oe=Ce(Be,ct);if(!Oe)break;var Re=new ve(Se,Pe.line,Pe.ch,Ye),Ke=Te(Re,Oe.tag);if(Ke)return{open:Oe,close:Ke}}},y.scanForClosingTag=function(Se,Pe,Ye,ct){var Be=new ve(Se,Pe.line,Pe.ch,ct?{from:0,to:ct}:null);return Te(Be,Ye)}})},89780:function(bn){(function(Wt,z){bn.exports=z()})(this,function(){"use strict";var Wt=navigator.userAgent,z=navigator.platform,y=/gecko\/\d/i.test(Wt),he=/MSIE \d/.test(Wt),de=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Wt),$e=/Edge\/(\d+)/.exec(Wt),pe=he||de||$e,me=pe&&(he?document.documentMode||6:+($e||de)[1]),ve=!$e&&/WebKit\//.test(Wt),Me=ve&&/Qt\/\d+\.\d+/.test(Wt),ge=!$e&&/Chrome\//.test(Wt),se=/Opera\//.test(Wt),_e=/Apple Computer/.test(navigator.vendor),Ae=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Wt),tt=/PhantomJS/.test(Wt),je=!$e&&/AppleWebKit/.test(Wt)&&/Mobile\/\w+/.test(Wt),Te=/Android/.test(Wt),Ce=je||Te||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Wt),Se=je||/Mac/.test(z),Pe=/\bCrOS\b/.test(Wt),Ye=/win/i.test(z),ct=se&&Wt.match(/Version\/(\d*\.\d*)/);ct&&(ct=Number(ct[1])),ct&&ct>=15&&(se=!1,ve=!0);var Be=Se&&(Me||se&&(ct==null||ct<12.11)),Oe=y||pe&&me>=9;function Re(a){return new RegExp("(^|\\s)"+a+"(?:$|\\s)\\s*")}var Ke=function(a,b){var x=a.className,E=Re(b).exec(x);if(E){var ee=x.slice(E.index+E[0].length);a.className=x.slice(0,E.index)+(ee?E[1]+ee:"")}};function vt(a){for(var b=a.childNodes.length;b>0;--b)a.removeChild(a.firstChild);return a}function it(a,b){return vt(a).appendChild(b)}function Qe(a,b,x,E){var ee=document.createElement(a);if(x&&(ee.className=x),E&&(ee.style.cssText=E),typeof b=="string")ee.appendChild(document.createTextNode(b));else if(b)for(var oe=0;oe<b.length;++oe)ee.appendChild(b[oe]);return ee}function ut(a,b,x,E){var ee=Qe(a,b,x,E);return ee.setAttribute("role","presentation"),ee}var be;document.createRange?be=function(a,b,x,E){var ee=document.createRange();return ee.setEnd(E||a,x),ee.setStart(a,b),ee}:be=function(a,b,x){var E=document.body.createTextRange();try{E.moveToElementText(a.parentNode)}catch(ee){return E}return E.collapse(!0),E.moveEnd("character",x),E.moveStart("character",b),E};function et(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 Ne(){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 ue(a,b){var x=a.className;Re(b).test(x)||(a.className+=(x?" ":"")+b)}function mt(a,b){for(var x=a.split(" "),E=0;E<x.length;E++)x[E]&&!Re(x[E]).test(b)&&(b+=" "+x[E]);return b}var Ze=function(a){a.select()};je?Ze=function(a){a.selectionStart=0,a.selectionEnd=a.value.length}:pe&&(Ze=function(a){try{a.select()}catch(b){}});function nt(a){var b=Array.prototype.slice.call(arguments,1);return function(){return a.apply(null,b)}}function Mt(a,b,x){b||(b={});for(var E in a)a.hasOwnProperty(E)&&(x!==!1||!b.hasOwnProperty(E))&&(b[E]=a[E]);return b}function Fe(a,b,x,E,ee){b==null&&(b=a.search(/[^\s\u00a0]/),b==-1&&(b=a.length));for(var oe=E||0,fe=ee||0;;){var xe=a.indexOf(" ",oe);if(xe<0||xe>=b)return fe+(b-oe);fe+=xe-oe,fe+=x-fe%x,oe=xe+1}}var ye=function(){this.id=null,this.f=null,this.time=0,this.handler=nt(this.onTimeout,this)};ye.prototype.onTimeout=function(a){a.id=0,a.time<=+new Date?a.f():setTimeout(a.handler,a.time-+new Date)},ye.prototype.set=function(a,b){this.f=b;var x=+new Date+a;(!this.id||x<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,a),this.time=x)};function Bt(a,b){for(var x=0;x<a.length;++x)if(a[x]==b)return x;return-1}var jt=50,Lt={toString:function(){return"CodeMirror.Pass"}},Ee={scroll:!1},ot={origin:"*mouse"},qe={origin:"+move"};function zt(a,b,x){for(var E=0,ee=0;;){var oe=a.indexOf(" ",E);oe==-1&&(oe=a.length);var fe=oe-E;if(oe==a.length||ee+fe>=b)return E+Math.min(fe,b-ee);if(ee+=oe-E,ee+=x-ee%x,E=oe+1,ee>=b)return E}}var ht=[""];function lt(a){for(;ht.length<=a;)ht.push(rt(ht)+" ");return ht[a]}function rt(a){return a[a.length-1]}function on(a,b){for(var x=[],E=0;E<a.length;E++)x[E]=b(a[E],E);return x}function kt(a,b,x){for(var E=0,ee=x(b);E<a.length&&x(a[E])<=ee;)E++;a.splice(E,0,b)}function ae(){}function re(a,b){var x;return Object.create?x=Object.create(a):(ae.prototype=a,x=new ae),b&&Mt(b,x),x}var te=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function ie(a){return/\w/.test(a)||a>"\x80"&&(a.toUpperCase()!=a.toLowerCase()||te.test(a))}function ce(a,b){return b?b.source.indexOf("\\w")>-1&&ie(a)?!0:b.test(a):ie(a)}function ne(a){for(var b in a)if(a.hasOwnProperty(b)&&a[b])return!1;return!0}var le=/[\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 Ie(a){return a.charCodeAt(0)>=768&&le.test(a)}function bt(a,b,x){for(;(x<0?b>0:b<a.length)&&Ie(a.charAt(b));)b+=x;return b}function Ue(a,b,x){for(var E=b>x?-1:1;;){if(b==x)return b;var ee=(b+x)/2,oe=E<0?Math.ceil(ee):Math.floor(ee);if(oe==b)return a(oe)?b:x;a(oe)?x=oe:b=oe+E}}function He(a,b,x,E){if(!a)return E(b,x,"ltr",0);for(var ee=!1,oe=0;oe<a.length;++oe){var fe=a[oe];(fe.from<x&&fe.to>b||b==x&&fe.to==b)&&(E(Math.max(fe.from,b),Math.min(fe.to,x),fe.level==1?"rtl":"ltr",oe),ee=!0)}ee||E(b,x,"ltr")}var at=null;function ft(a,b,x){var E;at=null;for(var ee=0;ee<a.length;++ee){var oe=a[ee];if(oe.from<b&&oe.to>b)return ee;oe.to==b&&(oe.from!=oe.to&&x=="before"?E=ee:at=ee),oe.from==b&&(oe.from!=oe.to&&x!="before"?E=ee:at=ee)}return E!=null?E:at}var Pt=function(){var a="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",b="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function x(Xe){return Xe<=247?a.charAt(Xe):1424<=Xe&&Xe<=1524?"R":1536<=Xe&&Xe<=1785?b.charAt(Xe-1536):1774<=Xe&&Xe<=2220?"r":8192<=Xe&&Xe<=8203?"w":Xe==8204?"b":"L"}var E=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,ee=/[stwN]/,oe=/[LRr]/,fe=/[Lb1n]/,xe=/[1n]/;function ke(Xe,Yt,nn){this.level=Xe,this.from=Yt,this.to=nn}return function(Xe,Yt){var nn=Yt=="ltr"?"L":"R";if(Xe.length==0||Yt=="ltr"&&!E.test(Xe))return!1;for(var In=Xe.length,Sn=[],tr=0;tr<In;++tr)Sn.push(x(Xe.charCodeAt(tr)));for(var vr=0,Ar=nn;vr<In;++vr){var Gr=Sn[vr];Gr=="m"?Sn[vr]=Ar:Ar=Gr}for(var mo=0,Xr=nn;mo<In;++mo){var Do=Sn[mo];Do=="1"&&Xr=="r"?Sn[mo]="n":oe.test(Do)&&(Xr=Do,Do=="r"&&(Sn[mo]="R"))}for(var ii=1,Uo=Sn[0];ii<In-1;++ii){var Si=Sn[ii];Si=="+"&&Uo=="1"&&Sn[ii+1]=="1"?Sn[ii]="1":Si==","&&Uo==Sn[ii+1]&&(Uo=="1"||Uo=="n")&&(Sn[ii]=Uo),Uo=Si}for(var ca=0;ca<In;++ca){var Xa=Sn[ca];if(Xa==",")Sn[ca]="N";else if(Xa=="%"){var Fa=void 0;for(Fa=ca+1;Fa<In&&Sn[Fa]=="%";++Fa);for(var Fl=ca&&Sn[ca-1]=="!"||Fa<In&&Sn[Fa]=="1"?"1":"N",yl=ca;yl<Fa;++yl)Sn[yl]=Fl;ca=Fa-1}}for(var _a=0,bl=nn;_a<In;++_a){var rl=Sn[_a];bl=="L"&&rl=="1"?Sn[_a]="L":oe.test(rl)&&(bl=rl)}for(var za=0;za<In;++za)if(ee.test(Sn[za])){var $a=void 0;for($a=za+1;$a<In&&ee.test(Sn[$a]);++$a);for(var Ia=(za?Sn[za-1]:nn)=="L",Cl=($a<In?Sn[$a]:nn)=="L",Xs=Ia==Cl?Ia?"L":"R":nn,Ds=za;Ds<$a;++Ds)Sn[Ds]=Xs;za=$a-1}for(var ul=[],os,Ya=0;Ya<In;)if(fe.test(Sn[Ya])){var Iu=Ya;for(++Ya;Ya<In&&fe.test(Sn[Ya]);++Ya);ul.push(new ke(0,Iu,Ya))}else{var ys=Ya,Ts=ul.length,ks=Yt=="rtl"?1:0;for(++Ya;Ya<In&&Sn[Ya]!="L";++Ya);for(var ml=ys;ml<Ya;)if(xe.test(Sn[ml])){ys<ml&&(ul.splice(Ts,0,new ke(1,ys,ml)),Ts+=ks);var Ys=ml;for(++ml;ml<Ya&&xe.test(Sn[ml]);++ml);ul.splice(Ts,0,new ke(2,Ys,ml)),Ts+=ks,ys=ml}else++ml;ys<Ya&&ul.splice(Ts,0,new ke(1,ys,Ya))}return Yt=="ltr"&&(ul[0].level==1&&(os=Xe.match(/^\s+/))&&(ul[0].from=os[0].length,ul.unshift(new ke(0,0,os[0].length))),rt(ul).level==1&&(os=Xe.match(/\s+$/))&&(rt(ul).to-=os[0].length,ul.push(new ke(0,In-os[0].length,In)))),Yt=="rtl"?ul.reverse():ul}}();function Le(a,b){var x=a.order;return x==null&&(x=a.order=Pt(a.text,b)),x}var We=[],Nt=function(a,b,x){if(a.addEventListener)a.addEventListener(b,x,!1);else if(a.attachEvent)a.attachEvent("on"+b,x);else{var E=a._handlers||(a._handlers={});E[b]=(E[b]||We).concat(x)}};function Qt(a,b){return a._handlers&&a._handlers[b]||We}function un(a,b,x){if(a.removeEventListener)a.removeEventListener(b,x,!1);else if(a.detachEvent)a.detachEvent("on"+b,x);else{var E=a._handlers,ee=E&&E[b];if(ee){var oe=Bt(ee,x);oe>-1&&(E[b]=ee.slice(0,oe).concat(ee.slice(oe+1)))}}}function rn(a,b){var x=Qt(a,b);if(x.length)for(var E=Array.prototype.slice.call(arguments,2),ee=0;ee<x.length;++ee)x[ee].apply(null,E)}function Rt(a,b,x){return typeof b=="string"&&(b={type:b,preventDefault:function(){this.defaultPrevented=!0}}),rn(a,x||b.type,a,b),tn(b)||b.codemirrorIgnore}function ln(a){var b=a._handlers&&a._handlers.cursorActivity;if(b)for(var x=a.curOp.cursorActivityHandlers||(a.curOp.cursorActivityHandlers=[]),E=0;E<b.length;++E)Bt(x,b[E])==-1&&x.push(b[E])}function Ht(a,b){return Qt(a,b).length>0}function ze(a){a.prototype.on=function(b,x){Nt(this,b,x)},a.prototype.off=function(b,x){un(this,b,x)}}function yt(a){a.preventDefault?a.preventDefault():a.returnValue=!1}function Kt(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0}function tn(a){return a.defaultPrevented!=null?a.defaultPrevented:a.returnValue==!1}function Ve(a){yt(a),Kt(a)}function Ct(a){return a.target||a.srcElement}function $t(a){var b=a.which;return b==null&&(a.button&1?b=1:a.button&2?b=3:a.button&4&&(b=2)),Se&&a.ctrlKey&&b==1&&(b=3),b}var dt=function(){if(pe&&me<9)return!1;var a=Qe("div");return"draggable"in a||"dragDrop"in a}(),Ot;function Gt(a){if(Ot==null){var b=Qe("span","\u200B");it(a,Qe("span",[b,document.createTextNode("x")])),a.firstChild.offsetHeight!=0&&(Ot=b.offsetWidth<=1&&b.offsetHeight>2&&!(pe&&me<8))}var x=Ot?Qe("span","\u200B"):Qe("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return x.setAttribute("cm-text",""),x}var mn;function An(a){if(mn!=null)return mn;var b=it(a,document.createTextNode("A\u062EA")),x=be(b,0,1).getBoundingClientRect(),E=be(b,1,2).getBoundingClientRect();return vt(a),!x||x.left==x.right?!1:mn=E.right-x.right<3}var hn=`
b`.split(/\n/).length!=3?function(a){for(var b=0,x=[],E=a.length;b<=E;){var ee=a.indexOf(`
`,b);ee==-1&&(ee=a.length);var oe=a.slice(b,a.charAt(ee-1)=="\r"?ee-1:ee),fe=oe.indexOf("\r");fe!=-1?(x.push(oe.slice(0,fe)),b+=fe+1):(x.push(oe),b=ee+1)}return x}:function(a){return a.split(/\r\n?|\n/)},Fn=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(x){}return!b||b.parentElement()!=a?!1:b.compareEndPoints("StartToEnd",b)!=0},Ft=function(){var a=Qe("div");return"oncopy"in a?!0:(a.setAttribute("oncopy","return;"),typeof a.oncopy=="function")}(),Tt=null;function Ut(a){if(Tt!=null)return Tt;var b=it(a,Qe("span","x")),x=b.getBoundingClientRect(),E=be(b,0,1).getBoundingClientRect();return Tt=Math.abs(x.left-E.left)>1}var an={},Xt={};function yn(a,b){arguments.length>2&&(b.dependencies=Array.prototype.slice.call(arguments,2)),an[a]=b}function sn(a,b){Xt[a]=b}function wn(a){if(typeof a=="string"&&Xt.hasOwnProperty(a))a=Xt[a];else if(a&&typeof a.name=="string"&&Xt.hasOwnProperty(a.name)){var b=Xt[a.name];typeof b=="string"&&(b={name:b}),a=re(b,a),a.name=b.name}else{if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(a))return wn("application/xml");if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(a))return wn("application/json")}return typeof a=="string"?{name:a}:a||{name:"null"}}function Vn(a,b){b=wn(b);var x=an[b.name];if(!x)return Vn(a,"text/plain");var E=x(a,b);if(Mn.hasOwnProperty(b.name)){var ee=Mn[b.name];for(var oe in ee)ee.hasOwnProperty(oe)&&(E.hasOwnProperty(oe)&&(E["_"+oe]=E[oe]),E[oe]=ee[oe])}if(E.name=b.name,b.helperType&&(E.helperType=b.helperType),b.modeProps)for(var fe in b.modeProps)E[fe]=b.modeProps[fe];return E}var Mn={};function $n(a,b){var x=Mn.hasOwnProperty(a)?Mn[a]:Mn[a]={};Mt(b,x)}function Wn(a,b){if(b===!0)return b;if(a.copyState)return a.copyState(b);var x={};for(var E in b){var ee=b[E];ee instanceof Array&&(ee=ee.concat([])),x[E]=ee}return x}function Hn(a,b){for(var x;a.innerMode&&(x=a.innerMode(b),!(!x||x.mode==a));)b=x.state,a=x.mode;return x||{mode:a,state:b}}function ur(a,b,x){return a.startState?a.startState(b,x):!0}var rr=function(a,b,x){this.pos=this.start=0,this.string=a,this.tabSize=b||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=x};rr.prototype.eol=function(){return this.pos>=this.string.length},rr.prototype.sol=function(){return this.pos==this.lineStart},rr.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},rr.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},rr.prototype.eat=function(a){var b=this.string.charAt(this.pos),x;if(typeof a=="string"?x=b==a:x=b&&(a.test?a.test(b):a(b)),x)return++this.pos,b},rr.prototype.eatWhile=function(a){for(var b=this.pos;this.eat(a););return this.pos>b},rr.prototype.eatSpace=function(){for(var a=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>a},rr.prototype.skipToEnd=function(){this.pos=this.string.length},rr.prototype.skipTo=function(a){var b=this.string.indexOf(a,this.pos);if(b>-1)return this.pos=b,!0},rr.prototype.backUp=function(a){this.pos-=a},rr.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Fe(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Fe(this.string,this.lineStart,this.tabSize):0)},rr.prototype.indentation=function(){return Fe(this.string,null,this.tabSize)-(this.lineStart?Fe(this.string,this.lineStart,this.tabSize):0)},rr.prototype.match=function(a,b,x){if(typeof a=="string"){var E=function(fe){return x?fe.toLowerCase():fe},ee=this.string.substr(this.pos,a.length);if(E(ee)==E(a))return b!==!1&&(this.pos+=a.length),!0}else{var oe=this.string.slice(this.pos).match(a);return oe&&oe.index>0?null:(oe&&b!==!1&&(this.pos+=oe[0].length),oe)}},rr.prototype.current=function(){return this.string.slice(this.start,this.pos)},rr.prototype.hideFirstChars=function(a,b){this.lineStart+=a;try{return b()}finally{this.lineStart-=a}},rr.prototype.lookAhead=function(a){var b=this.lineOracle;return b&&b.lookAhead(a)},rr.prototype.baseToken=function(){var a=this.lineOracle;return a&&a.baseToken(this.pos)};function dn(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 x=a;!x.lines;)for(var E=0;;++E){var ee=x.children[E],oe=ee.chunkSize();if(b<oe){x=ee;break}b-=oe}return x.lines[b]}function xn(a,b,x){var E=[],ee=b.line;return a.iter(b.line,x.line+1,function(oe){var fe=oe.text;ee==x.line&&(fe=fe.slice(0,x.ch)),ee==b.line&&(fe=fe.slice(b.ch)),E.push(fe),++ee}),E}function jn(a,b,x){var E=[];return a.iter(b,x,function(ee){E.push(ee.text)}),E}function zn(a,b){var x=b-a.height;if(x)for(var E=a;E;E=E.parent)E.height+=x}function xt(a){if(a.parent==null)return null;for(var b=a.parent,x=Bt(b.lines,a),E=b.parent;E;b=E,E=E.parent)for(var ee=0;E.children[ee]!=b;++ee)x+=E.children[ee].chunkSize();return x+b.first}function _t(a,b){var x=a.first;e:do{for(var E=0;E<a.children.length;++E){var ee=a.children[E],oe=ee.height;if(b<oe){a=ee;continue e}b-=oe,x+=ee.chunkSize()}return x}while(!a.lines);for(var fe=0;fe<a.lines.length;++fe){var xe=a.lines[fe],ke=xe.height;if(b<ke)break;b-=ke}return x+fe}function Je(a,b){return b>=a.first&&b<a.first+a.size}function Dt(a,b){return String(a.lineNumberFormatter(b+a.firstLineNumber))}function Ge(a,b,x){if(x===void 0&&(x=null),!(this instanceof Ge))return new Ge(a,b,x);this.line=a,this.ch=b,this.sticky=x}function At(a,b){return a.line-b.line||a.ch-b.ch}function Jt(a,b){return a.sticky==b.sticky&&At(a,b)==0}function Rn(a){return Ge(a.line,a.ch)}function Zn(a,b){return At(a,b)<0?b:a}function pt(a,b){return At(a,b)<0?a:b}function Et(a,b){return Math.max(a.first,Math.min(b,a.first+a.size-1))}function St(a,b){if(b.line<a.first)return Ge(a.first,0);var x=a.first+a.size-1;return b.line>x?Ge(x,dn(a,x).text.length):It(b,dn(a,b.line).text.length)}function It(a,b){var x=a.ch;return x==null||x>b?Ge(a.line,b):x<0?Ge(a.line,0):a}function fn(a,b){for(var x=[],E=0;E<b.length;E++)x[E]=St(a,b[E]);return x}var Bn=function(a,b){this.state=a,this.lookAhead=b},On=function(a,b,x,E){this.state=b,this.doc=a,this.line=x,this.maxLookAhead=E||0,this.baseTokens=null,this.baseTokenPos=1};On.prototype.lookAhead=function(a){var b=this.doc.getLine(this.line+a);return b!=null&&a>this.maxLookAhead&&(this.maxLookAhead=a),b},On.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}},On.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},On.fromSaved=function(a,b,x){return b instanceof Bn?new On(a,Wn(a.mode,b.state),x,b.lookAhead):new On(a,Wn(a.mode,b),x)},On.prototype.save=function(a){var b=a!==!1?Wn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Bn(b,this.maxLookAhead):b};function Nn(a,b,x,E){var ee=[a.state.modeGen],oe={};br(a,b.text,a.doc.mode,x,function(Xe,Yt){return ee.push(Xe,Yt)},oe,E);for(var fe=x.state,xe=function(Xe){x.baseTokens=ee;var Yt=a.state.overlays[Xe],nn=1,In=0;x.state=!0,br(a,b.text,Yt.mode,x,function(Sn,tr){for(var vr=nn;In<Sn;){var Ar=ee[nn];Ar>Sn&&ee.splice(nn,1,Sn,ee[nn+1],Ar),nn+=2,In=Math.min(Sn,Ar)}if(tr)if(Yt.opaque)ee.splice(vr,nn-vr,Sn,"overlay "+tr),nn=vr+2;else for(;vr<nn;vr+=2){var Gr=ee[vr+1];ee[vr+1]=(Gr?Gr+" ":"")+"overlay "+tr}},oe),x.state=fe,x.baseTokens=null,x.baseTokenPos=1},ke=0;ke<a.state.overlays.length;++ke)xe(ke);return{styles:ee,classes:oe.bgClass||oe.textClass?oe:null}}function qn(a,b,x){if(!b.styles||b.styles[0]!=a.state.modeGen){var E=nr(a,xt(b)),ee=b.text.length>a.options.maxHighlightLength&&Wn(a.doc.mode,E.state),oe=Nn(a,b,E);ee&&(E.state=ee),b.stateAfter=E.save(!ee),b.styles=oe.styles,oe.classes?b.styleClasses=oe.classes:b.styleClasses&&(b.styleClasses=null),x===a.doc.highlightFrontier&&(a.doc.modeFrontier=Math.max(a.doc.modeFrontier,++a.doc.highlightFrontier))}return b.styles}function nr(a,b,x){var E=a.doc,ee=a.display;if(!E.mode.startState)return new On(E,!0,b);var oe=Zr(a,b,x),fe=oe>E.first&&dn(E,oe-1).stateAfter,xe=fe?On.fromSaved(E,fe,oe):new On(E,ur(E.mode),oe);return E.iter(oe,b,function(ke){ir(a,ke.text,xe);var Xe=xe.line;ke.stateAfter=Xe==b-1||Xe%5==0||Xe>=ee.viewFrom&&Xe<ee.viewTo?xe.save():null,xe.nextLine()}),x&&(E.modeFrontier=xe.line),xe}function ir(a,b,x,E){var ee=a.doc.mode,oe=new rr(b,a.options.tabSize,x);for(oe.start=oe.pos=E||0,b==""&&lr(ee,x.state);!oe.eol();)Qn(ee,oe,x.state),oe.start=oe.pos}function lr(a,b){if(a.blankLine)return a.blankLine(b);if(a.innerMode){var x=Hn(a,b);if(x.mode.blankLine)return x.mode.blankLine(x.state)}}function Qn(a,b,x,E){for(var ee=0;ee<10;ee++){E&&(E[0]=Hn(a,x).mode);var oe=a.token(b,x);if(b.pos>b.start)return oe}throw new Error("Mode "+a.name+" failed to advance stream.")}var ar=function(a,b,x){this.start=a.start,this.end=a.pos,this.string=a.current(),this.type=b||null,this.state=x};function fr(a,b,x,E){var ee=a.doc,oe=ee.mode,fe;b=St(ee,b);var xe=dn(ee,b.line),ke=nr(a,b.line,x),Xe=new rr(xe.text,a.options.tabSize,ke),Yt;for(E&&(Yt=[]);(E||Xe.pos<b.ch)&&!Xe.eol();)Xe.start=Xe.pos,fe=Qn(oe,Xe,ke.state),E&&Yt.push(new ar(Xe,fe,Wn(ee.mode,ke.state)));return E?Yt:new ar(Xe,fe,ke.state)}function Sr(a,b){if(a)for(;;){var x=a.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!x)break;a=a.slice(0,x.index)+a.slice(x.index+x[0].length);var E=x[1]?"bgClass":"textClass";b[E]==null?b[E]=x[2]:new RegExp("(?:^|\\s)"+x[2]+"(?:$|\\s)").test(b[E])||(b[E]+=" "+x[2])}return a}function br(a,b,x,E,ee,oe,fe){var xe=x.flattenSpans;xe==null&&(xe=a.options.flattenSpans);var ke=0,Xe=null,Yt=new rr(b,a.options.tabSize,E),nn,In=a.options.addModeClass&&[null];for(b==""&&Sr(lr(x,E.state),oe);!Yt.eol();){if(Yt.pos>a.options.maxHighlightLength?(xe=!1,fe&&ir(a,b,E,Yt.pos),Yt.pos=b.length,nn=null):nn=Sr(Qn(x,Yt,E.state,In),oe),In){var Sn=In[0].name;Sn&&(nn="m-"+(nn?Sn+" "+nn:Sn))}if(!xe||Xe!=nn){for(;ke<Yt.start;)ke=Math.min(Yt.start,ke+5e3),ee(ke,Xe);Xe=nn}Yt.start=Yt.pos}for(;ke<Yt.pos;){var tr=Math.min(Yt.pos,ke+5e3);ee(tr,Xe),ke=tr}}function Zr(a,b,x){for(var E,ee,oe=a.doc,fe=x?-1:b-(a.doc.mode.innerMode?1e3:100),xe=b;xe>fe;--xe){if(xe<=oe.first)return oe.first;var ke=dn(oe,xe-1),Xe=ke.stateAfter;if(Xe&&(!x||xe+(Xe instanceof Bn?Xe.lookAhead:0)<=oe.modeFrontier))return xe;var Yt=Fe(ke.text,null,a.options.tabSize);(ee==null||E>Yt)&&(ee=xe-1,E=Yt)}return ee}function jr(a,b){if(a.modeFrontier=Math.min(a.modeFrontier,b),!(a.highlightFrontier<b-10)){for(var x=a.first,E=b-1;E>x;E--){var ee=dn(a,E).stateAfter;if(ee&&(!(ee instanceof Bn)||E+ee.lookAhead<b)){x=E+1;break}}a.highlightFrontier=Math.min(a.highlightFrontier,x)}}var hr=!1,Mr=!1;function eo(){hr=!0}function kr(){Mr=!0}function Fr(a,b,x){this.marker=a,this.from=b,this.to=x}function or(a,b){if(a)for(var x=0;x<a.length;++x){var E=a[x];if(E.marker==b)return E}}function Ur(a,b){for(var x,E=0;E<a.length;++E)a[E]!=b&&(x||(x=[])).push(a[E]);return x}function Rr(a,b){a.markedSpans=a.markedSpans?a.markedSpans.concat([b]):[b],b.marker.attachLine(a)}function Br(a,b,x){var E;if(a)for(var ee=0;ee<a.length;++ee){var oe=a[ee],fe=oe.marker,xe=oe.from==null||(fe.inclusiveLeft?oe.from<=b:oe.from<b);if(xe||oe.from==b&&fe.type=="bookmark"&&(!x||!oe.marker.insertLeft)){var ke=oe.to==null||(fe.inclusiveRight?oe.to>=b:oe.to>b);(E||(E=[])).push(new Fr(fe,oe.from,ke?null:oe.to))}}return E}function Cr(a,b,x){var E;if(a)for(var ee=0;ee<a.length;++ee){var oe=a[ee],fe=oe.marker,xe=oe.to==null||(fe.inclusiveRight?oe.to>=b:oe.to>b);if(xe||oe.from==b&&fe.type=="bookmark"&&(!x||oe.marker.insertLeft)){var ke=oe.from==null||(fe.inclusiveLeft?oe.from<=b:oe.from<b);(E||(E=[])).push(new Fr(fe,ke?null:oe.from-b,oe.to==null?null:oe.to-b))}}return E}function so(a,b){if(b.full)return null;var x=Je(a,b.from.line)&&dn(a,b.from.line).markedSpans,E=Je(a,b.to.line)&&dn(a,b.to.line).markedSpans;if(!x&&!E)return null;var ee=b.from.ch,oe=b.to.ch,fe=At(b.from,b.to)==0,xe=Br(x,ee,fe),ke=Cr(E,oe,fe),Xe=b.text.length==1,Yt=rt(b.text).length+(Xe?ee:0);if(xe)for(var nn=0;nn<xe.length;++nn){var In=xe[nn];if(In.to==null){var Sn=or(ke,In.marker);Sn?Xe&&(In.to=Sn.to==null?null:Sn.to+Yt):In.to=ee}}if(ke)for(var tr=0;tr<ke.length;++tr){var vr=ke[tr];if(vr.to!=null&&(vr.to+=Yt),vr.from==null){var Ar=or(xe,vr.marker);Ar||(vr.from=Yt,Xe&&(xe||(xe=[])).push(vr))}else vr.from+=Yt,Xe&&(xe||(xe=[])).push(vr)}xe&&(xe=Ho(xe)),ke&&ke!=xe&&(ke=Ho(ke));var Gr=[xe];if(!Xe){var mo=b.text.length-2,Xr;if(mo>0&&xe)for(var Do=0;Do<xe.length;++Do)xe[Do].to==null&&(Xr||(Xr=[])).push(new Fr(xe[Do].marker,null,null));for(var ii=0;ii<mo;++ii)Gr.push(Xr);Gr.push(ke)}return Gr}function Ho(a){for(var b=0;b<a.length;++b){var x=a[b];x.from!=null&&x.from==x.to&&x.marker.clearWhenEmpty!==!1&&a.splice(b--,1)}return a.length?a:null}function ti(a,b,x){var E=null;if(a.iter(b.line,x.line+1,function(Sn){if(Sn.markedSpans)for(var tr=0;tr<Sn.markedSpans.length;++tr){var vr=Sn.markedSpans[tr].marker;vr.readOnly&&(!E||Bt(E,vr)==-1)&&(E||(E=[])).push(vr)}}),!E)return null;for(var ee=[{from:b,to:x}],oe=0;oe<E.length;++oe)for(var fe=E[oe],xe=fe.find(0),ke=0;ke<ee.length;++ke){var Xe=ee[ke];if(!(At(Xe.to,xe.from)<0||At(Xe.from,xe.to)>0)){var Yt=[ke,1],nn=At(Xe.from,xe.from),In=At(Xe.to,xe.to);(nn<0||!fe.inclusiveLeft&&!nn)&&Yt.push({from:Xe.from,to:xe.from}),(In>0||!fe.inclusiveRight&&!In)&&Yt.push({from:xe.to,to:Xe.to}),ee.splice.apply(ee,Yt),ke+=Yt.length-3}}return ee}function xo(a){var b=a.markedSpans;if(b){for(var x=0;x<b.length;++x)b[x].marker.detachLine(a);a.markedSpans=null}}function No(a,b){if(b){for(var x=0;x<b.length;++x)b[x].marker.attachLine(a);a.markedSpans=b}}function To(a){return a.inclusiveLeft?-1:0}function Xo(a){return a.inclusiveRight?1:0}function ko(a,b){var x=a.lines.length-b.lines.length;if(x!=0)return x;var E=a.find(),ee=b.find(),oe=At(E.from,ee.from)||To(a)-To(b);if(oe)return-oe;var fe=At(E.to,ee.to)||Xo(a)-Xo(b);return fe||b.id-a.id}function go(a,b){var x=Mr&&a.markedSpans,E;if(x)for(var ee=void 0,oe=0;oe<x.length;++oe)ee=x[oe],ee.marker.collapsed&&(b?ee.from:ee.to)==null&&(!E||ko(E,ee.marker)<0)&&(E=ee.marker);return E}function dr(a){return go(a,!0)}function Tn(a){return go(a,!1)}function Gn(a,b){var x=Mr&&a.markedSpans,E;if(x)for(var ee=0;ee<x.length;++ee){var oe=x[ee];oe.marker.collapsed&&(oe.from==null||oe.from<b)&&(oe.to==null||oe.to>b)&&(!E||ko(E,oe.marker)<0)&&(E=oe.marker)}return E}function Yn(a,b,x,E,ee){var oe=dn(a,b),fe=Mr&&oe.markedSpans;if(fe)for(var xe=0;xe<fe.length;++xe){var ke=fe[xe];if(ke.marker.collapsed){var Xe=ke.marker.find(0),Yt=At(Xe.from,x)||To(ke.marker)-To(ee),nn=At(Xe.to,E)||Xo(ke.marker)-Xo(ee);if(!(Yt>=0&&nn<=0||Yt<=0&&nn>=0)&&(Yt<=0&&(ke.marker.inclusiveRight&&ee.inclusiveLeft?At(Xe.to,x)>=0:At(Xe.to,x)>0)||Yt>=0&&(ke.marker.inclusiveRight&&ee.inclusiveLeft?At(Xe.from,E)<=0:At(Xe.from,E)<0)))return!0}}}function Ln(a){for(var b;b=dr(a);)a=b.find(-1,!0).line;return a}function mr(a){for(var b;b=Tn(a);)a=b.find(1,!0).line;return a}function wr(a){for(var b,x;b=Tn(a);)a=b.find(1,!0).line,(x||(x=[])).push(a);return x}function Un(a,b){var x=dn(a,b),E=Ln(x);return x==E?b:xt(E)}function Jn(a,b){if(b>a.lastLine())return b;var x=dn(a,b),E;if(!sr(a,x))return b;for(;E=Tn(x);)x=E.find(1,!0).line;return xt(x)+1}function sr(a,b){var x=Mr&&b.markedSpans;if(x){for(var E=void 0,ee=0;ee<x.length;++ee)if(E=x[ee],!!E.marker.collapsed){if(E.from==null)return!0;if(!E.marker.widgetNode&&E.from==0&&E.marker.inclusiveLeft&&pr(a,b,E))return!0}}}function pr(a,b,x){if(x.to==null){var E=x.marker.find(1,!0);return pr(a,E.line,or(E.line.markedSpans,x.marker))}if(x.marker.inclusiveRight&&x.to==b.text.length)return!0;for(var ee=void 0,oe=0;oe<b.markedSpans.length;++oe)if(ee=b.markedSpans[oe],ee.marker.collapsed&&!ee.marker.widgetNode&&ee.from==x.to&&(ee.to==null||ee.to!=x.from)&&(ee.marker.inclusiveLeft||x.marker.inclusiveRight)&&pr(a,b,ee))return!0}function _r(a){a=Ln(a);for(var b=0,x=a.parent,E=0;E<x.lines.length;++E){var ee=x.lines[E];if(ee==a)break;b+=ee.height}for(var oe=x.parent;oe;x=oe,oe=x.parent)for(var fe=0;fe<oe.children.length;++fe){var xe=oe.children[fe];if(xe==x)break;b+=xe.height}return b}function Yr(a){if(a.height==0)return 0;for(var b=a.text.length,x,E=a;x=dr(E);){var ee=x.find(0,!0);E=ee.from.line,b+=ee.from.ch-ee.to.ch}for(E=a;x=Tn(E);){var oe=x.find(0,!0);b-=E.text.length-oe.from.ch,E=oe.to.line,b+=E.text.length-oe.to.ch}return b}function to(a){var b=a.display,x=a.doc;b.maxLine=dn(x,x.first),b.maxLineLength=Yr(b.maxLine),b.maxLineChanged=!0,x.iter(function(E){var ee=Yr(E);ee>b.maxLineLength&&(b.maxLineLength=ee,b.maxLine=E)})}var Fo=function(a,b,x){this.text=a,No(this,b),this.height=x?x(this):1};Fo.prototype.lineNo=function(){return xt(this)},ze(Fo);function Mo(a,b,x,E){a.text=b,a.stateAfter&&(a.stateAfter=null),a.styles&&(a.styles=null),a.order!=null&&(a.order=null),xo(a),No(a,x);var ee=E?E(a):1;ee!=a.height&&zn(a,ee)}function Yo(a){a.parent=null,xo(a)}var Jo={},ni={};function ri(a,b){if(!a||/^\s*$/.test(a))return null;var x=b.addModeClass?ni:Jo;return x[a]||(x[a]=a.replace(/\S+/g,"cm-$&"))}function Mi(a,b){var x=ut("span",null,null,ve?"padding-right: .1px":null),E={pre:ut("pre",[x],"CodeMirror-line"),content:x,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 oe=ee?b.rest[ee-1]:b.line,fe=void 0;E.pos=0,E.addToken=Xi,An(a.display.measure)&&(fe=Le(oe,a.doc.direction))&&(E.addToken=ta(E.addToken,fe)),E.map=[];var xe=b!=a.display.externalMeasured&&xt(oe);co(oe,E,qn(a,oe,xe)),oe.styleClasses&&(oe.styleClasses.bgClass&&(E.bgClass=mt(oe.styleClasses.bgClass,E.bgClass||"")),oe.styleClasses.textClass&&(E.textClass=mt(oe.styleClasses.textClass,E.textClass||""))),E.map.length==0&&E.map.push(0,0,E.content.appendChild(Gt(a.display.measure))),ee==0?(b.measure.map=E.map,b.measure.cache={}):((b.measure.maps||(b.measure.maps=[])).push(E.map),(b.measure.caches||(b.measure.caches=[])).push({}))}if(ve){var ke=E.content.lastChild;(/\bcm-tab\b/.test(ke.className)||ke.querySelector&&ke.querySelector(".cm-tab"))&&(E.content.className="cm-tab-wrap-hack")}return rn(a,"renderLine",a,b.line,E.pre),E.pre.className&&(E.textClass=mt(E.pre.className,E.textClass||"")),E}function $i(a){var b=Qe("span","\u2022","cm-invalidchar");return b.title="\\u"+a.charCodeAt(0).toString(16),b.setAttribute("aria-label",b.title),b}function Xi(a,b,x,E,ee,oe,fe){if(b){var xe=a.splitSpaces?Yi(b,a.trailingSpace):b,ke=a.cm.state.specialChars,Xe=!1,Yt;if(!ke.test(b))a.col+=b.length,Yt=document.createTextNode(xe),a.map.push(a.pos,a.pos+b.length,Yt),pe&&me<9&&(Xe=!0),a.pos+=b.length;else{Yt=document.createDocumentFragment();for(var nn=0;;){ke.lastIndex=nn;var In=ke.exec(b),Sn=In?In.index-nn:b.length-nn;if(Sn){var tr=document.createTextNode(xe.slice(nn,nn+Sn));pe&&me<9?Yt.appendChild(Qe("span",[tr])):Yt.appendChild(tr),a.map.push(a.pos,a.pos+Sn,tr),a.col+=Sn,a.pos+=Sn}if(!In)break;nn+=Sn+1;var vr=void 0;if(In[0]==" "){var Ar=a.cm.options.tabSize,Gr=Ar-a.col%Ar;vr=Yt.appendChild(Qe("span",lt(Gr),"cm-tab")),vr.setAttribute("role","presentation"),vr.setAttribute("cm-text"," "),a.col+=Gr}else In[0]=="\r"||In[0]==`
`?(vr=Yt.appendChild(Qe("span",In[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),vr.setAttribute("cm-text",In[0]),a.col+=1):(vr=a.cm.options.specialCharPlaceholder(In[0]),vr.setAttribute("cm-text",In[0]),pe&&me<9?Yt.appendChild(Qe("span",[vr])):Yt.appendChild(vr),a.col+=1);a.map.push(a.pos,a.pos+1,vr),a.pos++}}if(a.trailingSpace=xe.charCodeAt(b.length-1)==32,x||E||ee||Xe||oe||fe){var mo=x||"";E&&(mo+=E),ee&&(mo+=ee);var Xr=Qe("span",[Yt],mo,oe);if(fe)for(var Do in fe)fe.hasOwnProperty(Do)&&Do!="style"&&Do!="class"&&Xr.setAttribute(Do,fe[Do]);return a.content.appendChild(Xr)}a.content.appendChild(Yt)}}function Yi(a,b){if(a.length>1&&!/ /.test(a))return a;for(var x=b,E="",ee=0;ee<a.length;ee++){var oe=a.charAt(ee);oe==" "&&x&&(ee==a.length-1||a.charCodeAt(ee+1)==32)&&(oe="\xA0"),E+=oe,x=oe==" "}return E}function ta(a,b){return function(x,E,ee,oe,fe,xe,ke){ee=ee?ee+" cm-force-border":"cm-force-border";for(var Xe=x.pos,Yt=Xe+E.length;;){for(var nn=void 0,In=0;In<b.length&&(nn=b[In],!(nn.to>Xe&&nn.from<=Xe));In++);if(nn.to>=Yt)return a(x,E,ee,oe,fe,xe,ke);a(x,E.slice(0,nn.to-Xe),ee,oe,null,xe,ke),oe=null,E=E.slice(nn.to-Xe),Xe=nn.to}}}function Lo(a,b,x,E){var ee=!E&&x.widgetNode;ee&&a.map.push(a.pos,a.pos+b,ee),!E&&a.cm.display.input.needsContentAttribute&&(ee||(ee=a.content.appendChild(document.createElement("span"))),ee.setAttribute("cm-marker",x.id)),ee&&(a.cm.display.input.setUneditable(ee),a.content.appendChild(ee)),a.pos+=b,a.trailingSpace=!1}function co(a,b,x){var E=a.markedSpans,ee=a.text,oe=0;if(!E){for(var fe=1;fe<x.length;fe+=2)b.addToken(b,ee.slice(oe,oe=x[fe]),ri(x[fe+1],b.cm.options));return}for(var xe=ee.length,ke=0,Xe=1,Yt="",nn,In,Sn=0,tr,vr,Ar,Gr,mo;;){if(Sn==ke){tr=vr=Ar=In="",mo=null,Gr=null,Sn=1/0;for(var Xr=[],Do=void 0,ii=0;ii<E.length;++ii){var Uo=E[ii],Si=Uo.marker;if(Si.type=="bookmark"&&Uo.from==ke&&Si.widgetNode)Xr.push(Si);else if(Uo.from<=ke&&(Uo.to==null||Uo.to>ke||Si.collapsed&&Uo.to==ke&&Uo.from==ke)){if(Uo.to!=null&&Uo.to!=ke&&Sn>Uo.to&&(Sn=Uo.to,vr=""),Si.className&&(tr+=" "+Si.className),Si.css&&(In=(In?In+";":"")+Si.css),Si.startStyle&&Uo.from==ke&&(Ar+=" "+Si.startStyle),Si.endStyle&&Uo.to==Sn&&(Do||(Do=[])).push(Si.endStyle,Uo.to),Si.title&&((mo||(mo={})).title=Si.title),Si.attributes)for(var ca in Si.attributes)(mo||(mo={}))[ca]=Si.attributes[ca];Si.collapsed&&(!Gr||ko(Gr.marker,Si)<0)&&(Gr=Uo)}else Uo.from>ke&&Sn>Uo.from&&(Sn=Uo.from)}if(Do)for(var Xa=0;Xa<Do.length;Xa+=2)Do[Xa+1]==Sn&&(vr+=" "+Do[Xa]);if(!Gr||Gr.from==ke)for(var Fa=0;Fa<Xr.length;++Fa)Lo(b,0,Xr[Fa]);if(Gr&&(Gr.from||0)==ke){if(Lo(b,(Gr.to==null?xe+1:Gr.to)-ke,Gr.marker,Gr.from==null),Gr.to==null)return;Gr.to==ke&&(Gr=!1)}}if(ke>=xe)break;for(var Fl=Math.min(xe,Sn);;){if(Yt){var yl=ke+Yt.length;if(!Gr){var _a=yl>Fl?Yt.slice(0,Fl-ke):Yt;b.addToken(b,_a,nn?nn+tr:tr,Ar,ke+_a.length==Sn?vr:"",In,mo)}if(yl>=Fl){Yt=Yt.slice(Fl-ke),ke=Fl;break}ke=yl,Ar=""}Yt=ee.slice(oe,oe=x[Xe++]),nn=ri(x[Xe++],b.cm.options)}}}function wi(a,b,x){this.line=b,this.rest=wr(b),this.size=this.rest?xt(rt(this.rest))-x+1:1,this.node=this.text=null,this.hidden=sr(a,b)}function wo(a,b,x){for(var E=[],ee,oe=b;oe<x;oe=ee){var fe=new wi(a.doc,dn(a.doc,oe),oe);ee=oe+fe.size,E.push(fe)}return E}var aa=null;function Qa(a){aa?aa.ops.push(a):a.ownsGroup=aa={ops:[a],delayedCallbacks:[]}}function Ha(a){var b=a.delayedCallbacks,x=0;do{for(;x<b.length;x++)b[x].call(null);for(var E=0;E<a.ops.length;E++){var ee=a.ops[E];if(ee.cursorActivityHandlers)for(;ee.cursorActivityCalled<ee.cursorActivityHandlers.length;)ee.cursorActivityHandlers[ee.cursorActivityCalled++].call(null,ee.cm)}}while(x<b.length)}function da(a,b){var x=a.ownsGroup;if(x)try{Ha(x)}finally{aa=null,b(x)}}var fa=null;function Ti(a,b){var x=Qt(a,b);if(x.length){var E=Array.prototype.slice.call(arguments,2),ee;aa?ee=aa.delayedCallbacks:fa?ee=fa:(ee=fa=[],setTimeout(ka,0));for(var oe=function(xe){ee.push(function(){return x[xe].apply(null,E)})},fe=0;fe<x.length;++fe)oe(fe)}}function ka(){var a=fa;fa=null;for(var b=0;b<a.length;++b)a[b]()}function ol(a,b,x,E){for(var ee=0;ee<b.changes.length;ee++){var oe=b.changes[ee];oe=="text"?El(a,b):oe=="gutter"?ai(a,b,x,E):oe=="class"?jo(a,b):oe=="widget"&&Ro(a,b,E)}b.changes=null}function Ja(a){return a.node==a.text&&(a.node=Qe("div",null,null,"position: relative"),a.text.parentNode&&a.text.parentNode.replaceChild(a.node,a.text),a.node.appendChild(a.text),pe&&me<8&&(a.node.style.zIndex=2)),a.node}function la(a,b){var x=b.bgClass?b.bgClass+" "+(b.line.bgClass||""):b.line.bgClass;if(x&&(x+=" CodeMirror-linebackground"),b.background)x?b.background.className=x:(b.background.parentNode.removeChild(b.background),b.background=null);else if(x){var E=Ja(b);b.background=E.insertBefore(Qe("div",null,x),E.firstChild),a.display.input.setUneditable(b.background)}}function Pl(a,b){var x=a.display.externalMeasured;return x&&x.line==b.line?(a.display.externalMeasured=null,b.measure=x.measure,x.built):Mi(a,b)}function El(a,b){var x=b.text.className,E=Pl(a,b);b.text==b.node&&(b.node=E.pre),b.text.parentNode.replaceChild(E.pre,b.text),b.text=E.pre,E.bgClass!=b.bgClass||E.textClass!=b.textClass?(b.bgClass=E.bgClass,b.textClass=E.textClass,jo(a,b)):x&&(b.text.className=x)}function jo(a,b){la(a,b),b.line.wrapClass?Ja(b).className=b.line.wrapClass:b.node!=b.text&&(b.node.className="");var x=b.textClass?b.textClass+" "+(b.line.textClass||""):b.line.textClass;b.text.className=x||""}function ai(a,b,x,E){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=Ja(b);b.gutterBackground=Qe("div",null,"CodeMirror-gutter-background "+b.line.gutterClass,"left: "+(a.options.fixedGutter?E.fixedPos:-E.gutterTotalWidth)+"px; width: "+E.gutterTotalWidth+"px"),a.display.input.setUneditable(b.gutterBackground),ee.insertBefore(b.gutterBackground,b.text)}var oe=b.line.gutterMarkers;if(a.options.lineNumbers||oe){var fe=Ja(b),xe=b.gutter=Qe("div",null,"CodeMirror-gutter-wrapper","left: "+(a.options.fixedGutter?E.fixedPos:-E.gutterTotalWidth)+"px");if(a.display.input.setUneditable(xe),fe.insertBefore(xe,b.text),b.line.gutterClass&&(xe.className+=" "+b.line.gutterClass),a.options.lineNumbers&&(!oe||!oe["CodeMirror-linenumbers"])&&(b.lineNumber=xe.appendChild(Qe("div",Dt(a.options,x),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+E.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+a.display.lineNumInnerWidth+"px"))),oe)for(var ke=0;ke<a.display.gutterSpecs.length;++ke){var Xe=a.display.gutterSpecs[ke].className,Yt=oe.hasOwnProperty(Xe)&&oe[Xe];Yt&&xe.appendChild(Qe("div",[Yt],"CodeMirror-gutter-elt","left: "+E.gutterLeft[Xe]+"px; width: "+E.gutterWidth[Xe]+"px"))}}}function Ro(a,b,x){b.alignable&&(b.alignable=null);for(var E=Re("CodeMirror-linewidget"),ee=b.node.firstChild,oe=void 0;ee;ee=oe)oe=ee.nextSibling,E.test(ee.className)&&b.node.removeChild(ee);qo(a,b,x)}function Bo(a,b,x,E){var ee=Pl(a,b);return b.text=b.node=ee.pre,ee.bgClass&&(b.bgClass=ee.bgClass),ee.textClass&&(b.textClass=ee.textClass),jo(a,b),ai(a,b,x,E),qo(a,b,E),b.node}function qo(a,b,x){if(Bi(a,b.line,b,x,!0),b.rest)for(var E=0;E<b.rest.length;E++)Bi(a,b.rest[E],b,x,!1)}function Bi(a,b,x,E,ee){if(b.widgets)for(var oe=Ja(x),fe=0,xe=b.widgets;fe<xe.length;++fe){var ke=xe[fe],Xe=Qe("div",[ke.node],"CodeMirror-linewidget"+(ke.className?" "+ke.className:""));ke.handleMouseEvents||Xe.setAttribute("cm-ignore-events","true"),Wa(ke,Xe,x,E),a.display.input.setUneditable(Xe),ee&&ke.above?oe.insertBefore(Xe,x.gutter||x.text):oe.appendChild(Xe),Ti(ke,"redraw")}}function Wa(a,b,x,E){if(a.noHScroll){(x.alignable||(x.alignable=[])).push(b);var ee=E.wrapperWidth;b.style.left=E.fixedPos+"px",a.coverGutter||(ee-=E.gutterTotalWidth,b.style.paddingLeft=E.gutterTotalWidth+"px"),b.style.width=ee+"px"}a.coverGutter&&(b.style.zIndex=5,b.style.position="relative",a.noHScroll||(b.style.marginLeft=-E.gutterTotalWidth+"px"))}function zi(a){if(a.height!=null)return a.height;var b=a.doc.cm;if(!b)return 0;if(!et(document.body,a.node)){var x="position: relative;";a.coverGutter&&(x+="margin-left: -"+b.display.gutters.offsetWidth+"px;"),a.noHScroll&&(x+="width: "+b.display.wrapper.clientWidth+"px;"),it(b.display.measure,Qe("div",[a.node],null,x))}return a.height=a.node.parentNode.offsetHeight}function Qi(a,b){for(var x=Ct(b);x!=a.wrapper;x=x.parentNode)if(!x||x.nodeType==1&&x.getAttribute("cm-ignore-events")=="true"||x.parentNode==a.sizer&&x!=a.mover)return!0}function sa(a){return a.lineSpace.offsetTop}function cl(a){return a.mover.offsetHeight-a.lineSpace.offsetHeight}function xl(a){if(a.cachedPaddingH)return a.cachedPaddingH;var b=it(a.measure,Qe("pre","x","CodeMirror-line-like")),x=window.getComputedStyle?window.getComputedStyle(b):b.currentStyle,E={left:parseInt(x.paddingLeft),right:parseInt(x.paddingRight)};return!isNaN(E.left)&&!isNaN(E.right)&&(a.cachedPaddingH=E),E}function Ka(a){return jt-a.display.nativeBarWidth}function Sl(a){return a.display.scroller.clientWidth-Ka(a)-a.display.barWidth}function kl(a){return a.display.scroller.clientHeight-Ka(a)-a.display.barHeight}function dl(a,b,x){var E=a.options.lineWrapping,ee=E&&Sl(a);if(!b.measure.heights||E&&b.measure.width!=ee){var oe=b.measure.heights=[];if(E){b.measure.width=ee;for(var fe=b.text.firstChild.getClientRects(),xe=0;xe<fe.length-1;xe++){var ke=fe[xe],Xe=fe[xe+1];Math.abs(ke.bottom-Xe.bottom)>2&&oe.push((ke.bottom+Xe.top)/2-x.top)}}oe.push(x.bottom-x.top)}}function zl(a,b,x){if(a.line==b)return{map:a.measure.map,cache:a.measure.cache};for(var E=0;E<a.rest.length;E++)if(a.rest[E]==b)return{map:a.measure.maps[E],cache:a.measure.caches[E]};for(var ee=0;ee<a.rest.length;ee++)if(xt(a.rest[ee])>x)return{map:a.measure.maps[ee],cache:a.measure.caches[ee],before:!0}}function Fs(a,b){b=Ln(b);var x=xt(b),E=a.display.externalMeasured=new wi(a.doc,b,x);E.lineN=x;var ee=E.built=Mi(a,E);return E.text=ee.pre,it(a.display.lineMeasure,ee.pre),E}function Gl(a,b,x,E){return fl(a,Ll(a,b),x,E)}function Ol(a,b){if(b>=a.display.viewFrom&&b<a.display.viewTo)return a.display.view[io(a,b)];var x=a.display.externalMeasured;if(x&&b>=x.lineN&&b<x.lineN+x.size)return x}function Ll(a,b){var x=xt(b),E=Ol(a,x);E&&!E.text?E=null:E&&E.changes&&(ol(a,E,x,ho(a)),a.curOp.forceUpdate=!0),E||(E=Fs(a,b));var ee=zl(E,b,x);return{line:b,view:E,rect:null,map:ee.map,cache:ee.cache,before:ee.before,hasHeights:!1}}function fl(a,b,x,E,ee){b.before&&(x=-1);var oe=x+(E||""),fe;return b.cache.hasOwnProperty(oe)?fe=b.cache[oe]:(b.rect||(b.rect=b.view.text.getBoundingClientRect()),b.hasHeights||(dl(a,b.view,b.rect),b.hasHeights=!0),fe=Il(a,b,x,E),fe.bogus||(b.cache[oe]=fe)),{left:fe.left,right:fe.right,top:ee?fe.rtop:fe.top,bottom:ee?fe.rbottom:fe.bottom}}var is={left:0,right:0,top:0,bottom:0};function Xl(a,b,x){for(var E,ee,oe,fe,xe,ke,Xe=0;Xe<a.length;Xe+=3)if(xe=a[Xe],ke=a[Xe+1],b<xe?(ee=0,oe=1,fe="left"):b<ke?(ee=b-xe,oe=ee+1):(Xe==a.length-3||b==ke&&a[Xe+3]>b)&&(oe=ke-xe,ee=oe-1,b>=ke&&(fe="right")),ee!=null){if(E=a[Xe+2],xe==ke&&x==(E.insertLeft?"left":"right")&&(fe=x),x=="left"&&ee==0)for(;Xe&&a[Xe-2]==a[Xe-3]&&a[Xe-1].insertLeft;)E=a[(Xe-=3)+2],fe="left";if(x=="right"&&ee==ke-xe)for(;Xe<a.length-3&&a[Xe+3]==a[Xe+4]&&!a[Xe+5].insertLeft;)E=a[(Xe+=3)+2],fe="right";break}return{node:E,start:ee,end:oe,collapse:fe,coverStart:xe,coverEnd:ke}}function bs(a,b){var x=is;if(b=="left")for(var E=0;E<a.length&&(x=a[E]).left==x.right;E++);else for(var ee=a.length-1;ee>=0&&(x=a[ee]).left==x.right;ee--);return x}function Il(a,b,x,E){var ee=Xl(b.map,x,E),oe=ee.node,fe=ee.start,xe=ee.end,ke=ee.collapse,Xe;if(oe.nodeType==3){for(var Yt=0;Yt<4;Yt++){for(;fe&&Ie(b.line.text.charAt(ee.coverStart+fe));)--fe;for(;ee.coverStart+xe<ee.coverEnd&&Ie(b.line.text.charAt(ee.coverStart+xe));)++xe;if(pe&&me<9&&fe==0&&xe==ee.coverEnd-ee.coverStart?Xe=oe.parentNode.getBoundingClientRect():Xe=bs(be(oe,fe,xe).getClientRects(),E),Xe.left||Xe.right||fe==0)break;xe=fe,fe=fe-1,ke="right"}pe&&me<11&&(Xe=Ls(a.display.measure,Xe))}else{fe>0&&(ke=E="right");var nn;a.options.lineWrapping&&(nn=oe.getClientRects()).length>1?Xe=nn[E=="right"?nn.length-1:0]:Xe=oe.getBoundingClientRect()}if(pe&&me<9&&!fe&&(!Xe||!Xe.left&&!Xe.right)){var In=oe.parentNode.getClientRects()[0];In?Xe={left:In.left,right:In.left+_o(a.display),top:In.top,bottom:In.bottom}:Xe=is}for(var Sn=Xe.top-b.rect.top,tr=Xe.bottom-b.rect.top,vr=(Sn+tr)/2,Ar=b.view.measure.heights,Gr=0;Gr<Ar.length-1&&!(vr<Ar[Gr]);Gr++);var mo=Gr?Ar[Gr-1]:0,Xr=Ar[Gr],Do={left:(ke=="right"?Xe.right:Xe.left)-b.rect.left,right:(ke=="left"?Xe.left:Xe.right)-b.rect.left,top:mo,bottom:Xr};return!Xe.left&&!Xe.right&&(Do.bogus=!0),a.options.singleCursorHeightPerLine||(Do.rtop=Sn,Do.rbottom=tr),Do}function Ls(a,b){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Ut(a))return b;var x=screen.logicalXDPI/screen.deviceXDPI,E=screen.logicalYDPI/screen.deviceYDPI;return{left:b.left*x,right:b.right*x,top:b.top*E,bottom:b.bottom*E}}function as(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 wl(a){a.display.externalMeasure=null,vt(a.display.lineMeasure);for(var b=0;b<a.display.view.length;b++)as(a.display.view[b])}function Hl(a){wl(a),a.display.cachedCharWidth=a.display.cachedTextHeight=a.display.cachedPaddingH=null,a.options.lineWrapping||(a.display.maxLineChanged=!0),a.display.lineNumChars=null}function Wl(){return ge&&Te?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function ls(){return ge&&Te?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Kl(a){var b=0;if(a.widgets)for(var x=0;x<a.widgets.length;++x)a.widgets[x].above&&(b+=zi(a.widgets[x]));return b}function Yl(a,b,x,E,ee){if(!ee){var oe=Kl(b);x.top+=oe,x.bottom+=oe}if(E=="line")return x;E||(E="local");var fe=_r(b);if(E=="local"?fe+=sa(a.display):fe-=a.display.viewOffset,E=="page"||E=="window"){var xe=a.display.lineSpace.getBoundingClientRect();fe+=xe.top+(E=="window"?0:ls());var ke=xe.left+(E=="window"?0:Wl());x.left+=ke,x.right+=ke}return x.top+=fe,x.bottom+=fe,x}function qa(a,b,x){if(x=="div")return b;var E=b.left,ee=b.top;if(x=="page")E-=Wl(),ee-=ls();else if(x=="local"||!x){var oe=a.display.sizer.getBoundingClientRect();E+=oe.left,ee+=oe.top}var fe=a.display.lineSpace.getBoundingClientRect();return{left:E-fe.left,top:ee-fe.top}}function el(a,b,x,E,ee){return E||(E=dn(a.doc,b.line)),Yl(a,E,Gl(a,E,b.ch,ee),x)}function Zi(a,b,x,E,ee,oe){E=E||dn(a.doc,b.line),ee||(ee=Ll(a,E));function fe(tr,vr){var Ar=fl(a,ee,tr,vr?"right":"left",oe);return vr?Ar.left=Ar.right:Ar.right=Ar.left,Yl(a,E,Ar,x)}var xe=Le(E,a.doc.direction),ke=b.ch,Xe=b.sticky;if(ke>=E.text.length?(ke=E.text.length,Xe="before"):ke<=0&&(ke=0,Xe="after"),!xe)return fe(Xe=="before"?ke-1:ke,Xe=="before");function Yt(tr,vr,Ar){var Gr=xe[vr],mo=Gr.level==1;return fe(Ar?tr-1:tr,mo!=Ar)}var nn=ft(xe,ke,Xe),In=at,Sn=Yt(ke,nn,Xe=="before");return In!=null&&(Sn.other=Yt(ke,In,Xe!="before")),Sn}function yi(a,b){var x=0;b=St(a.doc,b),a.options.lineWrapping||(x=_o(a.display)*b.ch);var E=dn(a.doc,b.line),ee=_r(E)+sa(a.display);return{left:x,right:x,top:ee,bottom:ee+E.height}}function ci(a,b,x,E,ee){var oe=Ge(a,b,x);return oe.xRel=ee,E&&(oe.outside=E),oe}function gt(a,b,x){var E=a.doc;if(x+=a.display.viewOffset,x<0)return ci(E.first,0,null,-1,-1);var ee=_t(E,x),oe=E.first+E.size-1;if(ee>oe)return ci(E.first+E.size-1,dn(E,oe).text.length,null,1,1);b<0&&(b=0);for(var fe=dn(E,ee);;){var xe=yo(a,fe,ee,b,x),ke=Gn(fe,xe.ch+(xe.xRel>0||xe.outside>0?1:0));if(!ke)return xe;var Xe=ke.find(1);if(Xe.line==ee)return Xe;fe=dn(E,ee=Xe.line)}}function Zt(a,b,x,E){E-=Kl(b);var ee=b.text.length,oe=Ue(function(fe){return fl(a,x,fe-1).bottom<=E},ee,0);return ee=Ue(function(fe){return fl(a,x,fe).top>E},oe,ee),{begin:oe,end:ee}}function qt(a,b,x,E){x||(x=Ll(a,b));var ee=Yl(a,b,fl(a,x,E),"line").top;return Zt(a,b,x,ee)}function vn(a,b,x,E){return a.bottom<=x?!1:a.top>x?!0:(E?a.left:a.right)>b}function yo(a,b,x,E,ee){ee-=_r(b);var oe=Ll(a,b),fe=Kl(b),xe=0,ke=b.text.length,Xe=!0,Yt=Le(b,a.doc.direction);if(Yt){var nn=(a.options.lineWrapping?fo:Vr)(a,b,x,oe,Yt,E,ee);Xe=nn.level!=1,xe=Xe?nn.from:nn.to-1,ke=Xe?nn.to:nn.from-1}var In=null,Sn=null,tr=Ue(function(ii){var Uo=fl(a,oe,ii);return Uo.top+=fe,Uo.bottom+=fe,vn(Uo,E,ee,!1)?(Uo.top<=ee&&Uo.left<=E&&(In=ii,Sn=Uo),!0):!1},xe,ke),vr,Ar,Gr=!1;if(Sn){var mo=E-Sn.left<Sn.right-E,Xr=mo==Xe;tr=In+(Xr?0:1),Ar=Xr?"after":"before",vr=mo?Sn.left:Sn.right}else{!Xe&&(tr==ke||tr==xe)&&tr++,Ar=tr==0?"after":tr==b.text.length?"before":fl(a,oe,tr-(Xe?1:0)).bottom+fe<=ee==Xe?"after":"before";var Do=Zi(a,Ge(x,tr,Ar),"line",b,oe);vr=Do.left,Gr=ee<Do.top?-1:ee>=Do.bottom?1:0}return tr=bt(b.text,tr,1),ci(x,tr,Ar,Gr,E-vr)}function Vr(a,b,x,E,ee,oe,fe){var xe=Ue(function(nn){var In=ee[nn],Sn=In.level!=1;return vn(Zi(a,Ge(x,Sn?In.to:In.from,Sn?"before":"after"),"line",b,E),oe,fe,!0)},0,ee.length-1),ke=ee[xe];if(xe>0){var Xe=ke.level!=1,Yt=Zi(a,Ge(x,Xe?ke.from:ke.to,Xe?"after":"before"),"line",b,E);vn(Yt,oe,fe,!0)&&Yt.top>fe&&(ke=ee[xe-1])}return ke}function fo(a,b,x,E,ee,oe,fe){var xe=Zt(a,b,E,fe),ke=xe.begin,Xe=xe.end;/\s/.test(b.text.charAt(Xe-1))&&Xe--;for(var Yt=null,nn=null,In=0;In<ee.length;In++){var Sn=ee[In];if(!(Sn.from>=Xe||Sn.to<=ke)){var tr=Sn.level!=1,vr=fl(a,E,tr?Math.min(Xe,Sn.to)-1:Math.max(ke,Sn.from)).right,Ar=vr<oe?oe-vr+1e9:vr-oe;(!Yt||nn>Ar)&&(Yt=Sn,nn=Ar)}}return Yt||(Yt=ee[ee.length-1]),Yt.from<ke&&(Yt={from:ke,to:Yt.to,level:Yt.level}),Yt.to>Xe&&(Yt={from:Yt.from,to:Xe,level:Yt.level}),Yt}var Pr;function Kr(a){if(a.cachedTextHeight!=null)return a.cachedTextHeight;if(Pr==null){Pr=Qe("pre",null,"CodeMirror-line-like");for(var b=0;b<49;++b)Pr.appendChild(document.createTextNode("x")),Pr.appendChild(Qe("br"));Pr.appendChild(document.createTextNode("x"))}it(a.measure,Pr);var x=Pr.offsetHeight/50;return x>3&&(a.cachedTextHeight=x),vt(a.measure),x||1}function _o(a){if(a.cachedCharWidth!=null)return a.cachedCharWidth;var b=Qe("span","xxxxxxxxxx"),x=Qe("pre",[b],"CodeMirror-line-like");it(a.measure,x);var E=b.getBoundingClientRect(),ee=(E.right-E.left)/10;return ee>2&&(a.cachedCharWidth=ee),ee||10}function ho(a){for(var b=a.display,x={},E={},ee=b.gutters.clientLeft,oe=b.gutters.firstChild,fe=0;oe;oe=oe.nextSibling,++fe){var xe=a.display.gutterSpecs[fe].className;x[xe]=oe.offsetLeft+oe.clientLeft+ee,E[xe]=oe.clientWidth}return{fixedPos:oi(b),gutterTotalWidth:b.gutters.offsetWidth,gutterLeft:x,gutterWidth:E,wrapperWidth:b.wrapper.clientWidth}}function oi(a){return a.scroller.getBoundingClientRect().left-a.sizer.getBoundingClientRect().left}function pi(a){var b=Kr(a.display),x=a.options.lineWrapping,E=x&&Math.max(5,a.display.scroller.clientWidth/_o(a.display)-3);return function(ee){if(sr(a.doc,ee))return 0;var oe=0;if(ee.widgets)for(var fe=0;fe<ee.widgets.length;fe++)ee.widgets[fe].height&&(oe+=ee.widgets[fe].height);return x?oe+(Math.ceil(ee.text.length/E)||1)*b:oe+b}}function Qo(a){var b=a.doc,x=pi(a);b.iter(function(E){var ee=x(E);ee!=E.height&&zn(E,ee)})}function gr(a,b,x,E){var ee=a.display;if(!x&&Ct(b).getAttribute("cm-not-content")=="true")return null;var oe,fe,xe=ee.lineSpace.getBoundingClientRect();try{oe=b.clientX-xe.left,fe=b.clientY-xe.top}catch(nn){return null}var ke=gt(a,oe,fe),Xe;if(E&&ke.xRel>0&&(Xe=dn(a.doc,ke.line).text).length==ke.ch){var Yt=Fe(Xe,Xe.length,a.options.tabSize)-Xe.length;ke=Ge(ke.line,Math.max(0,Math.round((oe-xl(a.display).left)/_o(a.display))-Yt))}return ke}function io(a,b){if(b>=a.display.viewTo||(b-=a.display.viewFrom,b<0))return null;for(var x=a.display.view,E=0;E<x.length;E++)if(b-=x[E].size,b<0)return E}function bo(a,b,x,E){b==null&&(b=a.doc.first),x==null&&(x=a.doc.first+a.doc.size),E||(E=0);var ee=a.display;if(E&&x<ee.viewTo&&(ee.updateLineNumbers==null||ee.updateLineNumbers>b)&&(ee.updateLineNumbers=b),a.curOp.viewChanged=!0,b>=ee.viewTo)Mr&&Un(a.doc,b)<ee.viewTo&&zr(a);else if(x<=ee.viewFrom)Mr&&Jn(a.doc,x+E)>ee.viewFrom?zr(a):(ee.viewFrom+=E,ee.viewTo+=E);else if(b<=ee.viewFrom&&x>=ee.viewTo)zr(a);else if(b<=ee.viewFrom){var oe=Go(a,x,x+E,1);oe?(ee.view=ee.view.slice(oe.index),ee.viewFrom=oe.lineN,ee.viewTo+=E):zr(a)}else if(x>=ee.viewTo){var fe=Go(a,b,b,-1);fe?(ee.view=ee.view.slice(0,fe.index),ee.viewTo=fe.lineN):zr(a)}else{var xe=Go(a,b,b,-1),ke=Go(a,x,x+E,1);xe&&ke?(ee.view=ee.view.slice(0,xe.index).concat(wo(a,xe.lineN,ke.lineN)).concat(ee.view.slice(ke.index)),ee.viewTo+=E):zr(a)}var Xe=ee.externalMeasured;Xe&&(x<Xe.lineN?Xe.lineN+=E:b<Xe.lineN+Xe.size&&(ee.externalMeasured=null))}function Ao(a,b,x){a.curOp.viewChanged=!0;var E=a.display,ee=a.display.externalMeasured;if(ee&&b>=ee.lineN&&b<ee.lineN+ee.size&&(E.externalMeasured=null),!(b<E.viewFrom||b>=E.viewTo)){var oe=E.view[io(a,b)];if(oe.node!=null){var fe=oe.changes||(oe.changes=[]);Bt(fe,x)==-1&&fe.push(x)}}}function zr(a){a.display.viewFrom=a.display.viewTo=a.doc.first,a.display.view=[],a.display.viewOffset=0}function Go(a,b,x,E){var ee=io(a,b),oe,fe=a.display.view;if(!Mr||x==a.doc.first+a.doc.size)return{index:ee,lineN:x};for(var xe=a.display.viewFrom,ke=0;ke<ee;ke++)xe+=fe[ke].size;if(xe!=b){if(E>0){if(ee==fe.length-1)return null;oe=xe+fe[ee].size-b,ee++}else oe=xe-b;b+=oe,x+=oe}for(;Un(a.doc,x)!=x;){if(ee==(E<0?0:fe.length-1))return null;x+=E*fe[ee-(E<0?1:0)].size,ee+=E}return{index:ee,lineN:x}}function fi(a,b,x){var E=a.display,ee=E.view;ee.length==0||b>=E.viewTo||x<=E.viewFrom?(E.view=wo(a,b,x),E.viewFrom=b):(E.viewFrom>b?E.view=wo(a,b,E.viewFrom).concat(E.view):E.viewFrom<b&&(E.view=E.view.slice(io(a,b))),E.viewFrom=b,E.viewTo<x?E.view=E.view.concat(wo(a,E.viewTo,x)):E.viewTo>x&&(E.view=E.view.slice(0,io(a,x)))),E.viewTo=x}function ao(a){for(var b=a.display.view,x=0,E=0;E<b.length;E++){var ee=b[E];!ee.hidden&&(!ee.node||ee.changes)&&++x}return x}function Co(a){a.display.input.showSelection(a.display.input.prepareSelection())}function Nr(a,b){b===void 0&&(b=!0);for(var x=a.doc,E={},ee=E.cursors=document.createDocumentFragment(),oe=E.selection=document.createDocumentFragment(),fe=0;fe<x.sel.ranges.length;fe++)if(!(!b&&fe==x.sel.primIndex)){var xe=x.sel.ranges[fe];if(!(xe.from().line>=a.display.viewTo||xe.to().line<a.display.viewFrom)){var ke=xe.empty();(ke||a.options.showCursorWhenSelecting)&&no(a,xe.head,ee),ke||pa(a,xe,oe)}}return E}function no(a,b,x){var E=Zi(a,b,"div",null,null,!a.options.singleCursorHeightPerLine),ee=x.appendChild(Qe("div","\xA0","CodeMirror-cursor"));if(ee.style.left=E.left+"px",ee.style.top=E.top+"px",ee.style.height=Math.max(0,E.bottom-E.top)*a.options.cursorHeight+"px",E.other){var oe=x.appendChild(Qe("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));oe.style.display="",oe.style.left=E.other.left+"px",oe.style.top=E.other.top+"px",oe.style.height=(E.other.bottom-E.other.top)*.85+"px"}}function bi(a,b){return a.top-b.top||a.left-b.left}function pa(a,b,x){var E=a.display,ee=a.doc,oe=document.createDocumentFragment(),fe=xl(a.display),xe=fe.left,ke=Math.max(E.sizerWidth,Sl(a)-E.sizer.offsetLeft)-fe.right,Xe=ee.direction=="ltr";function Yt(Xr,Do,ii,Uo){Do<0&&(Do=0),Do=Math.round(Do),Uo=Math.round(Uo),oe.appendChild(Qe("div",null,"CodeMirror-selected","position: absolute; left: "+Xr+`px;
top: `+Do+"px; width: "+(ii==null?ke-Xr:ii)+`px;
height: `+(Uo-Do)+"px"))}function nn(Xr,Do,ii){var Uo=dn(ee,Xr),Si=Uo.text.length,ca,Xa;function Fa(_a,bl){return el(a,Ge(Xr,_a),"div",Uo,bl)}function Fl(_a,bl,rl){var za=qt(a,Uo,null,_a),$a=bl=="ltr"==(rl=="after")?"left":"right",Ia=rl=="after"?za.begin:za.end-(/\s/.test(Uo.text.charAt(za.end-1))?2:1);return Fa(Ia,$a)[$a]}var yl=Le(Uo,ee.direction);return He(yl,Do||0,ii==null?Si:ii,function(_a,bl,rl,za){var $a=rl=="ltr",Ia=Fa(_a,$a?"left":"right"),Cl=Fa(bl-1,$a?"right":"left"),Xs=Do==null&&_a==0,Ds=ii==null&&bl==Si,ul=za==0,os=!yl||za==yl.length-1;if(Cl.top-Ia.top<=3){var Ya=(Xe?Xs:Ds)&&ul,Iu=(Xe?Ds:Xs)&&os,ys=Ya?xe:($a?Ia:Cl).left,Ts=Iu?ke:($a?Cl:Ia).right;Yt(ys,Ia.top,Ts-ys,Ia.bottom)}else{var ks,ml,Ys,Au;$a?(ks=Xe&&Xs&&ul?xe:Ia.left,ml=Xe?ke:Fl(_a,rl,"before"),Ys=Xe?xe:Fl(bl,rl,"after"),Au=Xe&&Ds&&os?ke:Cl.right):(ks=Xe?Fl(_a,rl,"before"):xe,ml=!Xe&&Xs&&ul?ke:Ia.right,Ys=!Xe&&Ds&&os?xe:Cl.left,Au=Xe?Fl(bl,rl,"after"):ke),Yt(ks,Ia.top,ml-ks,Ia.bottom),Ia.bottom<Cl.top&&Yt(xe,Ia.bottom,null,Cl.top),Yt(Ys,Cl.top,Au-Ys,Cl.bottom)}(!ca||bi(Ia,ca)<0)&&(ca=Ia),bi(Cl,ca)<0&&(ca=Cl),(!Xa||bi(Ia,Xa)<0)&&(Xa=Ia),bi(Cl,Xa)<0&&(Xa=Cl)}),{start:ca,end:Xa}}var In=b.from(),Sn=b.to();if(In.line==Sn.line)nn(In.line,In.ch,Sn.ch);else{var tr=dn(ee,In.line),vr=dn(ee,Sn.line),Ar=Ln(tr)==Ln(vr),Gr=nn(In.line,In.ch,Ar?tr.text.length+1:null).end,mo=nn(Sn.line,Ar?0:null,Sn.ch).start;Ar&&(Gr.top<mo.top-2?(Yt(Gr.right,Gr.top,null,Gr.bottom),Yt(xe,mo.top,mo.left,mo.bottom)):Yt(Gr.right,Gr.top,mo.left-Gr.right,Gr.bottom)),Gr.bottom<mo.top&&Yt(xe,Gr.bottom,null,mo.top)}x.appendChild(oe)}function Ji(a){if(a.state.focused){var b=a.display;clearInterval(b.blinker);var x=!0;b.cursorDiv.style.visibility="",a.options.cursorBlinkRate>0?b.blinker=setInterval(function(){a.hasFocus()||Aa(a),b.cursorDiv.style.visibility=(x=!x)?"":"hidden"},a.options.cursorBlinkRate):a.options.cursorBlinkRate<0&&(b.cursorDiv.style.visibility="hidden")}}function hl(a){a.state.focused||(a.display.input.focus(),Za(a))}function zo(a){a.state.delayingBlurEvent=!0,setTimeout(function(){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1,Aa(a))},100)}function Za(a,b){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1),a.options.readOnly!="nocursor"&&(a.state.focused||(rn(a,"focus",a,b),a.state.focused=!0,ue(a.display.wrapper,"CodeMirror-focused"),!a.curOp&&a.display.selForContextMenu!=a.doc.sel&&(a.display.input.reset(),ve&&setTimeout(function(){return a.display.input.reset(!0)},20)),a.display.input.receivedFocus()),Ji(a))}function Aa(a,b){a.state.delayingBlurEvent||(a.state.focused&&(rn(a,"blur",a,b),a.state.focused=!1,Ke(a.display.wrapper,"CodeMirror-focused")),clearInterval(a.display.blinker),setTimeout(function(){a.state.focused||(a.display.shift=!1)},150))}function cr(a){for(var b=a.display,x=b.lineDiv.offsetTop,E=0;E<b.view.length;E++){var ee=b.view[E],oe=a.options.lineWrapping,fe=void 0,xe=0;if(!ee.hidden){if(pe&&me<8){var ke=ee.node.offsetTop+ee.node.offsetHeight;fe=ke-x,x=ke}else{var Xe=ee.node.getBoundingClientRect();fe=Xe.bottom-Xe.top,!oe&&ee.text.firstChild&&(xe=ee.text.firstChild.getBoundingClientRect().right-Xe.left-1)}var Yt=ee.line.height-fe;if((Yt>.005||Yt<-.005)&&(zn(ee.line,fe),Ci(ee.line),ee.rest))for(var nn=0;nn<ee.rest.length;nn++)Ci(ee.rest[nn]);if(xe>a.display.sizerWidth){var In=Math.ceil(xe/_o(a.display));In>a.display.maxLineLength&&(a.display.maxLineLength=In,a.display.maxLine=ee.line,a.display.maxLineChanged=!0)}}}}function Ci(a){if(a.widgets)for(var b=0;b<a.widgets.length;++b){var x=a.widgets[b],E=x.node.parentNode;E&&(x.height=E.offsetHeight)}}function Di(a,b,x){var E=x&&x.top!=null?Math.max(0,x.top):a.scroller.scrollTop;E=Math.floor(E-sa(a));var ee=x&&x.bottom!=null?x.bottom:E+a.wrapper.clientHeight,oe=_t(b,E),fe=_t(b,ee);if(x&&x.ensure){var xe=x.ensure.from.line,ke=x.ensure.to.line;xe<oe?(oe=xe,fe=_t(b,_r(dn(b,xe))+a.wrapper.clientHeight)):Math.min(ke,b.lastLine())>=fe&&(oe=_t(b,_r(dn(b,ke))-a.wrapper.clientHeight),fe=ke)}return{from:oe,to:Math.max(fe,oe+1)}}function Ei(a,b){if(!Rt(a,"scrollCursorIntoView")){var x=a.display,E=x.sizer.getBoundingClientRect(),ee=null;if(b.top+E.top<0?ee=!0:b.bottom+E.top>(window.innerHeight||document.documentElement.clientHeight)&&(ee=!1),ee!=null&&!tt){var oe=Qe("div","\u200B",null,`position: absolute;
top: `+(b.top-x.viewOffset-sa(a.display))+`px;
height: `+(b.bottom-b.top+Ka(a)+x.barHeight)+`px;
left: `+b.left+"px; width: "+Math.max(2,b.right-b.left)+"px;");a.display.lineSpace.appendChild(oe),oe.scrollIntoView(ee),a.display.lineSpace.removeChild(oe)}}}function wa(a,b,x,E){E==null&&(E=0);var ee;!a.options.lineWrapping&&b==x&&(b=b.ch?Ge(b.line,b.sticky=="before"?b.ch-1:b.ch,"after"):b,x=b.sticky=="before"?Ge(b.line,b.ch+1,"before"):b);for(var oe=0;oe<5;oe++){var fe=!1,xe=Zi(a,b),ke=!x||x==b?xe:Zi(a,x);ee={left:Math.min(xe.left,ke.left),top:Math.min(xe.top,ke.top)-E,right:Math.max(xe.left,ke.left),bottom:Math.max(xe.bottom,ke.bottom)+E};var Xe=Jl(a,ee),Yt=a.doc.scrollTop,nn=a.doc.scrollLeft;if(Xe.scrollTop!=null&&(Es(a,Xe.scrollTop),Math.abs(a.doc.scrollTop-Yt)>1&&(fe=!0)),Xe.scrollLeft!=null&&(ql(a,Xe.scrollLeft),Math.abs(a.doc.scrollLeft-nn)>1&&(fe=!0)),!fe)break}return ee}function Ql(a,b){var x=Jl(a,b);x.scrollTop!=null&&Es(a,x.scrollTop),x.scrollLeft!=null&&ql(a,x.scrollLeft)}function Jl(a,b){var x=a.display,E=Kr(a.display);b.top<0&&(b.top=0);var ee=a.curOp&&a.curOp.scrollTop!=null?a.curOp.scrollTop:x.scroller.scrollTop,oe=kl(a),fe={};b.bottom-b.top>oe&&(b.bottom=b.top+oe);var xe=a.doc.height+cl(x),ke=b.top<E,Xe=b.bottom>xe-E;if(b.top<ee)fe.scrollTop=ke?0:b.top;else if(b.bottom>ee+oe){var Yt=Math.min(b.top,(Xe?xe:b.bottom)-oe);Yt!=ee&&(fe.scrollTop=Yt)}var nn=a.options.fixedGutter?0:x.gutters.offsetWidth,In=a.curOp&&a.curOp.scrollLeft!=null?a.curOp.scrollLeft:x.scroller.scrollLeft-nn,Sn=Sl(a)-x.gutters.offsetWidth,tr=b.right-b.left>Sn;return tr&&(b.right=b.left+Sn),b.left<10?fe.scrollLeft=0:b.left<In?fe.scrollLeft=Math.max(0,b.left+nn-(tr?0:10)):b.right>Sn+In-3&&(fe.scrollLeft=b.right+(tr?0:10)-Sn),fe}function ss(a,b){b!=null&&(Nl(a),a.curOp.scrollTop=(a.curOp.scrollTop==null?a.doc.scrollTop:a.curOp.scrollTop)+b)}function Al(a){Nl(a);var b=a.getCursor();a.curOp.scrollToPos={from:b,to:b,margin:a.options.cursorScrollMargin}}function Rl(a,b,x){(b!=null||x!=null)&&Nl(a),b!=null&&(a.curOp.scrollLeft=b),x!=null&&(a.curOp.scrollTop=x)}function Cs(a,b){Nl(a),a.curOp.scrollToPos=b}function Nl(a){var b=a.curOp.scrollToPos;if(b){a.curOp.scrollToPos=null;var x=yi(a,b.from),E=yi(a,b.to);us(a,x,E,b.margin)}}function us(a,b,x,E){var ee=Jl(a,{left:Math.min(b.left,x.left),top:Math.min(b.top,x.top)-E,right:Math.max(b.right,x.right),bottom:Math.max(b.bottom,x.bottom)+E});Rl(a,ee.scrollLeft,ee.scrollTop)}function Es(a,b){Math.abs(a.doc.scrollTop-b)<2||(y||il(a,{top:b}),Rs(a,b,!0),y&&il(a),ki(a,100))}function Rs(a,b,x){b=Math.max(0,Math.min(a.display.scroller.scrollHeight-a.display.scroller.clientHeight,b)),!(a.display.scroller.scrollTop==b&&!x)&&(a.doc.scrollTop=b,a.display.scrollbars.setScrollTop(b),a.display.scroller.scrollTop!=b&&(a.display.scroller.scrollTop=b))}function ql(a,b,x,E){b=Math.max(0,Math.min(b,a.display.scroller.scrollWidth-a.display.scroller.clientWidth)),!((x?b==a.doc.scrollLeft:Math.abs(a.doc.scrollLeft-b)<2)&&!E)&&(a.doc.scrollLeft=b,st(a),a.display.scroller.scrollLeft!=b&&(a.display.scroller.scrollLeft=b),a.display.scrollbars.setScrollLeft(b))}function cs(a){var b=a.display,x=b.gutters.offsetWidth,E=Math.round(a.doc.height+cl(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?x:0,docHeight:E,scrollHeight:E+Ka(a)+b.barHeight,nativeBarWidth:b.nativeBarWidth,gutterWidth:x}}var es=function(a,b,x){this.cm=x;var E=this.vert=Qe("div",[Qe("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),ee=this.horiz=Qe("div",[Qe("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");E.tabIndex=ee.tabIndex=-1,a(E),a(ee),Nt(E,"scroll",function(){E.clientHeight&&b(E.scrollTop,"vertical")}),Nt(ee,"scroll",function(){ee.clientWidth&&b(ee.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,pe&&me<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};es.prototype.update=function(a){var b=a.scrollWidth>a.clientWidth+1,x=a.scrollHeight>a.clientHeight+1,E=a.nativeBarWidth;if(x){this.vert.style.display="block",this.vert.style.bottom=b?E+"px":"0";var ee=a.viewHeight-(b?E: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=x?E+"px":"0",this.horiz.style.left=a.barLeft+"px";var oe=a.viewWidth-a.barLeft-(x?E:0);this.horiz.firstChild.style.width=Math.max(0,a.scrollWidth-a.clientWidth+oe)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&a.clientHeight>0&&(E==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:x?E:0,bottom:b?E:0}},es.prototype.setScrollLeft=function(a){this.horiz.scrollLeft!=a&&(this.horiz.scrollLeft=a),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},es.prototype.setScrollTop=function(a){this.vert.scrollTop!=a&&(this.vert.scrollTop=a),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},es.prototype.zeroWidthHack=function(){var a=Se&&!Ae?"12px":"18px";this.horiz.style.height=this.vert.style.width=a,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new ye,this.disableVert=new ye},es.prototype.enableZeroWidthBar=function(a,b,x){a.style.pointerEvents="auto";function E(){var ee=a.getBoundingClientRect(),oe=x=="vert"?document.elementFromPoint(ee.right-1,(ee.top+ee.bottom)/2):document.elementFromPoint((ee.right+ee.left)/2,ee.bottom-1);oe!=a?a.style.pointerEvents="none":b.set(1e3,E)}b.set(1e3,E)},es.prototype.clear=function(){var a=this.horiz.parentNode;a.removeChild(this.horiz),a.removeChild(this.vert)};var ds=function(){};ds.prototype.update=function(){return{bottom:0,right:0}},ds.prototype.setScrollLeft=function(){},ds.prototype.setScrollTop=function(){},ds.prototype.clear=function(){};function fs(a,b){b||(b=cs(a));var x=a.display.barWidth,E=a.display.barHeight;hs(a,b);for(var ee=0;ee<4&&x!=a.display.barWidth||E!=a.display.barHeight;ee++)x!=a.display.barWidth&&a.options.lineWrapping&&cr(a),hs(a,cs(a)),x=a.display.barWidth,E=a.display.barHeight}function hs(a,b){var x=a.display,E=x.scrollbars.update(b);x.sizer.style.paddingRight=(x.barWidth=E.right)+"px",x.sizer.style.paddingBottom=(x.barHeight=E.bottom)+"px",x.heightForcer.style.borderBottom=E.bottom+"px solid transparent",E.right&&E.bottom?(x.scrollbarFiller.style.display="block",x.scrollbarFiller.style.height=E.bottom+"px",x.scrollbarFiller.style.width=E.right+"px"):x.scrollbarFiller.style.display="",E.bottom&&a.options.coverGutterNextToScrollbar&&a.options.fixedGutter?(x.gutterFiller.style.display="block",x.gutterFiller.style.height=E.bottom+"px",x.gutterFiller.style.width=b.gutterWidth+"px"):x.gutterFiller.style.display=""}var Qs={native:es,null:ds};function _s(a){a.display.scrollbars&&(a.display.scrollbars.clear(),a.display.scrollbars.addClass&&Ke(a.display.wrapper,a.display.scrollbars.addClass)),a.display.scrollbars=new Qs[a.options.scrollbarStyle](function(b){a.display.wrapper.insertBefore(b,a.display.scrollbarFiller),Nt(b,"mousedown",function(){a.state.focused&&setTimeout(function(){return a.display.input.focus()},0)}),b.setAttribute("cm-not-content","true")},function(b,x){x=="horizontal"?ql(a,b):Es(a,b)},a),a.display.scrollbars.addClass&&ue(a.display.wrapper,a.display.scrollbars.addClass)}var mu=0;function _l(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:++mu},Qa(a.curOp)}function Ml(a){var b=a.curOp;b&&da(b,function(x){for(var E=0;E<x.ops.length;E++)x.ops[E].cm.curOp=null;$s(x)})}function $s(a){for(var b=a.ops,x=0;x<b.length;x++)pu(b[x]);for(var E=0;E<b.length;E++)Js(b[E]);for(var ee=0;ee<b.length;ee++)En(b[ee]);for(var oe=0;oe<b.length;oe++)Or(b[oe]);for(var fe=0;fe<b.length;fe++)Wo(b[fe])}function pu(a){var b=a.cm,x=b.display;Ri(b),a.updateMaxLine&&to(b),a.mustUpdate=a.viewChanged||a.forceUpdate||a.scrollTop!=null||a.scrollToPos&&(a.scrollToPos.from.line<x.viewFrom||a.scrollToPos.to.line>=x.viewTo)||x.maxLineChanged&&b.options.lineWrapping,a.update=a.mustUpdate&&new va(b,a.mustUpdate&&{top:a.scrollTop,ensure:a.scrollToPos},a.forceUpdate)}function Js(a){a.updatedDisplay=a.mustUpdate&&po(a.cm,a.update)}function En(a){var b=a.cm,x=b.display;a.updatedDisplay&&cr(b),a.barMeasure=cs(b),x.maxLineChanged&&!b.options.lineWrapping&&(a.adjustWidthTo=Gl(b,x.maxLine,x.maxLine.text.length).left+3,b.display.sizerWidth=a.adjustWidthTo,a.barMeasure.scrollWidth=Math.max(x.scroller.clientWidth,x.sizer.offsetLeft+a.adjustWidthTo+Ka(b)+b.display.barWidth),a.maxScrollLeft=Math.max(0,x.sizer.offsetLeft+a.adjustWidthTo-Sl(b))),(a.updatedDisplay||a.selectionChanged)&&(a.preparedSelection=x.input.prepareSelection())}function Or(a){var b=a.cm;a.adjustWidthTo!=null&&(b.display.sizer.style.minWidth=a.adjustWidthTo+"px",a.maxScrollLeft<b.doc.scrollLeft&&ql(b,Math.min(b.display.scroller.scrollLeft,a.maxScrollLeft),!0),b.display.maxLineChanged=!1);var x=a.focus&&a.focus==Ne();a.preparedSelection&&b.display.input.showSelection(a.preparedSelection,x),(a.updatedDisplay||a.startHeight!=b.doc.height)&&fs(b,a.barMeasure),a.updatedDisplay&&we(b,a.barMeasure),a.selectionChanged&&Ji(b),b.state.focused&&a.updateInput&&b.display.input.reset(a.typing),x&&hl(a.cm)}function Wo(a){var b=a.cm,x=b.display,E=b.doc;if(a.updatedDisplay&&ga(b,a.update),x.wheelStartX!=null&&(a.scrollTop!=null||a.scrollLeft!=null||a.scrollToPos)&&(x.wheelStartX=x.wheelStartY=null),a.scrollTop!=null&&Rs(b,a.scrollTop,a.forceScroll),a.scrollLeft!=null&&ql(b,a.scrollLeft,!0,!0),a.scrollToPos){var ee=wa(b,St(E,a.scrollToPos.from),St(E,a.scrollToPos.to),a.scrollToPos.margin);Ei(b,ee)}var oe=a.maybeHiddenMarkers,fe=a.maybeUnhiddenMarkers;if(oe)for(var xe=0;xe<oe.length;++xe)oe[xe].lines.length||rn(oe[xe],"hide");if(fe)for(var ke=0;ke<fe.length;++ke)fe[ke].lines.length&&rn(fe[ke],"unhide");x.wrapper.offsetHeight&&(E.scrollTop=b.display.scroller.scrollTop),a.changeObjs&&rn(b,"changes",b,a.changeObjs),a.update&&a.update.finish()}function Lr(a,b){if(a.curOp)return b();_l(a);try{return b()}finally{Ml(a)}}function Xn(a,b){return function(){if(a.curOp)return b.apply(a,arguments);_l(a);try{return b.apply(a,arguments)}finally{Ml(a)}}}function $o(a){return function(){if(this.curOp)return a.apply(this,arguments);_l(this);try{return a.apply(this,arguments)}finally{Ml(this)}}}function Vo(a){return function(){var b=this.cm;if(!b||b.curOp)return a.apply(this,arguments);_l(b);try{return a.apply(this,arguments)}finally{Ml(b)}}}function ki(a,b){a.doc.highlightFrontier<a.display.viewTo&&a.state.highlight.set(b,nt(li,a))}function li(a){var b=a.doc;if(!(b.highlightFrontier>=a.display.viewTo)){var x=+new Date+a.options.workTime,E=nr(a,b.highlightFrontier),ee=[];b.iter(E.line,Math.min(b.first+b.size,a.display.viewTo+500),function(oe){if(E.line>=a.display.viewFrom){var fe=oe.styles,xe=oe.text.length>a.options.maxHighlightLength?Wn(b.mode,E.state):null,ke=Nn(a,oe,E,!0);xe&&(E.state=xe),oe.styles=ke.styles;var Xe=oe.styleClasses,Yt=ke.classes;Yt?oe.styleClasses=Yt:Xe&&(oe.styleClasses=null);for(var nn=!fe||fe.length!=oe.styles.length||Xe!=Yt&&(!Xe||!Yt||Xe.bgClass!=Yt.bgClass||Xe.textClass!=Yt.textClass),In=0;!nn&&In<fe.length;++In)nn=fe[In]!=oe.styles[In];nn&&ee.push(E.line),oe.stateAfter=E.save(),E.nextLine()}else oe.text.length<=a.options.maxHighlightLength&&ir(a,oe.text,E),oe.stateAfter=E.line%5==0?E.save():null,E.nextLine();if(+new Date>x)return ki(a,a.options.workDelay),!0}),b.highlightFrontier=E.line,b.modeFrontier=Math.max(b.modeFrontier,E.line),ee.length&&Lr(a,function(){for(var oe=0;oe<ee.length;oe++)Ao(a,ee[oe],"text")})}}var va=function(a,b,x){var E=a.display;this.viewport=b,this.visible=Di(E,a.doc,b),this.editorIsHidden=!E.wrapper.offsetWidth,this.wrapperHeight=E.wrapper.clientHeight,this.wrapperWidth=E.wrapper.clientWidth,this.oldDisplayWidth=Sl(a),this.force=x,this.dims=ho(a),this.events=[]};va.prototype.signal=function(a,b){Ht(a,b)&&this.events.push(arguments)},va.prototype.finish=function(){for(var a=0;a<this.events.length;a++)rn.apply(null,this.events[a])};function Ri(a){var b=a.display;!b.scrollbarsClipped&&b.scroller.offsetWidth&&(b.nativeBarWidth=b.scroller.offsetWidth-b.scroller.clientWidth,b.heightForcer.style.height=Ka(a)+"px",b.sizer.style.marginBottom=-b.nativeBarWidth+"px",b.sizer.style.borderRightWidth=Ka(a)+"px",b.scrollbarsClipped=!0)}function Bl(a){if(a.hasFocus())return null;var b=Ne();if(!b||!et(a.display.lineDiv,b))return null;var x={activeElt:b};if(window.getSelection){var E=window.getSelection();E.anchorNode&&E.extend&&et(a.display.lineDiv,E.anchorNode)&&(x.anchorNode=E.anchorNode,x.anchorOffset=E.anchorOffset,x.focusNode=E.focusNode,x.focusOffset=E.focusOffset)}return x}function ms(a){if(!(!a||!a.activeElt||a.activeElt==Ne())&&(a.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(a.activeElt.nodeName)&&a.anchorNode&&et(document.body,a.anchorNode)&&et(document.body,a.focusNode))){var b=window.getSelection(),x=document.createRange();x.setEnd(a.anchorNode,a.anchorOffset),x.collapse(!1),b.removeAllRanges(),b.addRange(x),b.extend(a.focusNode,a.focusOffset)}}function po(a,b){var x=a.display,E=a.doc;if(b.editorIsHidden)return zr(a),!1;if(!b.force&&b.visible.from>=x.viewFrom&&b.visible.to<=x.viewTo&&(x.updateLineNumbers==null||x.updateLineNumbers>=x.viewTo)&&x.renderedView==x.view&&ao(a)==0)return!1;wt(a)&&(zr(a),b.dims=ho(a));var ee=E.first+E.size,oe=Math.max(b.visible.from-a.options.viewportMargin,E.first),fe=Math.min(ee,b.visible.to+a.options.viewportMargin);x.viewFrom<oe&&oe-x.viewFrom<20&&(oe=Math.max(E.first,x.viewFrom)),x.viewTo>fe&&x.viewTo-fe<20&&(fe=Math.min(ee,x.viewTo)),Mr&&(oe=Un(a.doc,oe),fe=Jn(a.doc,fe));var xe=oe!=x.viewFrom||fe!=x.viewTo||x.lastWrapHeight!=b.wrapperHeight||x.lastWrapWidth!=b.wrapperWidth;fi(a,oe,fe),x.viewOffset=_r(dn(a.doc,x.viewFrom)),a.display.mover.style.top=x.viewOffset+"px";var ke=ao(a);if(!xe&&ke==0&&!b.force&&x.renderedView==x.view&&(x.updateLineNumbers==null||x.updateLineNumbers>=x.viewTo))return!1;var Xe=Bl(a);return ke>4&&(x.lineDiv.style.display="none"),La(a,x.updateLineNumbers,b.dims),ke>4&&(x.lineDiv.style.display=""),x.renderedView=x.view,ms(Xe),vt(x.cursorDiv),vt(x.selectionDiv),x.gutters.style.height=x.sizer.style.minHeight=0,xe&&(x.lastWrapHeight=b.wrapperHeight,x.lastWrapWidth=b.wrapperWidth,ki(a,400)),x.updateLineNumbers=null,!0}function ga(a,b){for(var x=b.viewport,E=!0;;E=!1){if(!E||!a.options.lineWrapping||b.oldDisplayWidth==Sl(a)){if(x&&x.top!=null&&(x={top:Math.min(a.doc.height+cl(a.display)-kl(a),x.top)}),b.visible=Di(a.display,a.doc,x),b.visible.from>=a.display.viewFrom&&b.visible.to<=a.display.viewTo)break}else E&&(b.visible=Di(a.display,a.doc,x));if(!po(a,b))break;cr(a);var ee=cs(a);Co(a),fs(a,ee),we(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 il(a,b){var x=new va(a,b);if(po(a,x)){cr(a),ga(a,x);var E=cs(a);Co(a),fs(a,E),we(a,E),x.finish()}}function La(a,b,x){var E=a.display,ee=a.options.lineNumbers,oe=E.lineDiv,fe=oe.firstChild;function xe(tr){var vr=tr.nextSibling;return ve&&Se&&a.display.currentWheelTarget==tr?tr.style.display="none":tr.parentNode.removeChild(tr),vr}for(var ke=E.view,Xe=E.viewFrom,Yt=0;Yt<ke.length;Yt++){var nn=ke[Yt];if(!nn.hidden)if(!nn.node||nn.node.parentNode!=oe){var In=Bo(a,nn,Xe,x);oe.insertBefore(In,fe)}else{for(;fe!=nn.node;)fe=xe(fe);var Sn=ee&&b!=null&&b<=Xe&&nn.lineNumber;nn.changes&&(Bt(nn.changes,"gutter")>-1&&(Sn=!1),ol(a,nn,Xe,x)),Sn&&(vt(nn.lineNumber),nn.lineNumber.appendChild(document.createTextNode(Dt(a.options,Xe)))),fe=nn.node.nextSibling}Xe+=nn.size}for(;fe;)fe=xe(fe)}function De(a){var b=a.gutters.offsetWidth;a.sizer.style.marginLeft=b+"px"}function we(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+Ka(a)+"px"}function st(a){var b=a.display,x=b.view;if(!(!b.alignWidgets&&(!b.gutters.firstChild||!a.options.fixedGutter))){for(var E=oi(b)-b.scroller.scrollLeft+a.doc.scrollLeft,ee=b.gutters.offsetWidth,oe=E+"px",fe=0;fe<x.length;fe++)if(!x[fe].hidden){a.options.fixedGutter&&(x[fe].gutter&&(x[fe].gutter.style.left=oe),x[fe].gutterBackground&&(x[fe].gutterBackground.style.left=oe));var xe=x[fe].alignable;if(xe)for(var ke=0;ke<xe.length;ke++)xe[ke].style.left=oe}a.options.fixedGutter&&(b.gutters.style.left=E+ee+"px")}}function wt(a){if(!a.options.lineNumbers)return!1;var b=a.doc,x=Dt(a.options,b.first+b.size-1),E=a.display;if(x.length!=E.lineNumChars){var ee=E.measure.appendChild(Qe("div",[Qe("div",x)],"CodeMirror-linenumber CodeMirror-gutter-elt")),oe=ee.firstChild.offsetWidth,fe=ee.offsetWidth-oe;return E.lineGutter.style.width="",E.lineNumInnerWidth=Math.max(oe,E.lineGutter.offsetWidth-fe)+1,E.lineNumWidth=E.lineNumInnerWidth+fe,E.lineNumChars=E.lineNumInnerWidth?x.length:-1,E.lineGutter.style.width=E.lineNumWidth+"px",De(a.display),!0}return!1}function Vt(a,b){for(var x=[],E=!1,ee=0;ee<a.length;ee++){var oe=a[ee],fe=null;if(typeof oe!="string"&&(fe=oe.style,oe=oe.className),oe=="CodeMirror-linenumbers")if(b)E=!0;else continue;x.push({className:oe,style:fe})}return b&&!E&&x.push({className:"CodeMirror-linenumbers",style:null}),x}function en(a){var b=a.gutters,x=a.gutterSpecs;vt(b),a.lineGutter=null;for(var E=0;E<x.length;++E){var ee=x[E],oe=ee.className,fe=ee.style,xe=b.appendChild(Qe("div",null,"CodeMirror-gutter "+oe));fe&&(xe.style.cssText=fe),oe=="CodeMirror-linenumbers"&&(a.lineGutter=xe,xe.style.width=(a.lineNumWidth||1)+"px")}b.style.display=x.length?"":"none",De(a)}function pn(a){en(a.display),bo(a),st(a)}function cn(a,b,x,E){var ee=this;this.input=x,ee.scrollbarFiller=Qe("div",null,"CodeMirror-scrollbar-filler"),ee.scrollbarFiller.setAttribute("cm-not-content","true"),ee.gutterFiller=Qe("div",null,"CodeMirror-gutter-filler"),ee.gutterFiller.setAttribute("cm-not-content","true"),ee.lineDiv=ut("div",null,"CodeMirror-code"),ee.selectionDiv=Qe("div",null,null,"position: relative; z-index: 1"),ee.cursorDiv=Qe("div",null,"CodeMirror-cursors"),ee.measure=Qe("div",null,"CodeMirror-measure"),ee.lineMeasure=Qe("div",null,"CodeMirror-measure"),ee.lineSpace=ut("div",[ee.measure,ee.lineMeasure,ee.selectionDiv,ee.cursorDiv,ee.lineDiv],null,"position: relative; outline: none");var oe=ut("div",[ee.lineSpace],"CodeMirror-lines");ee.mover=Qe("div",[oe],null,"position: relative"),ee.sizer=Qe("div",[ee.mover],"CodeMirror-sizer"),ee.sizerWidth=null,ee.heightForcer=Qe("div",null,null,"position: absolute; height: "+jt+"px; width: 1px;"),ee.gutters=Qe("div",null,"CodeMirror-gutters"),ee.lineGutter=null,ee.scroller=Qe("div",[ee.sizer,ee.heightForcer,ee.gutters],"CodeMirror-scroll"),ee.scroller.setAttribute("tabIndex","-1"),ee.wrapper=Qe("div",[ee.scrollbarFiller,ee.gutterFiller,ee.scroller],"CodeMirror"),pe&&me<8&&(ee.gutters.style.zIndex=-1,ee.scroller.style.paddingRight=0),!ve&&!(y&&Ce)&&(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=Vt(E.gutters,E.lineNumbers),en(ee),x.init(ee)}var Cn=0,gn=null;pe?gn=-.53:y?gn=15:ge?gn=-.7:_e&&(gn=-1/3);function Kn(a){var b=a.wheelDeltaX,x=a.wheelDeltaY;return b==null&&a.detail&&a.axis==a.HORIZONTAL_AXIS&&(b=a.detail),x==null&&a.detail&&a.axis==a.VERTICAL_AXIS?x=a.detail:x==null&&(x=a.wheelDelta),{x:b,y:x}}function _n(a){var b=Kn(a);return b.x*=gn,b.y*=gn,b}function kn(a,b){var x=Kn(b),E=x.x,ee=x.y,oe=a.display,fe=oe.scroller,xe=fe.scrollWidth>fe.clientWidth,ke=fe.scrollHeight>fe.clientHeight;if(E&&xe||ee&&ke){if(ee&&Se&&ve){e:for(var Xe=b.target,Yt=oe.view;Xe!=fe;Xe=Xe.parentNode)for(var nn=0;nn<Yt.length;nn++)if(Yt[nn].node==Xe){a.display.currentWheelTarget=Xe;break e}}if(E&&!y&&!se&&gn!=null){ee&&ke&&Es(a,Math.max(0,fe.scrollTop+ee*gn)),ql(a,Math.max(0,fe.scrollLeft+E*gn)),(!ee||ee&&ke)&&yt(b),oe.wheelStartX=null;return}if(ee&&gn!=null){var In=ee*gn,Sn=a.doc.scrollTop,tr=Sn+oe.wrapper.clientHeight;In<0?Sn=Math.max(0,Sn+In-50):tr=Math.min(a.doc.height,tr+In+50),il(a,{top:Sn,bottom:tr})}Cn<20&&(oe.wheelStartX==null?(oe.wheelStartX=fe.scrollLeft,oe.wheelStartY=fe.scrollTop,oe.wheelDX=E,oe.wheelDY=ee,setTimeout(function(){if(oe.wheelStartX!=null){var vr=fe.scrollLeft-oe.wheelStartX,Ar=fe.scrollTop-oe.wheelStartY,Gr=Ar&&oe.wheelDY&&Ar/oe.wheelDY||vr&&oe.wheelDX&&vr/oe.wheelDX;oe.wheelStartX=oe.wheelStartY=null,Gr&&(gn=(gn*Cn+Gr)/(Cn+1),++Cn)}},200)):(oe.wheelDX+=E,oe.wheelDY+=ee))}}var Pn=function(a,b){this.ranges=a,this.primIndex=b};Pn.prototype.primary=function(){return this.ranges[this.primIndex]},Pn.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 x=this.ranges[b],E=a.ranges[b];if(!Jt(x.anchor,E.anchor)||!Jt(x.head,E.head))return!1}return!0},Pn.prototype.deepCopy=function(){for(var a=[],b=0;b<this.ranges.length;b++)a[b]=new Dn(Rn(this.ranges[b].anchor),Rn(this.ranges[b].head));return new Pn(a,this.primIndex)},Pn.prototype.somethingSelected=function(){for(var a=0;a<this.ranges.length;a++)if(!this.ranges[a].empty())return!0;return!1},Pn.prototype.contains=function(a,b){b||(b=a);for(var x=0;x<this.ranges.length;x++){var E=this.ranges[x];if(At(b,E.from())>=0&&At(a,E.to())<=0)return x}return-1};var Dn=function(a,b){this.anchor=a,this.head=b};Dn.prototype.from=function(){return pt(this.anchor,this.head)},Dn.prototype.to=function(){return Zn(this.anchor,this.head)},Dn.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function yr(a,b,x){var E=a&&a.options.selectionsMayTouch,ee=b[x];b.sort(function(In,Sn){return At(In.from(),Sn.from())}),x=Bt(b,ee);for(var oe=1;oe<b.length;oe++){var fe=b[oe],xe=b[oe-1],ke=At(xe.to(),fe.from());if(E&&!fe.empty()?ke>0:ke>=0){var Xe=pt(xe.from(),fe.from()),Yt=Zn(xe.to(),fe.to()),nn=xe.empty()?fe.from()==fe.head:xe.from()==xe.head;oe<=x&&--x,b.splice(--oe,2,new Dn(nn?Yt:Xe,nn?Xe:Yt))}}return new Pn(b,x)}function er(a,b){return new Pn([new Dn(a,b||a)],0)}function Er(a){return a.text?Ge(a.from.line+a.text.length-1,rt(a.text).length+(a.text.length==1?a.from.ch:0)):a.to}function Dr(a,b){if(At(a,b.from)<0)return a;if(At(a,b.to)<=0)return Er(b);var x=a.line+b.text.length-(b.to.line-b.from.line)-1,E=a.ch;return a.line==b.to.line&&(E+=Er(b).ch-b.to.ch),Ge(x,E)}function xr(a,b){for(var x=[],E=0;E<a.sel.ranges.length;E++){var ee=a.sel.ranges[E];x.push(new Dn(Dr(ee.anchor,b),Dr(ee.head,b)))}return yr(a.cm,x,a.sel.primIndex)}function Tr(a,b,x){return a.line==b.line?Ge(x.line,a.ch-b.ch+x.ch):Ge(x.line+(a.line-b.line),a.ch)}function Wr(a,b,x){for(var E=[],ee=Ge(a.first,0),oe=ee,fe=0;fe<b.length;fe++){var xe=b[fe],ke=Tr(xe.from,ee,oe),Xe=Tr(Er(xe),ee,oe);if(ee=xe.to,oe=Xe,x=="around"){var Yt=a.sel.ranges[fe],nn=At(Yt.head,Yt.anchor)<0;E[fe]=new Dn(nn?Xe:ke,nn?ke:Xe)}else E[fe]=new Dn(ke,ke)}return new Pn(E,a.sel.primIndex)}function ro(a){a.doc.mode=Vn(a.options,a.doc.modeOption),Qr(a)}function Qr(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,ki(a,100),a.state.modeGen++,a.curOp&&bo(a)}function si(a,b){return b.from.ch==0&&b.to.ch==0&&rt(b.text)==""&&(!a.cm||a.cm.options.wholeLineUpdateBefore)}function Oo(a,b,x,E){function ee(mo){return x?x[mo]:null}function oe(mo,Xr,Do){Mo(mo,Xr,Do,E),Ti(mo,"change",mo,b)}function fe(mo,Xr){for(var Do=[],ii=mo;ii<Xr;++ii)Do.push(new Fo(Xe[ii],ee(ii),E));return Do}var xe=b.from,ke=b.to,Xe=b.text,Yt=dn(a,xe.line),nn=dn(a,ke.line),In=rt(Xe),Sn=ee(Xe.length-1),tr=ke.line-xe.line;if(b.full)a.insert(0,fe(0,Xe.length)),a.remove(Xe.length,a.size-Xe.length);else if(si(a,b)){var vr=fe(0,Xe.length-1);oe(nn,nn.text,Sn),tr&&a.remove(xe.line,tr),vr.length&&a.insert(xe.line,vr)}else if(Yt==nn)if(Xe.length==1)oe(Yt,Yt.text.slice(0,xe.ch)+In+Yt.text.slice(ke.ch),Sn);else{var Ar=fe(1,Xe.length-1);Ar.push(new Fo(In+Yt.text.slice(ke.ch),Sn,E)),oe(Yt,Yt.text.slice(0,xe.ch)+Xe[0],ee(0)),a.insert(xe.line+1,Ar)}else if(Xe.length==1)oe(Yt,Yt.text.slice(0,xe.ch)+Xe[0]+nn.text.slice(ke.ch),ee(0)),a.remove(xe.line+1,tr);else{oe(Yt,Yt.text.slice(0,xe.ch)+Xe[0],ee(0)),oe(nn,In+nn.text.slice(ke.ch),Sn);var Gr=fe(1,Xe.length-1);tr>1&&a.remove(xe.line+1,tr-1),a.insert(xe.line+1,Gr)}Ti(a,"change",a,b)}function Eo(a,b,x){function E(ee,oe,fe){if(ee.linked)for(var xe=0;xe<ee.linked.length;++xe){var ke=ee.linked[xe];if(ke.doc!=oe){var Xe=fe&&ke.sharedHist;x&&!Xe||(b(ke.doc,Xe),E(ke.doc,ee,Xe))}}}E(a,null,!0)}function Ko(a,b){if(b.cm)throw new Error("This document is already in use.");a.doc=b,b.cm=a,Qo(a),ro(a),oo(a),a.options.lineWrapping||to(a),a.options.mode=b.modeOption,bo(a)}function oo(a){(a.doc.direction=="rtl"?ue:Ke)(a.display.lineDiv,"CodeMirror-rtl")}function lo(a){Lr(a,function(){oo(a),bo(a)})}function $r(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 Ir(a,b){var x={from:Rn(b.from),to:Er(b),text:xn(a,b.from,b.to)};return ha(a,x,b.from.line,b.to.line+1),Eo(a,function(E){return ha(E,x,b.from.line,b.to.line+1)},!0),x}function qr(a){for(;a.length;){var b=rt(a);if(b.ranges)a.pop();else break}}function uo(a,b){if(b)return qr(a.done),rt(a.done);if(a.done.length&&!rt(a.done).ranges)return rt(a.done);if(a.done.length>1&&!a.done[a.done.length-2].ranges)return a.done.pop(),rt(a.done)}function Io(a,b,x,E){var ee=a.history;ee.undone.length=0;var oe=+new Date,fe,xe;if((ee.lastOp==E||ee.lastOrigin==b.origin&&b.origin&&(b.origin.charAt(0)=="+"&&ee.lastModTime>oe-(a.cm?a.cm.options.historyEventDelay:500)||b.origin.charAt(0)=="*"))&&(fe=uo(ee,ee.lastOp==E)))xe=rt(fe.changes),At(b.from,b.to)==0&&At(b.from,xe.to)==0?xe.to=Er(b):fe.changes.push(Ir(a,b));else{var ke=rt(ee.done);for((!ke||!ke.ranges)&&hi(a.sel,ee.done),fe={changes:[Ir(a,b)],generation:ee.generation},ee.done.push(fe);ee.done.length>ee.undoDepth;)ee.done.shift(),ee.done[0].ranges||ee.done.shift()}ee.done.push(x),ee.generation=++ee.maxGeneration,ee.lastModTime=ee.lastSelTime=oe,ee.lastOp=ee.lastSelOp=E,ee.lastOrigin=ee.lastSelOrigin=b.origin,xe||rn(a,"historyAdded")}function Hr(a,b,x,E){var ee=b.charAt(0);return ee=="*"||ee=="+"&&x.ranges.length==E.ranges.length&&x.somethingSelected()==E.somethingSelected()&&new Date-a.history.lastSelTime<=(a.cm?a.cm.options.historyEventDelay:500)}function di(a,b,x,E){var ee=a.history,oe=E&&E.origin;x==ee.lastSelOp||oe&&ee.lastSelOrigin==oe&&(ee.lastModTime==ee.lastSelTime&&ee.lastOrigin==oe||Hr(a,oe,rt(ee.done),b))?ee.done[ee.done.length-1]=b:hi(b,ee.done),ee.lastSelTime=+new Date,ee.lastSelOrigin=oe,ee.lastSelOp=x,E&&E.clearRedo!==!1&&qr(ee.undone)}function hi(a,b){var x=rt(b);x&&x.ranges&&x.equals(a)||b.push(a)}function ha(a,b,x,E){var ee=b["spans_"+a.id],oe=0;a.iter(Math.max(a.first,x),Math.min(a.first+a.size,E),function(fe){fe.markedSpans&&((ee||(ee=b["spans_"+a.id]={}))[oe]=fe.markedSpans),++oe})}function na(a){if(!a)return null;for(var b,x=0;x<a.length;++x)a[x].marker.explicitlyCleared?b||(b=a.slice(0,x)):b&&b.push(a[x]);return b?b.length?b:null:a}function Ki(a,b){var x=b["spans_"+a.id];if(!x)return null;for(var E=[],ee=0;ee<b.text.length;++ee)E.push(na(x[ee]));return E}function ra(a,b){var x=Ki(a,b),E=so(a,b);if(!x)return E;if(!E)return x;for(var ee=0;ee<x.length;++ee){var oe=x[ee],fe=E[ee];if(oe&&fe)e:for(var xe=0;xe<fe.length;++xe){for(var ke=fe[xe],Xe=0;Xe<oe.length;++Xe)if(oe[Xe].marker==ke.marker)continue e;oe.push(ke)}else fe&&(x[ee]=fe)}return x}function ya(a,b,x){for(var E=[],ee=0;ee<a.length;++ee){var oe=a[ee];if(oe.ranges){E.push(x?Pn.prototype.deepCopy.call(oe):oe);continue}var fe=oe.changes,xe=[];E.push({changes:xe});for(var ke=0;ke<fe.length;++ke){var Xe=fe[ke],Yt=void 0;if(xe.push({from:Xe.from,to:Xe.to,text:Xe.text}),b)for(var nn in Xe)(Yt=nn.match(/^spans_(\d+)$/))&&Bt(b,Number(Yt[1]))>-1&&(rt(xe)[nn]=Xe[nn],delete Xe[nn])}}return E}function mi(a,b,x,E){if(E){var ee=a.anchor;if(x){var oe=At(b,ee)<0;oe!=At(x,ee)<0?(ee=b,b=x):oe!=At(b,x)<0&&(b=x)}return new Dn(ee,b)}else return new Dn(x||b,b)}function vi(a,b,x,E,ee){ee==null&&(ee=a.cm&&(a.cm.display.shift||a.extend)),Jr(a,new Pn([mi(a.sel.primary(),b,x,ee)],0),E)}function ba(a,b,x){for(var E=[],ee=a.cm&&(a.cm.display.shift||a.extend),oe=0;oe<a.sel.ranges.length;oe++)E[oe]=mi(a.sel.ranges[oe],b[oe],null,ee);var fe=yr(a.cm,E,a.sel.primIndex);Jr(a,fe,x)}function Ba(a,b,x,E){var ee=a.sel.ranges.slice(0);ee[b]=x,Jr(a,yr(a.cm,ee,a.sel.primIndex),E)}function So(a,b,x,E){Jr(a,er(b,x),E)}function ei(a,b,x){var E={ranges:b.ranges,update:function(ee){this.ranges=[];for(var oe=0;oe<ee.length;oe++)this.ranges[oe]=new Dn(St(a,ee[oe].anchor),St(a,ee[oe].head))},origin:x&&x.origin};return rn(a,"beforeSelectionChange",a,E),a.cm&&rn(a.cm,"beforeSelectionChange",a.cm,E),E.ranges!=b.ranges?yr(a.cm,E.ranges,E.ranges.length-1):b}function vo(a,b,x){var E=a.history.done,ee=rt(E);ee&&ee.ranges?(E[E.length-1]=b,xi(a,b,x)):Jr(a,b,x)}function Jr(a,b,x){xi(a,b,x),di(a,a.sel,a.cm?a.cm.curOp.id:NaN,x)}function xi(a,b,x){(Ht(a,"beforeSelectionChange")||a.cm&&Ht(a.cm,"beforeSelectionChange"))&&(b=ei(a,b,x));var E=x&&x.bias||(At(b.primary().head,a.sel.primary().head)<0?-1:1);Ii(a,Hi(a,b,E,!0)),!(x&&x.scroll===!1)&&a.cm&&Al(a.cm)}function Ii(a,b){b.equals(a.sel)||(a.sel=b,a.cm&&(a.cm.curOp.updateInput=1,a.cm.curOp.selectionChanged=!0,ln(a.cm)),Ti(a,"cursorActivity",a))}function qi(a){Ii(a,Hi(a,a.sel,null,!1))}function Hi(a,b,x,E){for(var ee,oe=0;oe<b.ranges.length;oe++){var fe=b.ranges[oe],xe=b.ranges.length==a.sel.ranges.length&&a.sel.ranges[oe],ke=Pa(a,fe.anchor,xe&&xe.anchor,x,E),Xe=Pa(a,fe.head,xe&&xe.head,x,E);(ee||ke!=fe.anchor||Xe!=fe.head)&&(ee||(ee=b.ranges.slice(0,oe)),ee[oe]=new Dn(ke,Xe))}return ee?yr(a.cm,ee,b.primIndex):b}function Ca(a,b,x,E,ee){var oe=dn(a,b.line);if(oe.markedSpans)for(var fe=0;fe<oe.markedSpans.length;++fe){var xe=oe.markedSpans[fe],ke=xe.marker,Xe="selectLeft"in ke?!ke.selectLeft:ke.inclusiveLeft,Yt="selectRight"in ke?!ke.selectRight:ke.inclusiveRight;if((xe.from==null||(Xe?xe.from<=b.ch:xe.from<b.ch))&&(xe.to==null||(Yt?xe.to>=b.ch:xe.to>b.ch))){if(ee&&(rn(ke,"beforeCursorEnter"),ke.explicitlyCleared))if(oe.markedSpans){--fe;continue}else break;if(!ke.atomic)continue;if(x){var nn=ke.find(E<0?1:-1),In=void 0;if((E<0?Yt:Xe)&&(nn=Po(a,nn,-E,nn&&nn.line==b.line?oe:null)),nn&&nn.line==b.line&&(In=At(nn,x))&&(E<0?In<0:In>0))return Ca(a,nn,b,E,ee)}var Sn=ke.find(E<0?-1:1);return(E<0?Xe:Yt)&&(Sn=Po(a,Sn,E,Sn.line==b.line?oe:null)),Sn?Ca(a,Sn,b,E,ee):null}}return b}function Pa(a,b,x,E,ee){var oe=E||1,fe=Ca(a,b,x,oe,ee)||!ee&&Ca(a,b,x,oe,!0)||Ca(a,b,x,-oe,ee)||!ee&&Ca(a,b,x,-oe,!0);return fe||(a.cantEdit=!0,Ge(a.first,0))}function Po(a,b,x,E){return x<0&&b.ch==0?b.line>a.first?St(a,Ge(b.line-1)):null:x>0&&b.ch==(E||dn(a,b.line)).text.length?b.line<a.first+a.size-1?Ge(b.line+1,0):null:new Ge(b.line,b.ch+x)}function Zo(a){a.setSelection(Ge(a.firstLine(),0),Ge(a.lastLine()),Ee)}function Ni(a,b,x){var E={canceled:!1,from:b.from,to:b.to,text:b.text,origin:b.origin,cancel:function(){return E.canceled=!0}};return x&&(E.update=function(ee,oe,fe,xe){ee&&(E.from=St(a,ee)),oe&&(E.to=St(a,oe)),fe&&(E.text=fe),xe!==void 0&&(E.origin=xe)}),rn(a,"beforeChange",a,E),a.cm&&rn(a.cm,"beforeChange",a.cm,E),E.canceled?(a.cm&&(a.cm.curOp.updateInput=2),null):{from:E.from,to:E.to,text:E.text,origin:E.origin}}function ji(a,b,x){if(a.cm){if(!a.cm.curOp)return Xn(a.cm,ji)(a,b,x);if(a.cm.state.suppressEdits)return}if(!((Ht(a,"beforeChange")||a.cm&&Ht(a.cm,"beforeChange"))&&(b=Ni(a,b,!0),!b))){var E=hr&&!x&&ti(a,b.from,b.to);if(E)for(var ee=E.length-1;ee>=0;--ee)_i(a,{from:E[ee].from,to:E[ee].to,text:ee?[""]:b.text,origin:b.origin});else _i(a,b)}}function _i(a,b){if(!(b.text.length==1&&b.text[0]==""&&At(b.from,b.to)==0)){var x=xr(a,b);Io(a,b,x,a.cm?a.cm.curOp.id:NaN),al(a,b,x,so(a,b));var E=[];Eo(a,function(ee,oe){!oe&&Bt(E,ee.history)==-1&&(Oa(ee.history,b),E.push(ee.history)),al(ee,b,null,so(ee,b))})}}function Na(a,b,x){var E=a.cm&&a.cm.state.suppressEdits;if(!(E&&!x)){for(var ee=a.history,oe,fe=a.sel,xe=b=="undo"?ee.done:ee.undone,ke=b=="undo"?ee.undone:ee.done,Xe=0;Xe<xe.length&&(oe=xe[Xe],!(x?oe.ranges&&!oe.equals(a.sel):!oe.ranges));Xe++);if(Xe!=xe.length){for(ee.lastOrigin=ee.lastSelOrigin=null;;)if(oe=xe.pop(),oe.ranges){if(hi(oe,ke),x&&!oe.equals(a.sel)){Jr(a,oe,{clearRedo:!1});return}fe=oe}else if(E){xe.push(oe);return}else break;var Yt=[];hi(fe,ke),ke.push({changes:Yt,generation:ee.generation}),ee.generation=oe.generation||++ee.maxGeneration;for(var nn=Ht(a,"beforeChange")||a.cm&&Ht(a.cm,"beforeChange"),In=function(vr){var Ar=oe.changes[vr];if(Ar.origin=b,nn&&!Ni(a,Ar,!1))return xe.length=0,{};Yt.push(Ir(a,Ar));var Gr=vr?xr(a,Ar):rt(xe);al(a,Ar,Gr,ra(a,Ar)),!vr&&a.cm&&a.cm.scrollIntoView({from:Ar.from,to:Er(Ar)});var mo=[];Eo(a,function(Xr,Do){!Do&&Bt(mo,Xr.history)==-1&&(Oa(Xr.history,Ar),mo.push(Xr.history)),al(Xr,Ar,null,ra(Xr,Ar))})},Sn=oe.changes.length-1;Sn>=0;--Sn){var tr=In(Sn);if(tr)return tr.v}}}}function Ea(a,b){if(b!=0&&(a.first+=b,a.sel=new Pn(on(a.sel.ranges,function(ee){return new Dn(Ge(ee.anchor.line+b,ee.anchor.ch),Ge(ee.head.line+b,ee.head.ch))}),a.sel.primIndex),a.cm)){bo(a.cm,a.first,a.first-b,b);for(var x=a.cm.display,E=x.viewFrom;E<x.viewTo;E++)Ao(a.cm,E,"gutter")}}function al(a,b,x,E){if(a.cm&&!a.cm.curOp)return Xn(a.cm,al)(a,b,x,E);if(b.to.line<a.first){Ea(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);Ea(a,ee),b={from:Ge(a.first,0),to:Ge(b.to.line+ee,b.to.ch),text:[rt(b.text)],origin:b.origin}}var oe=a.lastLine();b.to.line>oe&&(b={from:b.from,to:Ge(oe,dn(a,oe).text.length),text:[b.text[0]],origin:b.origin}),b.removed=xn(a,b.from,b.to),x||(x=xr(a,b)),a.cm?oa(a.cm,b,E):Oo(a,b,E),xi(a,x,Ee),a.cantEdit&&Pa(a,Ge(a.firstLine(),0))&&(a.cantEdit=!1)}}function oa(a,b,x){var E=a.doc,ee=a.display,oe=b.from,fe=b.to,xe=!1,ke=oe.line;a.options.lineWrapping||(ke=xt(Ln(dn(E,oe.line))),E.iter(ke,fe.line+1,function(Sn){if(Sn==ee.maxLine)return xe=!0,!0})),E.sel.contains(b.from,b.to)>-1&&ln(a),Oo(E,b,x,pi(a)),a.options.lineWrapping||(E.iter(ke,oe.line+b.text.length,function(Sn){var tr=Yr(Sn);tr>ee.maxLineLength&&(ee.maxLine=Sn,ee.maxLineLength=tr,ee.maxLineChanged=!0,xe=!1)}),xe&&(a.curOp.updateMaxLine=!0)),jr(E,oe.line),ki(a,400);var Xe=b.text.length-(fe.line-oe.line)-1;b.full?bo(a):oe.line==fe.line&&b.text.length==1&&!si(a.doc,b)?Ao(a,oe.line,"text"):bo(a,oe.line,fe.line+1,Xe);var Yt=Ht(a,"changes"),nn=Ht(a,"change");if(nn||Yt){var In={from:oe,to:fe,text:b.text,removed:b.removed,origin:b.origin};nn&&Ti(a,"change",a,In),Yt&&(a.curOp.changeObjs||(a.curOp.changeObjs=[])).push(In)}a.display.selForContextMenu=null}function Fi(a,b,x,E,ee){var oe;E||(E=x),At(E,x)<0&&(oe=[E,x],x=oe[0],E=oe[1]),typeof b=="string"&&(b=a.splitLines(b)),ji(a,{from:x,to:E,text:b,origin:ee})}function Wi(a,b,x,E){x<a.line?a.line+=E:b<a.line&&(a.line=b,a.ch=0)}function Vi(a,b,x,E){for(var ee=0;ee<a.length;++ee){var oe=a[ee],fe=!0;if(oe.ranges){oe.copied||(oe=a[ee]=oe.deepCopy(),oe.copied=!0);for(var xe=0;xe<oe.ranges.length;xe++)Wi(oe.ranges[xe].anchor,b,x,E),Wi(oe.ranges[xe].head,b,x,E);continue}for(var ke=0;ke<oe.changes.length;++ke){var Xe=oe.changes[ke];if(x<Xe.from.line)Xe.from=Ge(Xe.from.line+E,Xe.from.ch),Xe.to=Ge(Xe.to.line+E,Xe.to.ch);else if(b<=Xe.to.line){fe=!1;break}}fe||(a.splice(0,ee+1),ee=0)}}function Oa(a,b){var x=b.from.line,E=b.to.line,ee=b.text.length-(E-x)-1;Vi(a.done,x,E,ee),Vi(a.undone,x,E,ee)}function ma(a,b,x,E){var ee=b,oe=b;return typeof b=="number"?oe=dn(a,Et(a,b)):ee=xt(b),ee==null?null:(E(oe,ee)&&a.cm&&Ao(a.cm,ee,x),oe)}function Pi(a){this.lines=a,this.parent=null;for(var b=0,x=0;x<a.length;++x)a[x].parent=this,b+=a[x].height;this.height=b}Pi.prototype={chunkSize:function(){return this.lines.length},removeInner:function(a,b){for(var x=a,E=a+b;x<E;++x){var ee=this.lines[x];this.height-=ee.height,Yo(ee),Ti(ee,"delete")}this.lines.splice(a,b)},collapse:function(a){a.push.apply(a,this.lines)},insertInner:function(a,b,x){this.height+=x,this.lines=this.lines.slice(0,a).concat(b).concat(this.lines.slice(a));for(var E=0;E<b.length;++E)b[E].parent=this},iterN:function(a,b,x){for(var E=a+b;a<E;++a)if(x(this.lines[a]))return!0}};function ia(a){this.children=a;for(var b=0,x=0,E=0;E<a.length;++E){var ee=a[E];b+=ee.chunkSize(),x+=ee.height,ee.parent=this}this.size=b,this.height=x,this.parent=null}ia.prototype={chunkSize:function(){return this.size},removeInner:function(a,b){this.size-=b;for(var x=0;x<this.children.length;++x){var E=this.children[x],ee=E.chunkSize();if(a<ee){var oe=Math.min(b,ee-a),fe=E.height;if(E.removeInner(a,oe),this.height-=fe-E.height,ee==oe&&(this.children.splice(x--,1),E.parent=null),(b-=oe)==0)break;a=0}else a-=ee}if(this.size-b<25&&(this.children.length>1||!(this.children[0]instanceof Pi))){var xe=[];this.collapse(xe),this.children=[new Pi(xe)],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,x){this.size+=b.length,this.height+=x;for(var E=0;E<this.children.length;++E){var ee=this.children[E],oe=ee.chunkSize();if(a<=oe){if(ee.insertInner(a,b,x),ee.lines&&ee.lines.length>50){for(var fe=ee.lines.length%25+25,xe=fe;xe<ee.lines.length;){var ke=new Pi(ee.lines.slice(xe,xe+=25));ee.height-=ke.height,this.children.splice(++E,0,ke),ke.parent=this}ee.lines=ee.lines.slice(0,fe),this.maybeSpill()}break}a-=oe}},maybeSpill:function(){if(!(this.children.length<=10)){var a=this;do{var b=a.children.splice(a.children.length-5,5),x=new ia(b);if(a.parent){a.size-=x.size,a.height-=x.height;var ee=Bt(a.parent.children,a);a.parent.children.splice(ee+1,0,x)}else{var E=new ia(a.children);E.parent=a,a.children=[E,x],a=E}x.parent=a.parent}while(a.children.length>10);a.parent.maybeSpill()}},iterN:function(a,b,x){for(var E=0;E<this.children.length;++E){var ee=this.children[E],oe=ee.chunkSize();if(a<oe){var fe=Math.min(b,oe-a);if(ee.iterN(a,fe,x))return!0;if((b-=fe)==0)break;a=0}else a-=oe}}};var Li=function(a,b,x){if(x)for(var E in x)x.hasOwnProperty(E)&&(this[E]=x[E]);this.doc=a,this.node=b};Li.prototype.clear=function(){var a=this.doc.cm,b=this.line.widgets,x=this.line,E=xt(x);if(!(E==null||!b)){for(var ee=0;ee<b.length;++ee)b[ee]==this&&b.splice(ee--,1);b.length||(x.widgets=null);var oe=zi(this);zn(x,Math.max(0,x.height-oe)),a&&(Lr(a,function(){ja(a,x,-oe),Ao(a,E,"widget")}),Ti(a,"lineWidgetCleared",a,this,E))}},Li.prototype.changed=function(){var a=this,b=this.height,x=this.doc.cm,E=this.line;this.height=null;var ee=zi(this)-b;ee&&(sr(this.doc,E)||zn(E,E.height+ee),x&&Lr(x,function(){x.curOp.forceUpdate=!0,ja(x,E,ee),Ti(x,"lineWidgetChanged",x,a,xt(E))}))},ze(Li);function ja(a,b,x){_r(b)<(a.curOp&&a.curOp.scrollTop||a.doc.scrollTop)&&ss(a,x)}function Da(a,b,x,E){var ee=new Li(a,x,E),oe=a.cm;return oe&&ee.noHScroll&&(oe.display.alignWidgets=!0),ma(a,b,"widget",function(fe){var xe=fe.widgets||(fe.widgets=[]);if(ee.insertAt==null?xe.push(ee):xe.splice(Math.min(xe.length-1,Math.max(0,ee.insertAt)),0,ee),ee.line=fe,oe&&!sr(a,fe)){var ke=_r(fe)<a.scrollTop;zn(fe,fe.height+zi(ee)),ke&&ss(oe,ee.height),oe.curOp.forceUpdate=!0}return!0}),oe&&Ti(oe,"lineWidgetAdded",oe,ee,typeof b=="number"?b:xt(b)),ee}var tl=0,ll=function(a,b){this.lines=[],this.type=b,this.doc=a,this.id=++tl};ll.prototype.clear=function(){if(!this.explicitlyCleared){var a=this.doc.cm,b=a&&!a.curOp;if(b&&_l(a),Ht(this,"clear")){var x=this.find();x&&Ti(this,"clear",x.from,x.to)}for(var E=null,ee=null,oe=0;oe<this.lines.length;++oe){var fe=this.lines[oe],xe=or(fe.markedSpans,this);a&&!this.collapsed?Ao(a,xt(fe),"text"):a&&(xe.to!=null&&(ee=xt(fe)),xe.from!=null&&(E=xt(fe))),fe.markedSpans=Ur(fe.markedSpans,xe),xe.from==null&&this.collapsed&&!sr(this.doc,fe)&&a&&zn(fe,Kr(a.display))}if(a&&this.collapsed&&!a.options.lineWrapping)for(var ke=0;ke<this.lines.length;++ke){var Xe=Ln(this.lines[ke]),Yt=Yr(Xe);Yt>a.display.maxLineLength&&(a.display.maxLine=Xe,a.display.maxLineLength=Yt,a.display.maxLineChanged=!0)}E!=null&&a&&this.collapsed&&bo(a,E,ee+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,a&&qi(a.doc)),a&&Ti(a,"markerCleared",a,this,E,ee),b&&Ml(a),this.parent&&this.parent.clear()}},ll.prototype.find=function(a,b){a==null&&this.type=="bookmark"&&(a=1);for(var x,E,ee=0;ee<this.lines.length;++ee){var oe=this.lines[ee],fe=or(oe.markedSpans,this);if(fe.from!=null&&(x=Ge(b?oe:xt(oe),fe.from),a==-1))return x;if(fe.to!=null&&(E=Ge(b?oe:xt(oe),fe.to),a==1))return E}return x&&{from:x,to:E}},ll.prototype.changed=function(){var a=this,b=this.find(-1,!0),x=this,E=this.doc.cm;!b||!E||Lr(E,function(){var ee=b.line,oe=xt(b.line),fe=Ol(E,oe);if(fe&&(as(fe),E.curOp.selectionChanged=E.curOp.forceUpdate=!0),E.curOp.updateMaxLine=!0,!sr(x.doc,ee)&&x.height!=null){var xe=x.height;x.height=null;var ke=zi(x)-xe;ke&&zn(ee,ee.height+ke)}Ti(E,"markerChanged",E,a)})},ll.prototype.attachLine=function(a){if(!this.lines.length&&this.doc.cm){var b=this.doc.cm.curOp;(!b.maybeHiddenMarkers||Bt(b.maybeHiddenMarkers,this)==-1)&&(b.maybeUnhiddenMarkers||(b.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(a)},ll.prototype.detachLine=function(a){if(this.lines.splice(Bt(this.lines,a),1),!this.lines.length&&this.doc.cm){var b=this.doc.cm.curOp;(b.maybeHiddenMarkers||(b.maybeHiddenMarkers=[])).push(this)}},ze(ll);function $l(a,b,x,E,ee){if(E&&E.shared)return Ps(a,b,x,E,ee);if(a.cm&&!a.cm.curOp)return Xn(a.cm,$l)(a,b,x,E,ee);var oe=new ll(a,ee),fe=At(b,x);if(E&&Mt(E,oe,!1),fe>0||fe==0&&oe.clearWhenEmpty!==!1)return oe;if(oe.replacedWith&&(oe.collapsed=!0,oe.widgetNode=ut("span",[oe.replacedWith],"CodeMirror-widget"),E.handleMouseEvents||oe.widgetNode.setAttribute("cm-ignore-events","true"),E.insertLeft&&(oe.widgetNode.insertLeft=!0)),oe.collapsed){if(Yn(a,b.line,b,x,oe)||b.line!=x.line&&Yn(a,x.line,b,x,oe))throw new Error("Inserting collapsed marker partially overlapping an existing one");kr()}oe.addToHistory&&Io(a,{from:b,to:x,origin:"markText"},a.sel,NaN);var xe=b.line,ke=a.cm,Xe;if(a.iter(xe,x.line+1,function(nn){ke&&oe.collapsed&&!ke.options.lineWrapping&&Ln(nn)==ke.display.maxLine&&(Xe=!0),oe.collapsed&&xe!=b.line&&zn(nn,0),Rr(nn,new Fr(oe,xe==b.line?b.ch:null,xe==x.line?x.ch:null)),++xe}),oe.collapsed&&a.iter(b.line,x.line+1,function(nn){sr(a,nn)&&zn(nn,0)}),oe.clearOnEnter&&Nt(oe,"beforeCursorEnter",function(){return oe.clear()}),oe.readOnly&&(eo(),(a.history.done.length||a.history.undone.length)&&a.clearHistory()),oe.collapsed&&(oe.id=++tl,oe.atomic=!0),ke){if(Xe&&(ke.curOp.updateMaxLine=!0),oe.collapsed)bo(ke,b.line,x.line+1);else if(oe.className||oe.startStyle||oe.endStyle||oe.css||oe.attributes||oe.title)for(var Yt=b.line;Yt<=x.line;Yt++)Ao(ke,Yt,"text");oe.atomic&&qi(ke.doc),Ti(ke,"markerAdded",ke,oe)}return oe}var Ui=function(a,b){this.markers=a,this.primary=b;for(var x=0;x<a.length;++x)a[x].parent=this};Ui.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var a=0;a<this.markers.length;++a)this.markers[a].clear();Ti(this,"clear")}},Ui.prototype.find=function(a,b){return this.primary.find(a,b)},ze(Ui);function Ps(a,b,x,E,ee){E=Mt(E),E.shared=!1;var oe=[$l(a,b,x,E,ee)],fe=oe[0],xe=E.widgetNode;return Eo(a,function(ke){xe&&(E.widgetNode=xe.cloneNode(!0)),oe.push($l(ke,St(ke,b),St(ke,x),E,ee));for(var Xe=0;Xe<ke.linked.length;++Xe)if(ke.linked[Xe].isParent)return;fe=rt(oe)}),new Ui(oe,fe)}function nl(a){return a.findMarks(Ge(a.first,0),a.clipPos(Ge(a.lastLine())),function(b){return b.parent})}function Dl(a,b){for(var x=0;x<b.length;x++){var E=b[x],ee=E.find(),oe=a.clipPos(ee.from),fe=a.clipPos(ee.to);if(At(oe,fe)){var xe=$l(a,oe,fe,E.primary,E.primary.type);E.markers.push(xe),xe.parent=E}}}function pl(a){for(var b=function(E){var ee=a[E],oe=[ee.primary.doc];Eo(ee.primary.doc,function(ke){return oe.push(ke)});for(var fe=0;fe<ee.markers.length;fe++){var xe=ee.markers[fe];Bt(oe,xe.doc)==-1&&(xe.parent=null,ee.markers.splice(fe--,1))}},x=0;x<a.length;x++)b(x)}var sl=0,Gi=function(a,b,x,E,ee){if(!(this instanceof Gi))return new Gi(a,b,x,E,ee);x==null&&(x=0),ia.call(this,[new Pi([new Fo("",null)])]),this.first=x,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=x;var oe=Ge(x,0);this.sel=er(oe),this.history=new $r(null),this.id=++sl,this.modeOption=b,this.lineSep=E,this.direction=ee=="rtl"?"rtl":"ltr",this.extend=!1,typeof a=="string"&&(a=this.splitLines(a)),Oo(this,{from:oe,to:oe,text:a}),Jr(this,er(oe),Ee)};Gi.prototype=re(ia.prototype,{constructor:Gi,iter:function(a,b,x){x?this.iterN(a-this.first,b-a,x):this.iterN(this.first,this.first+this.size,a)},insert:function(a,b){for(var x=0,E=0;E<b.length;++E)x+=b[E].height;this.insertInner(a-this.first,b,x)},remove:function(a,b){this.removeInner(a-this.first,b)},getValue:function(a){var b=jn(this,this.first,this.first+this.size);return a===!1?b:b.join(a||this.lineSeparator())},setValue:Vo(function(a){var b=Ge(this.first,0),x=this.first+this.size-1;ji(this,{from:b,to:Ge(x,dn(this,x).text.length),text:this.splitLines(a),origin:"setValue",full:!0},!0),this.cm&&Rl(this.cm,0,0),Jr(this,er(b),Ee)}),replaceRange:function(a,b,x,E){b=St(this,b),x=x?St(this,x):b,Fi(this,a,b,x,E)},getRange:function(a,b,x){var E=xn(this,St(this,a),St(this,b));return x===!1?E:E.join(x||this.lineSeparator())},getLine:function(a){var b=this.getLineHandle(a);return b&&b.text},getLineHandle:function(a){if(Je(this,a))return dn(this,a)},getLineNumber:function(a){return xt(a)},getLineHandleVisualStart:function(a){return typeof a=="number"&&(a=dn(this,a)),Ln(a)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(a){return St(this,a)},getCursor:function(a){var b=this.sel.primary(),x;return a==null||a=="head"?x=b.head:a=="anchor"?x=b.anchor:a=="end"||a=="to"||a===!1?x=b.to():x=b.from(),x},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Vo(function(a,b,x){So(this,St(this,typeof a=="number"?Ge(a,b||0):a),null,x)}),setSelection:Vo(function(a,b,x){So(this,St(this,a),St(this,b||a),x)}),extendSelection:Vo(function(a,b,x){vi(this,St(this,a),b&&St(this,b),x)}),extendSelections:Vo(function(a,b){ba(this,fn(this,a),b)}),extendSelectionsBy:Vo(function(a,b){var x=on(this.sel.ranges,a);ba(this,fn(this,x),b)}),setSelections:Vo(function(a,b,x){if(a.length){for(var E=[],ee=0;ee<a.length;ee++)E[ee]=new Dn(St(this,a[ee].anchor),St(this,a[ee].head));b==null&&(b=Math.min(a.length-1,this.sel.primIndex)),Jr(this,yr(this.cm,E,b),x)}}),addSelection:Vo(function(a,b,x){var E=this.sel.ranges.slice(0);E.push(new Dn(St(this,a),St(this,b||a))),Jr(this,yr(this.cm,E,E.length-1),x)}),getSelection:function(a){for(var b=this.sel.ranges,x,E=0;E<b.length;E++){var ee=xn(this,b[E].from(),b[E].to());x=x?x.concat(ee):ee}return a===!1?x:x.join(a||this.lineSeparator())},getSelections:function(a){for(var b=[],x=this.sel.ranges,E=0;E<x.length;E++){var ee=xn(this,x[E].from(),x[E].to());a!==!1&&(ee=ee.join(a||this.lineSeparator())),b[E]=ee}return b},replaceSelection:function(a,b,x){for(var E=[],ee=0;ee<this.sel.ranges.length;ee++)E[ee]=a;this.replaceSelections(E,b,x||"+input")},replaceSelections:Vo(function(a,b,x){for(var E=[],ee=this.sel,oe=0;oe<ee.ranges.length;oe++){var fe=ee.ranges[oe];E[oe]={from:fe.from(),to:fe.to(),text:this.splitLines(a[oe]),origin:x}}for(var xe=b&&b!="end"&&Wr(this,E,b),ke=E.length-1;ke>=0;ke--)ji(this,E[ke]);xe?vo(this,xe):this.cm&&Al(this.cm)}),undo:Vo(function(){Na(this,"undo")}),redo:Vo(function(){Na(this,"redo")}),undoSelection:Vo(function(){Na(this,"undo",!0)}),redoSelection:Vo(function(){Na(this,"redo",!0)}),setExtending:function(a){this.extend=a},getExtending:function(){return this.extend},historySize:function(){for(var a=this.history,b=0,x=0,E=0;E<a.done.length;E++)a.done[E].ranges||++b;for(var ee=0;ee<a.undone.length;ee++)a.undone[ee].ranges||++x;return{undo:b,redo:x}},clearHistory:function(){var a=this;this.history=new $r(this.history.maxGeneration),Eo(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:ya(this.history.done),undone:ya(this.history.undone)}},setHistory:function(a){var b=this.history=new $r(this.history.maxGeneration);b.done=ya(a.done.slice(0),null,!0),b.undone=ya(a.undone.slice(0),null,!0)},setGutterMarker:Vo(function(a,b,x){return ma(this,a,"gutter",function(E){var ee=E.gutterMarkers||(E.gutterMarkers={});return ee[b]=x,!x&&ne(ee)&&(E.gutterMarkers=null),!0})}),clearGutter:Vo(function(a){var b=this;this.iter(function(x){x.gutterMarkers&&x.gutterMarkers[a]&&ma(b,x,"gutter",function(){return x.gutterMarkers[a]=null,ne(x.gutterMarkers)&&(x.gutterMarkers=null),!0})})}),lineInfo:function(a){var b;if(typeof a=="number"){if(!Je(this,a)||(b=a,a=dn(this,a),!a))return null}else if(b=xt(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:Vo(function(a,b,x){return ma(this,a,b=="gutter"?"gutter":"class",function(E){var ee=b=="text"?"textClass":b=="background"?"bgClass":b=="gutter"?"gutterClass":"wrapClass";if(!E[ee])E[ee]=x;else{if(Re(x).test(E[ee]))return!1;E[ee]+=" "+x}return!0})}),removeLineClass:Vo(function(a,b,x){return ma(this,a,b=="gutter"?"gutter":"class",function(E){var ee=b=="text"?"textClass":b=="background"?"bgClass":b=="gutter"?"gutterClass":"wrapClass",oe=E[ee];if(oe)if(x==null)E[ee]=null;else{var fe=oe.match(Re(x));if(!fe)return!1;var xe=fe.index+fe[0].length;E[ee]=oe.slice(0,fe.index)+(!fe.index||xe==oe.length?"":" ")+oe.slice(xe)||null}else return!1;return!0})}),addLineWidget:Vo(function(a,b,x){return Da(this,a,b,x)}),removeLineWidget:function(a){a.clear()},markText:function(a,b,x){return $l(this,St(this,a),St(this,b),x,x&&x.type||"range")},setBookmark:function(a,b){var x={replacedWith:b&&(b.nodeType==null?b.widget:b),insertLeft:b&&b.insertLeft,clearWhenEmpty:!1,shared:b&&b.shared,handleMouseEvents:b&&b.handleMouseEvents};return a=St(this,a),$l(this,a,a,x,"bookmark")},findMarksAt:function(a){a=St(this,a);var b=[],x=dn(this,a.line).markedSpans;if(x)for(var E=0;E<x.length;++E){var ee=x[E];(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,x){a=St(this,a),b=St(this,b);var E=[],ee=a.line;return this.iter(a.line,b.line+1,function(oe){var fe=oe.markedSpans;if(fe)for(var xe=0;xe<fe.length;xe++){var ke=fe[xe];!(ke.to!=null&&ee==a.line&&a.ch>=ke.to||ke.from==null&&ee!=a.line||ke.from!=null&&ee==b.line&&ke.from>=b.ch)&&(!x||x(ke.marker))&&E.push(ke.marker.parent||ke.marker)}++ee}),E},getAllMarks:function(){var a=[];return this.iter(function(b){var x=b.markedSpans;if(x)for(var E=0;E<x.length;++E)x[E].from!=null&&a.push(x[E].marker)}),a},posFromIndex:function(a){var b,x=this.first,E=this.lineSeparator().length;return this.iter(function(ee){var oe=ee.text.length+E;if(oe>a)return b=a,!0;a-=oe,++x}),St(this,Ge(x,b))},indexFromPos:function(a){a=St(this,a);var b=a.ch;if(a.line<this.first||a.ch<0)return 0;var x=this.lineSeparator().length;return this.iter(this.first,a.line,function(E){b+=E.text.length+x}),b},copy:function(a){var b=new Gi(jn(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,x=this.first+this.size;a.from!=null&&a.from>b&&(b=a.from),a.to!=null&&a.to<x&&(x=a.to);var E=new Gi(jn(this,b,x),a.mode||this.modeOption,b,this.lineSep,this.direction);return a.sharedHist&&(E.history=this.history),(this.linked||(this.linked=[])).push({doc:E,sharedHist:a.sharedHist}),E.linked=[{doc:this,isParent:!0,sharedHist:a.sharedHist}],Dl(E,nl(this)),E},unlinkDoc:function(a){if(a instanceof Sa&&(a=a.doc),this.linked)for(var b=0;b<this.linked.length;++b){var x=this.linked[b];if(x.doc==a){this.linked.splice(b,1),a.unlinkDoc(this),pl(nl(this));break}}if(a.history==this.history){var E=[a.id];Eo(a,function(ee){return E.push(ee.id)},!0),a.history=new $r(null),a.history.done=ya(this.history.done,E),a.history.undone=ya(this.history.undone,E)}},iterLinkedDocs:function(a){Eo(this,a)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(a){return this.lineSep?a.split(this.lineSep):hn(a)},lineSeparator:function(){return this.lineSep||`
`},setDirection:Vo(function(a){a!="rtl"&&(a="ltr"),a!=this.direction&&(this.direction=a,this.iter(function(b){return b.order=null}),this.cm&&lo(this.cm))})}),Gi.prototype.eachLine=Gi.prototype.iter;var vl=0;function ts(a){var b=this;if(Zs(b),!(Rt(b,a)||Qi(b.display,a))){yt(a),pe&&(vl=+new Date);var x=gr(b,a,!0),E=a.dataTransfer.files;if(!(!x||b.isReadOnly()))if(E&&E.length&&window.FileReader&&window.File)for(var ee=E.length,oe=Array(ee),fe=0,xe=function(){++fe==ee&&Xn(b,function(){x=St(b.doc,x);var Sn={from:x,to:x,text:b.doc.splitLines(oe.filter(function(tr){return tr!=null}).join(b.doc.lineSeparator())),origin:"paste"};ji(b.doc,Sn),vo(b.doc,er(St(b.doc,x),St(b.doc,Er(Sn))))})()},ke=function(Sn,tr){if(b.options.allowDropFileTypes&&Bt(b.options.allowDropFileTypes,Sn.type)==-1){xe();return}var vr=new FileReader;vr.onerror=function(){return xe()},vr.onload=function(){var Ar=vr.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Ar)){xe();return}oe[tr]=Ar,xe()},vr.readAsText(Sn)},Xe=0;Xe<E.length;Xe++)ke(E[Xe],Xe);else{if(b.state.draggingText&&b.doc.sel.contains(x)>-1){b.state.draggingText(a),setTimeout(function(){return b.display.input.focus()},20);return}try{var Yt=a.dataTransfer.getData("Text");if(Yt){var nn;if(b.state.draggingText&&!b.state.draggingText.copy&&(nn=b.listSelections()),xi(b.doc,er(x,x)),nn)for(var In=0;In<nn.length;++In)Fi(b.doc,"",nn[In].anchor,nn[In].head,"drag");b.replaceSelection(Yt,"around","paste"),b.display.input.focus()}}catch(Sn){}}}}function Zl(a,b){if(pe&&(!a.state.draggingText||+new Date-vl<100)){Ve(b);return}if(!(Rt(a,b)||Qi(a.display,b))&&(b.dataTransfer.setData("Text",a.getSelection()),b.dataTransfer.effectAllowed="copyMove",b.dataTransfer.setDragImage&&!_e)){var x=Qe("img",null,null,"position: fixed; left: 0; top: 0;");x.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",se&&(x.width=x.height=1,a.display.wrapper.appendChild(x),x._top=x.offsetTop),b.dataTransfer.setDragImage(x,0,0),se&&x.parentNode.removeChild(x)}}function jl(a,b){var x=gr(a,b);if(x){var E=document.createDocumentFragment();no(a,x,E),a.display.dragCursor||(a.display.dragCursor=Qe("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),a.display.lineSpace.insertBefore(a.display.dragCursor,a.display.cursorDiv)),it(a.display.dragCursor,E)}}function Zs(a){a.display.dragCursor&&(a.display.lineSpace.removeChild(a.display.dragCursor),a.display.dragCursor=null)}function js(a){if(document.getElementsByClassName){for(var b=document.getElementsByClassName("CodeMirror"),x=[],E=0;E<b.length;E++){var ee=b[E].CodeMirror;ee&&x.push(ee)}x.length&&x[0].operation(function(){for(var oe=0;oe<x.length;oe++)a(x[oe])})}}var zs=!1;function Hs(){zs||(qs(),zs=!0)}function qs(){var a;Nt(window,"resize",function(){a==null&&(a=setTimeout(function(){a=null,js(ui)},100))}),Nt(window,"blur",function(){return js(Aa)})}function ui(a){var b=a.display;b.cachedCharWidth=b.cachedTextHeight=b.cachedPaddingH=null,b.scrollbarsClipped=!1,a.setSize()}for(var gi={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"},ua=0;ua<10;ua++)gi[ua+48]=gi[ua+96]=String(ua);for(var xa=65;xa<=90;xa++)gi[xa]=String.fromCharCode(xa);for(var Ra=1;Ra<=12;Ra++)gi[Ra+111]=gi[Ra+63235]="F"+Ra;var Ma={};Ma.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"},Ma.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"},Ma.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"},Ma.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"]},Ma.default=Se?Ma.macDefault:Ma.pcDefault;function Tl(a){var b=a.split(/-(?!$)/);a=b[b.length-1];for(var x,E,ee,oe,fe=0;fe<b.length-1;fe++){var xe=b[fe];if(/^(cmd|meta|m)$/i.test(xe))oe=!0;else if(/^a(lt)?$/i.test(xe))x=!0;else if(/^(c|ctrl|control)$/i.test(xe))E=!0;else if(/^s(hift)?$/i.test(xe))ee=!0;else throw new Error("Unrecognized modifier name: "+xe)}return x&&(a="Alt-"+a),E&&(a="Ctrl-"+a),oe&&(a="Cmd-"+a),ee&&(a="Shift-"+a),a}function Va(a){var b={};for(var x in a)if(a.hasOwnProperty(x)){var E=a[x];if(/^(name|fallthrough|(de|at)tach)$/.test(x))continue;if(E=="..."){delete a[x];continue}for(var ee=on(x.split(" "),Tl),oe=0;oe<ee.length;oe++){var fe=void 0,xe=void 0;oe==ee.length-1?(xe=ee.join(" "),fe=E):(xe=ee.slice(0,oe+1).join(" "),fe="...");var ke=b[xe];if(!ke)b[xe]=fe;else if(ke!=fe)throw new Error("Inconsistent bindings for "+xe)}delete a[x]}for(var Xe in b)a[Xe]=b[Xe];return a}function xs(a,b,x,E){b=Ws(b);var ee=b.call?b.call(a,E):b[a];if(ee===!1)return"nothing";if(ee==="...")return"multi";if(ee!=null&&x(ee))return"handled";if(b.fallthrough){if(Object.prototype.toString.call(b.fallthrough)!="[object Array]")return xs(a,b.fallthrough,x,E);for(var oe=0;oe<b.fallthrough.length;oe++){var fe=xs(a,b.fallthrough[oe],x,E);if(fe)return fe}}}function eu(a){var b=typeof a=="string"?a:gi[a.keyCode];return b=="Ctrl"||b=="Alt"||b=="Shift"||b=="Mod"}function Os(a,b,x){var E=a;return b.altKey&&E!="Alt"&&(a="Alt-"+a),(Be?b.metaKey:b.ctrlKey)&&E!="Ctrl"&&(a="Ctrl-"+a),(Be?b.ctrlKey:b.metaKey)&&E!="Mod"&&(a="Cmd-"+a),!x&&b.shiftKey&&E!="Shift"&&(a="Shift-"+a),a}function ps(a,b){if(se&&a.keyCode==34&&a.char)return!1;var x=gi[a.keyCode];return x==null||a.altGraphKey?!1:(a.keyCode==3&&a.code&&(x=a.code),Os(x,a,b))}function Ws(a){return typeof a=="string"?Ma[a]:a}function vs(a,b){for(var x=a.doc.sel.ranges,E=[],ee=0;ee<x.length;ee++){for(var oe=b(x[ee]);E.length&&At(oe.from,rt(E).to)<=0;){var fe=E.pop();if(At(fe.from,oe.from)<0){oe.from=fe.from;break}}E.push(oe)}Lr(a,function(){for(var xe=E.length-1;xe>=0;xe--)Fi(a.doc,"",E[xe].from,E[xe].to,"+delete");Al(a)})}function tu(a,b,x){var E=bt(a.text,b+x,x);return E<0||E>a.text.length?null:E}function Ks(a,b,x){var E=tu(a,b.ch,x);return E==null?null:new Ge(b.line,E,x<0?"after":"before")}function nu(a,b,x,E,ee){if(a){b.doc.direction=="rtl"&&(ee=-ee);var oe=Le(x,b.doc.direction);if(oe){var fe=ee<0?rt(oe):oe[0],xe=ee<0==(fe.level==1),ke=xe?"after":"before",Xe;if(fe.level>0||b.doc.direction=="rtl"){var Yt=Ll(b,x);Xe=ee<0?x.text.length-1:0;var nn=fl(b,Yt,Xe).top;Xe=Ue(function(In){return fl(b,Yt,In).top==nn},ee<0==(fe.level==1)?fe.from:fe.to-1,Xe),ke=="before"&&(Xe=tu(x,Xe,1))}else Xe=ee<0?fe.to:fe.from;return new Ge(E,Xe,ke)}}return new Ge(E,ee<0?x.text.length:0,ee<0?"before":"after")}function vu(a,b,x,E){var ee=Le(b,a.doc.direction);if(!ee)return Ks(b,x,E);x.ch>=b.text.length?(x.ch=b.text.length,x.sticky="before"):x.ch<=0&&(x.ch=0,x.sticky="after");var oe=ft(ee,x.ch,x.sticky),fe=ee[oe];if(a.doc.direction=="ltr"&&fe.level%2==0&&(E>0?fe.to>x.ch:fe.from<x.ch))return Ks(b,x,E);var xe=function(Gr,mo){return tu(b,Gr instanceof Ge?Gr.ch:Gr,mo)},ke,Xe=function(Gr){return a.options.lineWrapping?(ke=ke||Ll(a,b),qt(a,b,ke,Gr)):{begin:0,end:b.text.length}},Yt=Xe(x.sticky=="before"?xe(x,-1):x.ch);if(a.doc.direction=="rtl"||fe.level==1){var nn=fe.level==1==E<0,In=xe(x,nn?1:-1);if(In!=null&&(nn?In<=fe.to&&In<=Yt.end:In>=fe.from&&In>=Yt.begin)){var Sn=nn?"before":"after";return new Ge(x.line,In,Sn)}}var tr=function(Gr,mo,Xr){for(var Do=function(ca,Xa){return Xa?new Ge(x.line,xe(ca,1),"before"):new Ge(x.line,ca,"after")};Gr>=0&&Gr<ee.length;Gr+=mo){var ii=ee[Gr],Uo=mo>0==(ii.level!=1),Si=Uo?Xr.begin:xe(Xr.end,-1);if(ii.from<=Si&&Si<ii.to||(Si=Uo?ii.from:xe(ii.to,-1),Xr.begin<=Si&&Si<Xr.end))return Do(Si,Uo)}},vr=tr(oe+E,E,Yt);if(vr)return vr;var Ar=E>0?Yt.end:xe(Yt.begin,-1);return Ar!=null&&!(E>0&&Ar==b.text.length)&&(vr=tr(E>0?0:ee.length-1,E,Xe(Ar)),vr)?vr:null}var ns={selectAll:Zo,singleSelection:function(a){return a.setSelection(a.getCursor("anchor"),a.getCursor("head"),Ee)},killLine:function(a){return vs(a,function(b){if(b.empty()){var x=dn(a.doc,b.head.line).text.length;return b.head.ch==x&&b.head.line<a.lastLine()?{from:b.head,to:Ge(b.head.line+1,0)}:{from:b.head,to:Ge(b.head.line,x)}}else return{from:b.from(),to:b.to()}})},deleteLine:function(a){return vs(a,function(b){return{from:Ge(b.from().line,0),to:St(a.doc,Ge(b.to().line+1,0))}})},delLineLeft:function(a){return vs(a,function(b){return{from:Ge(b.from().line,0),to:b.from()}})},delWrappedLineLeft:function(a){return vs(a,function(b){var x=a.charCoords(b.head,"div").top+5,E=a.coordsChar({left:0,top:x},"div");return{from:E,to:b.from()}})},delWrappedLineRight:function(a){return vs(a,function(b){var x=a.charCoords(b.head,"div").top+5,E=a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:x},"div");return{from:b.from(),to:E}})},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(Ge(a.firstLine(),0))},goDocEnd:function(a){return a.extendSelection(Ge(a.lastLine()))},goLineStart:function(a){return a.extendSelectionsBy(function(b){return ru(a,b.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(a){return a.extendSelectionsBy(function(b){return ou(a,b.head)},{origin:"+move",bias:1})},goLineEnd:function(a){return a.extendSelectionsBy(function(b){return xu(a,b.head.line)},{origin:"+move",bias:-1})},goLineRight:function(a){return a.extendSelectionsBy(function(b){var x=a.cursorCoords(b.head,"div").top+5;return a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:x},"div")},qe)},goLineLeft:function(a){return a.extendSelectionsBy(function(b){var x=a.cursorCoords(b.head,"div").top+5;return a.coordsChar({left:0,top:x},"div")},qe)},goLineLeftSmart:function(a){return a.extendSelectionsBy(function(b){var x=a.cursorCoords(b.head,"div").top+5,E=a.coordsChar({left:0,top:x},"div");return E.ch<a.getLine(E.line).search(/\S/)?ou(a,b.head):E},qe)},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=[],x=a.listSelections(),E=a.options.tabSize,ee=0;ee<x.length;ee++){var oe=x[ee].from(),fe=Fe(a.getLine(oe.line),oe.ch,E);b.push(lt(E-fe%E))}a.replaceSelections(b)},defaultTab:function(a){a.somethingSelected()?a.indentSelection("add"):a.execCommand("insertTab")},transposeChars:function(a){return Lr(a,function(){for(var b=a.listSelections(),x=[],E=0;E<b.length;E++)if(b[E].empty()){var ee=b[E].head,oe=dn(a.doc,ee.line).text;if(oe){if(ee.ch==oe.length&&(ee=new Ge(ee.line,ee.ch-1)),ee.ch>0)ee=new Ge(ee.line,ee.ch+1),a.replaceRange(oe.charAt(ee.ch-1)+oe.charAt(ee.ch-2),Ge(ee.line,ee.ch-2),ee,"+transpose");else if(ee.line>a.doc.first){var fe=dn(a.doc,ee.line-1).text;fe&&(ee=new Ge(ee.line,1),a.replaceRange(oe.charAt(0)+a.doc.lineSeparator()+fe.charAt(fe.length-1),Ge(ee.line-1,fe.length-1),ee,"+transpose"))}}x.push(new Dn(ee,ee))}a.setSelections(x)})},newlineAndIndent:function(a){return Lr(a,function(){for(var b=a.listSelections(),x=b.length-1;x>=0;x--)a.replaceRange(a.doc.lineSeparator(),b[x].anchor,b[x].head,"+input");b=a.listSelections();for(var E=0;E<b.length;E++)a.indentLine(b[E].from().line,null,!0);Al(a)})},openLine:function(a){return a.replaceSelection(`
`,"start")},toggleOverwrite:function(a){return a.toggleOverwrite()}};function ru(a,b){var x=dn(a.doc,b),E=Ln(x);return E!=x&&(b=xt(E)),nu(!0,a,E,b,1)}function xu(a,b){var x=dn(a.doc,b),E=mr(x);return E!=x&&(b=xt(E)),nu(!0,a,x,b,-1)}function ou(a,b){var x=ru(a,b.line),E=dn(a.doc,x.line),ee=Le(E,a.doc.direction);if(!ee||ee[0].level==0){var oe=Math.max(x.ch,E.text.search(/\S/)),fe=b.line==x.line&&b.ch<=oe&&b.ch;return Ge(x.line,fe?0:oe,x.sticky)}return x}function Is(a,b,x){if(typeof b=="string"&&(b=ns[b],!b))return!1;a.display.input.ensurePolled();var E=a.display.shift,ee=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),x&&(a.display.shift=!1),ee=b(a)!=Lt}finally{a.display.shift=E,a.state.suppressEdits=!1}return ee}function Su(a,b,x){for(var E=0;E<a.state.keyMaps.length;E++){var ee=xs(b,a.state.keyMaps[E],x,a);if(ee)return ee}return a.options.extraKeys&&xs(b,a.options.extraKeys,x,a)||xs(b,a.options.keyMap,x,a)}var wu=new ye;function As(a,b,x,E){var ee=a.state.keySeq;if(ee){if(eu(b))return"handled";if(/\'$/.test(b)?a.state.keySeq=null:wu.set(50,function(){a.state.keySeq==ee&&(a.state.keySeq=null,a.display.input.reset())}),iu(a,ee+" "+b,x,E))return!0}return iu(a,b,x,E)}function iu(a,b,x,E){var ee=Su(a,b,E);return ee=="multi"&&(a.state.keySeq=b),ee=="handled"&&Ti(a,"keyHandled",a,b,x),(ee=="handled"||ee=="multi")&&(yt(x),Ji(a)),!!ee}function Ns(a,b){var x=ps(b,!0);return x?b.shiftKey&&!a.state.keySeq?As(a,"Shift-"+x,b,function(E){return Is(a,E,!0)})||As(a,x,b,function(E){if(typeof E=="string"?/^go[A-Z]/.test(E):E.motion)return Is(a,E)}):As(a,x,b,function(E){return Is(a,E)}):!1}function au(a,b,x){return As(a,"'"+x+"'",b,function(E){return Is(a,E,!0)})}var Ms=null;function lu(a){var b=this;if(!(a.target&&a.target!=b.display.input.getField())&&(b.curOp.focus=Ne(),!Rt(b,a))){pe&&me<11&&a.keyCode==27&&(a.returnValue=!1);var x=a.keyCode;b.display.shift=x==16||a.shiftKey;var E=Ns(b,a);se&&(Ms=E?x:null,!E&&x==88&&!Ft&&(Se?a.metaKey:a.ctrlKey)&&b.replaceSelection("",null,"cut")),y&&!Se&&!E&&x==46&&a.shiftKey&&!a.ctrlKey&&document.execCommand&&document.execCommand("cut"),x==18&&!/\bCodeMirror-crosshair\b/.test(b.display.lineDiv.className)&&gu(b)}}function gu(a){var b=a.display.lineDiv;ue(b,"CodeMirror-crosshair");function x(E){(E.keyCode==18||!E.altKey)&&(Ke(b,"CodeMirror-crosshair"),un(document,"keyup",x),un(document,"mouseover",x))}Nt(document,"keyup",x),Nt(document,"mouseover",x)}function su(a){a.keyCode==16&&(this.doc.sel.shift=!1),Rt(this,a)}function uu(a){var b=this;if(!(a.target&&a.target!=b.display.input.getField())&&!(Qi(b.display,a)||Rt(b,a)||a.ctrlKey&&!a.altKey||Se&&a.metaKey)){var x=a.keyCode,E=a.charCode;if(se&&x==Ms){Ms=null,yt(a);return}if(!(se&&(!a.which||a.which<10)&&Ns(b,a))){var ee=String.fromCharCode(E==null?x:E);ee!="\b"&&(au(b,a,ee)||b.display.input.onKeyPress(a))}}}var Bu=400,Vs=function(a,b,x){this.time=a,this.pos=b,this.button=x};Vs.prototype.compare=function(a,b,x){return this.time+Bu>a&&At(b,this.pos)==0&&x==this.button};var gs,Ss;function cu(a,b){var x=+new Date;return Ss&&Ss.compare(x,a,b)?(gs=Ss=null,"triple"):gs&&gs.compare(x,a,b)?(Ss=new Vs(x,a,b),gs=null,"double"):(gs=new Vs(x,a,b),Ss=null,"single")}function du(a){var b=this,x=b.display;if(!(Rt(b,a)||x.activeTouch&&x.input.supportsTouch())){if(x.input.ensurePolled(),x.shift=a.shiftKey,Qi(x,a)){ve||(x.scroller.draggable=!1,setTimeout(function(){return x.scroller.draggable=!0},100));return}if(!Vl(b,a)){var E=gr(b,a),ee=$t(a),oe=E?cu(E,ee):"single";window.focus(),ee==1&&b.state.selectingText&&b.state.selectingText(a),!(E&&Du(b,ee,E,oe,a))&&(ee==1?E?Ai(b,E,oe,a):Ct(a)==x.scroller&&yt(a):ee==2?(E&&vi(b.doc,E),setTimeout(function(){return x.input.focus()},20)):ee==3&&(Oe?b.display.input.onContextMenu(a):zo(b)))}}}function Du(a,b,x,E,ee){var oe="Click";return E=="double"?oe="Double"+oe:E=="triple"&&(oe="Triple"+oe),oe=(b==1?"Left":b==2?"Middle":"Right")+oe,As(a,Os(oe,ee),ee,function(fe){if(typeof fe=="string"&&(fe=ns[fe]),!fe)return!1;var xe=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),xe=fe(a,x)!=Lt}finally{a.state.suppressEdits=!1}return xe})}function Oi(a,b,x){var E=a.getOption("configureMouse"),ee=E?E(a,b,x):{};if(ee.unit==null){var oe=Pe?x.shiftKey&&x.metaKey:x.altKey;ee.unit=oe?"rectangle":b=="single"?"char":b=="double"?"word":"line"}return(ee.extend==null||a.doc.extend)&&(ee.extend=a.doc.extend||x.shiftKey),ee.addNew==null&&(ee.addNew=Se?x.metaKey:x.ctrlKey),ee.moveOnDrag==null&&(ee.moveOnDrag=!(Se?x.altKey:x.ctrlKey)),ee}function Ai(a,b,x,E){pe?setTimeout(nt(hl,a),0):a.curOp.focus=Ne();var ee=Oi(a,x,E),oe=a.doc.sel,fe;a.options.dragDrop&&dt&&!a.isReadOnly()&&x=="single"&&(fe=oe.contains(b))>-1&&(At((fe=oe.ranges[fe]).from(),b)<0||b.xRel>0)&&(At(fe.to(),b)>0||b.xRel<0)?Ua(a,E,b,ee):Ga(a,E,b,ee)}function Ua(a,b,x,E){var ee=a.display,oe=!1,fe=Xn(a,function(Xe){ve&&(ee.scroller.draggable=!1),a.state.draggingText=!1,un(ee.wrapper.ownerDocument,"mouseup",fe),un(ee.wrapper.ownerDocument,"mousemove",xe),un(ee.scroller,"dragstart",ke),un(ee.scroller,"drop",fe),oe||(yt(Xe),E.addNew||vi(a.doc,x,null,null,E.extend),ve&&!_e||pe&&me==9?setTimeout(function(){ee.wrapper.ownerDocument.body.focus({preventScroll:!0}),ee.input.focus()},20):ee.input.focus())}),xe=function(Xe){oe=oe||Math.abs(b.clientX-Xe.clientX)+Math.abs(b.clientY-Xe.clientY)>=10},ke=function(){return oe=!0};ve&&(ee.scroller.draggable=!0),a.state.draggingText=fe,fe.copy=!E.moveOnDrag,ee.scroller.dragDrop&&ee.scroller.dragDrop(),Nt(ee.wrapper.ownerDocument,"mouseup",fe),Nt(ee.wrapper.ownerDocument,"mousemove",xe),Nt(ee.scroller,"dragstart",ke),Nt(ee.scroller,"drop",fe),zo(a),setTimeout(function(){return ee.input.focus()},20)}function gl(a,b,x){if(x=="char")return new Dn(b,b);if(x=="word")return a.findWordAt(b);if(x=="line")return new Dn(Ge(b.line,0),St(a.doc,Ge(b.line+1,0)));var E=x(a,b);return new Dn(E.from,E.to)}function Ga(a,b,x,E){var ee=a.display,oe=a.doc;yt(b);var fe,xe,ke=oe.sel,Xe=ke.ranges;if(E.addNew&&!E.extend?(xe=oe.sel.contains(x),xe>-1?fe=Xe[xe]:fe=new Dn(x,x)):(fe=oe.sel.primary(),xe=oe.sel.primIndex),E.unit=="rectangle")E.addNew||(fe=new Dn(x,x)),x=gr(a,b,!0,!0),xe=-1;else{var Yt=gl(a,x,E.unit);E.extend?fe=mi(fe,Yt.anchor,Yt.head,E.extend):fe=Yt}E.addNew?xe==-1?(xe=Xe.length,Jr(oe,yr(a,Xe.concat([fe]),xe),{scroll:!1,origin:"*mouse"})):Xe.length>1&&Xe[xe].empty()&&E.unit=="char"&&!E.extend?(Jr(oe,yr(a,Xe.slice(0,xe).concat(Xe.slice(xe+1)),0),{scroll:!1,origin:"*mouse"}),ke=oe.sel):Ba(oe,xe,fe,ot):(xe=0,Jr(oe,new Pn([fe],0),ot),ke=oe.sel);var nn=x;function In(Xr){if(At(nn,Xr)!=0)if(nn=Xr,E.unit=="rectangle"){for(var Do=[],ii=a.options.tabSize,Uo=Fe(dn(oe,x.line).text,x.ch,ii),Si=Fe(dn(oe,Xr.line).text,Xr.ch,ii),ca=Math.min(Uo,Si),Xa=Math.max(Uo,Si),Fa=Math.min(x.line,Xr.line),Fl=Math.min(a.lastLine(),Math.max(x.line,Xr.line));Fa<=Fl;Fa++){var yl=dn(oe,Fa).text,_a=zt(yl,ca,ii);ca==Xa?Do.push(new Dn(Ge(Fa,_a),Ge(Fa,_a))):yl.length>_a&&Do.push(new Dn(Ge(Fa,_a),Ge(Fa,zt(yl,Xa,ii))))}Do.length||Do.push(new Dn(x,x)),Jr(oe,yr(a,ke.ranges.slice(0,xe).concat(Do),xe),{origin:"*mouse",scroll:!1}),a.scrollIntoView(Xr)}else{var bl=fe,rl=gl(a,Xr,E.unit),za=bl.anchor,$a;At(rl.anchor,za)>0?($a=rl.head,za=pt(bl.from(),rl.anchor)):($a=rl.anchor,za=Zn(bl.to(),rl.head));var Ia=ke.ranges.slice(0);Ia[xe]=ws(a,new Dn(St(oe,za),$a)),Jr(oe,yr(a,Ia,xe),ot)}}var Sn=ee.wrapper.getBoundingClientRect(),tr=0;function vr(Xr){var Do=++tr,ii=gr(a,Xr,!0,E.unit=="rectangle");if(ii)if(At(ii,nn)!=0){a.curOp.focus=Ne(),In(ii);var Uo=Di(ee,oe);(ii.line>=Uo.to||ii.line<Uo.from)&&setTimeout(Xn(a,function(){tr==Do&&vr(Xr)}),150)}else{var Si=Xr.clientY<Sn.top?-20:Xr.clientY>Sn.bottom?20:0;Si&&setTimeout(Xn(a,function(){tr==Do&&(ee.scroller.scrollTop+=Si,vr(Xr))}),50)}}function Ar(Xr){a.state.selectingText=!1,tr=1/0,Xr&&(yt(Xr),ee.input.focus()),un(ee.wrapper.ownerDocument,"mousemove",Gr),un(ee.wrapper.ownerDocument,"mouseup",mo),oe.history.lastSelOrigin=null}var Gr=Xn(a,function(Xr){Xr.buttons===0||!$t(Xr)?Ar(Xr):vr(Xr)}),mo=Xn(a,Ar);a.state.selectingText=mo,Nt(ee.wrapper.ownerDocument,"mousemove",Gr),Nt(ee.wrapper.ownerDocument,"mouseup",mo)}function ws(a,b){var x=b.anchor,E=b.head,ee=dn(a.doc,x.line);if(At(x,E)==0&&x.sticky==E.sticky)return b;var oe=Le(ee);if(!oe)return b;var fe=ft(oe,x.ch,x.sticky),xe=oe[fe];if(xe.from!=x.ch&&xe.to!=x.ch)return b;var ke=fe+(xe.from==x.ch==(xe.level!=1)?0:1);if(ke==0||ke==oe.length)return b;var Xe;if(E.line!=x.line)Xe=(E.line-x.line)*(a.doc.direction=="ltr"?1:-1)>0;else{var Yt=ft(oe,E.ch,E.sticky),nn=Yt-fe||(E.ch-x.ch)*(xe.level==1?-1:1);Yt==ke-1||Yt==ke?Xe=nn<0:Xe=nn>0}var In=oe[ke+(Xe?-1:0)],Sn=Xe==(In.level==1),tr=Sn?In.from:In.to,vr=Sn?"after":"before";return x.ch==tr&&x.sticky==vr?b:new Dn(new Ge(x.line,tr,vr),E)}function rs(a,b,x,E){var ee,oe;if(b.touches)ee=b.touches[0].clientX,oe=b.touches[0].clientY;else try{ee=b.clientX,oe=b.clientY}catch(In){return!1}if(ee>=Math.floor(a.display.gutters.getBoundingClientRect().right))return!1;E&&yt(b);var fe=a.display,xe=fe.lineDiv.getBoundingClientRect();if(oe>xe.bottom||!Ht(a,x))return tn(b);oe-=xe.top-fe.viewOffset;for(var ke=0;ke<a.display.gutterSpecs.length;++ke){var Xe=fe.gutters.childNodes[ke];if(Xe&&Xe.getBoundingClientRect().right>=ee){var Yt=_t(a.doc,oe),nn=a.display.gutterSpecs[ke];return rn(a,x,a,Yt,nn.className,b),tn(b)}}}function Vl(a,b){return rs(a,b,"gutterClick",!0)}function Bs(a,b){Qi(a.display,b)||fu(a,b)||Rt(a,b,"contextmenu")||Oe||a.display.input.onContextMenu(b)}function fu(a,b){return Ht(a,"gutterContextMenu")?rs(a,b,"gutterContextMenu",!1):!1}function Nu(a){a.display.wrapper.className=a.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+a.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Hl(a)}var Us={toString:function(){return"CodeMirror.Init"}},Mu={},yu={};function zu(a){var b=a.optionHandlers;function x(E,ee,oe,fe){a.defaults[E]=ee,oe&&(b[E]=fe?function(xe,ke,Xe){Xe!=Us&&oe(xe,ke,Xe)}:oe)}a.defineOption=x,a.Init=Us,x("value","",function(E,ee){return E.setValue(ee)},!0),x("mode",null,function(E,ee){E.doc.modeOption=ee,ro(E)},!0),x("indentUnit",2,ro,!0),x("indentWithTabs",!1),x("smartIndent",!0),x("tabSize",4,function(E){Qr(E),Hl(E),bo(E)},!0),x("lineSeparator",null,function(E,ee){if(E.doc.lineSep=ee,!!ee){var oe=[],fe=E.doc.first;E.doc.iter(function(ke){for(var Xe=0;;){var Yt=ke.text.indexOf(ee,Xe);if(Yt==-1)break;Xe=Yt+ee.length,oe.push(Ge(fe,Yt))}fe++});for(var xe=oe.length-1;xe>=0;xe--)Fi(E.doc,ee,oe[xe],Ge(oe[xe].line,oe[xe].ch+ee.length))}}),x("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(E,ee,oe){E.state.specialChars=new RegExp(ee.source+(ee.test(" ")?"":"| "),"g"),oe!=Us&&E.refresh()}),x("specialCharPlaceholder",$i,function(E){return E.refresh()},!0),x("electricChars",!0),x("inputStyle",Ce?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),x("spellcheck",!1,function(E,ee){return E.getInputField().spellcheck=ee},!0),x("autocorrect",!1,function(E,ee){return E.getInputField().autocorrect=ee},!0),x("autocapitalize",!1,function(E,ee){return E.getInputField().autocapitalize=ee},!0),x("rtlMoveVisually",!Ye),x("wholeLineUpdateBefore",!0),x("theme","default",function(E){Nu(E),pn(E)},!0),x("keyMap","default",function(E,ee,oe){var fe=Ws(ee),xe=oe!=Us&&Ws(oe);xe&&xe.detach&&xe.detach(E,fe),fe.attach&&fe.attach(E,xe||null)}),x("extraKeys",null),x("configureMouse",null),x("lineWrapping",!1,Wu,!0),x("gutters",[],function(E,ee){E.display.gutterSpecs=Vt(ee,E.options.lineNumbers),pn(E)},!0),x("fixedGutter",!0,function(E,ee){E.display.gutters.style.left=ee?oi(E.display)+"px":"0",E.refresh()},!0),x("coverGutterNextToScrollbar",!1,function(E){return fs(E)},!0),x("scrollbarStyle","native",function(E){_s(E),fs(E),E.display.scrollbars.setScrollTop(E.doc.scrollTop),E.display.scrollbars.setScrollLeft(E.doc.scrollLeft)},!0),x("lineNumbers",!1,function(E,ee){E.display.gutterSpecs=Vt(E.options.gutters,ee),pn(E)},!0),x("firstLineNumber",1,pn,!0),x("lineNumberFormatter",function(E){return E},pn,!0),x("showCursorWhenSelecting",!1,Co,!0),x("resetSelectionOnContextMenu",!0),x("lineWiseCopyCut",!0),x("pasteLinesPerSelection",!0),x("selectionsMayTouch",!1),x("readOnly",!1,function(E,ee){ee=="nocursor"&&(Aa(E),E.display.input.blur()),E.display.input.readOnlyChanged(ee)}),x("screenReaderLabel",null,function(E,ee){ee=ee===""?null:ee,E.display.input.screenReaderLabelChanged(ee)}),x("disableInput",!1,function(E,ee){ee||E.display.input.reset()},!0),x("dragDrop",!0,Hu),x("allowDropFileTypes",null),x("cursorBlinkRate",530),x("cursorScrollMargin",0),x("cursorHeight",1,Co,!0),x("singleCursorHeightPerLine",!0,Co,!0),x("workTime",100),x("workDelay",100),x("flattenSpans",!0,Qr,!0),x("addModeClass",!1,Qr,!0),x("pollInterval",100),x("undoDepth",200,function(E,ee){return E.doc.history.undoDepth=ee}),x("historyEventDelay",1250),x("viewportMargin",10,function(E){return E.refresh()},!0),x("maxHighlightLength",1e4,Qr,!0),x("moveInputWithCursor",!0,function(E,ee){ee||E.display.input.resetPosition()}),x("tabindex",null,function(E,ee){return E.display.input.getField().tabIndex=ee||""}),x("autofocus",null),x("direction","ltr",function(E,ee){return E.doc.setDirection(ee)},!0),x("phrases",null)}function Hu(a,b,x){var E=x&&x!=Us;if(!b!=!E){var ee=a.display.dragFunctions,oe=b?Nt:un;oe(a.display.scroller,"dragstart",ee.start),oe(a.display.scroller,"dragenter",ee.enter),oe(a.display.scroller,"dragover",ee.over),oe(a.display.scroller,"dragleave",ee.leave),oe(a.display.scroller,"drop",ee.drop)}}function Wu(a){a.options.lineWrapping?(ue(a.display.wrapper,"CodeMirror-wrap"),a.display.sizer.style.minWidth="",a.display.sizerWidth=null):(Ke(a.display.wrapper,"CodeMirror-wrap"),to(a)),Qo(a),bo(a),Hl(a),setTimeout(function(){return fs(a)},100)}function Sa(a,b){var x=this;if(!(this instanceof Sa))return new Sa(a,b);this.options=b=b?Mt(b):{},Mt(Mu,b,!1);var E=b.value;typeof E=="string"?E=new Gi(E,b.mode,null,b.lineSeparator,b.direction):b.mode&&(E.modeOption=b.mode),this.doc=E;var ee=new Sa.inputStyles[b.inputStyle](this),oe=this.display=new cn(a,E,ee,b);oe.wrapper.CodeMirror=this,Nu(this),b.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),_s(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 ye,keySeq:null,specialChars:null},b.autofocus&&!Ce&&oe.input.focus(),pe&&me<11&&setTimeout(function(){return x.display.input.reset(!0)},20),Ku(this),Hs(),_l(this),this.curOp.forceUpdate=!0,Ko(this,E),b.autofocus&&!Ce||this.hasFocus()?setTimeout(function(){x.hasFocus()&&!x.state.focused&&Za(x)},20):Aa(this);for(var fe in yu)yu.hasOwnProperty(fe)&&yu[fe](this,b[fe],Us);wt(this),b.finishInit&&b.finishInit(this);for(var xe=0;xe<Fu.length;++xe)Fu[xe](this);Ml(this),ve&&b.lineWrapping&&getComputedStyle(oe.lineDiv).textRendering=="optimizelegibility"&&(oe.lineDiv.style.textRendering="auto")}Sa.defaults=Mu,Sa.optionHandlers=yu;function Ku(a){var b=a.display;Nt(b.scroller,"mousedown",Xn(a,du)),pe&&me<11?Nt(b.scroller,"dblclick",Xn(a,function(ke){if(!Rt(a,ke)){var Xe=gr(a,ke);if(!(!Xe||Vl(a,ke)||Qi(a.display,ke))){yt(ke);var Yt=a.findWordAt(Xe);vi(a.doc,Yt.anchor,Yt.head)}}})):Nt(b.scroller,"dblclick",function(ke){return Rt(a,ke)||yt(ke)}),Nt(b.scroller,"contextmenu",function(ke){return Bs(a,ke)}),Nt(b.input.getField(),"contextmenu",function(ke){b.scroller.contains(ke.target)||Bs(a,ke)});var x,E={end:0};function ee(){b.activeTouch&&(x=setTimeout(function(){return b.activeTouch=null},1e3),E=b.activeTouch,E.end=+new Date)}function oe(ke){if(ke.touches.length!=1)return!1;var Xe=ke.touches[0];return Xe.radiusX<=1&&Xe.radiusY<=1}function fe(ke,Xe){if(Xe.left==null)return!0;var Yt=Xe.left-ke.left,nn=Xe.top-ke.top;return Yt*Yt+nn*nn>20*20}Nt(b.scroller,"touchstart",function(ke){if(!Rt(a,ke)&&!oe(ke)&&!Vl(a,ke)){b.input.ensurePolled(),clearTimeout(x);var Xe=+new Date;b.activeTouch={start:Xe,moved:!1,prev:Xe-E.end<=300?E:null},ke.touches.length==1&&(b.activeTouch.left=ke.touches[0].pageX,b.activeTouch.top=ke.touches[0].pageY)}}),Nt(b.scroller,"touchmove",function(){b.activeTouch&&(b.activeTouch.moved=!0)}),Nt(b.scroller,"touchend",function(ke){var Xe=b.activeTouch;if(Xe&&!Qi(b,ke)&&Xe.left!=null&&!Xe.moved&&new Date-Xe.start<300){var Yt=a.coordsChar(b.activeTouch,"page"),nn;!Xe.prev||fe(Xe,Xe.prev)?nn=new Dn(Yt,Yt):!Xe.prev.prev||fe(Xe,Xe.prev.prev)?nn=a.findWordAt(Yt):nn=new Dn(Ge(Yt.line,0),St(a.doc,Ge(Yt.line+1,0))),a.setSelection(nn.anchor,nn.head),a.focus(),yt(ke)}ee()}),Nt(b.scroller,"touchcancel",ee),Nt(b.scroller,"scroll",function(){b.scroller.clientHeight&&(Es(a,b.scroller.scrollTop),ql(a,b.scroller.scrollLeft,!0),rn(a,"scroll",a))}),Nt(b.scroller,"mousewheel",function(ke){return kn(a,ke)}),Nt(b.scroller,"DOMMouseScroll",function(ke){return kn(a,ke)}),Nt(b.wrapper,"scroll",function(){return b.wrapper.scrollTop=b.wrapper.scrollLeft=0}),b.dragFunctions={enter:function(ke){Rt(a,ke)||Ve(ke)},over:function(ke){Rt(a,ke)||(jl(a,ke),Ve(ke))},start:function(ke){return Zl(a,ke)},drop:Xn(a,ts),leave:function(ke){Rt(a,ke)||Zs(a)}};var xe=b.input.getField();Nt(xe,"keyup",function(ke){return su.call(a,ke)}),Nt(xe,"keydown",Xn(a,lu)),Nt(xe,"keypress",Xn(a,uu)),Nt(xe,"focus",function(ke){return Za(a,ke)}),Nt(xe,"blur",function(ke){return Aa(a,ke)})}var Fu=[];Sa.defineInitHook=function(a){return Fu.push(a)};function hu(a,b,x,E){var ee=a.doc,oe;x==null&&(x="add"),x=="smart"&&(ee.mode.indent?oe=nr(a,b).state:x="prev");var fe=a.options.tabSize,xe=dn(ee,b),ke=Fe(xe.text,null,fe);xe.stateAfter&&(xe.stateAfter=null);var Xe=xe.text.match(/^\s*/)[0],Yt;if(!E&&!/\S/.test(xe.text))Yt=0,x="not";else if(x=="smart"&&(Yt=ee.mode.indent(oe,xe.text.slice(Xe.length),xe.text),Yt==Lt||Yt>150)){if(!E)return;x="prev"}x=="prev"?b>ee.first?Yt=Fe(dn(ee,b-1).text,null,fe):Yt=0:x=="add"?Yt=ke+a.options.indentUnit:x=="subtract"?Yt=ke-a.options.indentUnit:typeof x=="number"&&(Yt=ke+x),Yt=Math.max(0,Yt);var nn="",In=0;if(a.options.indentWithTabs)for(var Sn=Math.floor(Yt/fe);Sn;--Sn)In+=fe,nn+=" ";if(In<Yt&&(nn+=lt(Yt-In)),nn!=Xe)return Fi(ee,nn,Ge(b,0),Ge(b,Xe.length),"+input"),xe.stateAfter=null,!0;for(var tr=0;tr<ee.sel.ranges.length;tr++){var vr=ee.sel.ranges[tr];if(vr.head.line==b&&vr.head.ch<Xe.length){var Ar=Ge(b,Xe.length);Ba(ee,tr,new Dn(Ar,Ar));break}}}var Ul=null;function bu(a){Ul=a}function Pu(a,b,x,E,ee){var oe=a.doc;a.display.shift=!1,E||(E=oe.sel);var fe=+new Date-200,xe=ee=="paste"||a.state.pasteIncoming>fe,ke=hn(b),Xe=null;if(xe&&E.ranges.length>1)if(Ul&&Ul.text.join(`
`)==b){if(E.ranges.length%Ul.text.length==0){Xe=[];for(var Yt=0;Yt<Ul.text.length;Yt++)Xe.push(oe.splitLines(Ul.text[Yt]))}}else ke.length==E.ranges.length&&a.options.pasteLinesPerSelection&&(Xe=on(ke,function(Gr){return[Gr]}));for(var nn=a.curOp.updateInput,In=E.ranges.length-1;In>=0;In--){var Sn=E.ranges[In],tr=Sn.from(),vr=Sn.to();Sn.empty()&&(x&&x>0?tr=Ge(tr.line,tr.ch-x):a.state.overwrite&&!xe?vr=Ge(vr.line,Math.min(dn(oe,vr.line).text.length,vr.ch+rt(ke).length)):xe&&Ul&&Ul.lineWise&&Ul.text.join(`
`)==ke.join(`
`)&&(tr=vr=Ge(tr.line,0)));var Ar={from:tr,to:vr,text:Xe?Xe[In%Xe.length]:ke,origin:ee||(xe?"paste":a.state.cutIncoming>fe?"cut":"+input")};ji(a.doc,Ar),Ti(a,"inputRead",a,Ar)}b&&!xe&&ku(a,b),Al(a),a.curOp.updateInput<2&&(a.curOp.updateInput=nn),a.curOp.typing=!0,a.state.pasteIncoming=a.state.cutIncoming=-1}function Tu(a,b){var x=a.clipboardData&&a.clipboardData.getData("Text");if(x)return a.preventDefault(),!b.isReadOnly()&&!b.options.disableInput&&Lr(b,function(){return Pu(b,x,0,null,"paste")}),!0}function ku(a,b){if(!(!a.options.electricChars||!a.options.smartIndent))for(var x=a.doc.sel,E=x.ranges.length-1;E>=0;E--){var ee=x.ranges[E];if(!(ee.head.ch>100||E&&x.ranges[E-1].head.line==ee.head.line)){var oe=a.getModeAt(ee.head),fe=!1;if(oe.electricChars){for(var xe=0;xe<oe.electricChars.length;xe++)if(b.indexOf(oe.electricChars.charAt(xe))>-1){fe=hu(a,ee.head.line,"smart");break}}else oe.electricInput&&oe.electricInput.test(dn(a.doc,ee.head.line).text.slice(0,ee.head.ch))&&(fe=hu(a,ee.head.line,"smart"));fe&&Ti(a,"electricInput",a,ee.head.line)}}}function Lu(a){for(var b=[],x=[],E=0;E<a.doc.sel.ranges.length;E++){var ee=a.doc.sel.ranges[E].head.line,oe={anchor:Ge(ee,0),head:Ge(ee+1,0)};x.push(oe),b.push(a.getRange(oe.anchor,oe.head))}return{text:b,ranges:x}}function Ru(a,b,x,E){a.setAttribute("autocorrect",x?"":"off"),a.setAttribute("autocapitalize",E?"":"off"),a.setAttribute("spellcheck",!!b)}function _u(){var a=Qe("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),b=Qe("div",[a],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return ve?a.style.width="1000px":a.setAttribute("wrap","off"),je&&(a.style.border="1px solid black"),Ru(a),b}function Vu(a){var b=a.optionHandlers,x=a.helpers={};a.prototype={constructor:a,focus:function(){window.focus(),this.display.input.focus()},setOption:function(E,ee){var oe=this.options,fe=oe[E];oe[E]==ee&&E!="mode"||(oe[E]=ee,b.hasOwnProperty(E)&&Xn(this,b[E])(this,ee,fe),rn(this,"optionChange",this,E))},getOption:function(E){return this.options[E]},getDoc:function(){return this.doc},addKeyMap:function(E,ee){this.state.keyMaps[ee?"push":"unshift"](Ws(E))},removeKeyMap:function(E){for(var ee=this.state.keyMaps,oe=0;oe<ee.length;++oe)if(ee[oe]==E||ee[oe].name==E)return ee.splice(oe,1),!0},addOverlay:$o(function(E,ee){var oe=E.token?E:a.getMode(this.options,E);if(oe.startState)throw new Error("Overlays may not be stateful.");kt(this.state.overlays,{mode:oe,modeSpec:E,opaque:ee&&ee.opaque,priority:ee&&ee.priority||0},function(fe){return fe.priority}),this.state.modeGen++,bo(this)}),removeOverlay:$o(function(E){for(var ee=this.state.overlays,oe=0;oe<ee.length;++oe){var fe=ee[oe].modeSpec;if(fe==E||typeof E=="string"&&fe.name==E){ee.splice(oe,1),this.state.modeGen++,bo(this);return}}}),indentLine:$o(function(E,ee,oe){typeof ee!="string"&&typeof ee!="number"&&(ee==null?ee=this.options.smartIndent?"smart":"prev":ee=ee?"add":"subtract"),Je(this.doc,E)&&hu(this,E,ee,oe)}),indentSelection:$o(function(E){for(var ee=this.doc.sel.ranges,oe=-1,fe=0;fe<ee.length;fe++){var xe=ee[fe];if(xe.empty())xe.head.line>oe&&(hu(this,xe.head.line,E,!0),oe=xe.head.line,fe==this.doc.sel.primIndex&&Al(this));else{var ke=xe.from(),Xe=xe.to(),Yt=Math.max(oe,ke.line);oe=Math.min(this.lastLine(),Xe.line-(Xe.ch?0:1))+1;for(var nn=Yt;nn<oe;++nn)hu(this,nn,E);var In=this.doc.sel.ranges;ke.ch==0&&ee.length==In.length&&In[fe].from().ch>0&&Ba(this.doc,fe,new Dn(ke,In[fe].to()),Ee)}}}),getTokenAt:function(E,ee){return fr(this,E,ee)},getLineTokens:function(E,ee){return fr(this,Ge(E),ee,!0)},getTokenTypeAt:function(E){E=St(this.doc,E);var ee=qn(this,dn(this.doc,E.line)),oe=0,fe=(ee.length-1)/2,xe=E.ch,ke;if(xe==0)ke=ee[2];else for(;;){var Xe=oe+fe>>1;if((Xe?ee[Xe*2-1]:0)>=xe)fe=Xe;else if(ee[Xe*2+1]<xe)oe=Xe+1;else{ke=ee[Xe*2+2];break}}var Yt=ke?ke.indexOf("overlay "):-1;return Yt<0?ke:Yt==0?null:ke.slice(0,Yt-1)},getModeAt:function(E){var ee=this.doc.mode;return ee.innerMode?a.innerMode(ee,this.getTokenAt(E).state).mode:ee},getHelper:function(E,ee){return this.getHelpers(E,ee)[0]},getHelpers:function(E,ee){var oe=[];if(!x.hasOwnProperty(ee))return oe;var fe=x[ee],xe=this.getModeAt(E);if(typeof xe[ee]=="string")fe[xe[ee]]&&oe.push(fe[xe[ee]]);else if(xe[ee])for(var ke=0;ke<xe[ee].length;ke++){var Xe=fe[xe[ee][ke]];Xe&&oe.push(Xe)}else xe.helperType&&fe[xe.helperType]?oe.push(fe[xe.helperType]):fe[xe.name]&&oe.push(fe[xe.name]);for(var Yt=0;Yt<fe._global.length;Yt++){var nn=fe._global[Yt];nn.pred(xe,this)&&Bt(oe,nn.val)==-1&&oe.push(nn.val)}return oe},getStateAfter:function(E,ee){var oe=this.doc;return E=Et(oe,E==null?oe.first+oe.size-1:E),nr(this,E+1,ee).state},cursorCoords:function(E,ee){var oe,fe=this.doc.sel.primary();return E==null?oe=fe.head:typeof E=="object"?oe=St(this.doc,E):oe=E?fe.from():fe.to(),Zi(this,oe,ee||"page")},charCoords:function(E,ee){return el(this,St(this.doc,E),ee||"page")},coordsChar:function(E,ee){return E=qa(this,E,ee||"page"),gt(this,E.left,E.top)},lineAtHeight:function(E,ee){return E=qa(this,{top:E,left:0},ee||"page").top,_t(this.doc,E+this.display.viewOffset)},heightAtLine:function(E,ee,oe){var fe=!1,xe;if(typeof E=="number"){var ke=this.doc.first+this.doc.size-1;E<this.doc.first?E=this.doc.first:E>ke&&(E=ke,fe=!0),xe=dn(this.doc,E)}else xe=E;return Yl(this,xe,{top:0,left:0},ee||"page",oe||fe).top+(fe?this.doc.height-_r(xe):0)},defaultTextHeight:function(){return Kr(this.display)},defaultCharWidth:function(){return _o(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(E,ee,oe,fe,xe){var ke=this.display;E=Zi(this,St(this.doc,E));var Xe=E.bottom,Yt=E.left;if(ee.style.position="absolute",ee.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(ee),ke.sizer.appendChild(ee),fe=="over")Xe=E.top;else if(fe=="above"||fe=="near"){var nn=Math.max(ke.wrapper.clientHeight,this.doc.height),In=Math.max(ke.sizer.clientWidth,ke.lineSpace.clientWidth);(fe=="above"||E.bottom+ee.offsetHeight>nn)&&E.top>ee.offsetHeight?Xe=E.top-ee.offsetHeight:E.bottom+ee.offsetHeight<=nn&&(Xe=E.bottom),Yt+ee.offsetWidth>In&&(Yt=In-ee.offsetWidth)}ee.style.top=Xe+"px",ee.style.left=ee.style.right="",xe=="right"?(Yt=ke.sizer.clientWidth-ee.offsetWidth,ee.style.right="0px"):(xe=="left"?Yt=0:xe=="middle"&&(Yt=(ke.sizer.clientWidth-ee.offsetWidth)/2),ee.style.left=Yt+"px"),oe&&Ql(this,{left:Yt,top:Xe,right:Yt+ee.offsetWidth,bottom:Xe+ee.offsetHeight})},triggerOnKeyDown:$o(lu),triggerOnKeyPress:$o(uu),triggerOnKeyUp:su,triggerOnMouseDown:$o(du),execCommand:function(E){if(ns.hasOwnProperty(E))return ns[E].call(null,this)},triggerElectric:$o(function(E){ku(this,E)}),findPosH:function(E,ee,oe,fe){var xe=1;ee<0&&(xe=-1,ee=-ee);for(var ke=St(this.doc,E),Xe=0;Xe<ee&&(ke=Ou(this.doc,ke,xe,oe,fe),!ke.hitSide);++Xe);return ke},moveH:$o(function(E,ee){var oe=this;this.extendSelectionsBy(function(fe){return oe.display.shift||oe.doc.extend||fe.empty()?Ou(oe.doc,fe.head,E,ee,oe.options.rtlMoveVisually):E<0?fe.from():fe.to()},qe)}),deleteH:$o(function(E,ee){var oe=this.doc.sel,fe=this.doc;oe.somethingSelected()?fe.replaceSelection("",null,"+delete"):vs(this,function(xe){var ke=Ou(fe,xe.head,E,ee,!1);return E<0?{from:ke,to:xe.head}:{from:xe.head,to:ke}})}),findPosV:function(E,ee,oe,fe){var xe=1,ke=fe;ee<0&&(xe=-1,ee=-ee);for(var Xe=St(this.doc,E),Yt=0;Yt<ee;++Yt){var nn=Zi(this,Xe,"div");if(ke==null?ke=nn.left:nn.left=ke,Xe=$u(this,nn,xe,oe),Xe.hitSide)break}return Xe},moveV:$o(function(E,ee){var oe=this,fe=this.doc,xe=[],ke=!this.display.shift&&!fe.extend&&fe.sel.somethingSelected();if(fe.extendSelectionsBy(function(Yt){if(ke)return E<0?Yt.from():Yt.to();var nn=Zi(oe,Yt.head,"div");Yt.goalColumn!=null&&(nn.left=Yt.goalColumn),xe.push(nn.left);var In=$u(oe,nn,E,ee);return ee=="page"&&Yt==fe.sel.primary()&&ss(oe,el(oe,In,"div").top-nn.top),In},qe),xe.length)for(var Xe=0;Xe<fe.sel.ranges.length;Xe++)fe.sel.ranges[Xe].goalColumn=xe[Xe]}),findWordAt:function(E){var ee=this.doc,oe=dn(ee,E.line).text,fe=E.ch,xe=E.ch;if(oe){var ke=this.getHelper(E,"wordChars");(E.sticky=="before"||xe==oe.length)&&fe?--fe:++xe;for(var Xe=oe.charAt(fe),Yt=ce(Xe,ke)?function(nn){return ce(nn,ke)}:/\s/.test(Xe)?function(nn){return/\s/.test(nn)}:function(nn){return!/\s/.test(nn)&&!ce(nn)};fe>0&&Yt(oe.charAt(fe-1));)--fe;for(;xe<oe.length&&Yt(oe.charAt(xe));)++xe}return new Dn(Ge(E.line,fe),Ge(E.line,xe))},toggleOverwrite:function(E){E!=null&&E==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?ue(this.display.cursorDiv,"CodeMirror-overwrite"):Ke(this.display.cursorDiv,"CodeMirror-overwrite"),rn(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Ne()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:$o(function(E,ee){Rl(this,E,ee)}),getScrollInfo:function(){var E=this.display.scroller;return{left:E.scrollLeft,top:E.scrollTop,height:E.scrollHeight-Ka(this)-this.display.barHeight,width:E.scrollWidth-Ka(this)-this.display.barWidth,clientHeight:kl(this),clientWidth:Sl(this)}},scrollIntoView:$o(function(E,ee){E==null?(E={from:this.doc.sel.primary().head,to:null},ee==null&&(ee=this.options.cursorScrollMargin)):typeof E=="number"?E={from:Ge(E,0),to:null}:E.from==null&&(E={from:E,to:null}),E.to||(E.to=E.from),E.margin=ee||0,E.from.line!=null?Cs(this,E):us(this,E.from,E.to,E.margin)}),setSize:$o(function(E,ee){var oe=this,fe=function(ke){return typeof ke=="number"||/^\d+$/.test(String(ke))?ke+"px":ke};E!=null&&(this.display.wrapper.style.width=fe(E)),ee!=null&&(this.display.wrapper.style.height=fe(ee)),this.options.lineWrapping&&wl(this);var xe=this.display.viewFrom;this.doc.iter(xe,this.display.viewTo,function(ke){if(ke.widgets){for(var Xe=0;Xe<ke.widgets.length;Xe++)if(ke.widgets[Xe].noHScroll){Ao(oe,xe,"widget");break}}++xe}),this.curOp.forceUpdate=!0,rn(this,"refresh",this)}),operation:function(E){return Lr(this,E)},startOperation:function(){return _l(this)},endOperation:function(){return Ml(this)},refresh:$o(function(){var E=this.display.cachedTextHeight;bo(this),this.curOp.forceUpdate=!0,Hl(this),Rl(this,this.doc.scrollLeft,this.doc.scrollTop),De(this.display),(E==null||Math.abs(E-Kr(this.display))>.5||this.options.lineWrapping)&&Qo(this),rn(this,"refresh",this)}),swapDoc:$o(function(E){var ee=this.doc;return ee.cm=null,this.state.selectingText&&this.state.selectingText(),Ko(this,E),Hl(this),this.display.input.reset(),Rl(this,E.scrollLeft,E.scrollTop),this.curOp.forceScroll=!0,Ti(this,"swapDoc",this,ee),ee}),phrase:function(E){var ee=this.options.phrases;return ee&&Object.prototype.hasOwnProperty.call(ee,E)?ee[E]:E},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}},ze(a),a.registerHelper=function(E,ee,oe){x.hasOwnProperty(E)||(x[E]=a[E]={_global:[]}),x[E][ee]=oe},a.registerGlobalHelper=function(E,ee,oe,fe){a.registerHelper(E,ee,fe),x[E]._global.push({pred:oe,val:fe})}}function Ou(a,b,x,E,ee){var oe=b,fe=x,xe=dn(a,b.line),ke=ee&&a.direction=="rtl"?-x:x;function Xe(){var mo=b.line+ke;return mo<a.first||mo>=a.first+a.size?!1:(b=new Ge(mo,b.ch,b.sticky),xe=dn(a,mo))}function Yt(mo){var Xr;if(E=="codepoint"){var Do=xe.text.charCodeAt(b.ch+(E>0?0:-1));isNaN(Do)?Xr=null:Xr=new Ge(b.line,Math.max(0,Math.min(xe.text.length,b.ch+x*(Do>=55296&&Do<56320?2:1))),-x)}else ee?Xr=vu(a.cm,xe,b,x):Xr=Ks(xe,b,x);if(Xr==null)if(!mo&&Xe())b=nu(ee,a.cm,xe,b.line,ke);else return!1;else b=Xr;return!0}if(E=="char"||E=="codepoint")Yt();else if(E=="column")Yt(!0);else if(E=="word"||E=="group")for(var nn=null,In=E=="group",Sn=a.cm&&a.cm.getHelper(b,"wordChars"),tr=!0;!(x<0&&!Yt(!tr));tr=!1){var vr=xe.text.charAt(b.ch)||`
`,Ar=ce(vr,Sn)?"w":In&&vr==`
`?"n":!In||/\s/.test(vr)?null:"p";if(In&&!tr&&!Ar&&(Ar="s"),nn&&nn!=Ar){x<0&&(x=1,Yt(),b.sticky="after");break}if(Ar&&(nn=Ar),x>0&&!Yt(!tr))break}var Gr=Pa(a,b,oe,fe,!0);return Jt(oe,Gr)&&(Gr.hitSide=!0),Gr}function $u(a,b,x,E){var ee=a.doc,oe=b.left,fe;if(E=="page"){var xe=Math.min(a.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),ke=Math.max(xe-.5*Kr(a.display),3);fe=(x>0?b.bottom:b.top)+x*ke}else E=="line"&&(fe=x>0?b.bottom+3:b.top-3);for(var Xe;Xe=gt(a,oe,fe),!!Xe.outside;){if(x<0?fe<=0:fe>=ee.height){Xe.hitSide=!0;break}fe+=x*5}return Xe}var ea=function(a){this.cm=a,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ye,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};ea.prototype.init=function(a){var b=this,x=this,E=x.cm,ee=x.div=a.lineDiv;Ru(ee,E.options.spellcheck,E.options.autocorrect,E.options.autocapitalize);function oe(xe){for(var ke=xe.target;ke;ke=ke.parentNode){if(ke==ee)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(ke.className))break}return!1}Nt(ee,"paste",function(xe){!oe(xe)||Rt(E,xe)||Tu(xe,E)||me<=11&&setTimeout(Xn(E,function(){return b.updateFromDOM()}),20)}),Nt(ee,"compositionstart",function(xe){b.composing={data:xe.data,done:!1}}),Nt(ee,"compositionupdate",function(xe){b.composing||(b.composing={data:xe.data,done:!1})}),Nt(ee,"compositionend",function(xe){b.composing&&(xe.data!=b.composing.data&&b.readFromDOMSoon(),b.composing.done=!0)}),Nt(ee,"touchstart",function(){return x.forceCompositionEnd()}),Nt(ee,"input",function(){b.composing||b.readFromDOMSoon()});function fe(xe){if(!(!oe(xe)||Rt(E,xe))){if(E.somethingSelected())bu({lineWise:!1,text:E.getSelections()}),xe.type=="cut"&&E.replaceSelection("",null,"cut");else if(E.options.lineWiseCopyCut){var ke=Lu(E);bu({lineWise:!0,text:ke.text}),xe.type=="cut"&&E.operation(function(){E.setSelections(ke.ranges,0,Ee),E.replaceSelection("",null,"cut")})}else return;if(xe.clipboardData){xe.clipboardData.clearData();var Xe=Ul.text.join(`
`);if(xe.clipboardData.setData("Text",Xe),xe.clipboardData.getData("Text")==Xe){xe.preventDefault();return}}var Yt=_u(),nn=Yt.firstChild;E.display.lineSpace.insertBefore(Yt,E.display.lineSpace.firstChild),nn.value=Ul.text.join(`
`);var In=document.activeElement;Ze(nn),setTimeout(function(){E.display.lineSpace.removeChild(Yt),In.focus(),In==ee&&x.showPrimarySelection()},50)}}Nt(ee,"copy",fe),Nt(ee,"cut",fe)},ea.prototype.screenReaderLabelChanged=function(a){a?this.div.setAttribute("aria-label",a):this.div.removeAttribute("aria-label")},ea.prototype.prepareSelection=function(){var a=Nr(this.cm,!1);return a.focus=document.activeElement==this.div,a},ea.prototype.showSelection=function(a,b){!a||!this.cm.display.view.length||((a.focus||b)&&this.showPrimarySelection(),this.showMultipleSelections(a))},ea.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},ea.prototype.showPrimarySelection=function(){var a=this.getSelection(),b=this.cm,x=b.doc.sel.primary(),E=x.from(),ee=x.to();if(b.display.viewTo==b.display.viewFrom||E.line>=b.display.viewTo||ee.line<b.display.viewFrom){a.removeAllRanges();return}var oe=Cu(b,a.anchorNode,a.anchorOffset),fe=Cu(b,a.focusNode,a.focusOffset);if(!(oe&&!oe.bad&&fe&&!fe.bad&&At(pt(oe,fe),E)==0&&At(Zn(oe,fe),ee)==0)){var xe=b.display.view,ke=E.line>=b.display.viewFrom&&Zu(b,E)||{node:xe[0].measure.map[2],offset:0},Xe=ee.line<b.display.viewTo&&Zu(b,ee);if(!Xe){var Yt=xe[xe.length-1].measure,nn=Yt.maps?Yt.maps[Yt.maps.length-1]:Yt.map;Xe={node:nn[nn.length-1],offset:nn[nn.length-2]-nn[nn.length-3]}}if(!ke||!Xe){a.removeAllRanges();return}var In=a.rangeCount&&a.getRangeAt(0),Sn;try{Sn=be(ke.node,ke.offset,Xe.offset,Xe.node)}catch(tr){}Sn&&(!y&&b.state.focused?(a.collapse(ke.node,ke.offset),Sn.collapsed||(a.removeAllRanges(),a.addRange(Sn))):(a.removeAllRanges(),a.addRange(Sn)),In&&a.anchorNode==null?a.addRange(In):y&&this.startGracePeriod()),this.rememberSelection()}},ea.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)},ea.prototype.showMultipleSelections=function(a){it(this.cm.display.cursorDiv,a.cursors),it(this.cm.display.selectionDiv,a.selection)},ea.prototype.rememberSelection=function(){var a=this.getSelection();this.lastAnchorNode=a.anchorNode,this.lastAnchorOffset=a.anchorOffset,this.lastFocusNode=a.focusNode,this.lastFocusOffset=a.focusOffset},ea.prototype.selectionInEditor=function(){var a=this.getSelection();if(!a.rangeCount)return!1;var b=a.getRangeAt(0).commonAncestorContainer;return et(this.div,b)},ea.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},ea.prototype.blur=function(){this.div.blur()},ea.prototype.getField=function(){return this.div},ea.prototype.supportsTouch=function(){return!0},ea.prototype.receivedFocus=function(){var a=this;this.selectionInEditor()?this.pollSelection():Lr(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)},ea.prototype.selectionChanged=function(){var a=this.getSelection();return a.anchorNode!=this.lastAnchorNode||a.anchorOffset!=this.lastAnchorOffset||a.focusNode!=this.lastFocusNode||a.focusOffset!=this.lastFocusOffset},ea.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var a=this.getSelection(),b=this.cm;if(Te&&ge&&this.cm.display.gutterSpecs.length&&Uu(a.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var x=Cu(b,a.anchorNode,a.anchorOffset),E=Cu(b,a.focusNode,a.focusOffset);x&&E&&Lr(b,function(){Jr(b.doc,er(x,E),Ee),(x.bad||E.bad)&&(b.curOp.selectionChanged=!0)})}}},ea.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var a=this.cm,b=a.display,x=a.doc.sel.primary(),E=x.from(),ee=x.to();if(E.ch==0&&E.line>a.firstLine()&&(E=Ge(E.line-1,dn(a.doc,E.line-1).length)),ee.ch==dn(a.doc,ee.line).text.length&&ee.line<a.lastLine()&&(ee=Ge(ee.line+1,0)),E.line<b.viewFrom||ee.line>b.viewTo-1)return!1;var oe,fe,xe;E.line==b.viewFrom||(oe=io(a,E.line))==0?(fe=xt(b.view[0].line),xe=b.view[0].node):(fe=xt(b.view[oe].line),xe=b.view[oe-1].node.nextSibling);var ke=io(a,ee.line),Xe,Yt;if(ke==b.view.length-1?(Xe=b.viewTo-1,Yt=b.lineDiv.lastChild):(Xe=xt(b.view[ke+1].line)-1,Yt=b.view[ke+1].node.previousSibling),!xe)return!1;for(var nn=a.doc.splitLines(Gu(a,xe,Yt,fe,Xe)),In=xn(a.doc,Ge(fe,0),Ge(Xe,dn(a.doc,Xe).text.length));nn.length>1&&In.length>1;)if(rt(nn)==rt(In))nn.pop(),In.pop(),Xe--;else if(nn[0]==In[0])nn.shift(),In.shift(),fe++;else break;for(var Sn=0,tr=0,vr=nn[0],Ar=In[0],Gr=Math.min(vr.length,Ar.length);Sn<Gr&&vr.charCodeAt(Sn)==Ar.charCodeAt(Sn);)++Sn;for(var mo=rt(nn),Xr=rt(In),Do=Math.min(mo.length-(nn.length==1?Sn:0),Xr.length-(In.length==1?Sn:0));tr<Do&&mo.charCodeAt(mo.length-tr-1)==Xr.charCodeAt(Xr.length-tr-1);)++tr;if(nn.length==1&&In.length==1&&fe==E.line)for(;Sn&&Sn>E.ch&&mo.charCodeAt(mo.length-tr-1)==Xr.charCodeAt(Xr.length-tr-1);)Sn--,tr++;nn[nn.length-1]=mo.slice(0,mo.length-tr).replace(/^\u200b+/,""),nn[0]=nn[0].slice(Sn).replace(/\u200b+$/,"");var ii=Ge(fe,Sn),Uo=Ge(Xe,In.length?rt(In).length-tr:0);if(nn.length>1||nn[0]||At(ii,Uo))return Fi(a.doc,nn,ii,Uo,"+input"),!0},ea.prototype.ensurePolled=function(){this.forceCompositionEnd()},ea.prototype.reset=function(){this.forceCompositionEnd()},ea.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},ea.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))},ea.prototype.updateFromDOM=function(){var a=this;(this.cm.isReadOnly()||!this.pollContent())&&Lr(this.cm,function(){return bo(a.cm)})},ea.prototype.setUneditable=function(a){a.contentEditable="false"},ea.prototype.onKeyPress=function(a){a.charCode==0||this.composing||(a.preventDefault(),this.cm.isReadOnly()||Xn(this.cm,Pu)(this.cm,String.fromCharCode(a.charCode==null?a.keyCode:a.charCode),0))},ea.prototype.readOnlyChanged=function(a){this.div.contentEditable=String(a!="nocursor")},ea.prototype.onContextMenu=function(){},ea.prototype.resetPosition=function(){},ea.prototype.needsContentAttribute=!0;function Zu(a,b){var x=Ol(a,b.line);if(!x||x.hidden)return null;var E=dn(a.doc,b.line),ee=zl(x,E,b.line),oe=Le(E,a.doc.direction),fe="left";if(oe){var xe=ft(oe,b.ch);fe=xe%2?"right":"left"}var ke=Xl(ee.map,b.ch,fe);return ke.offset=ke.collapse=="right"?ke.end:ke.start,ke}function Uu(a){for(var b=a;b;b=b.parentNode)if(/CodeMirror-gutter-wrapper/.test(b.className))return!0;return!1}function Gs(a,b){return b&&(a.bad=!0),a}function Gu(a,b,x,E,ee){var oe="",fe=!1,xe=a.doc.lineSeparator(),ke=!1;function Xe(Sn){return function(tr){return tr.id==Sn}}function Yt(){fe&&(oe+=xe,ke&&(oe+=xe),fe=ke=!1)}function nn(Sn){Sn&&(Yt(),oe+=Sn)}function In(Sn){if(Sn.nodeType==1){var tr=Sn.getAttribute("cm-text");if(tr){nn(tr);return}var vr=Sn.getAttribute("cm-marker"),Ar;if(vr){var Gr=a.findMarks(Ge(E,0),Ge(ee+1,0),Xe(+vr));Gr.length&&(Ar=Gr[0].find(0))&&nn(xn(a.doc,Ar.from,Ar.to).join(xe));return}if(Sn.getAttribute("contenteditable")=="false")return;var mo=/^(pre|div|p|li|table|br)$/i.test(Sn.nodeName);if(!/^br$/i.test(Sn.nodeName)&&Sn.textContent.length==0)return;mo&&Yt();for(var Xr=0;Xr<Sn.childNodes.length;Xr++)In(Sn.childNodes[Xr]);/^(pre|p)$/i.test(Sn.nodeName)&&(ke=!0),mo&&(fe=!0)}else Sn.nodeType==3&&nn(Sn.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;In(b),b!=x;)b=b.nextSibling,ke=!1;return oe}function Cu(a,b,x){var E;if(b==a.display.lineDiv){if(E=a.display.lineDiv.childNodes[x],!E)return Gs(a.clipPos(Ge(a.display.viewTo-1)),!0);b=null,x=0}else for(E=b;;E=E.parentNode){if(!E||E==a.display.lineDiv)return null;if(E.parentNode&&E.parentNode==a.display.lineDiv)break}for(var ee=0;ee<a.display.view.length;ee++){var oe=a.display.view[ee];if(oe.node==E)return Xu(oe,b,x)}}function Xu(a,b,x){var E=a.text.firstChild,ee=!1;if(!b||!et(E,b))return Gs(Ge(xt(a.line),0),!0);if(b==E&&(ee=!0,b=E.childNodes[x],x=0,!b)){var oe=a.rest?rt(a.rest):a.line;return Gs(Ge(xt(oe),oe.text.length),ee)}var fe=b.nodeType==3?b:null,xe=b;for(!fe&&b.childNodes.length==1&&b.firstChild.nodeType==3&&(fe=b.firstChild,x&&(x=fe.nodeValue.length));xe.parentNode!=E;)xe=xe.parentNode;var ke=a.measure,Xe=ke.maps;function Yt(Ar,Gr,mo){for(var Xr=-1;Xr<(Xe?Xe.length:0);Xr++)for(var Do=Xr<0?ke.map:Xe[Xr],ii=0;ii<Do.length;ii+=3){var Uo=Do[ii+2];if(Uo==Ar||Uo==Gr){var Si=xt(Xr<0?a.line:a.rest[Xr]),ca=Do[ii]+mo;return(mo<0||Uo!=Ar)&&(ca=Do[ii+(mo?1:0)]),Ge(Si,ca)}}}var nn=Yt(fe,xe,x);if(nn)return Gs(nn,ee);for(var In=xe.nextSibling,Sn=fe?fe.nodeValue.length-x:0;In;In=In.nextSibling){if(nn=Yt(In,In.firstChild,0),nn)return Gs(Ge(nn.line,nn.ch-Sn),ee);Sn+=In.textContent.length}for(var tr=xe.previousSibling,vr=x;tr;tr=tr.previousSibling){if(nn=Yt(tr,tr.firstChild,-1),nn)return Gs(Ge(nn.line,nn.ch+vr),ee);vr+=tr.textContent.length}}var Ta=function(a){this.cm=a,this.prevInput="",this.pollingFast=!1,this.polling=new ye,this.hasSelection=!1,this.composing=null};Ta.prototype.init=function(a){var b=this,x=this,E=this.cm;this.createField(a);var ee=this.textarea;a.wrapper.insertBefore(this.wrapper,a.wrapper.firstChild),je&&(ee.style.width="0px"),Nt(ee,"input",function(){pe&&me>=9&&b.hasSelection&&(b.hasSelection=null),x.poll()}),Nt(ee,"paste",function(fe){Rt(E,fe)||Tu(fe,E)||(E.state.pasteIncoming=+new Date,x.fastPoll())});function oe(fe){if(!Rt(E,fe)){if(E.somethingSelected())bu({lineWise:!1,text:E.getSelections()});else if(E.options.lineWiseCopyCut){var xe=Lu(E);bu({lineWise:!0,text:xe.text}),fe.type=="cut"?E.setSelections(xe.ranges,null,Ee):(x.prevInput="",ee.value=xe.text.join(`
`),Ze(ee))}else return;fe.type=="cut"&&(E.state.cutIncoming=+new Date)}}Nt(ee,"cut",oe),Nt(ee,"copy",oe),Nt(a.scroller,"paste",function(fe){if(!(Qi(a,fe)||Rt(E,fe))){if(!ee.dispatchEvent){E.state.pasteIncoming=+new Date,x.focus();return}var xe=new Event("paste");xe.clipboardData=fe.clipboardData,ee.dispatchEvent(xe)}}),Nt(a.lineSpace,"selectstart",function(fe){Qi(a,fe)||yt(fe)}),Nt(ee,"compositionstart",function(){var fe=E.getCursor("from");x.composing&&x.composing.range.clear(),x.composing={start:fe,range:E.markText(fe,E.getCursor("to"),{className:"CodeMirror-composing"})}}),Nt(ee,"compositionend",function(){x.composing&&(x.poll(),x.composing.range.clear(),x.composing=null)})},Ta.prototype.createField=function(a){this.wrapper=_u(),this.textarea=this.wrapper.firstChild},Ta.prototype.screenReaderLabelChanged=function(a){a?this.textarea.setAttribute("aria-label",a):this.textarea.removeAttribute("aria-label")},Ta.prototype.prepareSelection=function(){var a=this.cm,b=a.display,x=a.doc,E=Nr(a);if(a.options.moveInputWithCursor){var ee=Zi(a,x.sel.primary().head,"div"),oe=b.wrapper.getBoundingClientRect(),fe=b.lineDiv.getBoundingClientRect();E.teTop=Math.max(0,Math.min(b.wrapper.clientHeight-10,ee.top+fe.top-oe.top)),E.teLeft=Math.max(0,Math.min(b.wrapper.clientWidth-10,ee.left+fe.left-oe.left))}return E},Ta.prototype.showSelection=function(a){var b=this.cm,x=b.display;it(x.cursorDiv,a.cursors),it(x.selectionDiv,a.selection),a.teTop!=null&&(this.wrapper.style.top=a.teTop+"px",this.wrapper.style.left=a.teLeft+"px")},Ta.prototype.reset=function(a){if(!(this.contextMenuPending||this.composing)){var b=this.cm;if(b.somethingSelected()){this.prevInput="";var x=b.getSelection();this.textarea.value=x,b.state.focused&&Ze(this.textarea),pe&&me>=9&&(this.hasSelection=x)}else a||(this.prevInput=this.textarea.value="",pe&&me>=9&&(this.hasSelection=null))}},Ta.prototype.getField=function(){return this.textarea},Ta.prototype.supportsTouch=function(){return!1},Ta.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!Ce||Ne()!=this.textarea))try{this.textarea.focus()}catch(a){}},Ta.prototype.blur=function(){this.textarea.blur()},Ta.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ta.prototype.receivedFocus=function(){this.slowPoll()},Ta.prototype.slowPoll=function(){var a=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){a.poll(),a.cm.state.focused&&a.slowPoll()})},Ta.prototype.fastPoll=function(){var a=!1,b=this;b.pollingFast=!0;function x(){var E=b.poll();!E&&!a?(a=!0,b.polling.set(60,x)):(b.pollingFast=!1,b.slowPoll())}b.polling.set(20,x)},Ta.prototype.poll=function(){var a=this,b=this.cm,x=this.textarea,E=this.prevInput;if(this.contextMenuPending||!b.state.focused||Fn(x)&&!E&&!this.composing||b.isReadOnly()||b.options.disableInput||b.state.keySeq)return!1;var ee=x.value;if(ee==E&&!b.somethingSelected())return!1;if(pe&&me>=9&&this.hasSelection===ee||Se&&/[\uf700-\uf7ff]/.test(ee))return b.display.input.reset(),!1;if(b.doc.sel==b.display.selForContextMenu){var oe=ee.charCodeAt(0);if(oe==8203&&!E&&(E="\u200B"),oe==8666)return this.reset(),this.cm.execCommand("undo")}for(var fe=0,xe=Math.min(E.length,ee.length);fe<xe&&E.charCodeAt(fe)==ee.charCodeAt(fe);)++fe;return Lr(b,function(){Pu(b,ee.slice(fe),E.length-fe,null,a.composing?"*compose":null),ee.length>1e3||ee.indexOf(`
`)>-1?x.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},Ta.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ta.prototype.onKeyPress=function(){pe&&me>=9&&(this.hasSelection=null),this.fastPoll()},Ta.prototype.onContextMenu=function(a){var b=this,x=b.cm,E=x.display,ee=b.textarea;b.contextMenuPending&&b.contextMenuPending();var oe=gr(x,a),fe=E.scroller.scrollTop;if(!oe||se)return;var xe=x.options.resetSelectionOnContextMenu;xe&&x.doc.sel.contains(oe)==-1&&Xn(x,Jr)(x.doc,er(oe),Ee);var ke=ee.style.cssText,Xe=b.wrapper.style.cssText,Yt=b.wrapper.offsetParent.getBoundingClientRect();b.wrapper.style.cssText="position: static",ee.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(a.clientY-Yt.top-5)+"px; left: "+(a.clientX-Yt.left-5)+`px;
z-index: 1000; background: `+(pe?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var nn;ve&&(nn=window.scrollY),E.input.focus(),ve&&window.scrollTo(null,nn),E.input.reset(),x.somethingSelected()||(ee.value=b.prevInput=" "),b.contextMenuPending=Sn,E.selForContextMenu=x.doc.sel,clearTimeout(E.detectingSelectAll);function In(){if(ee.selectionStart!=null){var vr=x.somethingSelected(),Ar="\u200B"+(vr?ee.value:"");ee.value="\u21DA",ee.value=Ar,b.prevInput=vr?"":"\u200B",ee.selectionStart=1,ee.selectionEnd=Ar.length,E.selForContextMenu=x.doc.sel}}function Sn(){if(b.contextMenuPending==Sn&&(b.contextMenuPending=!1,b.wrapper.style.cssText=Xe,ee.style.cssText=ke,pe&&me<9&&E.scrollbars.setScrollTop(E.scroller.scrollTop=fe),ee.selectionStart!=null)){(!pe||pe&&me<9)&&In();var vr=0,Ar=function(){E.selForContextMenu==x.doc.sel&&ee.selectionStart==0&&ee.selectionEnd>0&&b.prevInput=="\u200B"?Xn(x,Zo)(x):vr++<10?E.detectingSelectAll=setTimeout(Ar,500):(E.selForContextMenu=null,E.input.reset())};E.detectingSelectAll=setTimeout(Ar,200)}}if(pe&&me>=9&&In(),Oe){Ve(a);var tr=function(){un(window,"mouseup",tr),setTimeout(Sn,20)};Nt(window,"mouseup",tr)}else setTimeout(Sn,50)},Ta.prototype.readOnlyChanged=function(a){a||this.reset(),this.textarea.disabled=a=="nocursor",this.textarea.readOnly=!!a},Ta.prototype.setUneditable=function(){},Ta.prototype.needsContentAttribute=!1;function Yu(a,b){if(b=b?Mt(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 x=Ne();b.autofocus=x==a||a.getAttribute("autofocus")!=null&&x==document.body}function E(){a.value=xe.getValue()}var ee;if(a.form&&(Nt(a.form,"submit",E),!b.leaveSubmitMethodAlone)){var oe=a.form;ee=oe.submit;try{var fe=oe.submit=function(){E(),oe.submit=ee,oe.submit(),oe.submit=fe}}catch(ke){}}b.finishInit=function(ke){ke.save=E,ke.getTextArea=function(){return a},ke.toTextArea=function(){ke.toTextArea=isNaN,E(),a.parentNode.removeChild(ke.getWrapperElement()),a.style.display="",a.form&&(un(a.form,"submit",E),!b.leaveSubmitMethodAlone&&typeof a.form.submit=="function"&&(a.form.submit=ee))}},a.style.display="none";var xe=Sa(function(ke){return a.parentNode.insertBefore(ke,a.nextSibling)},b);return xe}function Qu(a){a.off=un,a.on=Nt,a.wheelEventPixels=_n,a.Doc=Gi,a.splitLines=hn,a.countColumn=Fe,a.findColumn=zt,a.isWordChar=ie,a.Pass=Lt,a.signal=rn,a.Line=Fo,a.changeEnd=Er,a.scrollbarModel=Qs,a.Pos=Ge,a.cmpPos=At,a.modes=an,a.mimeModes=Xt,a.resolveMode=wn,a.getMode=Vn,a.modeExtensions=Mn,a.extendMode=$n,a.copyState=Wn,a.startState=ur,a.innerMode=Hn,a.commands=ns,a.keyMap=Ma,a.keyName=ps,a.isModifierKey=eu,a.lookupKey=xs,a.normalizeKeyMap=Va,a.StringStream=rr,a.SharedTextMarker=Ui,a.TextMarker=ll,a.LineWidget=Li,a.e_preventDefault=yt,a.e_stopPropagation=Kt,a.e_stop=Ve,a.addClass=ue,a.contains=et,a.rmClass=Ke,a.keyNames=gi}zu(Sa),Vu(Sa);var Ju="iter insert remove copy getEditor constructor".split(" ");for(var Eu in Gi.prototype)Gi.prototype.hasOwnProperty(Eu)&&Bt(Ju,Eu)<0&&(Sa.prototype[Eu]=function(a){return function(){return a.apply(this.doc,arguments)}}(Gi.prototype[Eu]));return ze(Gi),Sa.inputStyles={textarea:Ta,contenteditable:ea},Sa.defineMode=function(a){!Sa.defaults.mode&&a!="null"&&(Sa.defaults.mode=a),yn.apply(this,arguments)},Sa.defineMIME=sn,Sa.defineMode("null",function(){return{token:function(a){return a.skipToEnd()}}}),Sa.defineMIME("text/plain","null"),Sa.defineExtension=function(a,b){Sa.prototype[a]=b},Sa.defineDocExtension=function(a,b){Gi.prototype[a]=b},Sa.fromTextArea=Yu,Qu(Sa),Sa.version="5.58.2",Sa})},25419:function(bn,Wt,z){(function(y){y(z(89780),z(15525),z(98101))})(function(y){"use strict";y.defineMode("markdown",function(he,de){var $e=y.getMode(he,"text/html"),pe=$e.name=="null";function me(Fe){if(y.findModeByName){var ye=y.findModeByName(Fe);ye&&(Fe=ye.mime||ye.mimes[0])}var Bt=y.getMode(he,Fe);return Bt.name=="null"?null:Bt}de.highlightFormatting===void 0&&(de.highlightFormatting=!1),de.maxBlockquoteDepth===void 0&&(de.maxBlockquoteDepth=0),de.taskLists===void 0&&(de.taskLists=!1),de.strikethrough===void 0&&(de.strikethrough=!1),de.emoji===void 0&&(de.emoji=!1),de.fencedCodeBlockHighlighting===void 0&&(de.fencedCodeBlockHighlighting=!0),de.fencedCodeBlockDefaultMode===void 0&&(de.fencedCodeBlockDefaultMode="text/plain"),de.xml===void 0&&(de.xml=!0),de.tokenTypeOverrides===void 0&&(de.tokenTypeOverrides={});var ve={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 Me in ve)ve.hasOwnProperty(Me)&&de.tokenTypeOverrides[Me]&&(ve[Me]=de.tokenTypeOverrides[Me]);var ge=/^([*\-_])(?:\s*\1){2,}\s*$/,se=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,_e=/^\[(x| )\](?=\s)/i,Ae=de.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,tt=/^ {0,3}(?:\={1,}|-{2,})\s*$/,je=/^[^#!\[\]*_\\<>` "'(~:]+/,Te=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,Ce=/^\s*\[[^\]]+?\]:.*$/,Se=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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 Ye(Fe,ye,Bt){return ye.f=ye.inline=Bt,Bt(Fe,ye)}function ct(Fe,ye,Bt){return ye.f=ye.block=Bt,Bt(Fe,ye)}function Be(Fe){return!Fe||!/\S/.test(Fe.string)}function Oe(Fe){if(Fe.linkTitle=!1,Fe.linkHref=!1,Fe.linkText=!1,Fe.em=!1,Fe.strong=!1,Fe.strikethrough=!1,Fe.quote=0,Fe.indentedCode=!1,Fe.f==Ke){var ye=pe;if(!ye){var Bt=y.innerMode($e,Fe.htmlState);ye=Bt.mode.name=="xml"&&Bt.state.tagStart===null&&!Bt.state.context&&Bt.state.tokenize.isInText}ye&&(Fe.f=ut,Fe.block=Re,Fe.htmlState=null)}return Fe.trailingSpace=0,Fe.trailingSpaceNewLine=!1,Fe.prevLine=Fe.thisLine,Fe.thisLine={stream:null},null}function Re(Fe,ye){var Bt=Fe.column()===ye.indentation,jt=Be(ye.prevLine.stream),Lt=ye.indentedCode,Ee=ye.prevLine.hr,ot=ye.list!==!1,qe=(ye.listStack[ye.listStack.length-1]||0)+3;ye.indentedCode=!1;var zt=ye.indentation;if(ye.indentationDiff===null&&(ye.indentationDiff=ye.indentation,ot)){for(ye.list=null;zt<ye.listStack[ye.listStack.length-1];)ye.listStack.pop(),ye.listStack.length?ye.indentation=ye.listStack[ye.listStack.length-1]:ye.list=!1;ye.list!==!1&&(ye.indentationDiff=zt-ye.listStack[ye.listStack.length-1])}var ht=!jt&&!Ee&&!ye.prevLine.header&&(!ot||!Lt)&&!ye.prevLine.fencedCodeEnd,lt=(ye.list===!1||Ee||jt)&&ye.indentation<=qe&&Fe.match(ge),rt=null;if(ye.indentationDiff>=4&&(Lt||ye.prevLine.fencedCodeEnd||ye.prevLine.header||jt))return Fe.skipToEnd(),ye.indentedCode=!0,ve.code;if(Fe.eatSpace())return null;if(Bt&&ye.indentation<=qe&&(rt=Fe.match(Ae))&&rt[1].length<=6)return ye.quote=0,ye.header=rt[1].length,ye.thisLine.header=!0,de.highlightFormatting&&(ye.formatting="header"),ye.f=ye.inline,it(ye);if(ye.indentation<=qe&&Fe.eat(">"))return ye.quote=Bt?1:ye.quote+1,de.highlightFormatting&&(ye.formatting="quote"),Fe.eatSpace(),it(ye);if(!lt&&!ye.setext&&Bt&&ye.indentation<=qe&&(rt=Fe.match(se))){var on=rt[1]?"ol":"ul";return ye.indentation=zt+Fe.current().length,ye.list=!0,ye.quote=0,ye.listStack.push(ye.indentation),ye.em=!1,ye.strong=!1,ye.code=!1,ye.strikethrough=!1,de.taskLists&&Fe.match(_e,!1)&&(ye.taskList=!0),ye.f=ye.inline,de.highlightFormatting&&(ye.formatting=["list","list-"+on]),it(ye)}else{if(Bt&&ye.indentation<=qe&&(rt=Fe.match(Te,!0)))return ye.quote=0,ye.fencedEndRE=new RegExp(rt[1]+"+ *$"),ye.localMode=de.fencedCodeBlockHighlighting&&me(rt[2]||de.fencedCodeBlockDefaultMode),ye.localMode&&(ye.localState=y.startState(ye.localMode)),ye.f=ye.block=vt,de.highlightFormatting&&(ye.formatting="code-block"),ye.code=-1,it(ye);if(ye.setext||(!ht||!ot)&&!ye.quote&&ye.list===!1&&!ye.code&&!lt&&!Ce.test(Fe.string)&&(rt=Fe.lookAhead(1))&&(rt=rt.match(tt)))return ye.setext?(ye.header=ye.setext,ye.setext=0,Fe.skipToEnd(),de.highlightFormatting&&(ye.formatting="header")):(ye.header=rt[0].charAt(0)=="="?1:2,ye.setext=ye.header),ye.thisLine.header=!0,ye.f=ye.inline,it(ye);if(lt)return Fe.skipToEnd(),ye.hr=!0,ye.thisLine.hr=!0,ve.hr;if(Fe.peek()==="[")return Ye(Fe,ye,mt)}return Ye(Fe,ye,ye.inline)}function Ke(Fe,ye){var Bt=$e.token(Fe,ye.htmlState);if(!pe){var jt=y.innerMode($e,ye.htmlState);(jt.mode.name=="xml"&&jt.state.tagStart===null&&!jt.state.context&&jt.state.tokenize.isInText||ye.md_inside&&Fe.current().indexOf(">")>-1)&&(ye.f=ut,ye.block=Re,ye.htmlState=null)}return Bt}function vt(Fe,ye){var Bt=ye.listStack[ye.listStack.length-1]||0,jt=ye.indentation<Bt,Lt=Bt+3;if(ye.fencedEndRE&&ye.indentation<=Lt&&(jt||Fe.match(ye.fencedEndRE))){de.highlightFormatting&&(ye.formatting="code-block");var Ee;return jt||(Ee=it(ye)),ye.localMode=ye.localState=null,ye.block=Re,ye.f=ut,ye.fencedEndRE=null,ye.code=0,ye.thisLine.fencedCodeEnd=!0,jt?ct(Fe,ye,ye.block):Ee}else return ye.localMode?ye.localMode.token(Fe,ye.localState):(Fe.skipToEnd(),ve.code)}function it(Fe){var ye=[];if(Fe.formatting){ye.push(ve.formatting),typeof Fe.formatting=="string"&&(Fe.formatting=[Fe.formatting]);for(var Bt=0;Bt<Fe.formatting.length;Bt++)ye.push(ve.formatting+"-"+Fe.formatting[Bt]),Fe.formatting[Bt]==="header"&&ye.push(ve.formatting+"-"+Fe.formatting[Bt]+"-"+Fe.header),Fe.formatting[Bt]==="quote"&&(!de.maxBlockquoteDepth||de.maxBlockquoteDepth>=Fe.quote?ye.push(ve.formatting+"-"+Fe.formatting[Bt]+"-"+Fe.quote):ye.push("error"))}if(Fe.taskOpen)return ye.push("meta"),ye.length?ye.join(" "):null;if(Fe.taskClosed)return ye.push("property"),ye.length?ye.join(" "):null;if(Fe.linkHref?ye.push(ve.linkHref,"url"):(Fe.strong&&ye.push(ve.strong),Fe.em&&ye.push(ve.em),Fe.strikethrough&&ye.push(ve.strikethrough),Fe.emoji&&ye.push(ve.emoji),Fe.linkText&&ye.push(ve.linkText),Fe.code&&ye.push(ve.code),Fe.image&&ye.push(ve.image),Fe.imageAltText&&ye.push(ve.imageAltText,"link"),Fe.imageMarker&&ye.push(ve.imageMarker)),Fe.header&&ye.push(ve.header,ve.header+"-"+Fe.header),Fe.quote&&(ye.push(ve.quote),!de.maxBlockquoteDepth||de.maxBlockquoteDepth>=Fe.quote?ye.push(ve.quote+"-"+Fe.quote):ye.push(ve.quote+"-"+de.maxBlockquoteDepth)),Fe.list!==!1){var jt=(Fe.listStack.length-1)%3;jt?jt===1?ye.push(ve.list2):ye.push(ve.list3):ye.push(ve.list1)}return Fe.trailingSpaceNewLine?ye.push("trailing-space-new-line"):Fe.trailingSpace&&ye.push("trailing-space-"+(Fe.trailingSpace%2?"a":"b")),ye.length?ye.join(" "):null}function Qe(Fe,ye){if(Fe.match(je,!0))return it(ye)}function ut(Fe,ye){var Bt=ye.text(Fe,ye);if(typeof Bt!="undefined")return Bt;if(ye.list)return ye.list=null,it(ye);if(ye.taskList){var jt=Fe.match(_e,!0)[1]===" ";return jt?ye.taskOpen=!0:ye.taskClosed=!0,de.highlightFormatting&&(ye.formatting="task"),ye.taskList=!1,it(ye)}if(ye.taskOpen=!1,ye.taskClosed=!1,ye.header&&Fe.match(/^#+$/,!0))return de.highlightFormatting&&(ye.formatting="header"),it(ye);var Lt=Fe.next();if(ye.linkTitle){ye.linkTitle=!1;var Ee=Lt;Lt==="("&&(Ee=")"),Ee=(Ee+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var ot="^\\s*(?:[^"+Ee+"\\\\]+|\\\\\\\\|\\\\.)"+Ee;if(Fe.match(new RegExp(ot),!0))return ve.linkHref}if(Lt==="`"){var qe=ye.formatting;de.highlightFormatting&&(ye.formatting="code"),Fe.eatWhile("`");var zt=Fe.current().length;if(ye.code==0&&(!ye.quote||zt==1))return ye.code=zt,it(ye);if(zt==ye.code){var ht=it(ye);return ye.code=0,ht}else return ye.formatting=qe,it(ye)}else if(ye.code)return it(ye);if(Lt==="\\"&&(Fe.next(),de.highlightFormatting)){var lt=it(ye),rt=ve.formatting+"-escape";return lt?lt+" "+rt:rt}if(Lt==="!"&&Fe.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return ye.imageMarker=!0,ye.image=!0,de.highlightFormatting&&(ye.formatting="image"),it(ye);if(Lt==="["&&ye.imageMarker&&Fe.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return ye.imageMarker=!1,ye.imageAltText=!0,de.highlightFormatting&&(ye.formatting="image"),it(ye);if(Lt==="]"&&ye.imageAltText){de.highlightFormatting&&(ye.formatting="image");var lt=it(ye);return ye.imageAltText=!1,ye.image=!1,ye.inline=ye.f=et,lt}if(Lt==="["&&!ye.image)return ye.linkText&&Fe.match(/^.*?\]/)||(ye.linkText=!0,de.highlightFormatting&&(ye.formatting="link")),it(ye);if(Lt==="]"&&ye.linkText){de.highlightFormatting&&(ye.formatting="link");var lt=it(ye);return ye.linkText=!1,ye.inline=ye.f=Fe.match(/\(.*?\)| ?\[.*?\]/,!1)?et:ut,lt}if(Lt==="<"&&Fe.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){ye.f=ye.inline=be,de.highlightFormatting&&(ye.formatting="link");var lt=it(ye);return lt?lt+=" ":lt="",lt+ve.linkInline}if(Lt==="<"&&Fe.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){ye.f=ye.inline=be,de.highlightFormatting&&(ye.formatting="link");var lt=it(ye);return lt?lt+=" ":lt="",lt+ve.linkEmail}if(de.xml&&Lt==="<"&&Fe.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var on=Fe.string.indexOf(">",Fe.pos);if(on!=-1){var kt=Fe.string.substring(Fe.start,on);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(kt)&&(ye.md_inside=!0)}return Fe.backUp(1),ye.htmlState=y.startState($e),ct(Fe,ye,Ke)}if(de.xml&&Lt==="<"&&Fe.match(/^\/\w*?>/))return ye.md_inside=!1,"tag";if(Lt==="*"||Lt==="_"){for(var ae=1,re=Fe.pos==1?" ":Fe.string.charAt(Fe.pos-2);ae<3&&Fe.eat(Lt);)ae++;var te=Fe.peek()||" ",ie=!/\s/.test(te)&&(!Se.test(te)||/\s/.test(re)||Se.test(re)),ce=!/\s/.test(re)&&(!Se.test(re)||/\s/.test(te)||Se.test(te)),ne=null,le=null;if(ae%2&&(!ye.em&&ie&&(Lt==="*"||!ce||Se.test(re))?ne=!0:ye.em==Lt&&ce&&(Lt==="*"||!ie||Se.test(te))&&(ne=!1)),ae>1&&(!ye.strong&&ie&&(Lt==="*"||!ce||Se.test(re))?le=!0:ye.strong==Lt&&ce&&(Lt==="*"||!ie||Se.test(te))&&(le=!1)),le!=null||ne!=null){de.highlightFormatting&&(ye.formatting=ne==null?"strong":le==null?"em":"strong em"),ne===!0&&(ye.em=Lt),le===!0&&(ye.strong=Lt);var ht=it(ye);return ne===!1&&(ye.em=!1),le===!1&&(ye.strong=!1),ht}}else if(Lt===" "&&(Fe.eat("*")||Fe.eat("_"))){if(Fe.peek()===" ")return it(ye);Fe.backUp(1)}if(de.strikethrough){if(Lt==="~"&&Fe.eatWhile(Lt)){if(ye.strikethrough){de.highlightFormatting&&(ye.formatting="strikethrough");var ht=it(ye);return ye.strikethrough=!1,ht}else if(Fe.match(/^[^\s]/,!1))return ye.strikethrough=!0,de.highlightFormatting&&(ye.formatting="strikethrough"),it(ye)}else if(Lt===" "&&Fe.match(/^~~/,!0)){if(Fe.peek()===" ")return it(ye);Fe.backUp(2)}}if(de.emoji&&Lt===":"&&Fe.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){ye.emoji=!0,de.highlightFormatting&&(ye.formatting="emoji");var Ie=it(ye);return ye.emoji=!1,Ie}return Lt===" "&&(Fe.match(/^ +$/,!1)?ye.trailingSpace++:ye.trailingSpace&&(ye.trailingSpaceNewLine=!0)),it(ye)}function be(Fe,ye){var Bt=Fe.next();if(Bt===">"){ye.f=ye.inline=ut,de.highlightFormatting&&(ye.formatting="link");var jt=it(ye);return jt?jt+=" ":jt="",jt+ve.linkInline}return Fe.match(/^[^>]+/,!0),ve.linkInline}function et(Fe,ye){if(Fe.eatSpace())return null;var Bt=Fe.next();return Bt==="("||Bt==="["?(ye.f=ye.inline=ue(Bt==="("?")":"]"),de.highlightFormatting&&(ye.formatting="link-string"),ye.linkHref=!0,it(ye)):"error"}var Ne={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function ue(Fe){return function(ye,Bt){var jt=ye.next();if(jt===Fe){Bt.f=Bt.inline=ut,de.highlightFormatting&&(Bt.formatting="link-string");var Lt=it(Bt);return Bt.linkHref=!1,Lt}return ye.match(Ne[Fe]),Bt.linkHref=!0,it(Bt)}}function mt(Fe,ye){return Fe.match(/^([^\]\\]|\\.)*\]:/,!1)?(ye.f=Ze,Fe.next(),de.highlightFormatting&&(ye.formatting="link"),ye.linkText=!0,it(ye)):Ye(Fe,ye,ut)}function Ze(Fe,ye){if(Fe.match(/^\]:/,!0)){ye.f=ye.inline=nt,de.highlightFormatting&&(ye.formatting="link");var Bt=it(ye);return ye.linkText=!1,Bt}return Fe.match(/^([^\]\\]|\\.)+/,!0),ve.linkText}function nt(Fe,ye){return Fe.eatSpace()?null:(Fe.match(/^[^\s]+/,!0),Fe.peek()===void 0?ye.linkTitle=!0:Fe.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),ye.f=ye.inline=ut,ve.linkHref+" url")}var Mt={startState:function(){return{f:Re,prevLine:{stream:null},thisLine:{stream:null},block:Re,htmlState:null,indentation:0,inline:ut,text:Qe,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(Fe){return{f:Fe.f,prevLine:Fe.prevLine,thisLine:Fe.thisLine,block:Fe.block,htmlState:Fe.htmlState&&y.copyState($e,Fe.htmlState),indentation:Fe.indentation,localMode:Fe.localMode,localState:Fe.localMode?y.copyState(Fe.localMode,Fe.localState):null,inline:Fe.inline,text:Fe.text,formatting:!1,linkText:Fe.linkText,linkTitle:Fe.linkTitle,linkHref:Fe.linkHref,code:Fe.code,em:Fe.em,strong:Fe.strong,strikethrough:Fe.strikethrough,emoji:Fe.emoji,header:Fe.header,setext:Fe.setext,hr:Fe.hr,taskList:Fe.taskList,list:Fe.list,listStack:Fe.listStack.slice(0),quote:Fe.quote,indentedCode:Fe.indentedCode,trailingSpace:Fe.trailingSpace,trailingSpaceNewLine:Fe.trailingSpaceNewLine,md_inside:Fe.md_inside,fencedEndRE:Fe.fencedEndRE}},token:function(Fe,ye){if(ye.formatting=!1,Fe!=ye.thisLine.stream){if(ye.header=0,ye.hr=!1,Fe.match(/^\s*$/,!0))return Oe(ye),null;if(ye.prevLine=ye.thisLine,ye.thisLine={stream:Fe},ye.taskList=!1,ye.trailingSpace=0,ye.trailingSpaceNewLine=!1,!ye.localState&&(ye.f=ye.block,ye.f!=Ke)){var Bt=Fe.match(/^\s*/,!0)[0].replace(/\t/g,Pe).length;if(ye.indentation=Bt,ye.indentationDiff=null,Bt>0)return null}}return ye.f(Fe,ye)},innerMode:function(Fe){return Fe.block==Ke?{state:Fe.htmlState,mode:$e}:Fe.localState?{state:Fe.localState,mode:Fe.localMode}:{state:Fe,mode:Mt}},indent:function(Fe,ye,Bt){return Fe.block==Ke&&$e.indent?$e.indent(Fe.htmlState,ye,Bt):Fe.localState&&Fe.localMode.indent?Fe.localMode.indent(Fe.localState,ye,Bt):y.Pass},blankLine:Oe,getType:it,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Mt},"xml"),y.defineMIME("text/markdown","markdown"),y.defineMIME("text/x-markdown","markdown")})},98101:function(bn,Wt,z){(function(y){y(z(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 he=0;he<y.modeInfo.length;he++){var de=y.modeInfo[he];de.mimes&&(de.mime=de.mimes[0])}y.findModeByMIME=function($e){$e=$e.toLowerCase();for(var pe=0;pe<y.modeInfo.length;pe++){var me=y.modeInfo[pe];if(me.mime==$e)return me;if(me.mimes){for(var ve=0;ve<me.mimes.length;ve++)if(me.mimes[ve]==$e)return me}}if(/\+xml$/.test($e))return y.findModeByMIME("application/xml");if(/\+json$/.test($e))return y.findModeByMIME("application/json")},y.findModeByExtension=function($e){$e=$e.toLowerCase();for(var pe=0;pe<y.modeInfo.length;pe++){var me=y.modeInfo[pe];if(me.ext){for(var ve=0;ve<me.ext.length;ve++)if(me.ext[ve]==$e)return me}}},y.findModeByFileName=function($e){for(var pe=0;pe<y.modeInfo.length;pe++){var me=y.modeInfo[pe];if(me.file&&me.file.test($e))return me}var ve=$e.lastIndexOf("."),Me=ve>-1&&$e.substring(ve+1,$e.length);if(Me)return y.findModeByExtension(Me)},y.findModeByName=function($e){$e=$e.toLowerCase();for(var pe=0;pe<y.modeInfo.length;pe++){var me=y.modeInfo[pe];if(me.name.toLowerCase()==$e)return me;if(me.alias){for(var ve=0;ve<me.alias.length;ve++)if(me.alias[ve].toLowerCase()==$e)return me}}}})},67549:function(bn,Wt,z){(function(y){y(z(89780))})(function(y){"use strict";y.defineMode("stex",function(he,de){"use strict";function $e(je,Te){je.cmdState.push(Te)}function pe(je){return je.cmdState.length>0?je.cmdState[je.cmdState.length-1]:null}function me(je){var Te=je.cmdState.pop();Te&&Te.closeBracket()}function ve(je){for(var Te=je.cmdState,Ce=Te.length-1;Ce>=0;Ce--){var Se=Te[Ce];if(Se.name!="DEFAULT")return Se}return{styleIdentifier:function(){return null}}}function Me(je,Te,Ce){return function(){this.name=je,this.bracketNo=0,this.style=Te,this.styles=Ce,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var ge={};ge.importmodule=Me("importmodule","tag",["string","builtin"]),ge.documentclass=Me("documentclass","tag",["","atom"]),ge.usepackage=Me("usepackage","tag",["atom"]),ge.begin=Me("begin","tag",["atom"]),ge.end=Me("end","tag",["atom"]),ge.label=Me("label","tag",["atom"]),ge.ref=Me("ref","tag",["atom"]),ge.eqref=Me("eqref","tag",["atom"]),ge.cite=Me("cite","tag",["atom"]),ge.bibitem=Me("bibitem","tag",["atom"]),ge.Bibitem=Me("Bibitem","tag",["atom"]),ge.RBibitem=Me("RBibitem","tag",["atom"]),ge.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function se(je,Te){je.f=Te}function _e(je,Te){var Ce;if(je.match(/^\\[a-zA-Z@]+/)){var Se=je.current().slice(1);return Ce=ge.hasOwnProperty(Se)?ge[Se]:ge.DEFAULT,Ce=new Ce,$e(Te,Ce),se(Te,tt),Ce.style}if(je.match(/^\\[$&%#{}_]/)||je.match(/^\\[,;!\/\\]/))return"tag";if(je.match("\\["))return se(Te,function(Ye,ct){return Ae(Ye,ct,"\\]")}),"keyword";if(je.match("\\("))return se(Te,function(Ye,ct){return Ae(Ye,ct,"\\)")}),"keyword";if(je.match("$$"))return se(Te,function(Ye,ct){return Ae(Ye,ct,"$$")}),"keyword";if(je.match("$"))return se(Te,function(Ye,ct){return Ae(Ye,ct,"$")}),"keyword";var Pe=je.next();if(Pe=="%")return je.skipToEnd(),"comment";if(Pe=="}"||Pe=="]"){if(Ce=pe(Te),Ce)Ce.closeBracket(Pe),se(Te,tt);else return"error";return"bracket"}else return Pe=="{"||Pe=="["?(Ce=ge.DEFAULT,Ce=new Ce,$e(Te,Ce),"bracket"):/\d/.test(Pe)?(je.eatWhile(/[\w.%]/),"atom"):(je.eatWhile(/[\w\-_]/),Ce=ve(Te),Ce.name=="begin"&&(Ce.argument=je.current()),Ce.styleIdentifier())}function Ae(je,Te,Ce){if(je.eatSpace())return null;if(Ce&&je.match(Ce))return se(Te,_e),"keyword";if(je.match(/^\\[a-zA-Z@]+/))return"tag";if(je.match(/^[a-zA-Z]+/))return"variable-2";if(je.match(/^\\[$&%#{}_]/)||je.match(/^\\[,;!\/]/)||je.match(/^[\^_&]/))return"tag";if(je.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(je.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var Se=je.next();return Se=="{"||Se=="}"||Se=="["||Se=="]"||Se=="("||Se==")"?"bracket":Se=="%"?(je.skipToEnd(),"comment"):"error"}function tt(je,Te){var Ce=je.peek(),Se;return Ce=="{"||Ce=="["?(Se=pe(Te),Se.openBracket(Ce),je.eat(Ce),se(Te,_e),"bracket"):/[ \t\r]/.test(Ce)?(je.eat(Ce),null):(se(Te,_e),me(Te),_e(je,Te))}return{startState:function(){var je=de.inMathMode?function(Te,Ce){return Ae(Te,Ce)}:_e;return{cmdState:[],f:je}},copyState:function(je){return{cmdState:je.cmdState.slice(),f:je.f}},token:function(je,Te){return Te.f(je,Te)},blankLine:function(je){je.f=_e,je.cmdState.length=0},lineComment:"%"}}),y.defineMIME("text/x-stex","stex"),y.defineMIME("text/x-latex","stex")})},15525:function(bn,Wt,z){(function(y){y(z(89780))})(function(y){"use strict";var he={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},de={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};y.defineMode("xml",function($e,pe){var me=$e.indentUnit,ve={},Me=pe.htmlMode?he:de;for(var ge in Me)ve[ge]=Me[ge];for(var ge in pe)ve[ge]=pe[ge];var se,_e;function Ae(be,et){function Ne(Ze){return et.tokenize=Ze,Ze(be,et)}var ue=be.next();if(ue=="<")return be.eat("!")?be.eat("[")?be.match("CDATA[")?Ne(Te("atom","]]>")):null:be.match("--")?Ne(Te("comment","-->")):be.match("DOCTYPE",!0,!0)?(be.eatWhile(/[\w\._\-]/),Ne(Ce(1))):null:be.eat("?")?(be.eatWhile(/[\w\._\-]/),et.tokenize=Te("meta","?>"),"meta"):(se=be.eat("/")?"closeTag":"openTag",et.tokenize=tt,"tag bracket");if(ue=="&"){var mt;return be.eat("#")?be.eat("x")?mt=be.eatWhile(/[a-fA-F\d]/)&&be.eat(";"):mt=be.eatWhile(/[\d]/)&&be.eat(";"):mt=be.eatWhile(/[\w\.\-:]/)&&be.eat(";"),mt?"atom":"error"}else return be.eatWhile(/[^&<]/),null}Ae.isInText=!0;function tt(be,et){var Ne=be.next();if(Ne==">"||Ne=="/"&&be.eat(">"))return et.tokenize=Ae,se=Ne==">"?"endTag":"selfcloseTag","tag bracket";if(Ne=="=")return se="equals",null;if(Ne=="<"){et.tokenize=Ae,et.state=ct,et.tagName=et.tagStart=null;var ue=et.tokenize(be,et);return ue?ue+" tag error":"tag error"}else return/[\'\"]/.test(Ne)?(et.tokenize=je(Ne),et.stringStartCol=be.column(),et.tokenize(be,et)):(be.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function je(be){var et=function(Ne,ue){for(;!Ne.eol();)if(Ne.next()==be){ue.tokenize=tt;break}return"string"};return et.isInAttribute=!0,et}function Te(be,et){return function(Ne,ue){for(;!Ne.eol();){if(Ne.match(et)){ue.tokenize=Ae;break}Ne.next()}return be}}function Ce(be){return function(et,Ne){for(var ue;(ue=et.next())!=null;){if(ue=="<")return Ne.tokenize=Ce(be+1),Ne.tokenize(et,Ne);if(ue==">")if(be==1){Ne.tokenize=Ae;break}else return Ne.tokenize=Ce(be-1),Ne.tokenize(et,Ne)}return"meta"}}function Se(be,et,Ne){this.prev=be.context,this.tagName=et,this.indent=be.indented,this.startOfLine=Ne,(ve.doNotIndent.hasOwnProperty(et)||be.context&&be.context.noIndent)&&(this.noIndent=!0)}function Pe(be){be.context&&(be.context=be.context.prev)}function Ye(be,et){for(var Ne;;){if(!be.context||(Ne=be.context.tagName,!ve.contextGrabbers.hasOwnProperty(Ne)||!ve.contextGrabbers[Ne].hasOwnProperty(et)))return;Pe(be)}}function ct(be,et,Ne){return be=="openTag"?(Ne.tagStart=et.column(),Be):be=="closeTag"?Oe:ct}function Be(be,et,Ne){return be=="word"?(Ne.tagName=et.current(),_e="tag",vt):ve.allowMissingTagName&&be=="endTag"?(_e="tag bracket",vt(be,et,Ne)):(_e="error",Be)}function Oe(be,et,Ne){if(be=="word"){var ue=et.current();return Ne.context&&Ne.context.tagName!=ue&&ve.implicitlyClosed.hasOwnProperty(Ne.context.tagName)&&Pe(Ne),Ne.context&&Ne.context.tagName==ue||ve.matchClosing===!1?(_e="tag",Re):(_e="tag error",Ke)}else return ve.allowMissingTagName&&be=="endTag"?(_e="tag bracket",Re(be,et,Ne)):(_e="error",Ke)}function Re(be,et,Ne){return be!="endTag"?(_e="error",Re):(Pe(Ne),ct)}function Ke(be,et,Ne){return _e="error",Re(be,et,Ne)}function vt(be,et,Ne){if(be=="word")return _e="attribute",it;if(be=="endTag"||be=="selfcloseTag"){var ue=Ne.tagName,mt=Ne.tagStart;return Ne.tagName=Ne.tagStart=null,be=="selfcloseTag"||ve.autoSelfClosers.hasOwnProperty(ue)?Ye(Ne,ue):(Ye(Ne,ue),Ne.context=new Se(Ne,ue,mt==Ne.indented)),ct}return _e="error",vt}function it(be,et,Ne){return be=="equals"?Qe:(ve.allowMissing||(_e="error"),vt(be,et,Ne))}function Qe(be,et,Ne){return be=="string"?ut:be=="word"&&ve.allowUnquoted?(_e="string",vt):(_e="error",vt(be,et,Ne))}function ut(be,et,Ne){return be=="string"?ut:vt(be,et,Ne)}return{startState:function(be){var et={tokenize:Ae,state:ct,indented:be||0,tagName:null,tagStart:null,context:null};return be!=null&&(et.baseIndent=be),et},token:function(be,et){if(!et.tagName&&be.sol()&&(et.indented=be.indentation()),be.eatSpace())return null;se=null;var Ne=et.tokenize(be,et);return(Ne||se)&&Ne!="comment"&&(_e=null,et.state=et.state(se||Ne,be,et),_e&&(Ne=_e=="error"?Ne+" error":_e)),Ne},indent:function(be,et,Ne){var ue=be.context;if(be.tokenize.isInAttribute)return be.tagStart==be.indented?be.stringStartCol+1:be.indented+me;if(ue&&ue.noIndent)return y.Pass;if(be.tokenize!=tt&&be.tokenize!=Ae)return Ne?Ne.match(/^(\s*)/)[0].length:0;if(be.tagName)return ve.multilineTagIndentPastTag!==!1?be.tagStart+be.tagName.length+2:be.tagStart+me*(ve.multilineTagIndentFactor||1);if(ve.alignCDATA&&/<!\[CDATA\[/.test(et))return 0;var mt=et&&/^<(\/)?([\w_:\.-]*)/.exec(et);if(mt&&mt[1])for(;ue;)if(ue.tagName==mt[2]){ue=ue.prev;break}else if(ve.implicitlyClosed.hasOwnProperty(ue.tagName))ue=ue.prev;else break;else if(mt)for(;ue;){var Ze=ve.contextGrabbers[ue.tagName];if(Ze&&Ze.hasOwnProperty(mt[2]))ue=ue.prev;else break}for(;ue&&ue.prev&&!ue.startOfLine;)ue=ue.prev;return ue?ue.indent+me:be.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:ve.htmlMode?"html":"xml",helperType:ve.htmlMode?"html":"xml",skipAttribute:function(be){be.state==Qe&&(be.state=vt)},xmlCurrentTag:function(be){return be.tagName?{name:be.tagName,close:be.type=="closeTag"}:null},xmlCurrentContext:function(be){for(var et=[],Ne=be.context;Ne;Ne=Ne.prev)Ne.tagName&&et.push(Ne.tagName);return et.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(bn,Wt,z){var y,he;(function(de,$e){bn.exports=$e(de)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof z.g!="undefined"?z.g:this,function(de){"use strict";de=de||{};var $e=de.Base64,pe="2.6.4",me="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ve=function(Ne){for(var ue={},mt=0,Ze=Ne.length;mt<Ze;mt++)ue[Ne.charAt(mt)]=mt;return ue}(me),Me=String.fromCharCode,ge=function(Ne){if(Ne.length<2){var ue=Ne.charCodeAt(0);return ue<128?Ne:ue<2048?Me(192|ue>>>6)+Me(128|ue&63):Me(224|ue>>>12&15)+Me(128|ue>>>6&63)+Me(128|ue&63)}else{var ue=65536+(Ne.charCodeAt(0)-55296)*1024+(Ne.charCodeAt(1)-56320);return Me(240|ue>>>18&7)+Me(128|ue>>>12&63)+Me(128|ue>>>6&63)+Me(128|ue&63)}},se=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,_e=function(Ne){return Ne.replace(se,ge)},Ae=function(Ne){var ue=[0,2,1][Ne.length%3],mt=Ne.charCodeAt(0)<<16|(Ne.length>1?Ne.charCodeAt(1):0)<<8|(Ne.length>2?Ne.charCodeAt(2):0),Ze=[me.charAt(mt>>>18),me.charAt(mt>>>12&63),ue>=2?"=":me.charAt(mt>>>6&63),ue>=1?"=":me.charAt(mt&63)];return Ze.join("")},tt=de.btoa&&typeof de.btoa=="function"?function(Ne){return de.btoa(Ne)}:function(Ne){if(Ne.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return Ne.replace(/[\s\S]{1,3}/g,Ae)},je=function(Ne){return tt(_e(String(Ne)))},Te=function(Ne){return Ne.replace(/[+\/]/g,function(ue){return ue=="+"?"-":"_"}).replace(/=/g,"")},Ce=function(Ne,ue){return ue?Te(je(Ne)):je(Ne)},Se=function(Ne){return Ce(Ne,!0)},Pe;de.Uint8Array&&(Pe=function(Ne,ue){for(var mt="",Ze=0,nt=Ne.length;Ze<nt;Ze+=3){var Mt=Ne[Ze],Fe=Ne[Ze+1],ye=Ne[Ze+2],Bt=Mt<<16|Fe<<8|ye;mt+=me.charAt(Bt>>>18)+me.charAt(Bt>>>12&63)+(typeof Fe!="undefined"?me.charAt(Bt>>>6&63):"=")+(typeof ye!="undefined"?me.charAt(Bt&63):"=")}return ue?Te(mt):mt});var Ye=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,ct=function(Ne){switch(Ne.length){case 4:var ue=(7&Ne.charCodeAt(0))<<18|(63&Ne.charCodeAt(1))<<12|(63&Ne.charCodeAt(2))<<6|63&Ne.charCodeAt(3),mt=ue-65536;return Me((mt>>>10)+55296)+Me((mt&1023)+56320);case 3:return Me((15&Ne.charCodeAt(0))<<12|(63&Ne.charCodeAt(1))<<6|63&Ne.charCodeAt(2));default:return Me((31&Ne.charCodeAt(0))<<6|63&Ne.charCodeAt(1))}},Be=function(Ne){return Ne.replace(Ye,ct)},Oe=function(Ne){var ue=Ne.length,mt=ue%4,Ze=(ue>0?ve[Ne.charAt(0)]<<18:0)|(ue>1?ve[Ne.charAt(1)]<<12:0)|(ue>2?ve[Ne.charAt(2)]<<6:0)|(ue>3?ve[Ne.charAt(3)]:0),nt=[Me(Ze>>>16),Me(Ze>>>8&255),Me(Ze&255)];return nt.length-=[0,0,2,1][mt],nt.join("")},Re=de.atob&&typeof de.atob=="function"?function(Ne){return de.atob(Ne)}:function(Ne){return Ne.replace(/\S{1,4}/g,Oe)},Ke=function(Ne){return Re(String(Ne).replace(/[^A-Za-z0-9\+\/]/g,""))},vt=function(Ne){return Be(Re(Ne))},it=function(Ne){return String(Ne).replace(/[-_]/g,function(ue){return ue=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},Qe=function(Ne){return vt(it(Ne))},ut;de.Uint8Array&&(ut=function(Ne){return Uint8Array.from(Ke(it(Ne)),function(ue){return ue.charCodeAt(0)})});var be=function(){var Ne=de.Base64;return de.Base64=$e,Ne};if(de.Base64={VERSION:pe,atob:Ke,btoa:tt,fromBase64:Qe,toBase64:Ce,utob:_e,encode:Ce,encodeURI:Se,btou:Be,decode:Qe,noConflict:be,fromUint8Array:Pe,toUint8Array:ut},typeof Object.defineProperty=="function"){var et=function(Ne){return{value:Ne,enumerable:!1,writable:!0,configurable:!0}};de.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",et(function(){return Qe(this)})),Object.defineProperty(String.prototype,"toBase64",et(function(Ne){return Ce(this,Ne)})),Object.defineProperty(String.prototype,"toBase64URI",et(function(){return Ce(this,!0)}))}}return de.Meteor&&(Base64=de.Base64),bn.exports?bn.exports.Base64=de.Base64:(y=[],he=function(){return de.Base64}.apply(Wt,y),he!==void 0&&(bn.exports=he)),{Base64:de.Base64}})},2859:function(bn,Wt,z){"use strict";z.d(Wt,{hP:function(){return kt}});var y=function(ae,re){return(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(te,ie){te.__proto__=ie}||function(te,ie){for(var ce in ie)Object.prototype.hasOwnProperty.call(ie,ce)&&(te[ce]=ie[ce])})(ae,re)};function he(ae,re){function te(){this.constructor=ae}y(ae,re),ae.prototype=re===null?Object.create(re):(te.prototype=re.prototype,new te)}function de(ae,re,te,ie){return new(te||(te=Promise))(function(ce,ne){function le(Ue){try{bt(ie.next(Ue))}catch(He){ne(He)}}function Ie(Ue){try{bt(ie.throw(Ue))}catch(He){ne(He)}}function bt(Ue){var He;Ue.done?ce(Ue.value):(He=Ue.value,He instanceof te?He:new te(function(at){at(He)})).then(le,Ie)}bt((ie=ie.apply(ae,re||[])).next())})}function $e(ae,re){var te,ie,ce,ne,le={label:0,sent:function(){if(1&ce[0])throw ce[1];return ce[1]},trys:[],ops:[]};return ne={next:Ie(0),throw:Ie(1),return:Ie(2)},typeof Symbol=="function"&&(ne[Symbol.iterator]=function(){return this}),ne;function Ie(bt){return function(Ue){return function(He){if(te)throw new TypeError("Generator is already executing.");for(;le;)try{if(te=1,ie&&(ce=2&He[0]?ie.return:He[0]?ie.throw||((ce=ie.return)&&ce.call(ie),0):ie.next)&&!(ce=ce.call(ie,He[1])).done)return ce;switch(ie=0,ce&&(He=[2&He[0],ce.value]),He[0]){case 0:case 1:ce=He;break;case 4:return le.label++,{value:He[1],done:!1};case 5:le.label++,ie=He[1],He=[0];continue;case 7:He=le.ops.pop(),le.trys.pop();continue;default:if(ce=le.trys,!((ce=ce.length>0&&ce[ce.length-1])||He[0]!==6&&He[0]!==2)){le=0;continue}if(He[0]===3&&(!ce||He[1]>ce[0]&&He[1]<ce[3])){le.label=He[1];break}if(He[0]===6&&le.label<ce[1]){le.label=ce[1],ce=He;break}if(ce&&le.label<ce[2]){le.label=ce[2],le.ops.push(He);break}ce[2]&&le.ops.pop(),le.trys.pop();continue}He=re.call(ae,le)}catch(at){He=[6,at],ie=0}finally{te=ce=0}if(5&He[0])throw He[1];return{value:He[0]?He[1]:void 0,done:!0}}([bt,Ue])}}}function pe(){for(var ae=0,re=0,te=arguments.length;re<te;re++)ae+=arguments[re].length;var ie=Array(ae),ce=0;for(re=0;re<te;re++)for(var ne=arguments[re],le=0,Ie=ne.length;le<Ie;le++,ce++)ie[ce]=ne[le];return ie}var me=function(){function ae(){}return ae.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},ae.setAttributes=function(re,te){for(var ie=0,ce=te;ie<ce.length;ie++){var ne=ce[ie],le=ne[0],Ie=ne[1];re.setAttribute(le,Ie)}},ae.createRect=function(re,te,ie){var ce=document.createElementNS("http://www.w3.org/2000/svg","rect");return ce.setAttribute("width",re.toString()),ce.setAttribute("height",te.toString()),ie&&ae.setAttributes(ce,ie),ce},ae.createLine=function(re,te,ie,ce,ne){var le=document.createElementNS("http://www.w3.org/2000/svg","line");return le.setAttribute("x1",re.toString()),le.setAttribute("y1",te.toString()),le.setAttribute("x2",ie.toString()),le.setAttribute("y2",ce.toString()),ne&&ae.setAttributes(le,ne),le},ae.createPolygon=function(re,te){var ie=document.createElementNS("http://www.w3.org/2000/svg","polygon");return ie.setAttribute("points",re),te&&ae.setAttributes(ie,te),ie},ae.createCircle=function(re,te){var ie=document.createElementNS("http://www.w3.org/2000/svg","circle");return ie.setAttribute("cx",(re/2).toString()),ie.setAttribute("cy",(re/2).toString()),ie.setAttribute("r",re.toString()),te&&ae.setAttributes(ie,te),ie},ae.createEllipse=function(re,te,ie){var ce=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return ce.setAttribute("cx",(re/2).toString()),ce.setAttribute("cy",(te/2).toString()),ce.setAttribute("rx",(re/2).toString()),ce.setAttribute("ry",(te/2).toString()),ie&&ae.setAttributes(ce,ie),ce},ae.createGroup=function(re){var te=document.createElementNS("http://www.w3.org/2000/svg","g");return re&&ae.setAttributes(te,re),te},ae.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},ae.createMarker=function(re,te,ie,ce,ne,le,Ie){var bt=document.createElementNS("http://www.w3.org/2000/svg","marker");return ae.setAttributes(bt,[["id",re],["orient",te],["markerWidth",ie.toString()],["markerHeight",ce.toString()],["refX",ne.toString()],["refY",le.toString()]]),bt.appendChild(Ie),bt},ae.createText=function(re){var te=document.createElementNS("http://www.w3.org/2000/svg","text");return te.setAttribute("x","0"),te.setAttribute("y","0"),re&&ae.setAttributes(te,re),te},ae.createTSpan=function(re,te){var ie=document.createElementNS("http://www.w3.org/2000/svg","tspan");return ie.textContent=re,te&&ae.setAttributes(ie,te),ie},ae.createImage=function(re){var te=document.createElementNS("http://www.w3.org/2000/svg","image");return re&&ae.setAttributes(te,re),te},ae.createPoint=function(re,te){var ie=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return ie.x=re,ie.y=te,ie},ae.createPath=function(re,te){var ie=document.createElementNS("http://www.w3.org/2000/svg","path");return ie.setAttribute("d",re),te&&ae.setAttributes(ie,te),ie},ae}(),ve=function(){function ae(){}return ae.addKey=function(re){ae.key=re},Object.defineProperty(ae,"isLicensed",{get:function(){return!!ae.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(ae.key)},enumerable:!1,configurable:!0}),ae}(),Me=function(){function ae(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return ae.prototype.rasterize=function(re,te,ie){var ce=this;return new Promise(function(ne){var le=ie!==void 0?ie:document.createElement("canvas");re===null&&(ce.markersOnly=!0,ce.naturalSize=!1);var Ie=document.createElementNS("http://www.w3.org/2000/svg","svg");Ie.setAttribute("xmlns","http://www.w3.org/2000/svg"),Ie.setAttribute("width",te.width.baseVal.valueAsString),Ie.setAttribute("height",te.height.baseVal.valueAsString),Ie.setAttribute("viewBox","0 0 "+te.viewBox.baseVal.width.toString()+" "+te.viewBox.baseVal.height.toString()),Ie.innerHTML=te.innerHTML,ce.naturalSize===!0?(Ie.width.baseVal.value=re.naturalWidth,Ie.height.baseVal.value=re.naturalHeight):ce.width!==void 0&&ce.height!==void 0&&(Ie.width.baseVal.value=ce.width,Ie.height.baseVal.value=ce.height),le.width=Ie.width.baseVal.value,le.height=Ie.height.baseVal.value;var bt=Ie.outerHTML,Ue=le.getContext("2d");ce.markersOnly!==!0&&Ue.drawImage(re,0,0,le.width,le.height);var He=window.URL,at=new Image(le.width,le.height);at.setAttribute("crossOrigin","anonymous");var ft=new Blob([bt],{type:"image/svg+xml"}),Pt=He.createObjectURL(ft);at.onload=function(){Ue.drawImage(at,0,0),He.revokeObjectURL(Pt);var Le=le.toDataURL(ce.imageType,ce.imageQuality);ne(Le)},at.src=Pt})},ae}(),ge=function(){},se=function(){function ae(re){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+re+"_"}return Object.defineProperty(ae.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(ae.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(ae.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),ae.prototype.addClass=function(re){return this.styleSheet===void 0&&this.addStyleSheet(),re.name=""+this.classNamePrefix+re.localName,this.classes.push(re),this.styleSheet.sheet.insertRule("."+re.name+" {"+re.style+"}",this.styleSheet.sheet.cssRules.length),re},ae.prototype.addRule=function(re){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(re),this.styleSheet.sheet.insertRule(re.selector+" {"+re.style+"}",this.styleSheet.sheet.cssRules.length)},ae.prototype.addStyleSheet=function(){var re;this.styleSheet=document.createElement("style"),((re=this.styleSheetRoot)!==null&&re!==void 0?re: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 Ae("fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new Ae("fade_out",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
`))},ae.prototype.removeStyleSheet=function(){var re;this.styleSheet&&(((re=this.styleSheetRoot)!==null&&re!==void 0?re:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},ae}(),_e=function(ae,re){this.selector=ae,this.style=re},Ae=function(ae,re){this.localName=ae,this.style=re},tt=function(){function ae(re,te,ie,ce,ne){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=re,this.displayMode=te,this.markerItems=ie,this.uiStyleSettings=ce,this.styles=ne,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return ae.prototype.show=function(re){var te=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=re,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var ie=document.createElement("div");ie.className=this.toolbarBlockStyleClass.name,ie.style.whiteSpace="nowrap",this.uiContainer.appendChild(ie),this.addActionButton(ie,'<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(ie,'<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(ie,'<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(ie,'<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(ie,'<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(ie,'<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(ie,'<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(ie,'<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(ne){var le=document.createElement("div");le.className=""+te.toolbarButtonStyleClass.name,le.setAttribute("data-type-name",ne.typeName),le.innerHTML=ne.icon,le.addEventListener("click",function(){te.markerToolbarButtonClicked(le,ne)}),te.buttons.push(le),te.markerButtons.push(le)}),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 ce=document.createElement("div");ce.className=this.toolbarBlockStyleClass.name,ce.style.whiteSpace="nowrap",ce.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(ce),this.addActionButton(ce,'<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(ce,'<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()},ae.prototype.addButtonClickListener=function(re){this.buttonClickListeners.push(re)},ae.prototype.removeButtonClickListener=function(re){this.buttonClickListeners.indexOf(re)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(re),1)},ae.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},ae.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var re=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var te=0;te<this.markerButtons.length;te++)te<re||te===re&&this.markerButtons.length-1===re?this.markerButtonBlock.appendChild(this.markerButtons[te]):(te===re&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[te]))}},ae.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")},ae.prototype.resetButtonStyles=function(){var re=this;this.buttons.forEach(function(te){te.className=te.className.replace(re.uiStyleSettings.toolbarButtonStyleColorsClassName?re.uiStyleSettings.toolbarButtonStyleColorsClassName:re.toolbarButtonStyleColorsClass.name,"").trim(),te.className=te.className.replace(re.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?re.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:re.toolbarActiveButtonStyleColorsClass.name,"").trim(),te.className+=" "+(re.uiStyleSettings.toolbarButtonStyleColorsClassName?re.uiStyleSettings.toolbarButtonStyleColorsClassName:re.toolbarButtonStyleColorsClass.name)})},ae.prototype.addActionButton=function(re,te,ie){var ce=this,ne=document.createElement("div");switch(ne.className=""+this.toolbarButtonStyleClass.name,ne.innerHTML=te,ne.setAttribute("data-action",ie),ne.addEventListener("click",function(){ce.actionToolbarButtonClicked(ne,ie)}),ie){case"select":ne.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":ne.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":ne.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":ne.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":ne.style.fill=this.uiStyleSettings.closeButtonColor}re.appendChild(ne),this.buttons.push(ne)},ae.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new Ae("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 Ae("toolbar_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
`)),this.toolbarBlockStyleClass=this.styles.addClass(new Ae("toolbar-block",`
display: inline-block;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new Ae("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 Ae("toolbar-overflow-block_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`));var re=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new Ae("toolbar_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.toolbarButtonStyleColorsClass=this.styles.addClass(new Ae("toolbar_button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new Ae("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+`
`))},ae.prototype.markerToolbarButtonClicked=function(re,te){this.setActiveButton(re),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(ie){return ie("marker",te)}),this.markerButtonOverflowBlock.style.display="none"},ae.prototype.actionToolbarButtonClicked=function(re,te){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(ie){return ie("action",te)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},ae.prototype.setActiveButton=function(re){this.resetButtonStyles(),re.className=re.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),re.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},ae.prototype.setActiveMarkerButton=function(re){var te=this.markerButtons.find(function(ie){return ie.getAttribute("data-type-name")===re});te&&this.setActiveButton(te)},ae.prototype.setCurrentMarker=function(re){var te=this;this.currentMarker=re,this.buttons.filter(function(ie){return/delete|notes/.test(ie.getAttribute("data-action"))}).forEach(function(ie){te.currentMarker===void 0?(ie.style.fillOpacity="0.4",ie.style.pointerEvents="none"):(ie.style.fillOpacity="1",ie.style.pointerEvents="all")})},ae}(),je=function(){function ae(re,te,ie,ce){this.panels=[],this.panelButtons=[],this.markerjsContainer=re,this.displayMode=te,this.uiStyleSettings=ie,this.styles=ce,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return ae.prototype.addStyles=function(){var re;this.toolboxStyleClass=this.styles.addClass(new Ae("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 Ae("toolbox_colors",`
color: `+this.uiStyleSettings.toolboxColor+`;
`));var te=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new Ae("toolbox-button-row",`
display: flex;
cursor: default;
box-sizing: content-box;
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new Ae("toolbox-button-row_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new Ae("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 Ae("toolbox-panel-row_colors",`
background-color: `+((re=this.uiStyleSettings.toolboxBackgroundColor)!==null&&re!==void 0?re:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
`)),this.toolboxButtonStyleClass=this.styles.addClass(new Ae("toolbox_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*te)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*te)+`px;
padding: `+te+`px;
box-sizing: content-box;
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new Ae("toolbox-button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new Ae("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;
`))},ae.prototype.show=function(re){var te;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=re,this.uiContainer.className=this.toolboxStyleClass.name+" "+((te=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&te!==void 0?te:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},ae.prototype.setPanelButtons=function(re){var te,ie,ce=this;this.panels=re,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((te=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&te!==void 0?te:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((ie=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&ie!==void 0?ie:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(ne){var le;ne.uiStyleSettings=ce.uiStyleSettings;var Ie=document.createElement("div");Ie.className=ce.toolboxButtonStyleClass.name+" "+((le=ce.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&le!==void 0?le:ce.toolboxButtonStyleColorsClass.name),Ie.innerHTML=ne.icon,Ie.title=ne.title,Ie.addEventListener("click",function(){ce.panelButtonClick(ne)}),ce.panelButtons.push(Ie),ce.buttonRow.appendChild(Ie)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},ae.prototype.panelButtonClick=function(re){var te=this,ie=-1;if(re!==this.activePanel){ie=this.panels.indexOf(re),this.panelRow.innerHTML="";var ce=re.getUi();ce.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(ce),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=re}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){te.displayMode==="inline"?te.panelRow.style.display="none":te.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(ne,le){var Ie,bt;ne.className=te.toolboxButtonStyleClass.name+" "+(le===ie?""+((Ie=te.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Ie!==void 0?Ie:te.toolboxActiveButtonStyleColorsClass.name):""+((bt=te.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&bt!==void 0?bt:te.toolboxButtonStyleColorsClass.name))})},ae}(),Te=function(ae,re){this.title=ae,this.icon=re},Ce=function(ae){function re(te,ie,ce,ne){var le=ae.call(this,te,ne||'<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 le.colors=[],le.addTransparent=!1,le.colorBoxes=[],le.colors=ie,le.currentColor=ce,le.setCurrentColor=le.setCurrentColor.bind(le),le.getColorBox=le.getColorBox.bind(le),le}return he(re,ae),re.prototype.getUi=function(){var te=this,ie=document.createElement("div");return ie.style.overflow="hidden",ie.style.whiteSpace="nowrap",this.colors.forEach(function(ce){var ne=te.getColorBox(ce);ie.appendChild(ne),te.colorBoxes.push(ne)}),ie},re.prototype.getColorBox=function(te){var ie=this,ce=this.uiStyleSettings.toolbarHeight/4,ne=this.uiStyleSettings.toolbarHeight-ce,le=document.createElement("div");le.style.display="inline-block",le.style.boxSizing="content-box",le.style.width=ne-2+"px",le.style.height=ne-2+"px",le.style.padding="1px",le.style.marginRight="2px",le.style.marginBottom="2px",le.style.borderWidth="2px",le.style.borderStyle="solid",le.style.borderRadius=(ne+2)/2+"px",le.style.borderColor=te===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",le.addEventListener("click",function(){ie.setCurrentColor(te,le)});var Ie=document.createElement("div");return Ie.style.display="inline-block",Ie.style.width=ne-2+"px",Ie.style.height=ne-2+"px",Ie.style.backgroundColor=te,Ie.style.borderRadius=ne/2+"px",te==="transparent"&&(Ie.style.fill=this.uiStyleSettings.toolboxAccentColor,Ie.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>`),le.appendChild(Ie),le},re.prototype.setCurrentColor=function(te,ie){var ce=this;this.currentColor=te,this.colorBoxes.forEach(function(ne){ne.style.borderColor=ne===ie?ce.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(te)},re}(Te),Se=function(){function ae(re,te,ie){this._state="new",this._isSelected=!1,this._container=re,this._overlayContainer=te,this.globalSettings=ie,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(ae.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),ae.prototype.ownsTarget=function(re){return!1},Object.defineProperty(ae.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),ae.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},ae.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},ae.prototype.pointerDown=function(re,te){},ae.prototype.dblClick=function(re,te){},ae.prototype.manipulate=function(re){},ae.prototype.pointerUp=function(re){this.stateChanged()},ae.prototype.dispose=function(){},ae.prototype.addMarkerVisualToContainer=function(re){this.container.childNodes.length>0?this.container.insertBefore(re,this.container.childNodes[0]):this.container.appendChild(re)},ae.prototype.getState=function(){return{typeName:ae.typeName,state:this.state,notes:this.notes}},ae.prototype.restoreState=function(re){this._state=re.state,this.notes=re.notes},ae.prototype.scale=function(re,te){},ae.prototype.colorChanged=function(re){this.onColorChanged&&this.onColorChanged(re),this.stateChanged()},ae.prototype.fillColorChanged=function(re){this.onFillColorChanged&&this.onFillColorChanged(re),this.stateChanged()},ae.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var re=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),re.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(re)&&this.onStateChanged(this)}},ae.typeName="MarkerBase",ae}(),Pe=function(){function ae(){this.findGripByVisual=this.findGripByVisual.bind(this)}return ae.prototype.findGripByVisual=function(re){return this.topLeft.ownsTarget(re)?this.topLeft:this.topCenter.ownsTarget(re)?this.topCenter:this.topRight.ownsTarget(re)?this.topRight:this.centerLeft.ownsTarget(re)?this.centerLeft:this.centerRight.ownsTarget(re)?this.centerRight:this.bottomLeft.ownsTarget(re)?this.bottomLeft:this.bottomCenter.ownsTarget(re)?this.bottomCenter:this.bottomRight.ownsTarget(re)?this.bottomRight:void 0},ae}(),Ye=function(){function ae(){this.GRIP_SIZE=10,this.visual=me.createGroup(),this.visual.appendChild(me.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(me.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return ae.prototype.ownsTarget=function(re){return re===this.visual||re===this.visual.childNodes[0]||re===this.visual.childNodes[1]},ae}(),ct=function(){function ae(){}return ae.toITransformMatrix=function(re){return{a:re.a,b:re.b,c:re.c,d:re.d,e:re.e,f:re.f}},ae.toSVGMatrix=function(re,te){return re.a=te.a,re.b=te.b,re.c=te.c,re.d=te.d,re.e=te.e,re.f=te.f,re},ae}(),Be=function(ae){function re(te,ie,ce){var ne=ae.call(this,te,ie,ce)||this;return ne.left=0,ne.top=0,ne.width=0,ne.height=0,ne.defaultSize={x:50,y:20},ne.offsetX=0,ne.offsetY=0,ne.rotationAngle=0,ne.CB_DISTANCE=10,ne._suppressMarkerCreateEvent=!1,ne.container.transform.baseVal.appendItem(me.createTransform()),ne.setupControlBox(),ne}return he(re,ae),Object.defineProperty(re.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"visual",{get:function(){return this._visual},set:function(te){this._visual=te;var ie=me.createTransform();this._visual.transform.baseVal.appendItem(ie)},enumerable:!1,configurable:!0}),re.prototype.ownsTarget=function(te){return!!ae.prototype.ownsTarget.call(this,te)||!!(this.controlGrips.findGripByVisual(te)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(te))},re.prototype.pointerDown=function(te,ie){ae.prototype.pointerDown.call(this,te,ie),this.state==="new"&&(this.left=te.x,this.top=te.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var ce=this.unrotatePoint(te);if(this.manipulationStartX=ce.x,this.manipulationStartY=ce.y,this.offsetX=ce.x-this.left,this.offsetY=ce.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(ie),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(ie)){this.activeGrip=this.rotatorGrip;var ne=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=ne.x-this.width/2,this.top=ne.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var le=this.container.transform.baseVal.getItem(0);le.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(le,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},re.prototype.pointerUp=function(te){var ie=this.state;ae.prototype.pointerUp.call(this,te),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(te),this._state="select",ie==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},re.prototype.moveVisual=function(te){this.visual.style.transform="translate("+te.x+"px, "+te.y+"px)"},re.prototype.manipulate=function(te){var ie=this.unrotatePoint(te);this.state==="creating"?this.resize(te):this.state==="move"?(this.left=this.manipulationStartLeft+(ie.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(ie.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(ie):this.state==="rotate"&&this.rotate(te)},re.prototype.resize=function(te){var ie=this.manipulationStartLeft,ce=this.manipulationStartWidth,ne=this.manipulationStartTop,le=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:ie=this.manipulationStartLeft+te.x-this.manipulationStartX,ce=this.manipulationStartWidth+this.manipulationStartLeft-ie;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:ce=this.manipulationStartWidth+te.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:ne=this.manipulationStartTop+te.y-this.manipulationStartY,le=this.manipulationStartHeight+this.manipulationStartTop-ne;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:le=this.manipulationStartHeight+te.y-this.manipulationStartY}ce>=0?(this.left=ie,this.width=ce):(this.left=ie+ce,this.width=-ce),le>=0?(this.top=ne,this.height=le):(this.top=ne+le,this.height=-le),this.setSize()},re.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},re.prototype.rotate=function(te){if(Math.abs(te.x-this.centerX)>.1){var ie=Math.sign(te.x-this.centerX);this.rotationAngle=180*Math.atan((te.y-this.centerY)/(te.x-this.centerX))/Math.PI+90*ie,this.applyRotation()}},re.prototype.applyRotation=function(){var te=this.container.transform.baseVal.getItem(0);te.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(te,0)},re.prototype.rotatePoint=function(te){if(this.rotationAngle===0)return te;var ie=this.container.getCTM(),ce=me.createPoint(te.x,te.y);return{x:(ce=ce.matrixTransform(ie)).x,y:ce.y}},re.prototype.unrotatePoint=function(te){if(this.rotationAngle===0)return te;var ie=this.container.getCTM();ie=ie.inverse();var ce=me.createPoint(te.x,te.y);return{x:(ce=ce.matrixTransform(ie)).x,y:ce.y}},re.prototype.select=function(){ae.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},re.prototype.deselect=function(){ae.prototype.deselect.call(this),this.controlBox.style.display="none"},re.prototype.setupControlBox=function(){this.controlBox=me.createGroup();var te=me.createTransform();te.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(te),this.container.appendChild(this.controlBox),this.controlRect=me.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=me.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"},re.prototype.adjustControlBox=function(){var te=this.controlBox.transform.baseVal.getItem(0);te.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(te,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()},re.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()},re.prototype.createGrip=function(){var te=new Ye;return te.visual.transform.baseVal.appendItem(me.createTransform()),this.controlBox.appendChild(te.visual),te},re.prototype.positionGrips=function(){var te=this.controlGrips.topLeft.GRIP_SIZE,ie=-te/2,ce=ie,ne=(this.width+this.CB_DISTANCE)/2-te/2,le=(this.height+this.CB_DISTANCE)/2-te/2,Ie=this.height+this.CB_DISTANCE-te/2,bt=this.width+this.CB_DISTANCE-te/2;this.positionGrip(this.controlGrips.topLeft.visual,ie,ce),this.positionGrip(this.controlGrips.topCenter.visual,ne,ce),this.positionGrip(this.controlGrips.topRight.visual,bt,ce),this.positionGrip(this.controlGrips.centerLeft.visual,ie,le),this.positionGrip(this.controlGrips.centerRight.visual,bt,le),this.positionGrip(this.controlGrips.bottomLeft.visual,ie,Ie),this.positionGrip(this.controlGrips.bottomCenter.visual,ne,Ie),this.positionGrip(this.controlGrips.bottomRight.visual,bt,Ie),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,ne,ce-3*this.CB_DISTANCE)},re.prototype.positionGrip=function(te,ie,ce){var ne=te.transform.baseVal.getItem(0);ne.setTranslate(ie,ce),te.transform.baseVal.replaceItem(ne,0)},re.prototype.hideControlBox=function(){this.controlBox.style.display="none"},re.prototype.showControlBox=function(){this.controlBox.style.display=""},re.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:ct.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:ct.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},ae.prototype.getState.call(this))},re.prototype.restoreState=function(te){ae.prototype.restoreState.call(this,te);var ie=te;this.left=ie.left,this.top=ie.top,this.width=ie.width,this.height=ie.height,this.rotationAngle=ie.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(ct.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,ie.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(ct.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,ie.containerTransformMatrix))},re.prototype.scale=function(te,ie){ae.prototype.scale.call(this,te,ie);var ce=this.rotatePoint({x:this.left,y:this.top}),ne=this.unrotatePoint({x:ce.x*te,y:ce.y*ie});this.left=ne.x,this.top=ne.y,this.width=this.width*te,this.height=this.height*ie,this.adjustControlBox()},re}(Se),Oe=function(ae){function re(te,ie,ce){var ne=ae.call(this,te,ie,ce)||this;return ne.fillColor="transparent",ne.strokeColor="transparent",ne.strokeWidth=0,ne.strokeDasharray="",ne.opacity=1,ne.setStrokeColor=ne.setStrokeColor.bind(ne),ne.setFillColor=ne.setFillColor.bind(ne),ne.setStrokeWidth=ne.setStrokeWidth.bind(ne),ne.setStrokeDasharray=ne.setStrokeDasharray.bind(ne),ne.createVisual=ne.createVisual.bind(ne),ne}return he(re,ae),re.prototype.ownsTarget=function(te){return!(!ae.prototype.ownsTarget.call(this,te)&&te!==this.visual)},re.prototype.createVisual=function(){this.visual=me.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)},re.prototype.pointerDown=function(te,ie){ae.prototype.pointerDown.call(this,te,ie),this.state==="new"&&(this.createVisual(),this.moveVisual(te),this._state="creating")},re.prototype.manipulate=function(te){ae.prototype.manipulate.call(this,te)},re.prototype.resize=function(te){ae.prototype.resize.call(this,te),this.setSize()},re.prototype.setSize=function(){ae.prototype.setSize.call(this),me.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},re.prototype.pointerUp=function(te){ae.prototype.pointerUp.call(this,te),this.setSize()},re.prototype.setStrokeColor=function(te){this.strokeColor=te,this.visual&&me.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(te),this.stateChanged()},re.prototype.setFillColor=function(te){this.fillColor=te,this.visual&&me.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},re.prototype.setStrokeWidth=function(te){this.strokeWidth=te,this.visual&&me.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},re.prototype.setStrokeDasharray=function(te){this.strokeDasharray=te,this.visual&&me.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},re.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},ae.prototype.getState.call(this))},re.prototype.restoreState=function(te){var ie=te;this.fillColor=ie.fillColor,this.strokeColor=ie.strokeColor,this.strokeWidth=ie.strokeWidth,this.strokeDasharray=ie.strokeDasharray,this.opacity=ie.opacity,this.createVisual(),ae.prototype.restoreState.call(this,te),this.setSize()},re.prototype.scale=function(te,ie){ae.prototype.scale.call(this,te,ie),this.setSize()},re.title="Rectangle marker",re}(Be),Re=function(ae){function re(te,ie,ce,ne){var le=ae.call(this,te,ne||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return le.widths=[],le.widthBoxes=[],le.widths=ie,le.currentWidth=ce,le.setCurrentWidth=le.setCurrentWidth.bind(le),le}return he(re,ae),re.prototype.getUi=function(){var te=this,ie=document.createElement("div");return ie.style.display="flex",ie.style.overflow="hidden",ie.style.flexGrow="2",this.widths.forEach(function(ce){var ne=document.createElement("div");ne.style.display="flex",ne.style.flexGrow="2",ne.style.alignItems="center",ne.style.justifyContent="space-between",ne.style.padding="5px",ne.style.borderWidth="2px",ne.style.borderStyle="solid",ne.style.borderColor=ce===te.currentWidth?te.uiStyleSettings.toolboxAccentColor:"transparent",ne.addEventListener("click",function(){te.setCurrentWidth(ce,ne)}),ie.appendChild(ne);var le=document.createElement("div");le.innerText=ce.toString(),le.style.marginRight="5px",ne.appendChild(le);var Ie=document.createElement("div");Ie.style.minHeight="20px",Ie.style.flexGrow="2",Ie.style.display="flex",Ie.style.alignItems="center";var bt=document.createElement("hr");bt.style.minWidth="20px",bt.style.border="0px",bt.style.borderTop=ce+"px solid "+te.uiStyleSettings.toolboxColor,bt.style.flexGrow="2",Ie.appendChild(bt),ne.appendChild(Ie),te.widthBoxes.push(ne)}),ie},re.prototype.setCurrentWidth=function(te,ie){var ce=this;this.currentWidth=te,this.widthBoxes.forEach(function(ne){ne.style.borderColor=ne===ie?ce.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},re}(Te),Ke=function(ae){function re(te,ie,ce,ne){var le=ae.call(this,te,ne||'<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 le.styles=[],le.styleBoxes=[],le.styles=ie,le.currentStyle=ce,le.setCurrentStyle=le.setCurrentStyle.bind(le),le}return he(re,ae),re.prototype.getUi=function(){var te=this,ie=document.createElement("div");return ie.style.display="flex",ie.style.overflow="hidden",ie.style.flexGrow="2",this.styles.forEach(function(ce){var ne=document.createElement("div");ne.style.display="flex",ne.style.alignItems="center",ne.style.justifyContent="space-between",ne.style.padding="5px",ne.style.borderWidth="2px",ne.style.borderStyle="solid",ne.style.overflow="hidden",ne.style.maxWidth=100/te.styles.length-5+"%",ne.style.borderColor=ce===te.currentStyle?te.uiStyleSettings.toolboxAccentColor:"transparent",ne.addEventListener("click",function(){te.setCurrentStyle(ce,ne)}),ie.appendChild(ne);var le=document.createElement("div");le.style.minHeight="20px",le.style.flexGrow="2",le.style.overflow="hidden";var Ie=`<svg width="100" height="20">
<line x1="0" y1="10" x2="100" y2="10" stroke="`+te.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(ce!==""?'stroke-dasharray="'+ce+'"':"")+` />
</svg>`;le.innerHTML=Ie,ne.appendChild(le),te.styleBoxes.push(ne)}),ie},re.prototype.setCurrentStyle=function(te,ie){var ce=this;this.currentStyle=te,this.styleBoxes.forEach(function(ne){ne.style.borderColor=ne===ie?ce.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},re}(Te),vt=function(ae){function re(te,ie,ce){var ne=ae.call(this,te,ie,ce)||this;return ne.strokeColor=ce.defaultColor,ne.strokeWidth=ce.defaultStrokeWidth,ne.strokeDasharray=ce.defaultStrokeDasharray,ne.strokePanel=new Ce("Line color",ce.defaultColorSet,ce.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.strokeWidthPanel=new Re("Line width",ce.defaultStrokeWidths,ce.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Ke("Line style",ce.defaultStrokeDasharrays,ce.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne}return he(re,ae),Object.defineProperty(re.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),re.prototype.getState=function(){var te=ae.prototype.getState.call(this);return te.typeName=re.typeName,te},re.typeName="FrameMarker",re.title="Frame marker",re.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',re}(Oe),it=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"},Qe=function(ae){function re(te,ie,ce){var ne=ae.call(this,te,ie,ce)||this;return ne.x1=0,ne.y1=0,ne.x2=0,ne.y2=0,ne.defaultLength=50,ne.manipulationStartX=0,ne.manipulationStartY=0,ne.manipulationStartX1=0,ne.manipulationStartY1=0,ne.manipulationStartX2=0,ne.manipulationStartY2=0,ne.setupControlBox(),ne}return he(re,ae),re.prototype.ownsTarget=function(te){return!!ae.prototype.ownsTarget.call(this,te)||!(!this.grip1.ownsTarget(te)&&!this.grip2.ownsTarget(te))},re.prototype.pointerDown=function(te,ie){ae.prototype.pointerDown.call(this,te,ie),this.manipulationStartX=te.x,this.manipulationStartY=te.y,this.state==="new"&&(this.x1=te.x,this.y1=te.y,this.x2=te.x,this.y2=te.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(ie)?this.activeGrip=this.grip1:this.grip2.ownsTarget(ie)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},re.prototype.pointerUp=function(te){var ie=this.state;ae.prototype.pointerUp.call(this,te),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(te),this._state="select",ie==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},re.prototype.adjustVisual=function(){},re.prototype.manipulate=function(te){this.state==="creating"?this.resize(te):this.state==="move"?(this.x1=this.manipulationStartX1+te.x-this.manipulationStartX,this.y1=this.manipulationStartY1+te.y-this.manipulationStartY,this.x2=this.manipulationStartX2+te.x-this.manipulationStartX,this.y2=this.manipulationStartY2+te.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(te)},re.prototype.resize=function(te){switch(this.activeGrip){case this.grip1:this.x1=te.x,this.y1=te.y;break;case this.grip2:case void 0:this.x2=te.x,this.y2=te.y}this.adjustVisual(),this.adjustControlBox()},re.prototype.select=function(){ae.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},re.prototype.deselect=function(){ae.prototype.deselect.call(this),this.controlBox.style.display="none"},re.prototype.setupControlBox=function(){this.controlBox=me.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},re.prototype.adjustControlBox=function(){this.positionGrips()},re.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},re.prototype.createGrip=function(){var te=new Ye;return te.visual.transform.baseVal.appendItem(me.createTransform()),this.controlBox.appendChild(te.visual),te},re.prototype.positionGrips=function(){var te=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-te/2,this.y1-te/2),this.positionGrip(this.grip2.visual,this.x2-te/2,this.y2-te/2)},re.prototype.positionGrip=function(te,ie,ce){var ne=te.transform.baseVal.getItem(0);ne.setTranslate(ie,ce),te.transform.baseVal.replaceItem(ne,0)},re.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},ae.prototype.getState.call(this))},re.prototype.restoreState=function(te){ae.prototype.restoreState.call(this,te);var ie=te;this.x1=ie.x1,this.y1=ie.y1,this.x2=ie.x2,this.y2=ie.y2},re.prototype.scale=function(te,ie){ae.prototype.scale.call(this,te,ie),this.x1=this.x1*te,this.y1=this.y1*ie,this.x2=this.x2*te,this.y2=this.y2*ie,this.adjustVisual(),this.adjustControlBox()},re}(Se),ut=function(ae){function re(te,ie,ce){var ne=ae.call(this,te,ie,ce)||this;return ne.strokeColor="transparent",ne.strokeWidth=0,ne.strokeDasharray="",ne.setStrokeColor=ne.setStrokeColor.bind(ne),ne.setStrokeWidth=ne.setStrokeWidth.bind(ne),ne.setStrokeDasharray=ne.setStrokeDasharray.bind(ne),ne.strokeColor=ce.defaultColor,ne.strokeWidth=ce.defaultStrokeWidth,ne.strokeDasharray=ce.defaultStrokeDasharray,ne.strokePanel=new Ce("Line color",ce.defaultColorSet,ce.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.strokeWidthPanel=new Re("Line width",ce.defaultStrokeWidths,ce.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Ke("Line style",ce.defaultStrokeDasharrays,ce.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne}return he(re,ae),re.prototype.ownsTarget=function(te){return!(!ae.prototype.ownsTarget.call(this,te)&&te!==this.visual&&te!==this.selectorLine&&te!==this.visibleLine)},re.prototype.createVisual=function(){this.visual=me.createGroup(),this.selectorLine=me.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=me.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)},re.prototype.pointerDown=function(te,ie){ae.prototype.pointerDown.call(this,te,ie),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},re.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()),me.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),me.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),me.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},re.prototype.setStrokeColor=function(te){this.strokeColor=te,this.adjustVisual(),this.colorChanged(te)},re.prototype.setStrokeWidth=function(te){this.strokeWidth=te,this.adjustVisual()},re.prototype.setStrokeDasharray=function(te){this.strokeDasharray=te,this.adjustVisual(),this.stateChanged()},Object.defineProperty(re.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),re.prototype.getState=function(){var te=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},ae.prototype.getState.call(this));return te.typeName=re.typeName,te},re.prototype.restoreState=function(te){ae.prototype.restoreState.call(this,te);var ie=te;this.strokeColor=ie.strokeColor,this.strokeWidth=ie.strokeWidth,this.strokeDasharray=ie.strokeDasharray,this.createVisual(),this.adjustVisual()},re.typeName="LineMarker",re.title="Line marker",re.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',re}(Qe),be=function(ae){function re(te,ie,ce,ne){var le=ae.call(this,te,ne||'<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 le.fonts=[],le.fontBoxes=[],le.fonts=ie,le.currentFont=ce,le.setCurrentFont=le.setCurrentFont.bind(le),le}return he(re,ae),re.prototype.getUi=function(){var te=this,ie=document.createElement("div");return ie.style.overflow="hidden",ie.style.flexGrow="2",this.fonts.forEach(function(ce){var ne=document.createElement("div");ne.style.display="inline-block",ne.style.alignItems="center",ne.style.justifyContent="space-between",ne.style.padding="5px",ne.style.borderWidth="2px",ne.style.borderStyle="solid",ne.style.overflow="hidden",ne.style.maxWidth=100/te.fonts.length-5+"%",ne.style.borderColor=ce===te.currentFont?te.uiStyleSettings.toolboxAccentColor:"transparent",ne.addEventListener("click",function(){te.setCurrentFont(ce,ne)}),ie.appendChild(ne);var le=document.createElement("div");le.style.display="flex",le.style.minHeight="20px",le.style.flexGrow="2",le.style.fontFamily=ce,le.style.overflow="hidden";var Ie=document.createElement("div");Ie.style.whiteSpace="nowrap",Ie.style.overflow="hidden",Ie.style.textOverflow="ellipsis",Ie.innerHTML="The quick brown fox jumps over the lazy dog",le.appendChild(Ie),ne.appendChild(le),te.fontBoxes.push(ne)}),ie},re.prototype.setCurrentFont=function(te,ie){var ce=this;this.currentFont=te,this.fontBoxes.forEach(function(ne){ne.style.borderColor=ne===ie?ce.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},re}(Te),et=function(ae){function re(te,ie,ce){var ne=ae.call(this,te,ie,ce)||this;return ne.color="transparent",ne.padding=5,ne.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",ne.text=ne.DEFAULT_TEXT,ne.isMoved=!1,ne.color=ce.defaultColor,ne.fontFamily=ce.defaultFontFamily,ne.defaultSize={x:100,y:30},ne.setColor=ne.setColor.bind(ne),ne.setFont=ne.setFont.bind(ne),ne.renderText=ne.renderText.bind(ne),ne.sizeText=ne.sizeText.bind(ne),ne.textEditDivClicked=ne.textEditDivClicked.bind(ne),ne.showTextEditor=ne.showTextEditor.bind(ne),ne.setSize=ne.setSize.bind(ne),ne.positionTextEditor=ne.positionTextEditor.bind(ne),ne.colorPanel=new Ce("Color",ce.defaultColorSet,ce.defaultColor),ne.colorPanel.onColorChanged=ne.setColor,ne.fontFamilyPanel=new be("Font",ce.defaultFontFamilies,ce.defaultFontFamily),ne.fontFamilyPanel.onFontChanged=ne.setFont,ne}return he(re,ae),re.prototype.ownsTarget=function(te){if(ae.prototype.ownsTarget.call(this,te)||te===this.visual||te===this.textElement||te===this.bgRectangle)return!0;var ie=!1;return this.textElement.childNodes.forEach(function(ce){ce===te&&(ie=!0)}),ie},re.prototype.createVisual=function(){this.visual=me.createGroup(),this.bgRectangle=me.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=me.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(me.createTransform()),this.textElement.transform.baseVal.appendItem(me.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},re.prototype.pointerDown=function(te,ie){ae.prototype.pointerDown.call(this,te,ie),this.isMoved=!1,this.pointerDownPoint=te,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(te),this._state="creating")},re.prototype.renderText=function(){var te=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(ie){te.textElement.appendChild(me.createTSpan(ie.trim()===""?" ":ie.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},re.prototype.getTextScale=function(){var te=this.textElement.getBBox(),ie=1;if(te.width>0&&te.height>0){var ce=(1*this.width-this.width*this.padding*2/100)/te.width,ne=(1*this.height-this.height*this.padding*2/100)/te.height;ie=Math.min(ce,ne)}return ie},re.prototype.getTextPosition=function(te){var ie=this.textElement.getBBox(),ce=0,ne=0;return ie.width>0&&ie.height>0&&(ce=(this.width-ie.width*te)/2,ne=this.height/2-ie.height*te/2),{x:ce,y:ne}},re.prototype.sizeText=function(){var te=this.textElement.getBBox(),ie=this.getTextScale(),ce=this.getTextPosition(ie);ce.y-=te.y*ie,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+ce.x+"px, "+ce.y+"px) scale("+ie+", "+ie+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(ce.x,ce.y),this.textElement.transform.baseVal.getItem(1).setScale(ie,ie))},re.prototype.manipulate=function(te){ae.prototype.manipulate.call(this,te),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(te.x-this.pointerDownPoint.x)>5||Math.abs(te.y-this.pointerDownPoint.y)>5)},re.prototype.resize=function(te){ae.prototype.resize.call(this,te),this.isMoved=!0,this.setSize(),this.sizeText()},re.prototype.setSize=function(){ae.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(me.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),me.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},re.prototype.pointerUp=function(te){var ie=this.state;ie==="creating"&&(this._suppressMarkerCreateEvent=!0),ae.prototype.pointerUp.call(this,te),this.setSize(),(ie==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},re.prototype.showTextEditor=function(){var te=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(ie){ie.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var ie=Number.parseFloat(te.textEditor.style.fontSize);te.textEditor.clientWidth>=Number.parseInt(te.textEditor.style.maxWidth)&&ie>.9;)ie-=.1,te.textEditor.style.fontSize=Math.max(ie,.9)+"em"}),this.textEditor.addEventListener("keyup",function(ie){ie.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(ie){if(ie.clipboardData){var ce=ie.clipboardData.getData("text"),ne=window.getSelection();if(!ne.rangeCount)return!1;ne.deleteFromDocument(),ne.getRangeAt(0).insertNode(document.createTextNode(ce)),ie.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){te.textEditDivClicked(te.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},re.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var te=this.getTextScale(),ie=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),ce=this.textElement.getBBox(),ne={x:ce.width*te,y:ce.height*te};ie.x-=ne.x/2,ie.y-=ne.y/2,this.textEditor.style.top=ie.y+"px",this.textEditor.style.left=ie.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-ie.x+"px",this.textEditor.style.fontSize=Math.max(16*te,12)+"px",this.textElement.style.display="none"}},re.prototype.textEditDivClicked=function(te){this.text=te.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},re.prototype.select=function(){ae.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},re.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),ae.prototype.deselect.call(this)},re.prototype.dblClick=function(te,ie){ae.prototype.dblClick.call(this,te,ie),this.showTextEditor()},re.prototype.setColor=function(te){this.textElement&&me.setAttributes(this.textElement,[["fill",te]]),this.color=te,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(te)},re.prototype.setFont=function(te){this.textElement&&me.setAttributes(this.textElement,[["font-family",te]]),this.fontFamily=te,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},re.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},re.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(re.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),re.prototype.getState=function(){var te=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},ae.prototype.getState.call(this));return te.typeName=re.typeName,te},re.prototype.restoreState=function(te){var ie=te;this.color=ie.color,this.fontFamily=ie.fontFamily,this.padding=ie.padding,this.text=ie.text,this.createVisual(),ae.prototype.restoreState.call(this,te),this.setSize()},re.prototype.scale=function(te,ie){ae.prototype.scale.call(this,te,ie),this.setSize(),this.sizeText(),this.positionTextEditor()},re.typeName="TextMarker",re.title="Text marker",re.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>',re}(Be),Ne=function(ae){function re(te,ie,ce){var ne=ae.call(this,te,ie,ce)||this;return ne.color="transparent",ne.lineWidth=3,ne.drawing=!1,ne.pixelRatio=1,ne.color=ce.defaultColor,ne.lineWidth=ce.defaultStrokeWidth,ne.pixelRatio=ce.freehandPixelRatio,ne.setColor=ne.setColor.bind(ne),ne.addCanvas=ne.addCanvas.bind(ne),ne.finishCreation=ne.finishCreation.bind(ne),ne.setLineWidth=ne.setLineWidth.bind(ne),ne.colorPanel=new Ce("Color",ce.defaultColorSet,ce.defaultColor),ne.colorPanel.onColorChanged=ne.setColor,ne.lineWidthPanel=new Re("Line width",ce.defaultStrokeWidths,ce.defaultStrokeWidth),ne.lineWidthPanel.onWidthChanged=ne.setLineWidth,ne}return he(re,ae),re.prototype.ownsTarget=function(te){return!(!ae.prototype.ownsTarget.call(this,te)&&te!==this.visual&&te!==this.drawingImage)},re.prototype.createVisual=function(){this.visual=me.createGroup(),this.drawingImage=me.createImage(),this.visual.appendChild(this.drawingImage);var te=me.createTransform();this.visual.transform.baseVal.appendItem(te),this.addMarkerVisualToContainer(this.visual)},re.prototype.pointerDown=function(te,ie){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(te.x,te.y),this.drawing=!0):ae.prototype.pointerDown.call(this,te,ie)},re.prototype.manipulate=function(te){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(te.x,te.y),this.canvasContext.stroke()):ae.prototype.manipulate.call(this,te)},re.prototype.resize=function(te){ae.prototype.resize.call(this,te),me.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),me.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},re.prototype.pointerUp=function(te){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):ae.prototype.pointerUp.call(this,te)},re.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)},re.prototype.select=function(){this.state==="creating"&&this.finishCreation(),ae.prototype.select.call(this)},re.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),ae.prototype.deselect.call(this)},re.prototype.finishCreation=function(){for(var te=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),ie=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],ce=ie[0],ne=ie[1],le=ie[2],Ie=ie[3],bt=!1,Ue=0;Ue<this.canvasElement.height;Ue++)for(var He=0;He<this.canvasElement.width;He++)te.data[Ue*this.canvasElement.width*4+4*He+3]>0&&(bt=!0,Ue<ne&&(ne=Ue),He<ce&&(ce=He),Ue>Ie&&(Ie=Ue),He>le&&(le=He));if(bt){this.left=ce/this.pixelRatio,this.top=ne/this.pixelRatio,this.width=(le-ce)/this.pixelRatio,this.height=(Ie-ne)/this.pixelRatio;var at=document.createElement("canvas");at.width=le-ce,at.height=Ie-ne,at.getContext("2d").putImageData(this.canvasContext.getImageData(ce,ne,le-ce,Ie-ne),0,0),this.drawingImgUrl=at.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},re.prototype.setDrawingImage=function(){me.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),me.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},re.prototype.setColor=function(te){this.color=te,this.colorChanged(te)},re.prototype.setLineWidth=function(te){this.lineWidth=te},Object.defineProperty(re.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),re.prototype.getState=function(){var te=Object.assign({drawingImgUrl:this.drawingImgUrl},ae.prototype.getState.call(this));return te.typeName=re.typeName,te},re.prototype.restoreState=function(te){this.createVisual(),ae.prototype.restoreState.call(this,te),this.drawingImgUrl=te.drawingImgUrl,this.setDrawingImage()},re.prototype.scale=function(te,ie){ae.prototype.scale.call(this,te,ie),this.setDrawingImage()},re.typeName="FreehandMarker",re.title="Freehand marker",re.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>',re}(Be),ue=function(ae){function re(te,ie,ce){var ne=ae.call(this,te,ce||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return ne.typeBoxes=[],ne.currentType=ie,ne.setCurrentType=ne.setCurrentType.bind(ne),ne}return he(re,ae),re.prototype.getUi=function(){var te=this,ie=document.createElement("div");ie.style.display="flex",ie.style.overflow="hidden",ie.style.flexGrow="2";for(var ce=function(Ie){var bt="both";switch(Ie){case 0:bt="both";break;case 1:bt="start";break;case 2:bt="end";break;case 3:bt="none"}var Ue=document.createElement("div");if(Ue.style.display="flex",Ue.style.flexGrow="2",Ue.style.alignItems="center",Ue.style.justifyContent="space-between",Ue.style.padding="5px",Ue.style.borderWidth="2px",Ue.style.borderStyle="solid",Ue.style.borderColor=bt===ne.currentType?ne.uiStyleSettings.toolboxAccentColor:"transparent",Ue.addEventListener("click",function(){te.setCurrentType(bt,Ue)}),ie.appendChild(Ue),bt==="both"||bt==="start"){var He=document.createElement("div");He.style.display="flex",He.style.alignItems="center",He.style.minHeight="20px",He.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="`+(ne.uiStyleSettings!==void 0?ne.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,He.style.marginLeft="5px",Ue.appendChild(He)}var at=document.createElement("div");at.style.display="flex",at.style.alignItems="center",at.style.minHeight="20px",at.style.flexGrow="2";var ft=document.createElement("hr");if(ft.style.minWidth="20px",ft.style.border="0px",ft.style.borderTop="3px solid "+(ne.uiStyleSettings!==void 0?ne.uiStyleSettings.toolboxColor:"#eeeeee"),ft.style.flexGrow="2",at.appendChild(ft),Ue.appendChild(at),bt==="both"||bt==="end"){var Pt=document.createElement("div");Pt.style.display="flex",Pt.style.alignItems="center",Pt.style.minHeight="20px",Pt.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="`+(ne.uiStyleSettings!==void 0?ne.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,Pt.style.marginRight="5px",Ue.appendChild(Pt)}ne.typeBoxes.push(Ue)},ne=this,le=0;le<4;le++)ce(le);return ie},re.prototype.setCurrentType=function(te,ie){var ce=this;this.currentType=te,this.typeBoxes.forEach(function(ne){ne.style.borderColor=ne===ie?ce.uiStyleSettings!==void 0?ce.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},re}(Te),mt=function(ae){function re(te,ie,ce){var ne=ae.call(this,te,ie,ce)||this;return ne.arrowType="end",ne.arrowBaseHeight=10,ne.arrowBaseWidth=10,ne.getArrowPoints=ne.getArrowPoints.bind(ne),ne.setArrowType=ne.setArrowType.bind(ne),ne.arrowTypePanel=new ue("Arrow type","end"),ne.arrowTypePanel.onArrowTypeChanged=ne.setArrowType,ne}return he(re,ae),re.prototype.ownsTarget=function(te){return!(!ae.prototype.ownsTarget.call(this,te)&&te!==this.arrow1&&te!==this.arrow2)},re.prototype.getArrowPoints=function(te,ie){var ce=this.arrowBaseWidth+2*this.strokeWidth,ne=this.arrowBaseHeight+2*this.strokeWidth;return te-ce/2+","+(ie+ne/2)+" "+te+","+(ie-ne/2)+" "+(te+ce/2)+","+(ie+ne/2)},re.prototype.createTips=function(){this.arrow1=me.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(me.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=me.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(me.createTransform()),this.visual.appendChild(this.arrow2)},re.prototype.pointerDown=function(te,ie){ae.prototype.pointerDown.call(this,te,ie),this.state==="creating"&&this.createTips()},re.prototype.adjustVisual=function(){if(ae.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",me.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),me.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var te=0;Math.abs(this.x1-this.x2)>.1&&(te=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var ie=this.arrow1.transform.baseVal.getItem(0);ie.setRotate(te,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(ie,0);var ce=this.arrow2.transform.baseVal.getItem(0);ce.setRotate(te+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(ce,0)}},re.prototype.setArrowType=function(te){this.arrowType=te,this.adjustVisual(),this.stateChanged()},Object.defineProperty(re.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),re.prototype.getState=function(){var te=Object.assign({arrowType:this.arrowType},ae.prototype.getState.call(this));return te.typeName=re.typeName,te},re.prototype.restoreState=function(te){ae.prototype.restoreState.call(this,te);var ie=te;this.arrowType=ie.arrowType,this.createTips(),this.adjustVisual()},re.typeName="ArrowMarker",re.title="Arrow marker",re.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',re}(ut),Ze=function(ae){function re(te,ie,ce){var ne=ae.call(this,te,ie,ce)||this;return ne.fillColor=ce.defaultFillColor,ne.strokeWidth=0,ne.fillPanel=new Ce("Color",ce.defaultColorSet,ce.defaultFillColor),ne.fillPanel.onColorChanged=ne.setFillColor,ne}return he(re,ae),Object.defineProperty(re.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),re.prototype.getState=function(){var te=ae.prototype.getState.call(this);return te.typeName=re.typeName,te},re.typeName="CoverMarker",re.title="Cover marker",re.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',re}(Oe),nt=function(ae){function re(te,ie,ce,ne){var le=ae.call(this,te,ne||'<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 le.opacities=[],le.opacityBoxes=[],le.opacities=ie,le.currentOpacity=ce,le.setCurrentOpacity=le.setCurrentOpacity.bind(le),le}return he(re,ae),re.prototype.getUi=function(){var te=this,ie=document.createElement("div");return ie.style.display="flex",ie.style.overflow="hidden",ie.style.flexGrow="2",ie.style.justifyContent="space-between",this.opacities.forEach(function(ce){var ne=document.createElement("div");ne.style.display="flex",ne.style.alignItems="center",ne.style.justifyContent="center",ne.style.padding="5px",ne.style.borderWidth="2px",ne.style.borderStyle="solid",ne.style.borderColor=ce===te.currentOpacity?te.uiStyleSettings.toolboxAccentColor:"transparent",ne.addEventListener("click",function(){te.setCurrentOpacity(ce,ne)}),ie.appendChild(ne);var le=document.createElement("div");le.innerText=100*ce+"%",ne.appendChild(le),te.opacityBoxes.push(ne)}),ie},re.prototype.setCurrentOpacity=function(te,ie){var ce=this;this.currentOpacity=te,this.opacityBoxes.forEach(function(ne){ne.style.borderColor=ne===ie?ce.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},re}(Te),Mt=function(ae){function re(te,ie,ce){var ne=ae.call(this,te,ie,ce)||this;return ne.setOpacity=ne.setOpacity.bind(ne),ne.fillColor=ce.defaultHighlightColor,ne.strokeWidth=0,ne.opacity=ce.defaultHighlightOpacity,ne.fillPanel=new Ce("Color",ce.defaultColorSet,ne.fillColor),ne.fillPanel.onColorChanged=ne.setFillColor,ne.opacityPanel=new nt("Opacity",ce.defaultOpacitySteps,ne.opacity),ne.opacityPanel.onOpacityChanged=ne.setOpacity,ne}return he(re,ae),re.prototype.setOpacity=function(te){this.opacity=te,this.visual&&me.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(re.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),re.prototype.getState=function(){var te=ae.prototype.getState.call(this);return te.typeName=re.typeName,te},re.typeName="HighlightMarker",re.title="Highlight marker",re.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>',re}(Ze),Fe='<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>',ye='<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>',Bt=function(ae){function re(te,ie,ce){var ne=ae.call(this,te,ie,ce)||this;return ne.bgColor="transparent",ne.tipPosition={x:0,y:0},ne.tipBase1Position={x:0,y:0},ne.tipBase2Position={x:0,y:0},ne.tipMoving=!1,ne.color=ce.defaultStrokeColor,ne.bgColor=ce.defaultFillColor,ne.fontFamily=ce.defaultFontFamily,ne.defaultSize={x:100,y:30},ne.setBgColor=ne.setBgColor.bind(ne),ne.getTipPoints=ne.getTipPoints.bind(ne),ne.positionTip=ne.positionTip.bind(ne),ne.setTipPoints=ne.setTipPoints.bind(ne),ne.colorPanel=new Ce("Text color",ce.defaultColorSet,ne.color,Fe),ne.colorPanel.onColorChanged=ne.setColor,ne.bgColorPanel=new Ce("Fill color",ce.defaultColorSet,ne.bgColor,ye),ne.bgColorPanel.onColorChanged=ne.setBgColor,ne.fontFamilyPanel=new be("Font",ce.defaultFontFamilies,ce.defaultFontFamily),ne.fontFamilyPanel.onFontChanged=ne.setFont,ne.tipGrip=new Ye,ne.tipGrip.visual.transform.baseVal.appendItem(me.createTransform()),ne.controlBox.appendChild(ne.tipGrip.visual),ne}return he(re,ae),re.prototype.ownsTarget=function(te){return ae.prototype.ownsTarget.call(this,te)||this.tipGrip.ownsTarget(te)||this.tip===te},re.prototype.createTip=function(){me.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=me.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},re.prototype.pointerDown=function(te,ie){this.state==="new"&&ae.prototype.pointerDown.call(this,te,ie),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(ie)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):ae.prototype.pointerDown.call(this,te,ie)},re.prototype.pointerUp=function(te){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,ae.prototype.pointerUp.call(this,te);else{var ie=this.state==="creating";ae.prototype.pointerUp.call(this,te),this.setTipPoints(ie),this.positionTip()}},re.prototype.manipulate=function(te){if(this.tipMoving){var ie=this.unrotatePoint(te);this.tipPosition={x:ie.x-this.manipulationStartLeft,y:ie.y-this.manipulationStartTop},this.positionTip()}else ae.prototype.manipulate.call(this,te)},re.prototype.setBgColor=function(te){this.bgRectangle&&this.tip&&(me.setAttributes(this.bgRectangle,[["fill",te]]),me.setAttributes(this.tip,[["fill",te]])),this.bgColor=te,this.fillColorChanged(te)},re.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},re.prototype.setTipPoints=function(te){te===void 0&&(te=!1);var ie=Math.min(this.height/2,15),ce=this.height/5;te&&(this.tipPosition={x:ie+ce/2,y:this.height+20});var ne=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?ne<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(ce=this.width/5,ie=Math.min(this.width/2,15),this.tipBase1Position={x:ie,y:0},this.tipBase2Position={x:ie+ce,y:0}):(this.tipBase1Position={x:0,y:ie},this.tipBase2Position={x:0,y:ie+ce}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?ne<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(ce=this.width/5,ie=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-ie-ce,y:0},this.tipBase2Position={x:this.width-ie,y:0}):(this.tipBase1Position={x:this.width,y:ie},this.tipBase2Position={x:this.width,y:ie+ce}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?ne<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(ce=this.width/5,ie=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-ie-ce,y:this.height},this.tipBase2Position={x:this.width-ie,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-ie-ce},this.tipBase2Position={x:this.width,y:this.height-ie}):ne<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(ce=this.width/5,ie=Math.min(this.width/2,15),this.tipBase1Position={x:ie,y:this.height},this.tipBase2Position={x:ie+ce,y:this.height}):(this.tipBase1Position={x:0,y:this.height-ie},this.tipBase2Position={x:0,y:this.height-ie-ce})},re.prototype.resize=function(te){ae.prototype.resize.call(this,te),this.positionTip()},re.prototype.positionTip=function(){me.setAttributes(this.tip,[["points",this.getTipPoints()]]);var te=this.tipGrip.visual.transform.baseVal.getItem(0);te.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(te,0)},Object.defineProperty(re.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),re.prototype.select=function(){this.positionTip(),ae.prototype.select.call(this)},re.prototype.getState=function(){var te=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},ae.prototype.getState.call(this));return te.typeName=re.typeName,te},re.prototype.restoreState=function(te){var ie=te;this.bgColor=ie.bgColor,this.tipPosition=ie.tipPosition,ae.prototype.restoreState.call(this,te),this.createTip(),this.setTipPoints()},re.prototype.scale=function(te,ie){ae.prototype.scale.call(this,te,ie),this.tipPosition={x:this.tipPosition.x*te,y:this.tipPosition.y*ie},this.positionTip()},re.typeName="CalloutMarker",re.title="Callout marker",re.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>',re}(et),jt=function(ae){function re(te,ie,ce){var ne=ae.call(this,te,ie,ce)||this;return ne.fillColor="transparent",ne.strokeColor="transparent",ne.strokeWidth=0,ne.strokeDasharray="",ne.opacity=1,ne.strokeColor=ce.defaultColor,ne.strokeWidth=ce.defaultStrokeWidth,ne.strokeDasharray=ce.defaultStrokeDasharray,ne.fillColor=ce.defaultFillColor,ne.setStrokeColor=ne.setStrokeColor.bind(ne),ne.setFillColor=ne.setFillColor.bind(ne),ne.setStrokeWidth=ne.setStrokeWidth.bind(ne),ne.setStrokeDasharray=ne.setStrokeDasharray.bind(ne),ne.setOpacity=ne.setOpacity.bind(ne),ne.createVisual=ne.createVisual.bind(ne),ne.strokePanel=new Ce("Line color",pe(ce.defaultColorSet,["transparent"]),ce.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.fillPanel=new Ce("Fill color",pe(ce.defaultColorSet,["transparent"]),ne.fillColor,ye),ne.fillPanel.onColorChanged=ne.setFillColor,ne.strokeWidthPanel=new Re("Line width",ce.defaultStrokeWidths,ce.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Ke("Line style",ce.defaultStrokeDasharrays,ce.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne.opacityPanel=new nt("Opacity",ce.defaultOpacitySteps,ne.opacity),ne.opacityPanel.onOpacityChanged=ne.setOpacity,ne}return he(re,ae),re.prototype.ownsTarget=function(te){return!(!ae.prototype.ownsTarget.call(this,te)&&te!==this.visual)},re.prototype.createVisual=function(){this.visual=me.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)},re.prototype.pointerDown=function(te,ie){ae.prototype.pointerDown.call(this,te,ie),this.state==="new"&&(this.createVisual(),this.moveVisual(te),this._state="creating")},re.prototype.manipulate=function(te){ae.prototype.manipulate.call(this,te)},re.prototype.resize=function(te){ae.prototype.resize.call(this,te),this.setSize()},re.prototype.setSize=function(){ae.prototype.setSize.call(this),me.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},re.prototype.pointerUp=function(te){ae.prototype.pointerUp.call(this,te),this.setSize()},re.prototype.setStrokeColor=function(te){this.strokeColor=te,this.visual&&me.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(te),this.stateChanged()},re.prototype.setFillColor=function(te){this.fillColor=te,this.visual&&me.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(te),this.stateChanged()},re.prototype.setStrokeWidth=function(te){this.strokeWidth=te,this.visual&&me.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},re.prototype.setStrokeDasharray=function(te){this.strokeDasharray=te,this.visual&&me.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},re.prototype.setOpacity=function(te){this.opacity=te,this.visual&&me.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(re.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),re.prototype.getState=function(){var te=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},ae.prototype.getState.call(this));return te.typeName=re.typeName,te},re.prototype.restoreState=function(te){var ie=te;this.fillColor=ie.fillColor,this.strokeColor=ie.strokeColor,this.strokeWidth=ie.strokeWidth,this.strokeDasharray=ie.strokeDasharray,this.opacity=ie.opacity,this.createVisual(),ae.prototype.restoreState.call(this,te),this.setSize()},re.prototype.scale=function(te,ie){ae.prototype.scale.call(this,te,ie),this.setSize()},re.typeName="EllipseMarker",re.title="Ellipse marker",re.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>',re}(Be),Lt=function(ae){function re(te,ie,ce){return ae.call(this,te,ie,ce)||this}return he(re,ae),Object.defineProperty(re.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),re.prototype.ownsTarget=function(te){return!(!ae.prototype.ownsTarget.call(this,te)&&te!==this.tip1&&te!==this.tip2)},re.prototype.createTips=function(){this.tip1=me.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(me.createTransform()),this.visual.appendChild(this.tip1),this.tip2=me.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(me.createTransform()),this.visual.appendChild(this.tip2)},re.prototype.pointerDown=function(te,ie){ae.prototype.pointerDown.call(this,te,ie),this.state==="creating"&&this.createTips()},re.prototype.adjustVisual=function(){if(ae.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(me.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()]]),me.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 te=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),ie=this.tip1.transform.baseVal.getItem(0);ie.setRotate(te,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(ie,0);var ce=this.tip2.transform.baseVal.getItem(0);ce.setRotate(te+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(ce,0)}},Object.defineProperty(re.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),re.prototype.getState=function(){var te=ae.prototype.getState.call(this);return te.typeName=re.typeName,te},re.prototype.restoreState=function(te){ae.prototype.restoreState.call(this,te),this.createTips(),this.adjustVisual()},re.typeName="MeasurementMarker",re.title="Measurement marker",re.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>',re}(ut),Ee=function(ae){function re(te,ie,ce){var ne=ae.call(this,te,ie,ce)||this;return ne.strokePanel.colors=ce.defaultColorSet,ne.fillColor="transparent",ne}return he(re,ae),Object.defineProperty(re.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),re.prototype.getState=function(){var te=ae.prototype.getState.call(this);return te.typeName=re.typeName,te},re.typeName="EllipseFrameMarker",re.title="Ellipse frame marker",re.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>',re}(jt),ot=function(){function ae(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(ae.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),ae.prototype.addUndoStep=function(re){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(re)||(this.undoStack.push(re),JSON.stringify(this.lastRedoStep)!==JSON.stringify(re)&&this.redoStack.splice(0,this.redoStack.length))},ae.prototype.replaceLastUndoStep=function(re){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=re)},ae.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},ae.prototype.undo=function(){if(this.undoStack.length>1){var re=this.undoStack.pop();return re!==void 0&&this.redoStack.push(re),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},ae.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},ae}(),qe=function(ae){function re(te,ie,ce){var ne=ae.call(this,te,ie,ce)||this;return ne.strokeColor="transparent",ne.strokeWidth=0,ne.strokeDasharray="",ne.curveX=0,ne.curveY=0,ne.manipulationStartCurveX=0,ne.manipulationStartCurveY=0,ne.setStrokeColor=ne.setStrokeColor.bind(ne),ne.setStrokeWidth=ne.setStrokeWidth.bind(ne),ne.setStrokeDasharray=ne.setStrokeDasharray.bind(ne),ne.positionGrips=ne.positionGrips.bind(ne),ne.addControlGrips=ne.addControlGrips.bind(ne),ne.adjustVisual=ne.adjustVisual.bind(ne),ne.setupControlBox=ne.setupControlBox.bind(ne),ne.resize=ne.resize.bind(ne),ne.strokeColor=ce.defaultColor,ne.strokeWidth=ce.defaultStrokeWidth,ne.strokeDasharray=ce.defaultStrokeDasharray,ne.strokePanel=new Ce("Line color",ce.defaultColorSet,ce.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.strokeWidthPanel=new Re("Line width",ce.defaultStrokeWidths,ce.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Ke("Line style",ce.defaultStrokeDasharrays,ce.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne}return he(re,ae),re.prototype.ownsTarget=function(te){return!(!ae.prototype.ownsTarget.call(this,te)&&te!==this.visual&&te!==this.selectorCurve&&te!==this.visibleCurve&&!this.curveGrip.ownsTarget(te))},re.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},re.prototype.createVisual=function(){this.visual=me.createGroup(),this.selectorCurve=me.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=me.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)},re.prototype.pointerDown=function(te,ie){ae.prototype.pointerDown.call(this,te,ie),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=te.x,this.curveY=te.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(ie)&&(this.activeGrip=this.curveGrip,this._state="resize")},re.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),me.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),me.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),me.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},re.prototype.setupControlBox=function(){ae.prototype.setupControlBox.call(this),this.curveControlLine1=me.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=me.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)},re.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,ae.prototype.addControlGrips.call(this)},re.prototype.positionGrips=function(){ae.prototype.positionGrips.call(this);var te=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-te/2,this.curveY-te/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()))},re.prototype.manipulate=function(te){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+te.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+te.y-this.manipulationStartY),ae.prototype.manipulate.call(this,te)},re.prototype.resize=function(te){this.activeGrip===this.curveGrip&&(this.curveX=te.x,this.curveY=te.y),ae.prototype.resize.call(this,te),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},re.prototype.setStrokeColor=function(te){this.strokeColor=te,this.adjustVisual(),this.colorChanged(te)},re.prototype.setStrokeWidth=function(te){this.strokeWidth=te,this.adjustVisual()},re.prototype.setStrokeDasharray=function(te){this.strokeDasharray=te,this.adjustVisual()},re.prototype.scale=function(te,ie){this.curveX=this.curveX*te,this.curveY=this.curveY*ie,ae.prototype.scale.call(this,te,ie)},Object.defineProperty(re.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),re.prototype.getState=function(){var te=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},ae.prototype.getState.call(this));return te.typeName=re.typeName,te},re.prototype.restoreState=function(te){ae.prototype.restoreState.call(this,te);var ie=te;this.strokeColor=ie.strokeColor,this.strokeWidth=ie.strokeWidth,this.strokeDasharray=ie.strokeDasharray,this.curveX=ie.curveX,this.curveY=ie.curveY,this.createVisual(),this.adjustVisual()},re.typeName="CurveMarker",re.title="Curve marker",re.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>',re}(Qe),zt=function(ae){function re(te,ie,ce){var ne=ae.call(this,te,ie,ce)||this;return ne.fillColor="transparent",ne.strokeColor="transparent",ne.strokeWidth=0,ne.strokeDasharray="",ne.textColor="transparent",ne.fontSize="1rem",ne.isMoved=!1,ne.captionText="Caption",ne.PADDING=5,ne.captionBoxWidth=0,ne.captionBoxHeight=0,ne.strokeColor=ce.defaultColor,ne.strokeWidth=ce.defaultStrokeWidth,ne.strokeDasharray=ce.defaultStrokeDasharray,ne.fillColor=ce.defaultFillColor,ne.textColor=ce.defaultStrokeColor,ne.fontFamily=ce.defaultFontFamily,ne.fontSize=ce.defaultCaptionFontSize,ne.captionText=ce.defaultCaptionText,ne.setStrokeColor=ne.setStrokeColor.bind(ne),ne.setFillColor=ne.setFillColor.bind(ne),ne.setStrokeWidth=ne.setStrokeWidth.bind(ne),ne.setStrokeDasharray=ne.setStrokeDasharray.bind(ne),ne.createVisual=ne.createVisual.bind(ne),ne.sizeCaption=ne.sizeCaption.bind(ne),ne.setCaptionText=ne.setCaptionText.bind(ne),ne.showTextEditor=ne.showTextEditor.bind(ne),ne.positionTextEditor=ne.positionTextEditor.bind(ne),ne.finishTextEditing=ne.finishTextEditing.bind(ne),ne.setFont=ne.setFont.bind(ne),ne.setTextColor=ne.setTextColor.bind(ne),ne.strokePanel=new Ce("Line color",pe(ce.defaultColorSet,["transparent"]),ne.strokeColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.fillPanel=new Ce("Fill color",pe(ce.defaultColorSet,["transparent"]),ne.fillColor,ye),ne.fillPanel.onColorChanged=ne.setFillColor,ne.strokeWidthPanel=new Re("Line width",ce.defaultStrokeWidths,ce.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Ke("Line style",ce.defaultStrokeDasharrays,ce.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne.fontFamilyPanel=new be("Font",ce.defaultFontFamilies,ce.defaultFontFamily),ne.fontFamilyPanel.onFontChanged=ne.setFont,ne.textColorPanel=new Ce("Text color",ce.defaultColorSet,ne.textColor,Fe),ne.textColorPanel.onColorChanged=ne.setTextColor,ne}return he(re,ae),re.prototype.ownsTarget=function(te){return!(!ae.prototype.ownsTarget.call(this,te)&&te!==this.visual&&te!==this.frame&&te!==this.captionBg&&te!==this.captionElement)},re.prototype.createVisual=function(){this.visual=me.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=me.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=me.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=me.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()},re.prototype.setCaptionText=function(te){this.captionText=te,this.captionElement.textContent=this.captionText,this.sizeCaption()},re.prototype.pointerDown=function(te,ie){ae.prototype.pointerDown.call(this,te,ie),this.isMoved=!1,this.pointerDownPoint=te,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(te),this._state="creating")},re.prototype.manipulate=function(te){ae.prototype.manipulate.call(this,te),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(te.x-this.pointerDownPoint.x)>5||Math.abs(te.y-this.pointerDownPoint.y)>5)},re.prototype.resize=function(te){ae.prototype.resize.call(this,te),this.setSize()},re.prototype.sizeCaption=function(){var te=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=te.width+2*this.PADDING,this.captionBoxHeight=te.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),me.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')"]]),me.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')"]])},re.prototype.showTextEditor=function(){var te=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(ie){ie.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(ie){ie.key==="Enter"&&te.finishTextEditing(te.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(ie){ie.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){te.finishTextEditing(te.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){te.finishTextEditing(te.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},re.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"))},re.prototype.finishTextEditing=function(te){this.setCaptionText(te.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},re.prototype.setFont=function(te){this.captionElement&&me.setAttributes(this.captionElement,[["font-family",te]]),this.fontFamily=te,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},re.prototype.setTextColor=function(te){this.captionElement&&me.setAttributes(this.captionElement,[["fill",te]]),this.textColor=te,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},re.prototype.setSize=function(){ae.prototype.setSize.call(this),me.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},re.prototype.pointerUp=function(te){ae.prototype.pointerUp.call(this,te),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},re.prototype.dblClick=function(te,ie){ae.prototype.dblClick.call(this,te,ie),this.showTextEditor()},re.prototype.setStrokeColor=function(te){this.strokeColor=te,this.frame&&me.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(te),this.stateChanged()},re.prototype.setFillColor=function(te){this.fillColor=te,this.captionBg&&me.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(te),this.stateChanged()},re.prototype.setStrokeWidth=function(te){this.strokeWidth=te,this.frame&&me.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},re.prototype.setStrokeDasharray=function(te){this.strokeDasharray=te,this.frame&&me.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(re.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),re.prototype.getState=function(){var te=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},ae.prototype.getState.call(this));return te.typeName=this.typeName,te},re.prototype.restoreState=function(te){var ie=te;this.fillColor=ie.fillColor,this.strokeColor=ie.strokeColor,this.strokeWidth=ie.strokeWidth,this.strokeDasharray=ie.strokeDasharray,this.textColor=ie.textColor,this.fontFamily=ie.fontFamily,this.captionText=ie.captionText,this.fontSize=ie.fontSize,this.createVisual(),ae.prototype.restoreState.call(this,te),this.setSize()},re.prototype.scale=function(te,ie){ae.prototype.scale.call(this,te,ie),this.setSize()},re.typeName="CaptionFrameMarker",re.title="Caption frame marker",re.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>',re}(Be),ht=function(){function ae(re,te){te===void 0&&(te=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=re,this.cancelable=te}return Object.defineProperty(ae.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),ae.prototype.preventDefault=function(){this._defaultPrevented=!0},ae}(),lt=function(ae){function re(te,ie,ce){var ne=ae.call(this,te,!1)||this;return ne.dataUrl=ie,ne.state=ce,ne}return he(re,ae),re}(ht),rt=function(ae){function re(te,ie,ce){ce===void 0&&(ce=!1);var ne=ae.call(this,te,ce)||this;return ne.marker=ie,ne}return he(re,ae),re}(ht),on=function(){function ae(){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 ae.prototype.addEventListener=function(re,te){this[re].push(te)},ae.prototype.removeEventListener=function(re,te){var ie=this[re].indexOf(te);ie>-1&&this[re].splice(ie,1)},ae}(),kt=function(){function ae(re){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new it,this._isOpen=!1,this.undoRedoManager=new ot,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 on,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=ae.instanceCounter++,this.styles=new se(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=re,this.targetRoot=document.body,this.width=re.clientWidth,this.height=re.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(ae.prototype,"ALL_MARKER_TYPES",{get:function(){return[vt,Ne,mt,et,Ee,jt,Mt,Bt,Lt,Ze,ut,qe,zt]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[vt,Ne,mt,et,jt,Mt,Bt]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"BASIC_MARKER_TYPES",{get:function(){return[vt,Ne,mt,et,Mt]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(re){var te=this;this._availableMarkerTypes.splice(0),re.forEach(function(ie){if(typeof ie=="string"){var ce=te.ALL_MARKER_TYPES.find(function(ne){return ne.typeName===ie});ce!==void 0&&te._availableMarkerTypes.push(ce)}else te._availableMarkerTypes.push(ie)})},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(re){this._zoomLevel=re,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(ae.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),ae.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),ve.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},ae.prototype.show=function(){var re=this;this.styles.styleSheetRoot===void 0&&ge.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=ge.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(te){return te(new ht(re))})},ae.prototype.render=function(){return de(this,void 0,void 0,function(){var re;return $e(this,function(te){switch(te.label){case 0:return this.setCurrentMarker(),(re=new Me).naturalSize=this.renderAtNaturalSize,re.imageType=this.renderImageType,re.imageQuality=this.renderImageQuality,re.markersOnly=this.renderMarkersOnly,re.width=this.renderWidth,re.height=this.renderHeight,[4,re.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return te.sent(),[4,re.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,te.sent()]}})})},ae.prototype.close=function(re){var te=this;if(re===void 0&&(re=!1),this.isOpen){var ie=!1;re||this.eventListeners.beforeclose.forEach(function(ce){var ne=new ht(te,!0);ce(ne),ne.defaultPrevented&&(ie=!0)}),ie||(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(ce){return ce(new ht(te))}),this.detachEvents(),this._isOpen=!1)}},ae.prototype.addMarkersToToolbar=function(){for(var re,te=[],ie=0;ie<arguments.length;ie++)te[ie]=arguments[ie];(re=this._availableMarkerTypes).push.apply(re,te)},ae.prototype.addRenderEventListener=function(re){this.addEventListener("render",function(te){re(te.dataUrl,te.state)})},ae.prototype.removeRenderEventListener=function(re){},ae.prototype.addCloseEventListener=function(re){this.addEventListener("close",function(){re()})},ae.prototype.removeCloseEventListener=function(re){},ae.prototype.setupResizeObserver=function(){var re=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){re.resize(re.target.clientWidth,re.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return re.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},ae.prototype.onPopupTargetResize=function(){var re=1*this.target.clientWidth/this.target.clientHeight,te=this.editorCanvas.clientWidth/re>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*re:this.editorCanvas.clientWidth,ie=te<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/re;this.resize(te,ie)},ae.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},ae.prototype.resize=function(re,te){this._isResizing=!0;var ie=re/this.imageWidth,ce=te/this.imageHeight;this.imageWidth=Math.round(re),this.imageHeight=Math.round(te),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(ie,ce),this._isResizing=!1},ae.prototype.scaleMarkers=function(re,te){var ie,ce=this;this._currentMarker&&this._currentMarker instanceof et?this._currentMarker.scale(re,te):(ie=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(ne){ne!==ce._currentMarker&&ne.scale(re,te)}),ie!==void 0&&this.setCurrentMarker(ie)},ae.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"},ae.prototype.setTopLeft=function(){var re=this.editingTarget.getBoundingClientRect(),te=this.editorCanvas.getBoundingClientRect();this.left=re.left-te.left,this.top=re.top-te.top},ae.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)},ae.prototype.addDefs=function(){for(var re,te=[],ie=0;ie<arguments.length;ie++)te[ie]=arguments[ie];this.defs=me.createDefs(),this.addDefsToImage(),(re=this.defs).append.apply(re,te)},ae.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},ae.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)},ae.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},ae.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},ae.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)},ae.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},ae.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)},ae.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 re=document.createElement("a");re.href="https://markerjs.com/",re.target="_blank",re.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>',re.title="Powered by marker.js",re.style.display="grid",re.style.alignItems="center",re.style.justifyItems="center",re.style.padding="3px",re.style.width="20px",re.style.height="20px",this.logoUI.appendChild(re),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},ae.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")},ae.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"},ae.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},ae.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 re=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=re+"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 tt(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 je(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},ae.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},ae.prototype.removeMarker=function(re){this.markerImage.removeChild(re.container),this.markers.indexOf(re)>-1&&this.markers.splice(this.markers.indexOf(re),1),re.dispose()},ae.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())},ae.prototype.toolbarButtonClicked=function(re,te){if(re==="marker"&&te!==void 0)this.createNewMarker(te);else if(re==="action")switch(te){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()}},ae.prototype.deleteSelectedMarker=function(){var re=this;if(this._currentMarker!==void 0){var te=!1;if(this.eventListeners.markerbeforedelete.forEach(function(ce){var ne=new rt(re,re._currentMarker,!0);ce(ne),ne.defaultPrevented&&(te=!0)}),!te){var ie=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(ce){return ce(new rt(re,ie))})}}},ae.prototype.clear=function(){var re=this,te=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(le){var Ie=new rt(re,void 0,!0);le(Ie),Ie.defaultPrevented&&(te=!0)}),!te)){this.setCurrentMarker();for(var ie=function(le){var Ie=ce.markers[le];ce.setCurrentMarker(ce.markers[le]),ce._currentMarker.dispose(),ce.markerImage.removeChild(ce._currentMarker.container),ce.markers.splice(ce.markers.indexOf(ce._currentMarker),1),ce.eventListeners.markerdelete.forEach(function(bt){return bt(new rt(re,Ie))})},ce=this,ne=this.markers.length-1;ne>=0;ne--)ie(ne);this.addUndoStep()}},Object.defineProperty(ae.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),ae.prototype.showNotesEditor=function(){var re;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=(re=this._currentMarker.notes)!==null&&re!==void 0?re:"",this.overlayContainer.appendChild(this.notesArea))},ae.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)},ae.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},ae.prototype.addUndoStep=function(){var re=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var te=this.getState(),ie=this.undoRedoManager.getLastUndoStep();if(!ie||ie.width===te.width&&ie.height===te.height){var ce=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(te),ce<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(ne){return ne(new ht(re))})}else this.undoRedoManager.replaceLastUndoStep(te),this.eventListeners.statechange.forEach(function(ne){return ne(new ht(re))})}},ae.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},ae.prototype.undoStep=function(){var re=this,te=this.undoRedoManager.undo();te!==void 0&&(this.restoreState(te),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(ie){return ie(new ht(re))}))},ae.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},ae.prototype.redoStep=function(){var re=this,te=this.undoRedoManager.redo();te!==void 0&&(this.restoreState(te),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(ie){return ie(new ht(re))}))},ae.prototype.stepZoom=function(){var re=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=re<this.zoomSteps.length-1?this.zoomSteps[re+1]:this.zoomSteps[0]},ae.prototype.panTo=function(re){this.contentDiv.scrollBy({left:this.prevPanPoint.x-re.x,top:this.prevPanPoint.y-re.y}),this.prevPanPoint=re},ae.prototype.startRenderAndClose=function(){return de(this,void 0,void 0,function(){var re,te,ie=this;return $e(this,function(ce){switch(ce.label){case 0:return[4,this.render()];case 1:return re=ce.sent(),te=this.getState(),this.eventListeners.render.forEach(function(ne){return ne(new lt(ie,re,te))}),this.close(!0),[2]}})})},ae.prototype.getState=function(re){re===!0&&this.setCurrentMarker();var te={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(ie){return te.markers.push(ie.getState())}),te},ae.prototype.restoreState=function(re){var te=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);re.markers.forEach(function(ie){var ce=te._availableMarkerTypes.find(function(le){return le.typeName===ie.typeName});if(ce!==void 0){var ne=te.addNewMarker(ce);ne.restoreState(ie),te.markers.push(ne)}}),re.width&&re.height&&(re.width!==this.imageWidth||re.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/re.width,this.imageHeight/re.height),this.eventListeners.restorestate.forEach(function(ie){return ie(new ht(te))})},ae.prototype.addNewMarker=function(re){var te=me.createGroup();return this.markerImage.appendChild(te),new re(te,this.overlayContainer,this.settings)},ae.prototype.createNewMarker=function(re){var te,ie=this;(te=typeof re=="string"?this._availableMarkerTypes.find(function(ce){return ce.typeName===re}):re)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(te),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(te.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(ce){return ce(new rt(ie,ie._currentMarker))}))},ae.prototype.markerCreated=function(re){var te=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(re),this.setCurrentMarker(re),re instanceof Ne&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(Ne):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(ie){return ie(new rt(te,te._currentMarker))})},ae.prototype.colorChanged=function(re){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=re,this.settings.defaultStrokeColor=re)},ae.prototype.fillColorChanged=function(re){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=re)},ae.prototype.markerStateChanged=function(re){var te=this;this.eventListeners.markerchange.forEach(function(ie){return ie(new rt(te,re))})},ae.prototype.setCurrentMarker=function(re){var te=this;this._currentMarker!==re&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(ie){return ie(new rt(te,te._currentMarker))})),this._currentMarker=re,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(ie){return ie(new rt(te,te._currentMarker))}))},ae.prototype.onPointerDown=function(re){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||re.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var te=this.markers.find(function(ie){return ie.ownsTarget(re.target)});te!==void 0?(this.setCurrentMarker(te),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(re.clientX,re.clientY),re.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:re.clientX,y:re.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(re.clientX,re.clientY))},ae.prototype.onDblClick=function(re){if(this._isFocused||this.focus(),this.mode==="select"){var te=this.markers.find(function(ie){return ie.ownsTarget(re.target)});te!==void 0&&te!==this._currentMarker&&this.setCurrentMarker(te),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(re.clientX,re.clientY),re.target):this.setCurrentMarker()}},ae.prototype.onPointerMove=function(re){this.touchPoints!==1&&re.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||re.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(re.clientX,re.clientY)):this.zoomLevel>1&&this.panTo({x:re.clientX,y:re.clientY}))},ae.prototype.onPointerUp=function(re){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(re.clientX,re.clientY)),this.isDragging=!1,this.addUndoStep()},ae.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},ae.prototype.onKeyUp=function(re){this._currentMarker===void 0||this.notesArea!==void 0||re.key!=="Delete"&&re.key!=="Backspace"||this.deleteSelectedMarker()},ae.prototype.clientToLocalCoordinates=function(re,te){var ie=this.markerImage.getBoundingClientRect();return{x:(re-ie.left)/this.zoomLevel,y:(te-ie.top)/this.zoomLevel}},ae.prototype.onWindowResize=function(){this.positionUI()},ae.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var re=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=re+"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()},ae.prototype.addLicenseKey=function(re){ve.addKey(re)},ae.prototype.addEventListener=function(re,te){this.eventListeners.addEventListener(re,te)},ae.prototype.removeEventListener=function(re,te){this.eventListeners.removeEventListener(re,te)},ae.prototype.renderState=function(re){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(re),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(ae.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),ae.prototype.focus=function(){var re=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(te){return te(new ht(re))}))},ae.prototype.blur=function(){var re=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(te){return te(new ht(re))}))},ae.instanceCounter=0,ae}()},6551:function(bn,Wt,z){"use strict";z.d(Wt,{ZP:function(){return ve}});var y=z(42978),he=z(59301),de=z(47273),$e=0,pe=(0,de.Z)();function me(){var Me;return pe?(Me=$e,$e+=1):Me="TEST_OR_SSR",Me}function ve(Me){var ge=he.useState(),se=(0,y.Z)(ge,2),_e=se[0],Ae=se[1];return he.useEffect(function(){Ae("rc_select_".concat(me()))},[]),Me||_e}},37463:function(bn,Wt,z){"use strict";z.d(Wt,{Ac:function(){return Rt},Xo:function(){return Ht},Wx:function(){return yt},ZP:function(){return zn},lk:function(){return ct}});var y=z(54476),he=z(94480),de=z(20068),$e=z(33885),pe=z(42978),me=z(75931),ve=z(76190),Me=z(18929),ge=z(48736),se=z(59301),_e=z(92310),Ae=z.n(_e),tt=z(34280),je=z(49658),Te=z(8654),Ce=function(_t){var Je=_t.className,Dt=_t.customizeIcon,Ge=_t.customizeIconProps,At=_t.children,Jt=_t.onMouseDown,Rn=_t.onClick,Zn=typeof Dt=="function"?Dt(Ge):Dt;return se.createElement("span",{className:Je,onMouseDown:function(Et){Et.preventDefault(),Jt==null||Jt(Et)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Rn,"aria-hidden":!0},Zn!==void 0?Zn:se.createElement("span",{className:Ae()(Je.split(/\s+/).map(function(pt){return"".concat(pt,"-icon")}))},At))},Se=Ce,Pe=function(_t,Je,Dt,Ge,At){var Jt=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Rn=arguments.length>6?arguments[6]:void 0,Zn=arguments.length>7?arguments[7]:void 0,pt=se.useMemo(function(){if((0,ve.Z)(Ge)==="object")return Ge.clearIcon;if(At)return At},[Ge,At]),Et=se.useMemo(function(){return!!(!Jt&&Ge&&(Dt.length||Rn)&&!(Zn==="combobox"&&Rn===""))},[Ge,Jt,Dt.length,Rn,Zn]);return{allowClear:Et,clearIcon:se.createElement(Se,{className:"".concat(_t,"-clear"),onMouseDown:Je,customizeIcon:pt},"\xD7")}},Ye=se.createContext(null);function ct(){return se.useContext(Ye)}function Be(){var xt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,_t=se.useState(!1),Je=(0,pe.Z)(_t,2),Dt=Je[0],Ge=Je[1],At=se.useRef(null),Jt=function(){window.clearTimeout(At.current)};se.useEffect(function(){return Jt},[]);var Rn=function(pt,Et){Jt(),At.current=window.setTimeout(function(){Ge(pt),Et&&Et()},xt)};return[Dt,Rn,Jt]}function Oe(){var xt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,_t=se.useRef(null),Je=se.useRef(null);se.useEffect(function(){return function(){window.clearTimeout(Je.current)}},[]);function Dt(Ge){(Ge||_t.current===null)&&(_t.current=Ge),window.clearTimeout(Je.current),Je.current=window.setTimeout(function(){_t.current=null},xt)}return[function(){return _t.current},Dt]}function Re(xt,_t,Je,Dt){var Ge=se.useRef(null);Ge.current={open:_t,triggerOpen:Je,customizedTrigger:Dt},se.useEffect(function(){function At(Jt){var Rn;if(!((Rn=Ge.current)!==null&&Rn!==void 0&&Rn.customizedTrigger)){var Zn=Jt.target;Zn.shadowRoot&&Jt.composed&&(Zn=Jt.composedPath()[0]||Zn),Ge.current.open&&xt().filter(function(pt){return pt}).every(function(pt){return!pt.contains(Zn)&&pt!==Zn})&&Ge.current.triggerOpen(!1)}}return window.addEventListener("mousedown",At),function(){return window.removeEventListener("mousedown",At)}},[])}var Ke=z(10228);function vt(xt){return xt&&![Ke.Z.ESC,Ke.Z.SHIFT,Ke.Z.BACKSPACE,Ke.Z.TAB,Ke.Z.WIN_KEY,Ke.Z.ALT,Ke.Z.META,Ke.Z.WIN_KEY_RIGHT,Ke.Z.CTRL,Ke.Z.SEMICOLON,Ke.Z.EQUALS,Ke.Z.CAPS_LOCK,Ke.Z.CONTEXT_MENU,Ke.Z.F1,Ke.Z.F2,Ke.Z.F3,Ke.Z.F4,Ke.Z.F5,Ke.Z.F6,Ke.Z.F7,Ke.Z.F8,Ke.Z.F9,Ke.Z.F10,Ke.Z.F11,Ke.Z.F12].includes(xt)}var it=z(26112),Qe=z(83836);function ut(xt,_t,Je){var Dt=(0,$e.Z)((0,$e.Z)({},xt),Je?_t:{});return Object.keys(_t).forEach(function(Ge){var At=_t[Ge];typeof At=="function"&&(Dt[Ge]=function(){for(var Jt,Rn=arguments.length,Zn=new Array(Rn),pt=0;pt<Rn;pt++)Zn[pt]=arguments[pt];return At.apply(void 0,Zn),(Jt=xt[Ge])===null||Jt===void 0?void 0:Jt.call.apply(Jt,[xt].concat(Zn))})}),Dt}var be=ut,et=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],Ne=function(_t,Je){var Dt=_t.prefixCls,Ge=_t.id,At=_t.inputElement,Jt=_t.autoFocus,Rn=_t.autoComplete,Zn=_t.editable,pt=_t.activeDescendantId,Et=_t.value,St=_t.open,It=_t.attrs,fn=(0,me.Z)(_t,et),Bn=At||se.createElement("input",null),On=Bn,Nn=On.ref,qn=On.props;return(0,ge.Kp)(!("maxLength"in Bn.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Bn=se.cloneElement(Bn,(0,$e.Z)((0,$e.Z)((0,$e.Z)({type:"search"},be(fn,qn,!0)),{},{id:Ge,ref:(0,Te.sQ)(Je,Nn),autoComplete:Rn||"off",autoFocus:Jt,className:Ae()("".concat(Dt,"-selection-search-input"),qn==null?void 0:qn.className),role:"combobox","aria-expanded":St||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Ge,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Ge,"_list"),"aria-activedescendant":St?pt:void 0},It),{},{value:Zn?Et:"",readOnly:!Zn,unselectable:Zn?null:"on",style:(0,$e.Z)((0,$e.Z)({},qn.style),{},{opacity:Zn?null:0})})),Bn},ue=se.forwardRef(Ne),mt=ue;function Ze(xt){return Array.isArray(xt)?xt:xt!==void 0?[xt]:[]}var nt=typeof window!="undefined"&&window.document&&window.document.documentElement,Mt=nt;function Fe(xt){return xt!=null}function ye(xt){return!xt&&xt!==0}function Bt(xt){return["string","number"].includes((0,ve.Z)(xt))}function jt(xt){var _t=void 0;return xt&&(Bt(xt.title)?_t=xt.title.toString():Bt(xt.label)&&(_t=xt.label.toString())),_t}function Lt(xt,_t){Mt?se.useLayoutEffect(xt,_t):se.useEffect(xt,_t)}function Ee(xt){var _t;return(_t=xt.key)!==null&&_t!==void 0?_t:xt.value}var ot=function(_t){_t.preventDefault(),_t.stopPropagation()},qe=function(_t){var Je=_t.id,Dt=_t.prefixCls,Ge=_t.values,At=_t.open,Jt=_t.searchValue,Rn=_t.autoClearSearchValue,Zn=_t.inputRef,pt=_t.placeholder,Et=_t.disabled,St=_t.mode,It=_t.showSearch,fn=_t.autoFocus,Bn=_t.autoComplete,On=_t.activeDescendantId,Nn=_t.tabIndex,qn=_t.removeIcon,nr=_t.maxTagCount,ir=_t.maxTagTextLength,lr=_t.maxTagPlaceholder,Qn=lr===void 0?function(Yn){return"+ ".concat(Yn.length," ...")}:lr,ar=_t.tagRender,fr=_t.onToggleOpen,Sr=_t.onRemove,br=_t.onInputChange,Zr=_t.onInputPaste,jr=_t.onInputKeyDown,hr=_t.onInputMouseDown,Mr=_t.onInputCompositionStart,eo=_t.onInputCompositionEnd,kr=_t.onInputBlur,Fr=se.useRef(null),or=(0,se.useState)(0),Ur=(0,pe.Z)(or,2),Rr=Ur[0],Br=Ur[1],Cr=(0,se.useState)(!1),so=(0,pe.Z)(Cr,2),Ho=so[0],ti=so[1],xo="".concat(Dt,"-selection"),No=At||St==="multiple"&&Rn===!1||St==="tags"?Jt:"",To=St==="tags"||St==="multiple"&&Rn===!1||It&&(At||Ho);Lt(function(){Br(Fr.current.scrollWidth)},[No]);var Xo=function(Ln,mr,wr,Un,Jn){return se.createElement("span",{title:jt(Ln),className:Ae()("".concat(xo,"-item"),(0,de.Z)({},"".concat(xo,"-item-disabled"),wr))},se.createElement("span",{className:"".concat(xo,"-item-content")},mr),Un&&se.createElement(Se,{className:"".concat(xo,"-item-remove"),onMouseDown:ot,onClick:Jn,customizeIcon:qn},"\xD7"))},ko=function(Ln,mr,wr,Un,Jn,sr){var pr=function(Yr){ot(Yr),fr(!At)};return se.createElement("span",{onMouseDown:pr},ar({label:mr,value:Ln,disabled:wr,closable:Un,onClose:Jn,isMaxTag:!!sr}))},go=function(Ln){var mr=Ln.disabled,wr=Ln.label,Un=Ln.value,Jn=!Et&&!mr,sr=wr;if(typeof ir=="number"&&(typeof wr=="string"||typeof wr=="number")){var pr=String(sr);pr.length>ir&&(sr="".concat(pr.slice(0,ir),"..."))}var _r=function(to){to&&to.stopPropagation(),Sr(Ln)};return typeof ar=="function"?ko(Un,sr,mr,Jn,_r):Xo(Ln,sr,mr,Jn,_r)},dr=function(Ln){if(!Ge.length)return null;var mr=typeof Qn=="function"?Qn(Ln):Qn;return typeof ar=="function"?ko(void 0,mr,!1,!1,void 0,!0):Xo({title:mr},mr,!1)},Tn=se.createElement("div",{className:"".concat(xo,"-search"),style:{width:Rr},onFocus:function(){ti(!0)},onBlur:function(){ti(!1)}},se.createElement(mt,{ref:Zn,open:At,prefixCls:Dt,id:Je,inputElement:null,disabled:Et,autoFocus:fn,autoComplete:Bn,editable:To,activeDescendantId:On,value:No,onKeyDown:jr,onMouseDown:hr,onChange:br,onPaste:Zr,onCompositionStart:Mr,onCompositionEnd:eo,onBlur:kr,tabIndex:Nn,attrs:(0,it.Z)(_t,!0)}),se.createElement("span",{ref:Fr,className:"".concat(xo,"-search-mirror"),"aria-hidden":!0},No,"\xA0")),Gn=se.createElement(Qe.Z,{prefixCls:"".concat(xo,"-overflow"),data:Ge,renderItem:go,renderRest:dr,suffix:Tn,itemKey:Ee,maxCount:nr});return se.createElement("span",{className:"".concat(xo,"-wrap")},Gn,!Ge.length&&!No&&se.createElement("span",{className:"".concat(xo,"-placeholder")},pt))},zt=qe,ht=function(_t){var Je=_t.inputElement,Dt=_t.prefixCls,Ge=_t.id,At=_t.inputRef,Jt=_t.disabled,Rn=_t.autoFocus,Zn=_t.autoComplete,pt=_t.activeDescendantId,Et=_t.mode,St=_t.open,It=_t.values,fn=_t.placeholder,Bn=_t.tabIndex,On=_t.showSearch,Nn=_t.searchValue,qn=_t.activeValue,nr=_t.maxLength,ir=_t.onInputKeyDown,lr=_t.onInputMouseDown,Qn=_t.onInputChange,ar=_t.onInputPaste,fr=_t.onInputCompositionStart,Sr=_t.onInputCompositionEnd,br=_t.onInputBlur,Zr=_t.title,jr=se.useState(!1),hr=(0,pe.Z)(jr,2),Mr=hr[0],eo=hr[1],kr=Et==="combobox",Fr=kr||On,or=It[0],Ur=Nn||"";kr&&qn&&!Mr&&(Ur=qn),se.useEffect(function(){kr&&eo(!1)},[kr,qn]);var Rr=Et!=="combobox"&&!St&&!On?!1:!!Ur,Br=Zr===void 0?jt(or):Zr,Cr=se.useMemo(function(){return or?null:se.createElement("span",{className:"".concat(Dt,"-selection-placeholder"),style:Rr?{visibility:"hidden"}:void 0},fn)},[or,Rr,fn,Dt]);return se.createElement("span",{className:"".concat(Dt,"-selection-wrap")},se.createElement("span",{className:"".concat(Dt,"-selection-search")},se.createElement(mt,{ref:At,prefixCls:Dt,id:Ge,open:St,inputElement:Je,disabled:Jt,autoFocus:Rn,autoComplete:Zn,editable:Fr,activeDescendantId:pt,value:Ur,onKeyDown:ir,onMouseDown:lr,onChange:function(Ho){eo(!0),Qn(Ho)},onPaste:ar,onCompositionStart:fr,onCompositionEnd:Sr,onBlur:br,tabIndex:Bn,attrs:(0,it.Z)(_t,!0),maxLength:kr?nr:void 0})),!kr&&or?se.createElement("span",{className:"".concat(Dt,"-selection-item"),title:Br,style:Rr?{visibility:"hidden"}:void 0},or.label):null,Cr)},lt=ht,rt=function(_t,Je){var Dt=(0,se.useRef)(null),Ge=(0,se.useRef)(!1),At=_t.prefixCls,Jt=_t.open,Rn=_t.mode,Zn=_t.showSearch,pt=_t.tokenWithEnter,Et=_t.disabled,St=_t.prefix,It=_t.autoClearSearchValue,fn=_t.onSearch,Bn=_t.onSearchSubmit,On=_t.onToggleOpen,Nn=_t.onInputKeyDown,qn=_t.onInputBlur,nr=_t.domRef;se.useImperativeHandle(Je,function(){return{focus:function(Br){Dt.current.focus(Br)},blur:function(){Dt.current.blur()}}});var ir=Oe(0),lr=(0,pe.Z)(ir,2),Qn=lr[0],ar=lr[1],fr=function(Br){var Cr=Br.which,so=Dt.current instanceof HTMLTextAreaElement;!so&&Jt&&(Cr===Ke.Z.UP||Cr===Ke.Z.DOWN)&&Br.preventDefault(),Nn&&Nn(Br),Cr===Ke.Z.ENTER&&Rn==="tags"&&!Ge.current&&!Jt&&(Bn==null||Bn(Br.target.value)),!(so&&!Jt&&~[Ke.Z.UP,Ke.Z.DOWN,Ke.Z.LEFT,Ke.Z.RIGHT].indexOf(Cr))&&vt(Cr)&&On(!0)},Sr=function(){ar(!0)},br=(0,se.useRef)(null),Zr=function(Br){fn(Br,!0,Ge.current)!==!1&&On(!0)},jr=function(){Ge.current=!0},hr=function(Br){Ge.current=!1,Rn!=="combobox"&&Zr(Br.target.value)},Mr=function(Br){var Cr=Br.target.value;if(pt&&br.current&&/[\r\n]/.test(br.current)){var so=br.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Cr=Cr.replace(so,br.current)}br.current=null,Zr(Cr)},eo=function(Br){var Cr=Br.clipboardData,so=Cr==null?void 0:Cr.getData("text");br.current=so||""},kr=function(Br){var Cr=Br.target;if(Cr!==Dt.current){var so=document.body.style.msTouchAction!==void 0;so?setTimeout(function(){Dt.current.focus()}):Dt.current.focus()}},Fr=function(Br){var Cr=Qn();Br.target!==Dt.current&&!Cr&&!(Rn==="combobox"&&Et)&&Br.preventDefault(),(Rn!=="combobox"&&(!Zn||!Cr)||!Jt)&&(Jt&&It!==!1&&fn("",!0,!1),On())},or={inputRef:Dt,onInputKeyDown:fr,onInputMouseDown:Sr,onInputChange:Mr,onInputPaste:eo,onInputCompositionStart:jr,onInputCompositionEnd:hr,onInputBlur:qn},Ur=Rn==="multiple"||Rn==="tags"?se.createElement(zt,(0,y.Z)({},_t,or)):se.createElement(lt,(0,y.Z)({},_t,or));return se.createElement("div",{ref:nr,className:"".concat(At,"-selector"),onClick:kr,onMouseDown:Fr},St&&se.createElement("div",{className:"".concat(At,"-prefix")},St),Ur)},on=se.forwardRef(rt),kt=on,ae=z(65030),re=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],te=function(_t){var Je=_t===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Je,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Je,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Je,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Je,adjustY:1},htmlRegion:"scroll"}}},ie=function(_t,Je){var Dt=_t.prefixCls,Ge=_t.disabled,At=_t.visible,Jt=_t.children,Rn=_t.popupElement,Zn=_t.animation,pt=_t.transitionName,Et=_t.dropdownStyle,St=_t.dropdownClassName,It=_t.direction,fn=It===void 0?"ltr":It,Bn=_t.placement,On=_t.builtinPlacements,Nn=_t.dropdownMatchSelectWidth,qn=_t.dropdownRender,nr=_t.dropdownAlign,ir=_t.getPopupContainer,lr=_t.empty,Qn=_t.getTriggerDOMNode,ar=_t.onPopupVisibleChange,fr=_t.onPopupMouseEnter,Sr=(0,me.Z)(_t,re),br="".concat(Dt,"-dropdown"),Zr=Rn;qn&&(Zr=qn(Rn));var jr=se.useMemo(function(){return On||te(Nn)},[On,Nn]),hr=Zn?"".concat(br,"-").concat(Zn):pt,Mr=typeof Nn=="number",eo=se.useMemo(function(){return Mr?null:Nn===!1?"minWidth":"width"},[Nn,Mr]),kr=Et;Mr&&(kr=(0,$e.Z)((0,$e.Z)({},kr),{},{width:Nn}));var Fr=se.useRef(null);return se.useImperativeHandle(Je,function(){return{getPopupElement:function(){var Ur;return(Ur=Fr.current)===null||Ur===void 0?void 0:Ur.popupElement}}}),se.createElement(ae.Z,(0,y.Z)({},Sr,{showAction:ar?["click"]:[],hideAction:ar?["click"]:[],popupPlacement:Bn||(fn==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:jr,prefixCls:br,popupTransitionName:hr,popup:se.createElement("div",{onMouseEnter:fr},Zr),ref:Fr,stretch:eo,popupAlign:nr,popupVisible:At,getPopupContainer:ir,popupClassName:Ae()(St,(0,de.Z)({},"".concat(br,"-empty"),lr)),popupStyle:kr,getTriggerDOMNode:Qn,onPopupVisibleChange:ar}),Jt)},ce=se.forwardRef(ie),ne=ce,le=z(66712);function Ie(xt,_t){var Je=xt.key,Dt;return"value"in xt&&(Dt=xt.value),Je!=null?Je:Dt!==void 0?Dt:"rc-index-key-".concat(_t)}function bt(xt){return typeof xt!="undefined"&&!Number.isNaN(xt)}function Ue(xt,_t){var Je=xt||{},Dt=Je.label,Ge=Je.value,At=Je.options,Jt=Je.groupLabel,Rn=Dt||(_t?"children":"label");return{label:Rn,value:Ge||"value",options:At||"options",groupLabel:Jt||Rn}}function He(xt){var _t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Je=_t.fieldNames,Dt=_t.childrenAsData,Ge=[],At=Ue(Je,!1),Jt=At.label,Rn=At.value,Zn=At.options,pt=At.groupLabel;function Et(St,It){Array.isArray(St)&&St.forEach(function(fn){if(It||!(Zn in fn)){var Bn=fn[Rn];Ge.push({key:Ie(fn,Ge.length),groupOption:It,data:fn,label:fn[Jt],value:Bn})}else{var On=fn[pt];On===void 0&&Dt&&(On=fn.label),Ge.push({key:Ie(fn,Ge.length),group:!0,data:fn,label:On}),Et(fn[Zn],!0)}})}return Et(xt,!1),Ge}function at(xt){var _t=(0,$e.Z)({},xt);return"props"in _t||Object.defineProperty(_t,"props",{get:function(){return(0,ge.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),_t}}),_t}var ft=function(_t,Je,Dt){if(!Je||!Je.length)return null;var Ge=!1,At=function Rn(Zn,pt){var Et=(0,le.Z)(pt),St=Et[0],It=Et.slice(1);if(!St)return[Zn];var fn=Zn.split(St);return Ge=Ge||fn.length>1,fn.reduce(function(Bn,On){return[].concat((0,he.Z)(Bn),(0,he.Z)(Rn(On,It)))},[]).filter(Boolean)},Jt=At(_t,Je);return Ge?typeof Dt!="undefined"?Jt.slice(0,Dt):Jt:null},Pt=se.createContext(null),Le=Pt;function We(xt){var _t=xt.visible,Je=xt.values;if(!_t)return null;var Dt=50;return se.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(Je.slice(0,Dt).map(function(Ge){var At=Ge.label,Jt=Ge.value;return["number","string"].includes((0,ve.Z)(At))?At:Jt}).join(", ")),Je.length>Dt?", ...":null)}var Nt=["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"],Qt=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],un=function(_t){return _t==="tags"||_t==="multiple"},rn=se.forwardRef(function(xt,_t){var Je,Dt=xt.id,Ge=xt.prefixCls,At=xt.className,Jt=xt.showSearch,Rn=xt.tagRender,Zn=xt.direction,pt=xt.omitDomProps,Et=xt.displayValues,St=xt.onDisplayValuesChange,It=xt.emptyOptions,fn=xt.notFoundContent,Bn=fn===void 0?"Not Found":fn,On=xt.onClear,Nn=xt.mode,qn=xt.disabled,nr=xt.loading,ir=xt.getInputElement,lr=xt.getRawInputElement,Qn=xt.open,ar=xt.defaultOpen,fr=xt.onDropdownVisibleChange,Sr=xt.activeValue,br=xt.onActiveValueChange,Zr=xt.activeDescendantId,jr=xt.searchValue,hr=xt.autoClearSearchValue,Mr=xt.onSearch,eo=xt.onSearchSplit,kr=xt.tokenSeparators,Fr=xt.allowClear,or=xt.prefix,Ur=xt.suffixIcon,Rr=xt.clearIcon,Br=xt.OptionList,Cr=xt.animation,so=xt.transitionName,Ho=xt.dropdownStyle,ti=xt.dropdownClassName,xo=xt.dropdownMatchSelectWidth,No=xt.dropdownRender,To=xt.dropdownAlign,Xo=xt.placement,ko=xt.builtinPlacements,go=xt.getPopupContainer,dr=xt.showAction,Tn=dr===void 0?[]:dr,Gn=xt.onFocus,Yn=xt.onBlur,Ln=xt.onKeyUp,mr=xt.onKeyDown,wr=xt.onMouseDown,Un=(0,me.Z)(xt,Nt),Jn=un(Nn),sr=(Jt!==void 0?Jt:Jn)||Nn==="combobox",pr=(0,$e.Z)({},Un);Qt.forEach(function(yi){delete pr[yi]}),pt==null||pt.forEach(function(yi){delete pr[yi]});var _r=se.useState(!1),Yr=(0,pe.Z)(_r,2),to=Yr[0],Fo=Yr[1];se.useEffect(function(){Fo((0,je.Z)())},[]);var Mo=se.useRef(null),Yo=se.useRef(null),Jo=se.useRef(null),ni=se.useRef(null),ri=se.useRef(null),Mi=se.useRef(!1),$i=Be(),Xi=(0,pe.Z)($i,3),Yi=Xi[0],ta=Xi[1],Lo=Xi[2];se.useImperativeHandle(_t,function(){var yi,ci;return{focus:(yi=ni.current)===null||yi===void 0?void 0:yi.focus,blur:(ci=ni.current)===null||ci===void 0?void 0:ci.blur,scrollTo:function(Zt){var qt;return(qt=ri.current)===null||qt===void 0?void 0:qt.scrollTo(Zt)},nativeElement:Mo.current||Yo.current}});var co=se.useMemo(function(){var yi;if(Nn!=="combobox")return jr;var ci=(yi=Et[0])===null||yi===void 0?void 0:yi.value;return typeof ci=="string"||typeof ci=="number"?String(ci):""},[jr,Nn,Et]),wi=Nn==="combobox"&&typeof ir=="function"&&ir()||null,wo=typeof lr=="function"&&lr(),aa=(0,Te.x1)(Yo,wo==null||(Je=wo.props)===null||Je===void 0?void 0:Je.ref),Qa=se.useState(!1),Ha=(0,pe.Z)(Qa,2),da=Ha[0],fa=Ha[1];(0,tt.Z)(function(){fa(!0)},[]);var Ti=(0,Me.Z)(!1,{defaultValue:ar,value:Qn}),ka=(0,pe.Z)(Ti,2),ol=ka[0],Ja=ka[1],la=da?ol:!1,Pl=!Bn&&It;(qn||Pl&&la&&Nn==="combobox")&&(la=!1);var El=Pl?!1:la,jo=se.useCallback(function(yi){var ci=yi!==void 0?yi:!la;qn||(Ja(ci),la!==ci&&(fr==null||fr(ci)))},[qn,la,Ja,fr]),ai=se.useMemo(function(){return(kr||[]).some(function(yi){return[`
`,`\r
`].includes(yi)})},[kr]),Ro=se.useContext(Le)||{},Bo=Ro.maxCount,qo=Ro.rawValues,Bi=function(ci,gt,Zt){if(!(Jn&&bt(Bo)&&(qo==null?void 0:qo.size)>=Bo)){var qt=!0,vn=ci;br==null||br(null);var yo=ft(ci,kr,bt(Bo)?Bo-qo.size:void 0),Vr=Zt?null:yo;return Nn!=="combobox"&&Vr&&(vn="",eo==null||eo(Vr),jo(!1),qt=!1),Mr&&co!==vn&&Mr(vn,{source:gt?"typing":"effect"}),qt}},Wa=function(ci){!ci||!ci.trim()||Mr(ci,{source:"submit"})};se.useEffect(function(){!la&&!Jn&&Nn!=="combobox"&&Bi("",!1,!1)},[la]),se.useEffect(function(){ol&&qn&&Ja(!1),qn&&!Mi.current&&ta(!1)},[qn]);var zi=Oe(),Qi=(0,pe.Z)(zi,2),sa=Qi[0],cl=Qi[1],xl=se.useRef(!1),Ka=function(ci){var gt=sa(),Zt=ci.key,qt=Zt==="Enter";if(qt&&(Nn!=="combobox"&&ci.preventDefault(),la||jo(!0)),cl(!!co),Zt==="Backspace"&&!gt&&Jn&&!co&&Et.length){for(var vn=(0,he.Z)(Et),yo=null,Vr=vn.length-1;Vr>=0;Vr-=1){var fo=vn[Vr];if(!fo.disabled){vn.splice(Vr,1),yo=fo;break}}yo&&St(vn,{type:"remove",values:[yo]})}for(var Pr=arguments.length,Kr=new Array(Pr>1?Pr-1:0),_o=1;_o<Pr;_o++)Kr[_o-1]=arguments[_o];if(la&&(!qt||!xl.current)){var ho;qt&&(xl.current=!0),(ho=ri.current)===null||ho===void 0||ho.onKeyDown.apply(ho,[ci].concat(Kr))}mr==null||mr.apply(void 0,[ci].concat(Kr))},Sl=function(ci){for(var gt=arguments.length,Zt=new Array(gt>1?gt-1:0),qt=1;qt<gt;qt++)Zt[qt-1]=arguments[qt];if(la){var vn;(vn=ri.current)===null||vn===void 0||vn.onKeyUp.apply(vn,[ci].concat(Zt))}ci.key==="Enter"&&(xl.current=!1),Ln==null||Ln.apply(void 0,[ci].concat(Zt))},kl=function(ci){var gt=Et.filter(function(Zt){return Zt!==ci});St(gt,{type:"remove",values:[ci]})},dl=function(){xl.current=!1},zl=se.useRef(!1),Fs=function(){ta(!0),qn||(Gn&&!zl.current&&Gn.apply(void 0,arguments),Tn.includes("focus")&&jo(!0)),zl.current=!0},Gl=function(){Mi.current=!0,ta(!1,function(){zl.current=!1,Mi.current=!1,jo(!1)}),!qn&&(co&&(Nn==="tags"?Mr(co,{source:"submit"}):Nn==="multiple"&&Mr("",{source:"blur"})),Yn&&Yn.apply(void 0,arguments))},Ol=[];se.useEffect(function(){return function(){Ol.forEach(function(yi){return clearTimeout(yi)}),Ol.splice(0,Ol.length)}},[]);var Ll=function(ci){var gt,Zt=ci.target,qt=(gt=Jo.current)===null||gt===void 0?void 0:gt.getPopupElement();if(qt&&qt.contains(Zt)){var vn=setTimeout(function(){var Pr=Ol.indexOf(vn);if(Pr!==-1&&Ol.splice(Pr,1),Lo(),!to&&!qt.contains(document.activeElement)){var Kr;(Kr=ni.current)===null||Kr===void 0||Kr.focus()}});Ol.push(vn)}for(var yo=arguments.length,Vr=new Array(yo>1?yo-1:0),fo=1;fo<yo;fo++)Vr[fo-1]=arguments[fo];wr==null||wr.apply(void 0,[ci].concat(Vr))},fl=se.useState({}),is=(0,pe.Z)(fl,2),Xl=is[1];function bs(){Xl({})}var Il;wo&&(Il=function(ci){jo(ci)}),Re(function(){var yi;return[Mo.current,(yi=Jo.current)===null||yi===void 0?void 0:yi.getPopupElement()]},El,jo,!!wo);var Ls=se.useMemo(function(){return(0,$e.Z)((0,$e.Z)({},xt),{},{notFoundContent:Bn,open:la,triggerOpen:El,id:Dt,showSearch:sr,multiple:Jn,toggleOpen:jo})},[xt,Bn,El,la,Dt,sr,Jn,jo]),as=!!Ur||nr,wl;as&&(wl=se.createElement(Se,{className:Ae()("".concat(Ge,"-arrow"),(0,de.Z)({},"".concat(Ge,"-arrow-loading"),nr)),customizeIcon:Ur,customizeIconProps:{loading:nr,searchValue:co,open:la,focused:Yi,showSearch:sr}}));var Hl=function(){var ci;On==null||On(),(ci=ni.current)===null||ci===void 0||ci.focus(),St([],{type:"clear",values:Et}),Bi("",!1,!1)},Wl=Pe(Ge,Hl,Et,Fr,Rr,qn,co,Nn),ls=Wl.allowClear,Kl=Wl.clearIcon,Yl=se.createElement(Br,{ref:ri}),qa=Ae()(Ge,At,(0,de.Z)((0,de.Z)((0,de.Z)((0,de.Z)((0,de.Z)((0,de.Z)((0,de.Z)((0,de.Z)((0,de.Z)((0,de.Z)({},"".concat(Ge,"-focused"),Yi),"".concat(Ge,"-multiple"),Jn),"".concat(Ge,"-single"),!Jn),"".concat(Ge,"-allow-clear"),Fr),"".concat(Ge,"-show-arrow"),as),"".concat(Ge,"-disabled"),qn),"".concat(Ge,"-loading"),nr),"".concat(Ge,"-open"),la),"".concat(Ge,"-customize-input"),wi),"".concat(Ge,"-show-search"),sr)),el=se.createElement(ne,{ref:Jo,disabled:qn,prefixCls:Ge,visible:El,popupElement:Yl,animation:Cr,transitionName:so,dropdownStyle:Ho,dropdownClassName:ti,direction:Zn,dropdownMatchSelectWidth:xo,dropdownRender:No,dropdownAlign:To,placement:Xo,builtinPlacements:ko,getPopupContainer:go,empty:It,getTriggerDOMNode:function(ci){return Yo.current||ci},onPopupVisibleChange:Il,onPopupMouseEnter:bs},wo?se.cloneElement(wo,{ref:aa}):se.createElement(kt,(0,y.Z)({},xt,{domRef:Yo,prefixCls:Ge,inputElement:wi,ref:ni,id:Dt,prefix:or,showSearch:sr,autoClearSearchValue:hr,mode:Nn,activeDescendantId:Zr,tagRender:Rn,values:Et,open:la,onToggleOpen:jo,activeValue:Sr,searchValue:co,onSearch:Bi,onSearchSubmit:Wa,onRemove:kl,tokenWithEnter:ai,onInputBlur:dl}))),Zi;return wo?Zi=el:Zi=se.createElement("div",(0,y.Z)({className:qa},pr,{ref:Mo,onMouseDown:Ll,onKeyDown:Ka,onKeyUp:Sl,onFocus:Fs,onBlur:Gl}),se.createElement(We,{visible:Yi&&!la,values:Et}),el,wl,ls&&Kl),se.createElement(Ye.Provider,{value:Ls},Zi)}),Rt=rn,ln=function(){return null};ln.isSelectOptGroup=!0;var Ht=ln,ze=function(){return null};ze.isSelectOption=!0;var yt=ze,Kt=z(80547),tn=z(2738),Ve=z(48911);function Ct(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var $t=["disabled","title","children","style","className"];function dt(xt){return typeof xt=="string"||typeof xt=="number"}var Ot=function(_t,Je){var Dt=ct(),Ge=Dt.prefixCls,At=Dt.id,Jt=Dt.open,Rn=Dt.multiple,Zn=Dt.mode,pt=Dt.searchValue,Et=Dt.toggleOpen,St=Dt.notFoundContent,It=Dt.onPopupScroll,fn=se.useContext(Le),Bn=fn.maxCount,On=fn.flattenOptions,Nn=fn.onActiveValue,qn=fn.defaultActiveFirstOption,nr=fn.onSelect,ir=fn.menuItemSelectedIcon,lr=fn.rawValues,Qn=fn.fieldNames,ar=fn.virtual,fr=fn.direction,Sr=fn.listHeight,br=fn.listItemHeight,Zr=fn.optionRender,jr="".concat(Ge,"-item"),hr=(0,Kt.Z)(function(){return On},[Jt,On],function(dr,Tn){return Tn[0]&&dr[1]!==Tn[1]}),Mr=se.useRef(null),eo=se.useMemo(function(){return Rn&&bt(Bn)&&(lr==null?void 0:lr.size)>=Bn},[Rn,Bn,lr==null?void 0:lr.size]),kr=function(Tn){Tn.preventDefault()},Fr=function(Tn){var Gn;(Gn=Mr.current)===null||Gn===void 0||Gn.scrollTo(typeof Tn=="number"?{index:Tn}:Tn)},or=se.useCallback(function(dr){return Zn==="combobox"?!1:lr.has(dr)},[Zn,(0,he.Z)(lr).toString(),lr.size]),Ur=function(Tn){for(var Gn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Yn=hr.length,Ln=0;Ln<Yn;Ln+=1){var mr=(Tn+Ln*Gn+Yn)%Yn,wr=hr[mr]||{},Un=wr.group,Jn=wr.data;if(!Un&&!(Jn!=null&&Jn.disabled)&&(or(Jn.value)||!eo))return mr}return-1},Rr=se.useState(function(){return Ur(0)}),Br=(0,pe.Z)(Rr,2),Cr=Br[0],so=Br[1],Ho=function(Tn){var Gn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;so(Tn);var Yn={source:Gn?"keyboard":"mouse"},Ln=hr[Tn];if(!Ln){Nn(null,-1,Yn);return}Nn(Ln.value,Tn,Yn)};(0,se.useEffect)(function(){Ho(qn!==!1?Ur(0):-1)},[hr.length,pt]);var ti=se.useCallback(function(dr){return Zn==="combobox"?String(dr).toLowerCase()===pt.toLowerCase():lr.has(dr)},[Zn,pt,(0,he.Z)(lr).toString(),lr.size]);(0,se.useEffect)(function(){var dr=setTimeout(function(){if(!Rn&&Jt&&lr.size===1){var Gn=Array.from(lr)[0],Yn=hr.findIndex(function(Ln){var mr=Ln.data;return pt?String(mr.value).startsWith(pt):mr.value===Gn});Yn!==-1&&(Ho(Yn),Fr(Yn))}});if(Jt){var Tn;(Tn=Mr.current)===null||Tn===void 0||Tn.scrollTo(void 0)}return function(){return clearTimeout(dr)}},[Jt,pt]);var xo=function(Tn){Tn!==void 0&&nr(Tn,{selected:!lr.has(Tn)}),Rn||Et(!1)};if(se.useImperativeHandle(Je,function(){return{onKeyDown:function(Tn){var Gn=Tn.which,Yn=Tn.ctrlKey;switch(Gn){case Ke.Z.N:case Ke.Z.P:case Ke.Z.UP:case Ke.Z.DOWN:{var Ln=0;if(Gn===Ke.Z.UP?Ln=-1:Gn===Ke.Z.DOWN?Ln=1:Ct()&&Yn&&(Gn===Ke.Z.N?Ln=1:Gn===Ke.Z.P&&(Ln=-1)),Ln!==0){var mr=Ur(Cr+Ln,Ln);Fr(mr),Ho(mr,!0)}break}case Ke.Z.TAB:case Ke.Z.ENTER:{var wr,Un=hr[Cr];Un&&!(Un!=null&&(wr=Un.data)!==null&&wr!==void 0&&wr.disabled)&&!eo?xo(Un.value):xo(void 0),Jt&&Tn.preventDefault();break}case Ke.Z.ESC:Et(!1),Jt&&Tn.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Tn){Fr(Tn)}}}),hr.length===0)return se.createElement("div",{role:"listbox",id:"".concat(At,"_list"),className:"".concat(jr,"-empty"),onMouseDown:kr},St);var No=Object.keys(Qn).map(function(dr){return Qn[dr]}),To=function(Tn){return Tn.label};function Xo(dr,Tn){var Gn=dr.group;return{role:Gn?"presentation":"option",id:"".concat(At,"_list_").concat(Tn)}}var ko=function(Tn){var Gn=hr[Tn];if(!Gn)return null;var Yn=Gn.data||{},Ln=Yn.value,mr=Gn.group,wr=(0,it.Z)(Yn,!0),Un=To(Gn);return Gn?se.createElement("div",(0,y.Z)({"aria-label":typeof Un=="string"&&!mr?Un:null},wr,{key:Tn},Xo(Gn,Tn),{"aria-selected":ti(Ln)}),Ln):null},go={role:"listbox",id:"".concat(At,"_list")};return se.createElement(se.Fragment,null,ar&&se.createElement("div",(0,y.Z)({},go,{style:{height:0,width:0,overflow:"hidden"}}),ko(Cr-1),ko(Cr),ko(Cr+1)),se.createElement(Ve.Z,{itemKey:"key",ref:Mr,data:hr,height:Sr,itemHeight:br,fullHeight:!1,onMouseDown:kr,onScroll:It,virtual:ar,direction:fr,innerProps:ar?null:go},function(dr,Tn){var Gn=dr.group,Yn=dr.groupOption,Ln=dr.data,mr=dr.label,wr=dr.value,Un=Ln.key;if(Gn){var Jn,sr=(Jn=Ln.title)!==null&&Jn!==void 0?Jn:dt(mr)?mr.toString():void 0;return se.createElement("div",{className:Ae()(jr,"".concat(jr,"-group"),Ln.className),title:sr},mr!==void 0?mr:Un)}var pr=Ln.disabled,_r=Ln.title,Yr=Ln.children,to=Ln.style,Fo=Ln.className,Mo=(0,me.Z)(Ln,$t),Yo=(0,tn.Z)(Mo,No),Jo=or(wr),ni=pr||!Jo&&eo,ri="".concat(jr,"-option"),Mi=Ae()(jr,ri,Fo,(0,de.Z)((0,de.Z)((0,de.Z)((0,de.Z)({},"".concat(ri,"-grouped"),Yn),"".concat(ri,"-active"),Cr===Tn&&!ni),"".concat(ri,"-disabled"),ni),"".concat(ri,"-selected"),Jo)),$i=To(dr),Xi=!ir||typeof ir=="function"||Jo,Yi=typeof $i=="number"?$i:$i||wr,ta=dt(Yi)?Yi.toString():void 0;return _r!==void 0&&(ta=_r),se.createElement("div",(0,y.Z)({},(0,it.Z)(Yo),ar?{}:Xo(dr,Tn),{"aria-selected":ti(wr),className:Mi,title:ta,onMouseMove:function(){Cr===Tn||ni||Ho(Tn)},onClick:function(){ni||xo(wr)},style:to}),se.createElement("div",{className:"".concat(ri,"-content")},typeof Zr=="function"?Zr(dr,{index:Tn}):Yi),se.isValidElement(ir)||Jo,Xi&&se.createElement(Se,{className:"".concat(jr,"-option-state"),customizeIcon:ir,customizeIconProps:{value:wr,disabled:ni,isSelected:Jo}},Jo?"\u2713":null))}))},Gt=se.forwardRef(Ot),mn=Gt,An=function(xt,_t){var Je=se.useRef({values:new Map,options:new Map}),Dt=se.useMemo(function(){var At=Je.current,Jt=At.values,Rn=At.options,Zn=xt.map(function(St){if(St.label===void 0){var It;return(0,$e.Z)((0,$e.Z)({},St),{},{label:(It=Jt.get(St.value))===null||It===void 0?void 0:It.label})}return St}),pt=new Map,Et=new Map;return Zn.forEach(function(St){pt.set(St.value,St),Et.set(St.value,_t.get(St.value)||Rn.get(St.value))}),Je.current.values=pt,Je.current.options=Et,Zn},[xt,_t]),Ge=se.useCallback(function(At){return _t.get(At)||Je.current.options.get(At)},[_t]);return[Dt,Ge]};function hn(xt,_t){return Ze(xt).join("").toUpperCase().includes(_t)}var Fn=function(xt,_t,Je,Dt,Ge){return se.useMemo(function(){if(!Je||Dt===!1)return xt;var At=_t.options,Jt=_t.label,Rn=_t.value,Zn=[],pt=typeof Dt=="function",Et=Je.toUpperCase(),St=pt?Dt:function(fn,Bn){return Ge?hn(Bn[Ge],Et):Bn[At]?hn(Bn[Jt!=="children"?Jt:"label"],Et):hn(Bn[Rn],Et)},It=pt?function(fn){return at(fn)}:function(fn){return fn};return xt.forEach(function(fn){if(fn[At]){var Bn=St(Je,It(fn));if(Bn)Zn.push(fn);else{var On=fn[At].filter(function(Nn){return St(Je,It(Nn))});On.length&&Zn.push((0,$e.Z)((0,$e.Z)({},fn),{},(0,de.Z)({},At,On)))}return}St(Je,It(fn))&&Zn.push(fn)}),Zn},[xt,Dt,Ge,Je,_t])},Ft=z(6551),Tt=z(11592),Ut=["children","value"],an=["children"];function Xt(xt){var _t=xt,Je=_t.key,Dt=_t.props,Ge=Dt.children,At=Dt.value,Jt=(0,me.Z)(Dt,Ut);return(0,$e.Z)({key:Je,value:At!==void 0?At:Je,children:Ge},Jt)}function yn(xt){var _t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Tt.Z)(xt).map(function(Je,Dt){if(!se.isValidElement(Je)||!Je.type)return null;var Ge=Je,At=Ge.type.isSelectOptGroup,Jt=Ge.key,Rn=Ge.props,Zn=Rn.children,pt=(0,me.Z)(Rn,an);return _t||!At?Xt(Je):(0,$e.Z)((0,$e.Z)({key:"__RC_SELECT_GRP__".concat(Jt===null?Dt:Jt,"__"),label:Jt},pt),{},{options:yn(Zn)})}).filter(function(Je){return Je})}var sn=function(_t,Je,Dt,Ge,At){return se.useMemo(function(){var Jt=_t,Rn=!_t;Rn&&(Jt=yn(Je));var Zn=new Map,pt=new Map,Et=function(fn,Bn,On){On&&typeof On=="string"&&fn.set(Bn[On],Bn)},St=function It(fn){for(var Bn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,On=0;On<fn.length;On+=1){var Nn=fn[On];!Nn[Dt.options]||Bn?(Zn.set(Nn[Dt.value],Nn),Et(pt,Nn,Dt.label),Et(pt,Nn,Ge),Et(pt,Nn,At)):It(Nn[Dt.options],!0)}};return St(Jt),{options:Jt,valueOptions:Zn,labelOptions:pt}},[_t,Je,Dt,Ge,At])},wn=sn;function Vn(xt){var _t=se.useRef();_t.current=xt;var Je=se.useCallback(function(){return _t.current.apply(_t,arguments)},[]);return Je}function Mn(xt){var _t=xt.mode,Je=xt.options,Dt=xt.children,Ge=xt.backfill,At=xt.allowClear,Jt=xt.placeholder,Rn=xt.getInputElement,Zn=xt.showSearch,pt=xt.onSearch,Et=xt.defaultOpen,St=xt.autoFocus,It=xt.labelInValue,fn=xt.value,Bn=xt.inputValue,On=xt.optionLabelProp,Nn=isMultiple(_t),qn=Zn!==void 0?Zn:Nn||_t==="combobox",nr=Je||convertChildrenToData(Dt);if(warning(_t!=="tags"||nr.every(function(ar){return!ar.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),_t==="tags"||_t==="combobox"){var ir=nr.some(function(ar){return ar.options?ar.options.some(function(fr){return typeof("value"in fr?fr.value:fr.key)=="number"}):typeof("value"in ar?ar.value:ar.key)=="number"});warning(!ir,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(_t!=="combobox"||!On,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(_t==="combobox"||!Ge,"`backfill` only works with `combobox` mode."),warning(_t==="combobox"||!Rn,"`getInputElement` only work with `combobox` mode."),noteOnce(_t!=="combobox"||!Rn||!At||!Jt,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),pt&&!qn&&_t!=="combobox"&&_t!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Et||St,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),fn!=null){var lr=toArray(fn);warning(!It||lr.every(function(ar){return _typeof(ar)==="object"&&("key"in ar||"value"in ar)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Nn||Array.isArray(fn),"`value` should be array when `mode` is `multiple` or `tags`")}if(Dt){var Qn=null;toNodeArray(Dt).some(function(ar){if(!React.isValidElement(ar)||!ar.type)return!1;var fr=ar,Sr=fr.type;if(Sr.isSelectOption)return!1;if(Sr.isSelectOptGroup){var br=toNodeArray(ar.props.children).every(function(Zr){return!React.isValidElement(Zr)||!ar.type||Zr.type.isSelectOption?!0:(Qn=Zr.type,!1)});return!br}return Qn=Sr,!0}),Qn&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Qn.displayName||Qn.name||Qn,"`.")),warning(Bn===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function $n(xt,_t){if(xt){var Je=function Dt(Ge){for(var At=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Jt=0;Jt<Ge.length;Jt++){var Rn=Ge[Jt];if(Rn[_t==null?void 0:_t.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!At&&Array.isArray(Rn[_t==null?void 0:_t.options])&&Dt(Rn[_t==null?void 0:_t.options],!0))break}};Je(xt)}}var Wn=null,Hn=["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"],ur=["inputValue"];function rr(xt){return!xt||(0,ve.Z)(xt)!=="object"}var dn=se.forwardRef(function(xt,_t){var Je=xt.id,Dt=xt.mode,Ge=xt.prefixCls,At=Ge===void 0?"rc-select":Ge,Jt=xt.backfill,Rn=xt.fieldNames,Zn=xt.inputValue,pt=xt.searchValue,Et=xt.onSearch,St=xt.autoClearSearchValue,It=St===void 0?!0:St,fn=xt.onSelect,Bn=xt.onDeselect,On=xt.dropdownMatchSelectWidth,Nn=On===void 0?!0:On,qn=xt.filterOption,nr=xt.filterSort,ir=xt.optionFilterProp,lr=xt.optionLabelProp,Qn=xt.options,ar=xt.optionRender,fr=xt.children,Sr=xt.defaultActiveFirstOption,br=xt.menuItemSelectedIcon,Zr=xt.virtual,jr=xt.direction,hr=xt.listHeight,Mr=hr===void 0?200:hr,eo=xt.listItemHeight,kr=eo===void 0?20:eo,Fr=xt.labelRender,or=xt.value,Ur=xt.defaultValue,Rr=xt.labelInValue,Br=xt.onChange,Cr=xt.maxCount,so=(0,me.Z)(xt,Hn),Ho=(0,Ft.ZP)(Je),ti=un(Dt),xo=!!(!Qn&&fr),No=se.useMemo(function(){return qn===void 0&&Dt==="combobox"?!1:qn},[qn,Dt]),To=se.useMemo(function(){return Ue(Rn,xo)},[JSON.stringify(Rn),xo]),Xo=(0,Me.Z)("",{value:pt!==void 0?pt:Zn,postState:function(ai){return ai||""}}),ko=(0,pe.Z)(Xo,2),go=ko[0],dr=ko[1],Tn=wn(Qn,fr,To,ir,lr),Gn=Tn.valueOptions,Yn=Tn.labelOptions,Ln=Tn.options,mr=se.useCallback(function(jo){var ai=Ze(jo);return ai.map(function(Ro){var Bo,qo,Bi,Wa,zi;if(rr(Ro))Bo=Ro;else{var Qi;Bi=Ro.key,qo=Ro.label,Bo=(Qi=Ro.value)!==null&&Qi!==void 0?Qi:Bi}var sa=Gn.get(Bo);if(sa){var cl;if(qo===void 0&&(qo=sa==null?void 0:sa[lr||To.label]),Bi===void 0&&(Bi=(cl=sa==null?void 0:sa.key)!==null&&cl!==void 0?cl:Bo),Wa=sa==null?void 0:sa.disabled,zi=sa==null?void 0:sa.title,0)var xl}return{label:qo,value:Bo,key:Bi,disabled:Wa,title:zi}})},[To,lr,Gn]),wr=(0,Me.Z)(Ur,{value:or}),Un=(0,pe.Z)(wr,2),Jn=Un[0],sr=Un[1],pr=se.useMemo(function(){var jo,ai=ti&&Jn===null?[]:Jn,Ro=mr(ai);return Dt==="combobox"&&ye((jo=Ro[0])===null||jo===void 0?void 0:jo.value)?[]:Ro},[Jn,mr,Dt,ti]),_r=An(pr,Gn),Yr=(0,pe.Z)(_r,2),to=Yr[0],Fo=Yr[1],Mo=se.useMemo(function(){if(!Dt&&to.length===1){var jo=to[0];if(jo.value===null&&(jo.label===null||jo.label===void 0))return[]}return to.map(function(ai){var Ro;return(0,$e.Z)((0,$e.Z)({},ai),{},{label:(Ro=typeof Fr=="function"?Fr(ai):ai.label)!==null&&Ro!==void 0?Ro:ai.value})})},[Dt,to,Fr]),Yo=se.useMemo(function(){return new Set(to.map(function(jo){return jo.value}))},[to]);se.useEffect(function(){if(Dt==="combobox"){var jo,ai=(jo=to[0])===null||jo===void 0?void 0:jo.value;dr(Fe(ai)?String(ai):"")}},[to]);var Jo=Vn(function(jo,ai){var Ro=ai!=null?ai:jo;return(0,de.Z)((0,de.Z)({},To.value,jo),To.label,Ro)}),ni=se.useMemo(function(){if(Dt!=="tags")return Ln;var jo=(0,he.Z)(Ln),ai=function(Bo){return Gn.has(Bo)};return(0,he.Z)(to).sort(function(Ro,Bo){return Ro.value<Bo.value?-1:1}).forEach(function(Ro){var Bo=Ro.value;ai(Bo)||jo.push(Jo(Bo,Ro.label))}),jo},[Jo,Ln,Gn,to,Dt]),ri=Fn(ni,To,go,No,ir),Mi=se.useMemo(function(){return Dt!=="tags"||!go||ri.some(function(jo){return jo[ir||"value"]===go})||ri.some(function(jo){return jo[To.value]===go})?ri:[Jo(go)].concat((0,he.Z)(ri))},[Jo,ir,Dt,ri,go,To]),$i=function jo(ai){var Ro=(0,he.Z)(ai).sort(function(Bo,qo){return nr(Bo,qo,{searchValue:go})});return Ro.map(function(Bo){return Array.isArray(Bo.options)?(0,$e.Z)((0,$e.Z)({},Bo),{},{options:Bo.options.length>0?jo(Bo.options):Bo.options}):Bo})},Xi=se.useMemo(function(){return nr?$i(Mi):Mi},[Mi,nr,go]),Yi=se.useMemo(function(){return He(Xi,{fieldNames:To,childrenAsData:xo})},[Xi,To,xo]),ta=function(ai){var Ro=mr(ai);if(sr(Ro),Br&&(Ro.length!==to.length||Ro.some(function(Bi,Wa){var zi;return((zi=to[Wa])===null||zi===void 0?void 0:zi.value)!==(Bi==null?void 0:Bi.value)}))){var Bo=Rr?Ro:Ro.map(function(Bi){return Bi.value}),qo=Ro.map(function(Bi){return at(Fo(Bi.value))});Br(ti?Bo:Bo[0],ti?qo:qo[0])}},Lo=se.useState(null),co=(0,pe.Z)(Lo,2),wi=co[0],wo=co[1],aa=se.useState(0),Qa=(0,pe.Z)(aa,2),Ha=Qa[0],da=Qa[1],fa=Sr!==void 0?Sr:Dt!=="combobox",Ti=se.useCallback(function(jo,ai){var Ro=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Bo=Ro.source,qo=Bo===void 0?"keyboard":Bo;da(ai),Jt&&Dt==="combobox"&&jo!==null&&qo==="keyboard"&&wo(String(jo))},[Jt,Dt]),ka=function(ai,Ro,Bo){var qo=function(){var kl,dl=Fo(ai);return[Rr?{label:dl==null?void 0:dl[To.label],value:ai,key:(kl=dl==null?void 0:dl.key)!==null&&kl!==void 0?kl:ai}:ai,at(dl)]};if(Ro&&fn){var Bi=qo(),Wa=(0,pe.Z)(Bi,2),zi=Wa[0],Qi=Wa[1];fn(zi,Qi)}else if(!Ro&&Bn&&Bo!=="clear"){var sa=qo(),cl=(0,pe.Z)(sa,2),xl=cl[0],Ka=cl[1];Bn(xl,Ka)}},ol=Vn(function(jo,ai){var Ro,Bo=ti?ai.selected:!0;Bo?Ro=ti?[].concat((0,he.Z)(to),[jo]):[jo]:Ro=to.filter(function(qo){return qo.value!==jo}),ta(Ro),ka(jo,Bo),Dt==="combobox"?wo(""):(!un||It)&&(dr(""),wo(""))}),Ja=function(ai,Ro){ta(ai);var Bo=Ro.type,qo=Ro.values;(Bo==="remove"||Bo==="clear")&&qo.forEach(function(Bi){ka(Bi.value,!1,Bo)})},la=function(ai,Ro){if(dr(ai),wo(null),Ro.source==="submit"){var Bo=(ai||"").trim();if(Bo){var qo=Array.from(new Set([].concat((0,he.Z)(Yo),[Bo])));ta(qo),ka(Bo,!0),dr("")}return}Ro.source!=="blur"&&(Dt==="combobox"&&ta(ai),Et==null||Et(ai))},Pl=function(ai){var Ro=ai;Dt!=="tags"&&(Ro=ai.map(function(qo){var Bi=Yn.get(qo);return Bi==null?void 0:Bi.value}).filter(function(qo){return qo!==void 0}));var Bo=Array.from(new Set([].concat((0,he.Z)(Yo),(0,he.Z)(Ro))));ta(Bo),Bo.forEach(function(qo){ka(qo,!0)})},El=se.useMemo(function(){var jo=Zr!==!1&&Nn!==!1;return(0,$e.Z)((0,$e.Z)({},Tn),{},{flattenOptions:Yi,onActiveValue:Ti,defaultActiveFirstOption:fa,onSelect:ol,menuItemSelectedIcon:br,rawValues:Yo,fieldNames:To,virtual:jo,direction:jr,listHeight:Mr,listItemHeight:kr,childrenAsData:xo,maxCount:Cr,optionRender:ar})},[Cr,Tn,Yi,Ti,fa,ol,br,Yo,To,Zr,Nn,jr,Mr,kr,xo,ar]);return se.createElement(Le.Provider,{value:El},se.createElement(Rt,(0,y.Z)({},so,{id:Ho,prefixCls:At,ref:_t,omitDomProps:ur,mode:Dt,displayValues:Mo,onDisplayValuesChange:Ja,direction:jr,searchValue:go,onSearch:la,autoClearSearchValue:It,onSearchSplit:Pl,dropdownMatchSelectWidth:Nn,OptionList:mn,emptyOptions:!Yi.length,activeValue:wi,activeDescendantId:"".concat(Ho,"_list_").concat(Ha)})))}),xn=dn;xn.Option=yt,xn.OptGroup=Ht;var jn=xn,zn=jn},22711:function(bn,Wt,z){"use strict";z.r(Wt),z.d(Wt,{ResizableTextArea:function(){return be},default:function(){return mt}});var y=z(54476),he=z(20068),de=z(33885),$e=z(94480),pe=z(42978),me=z(75931),ve=z(92310),Me=z.n(ve),ge=z(36901),se=z(66003),_e=z(30292),Ae=z(18929),tt=z(59301),je=z(76190),Te=z(29301),Ce=z(34280),Se=z(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;
`,Ye=["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"],ct={},Be;function Oe(Ze){var nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Mt=Ze.getAttribute("id")||Ze.getAttribute("data-reactid")||Ze.getAttribute("name");if(nt&&ct[Mt])return ct[Mt];var Fe=window.getComputedStyle(Ze),ye=Fe.getPropertyValue("box-sizing")||Fe.getPropertyValue("-moz-box-sizing")||Fe.getPropertyValue("-webkit-box-sizing"),Bt=parseFloat(Fe.getPropertyValue("padding-bottom"))+parseFloat(Fe.getPropertyValue("padding-top")),jt=parseFloat(Fe.getPropertyValue("border-bottom-width"))+parseFloat(Fe.getPropertyValue("border-top-width")),Lt=Ye.map(function(ot){return"".concat(ot,":").concat(Fe.getPropertyValue(ot))}).join(";"),Ee={sizingStyle:Lt,paddingSize:Bt,borderSize:jt,boxSizing:ye};return nt&&Mt&&(ct[Mt]=Ee),Ee}function Re(Ze){var nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Mt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Fe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Be||(Be=document.createElement("textarea"),Be.setAttribute("tab-index","-1"),Be.setAttribute("aria-hidden","true"),Be.setAttribute("name","hiddenTextarea"),document.body.appendChild(Be)),Ze.getAttribute("wrap")?Be.setAttribute("wrap",Ze.getAttribute("wrap")):Be.removeAttribute("wrap");var ye=Oe(Ze,nt),Bt=ye.paddingSize,jt=ye.borderSize,Lt=ye.boxSizing,Ee=ye.sizingStyle;Be.setAttribute("style","".concat(Ee,";").concat(Pe)),Be.value=Ze.value||Ze.placeholder||"";var ot=void 0,qe=void 0,zt,ht=Be.scrollHeight;if(Lt==="border-box"?ht+=jt:Lt==="content-box"&&(ht-=Bt),Mt!==null||Fe!==null){Be.value=" ";var lt=Be.scrollHeight-Bt;Mt!==null&&(ot=lt*Mt,Lt==="border-box"&&(ot=ot+Bt+jt),ht=Math.max(ot,ht)),Fe!==null&&(qe=lt*Fe,Lt==="border-box"&&(qe=qe+Bt+jt),zt=ht>qe?"":"hidden",ht=Math.min(qe,ht))}var rt={height:ht,overflowY:zt,resize:"none"};return ot&&(rt.minHeight=ot),qe&&(rt.maxHeight=qe),rt}var Ke=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],vt=0,it=1,Qe=2,ut=tt.forwardRef(function(Ze,nt){var Mt=Ze,Fe=Mt.prefixCls,ye=Mt.defaultValue,Bt=Mt.value,jt=Mt.autoSize,Lt=Mt.onResize,Ee=Mt.className,ot=Mt.style,qe=Mt.disabled,zt=Mt.onChange,ht=Mt.onInternalAutoSize,lt=(0,me.Z)(Mt,Ke),rt=(0,Ae.Z)(ye,{value:Bt,postState:function(yt){return yt!=null?yt:""}}),on=(0,pe.Z)(rt,2),kt=on[0],ae=on[1],re=function(yt){ae(yt.target.value),zt==null||zt(yt)},te=tt.useRef();tt.useImperativeHandle(nt,function(){return{textArea:te.current}});var ie=tt.useMemo(function(){return jt&&(0,je.Z)(jt)==="object"?[jt.minRows,jt.maxRows]:[]},[jt]),ce=(0,pe.Z)(ie,2),ne=ce[0],le=ce[1],Ie=!!jt,bt=function(){try{if(document.activeElement===te.current){var yt=te.current,Kt=yt.selectionStart,tn=yt.selectionEnd,Ve=yt.scrollTop;te.current.setSelectionRange(Kt,tn),te.current.scrollTop=Ve}}catch(Ct){}},Ue=tt.useState(Qe),He=(0,pe.Z)(Ue,2),at=He[0],ft=He[1],Pt=tt.useState(),Le=(0,pe.Z)(Pt,2),We=Le[0],Nt=Le[1],Qt=function(){ft(vt)};(0,Ce.Z)(function(){Ie&&Qt()},[Bt,ne,le,Ie]),(0,Ce.Z)(function(){if(at===vt)ft(it);else if(at===it){var ze=Re(te.current,!1,ne,le);ft(Qe),Nt(ze)}else bt()},[at]);var un=tt.useRef(),rn=function(){Se.Z.cancel(un.current)},Rt=function(yt){at===Qe&&(Lt==null||Lt(yt),jt&&(rn(),un.current=(0,Se.Z)(function(){Qt()})))};tt.useEffect(function(){return rn},[]);var ln=Ie?We:null,Ht=(0,de.Z)((0,de.Z)({},ot),ln);return(at===vt||at===it)&&(Ht.overflowY="hidden",Ht.overflowX="hidden"),tt.createElement(Te.Z,{onResize:Rt,disabled:!(jt||Lt)},tt.createElement("textarea",(0,y.Z)({},lt,{ref:te,style:Ht,className:Me()(Fe,Ee,(0,he.Z)({},"".concat(Fe,"-disabled"),qe)),disabled:qe,value:kt,onChange:re})))}),be=ut,et=["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"],Ne=tt.forwardRef(function(Ze,nt){var Mt,Fe=Ze.defaultValue,ye=Ze.value,Bt=Ze.onFocus,jt=Ze.onBlur,Lt=Ze.onChange,Ee=Ze.allowClear,ot=Ze.maxLength,qe=Ze.onCompositionStart,zt=Ze.onCompositionEnd,ht=Ze.suffix,lt=Ze.prefixCls,rt=lt===void 0?"rc-textarea":lt,on=Ze.showCount,kt=Ze.count,ae=Ze.className,re=Ze.style,te=Ze.disabled,ie=Ze.hidden,ce=Ze.classNames,ne=Ze.styles,le=Ze.onResize,Ie=Ze.onClear,bt=Ze.onPressEnter,Ue=Ze.readOnly,He=Ze.autoSize,at=Ze.onKeyDown,ft=(0,me.Z)(Ze,et),Pt=(0,Ae.Z)(Fe,{value:ye,defaultValue:Fe}),Le=(0,pe.Z)(Pt,2),We=Le[0],Nt=Le[1],Qt=We==null?"":String(We),un=tt.useState(!1),rn=(0,pe.Z)(un,2),Rt=rn[0],ln=rn[1],Ht=tt.useRef(!1),ze=tt.useState(null),yt=(0,pe.Z)(ze,2),Kt=yt[0],tn=yt[1],Ve=(0,tt.useRef)(null),Ct=(0,tt.useRef)(null),$t=function(){var xn;return(xn=Ct.current)===null||xn===void 0?void 0:xn.textArea},dt=function(){$t().focus()};(0,tt.useImperativeHandle)(nt,function(){var dn;return{resizableTextArea:Ct.current,focus:dt,blur:function(){$t().blur()},nativeElement:((dn=Ve.current)===null||dn===void 0?void 0:dn.nativeElement)||$t()}}),(0,tt.useEffect)(function(){ln(function(dn){return!te&&dn})},[te]);var Ot=tt.useState(null),Gt=(0,pe.Z)(Ot,2),mn=Gt[0],An=Gt[1];tt.useEffect(function(){if(mn){var dn;(dn=$t()).setSelectionRange.apply(dn,(0,$e.Z)(mn))}},[mn]);var hn=(0,se.Z)(kt,on),Fn=(Mt=hn.max)!==null&&Mt!==void 0?Mt:ot,Ft=Number(Fn)>0,Tt=hn.strategy(Qt),Ut=!!Fn&&Tt>Fn,an=function(xn,jn){var zn=jn;!Ht.current&&hn.exceedFormatter&&hn.max&&hn.strategy(jn)>hn.max&&(zn=hn.exceedFormatter(jn,{max:hn.max}),jn!==zn&&An([$t().selectionStart||0,$t().selectionEnd||0])),Nt(zn),(0,_e.rJ)(xn.currentTarget,xn,Lt,zn)},Xt=function(xn){Ht.current=!0,qe==null||qe(xn)},yn=function(xn){Ht.current=!1,an(xn,xn.currentTarget.value),zt==null||zt(xn)},sn=function(xn){an(xn,xn.target.value)},wn=function(xn){xn.key==="Enter"&&bt&&bt(xn),at==null||at(xn)},Vn=function(xn){ln(!0),Bt==null||Bt(xn)},Mn=function(xn){ln(!1),jt==null||jt(xn)},$n=function(xn){Nt(""),dt(),(0,_e.rJ)($t(),xn,Lt)},Wn=ht,Hn;hn.show&&(hn.showFormatter?Hn=hn.showFormatter({value:Qt,count:Tt,maxLength:Fn}):Hn="".concat(Tt).concat(Ft?" / ".concat(Fn):""),Wn=tt.createElement(tt.Fragment,null,Wn,tt.createElement("span",{className:Me()("".concat(rt,"-data-count"),ce==null?void 0:ce.count),style:ne==null?void 0:ne.count},Hn)));var ur=function(xn){var jn;le==null||le(xn),(jn=$t())!==null&&jn!==void 0&&jn.style.height&&tn(!0)},rr=!He&&!on&&!Ee;return tt.createElement(ge.BaseInput,{ref:Ve,value:Qt,allowClear:Ee,handleReset:$n,suffix:Wn,prefixCls:rt,classNames:(0,de.Z)((0,de.Z)({},ce),{},{affixWrapper:Me()(ce==null?void 0:ce.affixWrapper,(0,he.Z)((0,he.Z)({},"".concat(rt,"-show-count"),on),"".concat(rt,"-textarea-allow-clear"),Ee))}),disabled:te,focused:Rt,className:Me()(ae,Ut&&"".concat(rt,"-out-of-range")),style:(0,de.Z)((0,de.Z)({},re),Kt&&!rr?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Hn=="string"?Hn:void 0}},hidden:ie,readOnly:Ue,onClear:Ie},tt.createElement(be,(0,y.Z)({},ft,{autoSize:He,maxLength:ot,onKeyDown:wn,onChange:sn,onFocus:Vn,onBlur:Mn,onCompositionStart:Xt,onCompositionEnd:yn,className:Me()(ce==null?void 0:ce.textarea),style:(0,de.Z)((0,de.Z)({},ne==null?void 0:ne.textarea),{},{resize:re==null?void 0:re.resize}),disabled:te,prefixCls:rt,onResize:ur,ref:Ct,readOnly:Ue})))}),ue=Ne,mt=ue},639:function(bn,Wt,z){"use strict";z.d(Wt,{Z:function(){return ct}});var y=z(54476),he=z(20068),de=z(33885),$e=z(42978),pe=z(75931),me=z(59301),ve=z(92310),Me=z.n(ve),ge=z(26112),se=z(30699),_e=function(Oe){for(var Re=Oe.prefixCls,Ke=Oe.level,vt=Oe.isStart,it=Oe.isEnd,Qe="".concat(Re,"-indent-unit"),ut=[],be=0;be<Ke;be+=1)ut.push(me.createElement("span",{key:be,className:Me()(Qe,(0,he.Z)((0,he.Z)({},"".concat(Qe,"-start"),vt[be]),"".concat(Qe,"-end"),it[be]))}));return me.createElement("span",{"aria-hidden":"true",className:"".concat(Re,"-indent")},ut)},Ae=me.memo(_e),tt=z(65065),je=z(34061),Te=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],Ce="open",Se="close",Pe="---",Ye=function(Oe){var Re,Ke,vt,it=Oe.eventKey,Qe=Oe.className,ut=Oe.style,be=Oe.dragOver,et=Oe.dragOverGapTop,Ne=Oe.dragOverGapBottom,ue=Oe.isLeaf,mt=Oe.isStart,Ze=Oe.isEnd,nt=Oe.expanded,Mt=Oe.selected,Fe=Oe.checked,ye=Oe.halfChecked,Bt=Oe.loading,jt=Oe.domRef,Lt=Oe.active,Ee=Oe.data,ot=Oe.onMouseMove,qe=Oe.selectable,zt=(0,pe.Z)(Oe,Te),ht=me.useContext(se.k),lt=me.useContext(se.y),rt=me.useRef(null),on=me.useState(!1),kt=(0,$e.Z)(on,2),ae=kt[0],re=kt[1],te=!!(ht.disabled||Oe.disabled||(Re=lt.nodeDisabled)!==null&&Re!==void 0&&Re.call(lt,Ee)),ie=me.useMemo(function(){return!ht.checkable||Oe.checkable===!1?!1:ht.checkable},[ht.checkable,Oe.checkable]),ce=function(Tt){te||ht.onNodeSelect(Tt,(0,je.F)(Oe))},ne=function(Tt){te||!ie||Oe.disableCheckbox||ht.onNodeCheck(Tt,(0,je.F)(Oe),!Fe)},le=me.useMemo(function(){return typeof qe=="boolean"?qe:ht.selectable},[qe,ht.selectable]),Ie=function(Tt){ht.onNodeClick(Tt,(0,je.F)(Oe)),le?ce(Tt):ne(Tt)},bt=function(Tt){ht.onNodeDoubleClick(Tt,(0,je.F)(Oe))},Ue=function(Tt){ht.onNodeMouseEnter(Tt,(0,je.F)(Oe))},He=function(Tt){ht.onNodeMouseLeave(Tt,(0,je.F)(Oe))},at=function(Tt){ht.onNodeContextMenu(Tt,(0,je.F)(Oe))},ft=me.useMemo(function(){return!!(ht.draggable&&(!ht.draggable.nodeDraggable||ht.draggable.nodeDraggable(Ee)))},[ht.draggable,Ee]),Pt=function(Tt){Tt.stopPropagation(),re(!0),ht.onNodeDragStart(Tt,Oe);try{Tt.dataTransfer.setData("text/plain","")}catch(Ut){}},Le=function(Tt){Tt.preventDefault(),Tt.stopPropagation(),ht.onNodeDragEnter(Tt,Oe)},We=function(Tt){Tt.preventDefault(),Tt.stopPropagation(),ht.onNodeDragOver(Tt,Oe)},Nt=function(Tt){Tt.stopPropagation(),ht.onNodeDragLeave(Tt,Oe)},Qt=function(Tt){Tt.stopPropagation(),re(!1),ht.onNodeDragEnd(Tt,Oe)},un=function(Tt){Tt.preventDefault(),Tt.stopPropagation(),re(!1),ht.onNodeDrop(Tt,Oe)},rn=function(Tt){Bt||ht.onNodeExpand(Tt,(0,je.F)(Oe))},Rt=me.useMemo(function(){var Ft=(0,tt.Z)(ht.keyEntities,it)||{},Tt=Ft.children;return!!(Tt||[]).length},[ht.keyEntities,it]),ln=me.useMemo(function(){return ue===!1?!1:ue||!ht.loadData&&!Rt||ht.loadData&&Oe.loaded&&!Rt},[ue,ht.loadData,Rt,Oe.loaded]);me.useEffect(function(){Bt||typeof ht.loadData=="function"&&nt&&!ln&&!Oe.loaded&&ht.onNodeLoad((0,je.F)(Oe))},[Bt,ht.loadData,ht.onNodeLoad,nt,ln,Oe]);var Ht=me.useMemo(function(){var Ft;return(Ft=ht.draggable)!==null&&Ft!==void 0&&Ft.icon?me.createElement("span",{className:"".concat(ht.prefixCls,"-draggable-icon")},ht.draggable.icon):null},[ht.draggable]),ze=function(Tt){var Ut=Oe.switcherIcon||ht.switcherIcon;return typeof Ut=="function"?Ut((0,de.Z)((0,de.Z)({},Oe),{},{isLeaf:Tt})):Ut},yt=function(){if(ln){var Tt=ze(!0);return Tt!==!1?me.createElement("span",{className:Me()("".concat(ht.prefixCls,"-switcher"),"".concat(ht.prefixCls,"-switcher-noop"))},Tt):null}var Ut=ze(!1);return Ut!==!1?me.createElement("span",{onClick:rn,className:Me()("".concat(ht.prefixCls,"-switcher"),"".concat(ht.prefixCls,"-switcher_").concat(nt?Ce:Se))},Ut):null},Kt=me.useMemo(function(){if(!ie)return null;var Ft=typeof ie!="boolean"?ie:null;return me.createElement("span",{className:Me()("".concat(ht.prefixCls,"-checkbox"),(0,he.Z)((0,he.Z)((0,he.Z)({},"".concat(ht.prefixCls,"-checkbox-checked"),Fe),"".concat(ht.prefixCls,"-checkbox-indeterminate"),!Fe&&ye),"".concat(ht.prefixCls,"-checkbox-disabled"),te||Oe.disableCheckbox)),onClick:ne,role:"checkbox","aria-checked":ye?"mixed":Fe,"aria-disabled":te||Oe.disableCheckbox,"aria-label":"Select ".concat(typeof Oe.title=="string"?Oe.title:"tree node")},Ft)},[ie,Fe,ye,te,Oe.disableCheckbox,Oe.title]),tn=me.useMemo(function(){return ln?null:nt?Ce:Se},[ln,nt]),Ve=me.useMemo(function(){return me.createElement("span",{className:Me()("".concat(ht.prefixCls,"-iconEle"),"".concat(ht.prefixCls,"-icon__").concat(tn||"docu"),(0,he.Z)({},"".concat(ht.prefixCls,"-icon_loading"),Bt))})},[ht.prefixCls,tn,Bt]),Ct=me.useMemo(function(){var Ft=!!ht.draggable,Tt=!Oe.disabled&&Ft&&ht.dragOverNodeKey===it;return Tt?ht.dropIndicatorRender({dropPosition:ht.dropPosition,dropLevelOffset:ht.dropLevelOffset,indent:ht.indent,prefixCls:ht.prefixCls,direction:ht.direction}):null},[ht.dropPosition,ht.dropLevelOffset,ht.indent,ht.prefixCls,ht.direction,ht.draggable,ht.dragOverNodeKey,ht.dropIndicatorRender]),$t=me.useMemo(function(){var Ft=Oe.title,Tt=Ft===void 0?Pe:Ft,Ut="".concat(ht.prefixCls,"-node-content-wrapper"),an;if(ht.showIcon){var Xt=Oe.icon||ht.icon;an=Xt?me.createElement("span",{className:Me()("".concat(ht.prefixCls,"-iconEle"),"".concat(ht.prefixCls,"-icon__customize"))},typeof Xt=="function"?Xt(Oe):Xt):Ve}else ht.loadData&&Bt&&(an=Ve);var yn;return typeof Tt=="function"?yn=Tt(Ee):ht.titleRender?yn=ht.titleRender(Ee):yn=Tt,me.createElement("span",{ref:rt,title:typeof Tt=="string"?Tt:"",className:Me()(Ut,"".concat(Ut,"-").concat(tn||"normal"),(0,he.Z)({},"".concat(ht.prefixCls,"-node-selected"),!te&&(Mt||ae))),onMouseEnter:Ue,onMouseLeave:He,onContextMenu:at,onClick:Ie,onDoubleClick:bt},an,me.createElement("span",{className:"".concat(ht.prefixCls,"-title")},yn),Ct)},[ht.prefixCls,ht.showIcon,Oe,ht.icon,Ve,ht.titleRender,Ee,tn,Ue,He,at,Ie,bt]),dt=(0,ge.Z)(zt,{aria:!0,data:!0}),Ot=(0,tt.Z)(ht.keyEntities,it)||{},Gt=Ot.level,mn=Ze[Ze.length-1],An=!te&&ft,hn=ht.draggingNodeKey===it,Fn=qe!==void 0?{"aria-selected":!!qe}:void 0;return me.createElement("div",(0,y.Z)({ref:jt,role:"treeitem","aria-expanded":ue?void 0:nt,className:Me()(Qe,"".concat(ht.prefixCls,"-treenode"),(vt={},(0,he.Z)((0,he.Z)((0,he.Z)((0,he.Z)((0,he.Z)((0,he.Z)((0,he.Z)((0,he.Z)((0,he.Z)((0,he.Z)(vt,"".concat(ht.prefixCls,"-treenode-disabled"),te),"".concat(ht.prefixCls,"-treenode-switcher-").concat(nt?"open":"close"),!ue),"".concat(ht.prefixCls,"-treenode-checkbox-checked"),Fe),"".concat(ht.prefixCls,"-treenode-checkbox-indeterminate"),ye),"".concat(ht.prefixCls,"-treenode-selected"),Mt),"".concat(ht.prefixCls,"-treenode-loading"),Bt),"".concat(ht.prefixCls,"-treenode-active"),Lt),"".concat(ht.prefixCls,"-treenode-leaf-last"),mn),"".concat(ht.prefixCls,"-treenode-draggable"),ft),"dragging",hn),(0,he.Z)((0,he.Z)((0,he.Z)((0,he.Z)((0,he.Z)((0,he.Z)((0,he.Z)(vt,"drop-target",ht.dropTargetKey===it),"drop-container",ht.dropContainerKey===it),"drag-over",!te&&be),"drag-over-gap-top",!te&&et),"drag-over-gap-bottom",!te&&Ne),"filter-node",(Ke=ht.filterTreeNode)===null||Ke===void 0?void 0:Ke.call(ht,(0,je.F)(Oe))),"".concat(ht.prefixCls,"-treenode-leaf"),ln))),style:ut,draggable:An,onDragStart:An?Pt:void 0,onDragEnter:ft?Le:void 0,onDragOver:ft?We:void 0,onDragLeave:ft?Nt:void 0,onDrop:ft?un:void 0,onDragEnd:ft?Qt:void 0,onMouseMove:ot},Fn,dt),me.createElement(Ae,{prefixCls:ht.prefixCls,level:Gt,isStart:mt,isEnd:Ze}),Ht,yt(),Kt,$t)};Ye.isTreeNode=1;var ct=Ye},30699:function(bn,Wt,z){"use strict";z.d(Wt,{k:function(){return he},y:function(){return de}});var y=z(59301),he=y.createContext(null),de=y.createContext({})},3741:function(bn,Wt,z){"use strict";z.d(Wt,{OF:function(){return it.Z},y6:function(){return Se.y},ZP:function(){return te}});var y=z(54476),he=z(76190),de=z(33885),$e=z(94480),pe=z(67732),me=z(83652),ve=z(31226),Me=z(42403),ge=z(158),se=z(20068),_e=z(92310),Ae=z.n(_e),tt=z(10228),je=z(26112),Te=z(48736),Ce=z(59301),Se=z(30699),Pe=function(ce){var ne=ce.dropPosition,le=ce.dropLevelOffset,Ie=ce.indent,bt={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(ne){case-1:bt.top=0,bt.left=-le*Ie;break;case 1:bt.bottom=0,bt.left=-le*Ie;break;case 0:bt.bottom=0,bt.left=Ie;break}return Ce.createElement("div",{style:bt})},Ye=Pe;function ct(ie){if(ie==null)throw new TypeError("Cannot destructure "+ie)}var Be=z(42978),Oe=z(75931),Re=z(34280),Ke=z(48911),vt=z(77900),it=z(639);function Qe(ie,ce){var ne=Ce.useState(!1),le=(0,Be.Z)(ne,2),Ie=le[0],bt=le[1];(0,Re.Z)(function(){if(Ie)return ie(),function(){ce()}},[Ie]),(0,Re.Z)(function(){return bt(!0),function(){bt(!1)}},[])}var ut=Qe,be=z(34061),et=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Ne=Ce.forwardRef(function(ie,ce){var ne=ie.className,le=ie.style,Ie=ie.motion,bt=ie.motionNodes,Ue=ie.motionType,He=ie.onMotionStart,at=ie.onMotionEnd,ft=ie.active,Pt=ie.treeNodeRequiredProps,Le=(0,Oe.Z)(ie,et),We=Ce.useState(!0),Nt=(0,Be.Z)(We,2),Qt=Nt[0],un=Nt[1],rn=Ce.useContext(Se.k),Rt=rn.prefixCls,ln=bt&&Ue!=="hide";(0,Re.Z)(function(){bt&&ln!==Qt&&un(ln)},[bt]);var Ht=function(){bt&&He()},ze=Ce.useRef(!1),yt=function(){bt&&!ze.current&&(ze.current=!0,at())};ut(Ht,yt);var Kt=function(Ve){ln===Ve&&yt()};return bt?Ce.createElement(vt.default,(0,y.Z)({ref:ce,visible:Qt},Ie,{motionAppear:Ue==="show",onVisibleChanged:Kt}),function(tn,Ve){var Ct=tn.className,$t=tn.style;return Ce.createElement("div",{ref:Ve,className:Ae()("".concat(Rt,"-treenode-motion"),Ct),style:$t},bt.map(function(dt){var Ot=Object.assign({},(ct(dt.data),dt.data)),Gt=dt.title,mn=dt.key,An=dt.isStart,hn=dt.isEnd;delete Ot.children;var Fn=(0,be.H8)(mn,Pt);return Ce.createElement(it.Z,(0,y.Z)({},Ot,Fn,{title:Gt,active:ft,data:dt.data,key:mn,isStart:An,isEnd:hn}))}))}):Ce.createElement(it.Z,(0,y.Z)({domRef:ce,className:ne,style:le},Le,{active:ft}))}),ue=Ne;function mt(){var ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],ne=ie.length,le=ce.length;if(Math.abs(ne-le)!==1)return{add:!1,key:null};function Ie(bt,Ue){var He=new Map;bt.forEach(function(ft){He.set(ft,!0)});var at=Ue.filter(function(ft){return!He.has(ft)});return at.length===1?at[0]:null}return ne<le?{add:!0,key:Ie(ie,ce)}:{add:!1,key:Ie(ce,ie)}}function Ze(ie,ce,ne){var le=ie.findIndex(function(He){return He.key===ne}),Ie=ie[le+1],bt=ce.findIndex(function(He){return He.key===ne});if(Ie){var Ue=ce.findIndex(function(He){return He.key===Ie.key});return ce.slice(bt+1,Ue)}return ce.slice(bt+1)}var nt=["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"],Mt={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Fe=function(){},ye="RC_TREE_MOTION_".concat(Math.random()),Bt={key:ye},jt={key:ye,level:0,index:0,pos:"0",node:Bt,nodes:[Bt]},Lt={parent:null,children:[],pos:jt.pos,data:Bt,title:null,key:ye,isStart:[],isEnd:[]};function Ee(ie,ce,ne,le){return ce===!1||!ne?ie:ie.slice(0,Math.ceil(ne/le)+1)}function ot(ie){var ce=ie.key,ne=ie.pos;return(0,be.km)(ce,ne)}function qe(ie){for(var ce=String(ie.data.key),ne=ie;ne.parent;)ne=ne.parent,ce="".concat(ne.data.key," > ").concat(ce);return ce}var zt=Ce.forwardRef(function(ie,ce){var ne=ie.prefixCls,le=ie.data,Ie=ie.selectable,bt=ie.checkable,Ue=ie.expandedKeys,He=ie.selectedKeys,at=ie.checkedKeys,ft=ie.loadedKeys,Pt=ie.loadingKeys,Le=ie.halfCheckedKeys,We=ie.keyEntities,Nt=ie.disabled,Qt=ie.dragging,un=ie.dragOverNodeKey,rn=ie.dropPosition,Rt=ie.motion,ln=ie.height,Ht=ie.itemHeight,ze=ie.virtual,yt=ie.scrollWidth,Kt=ie.focusable,tn=ie.activeItem,Ve=ie.focused,Ct=ie.tabIndex,$t=ie.onKeyDown,dt=ie.onFocus,Ot=ie.onBlur,Gt=ie.onActiveChange,mn=ie.onListChangeStart,An=ie.onListChangeEnd,hn=(0,Oe.Z)(ie,nt),Fn=Ce.useRef(null),Ft=Ce.useRef(null);Ce.useImperativeHandle(ce,function(){return{scrollTo:function(Rn){Fn.current.scrollTo(Rn)},getIndentWidth:function(){return Ft.current.offsetWidth}}});var Tt=Ce.useState(Ue),Ut=(0,Be.Z)(Tt,2),an=Ut[0],Xt=Ut[1],yn=Ce.useState(le),sn=(0,Be.Z)(yn,2),wn=sn[0],Vn=sn[1],Mn=Ce.useState(le),$n=(0,Be.Z)(Mn,2),Wn=$n[0],Hn=$n[1],ur=Ce.useState([]),rr=(0,Be.Z)(ur,2),dn=rr[0],xn=rr[1],jn=Ce.useState(null),zn=(0,Be.Z)(jn,2),xt=zn[0],_t=zn[1],Je=Ce.useRef(le);Je.current=le;function Dt(){var Jt=Je.current;Vn(Jt),Hn(Jt),xn([]),_t(null),An()}(0,Re.Z)(function(){Xt(Ue);var Jt=mt(an,Ue);if(Jt.key!==null)if(Jt.add){var Rn=wn.findIndex(function(fn){var Bn=fn.key;return Bn===Jt.key}),Zn=Ee(Ze(wn,le,Jt.key),ze,ln,Ht),pt=wn.slice();pt.splice(Rn+1,0,Lt),Hn(pt),xn(Zn),_t("show")}else{var Et=le.findIndex(function(fn){var Bn=fn.key;return Bn===Jt.key}),St=Ee(Ze(le,wn,Jt.key),ze,ln,Ht),It=le.slice();It.splice(Et+1,0,Lt),Hn(It),xn(St),_t("hide")}else wn!==le&&(Vn(le),Hn(le))},[Ue,le]),Ce.useEffect(function(){Qt||Dt()},[Qt]);var Ge=Rt?Wn:le,At={expandedKeys:Ue,selectedKeys:He,loadedKeys:ft,loadingKeys:Pt,checkedKeys:at,halfCheckedKeys:Le,dragOverNodeKey:un,dropPosition:rn,keyEntities:We};return Ce.createElement(Ce.Fragment,null,Ve&&tn&&Ce.createElement("span",{style:Mt,"aria-live":"assertive"},qe(tn)),Ce.createElement("div",null,Ce.createElement("input",{style:Mt,disabled:Kt===!1||Nt,tabIndex:Kt!==!1?Ct:null,onKeyDown:$t,onFocus:dt,onBlur:Ot,value:"",onChange:Fe,"aria-label":"for screen reader"})),Ce.createElement("div",{className:"".concat(ne,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},Ce.createElement("div",{className:"".concat(ne,"-indent")},Ce.createElement("div",{ref:Ft,className:"".concat(ne,"-indent-unit")}))),Ce.createElement(Ke.Z,(0,y.Z)({},hn,{data:Ge,itemKey:ot,height:ln,fullHeight:!1,virtual:ze,itemHeight:Ht,scrollWidth:yt,prefixCls:"".concat(ne,"-list"),ref:Fn,role:"tree",onVisibleChange:function(Rn){Rn.every(function(Zn){return ot(Zn)!==ye})&&Dt()}}),function(Jt){var Rn=Jt.pos,Zn=Object.assign({},(ct(Jt.data),Jt.data)),pt=Jt.title,Et=Jt.key,St=Jt.isStart,It=Jt.isEnd,fn=(0,be.km)(Et,Rn);delete Zn.key,delete Zn.children;var Bn=(0,be.H8)(fn,At);return Ce.createElement(ue,(0,y.Z)({},Zn,Bn,{title:pt,active:!!tn&&Et===tn.key,pos:Rn,data:Jt.data,isStart:St,isEnd:It,motion:Rt,motionNodes:Et===ye?dn:null,motionType:xt,onMotionStart:mn,onMotionEnd:Dt,treeNodeRequiredProps:At,onMouseMove:function(){Gt(null)}}))}))}),ht=zt,lt=z(82661),rt=z(34643),on=z(65065),kt=10,ae=function(ie){(0,Me.Z)(ne,ie);var ce=(0,ge.Z)(ne);function ne(){var le;(0,pe.Z)(this,ne);for(var Ie=arguments.length,bt=new Array(Ie),Ue=0;Ue<Ie;Ue++)bt[Ue]=arguments[Ue];return le=ce.call.apply(ce,[this].concat(bt)),(0,se.Z)((0,ve.Z)(le),"destroyed",!1),(0,se.Z)((0,ve.Z)(le),"delayedDragEnterLogic",void 0),(0,se.Z)((0,ve.Z)(le),"loadingRetryTimes",{}),(0,se.Z)((0,ve.Z)(le),"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,be.w$)()}),(0,se.Z)((0,ve.Z)(le),"dragStartMousePosition",null),(0,se.Z)((0,ve.Z)(le),"dragNodeProps",null),(0,se.Z)((0,ve.Z)(le),"currentMouseOverDroppableNodeKey",null),(0,se.Z)((0,ve.Z)(le),"listRef",Ce.createRef()),(0,se.Z)((0,ve.Z)(le),"onNodeDragStart",function(He,at){var ft=le.state,Pt=ft.expandedKeys,Le=ft.keyEntities,We=le.props.onDragStart,Nt=at.eventKey;le.dragNodeProps=at,le.dragStartMousePosition={x:He.clientX,y:He.clientY};var Qt=(0,lt._5)(Pt,Nt);le.setState({draggingNodeKey:Nt,dragChildrenKeys:(0,lt.wA)(Nt,Le),indent:le.listRef.current.getIndentWidth()}),le.setExpandedKeys(Qt),window.addEventListener("dragend",le.onWindowDragEnd),We==null||We({event:He,node:(0,be.F)(at)})}),(0,se.Z)((0,ve.Z)(le),"onNodeDragEnter",function(He,at){var ft=le.state,Pt=ft.expandedKeys,Le=ft.keyEntities,We=ft.dragChildrenKeys,Nt=ft.flattenNodes,Qt=ft.indent,un=le.props,rn=un.onDragEnter,Rt=un.onExpand,ln=un.allowDrop,Ht=un.direction,ze=at.pos,yt=at.eventKey;if(le.currentMouseOverDroppableNodeKey!==yt&&(le.currentMouseOverDroppableNodeKey=yt),!le.dragNodeProps){le.resetDragState();return}var Kt=(0,lt.OM)(He,le.dragNodeProps,at,Qt,le.dragStartMousePosition,ln,Nt,Le,Pt,Ht),tn=Kt.dropPosition,Ve=Kt.dropLevelOffset,Ct=Kt.dropTargetKey,$t=Kt.dropContainerKey,dt=Kt.dropTargetPos,Ot=Kt.dropAllowed,Gt=Kt.dragOverNodeKey;if(We.includes(Ct)||!Ot){le.resetDragState();return}if(le.delayedDragEnterLogic||(le.delayedDragEnterLogic={}),Object.keys(le.delayedDragEnterLogic).forEach(function(mn){clearTimeout(le.delayedDragEnterLogic[mn])}),le.dragNodeProps.eventKey!==at.eventKey&&(He.persist(),le.delayedDragEnterLogic[ze]=window.setTimeout(function(){if(le.state.draggingNodeKey!==null){var mn=(0,$e.Z)(Pt),An=(0,on.Z)(Le,at.eventKey);An&&(An.children||[]).length&&(mn=(0,lt.L0)(Pt,at.eventKey)),le.props.hasOwnProperty("expandedKeys")||le.setExpandedKeys(mn),Rt==null||Rt(mn,{node:(0,be.F)(at),expanded:!0,nativeEvent:He.nativeEvent})}},800)),le.dragNodeProps.eventKey===Ct&&Ve===0){le.resetDragState();return}le.setState({dragOverNodeKey:Gt,dropPosition:tn,dropLevelOffset:Ve,dropTargetKey:Ct,dropContainerKey:$t,dropTargetPos:dt,dropAllowed:Ot}),rn==null||rn({event:He,node:(0,be.F)(at),expandedKeys:Pt})}),(0,se.Z)((0,ve.Z)(le),"onNodeDragOver",function(He,at){var ft=le.state,Pt=ft.dragChildrenKeys,Le=ft.flattenNodes,We=ft.keyEntities,Nt=ft.expandedKeys,Qt=ft.indent,un=le.props,rn=un.onDragOver,Rt=un.allowDrop,ln=un.direction;if(le.dragNodeProps){var Ht=(0,lt.OM)(He,le.dragNodeProps,at,Qt,le.dragStartMousePosition,Rt,Le,We,Nt,ln),ze=Ht.dropPosition,yt=Ht.dropLevelOffset,Kt=Ht.dropTargetKey,tn=Ht.dropContainerKey,Ve=Ht.dropTargetPos,Ct=Ht.dropAllowed,$t=Ht.dragOverNodeKey;Pt.includes(Kt)||!Ct||(le.dragNodeProps.eventKey===Kt&&yt===0?le.state.dropPosition===null&&le.state.dropLevelOffset===null&&le.state.dropTargetKey===null&&le.state.dropContainerKey===null&&le.state.dropTargetPos===null&&le.state.dropAllowed===!1&&le.state.dragOverNodeKey===null||le.resetDragState():ze===le.state.dropPosition&&yt===le.state.dropLevelOffset&&Kt===le.state.dropTargetKey&&tn===le.state.dropContainerKey&&Ve===le.state.dropTargetPos&&Ct===le.state.dropAllowed&&$t===le.state.dragOverNodeKey||le.setState({dropPosition:ze,dropLevelOffset:yt,dropTargetKey:Kt,dropContainerKey:tn,dropTargetPos:Ve,dropAllowed:Ct,dragOverNodeKey:$t}),rn==null||rn({event:He,node:(0,be.F)(at)}))}}),(0,se.Z)((0,ve.Z)(le),"onNodeDragLeave",function(He,at){le.currentMouseOverDroppableNodeKey===at.eventKey&&!He.currentTarget.contains(He.relatedTarget)&&(le.resetDragState(),le.currentMouseOverDroppableNodeKey=null);var ft=le.props.onDragLeave;ft==null||ft({event:He,node:(0,be.F)(at)})}),(0,se.Z)((0,ve.Z)(le),"onWindowDragEnd",function(He){le.onNodeDragEnd(He,null,!0),window.removeEventListener("dragend",le.onWindowDragEnd)}),(0,se.Z)((0,ve.Z)(le),"onNodeDragEnd",function(He,at){var ft=le.props.onDragEnd;le.setState({dragOverNodeKey:null}),le.cleanDragState(),ft==null||ft({event:He,node:(0,be.F)(at)}),le.dragNodeProps=null,window.removeEventListener("dragend",le.onWindowDragEnd)}),(0,se.Z)((0,ve.Z)(le),"onNodeDrop",function(He,at){var ft,Pt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Le=le.state,We=Le.dragChildrenKeys,Nt=Le.dropPosition,Qt=Le.dropTargetKey,un=Le.dropTargetPos,rn=Le.dropAllowed;if(rn){var Rt=le.props.onDrop;if(le.setState({dragOverNodeKey:null}),le.cleanDragState(),Qt!==null){var ln=(0,de.Z)((0,de.Z)({},(0,be.H8)(Qt,le.getTreeNodeRequiredProps())),{},{active:((ft=le.getActiveItem())===null||ft===void 0?void 0:ft.key)===Qt,data:(0,on.Z)(le.state.keyEntities,Qt).node}),Ht=We.includes(Qt);(0,Te.ZP)(!Ht,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var ze=(0,lt.yx)(un),yt={event:He,node:(0,be.F)(ln),dragNode:le.dragNodeProps?(0,be.F)(le.dragNodeProps):null,dragNodesKeys:[le.dragNodeProps.eventKey].concat(We),dropToGap:Nt!==0,dropPosition:Nt+Number(ze[ze.length-1])};Pt||Rt==null||Rt(yt),le.dragNodeProps=null}}}),(0,se.Z)((0,ve.Z)(le),"cleanDragState",function(){var He=le.state.draggingNodeKey;He!==null&&le.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),le.dragStartMousePosition=null,le.currentMouseOverDroppableNodeKey=null}),(0,se.Z)((0,ve.Z)(le),"triggerExpandActionExpand",function(He,at){var ft=le.state,Pt=ft.expandedKeys,Le=ft.flattenNodes,We=at.expanded,Nt=at.key,Qt=at.isLeaf;if(!(Qt||He.shiftKey||He.metaKey||He.ctrlKey)){var un=Le.filter(function(Rt){return Rt.key===Nt})[0],rn=(0,be.F)((0,de.Z)((0,de.Z)({},(0,be.H8)(Nt,le.getTreeNodeRequiredProps())),{},{data:un.data}));le.setExpandedKeys(We?(0,lt._5)(Pt,Nt):(0,lt.L0)(Pt,Nt)),le.onNodeExpand(He,rn)}}),(0,se.Z)((0,ve.Z)(le),"onNodeClick",function(He,at){var ft=le.props,Pt=ft.onClick,Le=ft.expandAction;Le==="click"&&le.triggerExpandActionExpand(He,at),Pt==null||Pt(He,at)}),(0,se.Z)((0,ve.Z)(le),"onNodeDoubleClick",function(He,at){var ft=le.props,Pt=ft.onDoubleClick,Le=ft.expandAction;Le==="doubleClick"&&le.triggerExpandActionExpand(He,at),Pt==null||Pt(He,at)}),(0,se.Z)((0,ve.Z)(le),"onNodeSelect",function(He,at){var ft=le.state.selectedKeys,Pt=le.state,Le=Pt.keyEntities,We=Pt.fieldNames,Nt=le.props,Qt=Nt.onSelect,un=Nt.multiple,rn=at.selected,Rt=at[We.key],ln=!rn;ln?un?ft=(0,lt.L0)(ft,Rt):ft=[Rt]:ft=(0,lt._5)(ft,Rt);var Ht=ft.map(function(ze){var yt=(0,on.Z)(Le,ze);return yt?yt.node:null}).filter(Boolean);le.setUncontrolledState({selectedKeys:ft}),Qt==null||Qt(ft,{event:"select",selected:ln,node:at,selectedNodes:Ht,nativeEvent:He.nativeEvent})}),(0,se.Z)((0,ve.Z)(le),"onNodeCheck",function(He,at,ft){var Pt=le.state,Le=Pt.keyEntities,We=Pt.checkedKeys,Nt=Pt.halfCheckedKeys,Qt=le.props,un=Qt.checkStrictly,rn=Qt.onCheck,Rt=at.key,ln,Ht={event:"check",node:at,checked:ft,nativeEvent:He.nativeEvent};if(un){var ze=ft?(0,lt.L0)(We,Rt):(0,lt._5)(We,Rt),yt=(0,lt._5)(Nt,Rt);ln={checked:ze,halfChecked:yt},Ht.checkedNodes=ze.map(function(dt){return(0,on.Z)(Le,dt)}).filter(Boolean).map(function(dt){return dt.node}),le.setUncontrolledState({checkedKeys:ze})}else{var Kt=(0,rt.S)([].concat((0,$e.Z)(We),[Rt]),!0,Le),tn=Kt.checkedKeys,Ve=Kt.halfCheckedKeys;if(!ft){var Ct=new Set(tn);Ct.delete(Rt);var $t=(0,rt.S)(Array.from(Ct),{checked:!1,halfCheckedKeys:Ve},Le);tn=$t.checkedKeys,Ve=$t.halfCheckedKeys}ln=tn,Ht.checkedNodes=[],Ht.checkedNodesPositions=[],Ht.halfCheckedKeys=Ve,tn.forEach(function(dt){var Ot=(0,on.Z)(Le,dt);if(Ot){var Gt=Ot.node,mn=Ot.pos;Ht.checkedNodes.push(Gt),Ht.checkedNodesPositions.push({node:Gt,pos:mn})}}),le.setUncontrolledState({checkedKeys:tn},!1,{halfCheckedKeys:Ve})}rn==null||rn(ln,Ht)}),(0,se.Z)((0,ve.Z)(le),"onNodeLoad",function(He){var at,ft=He.key,Pt=le.state.keyEntities,Le=(0,on.Z)(Pt,ft);if(!(Le!=null&&(at=Le.children)!==null&&at!==void 0&&at.length)){var We=new Promise(function(Nt,Qt){le.setState(function(un){var rn=un.loadedKeys,Rt=rn===void 0?[]:rn,ln=un.loadingKeys,Ht=ln===void 0?[]:ln,ze=le.props,yt=ze.loadData,Kt=ze.onLoad;if(!yt||Rt.includes(ft)||Ht.includes(ft))return null;var tn=yt(He);return tn.then(function(){var Ve=le.state.loadedKeys,Ct=(0,lt.L0)(Ve,ft);Kt==null||Kt(Ct,{event:"load",node:He}),le.setUncontrolledState({loadedKeys:Ct}),le.setState(function($t){return{loadingKeys:(0,lt._5)($t.loadingKeys,ft)}}),Nt()}).catch(function(Ve){if(le.setState(function($t){return{loadingKeys:(0,lt._5)($t.loadingKeys,ft)}}),le.loadingRetryTimes[ft]=(le.loadingRetryTimes[ft]||0)+1,le.loadingRetryTimes[ft]>=kt){var Ct=le.state.loadedKeys;(0,Te.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),le.setUncontrolledState({loadedKeys:(0,lt.L0)(Ct,ft)}),Nt()}Qt(Ve)}),{loadingKeys:(0,lt.L0)(Ht,ft)}})});return We.catch(function(){}),We}}),(0,se.Z)((0,ve.Z)(le),"onNodeMouseEnter",function(He,at){var ft=le.props.onMouseEnter;ft==null||ft({event:He,node:at})}),(0,se.Z)((0,ve.Z)(le),"onNodeMouseLeave",function(He,at){var ft=le.props.onMouseLeave;ft==null||ft({event:He,node:at})}),(0,se.Z)((0,ve.Z)(le),"onNodeContextMenu",function(He,at){var ft=le.props.onRightClick;ft&&(He.preventDefault(),ft({event:He,node:at}))}),(0,se.Z)((0,ve.Z)(le),"onFocus",function(){var He=le.props.onFocus;le.setState({focused:!0});for(var at=arguments.length,ft=new Array(at),Pt=0;Pt<at;Pt++)ft[Pt]=arguments[Pt];He==null||He.apply(void 0,ft)}),(0,se.Z)((0,ve.Z)(le),"onBlur",function(){var He=le.props.onBlur;le.setState({focused:!1}),le.onActiveChange(null);for(var at=arguments.length,ft=new Array(at),Pt=0;Pt<at;Pt++)ft[Pt]=arguments[Pt];He==null||He.apply(void 0,ft)}),(0,se.Z)((0,ve.Z)(le),"getTreeNodeRequiredProps",function(){var He=le.state,at=He.expandedKeys,ft=He.selectedKeys,Pt=He.loadedKeys,Le=He.loadingKeys,We=He.checkedKeys,Nt=He.halfCheckedKeys,Qt=He.dragOverNodeKey,un=He.dropPosition,rn=He.keyEntities;return{expandedKeys:at||[],selectedKeys:ft||[],loadedKeys:Pt||[],loadingKeys:Le||[],checkedKeys:We||[],halfCheckedKeys:Nt||[],dragOverNodeKey:Qt,dropPosition:un,keyEntities:rn}}),(0,se.Z)((0,ve.Z)(le),"setExpandedKeys",function(He){var at=le.state,ft=at.treeData,Pt=at.fieldNames,Le=(0,be.oH)(ft,He,Pt);le.setUncontrolledState({expandedKeys:He,flattenNodes:Le},!0)}),(0,se.Z)((0,ve.Z)(le),"onNodeExpand",function(He,at){var ft=le.state.expandedKeys,Pt=le.state,Le=Pt.listChanging,We=Pt.fieldNames,Nt=le.props,Qt=Nt.onExpand,un=Nt.loadData,rn=at.expanded,Rt=at[We.key];if(!Le){var ln=ft.includes(Rt),Ht=!rn;if((0,Te.ZP)(rn&&ln||!rn&&!ln,"Expand state not sync with index check"),ft=Ht?(0,lt.L0)(ft,Rt):(0,lt._5)(ft,Rt),le.setExpandedKeys(ft),Qt==null||Qt(ft,{node:at,expanded:Ht,nativeEvent:He.nativeEvent}),Ht&&un){var ze=le.onNodeLoad(at);ze&&ze.then(function(){var yt=(0,be.oH)(le.state.treeData,ft,We);le.setUncontrolledState({flattenNodes:yt})}).catch(function(){var yt=le.state.expandedKeys,Kt=(0,lt._5)(yt,Rt);le.setExpandedKeys(Kt)})}}}),(0,se.Z)((0,ve.Z)(le),"onListChangeStart",function(){le.setUncontrolledState({listChanging:!0})}),(0,se.Z)((0,ve.Z)(le),"onListChangeEnd",function(){setTimeout(function(){le.setUncontrolledState({listChanging:!1})})}),(0,se.Z)((0,ve.Z)(le),"onActiveChange",function(He){var at=le.state.activeKey,ft=le.props,Pt=ft.onActiveChange,Le=ft.itemScrollOffset,We=Le===void 0?0:Le;at!==He&&(le.setState({activeKey:He}),He!==null&&le.scrollTo({key:He,offset:We}),Pt==null||Pt(He))}),(0,se.Z)((0,ve.Z)(le),"getActiveItem",function(){var He=le.state,at=He.activeKey,ft=He.flattenNodes;return at===null?null:ft.find(function(Pt){var Le=Pt.key;return Le===at})||null}),(0,se.Z)((0,ve.Z)(le),"offsetActiveKey",function(He){var at=le.state,ft=at.flattenNodes,Pt=at.activeKey,Le=ft.findIndex(function(Qt){var un=Qt.key;return un===Pt});Le===-1&&He<0&&(Le=ft.length),Le=(Le+He+ft.length)%ft.length;var We=ft[Le];if(We){var Nt=We.key;le.onActiveChange(Nt)}else le.onActiveChange(null)}),(0,se.Z)((0,ve.Z)(le),"onKeyDown",function(He){var at=le.state,ft=at.activeKey,Pt=at.expandedKeys,Le=at.checkedKeys,We=at.fieldNames,Nt=le.props,Qt=Nt.onKeyDown,un=Nt.checkable,rn=Nt.selectable;switch(He.which){case tt.Z.UP:{le.offsetActiveKey(-1),He.preventDefault();break}case tt.Z.DOWN:{le.offsetActiveKey(1),He.preventDefault();break}}var Rt=le.getActiveItem();if(Rt&&Rt.data){var ln=le.getTreeNodeRequiredProps(),Ht=Rt.data.isLeaf===!1||!!(Rt.data[We.children]||[]).length,ze=(0,be.F)((0,de.Z)((0,de.Z)({},(0,be.H8)(ft,ln)),{},{data:Rt.data,active:!0}));switch(He.which){case tt.Z.LEFT:{Ht&&Pt.includes(ft)?le.onNodeExpand({},ze):Rt.parent&&le.onActiveChange(Rt.parent.key),He.preventDefault();break}case tt.Z.RIGHT:{Ht&&!Pt.includes(ft)?le.onNodeExpand({},ze):Rt.children&&Rt.children.length&&le.onActiveChange(Rt.children[0].key),He.preventDefault();break}case tt.Z.ENTER:case tt.Z.SPACE:{un&&!ze.disabled&&ze.checkable!==!1&&!ze.disableCheckbox?le.onNodeCheck({},ze,!Le.includes(ft)):!un&&rn&&!ze.disabled&&ze.selectable!==!1&&le.onNodeSelect({},ze);break}}}Qt==null||Qt(He)}),(0,se.Z)((0,ve.Z)(le),"setUncontrolledState",function(He){var at=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ft=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!le.destroyed){var Pt=!1,Le=!0,We={};Object.keys(He).forEach(function(Nt){if(le.props.hasOwnProperty(Nt)){Le=!1;return}Pt=!0,We[Nt]=He[Nt]}),Pt&&(!at||Le)&&le.setState((0,de.Z)((0,de.Z)({},We),ft))}}),(0,se.Z)((0,ve.Z)(le),"scrollTo",function(He){le.listRef.current.scrollTo(He)}),le}return(0,me.Z)(ne,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var Ie=this.props,bt=Ie.activeKey,Ue=Ie.itemScrollOffset,He=Ue===void 0?0:Ue;bt!==void 0&&bt!==this.state.activeKey&&(this.setState({activeKey:bt}),bt!==null&&this.scrollTo({key:bt,offset:He}))}},{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 Ie=this.state,bt=Ie.focused,Ue=Ie.flattenNodes,He=Ie.keyEntities,at=Ie.draggingNodeKey,ft=Ie.activeKey,Pt=Ie.dropLevelOffset,Le=Ie.dropContainerKey,We=Ie.dropTargetKey,Nt=Ie.dropPosition,Qt=Ie.dragOverNodeKey,un=Ie.indent,rn=this.props,Rt=rn.prefixCls,ln=rn.className,Ht=rn.style,ze=rn.showLine,yt=rn.focusable,Kt=rn.tabIndex,tn=Kt===void 0?0:Kt,Ve=rn.selectable,Ct=rn.showIcon,$t=rn.icon,dt=rn.switcherIcon,Ot=rn.draggable,Gt=rn.checkable,mn=rn.checkStrictly,An=rn.disabled,hn=rn.motion,Fn=rn.loadData,Ft=rn.filterTreeNode,Tt=rn.height,Ut=rn.itemHeight,an=rn.scrollWidth,Xt=rn.virtual,yn=rn.titleRender,sn=rn.dropIndicatorRender,wn=rn.onContextMenu,Vn=rn.onScroll,Mn=rn.direction,$n=rn.rootClassName,Wn=rn.rootStyle,Hn=(0,je.Z)(this.props,{aria:!0,data:!0}),ur;Ot&&((0,he.Z)(Ot)==="object"?ur=Ot:typeof Ot=="function"?ur={nodeDraggable:Ot}:ur={});var rr={prefixCls:Rt,selectable:Ve,showIcon:Ct,icon:$t,switcherIcon:dt,draggable:ur,draggingNodeKey:at,checkable:Gt,checkStrictly:mn,disabled:An,keyEntities:He,dropLevelOffset:Pt,dropContainerKey:Le,dropTargetKey:We,dropPosition:Nt,dragOverNodeKey:Qt,indent:un,direction:Mn,dropIndicatorRender:sn,loadData:Fn,filterTreeNode:Ft,titleRender:yn,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 Ce.createElement(Se.k.Provider,{value:rr},Ce.createElement("div",{className:Ae()(Rt,ln,$n,(0,se.Z)((0,se.Z)((0,se.Z)({},"".concat(Rt,"-show-line"),ze),"".concat(Rt,"-focused"),bt),"".concat(Rt,"-active-focused"),ft!==null)),style:Wn},Ce.createElement(ht,(0,y.Z)({ref:this.listRef,prefixCls:Rt,style:Ht,data:Ue,disabled:An,selectable:Ve,checkable:!!Gt,motion:hn,dragging:at!==null,height:Tt,itemHeight:Ut,virtual:Xt,focusable:yt,focused:bt,tabIndex:tn,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:wn,onScroll:Vn,scrollWidth:an},this.getTreeNodeRequiredProps(),Hn))))}}],[{key:"getDerivedStateFromProps",value:function(Ie,bt){var Ue=bt.prevProps,He={prevProps:Ie};function at(tn){return!Ue&&Ie.hasOwnProperty(tn)||Ue&&Ue[tn]!==Ie[tn]}var ft,Pt=bt.fieldNames;if(at("fieldNames")&&(Pt=(0,be.w$)(Ie.fieldNames),He.fieldNames=Pt),at("treeData")?ft=Ie.treeData:at("children")&&((0,Te.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),ft=(0,be.zn)(Ie.children)),ft){He.treeData=ft;var Le=(0,be.I8)(ft,{fieldNames:Pt});He.keyEntities=(0,de.Z)((0,se.Z)({},ye,jt),Le.keyEntities)}var We=He.keyEntities||bt.keyEntities;if(at("expandedKeys")||Ue&&at("autoExpandParent"))He.expandedKeys=Ie.autoExpandParent||!Ue&&Ie.defaultExpandParent?(0,lt.r7)(Ie.expandedKeys,We):Ie.expandedKeys;else if(!Ue&&Ie.defaultExpandAll){var Nt=(0,de.Z)({},We);delete Nt[ye];var Qt=[];Object.keys(Nt).forEach(function(tn){var Ve=Nt[tn];Ve.children&&Ve.children.length&&Qt.push(Ve.key)}),He.expandedKeys=Qt}else!Ue&&Ie.defaultExpandedKeys&&(He.expandedKeys=Ie.autoExpandParent||Ie.defaultExpandParent?(0,lt.r7)(Ie.defaultExpandedKeys,We):Ie.defaultExpandedKeys);if(He.expandedKeys||delete He.expandedKeys,ft||He.expandedKeys){var un=(0,be.oH)(ft||bt.treeData,He.expandedKeys||bt.expandedKeys,Pt);He.flattenNodes=un}if(Ie.selectable&&(at("selectedKeys")?He.selectedKeys=(0,lt.BT)(Ie.selectedKeys,Ie):!Ue&&Ie.defaultSelectedKeys&&(He.selectedKeys=(0,lt.BT)(Ie.defaultSelectedKeys,Ie))),Ie.checkable){var rn;if(at("checkedKeys")?rn=(0,lt.E6)(Ie.checkedKeys)||{}:!Ue&&Ie.defaultCheckedKeys?rn=(0,lt.E6)(Ie.defaultCheckedKeys)||{}:ft&&(rn=(0,lt.E6)(Ie.checkedKeys)||{checkedKeys:bt.checkedKeys,halfCheckedKeys:bt.halfCheckedKeys}),rn){var Rt=rn,ln=Rt.checkedKeys,Ht=ln===void 0?[]:ln,ze=Rt.halfCheckedKeys,yt=ze===void 0?[]:ze;if(!Ie.checkStrictly){var Kt=(0,rt.S)(Ht,!0,We);Ht=Kt.checkedKeys,yt=Kt.halfCheckedKeys}He.checkedKeys=Ht,He.halfCheckedKeys=yt}}return at("loadedKeys")&&(He.loadedKeys=Ie.loadedKeys),He}}]),ne}(Ce.Component);(0,se.Z)(ae,"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:Ye,allowDrop:function(){return!0},expandAction:!1}),(0,se.Z)(ae,"TreeNode",it.Z);var re=ae,te=re},82661:function(bn,Wt,z){"use strict";z.d(Wt,{BT:function(){return Ce},E6:function(){return Ye},L0:function(){return se},OM:function(){return Te},_5:function(){return ge},r7:function(){return ct},wA:function(){return Ae},yx:function(){return _e}});var y=z(94480),he=z(76190),de=z(48736),$e=z(59301),pe=z(639),me=z(65065),ve=z(34061),Me=null;function ge(Be,Oe){if(!Be)return[];var Re=Be.slice(),Ke=Re.indexOf(Oe);return Ke>=0&&Re.splice(Ke,1),Re}function se(Be,Oe){var Re=(Be||[]).slice();return Re.indexOf(Oe)===-1&&Re.push(Oe),Re}function _e(Be){return Be.split("-")}function Ae(Be,Oe){var Re=[],Ke=(0,me.Z)(Oe,Be);function vt(){var it=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];it.forEach(function(Qe){var ut=Qe.key,be=Qe.children;Re.push(ut),vt(be)})}return vt(Ke.children),Re}function tt(Be){if(Be.parent){var Oe=_e(Be.pos);return Number(Oe[Oe.length-1])===Be.parent.children.length-1}return!1}function je(Be){var Oe=_e(Be.pos);return Number(Oe[Oe.length-1])===0}function Te(Be,Oe,Re,Ke,vt,it,Qe,ut,be,et){var Ne,ue=Be.clientX,mt=Be.clientY,Ze=Be.target.getBoundingClientRect(),nt=Ze.top,Mt=Ze.height,Fe=(et==="rtl"?-1:1)*(((vt==null?void 0:vt.x)||0)-ue),ye=(Fe-12)/Ke,Bt=be.filter(function(te){var ie;return(ie=ut[te])===null||ie===void 0||(ie=ie.children)===null||ie===void 0?void 0:ie.length}),jt=(0,me.Z)(ut,Re.eventKey);if(mt<nt+Mt/2){var Lt=Qe.findIndex(function(te){return te.key===jt.key}),Ee=Lt<=0?0:Lt-1,ot=Qe[Ee].key;jt=(0,me.Z)(ut,ot)}var qe=jt.key,zt=jt,ht=jt.key,lt=0,rt=0;if(!Bt.includes(qe))for(var on=0;on<ye&&tt(jt);on+=1)jt=jt.parent,rt+=1;var kt=Oe.data,ae=jt.node,re=!0;return je(jt)&&jt.level===0&&mt<nt+Mt/2&&it({dragNode:kt,dropNode:ae,dropPosition:-1})&&jt.key===Re.eventKey?lt=-1:(zt.children||[]).length&&Bt.includes(ht)?it({dragNode:kt,dropNode:ae,dropPosition:0})?lt=0:re=!1:rt===0?ye>-1.5?it({dragNode:kt,dropNode:ae,dropPosition:1})?lt=1:re=!1:it({dragNode:kt,dropNode:ae,dropPosition:0})?lt=0:it({dragNode:kt,dropNode:ae,dropPosition:1})?lt=1:re=!1:it({dragNode:kt,dropNode:ae,dropPosition:1})?lt=1:re=!1,{dropPosition:lt,dropLevelOffset:rt,dropTargetKey:jt.key,dropTargetPos:jt.pos,dragOverNodeKey:ht,dropContainerKey:lt===0?null:((Ne=jt.parent)===null||Ne===void 0?void 0:Ne.key)||null,dropAllowed:re}}function Ce(Be,Oe){if(Be){var Re=Oe.multiple;return Re?Be.slice():Be.length?[Be[0]]:Be}}var Se=function(Oe){return Oe};function Pe(Be,Oe){if(!Be)return[];var Re=Oe||{},Ke=Re.processProps,vt=Ke===void 0?Se:Ke,it=Array.isArray(Be)?Be:[Be];return it.map(function(Qe){var ut=Qe.children,be=_objectWithoutProperties(Qe,Me),et=Pe(ut,Oe);return React.createElement(TreeNode,_extends({key:be.key},vt(be)),et)})}function Ye(Be){if(!Be)return null;var Oe;if(Array.isArray(Be))Oe={checkedKeys:Be,halfCheckedKeys:void 0};else if((0,he.Z)(Be)==="object")Oe={checkedKeys:Be.checked||void 0,halfCheckedKeys:Be.halfChecked||void 0};else return(0,de.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return Oe}function ct(Be,Oe){var Re=new Set;function Ke(vt){if(!Re.has(vt)){var it=(0,me.Z)(Oe,vt);if(it){Re.add(vt);var Qe=it.parent,ut=it.node;ut.disabled||Qe&&Ke(Qe.key)}}}return(Be||[]).forEach(function(vt){Ke(vt)}),(0,y.Z)(Re)}},34643:function(bn,Wt,z){"use strict";z.d(Wt,{S:function(){return ve}});var y=z(48736),he=z(65065);function de(Me,ge){var se=new Set;return Me.forEach(function(_e){ge.has(_e)||se.add(_e)}),se}function $e(Me){var ge=Me||{},se=ge.disabled,_e=ge.disableCheckbox,Ae=ge.checkable;return!!(se||_e)||Ae===!1}function pe(Me,ge,se,_e){for(var Ae=new Set(Me),tt=new Set,je=0;je<=se;je+=1){var Te=ge.get(je)||new Set;Te.forEach(function(Ye){var ct=Ye.key,Be=Ye.node,Oe=Ye.children,Re=Oe===void 0?[]:Oe;Ae.has(ct)&&!_e(Be)&&Re.filter(function(Ke){return!_e(Ke.node)}).forEach(function(Ke){Ae.add(Ke.key)})})}for(var Ce=new Set,Se=se;Se>=0;Se-=1){var Pe=ge.get(Se)||new Set;Pe.forEach(function(Ye){var ct=Ye.parent,Be=Ye.node;if(!(_e(Be)||!Ye.parent||Ce.has(Ye.parent.key))){if(_e(Ye.parent.node)){Ce.add(ct.key);return}var Oe=!0,Re=!1;(ct.children||[]).filter(function(Ke){return!_e(Ke.node)}).forEach(function(Ke){var vt=Ke.key,it=Ae.has(vt);Oe&&!it&&(Oe=!1),!Re&&(it||tt.has(vt))&&(Re=!0)}),Oe&&Ae.add(ct.key),Re&&tt.add(ct.key),Ce.add(ct.key)}})}return{checkedKeys:Array.from(Ae),halfCheckedKeys:Array.from(de(tt,Ae))}}function me(Me,ge,se,_e,Ae){for(var tt=new Set(Me),je=new Set(ge),Te=0;Te<=_e;Te+=1){var Ce=se.get(Te)||new Set;Ce.forEach(function(ct){var Be=ct.key,Oe=ct.node,Re=ct.children,Ke=Re===void 0?[]:Re;!tt.has(Be)&&!je.has(Be)&&!Ae(Oe)&&Ke.filter(function(vt){return!Ae(vt.node)}).forEach(function(vt){tt.delete(vt.key)})})}je=new Set;for(var Se=new Set,Pe=_e;Pe>=0;Pe-=1){var Ye=se.get(Pe)||new Set;Ye.forEach(function(ct){var Be=ct.parent,Oe=ct.node;if(!(Ae(Oe)||!ct.parent||Se.has(ct.parent.key))){if(Ae(ct.parent.node)){Se.add(Be.key);return}var Re=!0,Ke=!1;(Be.children||[]).filter(function(vt){return!Ae(vt.node)}).forEach(function(vt){var it=vt.key,Qe=tt.has(it);Re&&!Qe&&(Re=!1),!Ke&&(Qe||je.has(it))&&(Ke=!0)}),Re||tt.delete(Be.key),Ke&&je.add(Be.key),Se.add(Be.key)}})}return{checkedKeys:Array.from(tt),halfCheckedKeys:Array.from(de(je,tt))}}function ve(Me,ge,se,_e){var Ae=[],tt;_e?tt=_e:tt=$e;var je=new Set(Me.filter(function(Pe){var Ye=!!(0,he.Z)(se,Pe);return Ye||Ae.push(Pe),Ye})),Te=new Map,Ce=0;Object.keys(se).forEach(function(Pe){var Ye=se[Pe],ct=Ye.level,Be=Te.get(ct);Be||(Be=new Set,Te.set(ct,Be)),Be.add(Ye),Ce=Math.max(Ce,ct)}),(0,y.ZP)(!Ae.length,"Tree missing follow keys: ".concat(Ae.slice(0,100).map(function(Pe){return"'".concat(Pe,"'")}).join(", ")));var Se;return ge===!0?Se=pe(je,Te,Ce,tt):Se=me(je,ge.halfCheckedKeys,Te,Ce,tt),Se}},65065:function(bn,Wt,z){"use strict";z.d(Wt,{Z:function(){return y}});function y(he,de){return he[de]}},34061:function(bn,Wt,z){"use strict";z.d(Wt,{F:function(){return ct},H8:function(){return Ye},I8:function(){return Pe},km:function(){return Ae},oH:function(){return Ce},w$:function(){return tt},zn:function(){return Te}});var y=z(76190),he=z(94480),de=z(33885),$e=z(75931),pe=z(11592),me=z(2738),ve=z(48736),Me=z(65065),ge=["children"];function se(Be,Oe){return"".concat(Be,"-").concat(Oe)}function _e(Be){return Be&&Be.type&&Be.type.isTreeNode}function Ae(Be,Oe){return Be!=null?Be:Oe}function tt(Be){var Oe=Be||{},Re=Oe.title,Ke=Oe._title,vt=Oe.key,it=Oe.children,Qe=Re||"title";return{title:Qe,_title:Ke||[Qe],key:vt||"key",children:it||"children"}}function je(Be,Oe){var Re=new Map;function Ke(vt){var it=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(vt||[]).forEach(function(Qe){var ut=Qe[Oe.key],be=Qe[Oe.children];warning(ut!=null,"Tree node must have a certain key: [".concat(it).concat(ut,"]"));var et=String(ut);warning(!Re.has(et)||ut===null||ut===void 0,"Same 'key' exist in the Tree: ".concat(et)),Re.set(et,!0),Ke(be,"".concat(it).concat(et," > "))})}Ke(Be)}function Te(Be){function Oe(Re){var Ke=(0,pe.Z)(Re);return Ke.map(function(vt){if(!_e(vt))return(0,ve.ZP)(!vt,"Tree/TreeNode can only accept TreeNode as children."),null;var it=vt.key,Qe=vt.props,ut=Qe.children,be=(0,$e.Z)(Qe,ge),et=(0,de.Z)({key:it},be),Ne=Oe(ut);return Ne.length&&(et.children=Ne),et}).filter(function(vt){return vt})}return Oe(Be)}function Ce(Be,Oe,Re){var Ke=tt(Re),vt=Ke._title,it=Ke.key,Qe=Ke.children,ut=new Set(Oe===!0?[]:Oe),be=[];function et(Ne){var ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Ne.map(function(mt,Ze){for(var nt=se(ue?ue.pos:"0",Ze),Mt=Ae(mt[it],nt),Fe,ye=0;ye<vt.length;ye+=1){var Bt=vt[ye];if(mt[Bt]!==void 0){Fe=mt[Bt];break}}var jt=Object.assign((0,me.Z)(mt,[].concat((0,he.Z)(vt),[it,Qe])),{title:Fe,key:Mt,parent:ue,pos:nt,children:null,data:mt,isStart:[].concat((0,he.Z)(ue?ue.isStart:[]),[Ze===0]),isEnd:[].concat((0,he.Z)(ue?ue.isEnd:[]),[Ze===Ne.length-1])});return be.push(jt),Oe===!0||ut.has(Mt)?jt.children=et(mt[Qe]||[],jt):jt.children=[],jt})}return et(Be),be}function Se(Be,Oe,Re){var Ke={};(0,y.Z)(Re)==="object"?Ke=Re:Ke={externalGetKey:Re},Ke=Ke||{};var vt=Ke,it=vt.childrenPropName,Qe=vt.externalGetKey,ut=vt.fieldNames,be=tt(ut),et=be.key,Ne=be.children,ue=it||Ne,mt;Qe?typeof Qe=="string"?mt=function(Mt){return Mt[Qe]}:typeof Qe=="function"&&(mt=function(Mt){return Qe(Mt)}):mt=function(Mt,Fe){return Ae(Mt[et],Fe)};function Ze(nt,Mt,Fe,ye){var Bt=nt?nt[ue]:Be,jt=nt?se(Fe.pos,Mt):"0",Lt=nt?[].concat((0,he.Z)(ye),[nt]):[];if(nt){var Ee=mt(nt,jt),ot={node:nt,index:Mt,pos:jt,key:Ee,parentPos:Fe.node?Fe.pos:null,level:Fe.level+1,nodes:Lt};Oe(ot)}Bt&&Bt.forEach(function(qe,zt){Ze(qe,zt,{node:nt,pos:jt,level:Fe?Fe.level+1:-1},Lt)})}Ze(null)}function Pe(Be){var Oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Re=Oe.initWrapper,Ke=Oe.processEntity,vt=Oe.onProcessFinished,it=Oe.externalGetKey,Qe=Oe.childrenPropName,ut=Oe.fieldNames,be=arguments.length>2?arguments[2]:void 0,et=it||be,Ne={},ue={},mt={posEntities:Ne,keyEntities:ue};return Re&&(mt=Re(mt)||mt),Se(Be,function(Ze){var nt=Ze.node,Mt=Ze.index,Fe=Ze.pos,ye=Ze.key,Bt=Ze.parentPos,jt=Ze.level,Lt=Ze.nodes,Ee={node:nt,nodes:Lt,index:Mt,key:ye,pos:Fe,level:jt},ot=Ae(ye,Fe);Ne[Fe]=Ee,ue[ot]=Ee,Ee.parent=Ne[Bt],Ee.parent&&(Ee.parent.children=Ee.parent.children||[],Ee.parent.children.push(Ee)),Ke&&Ke(Ee,mt)},{externalGetKey:et,childrenPropName:Qe,fieldNames:ut}),vt&&vt(mt),mt}function Ye(Be,Oe){var Re=Oe.expandedKeys,Ke=Oe.selectedKeys,vt=Oe.loadedKeys,it=Oe.loadingKeys,Qe=Oe.checkedKeys,ut=Oe.halfCheckedKeys,be=Oe.dragOverNodeKey,et=Oe.dropPosition,Ne=Oe.keyEntities,ue=(0,Me.Z)(Ne,Be),mt={eventKey:Be,expanded:Re.indexOf(Be)!==-1,selected:Ke.indexOf(Be)!==-1,loaded:vt.indexOf(Be)!==-1,loading:it.indexOf(Be)!==-1,checked:Qe.indexOf(Be)!==-1,halfChecked:ut.indexOf(Be)!==-1,pos:String(ue?ue.pos:""),dragOver:be===Be&&et===0,dragOverGapTop:be===Be&&et===-1,dragOverGapBottom:be===Be&&et===1};return mt}function ct(Be){var Oe=Be.data,Re=Be.expanded,Ke=Be.selected,vt=Be.checked,it=Be.loaded,Qe=Be.loading,ut=Be.halfChecked,be=Be.dragOver,et=Be.dragOverGapTop,Ne=Be.dragOverGapBottom,ue=Be.pos,mt=Be.active,Ze=Be.eventKey,nt=(0,de.Z)((0,de.Z)({},Oe),{},{expanded:Re,selected:Ke,checked:vt,loaded:it,loading:Qe,halfChecked:ut,dragOver:be,dragOverGapTop:et,dragOverGapBottom:Ne,pos:ue,active:mt,key:Ze});return"props"in nt||Object.defineProperty(nt,"props",{get:function(){return(0,ve.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),Be}}),nt}},8224:function(bn,Wt,z){"use strict";z.d(Wt,{Z:function(){return he}});var y=z(4676);function he(de,$e,pe,me){var ve=y.unstable_batchedUpdates?function(ge){y.unstable_batchedUpdates(pe,ge)}:pe;return de!=null&&de.addEventListener&&de.addEventListener($e,ve,me),{remove:function(){de!=null&&de.removeEventListener&&de.removeEventListener($e,ve,me)}}}},24514:function(bn,Wt,z){"use strict";z.d(Wt,{G:function(){return $e}});var y=z(47273),he=function(me){if((0,y.Z)()&&window.document.documentElement){var ve=Array.isArray(me)?me:[me],Me=window.document.documentElement;return ve.some(function(ge){return ge in Me.style})}return!1},de=function(me,ve){if(!he(me))return!1;var Me=document.createElement("div"),ge=Me.style[me];return Me.style[me]=ve,Me.style[me]!==ge};function $e(pe,me){return!Array.isArray(pe)&&me!==void 0?de(pe,me):he(pe)}},48911:function(bn,Wt,z){"use strict";z.d(Wt,{Z:function(){return kt}});var y=z(54476),he=z(76190),de=z(33885),$e=z(20068),pe=z(42978),me=z(75931),ve=z(92310),Me=z.n(ve),ge=z(29301),se=z(70425),_e=z(34280),Ae=z(59301),tt=z(4676),je=Ae.forwardRef(function(ae,re){var te=ae.height,ie=ae.offsetY,ce=ae.offsetX,ne=ae.children,le=ae.prefixCls,Ie=ae.onInnerResize,bt=ae.innerProps,Ue=ae.rtl,He=ae.extra,at={},ft={display:"flex",flexDirection:"column"};return ie!==void 0&&(at={height:te,position:"relative",overflow:"hidden"},ft=(0,de.Z)((0,de.Z)({},ft),{},(0,$e.Z)((0,$e.Z)((0,$e.Z)((0,$e.Z)((0,$e.Z)({transform:"translateY(".concat(ie,"px)")},Ue?"marginRight":"marginLeft",-ce),"position","absolute"),"left",0),"right",0),"top",0))),Ae.createElement("div",{style:at},Ae.createElement(ge.Z,{onResize:function(Le){var We=Le.offsetHeight;We&&Ie&&Ie()}},Ae.createElement("div",(0,y.Z)({style:ft,className:Me()((0,$e.Z)({},"".concat(le,"-holder-inner"),le)),ref:re},bt),ne,He)))});je.displayName="Filler";var Te=je;function Ce(ae){var re=ae.children,te=ae.setRef,ie=Ae.useCallback(function(ce){te(ce)},[]);return Ae.cloneElement(re,{ref:ie})}function Se(ae,re,te,ie,ce,ne,le,Ie){var bt=Ie.getKey;return ae.slice(re,te+1).map(function(Ue,He){var at=re+He,ft=le(Ue,at,{style:{width:ie},offsetX:ce}),Pt=bt(Ue);return Ae.createElement(Ce,{key:Pt,setRef:function(We){return ne(Ue,We)}},ft)})}function Pe(ae,re,te,ie){var ce=te-ae,ne=re-te,le=Math.min(ce,ne)*2;if(ie<=le){var Ie=Math.floor(ie/2);return ie%2?te+Ie+1:te-Ie}return ce>ne?te-(ie-ne):te+(ie-ce)}function Ye(ae,re,te){var ie=ae.length,ce=re.length,ne,le;if(ie===0&&ce===0)return null;ie<ce?(ne=ae,le=re):(ne=re,le=ae);var Ie={__EMPTY_ITEM__:!0};function bt(Le){return Le!==void 0?te(Le):Ie}for(var Ue=null,He=Math.abs(ie-ce)!==1,at=0;at<le.length;at+=1){var ft=bt(ne[at]),Pt=bt(le[at]);if(ft!==Pt){Ue=at,He=He||ft!==bt(le[at+1]);break}}return Ue===null?null:{index:Ue,multiple:He}}function ct(ae,re,te){var ie=Ae.useState(ae),ce=(0,pe.Z)(ie,2),ne=ce[0],le=ce[1],Ie=Ae.useState(null),bt=(0,pe.Z)(Ie,2),Ue=bt[0],He=bt[1];return Ae.useEffect(function(){var at=Ye(ne||[],ae||[],re);(at==null?void 0:at.index)!==void 0&&(te==null||te(at.index),He(ae[at.index])),le(ae)},[ae]),[Ue]}var Be=z(16089),Oe=(typeof navigator=="undefined"?"undefined":(0,he.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Re=Oe,Ke=function(ae,re,te,ie){var ce=(0,Ae.useRef)(!1),ne=(0,Ae.useRef)(null);function le(){clearTimeout(ne.current),ce.current=!0,ne.current=setTimeout(function(){ce.current=!1},50)}var Ie=(0,Ae.useRef)({top:ae,bottom:re,left:te,right:ie});return Ie.current.top=ae,Ie.current.bottom=re,Ie.current.left=te,Ie.current.right=ie,function(bt,Ue){var He=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,at=bt?Ue<0&&Ie.current.left||Ue>0&&Ie.current.right:Ue<0&&Ie.current.top||Ue>0&&Ie.current.bottom;return He&&at?(clearTimeout(ne.current),ce.current=!1):(!at||ce.current)&&le(),!ce.current&&at}};function vt(ae,re,te,ie,ce,ne,le){var Ie=(0,Ae.useRef)(0),bt=(0,Ae.useRef)(null),Ue=(0,Ae.useRef)(null),He=(0,Ae.useRef)(!1),at=Ke(re,te,ie,ce);function ft(un,rn){if(Be.Z.cancel(bt.current),!at(!1,rn)){var Rt=un;if(!Rt._virtualHandled)Rt._virtualHandled=!0;else return;Ie.current+=rn,Ue.current=rn,Re||Rt.preventDefault(),bt.current=(0,Be.Z)(function(){var ln=He.current?10:1;le(Ie.current*ln,!1),Ie.current=0})}}function Pt(un,rn){le(rn,!0),Re||un.preventDefault()}var Le=(0,Ae.useRef)(null),We=(0,Ae.useRef)(null);function Nt(un){if(ae){Be.Z.cancel(We.current),We.current=(0,Be.Z)(function(){Le.current=null},2);var rn=un.deltaX,Rt=un.deltaY,ln=un.shiftKey,Ht=rn,ze=Rt;(Le.current==="sx"||!Le.current&&ln&&Rt&&!rn)&&(Ht=Rt,ze=0,Le.current="sx");var yt=Math.abs(Ht),Kt=Math.abs(ze);Le.current===null&&(Le.current=ne&&yt>Kt?"x":"y"),Le.current==="y"?ft(un,ze):Pt(un,Ht)}}function Qt(un){ae&&(He.current=un.detail===Ue.current)}return[Nt,Qt]}function it(ae,re,te,ie){var ce=Ae.useMemo(function(){return[new Map,[]]},[ae,te.id,ie]),ne=(0,pe.Z)(ce,2),le=ne[0],Ie=ne[1],bt=function(He){var at=arguments.length>1&&arguments[1]!==void 0?arguments[1]:He,ft=le.get(He),Pt=le.get(at);if(ft===void 0||Pt===void 0)for(var Le=ae.length,We=Ie.length;We<Le;We+=1){var Nt,Qt=ae[We],un=re(Qt);le.set(un,We);var rn=(Nt=te.get(un))!==null&&Nt!==void 0?Nt:ie;if(Ie[We]=(Ie[We-1]||0)+rn,un===He&&(ft=We),un===at&&(Pt=We),ft!==void 0&&Pt!==void 0)break}return{top:Ie[ft-1]||0,bottom:Ie[Pt]}};return bt}var Qe=z(67732),ut=z(83652),be=function(){function ae(){(0,Qe.Z)(this,ae),(0,$e.Z)(this,"maps",void 0),(0,$e.Z)(this,"id",0),(0,$e.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,ut.Z)(ae,[{key:"set",value:function(te,ie){this.diffRecords.set(te,this.maps[te]),this.maps[te]=ie,this.id+=1}},{key:"get",value:function(te){return this.maps[te]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),ae}(),et=be;function Ne(ae){var re=parseFloat(ae);return isNaN(re)?0:re}function ue(ae,re,te){var ie=Ae.useState(0),ce=(0,pe.Z)(ie,2),ne=ce[0],le=ce[1],Ie=(0,Ae.useRef)(new Map),bt=(0,Ae.useRef)(new et),Ue=(0,Ae.useRef)(0);function He(){Ue.current+=1}function at(){var Pt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;He();var Le=function(){var Qt=!1;Ie.current.forEach(function(un,rn){if(un&&un.offsetParent){var Rt=un.offsetHeight,ln=getComputedStyle(un),Ht=ln.marginTop,ze=ln.marginBottom,yt=Ne(Ht),Kt=Ne(ze),tn=Rt+yt+Kt;bt.current.get(rn)!==tn&&(bt.current.set(rn,tn),Qt=!0)}}),Qt&&le(function(un){return un+1})};if(Pt)Le();else{Ue.current+=1;var We=Ue.current;Promise.resolve().then(function(){We===Ue.current&&Le()})}}function ft(Pt,Le){var We=ae(Pt),Nt=Ie.current.get(We);Le?(Ie.current.set(We,Le),at()):Ie.current.delete(We),!Nt!=!Le&&(Le?re==null||re(Pt):te==null||te(Pt))}return(0,Ae.useEffect)(function(){return He},[]),[ft,at,bt.current,ne]}var mt=14/15;function Ze(ae,re,te){var ie=(0,Ae.useRef)(!1),ce=(0,Ae.useRef)(0),ne=(0,Ae.useRef)(0),le=(0,Ae.useRef)(null),Ie=(0,Ae.useRef)(null),bt,Ue=function(Pt){if(ie.current){var Le=Math.ceil(Pt.touches[0].pageX),We=Math.ceil(Pt.touches[0].pageY),Nt=ce.current-Le,Qt=ne.current-We,un=Math.abs(Nt)>Math.abs(Qt);un?ce.current=Le:ne.current=We;var rn=te(un,un?Nt:Qt,!1,Pt);rn&&Pt.preventDefault(),clearInterval(Ie.current),rn&&(Ie.current=setInterval(function(){un?Nt*=mt:Qt*=mt;var Rt=Math.floor(un?Nt:Qt);(!te(un,Rt,!0)||Math.abs(Rt)<=.1)&&clearInterval(Ie.current)},16))}},He=function(){ie.current=!1,bt()},at=function(Pt){bt(),Pt.touches.length===1&&!ie.current&&(ie.current=!0,ce.current=Math.ceil(Pt.touches[0].pageX),ne.current=Math.ceil(Pt.touches[0].pageY),le.current=Pt.target,le.current.addEventListener("touchmove",Ue,{passive:!1}),le.current.addEventListener("touchend",He,{passive:!0}))};bt=function(){le.current&&(le.current.removeEventListener("touchmove",Ue),le.current.removeEventListener("touchend",He))},(0,_e.Z)(function(){return ae&&re.current.addEventListener("touchstart",at,{passive:!0}),function(){var ft;(ft=re.current)===null||ft===void 0||ft.removeEventListener("touchstart",at),bt(),clearInterval(Ie.current)}},[ae])}function nt(ae){return Math.floor(Math.pow(ae,.5))}function Mt(ae,re){var te="touches"in ae?ae.touches[0]:ae;return te[re?"pageX":"pageY"]-window[re?"scrollX":"scrollY"]}function Fe(ae,re,te){Ae.useEffect(function(){var ie=re.current;if(ae&&ie){var ce=!1,ne,le,Ie=function(){Be.Z.cancel(ne)},bt=function ft(){Ie(),ne=(0,Be.Z)(function(){te(le),ft()})},Ue=function(){ce=!1,Ie()},He=function(Pt){if(!(Pt.target.draggable||Pt.button!==0)){var Le=Pt;Le._virtualHandled||(Le._virtualHandled=!0,ce=!0)}},at=function(Pt){if(ce){var Le=Mt(Pt,!1),We=ie.getBoundingClientRect(),Nt=We.top,Qt=We.bottom;if(Le<=Nt){var un=Nt-Le;le=-nt(un),bt()}else if(Le>=Qt){var rn=Le-Qt;le=nt(rn),bt()}else Ie()}};return ie.addEventListener("mousedown",He),ie.ownerDocument.addEventListener("mouseup",Ue),ie.ownerDocument.addEventListener("mousemove",at),ie.ownerDocument.addEventListener("dragend",Ue),function(){ie.removeEventListener("mousedown",He),ie.ownerDocument.removeEventListener("mouseup",Ue),ie.ownerDocument.removeEventListener("mousemove",at),ie.ownerDocument.removeEventListener("dragend",Ue),Ie()}}},[ae])}var ye=10;function Bt(ae,re,te,ie,ce,ne,le,Ie){var bt=Ae.useRef(),Ue=Ae.useState(null),He=(0,pe.Z)(Ue,2),at=He[0],ft=He[1];return(0,_e.Z)(function(){if(at&&at.times<ye){if(!ae.current){ft(function(hn){return(0,de.Z)({},hn)});return}ne();var Pt=at.targetAlign,Le=at.originAlign,We=at.index,Nt=at.offset,Qt=ae.current.clientHeight,un=!1,rn=Pt,Rt=null;if(Qt){for(var ln=Pt||Le,Ht=0,ze=0,yt=0,Kt=Math.min(re.length-1,We),tn=0;tn<=Kt;tn+=1){var Ve=ce(re[tn]);ze=Ht;var Ct=te.get(Ve);yt=ze+(Ct===void 0?ie:Ct),Ht=yt}for(var $t=ln==="top"?Nt:Qt-Nt,dt=Kt;dt>=0;dt-=1){var Ot=ce(re[dt]),Gt=te.get(Ot);if(Gt===void 0){un=!0;break}if($t-=Gt,$t<=0)break}switch(ln){case"top":Rt=ze-Nt;break;case"bottom":Rt=yt-Qt+Nt;break;default:{var mn=ae.current.scrollTop,An=mn+Qt;ze<mn?rn="top":yt>An&&(rn="bottom")}}Rt!==null&&le(Rt),Rt!==at.lastTop&&(un=!0)}un&&ft((0,de.Z)((0,de.Z)({},at),{},{times:at.times+1,targetAlign:rn,lastTop:Rt}))}},[at,ae.current]),function(Pt){if(Pt==null){Ie();return}if(Be.Z.cancel(bt.current),typeof Pt=="number")le(Pt);else if(Pt&&(0,he.Z)(Pt)==="object"){var Le,We=Pt.align;"index"in Pt?Le=Pt.index:Le=re.findIndex(function(un){return ce(un)===Pt.key});var Nt=Pt.offset,Qt=Nt===void 0?0:Nt;ft({times:0,index:Le,offset:Qt,originAlign:We})}}}var jt=Ae.forwardRef(function(ae,re){var te=ae.prefixCls,ie=ae.rtl,ce=ae.scrollOffset,ne=ae.scrollRange,le=ae.onStartMove,Ie=ae.onStopMove,bt=ae.onScroll,Ue=ae.horizontal,He=ae.spinSize,at=ae.containerSize,ft=ae.style,Pt=ae.thumbStyle,Le=ae.showScrollBar,We=Ae.useState(!1),Nt=(0,pe.Z)(We,2),Qt=Nt[0],un=Nt[1],rn=Ae.useState(null),Rt=(0,pe.Z)(rn,2),ln=Rt[0],Ht=Rt[1],ze=Ae.useState(null),yt=(0,pe.Z)(ze,2),Kt=yt[0],tn=yt[1],Ve=!ie,Ct=Ae.useRef(),$t=Ae.useRef(),dt=Ae.useState(Le),Ot=(0,pe.Z)(dt,2),Gt=Ot[0],mn=Ot[1],An=Ae.useRef(),hn=function(){Le===!0||Le===!1||(clearTimeout(An.current),mn(!0),An.current=setTimeout(function(){mn(!1)},3e3))},Fn=ne-at||0,Ft=at-He||0,Tt=Ae.useMemo(function(){if(ce===0||Fn===0)return 0;var $n=ce/Fn;return $n*Ft},[ce,Fn,Ft]),Ut=function(Wn){Wn.stopPropagation(),Wn.preventDefault()},an=Ae.useRef({top:Tt,dragging:Qt,pageY:ln,startTop:Kt});an.current={top:Tt,dragging:Qt,pageY:ln,startTop:Kt};var Xt=function(Wn){un(!0),Ht(Mt(Wn,Ue)),tn(an.current.top),le(),Wn.stopPropagation(),Wn.preventDefault()};Ae.useEffect(function(){var $n=function(rr){rr.preventDefault()},Wn=Ct.current,Hn=$t.current;return Wn.addEventListener("touchstart",$n,{passive:!1}),Hn.addEventListener("touchstart",Xt,{passive:!1}),function(){Wn.removeEventListener("touchstart",$n),Hn.removeEventListener("touchstart",Xt)}},[]);var yn=Ae.useRef();yn.current=Fn;var sn=Ae.useRef();sn.current=Ft,Ae.useEffect(function(){if(Qt){var $n,Wn=function(rr){var dn=an.current,xn=dn.dragging,jn=dn.pageY,zn=dn.startTop;Be.Z.cancel($n);var xt=Ct.current.getBoundingClientRect(),_t=at/(Ue?xt.width:xt.height);if(xn){var Je=(Mt(rr,Ue)-jn)*_t,Dt=zn;!Ve&&Ue?Dt-=Je:Dt+=Je;var Ge=yn.current,At=sn.current,Jt=At?Dt/At:0,Rn=Math.ceil(Jt*Ge);Rn=Math.max(Rn,0),Rn=Math.min(Rn,Ge),$n=(0,Be.Z)(function(){bt(Rn,Ue)})}},Hn=function(){un(!1),Ie()};return window.addEventListener("mousemove",Wn,{passive:!0}),window.addEventListener("touchmove",Wn,{passive:!0}),window.addEventListener("mouseup",Hn,{passive:!0}),window.addEventListener("touchend",Hn,{passive:!0}),function(){window.removeEventListener("mousemove",Wn),window.removeEventListener("touchmove",Wn),window.removeEventListener("mouseup",Hn),window.removeEventListener("touchend",Hn),Be.Z.cancel($n)}}},[Qt]),Ae.useEffect(function(){return hn(),function(){clearTimeout(An.current)}},[ce]),Ae.useImperativeHandle(re,function(){return{delayHidden:hn}});var wn="".concat(te,"-scrollbar"),Vn={position:"absolute",visibility:Gt?null:"hidden"},Mn={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return Ue?(Object.assign(Vn,{height:8,left:0,right:0,bottom:0}),Object.assign(Mn,(0,$e.Z)({height:"100%",width:He},Ve?"left":"right",Tt))):(Object.assign(Vn,(0,$e.Z)({width:8,top:0,bottom:0},Ve?"right":"left",0)),Object.assign(Mn,{width:"100%",height:He,top:Tt})),Ae.createElement("div",{ref:Ct,className:Me()(wn,(0,$e.Z)((0,$e.Z)((0,$e.Z)({},"".concat(wn,"-horizontal"),Ue),"".concat(wn,"-vertical"),!Ue),"".concat(wn,"-visible"),Gt)),style:(0,de.Z)((0,de.Z)({},Vn),ft),onMouseDown:Ut,onMouseMove:hn},Ae.createElement("div",{ref:$t,className:Me()("".concat(wn,"-thumb"),(0,$e.Z)({},"".concat(wn,"-thumb-moving"),Qt)),style:(0,de.Z)((0,de.Z)({},Mn),Pt),onMouseDown:Xt}))}),Lt=jt,Ee=20;function ot(){var ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,te=ae/re*ae;return isNaN(te)&&(te=0),te=Math.max(te,Ee),Math.floor(te)}var qe=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],zt=[],ht={overflowY:"auto",overflowAnchor:"none"};function lt(ae,re){var te=ae.prefixCls,ie=te===void 0?"rc-virtual-list":te,ce=ae.className,ne=ae.height,le=ae.itemHeight,Ie=ae.fullHeight,bt=Ie===void 0?!0:Ie,Ue=ae.style,He=ae.data,at=ae.children,ft=ae.itemKey,Pt=ae.virtual,Le=ae.direction,We=ae.scrollWidth,Nt=ae.component,Qt=Nt===void 0?"div":Nt,un=ae.onScroll,rn=ae.onVirtualScroll,Rt=ae.onVisibleChange,ln=ae.innerProps,Ht=ae.extraRender,ze=ae.styles,yt=ae.showScrollBar,Kt=yt===void 0?"optional":yt,tn=(0,me.Z)(ae,qe),Ve=Ae.useCallback(function(Tn){return typeof ft=="function"?ft(Tn):Tn==null?void 0:Tn[ft]},[ft]),Ct=ue(Ve,null,null),$t=(0,pe.Z)(Ct,4),dt=$t[0],Ot=$t[1],Gt=$t[2],mn=$t[3],An=!!(Pt!==!1&&ne&&le),hn=Ae.useMemo(function(){return Object.values(Gt.maps).reduce(function(Tn,Gn){return Tn+Gn},0)},[Gt.id,Gt.maps]),Fn=An&&He&&(Math.max(le*He.length,hn)>ne||!!We),Ft=Le==="rtl",Tt=Me()(ie,(0,$e.Z)({},"".concat(ie,"-rtl"),Ft),ce),Ut=He||zt,an=(0,Ae.useRef)(),Xt=(0,Ae.useRef)(),yn=(0,Ae.useRef)(),sn=(0,Ae.useState)(0),wn=(0,pe.Z)(sn,2),Vn=wn[0],Mn=wn[1],$n=(0,Ae.useState)(0),Wn=(0,pe.Z)($n,2),Hn=Wn[0],ur=Wn[1],rr=(0,Ae.useState)(!1),dn=(0,pe.Z)(rr,2),xn=dn[0],jn=dn[1],zn=function(){jn(!0)},xt=function(){jn(!1)},_t={getKey:Ve};function Je(Tn){Mn(function(Gn){var Yn;typeof Tn=="function"?Yn=Tn(Gn):Yn=Tn;var Ln=Sr(Yn);return an.current.scrollTop=Ln,Ln})}var Dt=(0,Ae.useRef)({start:0,end:Ut.length}),Ge=(0,Ae.useRef)(),At=ct(Ut,Ve),Jt=(0,pe.Z)(At,1),Rn=Jt[0];Ge.current=Rn;var Zn=Ae.useMemo(function(){if(!An)return{scrollHeight:void 0,start:0,end:Ut.length-1,offset:void 0};if(!Fn){var Tn;return{scrollHeight:((Tn=Xt.current)===null||Tn===void 0?void 0:Tn.offsetHeight)||0,start:0,end:Ut.length-1,offset:void 0}}for(var Gn=0,Yn,Ln,mr,wr=Ut.length,Un=0;Un<wr;Un+=1){var Jn=Ut[Un],sr=Ve(Jn),pr=Gt.get(sr),_r=Gn+(pr===void 0?le:pr);_r>=Vn&&Yn===void 0&&(Yn=Un,Ln=Gn),_r>Vn+ne&&mr===void 0&&(mr=Un),Gn=_r}return Yn===void 0&&(Yn=0,Ln=0,mr=Math.ceil(ne/le)),mr===void 0&&(mr=Ut.length-1),mr=Math.min(mr+1,Ut.length-1),{scrollHeight:Gn,start:Yn,end:mr,offset:Ln}},[Fn,An,Vn,Ut,mn,ne]),pt=Zn.scrollHeight,Et=Zn.start,St=Zn.end,It=Zn.offset;Dt.current.start=Et,Dt.current.end=St,Ae.useLayoutEffect(function(){var Tn=Gt.getRecord();if(Tn.size===1){var Gn=Array.from(Tn.keys())[0],Yn=Tn.get(Gn),Ln=Ut[Et];if(Ln&&Yn===void 0){var mr=Ve(Ln);if(mr===Gn){var wr=Gt.get(Gn),Un=wr-le;Je(function(Jn){return Jn+Un})}}}Gt.resetRecord()},[pt]);var fn=Ae.useState({width:0,height:ne}),Bn=(0,pe.Z)(fn,2),On=Bn[0],Nn=Bn[1],qn=function(Gn){Nn({width:Gn.offsetWidth,height:Gn.offsetHeight})},nr=(0,Ae.useRef)(),ir=(0,Ae.useRef)(),lr=Ae.useMemo(function(){return ot(On.width,We)},[On.width,We]),Qn=Ae.useMemo(function(){return ot(On.height,pt)},[On.height,pt]),ar=pt-ne,fr=(0,Ae.useRef)(ar);fr.current=ar;function Sr(Tn){var Gn=Tn;return Number.isNaN(fr.current)||(Gn=Math.min(Gn,fr.current)),Gn=Math.max(Gn,0),Gn}var br=Vn<=0,Zr=Vn>=ar,jr=Hn<=0,hr=Hn>=We,Mr=Ke(br,Zr,jr,hr),eo=function(){return{x:Ft?-Hn:Hn,y:Vn}},kr=(0,Ae.useRef)(eo()),Fr=(0,se.zX)(function(Tn){if(rn){var Gn=(0,de.Z)((0,de.Z)({},eo()),Tn);(kr.current.x!==Gn.x||kr.current.y!==Gn.y)&&(rn(Gn),kr.current=Gn)}});function or(Tn,Gn){var Yn=Tn;Gn?((0,tt.flushSync)(function(){ur(Yn)}),Fr()):Je(Yn)}function Ur(Tn){var Gn=Tn.currentTarget.scrollTop;Gn!==Vn&&Je(Gn),un==null||un(Tn),Fr()}var Rr=function(Gn){var Yn=Gn,Ln=We?We-On.width:0;return Yn=Math.max(Yn,0),Yn=Math.min(Yn,Ln),Yn},Br=(0,se.zX)(function(Tn,Gn){Gn?((0,tt.flushSync)(function(){ur(function(Yn){var Ln=Yn+(Ft?-Tn:Tn);return Rr(Ln)})}),Fr()):Je(function(Yn){var Ln=Yn+Tn;return Ln})}),Cr=vt(An,br,Zr,jr,hr,!!We,Br),so=(0,pe.Z)(Cr,2),Ho=so[0],ti=so[1];Ze(An,an,function(Tn,Gn,Yn,Ln){var mr=Ln;return Mr(Tn,Gn,Yn)?!1:!mr||!mr._virtualHandled?(mr&&(mr._virtualHandled=!0),Ho({preventDefault:function(){},deltaX:Tn?Gn:0,deltaY:Tn?0:Gn}),!0):!1}),Fe(Fn,an,function(Tn){Je(function(Gn){return Gn+Tn})}),(0,_e.Z)(function(){function Tn(Yn){var Ln=br&&Yn.detail<0,mr=Zr&&Yn.detail>0;An&&!Ln&&!mr&&Yn.preventDefault()}var Gn=an.current;return Gn.addEventListener("wheel",Ho,{passive:!1}),Gn.addEventListener("DOMMouseScroll",ti,{passive:!0}),Gn.addEventListener("MozMousePixelScroll",Tn,{passive:!1}),function(){Gn.removeEventListener("wheel",Ho),Gn.removeEventListener("DOMMouseScroll",ti),Gn.removeEventListener("MozMousePixelScroll",Tn)}},[An,br,Zr]),(0,_e.Z)(function(){if(We){var Tn=Rr(Hn);ur(Tn),Fr({x:Tn})}},[On.width,We]);var xo=function(){var Gn,Yn;(Gn=nr.current)===null||Gn===void 0||Gn.delayHidden(),(Yn=ir.current)===null||Yn===void 0||Yn.delayHidden()},No=Bt(an,Ut,Gt,le,Ve,function(){return Ot(!0)},Je,xo);Ae.useImperativeHandle(re,function(){return{nativeElement:yn.current,getScrollInfo:eo,scrollTo:function(Gn){function Yn(Ln){return Ln&&(0,he.Z)(Ln)==="object"&&("left"in Ln||"top"in Ln)}Yn(Gn)?(Gn.left!==void 0&&ur(Rr(Gn.left)),No(Gn.top)):No(Gn)}}}),(0,_e.Z)(function(){if(Rt){var Tn=Ut.slice(Et,St+1);Rt(Tn,Ut)}},[Et,St,Ut]);var To=it(Ut,Ve,Gt,le),Xo=Ht==null?void 0:Ht({start:Et,end:St,virtual:Fn,offsetX:Hn,offsetY:It,rtl:Ft,getSize:To}),ko=Se(Ut,Et,St,We,Hn,dt,at,_t),go=null;ne&&(go=(0,de.Z)((0,$e.Z)({},bt?"height":"maxHeight",ne),ht),An&&(go.overflowY="hidden",We&&(go.overflowX="hidden"),xn&&(go.pointerEvents="none")));var dr={};return Ft&&(dr.dir="rtl"),Ae.createElement("div",(0,y.Z)({ref:yn,style:(0,de.Z)((0,de.Z)({},Ue),{},{position:"relative"}),className:Tt},dr,tn),Ae.createElement(ge.Z,{onResize:qn},Ae.createElement(Qt,{className:"".concat(ie,"-holder"),style:go,ref:an,onScroll:Ur,onMouseEnter:xo},Ae.createElement(Te,{prefixCls:ie,height:pt,offsetX:Hn,offsetY:It,scrollWidth:We,onInnerResize:Ot,ref:Xt,innerProps:ln,rtl:Ft,extra:Xo},ko))),Fn&&pt>ne&&Ae.createElement(Lt,{ref:nr,prefixCls:ie,scrollOffset:Vn,scrollRange:pt,rtl:Ft,onScroll:or,onStartMove:zn,onStopMove:xt,spinSize:Qn,containerSize:On.height,style:ze==null?void 0:ze.verticalScrollBar,thumbStyle:ze==null?void 0:ze.verticalScrollBarThumb,showScrollBar:Kt}),Fn&&We>On.width&&Ae.createElement(Lt,{ref:ir,prefixCls:ie,scrollOffset:Hn,scrollRange:We,rtl:Ft,onScroll:or,onStartMove:zn,onStopMove:xt,spinSize:lr,containerSize:On.width,horizontal:!0,style:ze==null?void 0:ze.horizontalScrollBar,thumbStyle:ze==null?void 0:ze.horizontalScrollBarThumb,showScrollBar:Kt}))}var rt=Ae.forwardRef(lt);rt.displayName="List";var on=rt,kt=on},93314:function(bn){"use strict";bn.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=="},16722:function(bn,Wt,z){"use strict";z.d(Wt,{Z:function(){return Me}});const y=ge=>typeof ge=="object"&&ge!=null&&ge.nodeType===1,he=(ge,se)=>(!se||ge!=="hidden")&&ge!=="visible"&&ge!=="clip",de=(ge,se)=>{if(ge.clientHeight<ge.scrollHeight||ge.clientWidth<ge.scrollWidth){const _e=getComputedStyle(ge,null);return he(_e.overflowY,se)||he(_e.overflowX,se)||(Ae=>{const tt=(je=>{if(!je.ownerDocument||!je.ownerDocument.defaultView)return null;try{return je.ownerDocument.defaultView.frameElement}catch(Te){return null}})(Ae);return!!tt&&(tt.clientHeight<Ae.scrollHeight||tt.clientWidth<Ae.scrollWidth)})(ge)}return!1},$e=(ge,se,_e,Ae,tt,je,Te,Ce)=>je<ge&&Te>se||je>ge&&Te<se?0:je<=ge&&Ce<=_e||Te>=se&&Ce>=_e?je-ge-Ae:Te>se&&Ce<_e||je<ge&&Ce>_e?Te-se+tt:0,pe=ge=>{const se=ge.parentElement;return se==null?ge.getRootNode().host||null:se},me=(ge,se)=>{var _e,Ae,tt,je;if(typeof document=="undefined")return[];const{scrollMode:Te,block:Ce,inline:Se,boundary:Pe,skipOverflowHiddenElements:Ye}=se,ct=typeof Pe=="function"?Pe:Lt=>Lt!==Pe;if(!y(ge))throw new TypeError("Invalid target");const Be=document.scrollingElement||document.documentElement,Oe=[];let Re=ge;for(;y(Re)&&ct(Re);){if(Re=pe(Re),Re===Be){Oe.push(Re);break}Re!=null&&Re===document.body&&de(Re)&&!de(document.documentElement)||Re!=null&&de(Re,Ye)&&Oe.push(Re)}const Ke=(Ae=(_e=window.visualViewport)==null?void 0:_e.width)!=null?Ae:innerWidth,vt=(je=(tt=window.visualViewport)==null?void 0:tt.height)!=null?je:innerHeight,{scrollX:it,scrollY:Qe}=window,{height:ut,width:be,top:et,right:Ne,bottom:ue,left:mt}=ge.getBoundingClientRect(),{top:Ze,right:nt,bottom:Mt,left:Fe}=(Lt=>{const Ee=window.getComputedStyle(Lt);return{top:parseFloat(Ee.scrollMarginTop)||0,right:parseFloat(Ee.scrollMarginRight)||0,bottom:parseFloat(Ee.scrollMarginBottom)||0,left:parseFloat(Ee.scrollMarginLeft)||0}})(ge);let ye=Ce==="start"||Ce==="nearest"?et-Ze:Ce==="end"?ue+Mt:et+ut/2-Ze+Mt,Bt=Se==="center"?mt+be/2-Fe+nt:Se==="end"?Ne+nt:mt-Fe;const jt=[];for(let Lt=0;Lt<Oe.length;Lt++){const Ee=Oe[Lt],{height:ot,width:qe,top:zt,right:ht,bottom:lt,left:rt}=Ee.getBoundingClientRect();if(Te==="if-needed"&&et>=0&&mt>=0&&ue<=vt&&Ne<=Ke&&(Ee===Be&&!de(Ee)||et>=zt&&ue<=lt&&mt>=rt&&Ne<=ht))return jt;const on=getComputedStyle(Ee),kt=parseInt(on.borderLeftWidth,10),ae=parseInt(on.borderTopWidth,10),re=parseInt(on.borderRightWidth,10),te=parseInt(on.borderBottomWidth,10);let ie=0,ce=0;const ne="offsetWidth"in Ee?Ee.offsetWidth-Ee.clientWidth-kt-re:0,le="offsetHeight"in Ee?Ee.offsetHeight-Ee.clientHeight-ae-te:0,Ie="offsetWidth"in Ee?Ee.offsetWidth===0?0:qe/Ee.offsetWidth:0,bt="offsetHeight"in Ee?Ee.offsetHeight===0?0:ot/Ee.offsetHeight:0;if(Be===Ee)ie=Ce==="start"?ye:Ce==="end"?ye-vt:Ce==="nearest"?$e(Qe,Qe+vt,vt,ae,te,Qe+ye,Qe+ye+ut,ut):ye-vt/2,ce=Se==="start"?Bt:Se==="center"?Bt-Ke/2:Se==="end"?Bt-Ke:$e(it,it+Ke,Ke,kt,re,it+Bt,it+Bt+be,be),ie=Math.max(0,ie+Qe),ce=Math.max(0,ce+it);else{ie=Ce==="start"?ye-zt-ae:Ce==="end"?ye-lt+te+le:Ce==="nearest"?$e(zt,lt,ot,ae,te+le,ye,ye+ut,ut):ye-(zt+ot/2)+le/2,ce=Se==="start"?Bt-rt-kt:Se==="center"?Bt-(rt+qe/2)+ne/2:Se==="end"?Bt-ht+re+ne:$e(rt,ht,qe,kt,re+ne,Bt,Bt+be,be);const{scrollLeft:Ue,scrollTop:He}=Ee;ie=bt===0?0:Math.max(0,Math.min(He+ie/bt,Ee.scrollHeight-ot/bt+le)),ce=Ie===0?0:Math.max(0,Math.min(Ue+ce/Ie,Ee.scrollWidth-qe/Ie+ne)),ye+=He-ie,Bt+=Ue-ce}jt.push({el:Ee,top:ie,left:ce})}return jt},ve=ge=>ge===!1?{block:"end",inline:"nearest"}:(se=>se===Object(se)&&Object.keys(se).length!==0)(ge)?ge:{block:"start",inline:"nearest"};function Me(ge,se){if(!ge.isConnected||!(tt=>{let je=tt;for(;je&&je.parentNode;){if(je.parentNode===document)return!0;je=je.parentNode instanceof ShadowRoot?je.parentNode.host:je.parentNode}return!1})(ge))return;const _e=(tt=>{const je=window.getComputedStyle(tt);return{top:parseFloat(je.scrollMarginTop)||0,right:parseFloat(je.scrollMarginRight)||0,bottom:parseFloat(je.scrollMarginBottom)||0,left:parseFloat(je.scrollMarginLeft)||0}})(ge);if((tt=>typeof tt=="object"&&typeof tt.behavior=="function")(se))return se.behavior(me(ge,se));const Ae=typeof se=="boolean"||se==null?void 0:se.behavior;for(const{el:tt,top:je,left:Te}of me(ge,ve(se))){const Ce=je-_e.top+_e.bottom,Se=Te-_e.left+_e.right;tt.scroll({top:Ce,left:Se,behavior:Ae})}}}}]);