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,zt,z){"use strict";z.d(zt,{Z:function(){return Ae}});var y=z(54476),he=z(59301),ce={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},je=ce,ve=z(7657),me=function(le,Re){return he.createElement(ve.Z,(0,y.Z)({},le,{ref:Re,icon:je}))},ye=he.forwardRef(me),Ae=ye},59477:function(bn,zt,z){"use strict";z.d(zt,{Z:function(){return Ae}});var y=z(54476),he=z(59301),ce={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},je=ce,ve=z(7657),me=function(le,Re){return he.createElement(ve.Z,(0,y.Z)({},le,{ref:Re,icon:je}))},ye=he.forwardRef(me),Ae=ye},40001:function(bn,zt,z){"use strict";z.d(zt,{Z:function(){return Ae}});var y=z(54476),he=z(59301),ce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},je=ce,ve=z(7657),me=function(le,Re){return he.createElement(ve.Z,(0,y.Z)({},le,{ref:Re,icon:je}))},ye=he.forwardRef(me),Ae=ye},49198:function(bn,zt,z){"use strict";z.d(zt,{Z:function(){return Ae}});var y=z(54476),he=z(59301),ce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},je=ce,ve=z(7657),me=function(le,Re){return he.createElement(ve.Z,(0,y.Z)({},le,{ref:Re,icon:je}))},ye=he.forwardRef(me),Ae=ye},87169:function(bn,zt,z){"use strict";z.d(zt,{Z:function(){return Ae}});var y=z(54476),he=z(59301),ce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},je=ce,ve=z(7657),me=function(le,Re){return he.createElement(ve.Z,(0,y.Z)({},le,{ref:Re,icon:je}))},ye=he.forwardRef(me),Ae=ye},73331:function(bn,zt,z){"use strict";z.d(zt,{Z:function(){return Ae}});var y=z(54476),he=z(59301),ce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},je=ce,ve=z(7657),me=function(le,Re){return he.createElement(ve.Z,(0,y.Z)({},le,{ref:Re,icon:je}))},ye=he.forwardRef(me),Ae=ye},15277:function(bn,zt,z){"use strict";z.d(zt,{Z:function(){return Ae}});var y=z(54476),he=z(59301),ce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},je=ce,ve=z(7657),me=function(le,Re){return he.createElement(ve.Z,(0,y.Z)({},le,{ref:Re,icon:je}))},ye=he.forwardRef(me),Ae=ye},52671:function(bn,zt,z){"use strict";z.d(zt,{Z:function(){return Ae}});var y=z(54476),he=z(59301),ce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},je=ce,ve=z(7657),me=function(le,Re){return he.createElement(ve.Z,(0,y.Z)({},le,{ref:Re,icon:je}))},ye=he.forwardRef(me),Ae=ye},8657:function(bn,zt,z){"use strict";z.d(zt,{Z:function(){return Ae}});var y=z(54476),he=z(59301),ce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},je=ce,ve=z(7657),me=function(le,Re){return he.createElement(ve.Z,(0,y.Z)({},le,{ref:Re,icon:je}))},ye=he.forwardRef(me),Ae=ye},56082:function(bn,zt,z){"use strict";z.d(zt,{Z:function(){return Ae}});var y=z(54476),he=z(59301),ce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},je=ce,ve=z(7657),me=function(le,Re){return he.createElement(ve.Z,(0,y.Z)({},le,{ref:Re,icon:je}))},ye=he.forwardRef(me),Ae=ye},33853:function(bn,zt,z){"use strict";z.d(zt,{Z:function(){return Ae}});var y=z(54476),he=z(59301),ce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},je=ce,ve=z(7657),me=function(le,Re){return he.createElement(ve.Z,(0,y.Z)({},le,{ref:Re,icon:je}))},ye=he.forwardRef(me),Ae=ye},12893:function(bn,zt,z){"use strict";z.d(zt,{Z:function(){return Ae}});var y=z(54476),he=z(59301),ce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"minus-circle",theme:"outlined"},je=ce,ve=z(7657),me=function(le,Re){return he.createElement(ve.Z,(0,y.Z)({},le,{ref:Re,icon:je}))},ye=he.forwardRef(me),Ae=ye},15075:function(bn,zt,z){"use strict";z.d(zt,{Z:function(){return Ae}});var y=z(54476),he=z(59301),ce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},je=ce,ve=z(7657),me=function(le,Re){return he.createElement(ve.Z,(0,y.Z)({},le,{ref:Re,icon:je}))},ye=he.forwardRef(me),Ae=ye},32134:function(bn,zt,z){"use strict";z.d(zt,{Z:function(){return Ae}});var y=z(54476),he=z(59301),ce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"plus-circle",theme:"outlined"},je=ce,ve=z(7657),me=function(le,Re){return he.createElement(ve.Z,(0,y.Z)({},le,{ref:Re,icon:je}))},ye=he.forwardRef(me),Ae=ye},43531:function(bn,zt,z){"use strict";z.d(zt,{Z:function(){return Ae}});var y=z(54476),he=z(59301),ce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},je=ce,ve=z(7657),me=function(le,Re){return he.createElement(ve.Z,(0,y.Z)({},le,{ref:Re,icon:je}))},ye=he.forwardRef(me),Ae=ye},61485:function(bn,zt,z){"use strict";z.d(zt,{Z:function(){return Ae}});var y=z(54476),he=z(59301),ce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},je=ce,ve=z(7657),me=function(le,Re){return he.createElement(ve.Z,(0,y.Z)({},le,{ref:Re,icon:je}))},ye=he.forwardRef(me),Ae=ye},47472:function(bn,zt,z){"use strict";z.d(zt,{Z:function(){return Ae}});var y=z(54476),he=z(59301),ce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},je=ce,ve=z(7657),me=function(le,Re){return he.createElement(ve.Z,(0,y.Z)({},le,{ref:Re,icon:je}))},ye=he.forwardRef(me),Ae=ye},87395:function(bn,zt,z){"use strict";z.d(zt,{Z:function(){return Ae}});var y=z(54476),he=z(59301),ce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},je=ce,ve=z(7657),me=function(le,Re){return he.createElement(ve.Z,(0,y.Z)({},le,{ref:Re,icon:je}))},ye=he.forwardRef(me),Ae=ye},45559:function(){"use strict"},42313:function(){"use strict"},96408:function(bn,zt){"use strict";zt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},58e3:function(bn,zt){"use strict";zt.Z={wrap:"wrap___ilWvf",deleteIcon:"deleteIcon___JBDG8",keywordTag:"keywordTag___iieCb",questionTitleEditorWrap:"questionTitleEditorWrap___MHB5s",choiceListWrap:"choiceListWrap___jB8b1",choiceWrap:"choiceWrap___QFkTc",choiceIndex:"choiceIndex___Mr2YO",judgementIndex:"judgementIndex___fUVWK",setAnswerBtn:"setAnswerBtn___Whox5",activeAnswer:"activeAnswer___fGU6Y",activeJudgementAnswer:"activeJudgementAnswer___wJv8P",actionWrapper:"actionWrapper___ERQ7k",addIcon:"addIcon___L9TE0",inputBorder:"inputBorder___Q5tRE",placeholder:"placeholder___p9sFY",blankInputNumberWrapper:"blankInputNumberWrapper___uEHb0",addBtn:"addBtn___WR5ZI",blankIndex:"blankIndex___x9Pny",baseInputWrapper:"baseInputWrapper___eVsG7",collapseWrapper:"collapseWrapper___ZTysU",panelHeader:"panelHeader___QSN9g",open:"open___B6FU9",close:"close___QX19r",hide:"hide___mn25n"}},70414:function(bn,zt,z){"use strict";var y=z(59301),he=Object.defineProperty,ce=Object.getOwnPropertySymbols,je=Object.prototype.hasOwnProperty,ve=Object.prototype.propertyIsEnumerable,me=(pe,le,Re)=>le in pe?he(pe,le,{enumerable:!0,configurable:!0,writable:!0,value:Re}):pe[le]=Re,ye=(pe,le)=>{for(var Re in le||(le={}))je.call(le,Re)&&me(pe,Re,le[Re]);if(ce)for(var Re of ce(le))ve.call(le,Re)&&me(pe,Re,le[Re]);return pe};const Ae=pe=>React.createElement("svg",ye({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},pe),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"})));zt.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48Y2lyY2xlIGZpbGw9IiNGQ0IwNDEiIGN4PSI3IiBjeT0iNyIgcj0iNyIvPjxwYXRoIGQ9Ik03LjUzMSA5LjYzOGEuNjE2LjYxNiAwIDEgMS0xLjIzMSAwdi0uMDJhLjYxNi42MTYgMCAxIDEgMS4yMzEgMHYuMDJabTAtMi4yNWEuNjE2LjYxNiAwIDEgMS0xLjIzMSAwVjQuMTE3YS42MTYuNjE2IDAgMSAxIDEuMjMxIDB2My4yNzNaIiBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L2c+PC9zdmc+"},93510:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var bn={},zt="5.0",z={},y=null,he=!1,ce=!1,je=null,ve=!1,me=null,ye=null,Ae=0;Ae<arguments.length;Ae++){var pe=arguments[Ae];if(pe!==null)switch(typeof pe){case"number":zt=pe.toFixed(1);break;case"string":pe.match(new RegExp("^[0-9]\\.[0-9]+$"))?zt=pe:je=pe;break;case"object":typeof pe.is3D!="undefined"?y=pe:z=pe;break;case"boolean":he=pe,ce=!0;break}}y===null&&(y={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},z.material_id!==void 0&&!ce&&(he=!0)),je!==null&&z.id===void 0&&(z.id=je);var le="",Re="",Ie=!1,tt=null,He=null,Me=null,Ee=!1,we=null,Ne=null,Xe=null,ft=null,Pe=null;z.height!==void 0&&(z.height=Math.round(z.height)),z.width!==void 0&&(z.width=Math.round(z.width));var Fe=function(xe){return parseFloat(xe)>4?parseFloat(xe):5};bn.setHTML5Codebase=function(xe,rt){ye=xe,Ft(xe,rt)},bn.setJavaCodebase=bn.setJavaCodebaseVersion=bn.isCompiledInstalled=bn.setPreCompiledScriptPath=bn.setPreCompiledResourcePath=function(){},bn.setHTML5CodebaseVersion=function(xe,rt){var qe=parseFloat(xe);if(qe!==NaN&&qe<5){console.log("The GeoGebra HTML5 codebase version "+qe+" is deprecated. Using version latest instead.");return}me=xe,ge(xe,rt)},bn.getHTML5CodebaseVersion=function(){return He},bn.getParameters=function(){return z},bn.setFontsCSSURL=function(xe){ft=xe},bn.setGiacJSURL=function(xe){},bn.setJNLPFile=function(xe){le=xe},bn.setJNLPBaseDir=function(xe){},bn.inject=function(){function xe(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var rt="auto",qe=z.id,Gt,at=!1,st=0;st<arguments.length;st++){var nt=arguments[st];typeof nt=="string"?(nt=nt.toLowerCase(),nt.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?rt=nt:qe=arguments[st]):typeof nt=="boolean"?at=nt:nt instanceof HTMLElement&&(Gt=nt)}rn();function rn(){if(!ve){setTimeout(rn,200);return}rt=Mt(rt);var kt=Gt||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)&&rt==="html5"&&(delete z.width,delete z.height),tt=rt,rt==="screenshot")Te(kt,z);else{var ae=!1;z.hasOwnProperty("playButton")&&z.playButton||z.hasOwnProperty("clickToLoad")&&z.clickToLoad?ae=!0:z.hasOwnProperty("playButtonAutoDecide")&&z.playButtonAutoDecide&&(ae=(!Ze()||xe())&&$e()),ae?(tt="screenshot",mt(kt,z,at,rt)):et(kt,z,at)}}};function Ze(){try{return window.self!==window.top}catch(xe){return!0}}function $e(){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 gt=function(xe){var rt=function(st){var nt=JSON.parse(st),rn=function(re){return re.type=="G"||re.type=="E"},kt=nt.elements?nt.elements.filter(rn)[0]:nt;if(!kt||!kt.url){qe();return}z.fileName=kt.url,ot(kt.settings||{}),y.is3D=!0;var ae="https://www.geogebra.org/images/";bn.setPreviewImage(we||kt.previewUrl,ae+"GeoGebra_loading.png",ae+"applet_play.png"),xe()},qe=function(){z.onError&&z.onError(),_t("Error: Fetching material (id "+z.material_id+") failed.",z)},Gt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",at="/materials/"+z.material_id+"?scope=basic";Qe("https://"+Gt+"/api/proxy.php?path="+encodeURIComponent(at),rt,qe)};function ot(xe){var rt=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(qe){xe[qe]=!!xe[qe]}),rt.forEach(function(qe){z[qe]===void 0&&xe[qe]!==void 0&&(z[qe]=xe[qe])}),z.showToolBarHelp===void 0&&(z.showToolBarHelp=z.showToolBar)}function Qe(xe,rt,qe){var Gt=new XMLHttpRequest;Gt.open("GET",xe),Gt.onload=function(){rt(Gt.responseText)},Gt.onerror=qe,Gt.send()}bn.isHTML5Installed=function(){return!0},bn.getLoadedAppletType=function(){return tt},bn.setPreviewImage=function(xe,rt,qe){we=xe,Ne=rt,Xe=qe},bn.removeExistingApplet=function(xe,rt){var qe;typeof xe=="string"&&(xe=document.getElementById(xe)),tt=null;var Gt=null;for(qe=0;qe<xe.childNodes.length;qe++){var at=xe.childNodes[qe],st=at.className;st==="applet_screenshot"?rt?(at.style.display="block",tt="screenshot"):at.style.display="none":st!=="applet_scaler prerender"&&(xe.removeChild(at),Gt=st&&st.indexOf("appletParameters")!=-1?at.id:null,qe--)}var nt=z.id!==void 0?z.id:Gt,rn=window[nt];rn&&typeof rn.getBase64=="function"&&(rn.remove(),window[nt]=null)},bn.refreshHitPoints=function(){if(Fe(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var xe=bn.getAppletObject();return xe&&typeof xe.recalculateEnvironments=="function"?(xe.recalculateEnvironments(),!0):!1},bn.startAnimation=function(){var xe=bn.getAppletObject();return xe&&typeof xe.startAnimation=="function"?(xe.startAnimation(),!0):!1},bn.stopAnimation=function(){var xe=bn.getAppletObject();return xe&&typeof xe.stopAnimation=="function"?(xe.stopAnimation(),!0):!1},bn.getAppletObject=function(){var xe=z.id!==void 0?z.id:"ggbApplet";return window[xe]},bn.resize=function(){};var ct=function(xe,rt,qe){var Gt=document.createElement("param");Gt.setAttribute("name",rt),Gt.setAttribute("value",qe),xe.appendChild(Gt)},Ce=function(xe){return xe&&xe!=="false"},et=function(xe,rt,qe){Fe(He)<=4.2&&(qe=!0);var Gt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==He||ggbHTML5LoadedCodebaseIsWebSimple&&!Ee)&&(Gt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var at=document.createElement("div");at.classList.add("appletParameters","notranslate");var st=rt.width,nt=rt.height;if(rt.disableAutoScale=rt.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():rt.disableAutoScale,rt.width!==void 0)if(Fe(He)<=4.4)Ce(rt.showToolBar)&&(rt.height-=7),Ce(rt.showAlgebraInput)&&(rt.height-=37),rt.width<605&&Ce(rt.showToolBar)&&(rt.width=605,st=605);else{var rn=100;(Ce(rt.showToolBar)||Ce(rt.showMenuBar))&&(rt.hasOwnProperty("customToolBar")&&(rt.customToolbar=rt.customToolBar),rn=Ce(rt.showMenuBar)?245:155),st<rn&&(rt.width=rn,st=rn)}at.style.border="none",at.style.display="inline-block";for(var kt in rt)rt.hasOwnProperty(kt)&&kt!=="appletOnLoad"&&at.setAttribute("data-param-"+kt,rt[kt]);ft&&at.setAttribute("data-param-fontscssurl",ft),bn.resize=function(){GGBAppletUtils.responsiveResize(xe,rt)},window.addEventListener("resize",function(ht){bn.resize()});var ae=typeof rt.appletOnLoad=="function"?rt.appletOnLoad:function(){};if(!qe&&rt.width!==void 0){rt.hasOwnProperty("showSplash")||at.setAttribute("data-param-showSplash","false");var re=xe.querySelector(".applet_scaler.prerender"),te=re!==null;if(te)var oe=re.querySelector(".ggb_preview");else{var oe=lt(st,nt,rt.borderColor,!1);re=document.createElement("div"),re.className="applet_scaler",re.style.position="relative",re.style.display="block",re.style.width=st+"px",re.style.height=nt+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(re,"66%"),Fe(He)>=5?(rt.appletOnLoad=function(ht){var Pt=xe.querySelector(".ggb_preview");Pt&&Pt.parentNode.removeChild(Pt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(re),window.GGBT_wsf_view&&$(window).trigger("resize"),ae(ht)},te||re.appendChild(oe)):at.appendChild(oe),re.appendChild(at),te||xe.appendChild(re),setTimeout(function(){bn.resize()},1)}else{var de=document.createElement("div");de.className="applet_scaler",de.style.position="relative",de.style.display="block",de.appendChild(at),xe.appendChild(de),rt.appletOnLoad=function(ht){bn.resize(),ae(ht)}}function ne(ht,Pt){Pt&&typeof Pt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(ht,Pt.appletOnLoad):renderGGBElement(ht),_t("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Pt)}function se(ht,Pt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:ht,params:Pt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Le){ne(Le.article,Le.params)}),html5AppletsToProcess=null)},Fe(He)<5&&(ht.className+=" geogebraweb")):ne(ht,Pt)}if(Gt){scriptLoadStarted=!0;for(var Oe=0;Oe<at.childNodes.length;Oe++){var bt=at.childNodes[Oe].tagName;bt==="TABLE"&&(at.removeChild(at.childNodes[Oe]),Oe--)}if(ggbHTML5LoadedScript!==null){var Ge=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Ge!=null&&Ge.parentNode.removeChild(Ge)}var We=document.createElement("script"),it=function(){se(at,rt)};We.src=Re+Me,ggbHTML5LoadedCodebaseIsWebSimple=Ee,ggbHTML5LoadedCodebaseVersion=He,ggbHTML5LoadedScript=We.src,_t("GeoGebra HTML5 codebase loaded: '"+Re+"'.",rt),!ye&&(!me||me=="5.0")?(Ee?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),it()):Re.requirejs?__webpack_require__.e(3861).then(function(){var ht=[__webpack_require__(40341)];it.apply(null,ht)}.bind(this)).catch(__webpack_require__.oe):(We.onload=it,xe.appendChild(We))}else se(at,rt);rt.height=nt,rt.width=st},Te=function(xe,rt,qe){var Gt=lt(rt.width,rt.height,rt.borderColor,qe),at=document.createElement("div");at.style.position="relative",at.style.display="block",at.style.width=rt.width+"px",at.style.height=rt.height+"px",at.className="applet_screenshot applet_scaler"+(qe?" applet_screenshot_play":""),at.appendChild(Gt);var st=GGBAppletUtils.getScale(rt,xe,qe);qe?(xe.appendChild(_e()),window.GGBT_wsf_view||(xe.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(at,"66%"),xe.appendChild(at),st!==1&&!isNaN(st)&&(GGBAppletUtils.scaleElement(at,st),at.style.width=rt.width+"px",at.style.height=rt.height+"px",at.parentNode.style.width=rt.width*st+"px",at.parentNode.style.height=rt.height*st+"px"),bn.resize=function(){ue(xe,Gt,at,qe)},window.addEventListener("resize",function(nt){bn.resize()}),bn.resize()};function ue(xe,rt,qe,Gt){if(xe.contains(rt)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(xe.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(xe)}var at=GGBAppletUtils.getScale(z,xe,Gt);qe.parentNode!==null&&(!isNaN(at)&&at!==1?(GGBAppletUtils.scaleElement(qe,at),qe.parentNode.style.width=z.width*at+"px",qe.parentNode.style.height=z.height*at+"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(xe),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}bn.onExitFullscreen=function(xe,rt){rt.appendChild(xe)};var mt=function(xe,rt,qe,Gt){Te(xe,rt,!0);for(var at=function(){var rn=[];for(nt=0;nt<xe.childNodes.length;nt++)rn.push(xe.childNodes[nt]);if(window.GGBT_wsf_view){var kt=window.GGBT_wsf_view.renderFullScreen(xe,rt.id),ae=document.getElementById("fullscreencontainer"),re=jQuery(xe).find(".fullscreencontent");re.length>0?(kt.remove(),re.attr("id","fullscreencontent").show(),jQuery(ae).append(re),window.dispatchEvent(new Event("resize"))):et(kt,rt,!1),window.GGBT_wsf_view.launchFullScreen(ae)}else tt=Gt,et(xe,rt,!1);if(!window.GGBT_wsf_view)for(nt=0;nt<rn.length;nt++)xe.removeChild(rn[nt])},st=xe.getElementsByClassName("ggb_preview_play"),nt=0;nt<st.length;nt++)st[nt].addEventListener("click",at,!1),st[nt].addEventListener("ontouchstart",at,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(xe),$e()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},_e=function(){var xe=document.createElement("div");if(xe.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var rt='.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=rt:qe.appendChild(document.createTextNode(rt)),document.getElementsByTagName("head")[0].appendChild(qe)}return xe},lt=function(xe,rt,qe,Gt){var at=document.createElement("div");at.className="ggb_preview",at.style.position="absolute",at.style.zIndex="90",at.style.width=xe-2+"px",at.style.height=rt-2+"px",at.style.top="0px",at.style.left="0px",at.style.overflow="hidden",at.style.backgroundColor="white";var st="lightgrey";qe!==void 0&&(qe==="none"?st="transparent":st=qe),at.style.border="1px solid "+st;var nt=document.createElement("img");if(nt.style.position="relative",nt.style.zIndex="1000",nt.style.top="-1px",nt.style.left="-1px",we!==null&&nt.setAttribute("src",we),nt.style.opacity=.7,Ne!==null){var rn,kt,ae;if(!Gt){rn=document.createElement("img"),rn.style.position="absolute",rn.style.zIndex="1001",rn.style.opacity=1,nt.style.opacity=.3,kt=360,kt>xe/4*3&&(kt=xe/4*3),ae=kt/5.8,rn.setAttribute("src",Ne),rn.setAttribute("width",kt),rn.setAttribute("height",ae);var re=(xe-kt)/2,te=(rt-ae)/2;rn.style.left=re+"px",rn.style.top=te+"px",at.appendChild(rn)}}return at.appendChild(nt),at},Mt=function(xe){return xe=xe.toLowerCase(),xe==="html5"||xe==="screenshot"?xe:"html5"},be=["web","webSimple","web3d","tablet","tablet3d","phone"],ge=function(xe,rt){if(He=xe,rt){Ft(He,!0);return}var qe=!he;if(qe){var Gt=Fe(He);!isNaN(Gt)&&Gt<4.4&&(qe=!1)}var at,st;window.location.protocol.substr(0,4)==="http"?at=window.location.protocol:at="http:";var nt=He.indexOf("//");nt>0?st=He:nt===0?st=at+He:st="https://www.geogebra.org/apps/5.2.814.0/";for(var rn in be)if(He.slice(be[rn].length*-1)===be[rn]||He.slice((be[rn].length+1)*-1)===be[rn]+"/"){Ft(st,!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&&!Ce(z.showToolBar)&&!Ce(z.showMenuBar)&&!Ce(z.showAlgebraInput)&&!Ce(z.enableRightClick)&&(!z.appName||z.appName=="classic")?st+="webSimple/":st+="web3d/",Ft(st,!1)},Ft=function(xe,rt){if(xe.requirejs){Re=xe;return}xe.slice(-1)!=="/"&&(xe+="/"),Re=xe,rt===null&&(rt=xe.indexOf("http")===-1),Ie=rt,Me="web.nocache.js",Ee=!1;var qe=Re.split("/");qe.length>1&&(!rt&&qe[qe.length-2]==="webSimple"?(Me="webSimple.nocache.js",Ee=!0):be.indexOf(qe[qe.length-2])>=0&&(Me=qe[qe.length-2]+".nocache.js")),qe=xe.split("/"),He=qe[qe.length-3],He.substr(0,4)==="test"?He=He.substr(4,1)+"."+He.substr(5,1):(He.substr(0,3)==="war"||He.substr(0,4)==="beta")&&(He="5.0");var Gt=parseFloat(He);Gt!==NaN&&Gt<5&&xe.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Gt+" is deprecated. Using version latest instead."),ge("5.0",rt))},_t=function(xe,rt){window.console&&window.console.log&&(!rt||typeof rt.showLogging=="undefined"||rt.showLogging&&rt.showLogging!=="false")&&console.log(xe)};z.material_id!==void 0?gt(Tt):Tt();function Tt(){var xe=zt;me!==null?xe=me:parseFloat(xe)<5&&(xe="5.0"),ge(xe,!1),ye!==null&&Ft(ye,Ie),ve=!0}return bn},GGBAppletUtils=function(){"use strict";function bn(){return window.GGBT_wsf_edit!==void 0}function zt(ve,me){me!=1?(ve.style.transformOrigin="0% 0% 0px",ve.style.webkitTransformOrigin="0% 0% 0px",ve.style.transform="scale("+me+","+me+")",ve.style.webkitTransform="scale("+me+","+me+")",ve.style.maxWidth="initial",ve.querySelector(".ggb_preview")!==null&&(ve.querySelector(".ggb_preview").style.maxWidth="initial"),ve.querySelectorAll(".ggb_preview img")[0]!==void 0&&(ve.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),ve.querySelectorAll(".ggb_preview img")[1]!==void 0&&(ve.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(ve.style.transform="none",ve.style.webkitTransform="none")}function z(ve,me,ye,Ae,pe,le){var Re=null;if(le!=null&&le!="")for(var Ie=ve.parentNode;Ie!=null;)if((" "+Ie.className+" ").indexOf(" "+le+" ")>-1){Re=Ie;break}else Ie=Ie.parentNode;var tt=0,He=0,Me=0,Ee=0,we=0,Ne=0,Xe=0;if(Re)tt=Re.offsetWidth,He=Math.max(Ae?Re.offsetWidth:0,Re.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(tt=Math.min(window.innerWidth,document.documentElement.clientWidth),He=Math.min(window.innerHeight,document.documentElement.clientHeight),Me=tt):(tt=window.innerWidth,He=window.innerHeight,Me=window.innerWidth),ve){var ft=ve.getBoundingClientRect();ft.left>0&&ft.left<=tt&&(pe===void 0||!pe)&&(document.dir==="rtl"?(we=tt-ft.width-ft.left,Ne=Me<=480?10:30):(Ne=ft.left,we=Me<=480?10:30),Ee=Ne+we)}if(ve&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var Pe=ve.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ee=40,Xe=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ee=0,Xe=40)}}return ve&&((ye===void 0||!ye)&&me>0&&me+Ee<tt?tt=me:tt-=Ee,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ye===void 0||!ye)&&(He-=Xe)),{width:tt,height:He}}function y(ve,me,ye,Ae,pe){if(ve.isScreenshoGenerator)return 1;var le=Ae!==void 0&&Ae,Re=ve.noScaleMargin!=null&&ve.noScaleMargin,Ie=function(Pe){return Pe&&Pe!=="false"},tt=Ie(ve.autoHeight),He=z(me,ve.width,ye,tt,le&&window.GGBT_wsf_view||Re,pe),Me=parseInt(He.width),Ee=ve.width,we=ve.height;if(Ee===void 0){var Ne=me.querySelector(".appletParameters");Ne&&(Ee=Ne.offsetWidth,we=Ne.offsetHeight)}var Xe=Me/Ee,ft=le?1:He.height/we;return ye!==void 0&&!ye&&(Xe=Math.min(1,Xe),ft=Math.min(1,ft)),Math.min(Xe,ft)}function he(ve,me,ye){var Ae=1,pe,le=!1;if(ve.hasOwnProperty("allowUpscale")&&(le=ve.allowUpscale),ve.hasOwnProperty("scale")&&(Ae=parseFloat(ve.scale),(isNaN(Ae)||Ae===null||Ae===0)&&(Ae=1),Ae>1&&(le=!0)),me&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(le=!0),!(ve.hasOwnProperty("disableAutoScale")&&ve.disableAutoScale))pe=y(ve,me,le,ye,ve.scaleContainerClass);else return Ae;return le&&(!ve.hasOwnProperty("scale")||Ae===1)?pe:Math.min(Ae,pe)}function ce(ve){var me=Math.min(window.innerWidth,document.documentElement.clientWidth),ye=Math.min(window.innerHeight,document.documentElement.clientHeight),Ae=ve.getBoundingClientRect(),pe=(me-Ae.width)/2,le=(ye-Ae.height)/2;le<0&&(le=0),ve.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(pe<40?ve.style.left="40px":ve.style.left=pe+"px",ve.style.top=le+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(le<40?ve.style.top="40px":ve.style.top=le+"px",ve.style.left=pe+"px")}function je(ve,me){var ye=ve.querySelector(".appletParameters");if(ye){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(me.id!==ye.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(ve)}if(ye.parentElement&&/fullscreen/.test(ye.parentElement.className))return;var Ae=he(me,ve);bn()&&ye.setAttribute("data-param-scale",Ae);for(var pe=null,le=0;le<ve.childNodes.length;le++)if(ve.childNodes[le].className!==void 0&&ve.childNodes[le].className.match(/^applet_scaler/)){pe=ve.childNodes[le];break}if(pe!==null&&pe.querySelector(".noscale")!==null)return;var Re=me.id!==void 0?me.id:"ggbApplet",Ie=window[Re];(Ie==null||!Ie.recalculateEnvironments)&&pe!==null&&!pe.className.match(/fullscreen/)&&(pe.parentNode.style.transform="",!isNaN(Ae)&&Ae!==1?(pe.parentNode.style.width=me.width*Ae+"px",pe.parentNode.style.height=me.height*Ae+"px",zt(pe,Ae)):(zt(pe,1),pe.parentNode.style.width=me.width+"px",pe.parentNode.style.height=me.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&ce(ve),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(ye).parents(".content-added-content"))}}return{responsiveResize:je,isFlexibleWorksheetEditor:bn,positionCenter:ce,getScale:he,scaleElement:zt}}();__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,zt){}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 zt=s[L].bindings;s[L].bindings=function(){for(var z=zt?zt():{},y=bn[webModule.__softPermutationId],he=O;he<y.length;he++){var ce=y[he];z[ce[O]]=ce[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 zt=document.compatMode==U?V:W;t.write(zt+X),t.close()}}}function w(bn){function zt(y){function he(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var ce=he();if(ce){y();return}function je(){if(!ce){if(!he())return;ce=!0,y(),o.removeEventListener&&o.removeEventListener(Z,je,!1),ve&&clearInterval(ve)}}o.addEventListener&&o.addEventListener(Z,je,!1);var ve=setInterval(function(){je()},$)}function z(y){var he=u(),ce=he.body,je=he.createElement(_);je.language=ab,je.crossOrigin=W,je.src=y,webModule.__errFn&&(je.onerror=function(){webModule.__errFn(L,new Error(bb+y))}),ce.appendChild(je)}zt(function(){z(bn)})}webModule.__startLoadingFragment=function(bn){return C(bn)},webModule.__installRunAsyncCode=function(bn){var zt=u(),z=zt.body,y=zt.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 zt=c[bn];return zt==null?null:zt},r=d,webModule.__errFn=e}function B(){function bn(ve){var me=ve.lastIndexOf(rb);me==-1&&(me=ve.length);var ye=ve.indexOf(sb);ye==-1&&(ye=ve.length);var Ae=ve.lastIndexOf(tb,Math.min(ye,me));return Ae>=O?ve.substring(O,Ae+P):W}function zt(ve){if(!ve.match(/^\w+:\/\//)){var me=o.createElement(ub);me.src=ve+vb,ve=bn(me.src)}return ve}function z(){var ve=__gwt_getMetaProperty(wb);return ve!=null?ve:W}function y(){for(var ve=o.getElementsByTagName(_),me=O;me<ve.length;++me)if(ve[me].src.indexOf(xb)!=-1)return bn(ve[me].src);return W}function he(){var ve=o.getElementsByTagName(yb);return ve.length>O?ve[ve.length-P].href:W}function ce(){var ve=o.location;return ve.href==ve.protocol+zb+ve.host+ve.pathname+ve.search+ve.hash}var je=z();return je==W&&(je=y()),je==W&&(je=he()),je==W&&ce()&&(je=bn(o.location.href)),je=zt(je),je}function C(bn){return bn.match(/^\//)||bn.match(/^[a-zA-Z]+:\/\//)?bn:webModule.__moduleBase+bn}function D(){var bn=[],zt=O,z=[],y=[];function he(ve){var me=y[ve](),ye=z[ve];if(me in ye)return me;var Ae=[];for(var pe in ye)Ae[ye[pe]]=pe;throw r&&r(ve,Ae,me),null}if(__gwt_isKnownPropertyValue=function(ve,me){return me in z[ve]},webModule.__getPropMap=function(){var ve={};for(var me in z)z.hasOwnProperty(me)&&(ve[me]=he(me));return ve},webModule.__computePropValue=he,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var ce;try{ce=Cb;var je=ce.indexOf(Db);je!=-1&&(zt=parseInt(ce.substring(je+P),$),ce=ce.substring(O,je))}catch(ve){}return webModule.__softPermutationId=zt,C(ce+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase="/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},28735:function(bn,zt,z){"use strict";z.d(zt,{Ax:function(){return je},Ds:function(){return ve},KI:function(){return ye},SI:function(){return ce},f1:function(){return he}});var y=z(74128);function he(Ae){let pe=!0;if(Ae.length>0){for(let le=0;le<Ae.length;le++)if(Ae[le].compile_success==0||!Ae[le].compile_success){pe=!1;break}}else pe=!1;return pe}function ce(Ae,pe=""){let le=[];for(let Re=0;Re<Ae.length;Re++){let Ie=Ae[Re],tt=pe?`${pe}/${Ie.name}`:`${Ie.name}`;le.push({title:Ie.name,type:Ie.type,isLeaf:Ie.type!=="tree",key:tt})}return le}function je(Ae,pe,le){for(let Re=0;Re<Ae.length;Re++){let Ie=Ae[Re];if(Ie.key===pe){Ie.children=le;break}Ie.children&&je(Ie.children,pe,le)}return Ae}function ve(Ae,pe,le){let Re;return function(){let Ie=this,tt=arguments,He=function(){Re=null,le||Ae.apply(Ie,tt)},Me=le&&!Re;clearTimeout(Re),Re=setTimeout(He,pe),Me&&Ae.apply(Ie,tt)}}const me=!0,ye=y.Z.API_SERVER},96935:function(bn,zt,z){"use strict";z.d(zt,{Z:function(){return He}});var y=z(7939),he=z(59301),ce=Object.defineProperty,je=Object.defineProperties,ve=Object.getOwnPropertyDescriptors,me=Object.getOwnPropertySymbols,ye=Object.prototype.hasOwnProperty,Ae=Object.prototype.propertyIsEnumerable,pe=(Me,Ee,we)=>Ee in Me?ce(Me,Ee,{enumerable:!0,configurable:!0,writable:!0,value:we}):Me[Ee]=we,le=(Me,Ee)=>{for(var we in Ee||(Ee={}))ye.call(Ee,we)&&pe(Me,we,Ee[we]);if(me)for(var we of me(Ee))Ae.call(Ee,we)&&pe(Me,we,Ee[we]);return Me},Re=(Me,Ee)=>je(Me,ve(Ee)),Ie=(Me,Ee)=>{var we={};for(var Ne in Me)ye.call(Me,Ne)&&Ee.indexOf(Ne)<0&&(we[Ne]=Me[Ne]);if(Me!=null&&me)for(var Ne of me(Me))Ee.indexOf(Ne)<0&&Ae.call(Me,Ne)&&(we[Ne]=Me[Ne]);return we},tt=(Me,Ee,we)=>new Promise((Ne,Xe)=>{var ft=Ze=>{try{Fe(we.next(Ze))}catch($e){Xe($e)}},Pe=Ze=>{try{Fe(we.throw(Ze))}catch($e){Xe($e)}},Fe=Ze=>Ze.done?Ne(Ze.value):Promise.resolve(Ze.value).then(ft,Pe);Fe((we=we.apply(Me,Ee)).next())});const He=Me=>{var Ee=Me,{children:we}=Ee,Ne=Ie(Ee,["children"]);const[Xe,ft]=(0,he.useState)(!1);return he.createElement(y.ZP,Re(le({},Ne),{loading:Xe,onClick:Pe=>tt(void 0,null,function*(){try{ft(!0),yield Ne.onClick(Pe),ft(!1)}catch(Fe){console.error(Fe),ft(!1)}})}),we)}},71067:function(bn,zt,z){"use strict";z.d(zt,{Z:function(){return tt}});var y=z(59301),he=z(6767),ce=z(37568),je={codeBox:"codeBox___WpkVl"},ve=z(92310),me=z.n(ve),ye=Object.defineProperty,Ae=(He,Me,Ee)=>Me in He?ye(He,Me,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):He[Me]=Ee,pe=(He,Me,Ee)=>Ae(He,typeof Me!="symbol"?Me+"":Me,Ee),le=(He,Me,Ee)=>new Promise((we,Ne)=>{var Xe=Fe=>{try{Pe(Ee.next(Fe))}catch(Ze){Ne(Ze)}},ft=Fe=>{try{Pe(Ee.throw(Fe))}catch(Ze){Ne(Ze)}},Pe=Fe=>Fe.done?we(Fe.value):Promise.resolve(Fe.value).then(Xe,ft);Pe((Ee=Ee.apply(He,Me)).next())});class Re extends y.Component{constructor(Me){super(Me),pe(this,"canvas"),pe(this,"randomNum",(Ee,we)=>Math.floor(Math.random()*(we-Ee)+Ee)),pe(this,"drawPic",()=>{this.randomCode()}),pe(this,"reloadPic",()=>{this.drawPic()}),pe(this,"changeCode",Ee=>{console.log(Ee.target.value,222),this.setState({value:Ee.target.value,showError:!1})}),pe(this,"onVerify",()=>{let Ee;return this.state.value.toLowerCase()!==""&&this.state.value.toLowerCase()!==this.state.code.toLowerCase()?(Ee=!0,he.ZP.error("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u9A8C\u8BC1\u7801"),this.reloadPic()):this.state.value.toLowerCase()===""?(Ee=!0,he.ZP.error("\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801")):this.state.value.toLowerCase()===this.state.code.toLowerCase()&&(Ee=!1),this.setState({showError:Ee}),Ee}),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(Me,Ee){const we=this.randomNum(Me,Ee),Ne=this.randomNum(Me,Ee),Xe=this.randomNum(Me,Ee);return`rgb(${we}, ${Ne}, ${Xe})`}drawText(Me,Ee,we){Me.fillStyle=this.randomColor(this.state.colorMin,this.state.colorMax);const Ne=this.randomNum(this.state.fontSizeMin,this.state.fontSizeMax);Me.font=Ne+"px SimHei";const Xe=10,ft=(this.state.contentWidth-40)/(this.state.code.length-1);let Pe=Xe;we>0&&(Pe=Xe+we*ft);let Fe=this.randomNum(this.state.fontSizeMax,this.state.contentHeight-5);Ne>40&&(Fe=40);const Ze=this.randomNum(-10,10);Me.translate(Pe,Fe),Me.rotate(Ze*Math.PI/180),Me.fillText(Ee,0,0),Me.rotate(-Ze*Math.PI/180),Me.translate(-Pe,-Fe)}drawLine(Me){for(let Ee=0;Ee<1;Ee++)Me.strokeStyle=this.randomColor(this.state.lineColorMin,this.state.lineColorMax),Me.beginPath(),Me.moveTo(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight)),Me.lineTo(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight)),Me.stroke()}drawDot(Me){for(let Ee=0;Ee<100;Ee++)Me.fillStyle=this.randomColor(0,255),Me.beginPath(),Me.arc(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight),1,0,2*Math.PI),Me.fill()}randomCode(){let Me="";const Ee="QWERTYUPLKJHGFDSAZXCVBNMqwertyupkjhgfdsazxcvbnm1234567890";for(let we=0;we<this.state.codeLength;we++){const Ne=Math.floor(Math.random()*57);Me+=Ee[Ne]}this.setState({code:Me},()=>{const Ne=this.canvas.current.getContext("2d");Ne.textBaseline="bottom",Ne.fillStyle=this.randomColor(this.state.backgroundColorMin,this.state.backgroundColorMax),Ne.fillRect(0,0,this.state.contentWidth,this.state.contentHeight);for(let Xe=0;Xe<this.state.code.length;Xe++)this.drawText(Ne,this.state.code[Xe],Xe);this.drawLine(Ne),this.drawDot(Ne)})}render(){const{className:Me,width:Ee=300}=this.props;return y.createElement("div",{className:me()(je.codeBox,Me),style:{width:Ee}},y.createElement("aside",null,y.createElement(ce.default,{value:this.state.value,onChange:this.changeCode,placeholder:"\u8BF7\u8F93\u5165\u56FE\u7247\u4E2D\u7684\u9A8C\u8BC1\u7801"})),y.createElement("div",null,y.createElement("canvas",{onClick:this.reloadPic,ref:this.canvas,width:"100",height:"30"}),y.createElement("div",{className:"current",onClick:this.reloadPic},"\u770B\u4E0D\u6E05\uFF1F\u6362\u4E00\u5F20")))}}const Ie=(He,Me)=>{let Ee;Modal.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:React.createElement("div",null,React.createElement("p",null,Me),React.createElement(Re,{ref:we=>Ee=we})),onOk:()=>le(void 0,null,function*(){if(Ee.onVerify())return Promise.reject();He()})})};var tt=Re},20633:function(bn,zt,z){"use strict";z.d(zt,{Z:function(){return pe}});var y=z(59301),he=z(37568),ce=z(96599),je=z(6767),ve={flex:"flex___eLcnP",flex1:"flex1___yUTT7",color666:"color666___TiUhG",error:"error___gTTtv",deleteIcon:"deleteIcon___mnZW1",addIcon:"addIcon___JC5NS"},me=z(62772);const{TextArea:ye}=he.default;class Ae extends y.Component{constructor(Re){super(Re),this.state={inputVisible:!1,EditInputIndex:-1}}render(){let{index:Re,onAnswerChange:Ie,addChildAnswer:tt,exerciseIsPublish:He,answers:Me,activeOptionErrorIndex:Ee,flex:we="0 0 1000px"}=this.props;console.log("----",Me);let{inputVisible:Ne,EditInputIndex:Xe}=this.state;return y.createElement("div",{className:ve.flex},y.createElement("div",{className:`${ve.color666} mb5 mt6`,style:{flex:"0 0 90px"}},"\u7B54\u6848(\u586B\u7A7A",Re+1,"):"),y.createElement("div",{style:{border:"1px solid #f6f6f6",flex:1,padding:10}},Me==null?void 0:Me.map((ft,Pe)=>y.createElement(y.Fragment,null,Xe!==Pe?(ft==null?void 0:ft.length)>0?y.createElement(ce.default,{className:"edit-tag",key:ft,closable:!(Re===0&&Pe===0),onClose:Fe=>{Fe.preventDefault(),(Me==null?void 0:Me.length)===1&&Pe===0?this.props.deleteChildAnswermain(Re,Pe):this.props.deleteChildAnswer(Re,Pe)}},y.createElement("span",{onDoubleClick:Fe=>{this.setState({EditInputIndex:Pe}),Fe.preventDefault()}},ft)):y.createElement(he.default,{defaultValue:ft,style:{width:78,marginRight:8,height:24,verticalAlign:"top"},onBlur:Fe=>{if(Fe.target.value.replaceAll(" ","").length<=0){je.ZP.info("\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7EAF\u7A7A\u683C");return}Ie(Re,Pe,Fe.target.value),this.setState({EditInputIndex:-1,inputVisible:!1})}}):y.createElement(he.default,{defaultValue:ft,style:{width:78,marginRight:8,height:24,verticalAlign:"top"},onBlur:Fe=>{if(Fe.target.value.replaceAll(" ","").length<=0){je.ZP.info("\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7EAF\u7A7A\u683C");return}Ie(Re,Pe,Fe.target.value),this.setState({EditInputIndex:-1,inputVisible:!1})}}))),!Ne&&y.createElement(ce.default,{className:"site-tag-plus",onClick:()=>{tt(Re),this.setState({inputVisible:!0})}},y.createElement(me.Z,null)," \u65B0\u589E\u7B54\u6848")))}}var pe=Ae},90463:function(bn,zt,z){"use strict";z.d(zt,{Z:function(){return me}});var y=z(37639),he={text:"text___FxbAX",wrap:"wrap___UlBQ1",contact:"contact____pUDq",img:"img___BapAv"},ce=z(32637),je=z(59301),me=({type:ye,style:Ae})=>{const pe=je.createElement("div",{className:he.wrap,onClick:le=>{le.preventDefault(),le.stopPropagation()}},je.createElement("p",null,ye==="shixun"||ye==="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",je.createElement("br",null),"\u6839\u636E\u5E73\u53F0\u4F7F\u7528\u89C4\u5219\uFF0C\u9700\u8981\u6388\u6743\u624D\u80FD\u4F7F\u7528\u3002",ye==="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"),je.createElement("div",{className:he.contact},je.createElement("div",{className:he.img},je.createElement("img",{src:ce,width:"124px",height:"124px"})),je.createElement("div",{className:"tc font14 mt10",style:{color:"#777A93"}},"\u626B\u4E00\u626B\uFF0C\u83B7\u53D6\u6388\u6743\u7801")));return je.createElement(y.Z,{content:pe},je.createElement("span",{className:he.text,style:Ae},"\u9AD8\u6D88\u8017"))}},16750:function(bn,zt,z){"use strict";z.d(zt,{Z:function(){return Re}});var y=z(59301),he={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},ce=z(92310),je=z.n(ce),ve=z(29787),me=z(2859),ye=z(38147),Ae=z(65862),pe=(Ie,tt,He)=>new Promise((Me,Ee)=>{var we=ft=>{try{Xe(He.next(ft))}catch(Pe){Ee(Pe)}},Ne=ft=>{try{Xe(He.throw(ft))}catch(Pe){Ee(Pe)}},Xe=ft=>ft.done?Me(ft.value):Promise.resolve(ft.value).then(we,Ne);Xe((He=He.apply(Ie,tt)).next())}),Re=({data:Ie,className:tt,fullWidth:He,style:Me={},onClose:Ee,onOk:we,showFullTools:Ne,noAssociationId:Xe})=>{const ft=(0,y.useRef)(null),Pe=(0,y.useRef)(null),Fe=(0,y.useRef)(null),Ze=(0,y.useRef)(null),[$e,gt]=(0,y.useState)(!1),[ot,Qe]=(0,y.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,y.useEffect)(()=>(Fe.current||(Fe.current=document.createElement("style"),document.head.appendChild(Fe.current)),Ie!=null&&Ie.visible?(document.body.setAttribute("data-custom","y-hidden"),Fe.current.innerHTML=" html { overflow-y: hidden; }",Ie!=null&&Ie.src&&ct()):(document.body.removeAttribute("data-custom"),Fe.current&&(document.head.removeChild(Fe.current),Fe.current=null)),()=>{document.body.removeAttribute("data-custom"),Fe.current&&(document.head.removeChild(Fe.current),Fe.current=null)}),[Ie==null?void 0:Ie.visible]);const ct=()=>pe(void 0,null,function*(){gt(!0),Qe("\u6B63\u5728\u52A0\u8F7D\u4E2D");const ue=yield(0,Ae.ZJ)(Ie==null?void 0:Ie.src);ft.current.src="",ft.current.src=ue,ft.current.onload=function(){Te()},gt(!1),Qe("")}),Ce=ue=>pe(void 0,null,function*(){gt(!0),Qe("\u6B63\u5728\u4FDD\u5B58\u4E2D");const mt=yield(0,ye.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Ie.title,file:ue.dataUrl}});mt!=null&&mt.id&&!Xe?(yield(0,ye.ZP)(`/api/attachments/${Ie.id}/add_subitem.json`,{method:"post",body:{subitem_id:mt==null?void 0:mt.id,settings:JSON.stringify(ue.state)}})).status===0&&we():mt!=null&&mt.id&&we(mt),gt(!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(_e=>{const lt=document.querySelector(_e.name);lt&&lt.setAttribute("title",_e.title)})},Te=()=>{Pe.current=new me.hP(ft.current),Pe.current.targetRoot=Ze.current,Pe.current.addEventListener("render",Ce),Pe.current.addEventListener("beforeclose",Ee),Ne&&(Pe.current.availableMarkerTypes=Pe.current.ALL_MARKER_TYPES,Pe.current.uiStyleSettings.redoButtonVisible=!0,Pe.current.uiStyleSettings.notesButtonVisible=!0,Pe.current.uiStyleSettings.zoomButtonVisible=!0,Pe.current.uiStyleSettings.zoomOutButtonVisible=!0,Pe.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=Pe.current.uiStyleSettings,Pe.current.show(),Ie!=null&&Ie.snapshotData&&Pe.current.restoreState(Ie.snapshotData),setTimeout(()=>{window.scrollTo(0,0),et()},300)};return y.createElement(y.Fragment,null,(Ie==null?void 0:Ie.visible)&&y.createElement(ve.Z,{spinning:$e,tip:ot,style:{position:"absolute",width:"100vw"}},y.createElement("div",{ref:Ze,className:je()(he.imageDimensions,tt,He?he.fullWidth:""),style:Me},y.createElement("img",{className:he.img,ref:ft}))))}},27687:function(bn,zt,z){"use strict";var y=z(59301),he=z(96408),ce=z(48136),je=z(99298),ve=z(62957),me=z(59301);const ye=(0,y.forwardRef)(({callback:Ae,width:pe,onChange:le,disabled:Re,readOnly:Ie,type:tt="",value:He="",style:Me={}},Ee)=>{const we=(0,y.useRef)(),Ne=(0,y.useRef)(),[Xe,ft]=(0,y.useState)(0),[Pe,Fe]=(0,y.useState)(0),[Ze,$e]=(0,y.useState)(!1),gt=()=>{var Ce=document.createElement("div");Ce.innerHTML=we.current.getValue();var et=Ce.innerText;return Ae&&Ae(et),et};(0,y.useImperativeHandle)(Ee,()=>({getData:gt}));const ot=Ce=>{Ce.preventDefault();const et=Ce.clientX-Xe,Te=Ce.clientY-Pe;document.body.onmousemove=ue=>{let mt=ue.clientX-et,_e=ue.clientY-Te;const lt=document.getElementsByClassName("markdown-popup-form")[0],Mt=window.innerWidth-lt.offsetWidth,be=window.innerHeight-lt.offsetHeight;mt=Math.max(0,Math.min(mt,Mt)),_e=Math.max(0,Math.min(_e,be)),Qe(ue.clientX,ue.clientY,et,Te)&&(ft(mt),Fe(_e))},document.body.onmouseup=function(){document.body.onmousemove=null}},Qe=(Ce,et,Te,ue)=>{const mt=document.body.clientHeight,_e=document.body.clientWidth;return Ce<20&&Te>Ce||Ce>_e-20&&Te<Ce||et<20&&ue>et||et>mt-20&&ue<et?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};(0,y.useEffect)(()=>{Ze&&setTimeout(()=>{const Ce=document.getElementsByClassName("markdown-popup-form")[0],et=window.innerWidth/2-Ce.offsetWidth/2,Te=window.innerHeight/2-Ce.offsetHeight/2;ft(et),Fe(Te)},0)},[Ze]);const ct=()=>{Re||Ie||$e(!0)};return me.createElement("div",{style:Me},me.createElement("div",{style:{width:pe||"100%",position:"relative"},className:`${he.Z.mathFillWrap} ${Re||Ie?"cursorDefault":""}`,onClick:()=>ct()},me.createElement("math-field",{disabled:Re,locale:"zh_cn",class:`${he.Z.mathField} ${tt}`,readOnly:Ie,placeholder:"\u8BF7\u8F93\u5165\u516C\u5F0F",ref:we,style:{width:"100%",fontSize:He?18:14},value:He||""})),me.createElement(ve.default,{maskClosable:!1,centered:!0,width:860,style:{position:"absolute",left:Xe,top:Pe},title:me.createElement("div",{style:{cursor:"move"},onMouseDown:ot},"\u8F93\u5165\u516C\u5F0F"),open:Ze,onOk:()=>{const Ce=Ne.current.getData();we.current.setValue(Ce),le(Ce),$e(!1)},onCancel:()=>{$e(!1)},destroyOnClose:!0,className:"markdown-popup-form"},me.createElement(je.Z,{value:He,ref:Ne,onChange:le,showSaveButton:!1})))});zt.Z=ye},99298:function(bn,zt,z){"use strict";var y=z(59301),he=z(77019),ce=z(5269),je=z(31691),ve=z(7939),me=z(95097),ye=z(96408),Ae=z(48136),pe=z(59301);const le=(0,y.forwardRef)(({callback:Re,showSaveButton:Ie,value:tt=""},He)=>{const Me=(0,y.useRef)(),Ee=[{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 "}]}]}],we=[{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}`}]}]}],Ne=Pe=>{Me.current.setValue(Me.current.getValue()+" "+Pe.value+" ")},Xe=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:pe.createElement(he.Z,{className:ye.Z.lists,gutter:[10,10]},Ee.map((Pe,Fe)=>pe.createElement(ce.Z,{flex:"110px",className:ye.Z.item},pe.createElement("div",null,pe.createElement(me.Z,{value:`$$${Pe.value}$$`}),Pe.name),pe.createElement("div",{className:ye.Z.children},Pe.children.map((Ze,$e)=>pe.createElement("div",{key:$e},pe.createElement("h1",null,Ze.name),pe.createElement(he.Z,{gutter:[10,10]},Ze.data.map((gt,ot)=>pe.createElement(ce.Z,{key:ot,onClick:()=>Ne(gt),className:ye.Z.diamond},pe.createElement(me.Z,{value:"`$$"+gt.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:pe.createElement(he.Z,{className:ye.Z.lists,gutter:[10,10]},we.map((Pe,Fe)=>pe.createElement(ce.Z,{flex:"110px",className:ye.Z.item},pe.createElement("div",null,pe.createElement(me.Z,{value:"`$$"+Pe.value+"$$`"}),Pe.name),pe.createElement("div",{className:ye.Z.children},Pe.children.map((Ze,$e)=>pe.createElement("div",{key:$e},Ze.name&&pe.createElement("h1",null,Ze.name),pe.createElement(he.Z,{gutter:[10,10]},Ze.data.map((gt,ot)=>pe.createElement(ce.Z,{key:ot,onClick:()=>Ne(gt),className:ye.Z.diamond},pe.createElement(me.Z,{value:"`$$"+gt.value+"$$`"}))))))))))}],ft=()=>{var Pe=document.createElement("div");Pe.innerHTML=Me.current.getValue();var Fe=Pe.innerText;return Re&&Re(Fe),Fe};return(0,y.useImperativeHandle)(He,()=>({getData:ft})),pe.createElement("div",{className:ye.Z.mathWrap},pe.createElement(je.default,{defaultActiveKey:"1",items:Xe}),pe.createElement("math-field",{locale:"zh_cn",className:ye.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:Me,style:{width:800,marginTop:30,fontSize:18}},tt||""),Ie&&pe.createElement("div",{className:ye.Z.button},pe.createElement(ve.ZP,{size:"large",onClick:ft,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});zt.Z=le},2524:function(bn,zt,z){"use strict";var y=z(59301),he=z(93314),ce=z(7939),je=Object.defineProperty,ve=Object.defineProperties,me=Object.getOwnPropertyDescriptors,ye=Object.getOwnPropertySymbols,Ae=Object.prototype.hasOwnProperty,pe=Object.prototype.propertyIsEnumerable,le=(He,Me,Ee)=>Me in He?je(He,Me,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):He[Me]=Ee,Re=(He,Me)=>{for(var Ee in Me||(Me={}))Ae.call(Me,Ee)&&le(He,Ee,Me[Ee]);if(ye)for(var Ee of ye(Me))pe.call(Me,Ee)&&le(He,Ee,Me[Ee]);return He},Ie=(He,Me)=>ve(He,me(Me));const tt=({img:He,buttonProps:Me={},styles:Ee={},customText:we,ButtonText:Ne,ButtonClick:Xe,Buttonclass:ft,ButtonTwo:Pe,imgStyles:Fe,loading:Ze=!1,className:$e=""})=>y.createElement("section",{className:`tc animated fadeIn ${$e}`,style:Re({color:"#999",margin:"100px auto",visibility:Ze?"hidden":"visible"},Ee)},y.createElement("img",{src:He||he,style:Ie(Re({},Fe),{pointerEvents:"none",userSelect:"none"})}),y.createElement("p",{className:"mt20 font14"},we||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),Ne&&y.createElement(ce.ZP,Re({className:ft,onClick:Xe},Me),Ne),Pe&&Pe);zt.Z=tt},52918:function(bn,zt,z){"use strict";z.d(zt,{Z:function(){return ft}});var y=z(59301),he={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},ce=z(7939),je=z(70557),ve=z(50258),me=z(25399),ye=z(65862),Ae=z(87513),pe=z(2524),le=z(74128),Re=z(7310),Ie=z(59301),tt=Object.defineProperty,He=Object.getOwnPropertySymbols,Me=Object.prototype.hasOwnProperty,Ee=Object.prototype.propertyIsEnumerable,we=(Pe,Fe,Ze)=>Fe in Pe?tt(Pe,Fe,{enumerable:!0,configurable:!0,writable:!0,value:Ze}):Pe[Fe]=Ze,Ne=(Pe,Fe)=>{for(var Ze in Fe||(Fe={}))Me.call(Fe,Ze)&&we(Pe,Ze,Fe[Ze]);if(He)for(var Ze of He(Fe))Ee.call(Fe,Ze)&&we(Pe,Ze,Fe[Ze]);return Pe},Xe=(Pe,Fe,Ze)=>new Promise(($e,gt)=>{var ot=Ce=>{try{ct(Ze.next(Ce))}catch(et){gt(et)}},Qe=Ce=>{try{ct(Ze.throw(Ce))}catch(et){gt(et)}},ct=Ce=>Ce.done?$e(Ce.value):Promise.resolve(Ce.value).then(ot,Qe);ct((Ze=Ze.apply(Pe,Fe)).next())}),ft=({editOffice:Pe="view",data:Fe,issaver:Ze,onSaver:$e,theme:gt,type:ot,filename:Qe,monacoEditor:ct,className:Ce,style:et,close:Te,onClose:ue,hasMask:mt,disabledDownload:_e,onImgDimensions:lt,showNodata:Mt,recordInfo:be})=>{const[ge,Ft]=(0,y.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[_t,Tt]=(0,y.useState)(""),[xe,rt]=(0,y.useState)(),qe=window.ENV==="build"?"/react/build":"",Gt=location.host.startsWith("localhost")?le.Z.PROXY_SERVER:le.Z.API_SERVER,st=10*(1024*1024),nt=(0,y.useRef)();Fe!=null&&Fe.startsWith("/api")&&ot!=="txt"&&(Fe=le.Z.API_SERVER+Fe);const rn=oe=>oe.substring(oe.lastIndexOf("/")+1).split(".").pop();Qe&&ct&&(ct.filename=Qe),(0,y.useEffect)(()=>{var oe,de;const ne=(de=(oe=document.cookie)==null?void 0:oe.replace(/\s/g,""))==null?void 0:de.split(";");ne==null||ne.map(se=>{let Oe=se.split("=");Oe[0]==="_educoder_session"&&Tt(Oe[1])})},[]),(0,y.useEffect)(()=>{ot==="office"&&(Fe.indexOf("bigfilescdn.")>-1||Fe.indexOf("bigfiles1")>-1?rt({url:Fe,fileType:rn(Fe),model:Fe.indexOf("model=edit")?"edit":"view"}):ae())},[ot,Fe]);function kt(oe){return Xe(this,null,function*(){oe.data.type==="pdfdata"&&($e(oe.data.data),window.removeEventListener("message",kt,!1)),console.log("mess---:",oe.data)})}const ae=()=>Xe(void 0,null,function*(){console.log("data:",Fe);let oe=Fe;Fe.startsWith("http")||(oe=location.origin+oe);let de=new URL(oe).pathname.split("/").pop();const ne=yield(0,Ae.gJ)({attachment_id:de});ne.url=Gt+ne.url,rt(ne)}),re=()=>{if(Fe.startsWith("http")||Fe.startsWith("blob:")){te();return}(0,ye.Sv)(Qe||"educoder",Fe,Qe)},te=()=>{be&&(0,Re.fc)({id:be==null?void 0:be.id,watch_type:1,course_id:be==null?void 0:be.course_id}),(0,ye.Nd)(Qe||"educoder",decodeURIComponent(Fe))};return Ie.createElement("div",{style:Ne({},et||{}),className:`${mt&&he.bgBlack} ${ot?he.wrp:"hide"}`},Te&&Ie.createElement("div",{className:he.close,ref:nt},!!lt&&Ie.createElement(me.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>nt.current},Ie.createElement("span",{onClick:()=>{ue(),lt()}},Ie.createElement("i",{className:"icon-yulanpizhu"}))),!_e&&Ie.createElement(me.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>nt.current},Ie.createElement("span",{onClick:te},Ie.createElement("i",{className:"icon-quxiaozhiding"}))),Ze&&Ie.createElement(me.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>nt.current},Ie.createElement("span",{className:"",onClick:()=>{const oe=document.getElementById("pdfiframe");window.addEventListener("message",kt,!1),setTimeout(()=>{oe.contentWindow.postMessage("getData","*")},300)}},Ie.createElement("i",{className:"icon-baocun"}))),Ie.createElement(me.Z,{title:"\u5173\u95ED",getPopupContainer:()=>nt.current},Ie.createElement("span",{className:"",onClick:()=>{ue()}},Ie.createElement("i",{className:"icon-guanbi1"})))),Ie.createElement("div",{className:`${he[Ce]} ${Ce} ${he.monaco} ${ot==="txt"?"show":"hide"}`},ot==="txt"&&Ie.createElement(Ie.Fragment,null,Ie.createElement(ve.ZP,Ne({},ct)))),ot==="audio"&&Ie.createElement("audio",{src:`${(Fe==null?void 0:Fe.indexOf("http://"))>-1||(Fe==null?void 0:Fe.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${Fe}`,autoPlay:!0}),ot==="video"&&Ie.createElement(Ie.Fragment,null,(Fe==null?void 0:Fe.indexOf("http"))>-1?Ie.createElement("video",{controls:!0,src:`${Fe}`,autoPlay:!0}):Ie.createElement("video",{controls:!0,src:`data:video/mp4;base64,${Fe}`,autoPlay:!0})),ot==="office"&&xe&&Ie.createElement("iframe",{src:`${qe}/office.html?key=${xe.key}&url=${btoa(xe.url)}&callbackUrl=${Gt+(xe.callbackUrl||"")}&fileType=${xe.fileType}&title=${xe.title||""}&model=${Pe}&officeServer=${le.Z.ONLYOFFICE}&disabledDownload=${!!_e}`}),ot==="html"&&Ie.createElement("iframe",{src:Fe+"&disposition=inline"}),ot==="pdf"&&Ie.createElement("iframe",{id:"pdfiframe",src:`${qe}/js/pdf/index.html?filename=${Qe||"educoder.pdf"}&url=${encodeURIComponent(Fe)}&disabledDownload=${!!_e}&model=${Pe}`}),ot==="image"&&Ie.createElement("img",{src:`${(Fe==null?void 0:Fe.indexOf("http://"))>-1||(Fe==null?void 0:Fe.indexOf("https://"))>-1?"":"data:image/png;base64,"}${Fe}`}),(ot==="other"||ot==="download")&&Ie.createElement(Ie.Fragment,null,Mt?Ie.createElement(pe.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:Ie.createElement(ce.ZP,{icon:Ie.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:re,disabled:_e},"\u4E0B\u8F7D")}):Ie.createElement(ce.ZP,{type:"primary",size:"middle",onClick:re,disabled:_e},Ie.createElement(je.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")),ot==="flowChart"&&Ie.createElement("div",{className:"embed"},Ie.createElement("iframe",{src:`/drawio/src/main/webapp/viewer.html?id=${Fe||""}&gapi=0&od=0&db=0&gh=0&gl=0`,width:"100%",height:"100%",frameBorder:"0"})))}},92716:function(bn,zt,z){"use strict";z.d(zt,{t:function(){return te}});var y=z(59301),he=z(37568),ce=z(28284),je=z(62957),ve=z(77019),me=z(5269),ye=z(4875),Ae=z(82326),pe=z(47889),le=z(3969),Re=z(65582),Ie=z(58e3),tt=z(6767),He=z(7939),Me=z(29787),Ee=z(24334),we={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"},Ne=z(38147),Xe=z(67172),ft=z(25374),Pe=z(56102),Fe=z(10129),Ze=z(59301),$e=Object.defineProperty,gt=Object.defineProperties,ot=Object.getOwnPropertyDescriptors,Qe=Object.getOwnPropertySymbols,ct=Object.prototype.hasOwnProperty,Ce=Object.prototype.propertyIsEnumerable,et=(oe,de,ne)=>de in oe?$e(oe,de,{enumerable:!0,configurable:!0,writable:!0,value:ne}):oe[de]=ne,Te=(oe,de)=>{for(var ne in de||(de={}))ct.call(de,ne)&&et(oe,ne,de[ne]);if(Qe)for(var ne of Qe(de))Ce.call(de,ne)&&et(oe,ne,de[ne]);return oe},ue=(oe,de)=>gt(oe,ot(de)),mt=(oe,de,ne)=>new Promise((se,Oe)=>{var bt=it=>{try{We(ne.next(it))}catch(ht){Oe(ht)}},Ge=it=>{try{We(ne.throw(it))}catch(ht){Oe(ht)}},We=it=>it.done?se(it.value):Promise.resolve(it.value).then(bt,Ge);We((ne=ne.apply(oe,de)).next())}),lt=({buttonProps:oe,buttonText:de,form:ne,hackIdentifier:se="",answerKey:Oe,data:bt})=>{const[Ge,We]=(0,y.useState)(!1),[it,ht]=(0,y.useState)(!1),[Pt,Le]=(0,y.useState)(!1),[Ve,Ot]=(0,y.useState)({}),[Yt,un]=(0,y.useState)(""),[tn,Lt]=(0,y.useState)(""),ln=(0,y.useRef)(se),$t=(0,y.useRef)(""),ze=(0,y.useRef)(!1);(0,y.useEffect)(()=>{Pt&&Ke()},[Pt]),(0,y.useEffect)(()=>()=>{sessionStorage.removeItem("projectFill")},[]);const yt=()=>new Date().getTime(),Ht=bt==null?void 0:bt.code,en=()=>{var dt,At;let Ut=Ht?bt==null?void 0:bt.code:(dt=ne.getFieldValue("hack_codes"))==null?void 0:dt.code,pn=Ht?bt==null?void 0:bt.answer_content:ne.getFieldValue(Oe),On=Ht?bt==null?void 0:bt.input:(At=ne.getFieldValue("hack_sets"))==null?void 0:At.input;pn==null||pn.forEach(mn=>{const Bn=mn.value||mn.answer_text||"";Ut=Ut.replace(/(@▁@|@▁▁@)/,Bn)}),Lt(On),un(Ut),Ot({}),Le(!0)},Ke=()=>mt(void 0,null,function*(){var dt,At,Ut,pn;const On=yt(),mn=Ht?bt==null?void 0:bt.time_limit:(dt=ne.getFieldsValue())==null?void 0:dt.hack.time_limit,Bn=Ht?(At=bt==null?void 0:bt.answer_content)==null?void 0:At.length:(pn=(Ut=ne.getFieldsValue())==null?void 0:Ut.standard_answers)==null?void 0:pn.length;We(!0),yield(0,Xe.bM)($t.current,{test_hack_code:Yt,test_input:tn});function Dt(){return mt(this,null,function*(){const{status:hn,data:Wt}=yield(0,Xe.rX)($t.current,"submit"),Vt=yt()-On>(mn+3)*1e3*Bn;if(ze.current){if(Vt){tt.ZP.error("\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"),We(!1);return}if(hn===0){We(!1),Ot(ue(Te({},Wt),{showText:!0}));return}setTimeout(Dt,1e3)}})}Dt()}),xt=()=>mt(void 0,null,function*(){var dt,At,Ut,pn,On,mn,Bn;if(!bt){try{yield ne.validateFields()}catch(an){(Ut=(At=(dt=an==null?void 0:an.errorFields)==null?void 0:dt[0])==null?void 0:At.name)!=null&&Ut.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}ht(!0);let hn="";const Wt=ne.getFieldsValue();ln.current?hn=yield(0,Ne.ZP)(`/api/problems/${ln.current}.json`,{method:"put",body:ue(Te({},Wt),{hack:ue(Te({},Wt==null?void 0:Wt.hack),{sub_discipline_id:(Bn=(mn=Wt==null?void 0:Wt.hack)==null?void 0:mn.sub_discipline_id)==null?void 0:Bn[1],difficult:Wt.difficulty,item_banks_group_id:Wt.item_banks_group_id}),hack_codes:ue(Te({},Wt.hack_codes),{code:Ee.Base64.encode(Wt.hack_codes.code)}),update_hack_sets:[Te({},Wt.hack_sets)],is_blank:!0,item_type:"BPROGRAM"})}):(hn=yield(0,Ne.ZP)("/api/problems.json",{method:"post",body:ue(Te({},Wt),{hack:ue(Te({},Wt==null?void 0:Wt.hack),{sub_discipline_id:(On=(pn=Wt==null?void 0:Wt.hack)==null?void 0:pn.sub_discipline_id)==null?void 0:On[1],difficult:Wt.difficulty,item_banks_group_id:Wt.item_banks_group_id}),hack_codes:ue(Te({},Wt.hack_codes),{code:Ee.Base64.encode(Wt.hack_codes.code)}),hack_sets:[Te({},Wt.hack_sets)],is_blank:!0,item_type:"BPROGRAM"})}),ln.current=hn==null?void 0:hn.identifier,sessionStorage.projectFill=hn==null?void 0:hn.identifier)}const Dt=yield(0,Ne.ZP)(`/api/problems/${ln.current}/start.json`,{method:"get"});if((Dt==null?void 0:Dt.status)===0){$t.current=Dt==null?void 0:Dt.identifier,ze.current=!0,ht(!1),en();return}ht(!1)}),Zt=dt=>{const{status:At,error_msg:Ut,execute_time:pn,output:On,input:mn,expected_output:Bn}=dt;let Dt=null;switch(At){case Fe.h.OK:Dt=Ze.createElement(Ze.Fragment,null,Ze.createElement("p",null,"\u6267\u884C\u7528\u65F6\uFF1A",pn/1e3,"\u79D2"),Ze.createElement("p",null,"\u6267\u884C\u7ED3\u679C\uFF1A\u8C03\u8BD5\u901A\u8FC7"));break;case Fe.h.NOMATCH:Dt=Ze.createElement(Ze.Fragment,null,Ze.createElement("div",null,"\u8F93\u5165\uFF1A"),Ze.createElement("pre",{style:{fontFamily:"initial"}},mn),Ze.createElement("div",null,"\u8F93\u51FA\uFF1A"),Ze.createElement("pre",{style:{fontFamily:"initial"}},On&&Ee.Base64.decode(On)),Ze.createElement("div",null,"\u9884\u671F\u8F93\u51FA\uFF1A"),Ze.createElement("pre",{style:{fontFamily:"initial"}},Bn&&Ee.Base64.decode(Bn)));break;case Fe.h.EXECUTEFAILURE:Dt=Ze.createElement(Ze.Fragment,null,Ze.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",Ze.createElement("pre",null,mn)),Ze.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),Ze.createElement("pre",{className:"error"},Ee.Base64.decode(Ut)));break;case Fe.h.COMPILEFAILURE:Dt=Ze.createElement(Ze.Fragment,null,Ze.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",Ze.createElement("pre",null,mn)),Ze.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),Ze.createElement("pre",{className:"error"},Ee.Base64.decode(Ut)));break;case Fe.h.PODFAILURE:Dt=Ze.createElement("p",null,"\u521B\u5EFApod\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break;case Fe.h.TIMEOUT:Dt=Ze.createElement("p",null,"\u8BC4\u6D4B\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break}return Ze.createElement(Ze.Fragment,null," ",Dt," ")};return Ze.createElement("div",null,Ze.createElement(He.ZP,ue(Te({loading:it},oe),{onClick:xt}),de),Ze.createElement(je.default,{open:Pt,title:"\u8C03\u8BD5\u4EE3\u7801",destroyOnClose:!0,width:1200,okText:"\u8FD0\u884C\u6D4B\u8BD5",confirmLoading:Ge,cancelButtonProps:{style:{display:"none"}},onOk:()=>Ke(),onCancel:()=>{ze.current=!1,Le(!1)}},Ze.createElement("div",{className:we.result},Ze.createElement("div",{className:we.left},Ze.createElement("div",{className:"mb20"},Ze.createElement("span",{className:"c-black"},"\u6267\u884C\u4EE3\u7801"),!bt&&Ze.createElement(Pe.CopyToClipboard,{text:Yt,onCopy:()=>tt.ZP.success("\u590D\u5236\u6210\u529F")},Ze.createElement("span",{style:{float:"right"},className:"current c-light-primary"},Ze.createElement("i",{className:"iconfont icon-fuzhi8 mr5"}),"\u590D\u5236"))),Ze.createElement(ft.Z,{height:510,className:"mb0",hidetoolBar:!0,defaultValue:Yt,onChange:dt=>un(dt)})),Ze.createElement("div",{className:we.right},Ze.createElement("div",{className:"c-black mb20"},"\u81EA\u5B9A\u4E49\u6D4B\u8BD5\u7528\u4F8B"),Ze.createElement("div",{className:we.box},Ze.createElement("div",{className:we.li},Ze.createElement(he.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165",value:tn,onChange:dt=>Lt(dt.target.value),bordered:!1,style:{height:180}}))),Ze.createElement("div",{className:"c-black mb20 mt30"},"\u4EE3\u7801\u6267\u884C\u7ED3\u679C"),Ze.createElement("div",{className:we.box},Ze.createElement(Me.Z,{spinning:Ge,tip:"\u4EE3\u7801\u6267\u884C\u4E2D"},Ze.createElement("div",{className:we.li,style:{height:196,overflow:"auto",padding:10}},Zt(Ve))))))))},Mt=z(87169),be=z(59301),ge=Object.defineProperty,Ft=Object.defineProperties,_t=Object.getOwnPropertyDescriptors,Tt=Object.getOwnPropertySymbols,xe=Object.prototype.hasOwnProperty,rt=Object.prototype.propertyIsEnumerable,qe=(oe,de,ne)=>de in oe?ge(oe,de,{enumerable:!0,configurable:!0,writable:!0,value:ne}):oe[de]=ne,Gt=(oe,de)=>{for(var ne in de||(de={}))xe.call(de,ne)&&qe(oe,ne,de[ne]);if(Tt)for(var ne of Tt(de))rt.call(de,ne)&&qe(oe,ne,de[ne]);return oe},at=(oe,de)=>Ft(oe,_t(de)),st=(oe,de)=>{var ne={};for(var se in oe)xe.call(oe,se)&&de.indexOf(se)<0&&(ne[se]=oe[se]);if(oe!=null&&Tt)for(var se of Tt(oe))de.indexOf(se)<0&&rt.call(oe,se)&&(ne[se]=oe[se]);return ne};const{TextArea:nt}=he.default,rn=[{title:"C",key:"C"},{title:"C++",key:"C++"},{title:"Python",key:"Python"},{title:"Java",key:"Java"}],kt=({value:oe,onChange:de})=>be.createElement(Switch,{checked:oe,onChange:ne=>{de(ne)}}),ae="@\u2581@",re="@\u2581\u2581@",te=({questionTitlePlaceholder:oe,form:de,scoreByBlank:ne=!1,hackidentifier:se,answerKey:Oe})=>{const[bt,Ge]=(0,y.useState)(!1),[We,it]=(0,y.useState)(!1),Pt=(0,Re.useParams)().type==="edit",Le=($t,ze)=>{const yt=ze.line;let Ht=0;for(let Ke=0;Ke<yt;Ke++)Ht+=$t.getLine(Ke).split(ae).length-1;for(let Ke=0;Ke<yt;Ke++)Ht+=$t.getLine(Ke).split(re).length-1;const en=$t.getLine(yt).substring(0,ze.ch);return Ht+=en.split(ae).length-1,Ht+=en.split(re).length-1,Ht},Ve=($t,ze,yt,Ht)=>{const en=$t.getRange(ze.from,ze.to);let Ke=0;if(ze.text.forEach(xt=>{Ke+=xt.split(ae).length-1}),ze.text.forEach(xt=>{Ke+=xt.split(re).length-1}),ze.origin!=="setValue"){if(en&&(en.indexOf(ae)!==-1||en.indexOf(re)!==-1)){const xt=en.split(ae).length-1+en.split(re).length-1,Zt=Le($t,ze.from);if(console.log(`\u5220\u9664${xt}\u4E2A\uFF0C \u524D\u9762\u6709${Zt}\u4E2A\uFF0C\u65B0\u589E${Ke}\u4E2A`),xt>1){const dt=Array.from({length:xt},(At,Ut)=>Zt+Ut);Ht(dt)}else Ht(Zt)}else if(Ke>0){const xt=Le($t,ze.from);console.log(`\u65B0\u589E${Ke}\u4E2A\uFF0C\u4E4B\u524D\u6709${xt}\u4E2A`),yt(Ke,xt)}}},Ot=()=>{const $t=de.getFieldValue(Oe);de.setFieldsValue({[Oe]:$t==null?void 0:$t.map((ze,yt)=>at(Gt({},ze),{position:yt+1}))})},Yt=(0,y.useRef)(),un=($t,ze)=>{for(let yt=0;yt<$t;yt++)Yt.current({position:null,answer_text:""},ze+yt);Ot()},tn=(0,y.useRef)(),Lt=$t=>{tn.current($t),Ot()},ln=ce.default.useWatch(Oe,de);return be.createElement("div",{className:Ie.Z.wrap},be.createElement(ce.default.Item,{label:"\u8BD5\u9898\u63CF\u8FF0",name:["hack","description"],style:{display:"table"},className:"w100",labelCol:{span:24},rules:[{required:!0}]},be.createElement(le.h,{scrollId:"name",watch:!0,height:140})),be.createElement("div",{className:Ie.Z.questionTitleEditorWrap},be.createElement(ce.default.Item,{label:"\u7A0B\u5E8F\u4EE3\u7801",name:["hack_codes","code"],labelCol:{span:24},rules:[{required:!0}]},be.createElement(le.h,{scrollId:"name",watch:!0,height:400,showNullProgramButton:!0,onChange:($t,ze)=>{const yt=de.getFieldValue(Oe);console.log("--preAnswerData",yt,ze),de.setFieldsValue({[Oe]:yt==null?void 0:yt.map((Ht,en)=>{var Ke;return at(Gt({},Ht),{position:en+1,multi_line:(Ke=ze==null?void 0:ze[en])==null?void 0:Ke.multiLine})})})},placeholder:oe,onCMBeforeChange:($t,ze)=>{Ve($t,ze,un,Lt)}}))),be.createElement(ce.default.List,{name:Oe,rules:[{validator($t,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:Ht}=yt||{};if((Ht==null?void 0:Ht.length)===0)return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},($t,{add:ze,remove:yt},{errors:Ht})=>(Yt.current=ze,tn.current=yt,be.createElement(be.Fragment,null,be.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},be.createElement(ce.default.Item,{label:"\u586B\u7A7A\u9879\u7B54\u6848",required:!0,labelCol:{span:24}}),be.createElement("div",{onClick:()=>{je.default.warning({title:"\u7ED9\u5206\u8BF4\u660E",icon:null,width:700,centered:!0,content:be.createElement("div",null,be.createElement("div",null,"1.\u5B66\u751F\u586B\u5199\u7B54\u6848\u4E4B\u540E\uFF0C\u5FC5\u987B\u63D0\u4EA4\u4EE3\u7801",be.createElement("span",{style:{color:"#e30000"}},"\u8FDB\u884C\u8BC4\u6D4B"),"\u624D\u80FD\u5F97\u5206\u3002"),be.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"}},be.createElement(Mt.Z,{style:{marginRight:3,color:"#3061D0"}}),be.createElement("span",null," \u7ED9\u5206\u8BF4\u660E"))),$t.map((en,Ke)=>{var xt=en,{key:Zt,name:dt}=xt,At=st(xt,["key","name"]),Ut,pn;return be.createElement(ve.Z,{className:"mb20",key:Zt,align:"middle",wrap:!1},be.createElement(me.Z,{flex:"0 0 auto",className:`${Ie.Z.blankIndex}`},"\u586B\u7A7A\u9879",Ke+1),be.createElement(me.Z,{flex:1},be.createElement(ve.Z,{align:"top",justify:"space-between",wrap:!1},be.createElement(me.Z,null,be.createElement(ce.default.Item,at(Gt({},At),{name:[dt,"answer_text"],noStyle:!0}),(Ut=ln==null?void 0:ln[dt])!=null&&Ut.multi_line||(pn=ln==null?void 0:ln[dt])!=null&&pn.multiLine?be.createElement(nt,{spellCheck:!1,style:{marginLeft:10,width:550}}):be.createElement(he.default,{style:{marginLeft:10,width:550},className:Ie.Z.blankInput,size:"large",maxLength:1e3,onBlur:On=>{}}))),ne&&be.createElement(me.Z,{flex:"224px"},be.createElement(ce.default.Item,at(Gt({},At),{name:[dt,"score"],label:"\u5206\u503C",rules:[{required:!0}]}),be.createElement(ye.Z,{size:"large",className:Ie.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C"}))))))})))),be.createElement("div",{onClick:()=>Ge(!0)},be.createElement(ce.default.Item,{name:["hack","analysis"],label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},be.createElement(le.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:bt}))),be.createElement(ce.default.Item,{label:"\u7F16\u7A0B\u8BED\u8A00",style:{marginTop:30},name:["hack_codes","language"],labelCol:{span:24},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7F16\u7A0B\u8BED\u8A00"}]},be.createElement(Ae.default,{size:"large"},rn.map($t=>be.createElement(Ae.default.Option,{key:$t.title,value:$t.key}," ",$t.title)))),be.createElement(ce.default.Item,{label:"\u6700\u5927\u8BC4\u6D4B\u65F6\u957F\uFF08\u79D2\uFF09",style:{marginTop:30},labelCol:{span:24},required:!0},be.createElement(ce.default.Item,{name:["hack","time_limit"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5355\u4E2A\u6D4B\u8BD5\u96C6\u8BC4\u6D4B\u65F6\u957F\u9650\u5236"},{type:"number",min:3,message:"\u6700\u5C0F\u9650\u5236\u65F6\u95F4\u662F3\u79D2"}],noStyle:!0},be.createElement(ye.Z,{precision:0,max:10,min:3,size:"large",style:{width:"97%"}})),be.createElement("span",{className:"ml10 font14"},"\u79D2")),be.createElement(ce.default.Item,{label:"\u8BC4\u6D4B\u65F6\u7A7A\u683C\u5904\u7406",style:{marginTop:30},name:["hack","submit_rule"],labelCol:{span:24},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8BC4\u6D4B\u65F6\u7A7A\u683C\u5904\u7406"}]},be.createElement(pe.ZP.Group,{style:{marginTop:-10}},be.createElement(pe.ZP,{value:0},"\u4E0D\u5FFD\u7565\u7A7A\u683C"),be.createElement(pe.ZP,{value:1},"\u5FFD\u7565\u9996\u5C3E\u7A7A\u683C"),be.createElement(pe.ZP,{value:2},"\u5FFD\u7565\u6240\u6709\u7A7A\u683C"))),be.createElement(ce.default.Item,{label:"\u6D4B\u8BD5\u7528\u4F8B",required:!0,style:{marginTop:30}}),be.createElement("div",{style:{background:"#F6F7F9",padding:15}},be.createElement(ce.default.Item,{label:"\u8F93\u5165",labelCol:{span:24},name:["hack_sets","input"]},be.createElement(nt,{rows:4})),be.createElement(ce.default.Item,{label:"\u8F93\u51FA",labelCol:{span:24},name:["hack_sets","output"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8F93\u51FA\u5185\u5BB9"}]},be.createElement(nt,{rows:4}))),be.createElement(lt,{form:de,answerKey:Oe,hackIdentifier:se,buttonText:"\u8FD0\u884C\u8C03\u8BD5",buttonProps:{ghost:!0,icon:be.createElement("i",{className:"iconfont icon-ceshi"}),style:{background:"rgba(55,173,131,0.05)",borderRadius:19,border:"1px solid #37AD83",width:116,height:38,display:"inline-flex",fontSize:14,alignItems:"center",justifyContent:"center",marginTop:20,cursor:"pointer",color:"#37AD83"}}}))}},85500:function(bn,zt,z){"use strict";z.d(zt,{u:function(){return Ze}});var y=z(59301),he=z(77019),ce=z(5269),je=z(25399),ve=z(28284),me=z(58e3),ye=z(32134),Ae=z(12893),pe=z(3969),le=z(59301),Re=Object.defineProperty,Ie=Object.defineProperties,tt=Object.getOwnPropertyDescriptors,He=Object.getOwnPropertySymbols,Me=Object.prototype.hasOwnProperty,Ee=Object.prototype.propertyIsEnumerable,we=($e,gt,ot)=>gt in $e?Re($e,gt,{enumerable:!0,configurable:!0,writable:!0,value:ot}):$e[gt]=ot,Ne=($e,gt)=>{for(var ot in gt||(gt={}))Me.call(gt,ot)&&we($e,ot,gt[ot]);if(He)for(var ot of He(gt))Ee.call(gt,ot)&&we($e,ot,gt[ot]);return $e},Xe=($e,gt)=>Ie($e,tt(gt)),ft=($e,gt)=>{var ot={};for(var Qe in $e)Me.call($e,Qe)&&gt.indexOf(Qe)<0&&(ot[Qe]=$e[Qe]);if($e!=null&&He)for(var Qe of He($e))gt.indexOf(Qe)<0&&Ee.call($e,Qe)&&(ot[Qe]=$e[Qe]);return ot};const Pe=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Fe=({value:$e,onChange:gt,choiceTextKey:ot,answerKey:Qe,index:ct,isEdit:Ce,setInputActive:et,form:Te,choiceOptionsPath:ue,allowChangeMode:mt,showAddIcon:_e,addItem:lt,deleteItem:Mt})=>{console.log($e,"value");const be=($e==null?void 0:$e[Qe])===1,ge=()=>{const _t=Te.getFieldValue(ue);Te.setFieldValue(ue,_t.map(Tt=>Xe(Ne({},Tt),{[Qe]:0})))},Ft=()=>{be?gt(Xe(Ne({},$e),{[Qe]:0})):(mt||ge(),gt(Xe(Ne({},$e),{[Qe]:1})))};return le.createElement(he.Z,{className:me.Z.choiceWrap,align:"middle",wrap:!1},le.createElement(ce.Z,{onClick:Ft,className:`${me.Z.choiceIndex} ${be?me.Z.activeAnswer:""}`},Pe[ct]),le.createElement(ce.Z,{flex:1,className:`${me.Z.editorWrap} ml15`,onClick:et},le.createElement(pe.x,{height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",isEdit:Ce,value:$e==null?void 0:$e[ot],onChange:_t=>{gt(Xe(Ne({},$e),{[ot]:_t}))}})),le.createElement(ce.Z,{flex:"0 0 auto",className:"ml15"},le.createElement("div",{onClick:Ft,className:`${me.Z.setAnswerBtn} ${be?me.Z.activeAnswer:""}`},be?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")),le.createElement(ce.Z,{className:me.Z.actionWrapper},le.createElement(je.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},le.createElement(ye.Z,{className:me.Z.addIcon,onClick:lt,style:{visibility:_e?"visible":"hidden"}})),le.createElement(je.Z,{title:"\u5220\u9664"},le.createElement(Ae.Z,{className:me.Z.deleteIcon,onClick:Mt,style:{visibility:ct>1?"visible":"hidden"}}))))},Ze=({questionTitlePlaceholder:$e,titleKey:gt,choiceKey:ot,analysisKey:Qe,choiceTextKey:ct,answerKey:Ce,choiceOptionsPath:et,allowChangeMode:Te=!0,form:ue,showAnalysis:mt=!0})=>{const[_e,lt]=(0,y.useState)(),[Mt,be]=(0,y.useState)(!1);return le.createElement("div",{className:me.Z.wrap},le.createElement("div",{className:me.Z.questionTitleEditorWrap},le.createElement(ve.default.Item,{label:"\u9898\u5E72",name:gt,labelCol:{span:24},rules:[{required:!0}]},le.createElement(pe.h,{scrollId:Array.isArray(gt)?gt.join("_"):`${gt}`,watch:!0,height:140,placeholder:$e}))),le.createElement(ve.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}}),le.createElement(ve.default.List,{name:ot,rules:[{validator(ge,Ft){const _t=Ft.some(xe=>xe[Ce]===1),Tt=Ft.findIndex(xe=>{var rt;return((rt=xe[ct])==null?void 0:rt.length)<=0});return Tt!==-1?Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${Pe[Tt]}\u9009\u9879\u7684\u5185\u5BB9`)):_t?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},(ge,{add:Ft,remove:_t})=>le.createElement("div",{id:Array.isArray(et)?et.join("_"):`${et}`},ge.map((Tt,xe)=>{var rt=Tt,{key:qe,name:Gt}=rt,at=ft(rt,["key","name"]);const st=_e===qe,nt=()=>{lt(qe)},rn=xe<14&&xe===ge.length-1,kt=()=>Ft({[ct]:"",[Ce]:0}),ae=()=>_t(Gt);return le.createElement(ve.default.Item,Xe(Ne({},at),{key:qe,name:Gt,className:me.Z.choiceListWrap,rules:[{validator(re,te){return te!=null&&te.choice_text?Promise.resolve():Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${Pe[xe]}\u9009\u9879\u7684\u5185\u5BB9`))}}]}),le.createElement(Fe,{choiceTextKey:ct,answerKey:Ce,index:xe,isEdit:st,setInputActive:nt,form:ue,choiceOptionsPath:et,allowChangeMode:Te,showAddIcon:rn,addItem:kt,deleteItem:ae}))}),ge.length<15&&le.createElement("div",{className:`${me.Z.addBtn} mb30`,onClick:()=>Ft({[ct]:"",[Ce]:0})},"\u6DFB\u52A0\u9009\u9879"))),mt&&le.createElement("div",{onClick:()=>be(!0)},le.createElement(ve.default.Item,{name:Qe,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},le.createElement(pe.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Mt}))))}},78909:function(bn,zt,z){"use strict";z.d(zt,{u:function(){return ue}});var y=z(59301),he=z(62957),ce=z(77019),je=z(5269),ve=z(37568),me=z(25399),ye=z(58755),Ae=z(28284),pe=z(47889),le=z(4875),Re=z(7939),Ie=z(3969),tt=z(12893),He=z(32134),Me=z(61485),Ee=z(58e3),we=z(27687),Ne=z(59301),Xe=Object.defineProperty,ft=Object.defineProperties,Pe=Object.getOwnPropertyDescriptors,Fe=Object.getOwnPropertySymbols,Ze=Object.prototype.hasOwnProperty,$e=Object.prototype.propertyIsEnumerable,gt=(mt,_e,lt)=>_e in mt?Xe(mt,_e,{enumerable:!0,configurable:!0,writable:!0,value:lt}):mt[_e]=lt,ot=(mt,_e)=>{for(var lt in _e||(_e={}))Ze.call(_e,lt)&&gt(mt,lt,_e[lt]);if(Fe)for(var lt of Fe(_e))$e.call(_e,lt)&&gt(mt,lt,_e[lt]);return mt},Qe=(mt,_e)=>ft(mt,Pe(_e)),ct=(mt,_e)=>{var lt={};for(var Mt in mt)Ze.call(mt,Mt)&&_e.indexOf(Mt)<0&&(lt[Mt]=mt[Mt]);if(mt!=null&&Fe)for(var Mt of Fe(mt))_e.indexOf(Mt)<0&&$e.call(mt,Mt)&&(lt[Mt]=mt[Mt]);return lt};const Ce=({value:mt,onChange:_e,position:lt,removeBlank:Mt})=>{const be=Ft=>{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:Ee.Z.modal,onOk:()=>{const _t=[...mt];_t.splice(Ft,1),_t.length===0?Mt(lt-1):_e(_t)}})},ge=()=>{const Ft=[...mt];Ft.push(""),_e(Ft)};return Ne.createElement(ce.Z,{className:"ml20"},Ne.createElement(je.Z,{flex:1},mt==null?void 0:mt.map((Ft,_t)=>Ne.createElement(ce.Z,{key:`${Ft}_${_t}`,className:"mb20"},Ne.createElement(ve.default.TextArea,{style:{flex:1,minHeight:44},defaultValue:Ft,autoSize:{maxRows:3},maxLength:1e3,onBlur:Tt=>{const xe=[...mt],rt=Tt.target.value.trim();xe[_t]=rt,_e(xe)}}),Ne.createElement(me.Z,{title:"\u5220\u9664"},Ne.createElement(tt.Z,{className:Ee.Z.deleteIcon,style:{marginLeft:15,visibility:lt===1&&_t===0?"hidden":"visible"},onClick:()=>be(_t)})),Ne.createElement(me.Z,{title:"\u65B0\u589E\u7B54\u6848"},Ne.createElement(He.Z,{style:{color:"#2A5DD8",fontSize:16,marginLeft:15,visibility:_t===0?"visible":"hidden"},onClick:()=>{ge()}}))))))},et=({value:mt,onChange:_e,position:lt,removeBlank:Mt})=>{const be=Ft=>{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:Ee.Z.modal,onOk:()=>{const _t=[...mt];_t.splice(Ft,1),_t.length===0?Mt(lt-1):_e(_t)}})},ge=()=>{const Ft=[...mt];Ft.push(""),_e(Ft)};return Ne.createElement(ce.Z,{className:"ml20"},Ne.createElement(je.Z,{flex:1},mt==null?void 0:mt.map((Ft,_t)=>Ne.createElement(ce.Z,{key:`${Ft}_${_t}`,align:"middle",className:"mb20"},Ne.createElement(we.Z,{value:Ft,style:{flex:1},onChange:Tt=>{const xe=[...mt];xe[_t]=Tt,_e(xe)}}),Ne.createElement(me.Z,{title:"\u5220\u9664"},Ne.createElement(tt.Z,{className:Ee.Z.deleteIcon,style:{marginLeft:15,visibility:lt===1&&_t===0?"hidden":"visible"},onClick:()=>be(_t)})),Ne.createElement(me.Z,{title:"\u65B0\u589E\u7B54\u6848"},Ne.createElement(He.Z,{style:{color:"#2A5DD8",fontSize:16,marginLeft:15,visibility:_t===0?"visible":"hidden"},onClick:()=>{ge()}}))))))},Te=({value:mt=!0,onChange:_e})=>Ne.createElement(ye.Z,{checked:!mt,onChange:lt=>{_e(!lt)}}),ue=({questionTitlePlaceholder:mt,form:_e,scoreByBlank:lt=!1,answerKey:Mt})=>{const[be,ge]=(0,y.useState)(!1),Ft=()=>{const Gt=_e.getFieldValue(Mt);_e.setFieldsValue({[Mt]:Gt.map((at,st)=>Qe(ot({},at),{position:st+1}))})},_t=(0,y.useRef)(),Tt=(Gt,at)=>{for(let st=0;st<Gt;st++)_t.current({position:null,answer_text:[""],model:1},at+st);Ft()},xe=(0,y.useRef)(),rt=Gt=>{xe.current(Gt),Ft()},qe=Ae.default.useWatch(Mt,_e);return Ne.createElement("div",{className:Ee.Z.wrap},Ne.createElement("div",{className:Ee.Z.questionTitleEditorWrap},Ne.createElement(Ae.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},Ne.createElement(Ie.h,{scrollId:"name",watch:!0,height:140,placeholder:mt,showNullButton:!0,onAddBlank:()=>{const Gt=_e.getFieldValue(Mt);Tt(1,Gt==null?void 0:Gt.length)}}))),Ne.createElement(Ae.default.List,{name:Mt,rules:[{validator(Gt,at){if(!(at!=null&&at.length))return Promise.reject(new Error("\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879"));for(const st of at){const{answer_text:nt}=st||{};if(nt!=null&&nt.some(rn=>(rn==null?void 0:rn.length)===0))return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(Gt,{add:at,remove:st},{errors:nt})=>(_t.current=at,xe.current=st,Ne.createElement(Ne.Fragment,null,Ne.createElement(Ae.default.Item,{label:Ne.createElement("span",null,"\u586B\u7A7A\u9879\u7B54\u6848"),required:!0,labelCol:{span:24}}),Gt.map((rn,kt)=>{var ae=rn,{key:re,name:te}=ae,oe=ct(ae,["key","name"]),de,ne;return Ne.createElement("div",{style:{marginBottom:10},key:re},Ne.createElement(ce.Z,{className:"mb20",align:"middle",wrap:!1},Ne.createElement(je.Z,{style:{marginRight:10},flex:"0 0 auto",className:`${Ee.Z.blankIndex}`},"\u586B\u7A7A\u9879",kt+1),Ne.createElement(Ae.default.Item,Qe(ot({},oe),{name:[te,"model"],noStyle:!0}),Ne.createElement(pe.ZP.Group,{onChange:()=>{const se=_e.getFieldValue(Mt);_e.setFieldsValue({[Mt]:se.map((Oe,bt)=>Qe(ot({},Oe),{answer_text:te===bt?[""]:Oe.answer_text}))})}},Ne.createElement(pe.ZP,{value:1},"\u6587\u672C\u6A21\u5F0F ",Ne.createElement(me.Z,{title:"\u5B66\u751F\u7B54\u9898\u65F6\uFF0C\u9700\u8981\u5728\u6587\u672C\u6846\u4E2D\u586B\u5199\u6587\u672C\u7B54\u6848"},Ne.createElement(Me.Z,null))),Ne.createElement(pe.ZP,{value:2},"\u6570\u5B66\u516C\u5F0F\u6A21\u5F0F ",Ne.createElement(me.Z,{title:"\u5B66\u751F\u7B54\u9898\u65F6\uFF0C\u9700\u8981\u7F16\u5199\u6570\u5B66\u516C\u5F0F\u4F5C\u4E3A\u7B54\u6848"},Ne.createElement(Me.Z,null)))))),Ne.createElement(ce.Z,{style:{marginLeft:20},align:"middle",wrap:!1},Ne.createElement(je.Z,{flex:1},Ne.createElement(ce.Z,{align:"top",justify:"space-between",wrap:!1},Ne.createElement(je.Z,{flex:1},Ne.createElement(Ae.default.Item,Qe(ot({},oe),{name:[te,"answer_text"],noStyle:!0}),((ne=(de=_e.getFieldValue(Mt))==null?void 0:de[te])==null?void 0:ne.model)===1?Ne.createElement(Ce,{removeBlank:rt,position:kt+1}):Ne.createElement(et,{removeBlank:rt,position:kt+1}))),lt&&Ne.createElement(je.Z,{flex:"224px",style:{margin:"-2px 0 0 20px"}},Ne.createElement(Ae.default.Item,Qe(ot({},oe),{name:[te,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:Ee.Z.blankInputNumberWrapper}),Ne.createElement(le.Z,{min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C"})))),Ne.createElement(Ae.default.Item,Qe(ot({},oe),{name:[te,"position"],noStyle:!0}),Ne.createElement(ve.default,{type:"hidden"})))))})))),Ne.createElement(Re.ZP,{className:"mb20",onClick:()=>Tt(1,qe==null?void 0:qe.length),type:"primary",shape:"round"},"\u65B0\u589E\u586B\u7A7A\u9879"),Ne.createElement(ce.Z,{align:"middle"},Ne.createElement(Ae.default.Item,{name:"downcase",valuePropName:"checked"},Ne.createElement(ye.Z,null)),Ne.createElement(je.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),Ne.createElement(ce.Z,{align:"middle"},Ne.createElement(Ae.default.Item,{name:"no_space",valuePropName:"checked"},Ne.createElement(ye.Z,null)),Ne.createElement(je.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),(qe==null?void 0:qe.length)>1&&Ne.createElement(ce.Z,{align:"middle",className:(qe==null?void 0:qe.length)>1?"mb30":`${Ee.Z.hide}`},Ne.createElement(Ae.default.Item,{name:"is_ordered"},Ne.createElement(Te,null)),Ne.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")),Ne.createElement("div",{onClick:()=>ge(!0)},Ne.createElement(Ae.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Ne.createElement(Ie.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:be}))))}},27277:function(bn,zt,z){"use strict";z.d(zt,{Z:function(){return ft}});var y=z(59301),he=z(77019),ce=z(5269),je=z(28284),ve=z(58e3),me=z(3969),ye=z(59301),Ae=Object.defineProperty,pe=Object.defineProperties,le=Object.getOwnPropertyDescriptors,Re=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,tt=Object.prototype.propertyIsEnumerable,He=(Pe,Fe,Ze)=>Fe in Pe?Ae(Pe,Fe,{enumerable:!0,configurable:!0,writable:!0,value:Ze}):Pe[Fe]=Ze,Me=(Pe,Fe)=>{for(var Ze in Fe||(Fe={}))Ie.call(Fe,Ze)&&He(Pe,Ze,Fe[Ze]);if(Re)for(var Ze of Re(Fe))tt.call(Fe,Ze)&&He(Pe,Ze,Fe[Ze]);return Pe},Ee=(Pe,Fe)=>pe(Pe,le(Fe)),we=(Pe,Fe)=>{var Ze={};for(var $e in Pe)Ie.call(Pe,$e)&&Fe.indexOf($e)<0&&(Ze[$e]=Pe[$e]);if(Pe!=null&&Re)for(var $e of Re(Pe))Fe.indexOf($e)<0&&tt.call(Pe,$e)&&(Ze[$e]=Pe[$e]);return Ze};const Ne={\u6B63\u786E:"T",\u9519\u8BEF:"F"},Xe=({value:Pe,onChange:Fe,form:Ze})=>{const $e=(Pe==null?void 0:Pe.is_answer)===1,gt=Pe==null?void 0:Pe.choice_text,ot=()=>{const Qe=Ze.getFieldsValue().choices.map(ct=>({choice_text:ct.choice_text,is_answer:0}));Ze.setFieldsValue({choices:Qe}),Fe(Ee(Me({},Pe),{is_answer:1}))};return ye.createElement(he.Z,{className:ve.Z.choiceWrap,align:"middle",wrap:!1,style:{marginBottom:"20px"}},ye.createElement(ce.Z,{onClick:ot,className:`${ve.Z.choiceIndex} ${ve.Z.judgementIndex} ${$e?ve.Z.activeAnswer:""}`},Ne[gt]),ye.createElement(ce.Z,{flex:1,className:`${ve.Z.editorWrap} ml15`},ye.createElement("div",{className:`${ve.Z.inputBorder} ${ve.Z.placeholder} ${$e?ve.Z.activeJudgementAnswer:""}`},gt)),ye.createElement(ce.Z,{flex:"0 0 auto",className:"ml15"},ye.createElement("div",{onClick:ot,className:`${ve.Z.setAnswerBtn} ${$e?ve.Z.activeAnswer:""}`},$e?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")))},ft=({questionTitlePlaceholder:Pe,choiceKey:Fe,form:Ze})=>{const[$e,gt]=(0,y.useState)(!1);return ye.createElement("div",{className:ve.Z.wrap},ye.createElement("div",{className:ve.Z.questionTitleEditorWrap},ye.createElement(je.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},ye.createElement(me.h,{scrollId:"name",watch:!0,height:140,placeholder:Pe}))),ye.createElement(je.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}},ye.createElement(je.default.List,{name:"choices",rules:[{validator(ot,Qe){return Qe.some(Ce=>(Ce==null?void 0:Ce.is_answer)===1)?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},ot=>ye.createElement("div",{id:"choices"},ot.map(Qe=>{var ct=Qe,{key:Ce,name:et}=ct,Te=we(ct,["key","name"]);return ye.createElement(je.default.Item,Ee(Me({},Te),{key:Ce,name:et,noStyle:!0}),ye.createElement(Xe,{form:Ze}))})))),ye.createElement("div",{onClick:()=>gt(!0)},ye.createElement(je.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},ye.createElement(me.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:$e}))))}},3969:function(bn,zt,z){"use strict";z.d(zt,{h:function(){return Me},x:function(){return Ee}});var y=z(25374),he=z(58e3),ce=z(95097),je=z(59301),ve=Object.defineProperty,me=Object.defineProperties,ye=Object.getOwnPropertyDescriptors,Ae=Object.getOwnPropertySymbols,pe=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable,Re=(we,Ne,Xe)=>Ne in we?ve(we,Ne,{enumerable:!0,configurable:!0,writable:!0,value:Xe}):we[Ne]=Xe,Ie=(we,Ne)=>{for(var Xe in Ne||(Ne={}))pe.call(Ne,Xe)&&Re(we,Xe,Ne[Xe]);if(Ae)for(var Xe of Ae(Ne))le.call(Ne,Xe)&&Re(we,Xe,Ne[Xe]);return we},tt=(we,Ne)=>me(we,ye(Ne)),He=(we,Ne)=>{var Xe={};for(var ft in we)pe.call(we,ft)&&Ne.indexOf(ft)<0&&(Xe[ft]=we[ft]);if(we!=null&&Ae)for(var ft of Ae(we))Ne.indexOf(ft)<0&&le.call(we,ft)&&(Xe[ft]=we[ft]);return Xe};const Me=we=>{var Ne=we,{value:Xe,onChange:ft,scrollId:Pe}=Ne,Fe=He(Ne,["value","onChange","scrollId"]);return je.createElement("div",{id:Pe||""},je.createElement(y.Z,tt(Ie({},Fe),{defaultValue:Xe,onChange:(Ze,$e)=>{$e!=null&&$e.length?ft(Ze,$e):ft(Ze)}})))},Ee=({value:we,onChange:Ne,placeholder:Xe,height:ft=140,isEdit:Pe,miniToolbar:Fe,watch:Ze=!0})=>Pe?je.createElement(y.Z,{watch:Ze,isFocus:!0,height:ft||void 0,placeholder:Xe,defaultValue:we,onChange:Ne,miniToolbar:Fe}):je.createElement("div",{style:{cursor:"pointer"}},we?je.createElement(ce.Z,{className:he.Z.inputBorder,value:we}):je.createElement("div",{className:`${he.Z.inputBorder} ${he.Z.placeholder} inputBorderError`},Xe))},54190:function(bn,zt,z){"use strict";z.d(zt,{W:function(){return ct}});var y=z(59301),he=z(6767),ce=z(96599),je=z(28284),ve=z(58755),me=z(77019),ye=z(5269),Ae=z(25399),pe=z(37568),le=z(4875),Re=z(58e3),Ie=z(3969),tt=z(25374),He=z(61485),Me=Object.defineProperty,Ee=Object.defineProperties,we=Object.getOwnPropertyDescriptors,Ne=Object.getOwnPropertySymbols,Xe=Object.prototype.hasOwnProperty,ft=Object.prototype.propertyIsEnumerable,Pe=(Ce,et,Te)=>et in Ce?Me(Ce,et,{enumerable:!0,configurable:!0,writable:!0,value:Te}):Ce[et]=Te,Fe=(Ce,et)=>{for(var Te in et||(et={}))Xe.call(et,Te)&&Pe(Ce,Te,et[Te]);if(Ne)for(var Te of Ne(et))ft.call(et,Te)&&Pe(Ce,Te,et[Te]);return Ce},Ze=(Ce,et)=>Ee(Ce,we(et)),$e=(Ce,et)=>{var Te={};for(var ue in Ce)Xe.call(Ce,ue)&&et.indexOf(ue)<0&&(Te[ue]=Ce[ue]);if(Ce!=null&&Ne)for(var ue of Ne(Ce))et.indexOf(ue)<0&&ft.call(Ce,ue)&&(Te[ue]=Ce[ue]);return Te};const gt=Ce=>{var et=Ce,{value:Te,onChange:ue}=et,mt=$e(et,["value","onChange"]);const _e=lt=>{ue([lt])};return y.createElement(tt.Z,Ze(Fe({},mt),{defaultValue:Te==null?void 0:Te[0],onChange:_e}))},ot=Ce=>{if(!Ce)return!1;if(/^s*$/.test(Ce)||Ce.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 Ce==="|"?(he.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},Qe=({value:Ce=[],onClose:et})=>y.createElement(ce.default,{closable:!0,onClose:et,className:Re.Z.keywordTag},y.createElement("pre",{style:{margin:"0px",whiteSpace:"pre-wrap"}},Ce.join(" \u6216 "))),ct=({questionTitlePlaceholder:Ce,form:et,showKeywords:Te,isMustKeyWords:ue=Te})=>{const[mt,_e]=(0,y.useState)(!1),[lt,Mt]=(0,y.useState)(""),be=je.default.useWatch("use_keywords",et),ge=je.default.useWatch("question_score",et);return y.createElement("div",{className:Re.Z.wrap},y.createElement("div",{className:Re.Z.questionTitleEditorWrap},y.createElement(je.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},y.createElement(Ie.h,{scrollId:"name",watch:!0,height:140,placeholder:Ce}))),y.createElement(je.default.Item,{label:"\u53C2\u8003\u7B54\u6848",name:"answer_texts",labelCol:{span:24}},y.createElement(gt,{watch:!0,height:140,placeholder:"\u8BF7\u7F16\u8F91\u53C2\u8003\u7B54\u6848\uFF08\u975E\u5FC5\u586B\uFF09"})),Te&&!ue&&y.createElement(je.default.Item,{hidden:!0,name:"use_keywords",valuePropName:"checked"},y.createElement(ve.Z,{defaultChecked:!0})),Te&&ue&&y.createElement(me.Z,{align:"middle",className:"mb30"},y.createElement(je.default.Item,{name:"use_keywords",valuePropName:"checked"},y.createElement(ve.Z,null)),y.createElement(ye.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),y.createElement(ye.Z,null,y.createElement(Ae.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(He.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),(be||!ue)&&y.createElement(je.default.List,{name:"keywords",rules:[{validator(Ft,_t){return ue?_t!=null&&_t.length?(_t==null?void 0:_t.reduce((xe,rt)=>xe+rt.score,0))>parseFloat(ge)?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()}}]},(Ft,{add:_t,remove:Tt})=>y.createElement(y.Fragment,null,y.createElement("div",{className:`${Re.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(ye.Z,{flex:1},y.createElement(pe.default,{value:lt,onChange:xe=>{Mt(xe.target.value)},maxLength:50,allowClear:!0,onPressEnter:xe=>{var rt,qe,Gt,at;const st=`${(rt=xe.target)==null?void 0:rt.value}`,nt=(Gt=(qe=st==null?void 0:st.split("|"))==null?void 0:qe.filter(ae=>!!ae))==null?void 0:Gt.map(ae=>ae==null?void 0:ae.trim()),rn=et.getFieldValue("keywords"),kt=((at=rn==null?void 0:rn.map(ae=>ae==null?void 0:ae.keyword))==null?void 0:at.flat())||[];for(const ae of nt)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}ot(st)&&(_t({keyword:nt,score:1}),Mt(""))},className:Re.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(ye.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),Ft.map(xe=>{var rt=xe,{key:qe,name:Gt}=rt,at=$e(rt,["key","name"]);return y.createElement(me.Z,{key:qe,className:"mb20",style:{marginRight:148}},y.createElement(ye.Z,{flex:1},y.createElement(me.Z,{align:"middle",justify:"space-between"},y.createElement(je.default.Item,Ze(Fe({},at),{name:[Gt,"keyword"]}),y.createElement(Qe,{onClose:()=>Tt(Gt)})),ue&&y.createElement(je.default.Item,Ze(Fe({},at),{name:[Gt,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:Re.Z.blankInputNumberWrapper}),y.createElement(le.Z,{className:Re.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))}))),y.createElement("div",{onClick:()=>_e(!0)},y.createElement(je.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},y.createElement(Ie.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:mt}))))}},98408:function(bn,zt,z){"use strict";z.d(zt,{tc:function(){return Zt.t},uh:function(){return y.u},rL:function(){return xt},u8:function(){return ce.u},ZZ:function(){return he.Z},Wk:function(){return je.W}});var y=z(85500),he=z(27277),ce=z(78909),je=z(54190),ve=z(59301),me=z(8848),ye=z(28284),Ae=z(77019),pe=z(5269),le=z(4875),Re=z(25399),Ie=z(75727),tt=z(58e3),He=z(12893),Me=z(3969),Ee=z(62957),we=z(37568),Ne=z(58755),Xe=z(7939),ft=z(32134),Pe=z(59301),Fe=Object.defineProperty,Ze=Object.defineProperties,$e=Object.getOwnPropertyDescriptors,gt=Object.getOwnPropertySymbols,ot=Object.prototype.hasOwnProperty,Qe=Object.prototype.propertyIsEnumerable,ct=(dt,At,Ut)=>At in dt?Fe(dt,At,{enumerable:!0,configurable:!0,writable:!0,value:Ut}):dt[At]=Ut,Ce=(dt,At)=>{for(var Ut in At||(At={}))ot.call(At,Ut)&&ct(dt,Ut,At[Ut]);if(gt)for(var Ut of gt(At))Qe.call(At,Ut)&&ct(dt,Ut,At[Ut]);return dt},et=(dt,At)=>Ze(dt,$e(At)),Te=(dt,At)=>{var Ut={};for(var pn in dt)ot.call(dt,pn)&&At.indexOf(pn)<0&&(Ut[pn]=dt[pn]);if(dt!=null&&gt)for(var pn of gt(dt))At.indexOf(pn)<0&&Qe.call(dt,pn)&&(Ut[pn]=dt[pn]);return Ut};const ue=({value:dt,onChange:At,position:Ut,removeBlank:pn})=>{const On=Bn=>{Ee.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 Dt=[...dt];Dt.splice(Bn,1),Dt.length===0?pn(Ut-1):At(Dt)}})},mn=()=>{const Bn=[...dt];Bn.push(""),At(Bn)};return Pe.createElement(Ae.Z,{className:"ml20"},Pe.createElement(pe.Z,{flex:1},dt==null?void 0:dt.map((Bn,Dt)=>Pe.createElement(Ae.Z,{key:`${Bn}_${Dt}`,className:"mb20"},Pe.createElement(we.default.TextArea,{style:{flex:1,minHeight:44},defaultValue:Bn,autoSize:{maxRows:3},maxLength:1e3,onBlur:hn=>{const Wt=[...dt],an=hn.target.value.trim();Wt[Dt]=an,At(Wt)}}),Pe.createElement(Re.Z,{title:"\u5220\u9664"},Pe.createElement(He.Z,{className:tt.Z.deleteIcon,style:{marginLeft:15,visibility:Ut===1&&Dt===0?"hidden":"visible"},onClick:()=>On(Dt)})),Pe.createElement(Re.Z,{title:"\u65B0\u589E\u7B54\u6848"},Pe.createElement(ft.Z,{style:{color:"#2A5DD8",fontSize:16,marginLeft:15,visibility:Dt===0?"visible":"hidden"},onClick:()=>{mn()}}))))))},mt=({value:dt=!0,onChange:At})=>Pe.createElement(Ne.Z,{checked:!dt,onChange:Ut=>{At(!Ut)}}),_e=({questionTitlePlaceholder:dt,form:At,name:Ut,scoreByBlank:pn=!1,answerKey:On,titleKey:mn="name",analysisKey:Bn="analysis",isOrdered:Dt="is_ordered"})=>{var hn,Wt;const[an,Vt]=(0,ve.useState)(!1),cn=()=>{const Gn=At.getFieldValue(["sub_item_banks",...On]);At.setFieldValue(["sub_item_banks",...On],Gn==null?void 0:Gn.map(($n,lr)=>et(Ce({},$n),{position:lr+1})))},on=(0,ve.useRef)(),Zn=(Gn,$n)=>{for(let lr=0;lr<Gn;lr++)on.current({position:null,answer_text:[""]},$n+lr);cn()},_n=(0,ve.useRef)(),Nn=Gn=>{_n.current(Gn),cn()},jn=(Wt=(hn=At.getFieldValue("sub_item_banks"))==null?void 0:hn[On==null?void 0:On[0]])==null?void 0:Wt[On==null?void 0:On[1]];return Pe.createElement("div",{className:tt.Z.wrap},Pe.createElement("div",{className:tt.Z.questionTitleEditorWrap},Pe.createElement(ye.default.Item,{label:"\u9898\u5E72",name:mn,labelCol:{span:24},rules:[{required:!0}]},Pe.createElement(Me.h,{scrollId:"name",watch:!0,height:140,placeholder:dt,showNullButton:!0,onAddBlank:()=>{const Gn=At.getFieldValue(["sub_item_banks",...On]);Zn(1,Gn==null?void 0:Gn.length)}}))),Pe.createElement(ye.default.List,{name:On,rules:[{validator(Gn,$n){if(($n==null?void 0:$n.length)===0)return Promise.reject(new Error("\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879"));for(const lr of $n){const{answer_text:nr}=lr||{};if(nr!=null&&nr.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()}}]},(Gn,{add:$n,remove:lr},{errors:nr})=>(on.current=$n,_n.current=lr,Pe.createElement(Pe.Fragment,null,Pe.createElement(ye.default.Item,{label:Pe.createElement("span",null,"\u586B\u7A7A\u9879\u7B54\u6848"),required:!0,labelCol:{span:24}}),Gn.map((dn,Cn)=>{var Hn=dn,{key:Kn,name:Et}=Hn,Rt=Te(Hn,["key","name"]);return Pe.createElement(Ae.Z,{align:"top",key:Kn},Pe.createElement(pe.Z,{className:`${tt.Z.blankIndex} pt5`},"\u586B\u7A7A\u9879",Cn+1),Pe.createElement(pe.Z,{flex:1},Pe.createElement(Ae.Z,{align:"top",justify:"space-between"},Pe.createElement(pe.Z,{flex:1},Pe.createElement(ye.default.Item,et(Ce({},Rt),{name:[Et,"answer_text"],noStyle:!0}),Pe.createElement(ue,{removeBlank:Nn,position:Cn+1}))),pn&&Pe.createElement(pe.Z,{flex:"224px"},Pe.createElement(ye.default.Item,et(Ce({},Rt),{name:[Et,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:tt.Z.blankInputNumberWrapper}),Pe.createElement(le.Z,{className:tt.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u6309\u7A7A\u7ED9\u5206\u8BF7\u8F93\u5165\u5206\u503C"})))),Pe.createElement(ye.default.Item,et(Ce({},Rt),{name:[Et,"position"],noStyle:!0}),Pe.createElement(we.default,{type:"hidden"}))))})))),Pe.createElement(Xe.ZP,{className:"mb20",onClick:()=>Zn(1,jn==null?void 0:jn.length),type:"primary",shape:"round"},"\u65B0\u589E\u586B\u7A7A\u9879"),Pe.createElement(Ae.Z,{align:"middle"},Pe.createElement(ye.default.Item,{name:[Ut,"downcase"],valuePropName:"checked"},Pe.createElement(Ne.Z,null)),Pe.createElement(pe.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),Pe.createElement(Ae.Z,{align:"middle"},Pe.createElement(ye.default.Item,{name:[Ut,"no_space"],valuePropName:"checked"},Pe.createElement(Ne.Z,null)),Pe.createElement(pe.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),(jn==null?void 0:jn.length)>1&&Pe.createElement(Ae.Z,{align:"middle",className:(jn==null?void 0:jn.length)>1?"mb30":`${tt.Z.hide}`},Pe.createElement(ye.default.Item,{name:Dt},Pe.createElement(mt,null)),Pe.createElement(pe.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",{className:"mt30",onClick:()=>Vt(!0)},Pe.createElement(ye.default.Item,{name:Bn,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Pe.createElement(Me.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:an}))))};var lt=z(59301),Mt=Object.defineProperty,be=Object.defineProperties,ge=Object.getOwnPropertyDescriptors,Ft=Object.getOwnPropertySymbols,_t=Object.prototype.hasOwnProperty,Tt=Object.prototype.propertyIsEnumerable,xe=(dt,At,Ut)=>At in dt?Mt(dt,At,{enumerable:!0,configurable:!0,writable:!0,value:Ut}):dt[At]=Ut,rt=(dt,At)=>{for(var Ut in At||(At={}))_t.call(At,Ut)&&xe(dt,Ut,At[Ut]);if(Ft)for(var Ut of Ft(At))Tt.call(At,Ut)&&xe(dt,Ut,At[Ut]);return dt},qe=(dt,At)=>be(dt,ge(At)),Gt=(dt,At)=>{var Ut={};for(var pn in dt)_t.call(dt,pn)&&At.indexOf(pn)<0&&(Ut[pn]=dt[pn]);if(dt!=null&&Ft)for(var pn of Ft(dt))At.indexOf(pn)<0&&Tt.call(dt,pn)&&(Ut[pn]=dt[pn]);return Ut};const at={\u6B63\u786E:"T",\u9519\u8BEF:"F"},st=({value:dt,onChange:At,form:Ut,choiceKey:pn})=>{const On=(dt==null?void 0:dt.is_answer)===1,mn=dt==null?void 0:dt.choice_text,Bn=()=>{var Dt;const hn=(Dt=Ut==null?void 0:Ut.getFieldValue(["sub_item_banks",...pn]))==null?void 0:Dt.map(Wt=>({choice_text:Wt.choice_text,is_answer:0}));Ut==null||Ut.setFieldValue(["sub_item_banks",...pn],hn),At(qe(rt({},dt),{is_answer:1}))};return lt.createElement(Ae.Z,{className:tt.Z.choiceWrap,align:"middle",wrap:!1},lt.createElement(pe.Z,{onClick:Bn,className:`${tt.Z.choiceIndex} ${tt.Z.judgementIndex} ${On?tt.Z.activeAnswer:""}`},at[mn]),lt.createElement(pe.Z,{flex:1,className:`${tt.Z.editorWrap} ml15`},lt.createElement("div",{className:`${tt.Z.inputBorder} ${tt.Z.placeholder} ${On?tt.Z.activeJudgementAnswer:""}`},mn)),lt.createElement(pe.Z,{flex:"0 0 auto",className:"ml15"},lt.createElement("div",{onClick:Bn,className:`${tt.Z.setAnswerBtn} ${On?tt.Z.activeAnswer:""}`},On?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")))},nt=({questionTitlePlaceholder:dt,choiceKey:At="choices",form:Ut,titleKey:pn="name",analysisKey:On="analysis"})=>{const[mn,Bn]=(0,ve.useState)(!1);return lt.createElement("div",{className:tt.Z.wrap},lt.createElement("div",{className:tt.Z.questionTitleEditorWrap},lt.createElement(ye.default.Item,{label:"\u9898\u5E72",name:pn,labelCol:{span:24},rules:[{required:!0}]},lt.createElement(Me.h,{scrollId:"name",watch:!0,height:140,placeholder:dt}))),lt.createElement(ye.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}},lt.createElement(ye.default.List,{name:At,rules:[{validator(Dt,hn){return hn.some(an=>(an==null?void 0:an.is_answer)===1)?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},Dt=>lt.createElement("div",{id:"choices",style:{display:"flex",flexDirection:"column",gap:"20px"}},Dt.map(hn=>{var Wt=hn,{key:an,name:Vt}=Wt,cn=Gt(Wt,["key","name"]);return lt.createElement(ye.default.Item,qe(rt({},cn),{key:an,name:Vt,noStyle:!0}),lt.createElement(st,{form:Ut,choiceKey:At}))})))),lt.createElement("div",{className:"mt30",onClick:()=>Bn(!0)},lt.createElement(ye.default.Item,{name:On,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},lt.createElement(Me.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:mn}))))};var rn=z(6767),kt=z(96599),ae=z(25374),re=z(61485),te=Object.defineProperty,oe=Object.defineProperties,de=Object.getOwnPropertyDescriptors,ne=Object.getOwnPropertySymbols,se=Object.prototype.hasOwnProperty,Oe=Object.prototype.propertyIsEnumerable,bt=(dt,At,Ut)=>At in dt?te(dt,At,{enumerable:!0,configurable:!0,writable:!0,value:Ut}):dt[At]=Ut,Ge=(dt,At)=>{for(var Ut in At||(At={}))se.call(At,Ut)&&bt(dt,Ut,At[Ut]);if(ne)for(var Ut of ne(At))Oe.call(At,Ut)&&bt(dt,Ut,At[Ut]);return dt},We=(dt,At)=>oe(dt,de(At)),it=(dt,At)=>{var Ut={};for(var pn in dt)se.call(dt,pn)&&At.indexOf(pn)<0&&(Ut[pn]=dt[pn]);if(dt!=null&&ne)for(var pn of ne(dt))At.indexOf(pn)<0&&Oe.call(dt,pn)&&(Ut[pn]=dt[pn]);return Ut};const ht=dt=>{var At=dt,{value:Ut,onChange:pn}=At,On=it(At,["value","onChange"]);const mn=Bn=>{pn([Bn])};return ve.createElement(ae.Z,We(Ge({},On),{defaultValue:Ut==null?void 0:Ut[0],onChange:mn}))},Pt=dt=>{if(!dt)return!1;let At=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==="|"?(rn.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},Le=({value:dt=[],onClose:At})=>ve.createElement(kt.default,{closable:!0,onClose:At,className:tt.Z.keywordTag},ve.createElement("pre",{style:{margin:"0px",whiteSpace:"pre-wrap"}},dt.join(" \u6216 "))),Ve=({questionTitlePlaceholder:dt,form:At,showKeywords:Ut,isMustKeyWords:pn=Ut,titleKey:On="name",analysisKey:mn="analysis",answerTexts:Bn="answer_texts",keywords:Dt="keywords",useKeywords:hn="use_keywords",indexs:Wt})=>{const[an,Vt]=(0,ve.useState)(!1),[cn,on]=(0,ve.useState)(""),[Zn,_n]=(0,ve.useState)(!1),Nn=ye.default.useWatch("question_score",At);return ve.createElement("div",{className:tt.Z.wrap},ve.createElement("div",{className:tt.Z.questionTitleEditorWrap},ve.createElement(ye.default.Item,{label:"\u9898\u5E72",name:On,labelCol:{span:24},rules:[{required:!0}]},ve.createElement(Me.h,{scrollId:"name",watch:!0,height:140,placeholder:dt}))),ve.createElement(ye.default.Item,{label:"\u53C2\u8003\u7B54\u6848",name:Bn,labelCol:{span:24}},ve.createElement(ht,{watch:!0,height:140,placeholder:"\u8BF7\u7F16\u8F91\u53C2\u8003\u7B54\u6848\uFF08\u975E\u5FC5\u586B\uFF09"})),Ut&&!pn&&ve.createElement(ye.default.Item,{hidden:!0,name:hn,valuePropName:"checked"},ve.createElement(Ne.Z,{defaultChecked:!0})),Ut&&pn&&ve.createElement(Ae.Z,{align:"middle",className:"mb30"},ve.createElement(ye.default.Item,{name:hn,valuePropName:"checked"},ve.createElement(Ne.Z,{onChange:()=>{var jn,Gn,$n,lr,nr,dn;console.log(At.getFieldsValue()),_n(($n=(Gn=(jn=At.getFieldsValue())==null?void 0:jn.sub_item_banks)==null?void 0:Gn[Wt])==null?void 0:$n.use_keywords),console.log((dn=(nr=(lr=At.getFieldsValue())==null?void 0:lr.sub_item_banks)==null?void 0:nr[Wt])==null?void 0:dn.use_keywords),console.log(Zn)}})),ve.createElement(pe.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),ve.createElement(pe.Z,null,ve.createElement(Re.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"},ve.createElement(re.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),(Zn||!pn)&&ve.createElement(ye.default.List,{name:Dt,rules:[{validator(jn,Gn){return pn?Gn!=null&&Gn.length?(Gn==null?void 0:Gn.reduce((lr,nr)=>lr+nr.score,0))>parseFloat(Nn)?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()}}]},(jn,{add:Gn,remove:$n})=>ve.createElement(ve.Fragment,null,ve.createElement("div",{className:`${tt.Z.title} mb10`},pn?"\u5173\u952E\u8BCD":ve.createElement("span",{style:{color:"#9096A3"}},"\u5224\u5206\u5173\u952E\u8BCD")),ve.createElement(Ae.Z,{align:"middle",className:"font14 mb30"},ve.createElement(pe.Z,{flex:1},ve.createElement(we.default,{value:cn,onChange:lr=>{on(lr.target.value)},maxLength:50,allowClear:!0,onPressEnter:lr=>{var nr,dn,Cn,Hn;const Kn=`${(nr=lr.target)==null?void 0:nr.value}`,Et=(Cn=(dn=Kn==null?void 0:Kn.split("|"))==null?void 0:dn.filter(Bt=>!!Bt))==null?void 0:Cn.map(Bt=>Bt==null?void 0:Bt.trim()),Rt=At.getFieldValue(["sub_item_banks",...Dt]),Je=((Hn=Rt==null?void 0:Rt.map(Bt=>Bt==null?void 0:Bt.keyword))==null?void 0:Hn.flat())||[];for(const Bt of Et)if(Je.includes(Bt)){rn.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}Pt(Kn)&&(Gn({keyword:Et,score:1}),on(""))},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"})),ve.createElement(pe.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),jn.map(lr=>{var nr=lr,{key:dn,name:Cn}=nr,Hn=it(nr,["key","name"]);return ve.createElement(Ae.Z,{key:dn,className:"mb20",style:{marginRight:148}},ve.createElement(pe.Z,{flex:1},ve.createElement(Ae.Z,{align:"middle",justify:"space-between"},ve.createElement(ye.default.Item,We(Ge({},Hn),{name:[Cn,"keyword"]}),ve.createElement(Le,{onClose:()=>$n(Cn)})),pn&&ve.createElement(ye.default.Item,We(Ge({},Hn),{name:[Cn,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:tt.Z.blankInputNumberWrapper}),ve.createElement(le.Z,{className:tt.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))}))),ve.createElement("div",{onClick:()=>Vt(!0)},ve.createElement(ye.default.Item,{name:mn,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:an}))))};var Ot=z(59301),Yt=Object.defineProperty,un=Object.defineProperties,tn=Object.getOwnPropertyDescriptors,Lt=Object.getOwnPropertySymbols,ln=Object.prototype.hasOwnProperty,$t=Object.prototype.propertyIsEnumerable,ze=(dt,At,Ut)=>At in dt?Yt(dt,At,{enumerable:!0,configurable:!0,writable:!0,value:Ut}):dt[At]=Ut,yt=(dt,At)=>{for(var Ut in At||(At={}))ln.call(At,Ut)&&ze(dt,Ut,At[Ut]);if(Lt)for(var Ut of Lt(At))$t.call(At,Ut)&&ze(dt,Ut,At[Ut]);return dt},Ht=(dt,At)=>un(dt,tn(At)),en=(dt,At)=>{var Ut={};for(var pn in dt)ln.call(dt,pn)&&At.indexOf(pn)<0&&(Ut[pn]=dt[pn]);if(dt!=null&&Lt)for(var pn of Lt(dt))At.indexOf(pn)<0&&$t.call(dt,pn)&&(Ut[pn]=dt[pn]);return Ut};const{Panel:Ke}=me.default,xt=({questionTitlePlaceholder:dt,choiceKey:At,form:Ut,withScore:pn})=>{const[On,mn]=(0,ve.useState)([]),Bn=Dt=>{mn(Dt)};return Ot.createElement("div",{className:tt.Z.wrap},Ot.createElement("div",{className:tt.Z.questionTitleEditorWrap},Ot.createElement(ye.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},Ot.createElement(Me.h,{scrollId:"name",watch:!0,height:140,placeholder:dt}))),Ot.createElement(ye.default.Item,{label:"\u5C0F\u9898",required:!0,labelCol:{span:24}}),Ot.createElement(ye.default.List,{name:"sub_item_banks",rules:[{validator(Dt,hn){return hn?Promise.resolve():Promise.reject(new Error("\u8BF7\u6DFB\u52A0\u5C0F\u9898"))}}]},(Dt,{add:hn,remove:Wt,move:an})=>{const Vt=Ut.getFieldValue("sub_item_banks");return Ot.createElement(Ot.Fragment,null,Ot.createElement(me.default,{className:Dt.length>0?tt.Z.collapseWrapper:"",bordered:!1,activeKey:On,onChange:Bn,expandIcon:({isActive:cn})=>Ot.createElement("i",{className:`iconfont icon-weizhankai ${cn?tt.Z.open:tt.Z.close}`,style:{fontSize:14,transition:"all .2s"}})},Dt.map((cn,on)=>{var Zn=cn,{key:_n,name:Nn}=Zn,jn=en(Zn,["key","name"]),Gn,$n,lr,nr,dn,Cn,Hn,Kn,Et,Rt;return Ot.createElement(Ke,{className:tt.Z.panel,forceRender:!0,header:Ot.createElement("div",{className:tt.Z.panelHeader},"\u7B2C",on+1,"\u5C0F\u9898",Ot.createElement("span",null,"\uFF08",((Gn=Vt==null?void 0:Vt[Nn])==null?void 0:Gn.item_type)=="SINGLE"?"\u5355\u9009\u9898":(($n=Vt==null?void 0:Vt[Nn])==null?void 0:$n.item_type)=="MULTIPLE"?"\u591A\u9009\u9898":((lr=Vt==null?void 0:Vt[Nn])==null?void 0:lr.item_type)=="COMPLETION"?"\u586B\u7A7A\u9898":((nr=Vt==null?void 0:Vt[Nn])==null?void 0:nr.item_type)=="JUDGMENT"?"\u5224\u65AD\u9898":"\u7B80\u7B54\u9898","\uFF09")),key:Nn,extra:Ot.createElement(Ae.Z,{align:"middle",onClick:Je=>Je.stopPropagation()},pn&&Ot.createElement(pe.Z,null,Ot.createElement(ye.default.Item,Ht(yt({},jn),{rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5C0F\u9898\u5206\u503C"}],label:"\u5206\u503C",name:[Nn,"question_score"],className:tt.Z.blankInputNumberWrapper}),Ot.createElement(le.Z,{className:tt.Z.blankInput,placeholder:"\u8BF7\u8F93\u5165\u5F53\u524D\u5C0F\u9898\u5206\u6570",min:.1,precision:1,max:100,style:{width:150}}))),Ot.createElement(pe.Z,null,Ot.createElement(Ae.Z,{align:"middle",className:"pl40",justify:"end"},on!==0&&Ot.createElement("div",{onClick:()=>{var Je;an(on,on-1);const Bt=(Je=Ut.getFieldValue("sub_item_banks"))==null?void 0:Je.map((Ue,Nt)=>(Dt.map((Jt,Ln)=>{Nt===Ln&&(Ue.q_position=Number(Jt.name)+1)}),Ue));Ut.setFieldValue("sub_item_banks",Bt)}},Ot.createElement(Re.Z,{title:"\u4E0A\u79FB"},Ot.createElement("i",{className:"iconfont icon-shangyi3 c-grey-999 primary-hover"}))),on<Dt.length-1&&Ot.createElement("div",{onClick:()=>{var Je;an(on,on+1);const Bt=(Je=Ut.getFieldValue("sub_item_banks"))==null?void 0:Je.map((Ue,Nt)=>(Dt.map((Jt,Ln)=>{Nt===Ln&&(Ue.q_position=Number(Jt.name)+1)}),Ue));Ut.setFieldValue("sub_item_banks",Bt)},className:on===0?"":"ml15"},Ot.createElement(Re.Z,{title:"\u4E0B\u79FB"},Ot.createElement("i",{className:"iconfont icon-xiayi3 c-grey-999 primary-hover"}))))),Ot.createElement(pe.Z,null,Ot.createElement(Re.Z,{title:"\u5220\u9664"},Ot.createElement(He.Z,{className:`${tt.Z.deleteIcon} ml15`,onClick:()=>Wt(Nn)}))))},Ot.createElement(ye.default.Item,Ht(yt({},jn),{name:Nn}),(((dn=Vt==null?void 0:Vt[Nn])==null?void 0:dn.item_type)=="SINGLE"||((Cn=Vt==null?void 0:Vt[Nn])==null?void 0:Cn.item_type)=="MULTIPLE")&&Ot.createElement(y.u,{questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9009\u62E9\u9898\u9898\u5E72\u5185\u5BB9",allowChangeMode:((Hn=Vt==null?void 0:Vt[Nn])==null?void 0:Hn.item_type)=="MULTIPLE",form:Ut,choiceKey:[Nn,"choices"],titleKey:[Nn,"name"],analysisKey:[Nn,"analysis"],choiceOptionsPath:["sub_item_banks",Nn,"choices"],choiceTextKey:"choice_text",answerKey:"is_answer"}),((Kn=Vt==null?void 0:Vt[Nn])==null?void 0:Kn.item_type)=="COMPLETION"&&Ot.createElement(_e,{form:Ut,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9898\u5E72\uFF0C\u60A8\u53EF\u4EE5\u7528\u4EFB\u610F\u5B57\u7B26\u8868\u793A\u586B\u7A7A\u9879",scoreByBlank:!1,name:Nn,titleKey:[Nn,"name"],analysisKey:[Nn,"analysis"],isOrdered:[Nn,"is_ordered"],answerKey:[Nn,"standard_answers"]}),((Et=Vt==null?void 0:Vt[Nn])==null?void 0:Et.item_type)=="JUDGMENT"&&Ot.createElement(nt,{form:Ut,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u5224\u65AD\u9898\u9898\u5E72\u5185\u5BB9",titleKey:[Nn,"name"],analysisKey:[Nn,"analysis"],choiceKey:[Nn,"choices"]}),((Rt=Vt==null?void 0:Vt[Nn])==null?void 0:Rt.item_type)=="SUBJECTIVE"&&Ot.createElement(Ve,{showKeywords:!0,isMustKeyWords:!1,form:Ut,titleKey:[Nn,"name"],analysisKey:[Nn,"analysis"],answerTexts:[Nn,"answer_texts"],useKeywords:[Nn,"use_keywords"],keywords:[Nn,"keywords"],indexs:Nn,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7B80\u7B54\u9898\u9898\u5E72\u5185\u5BB9"})))})),Dt.length<20&&Ot.createElement(Ie.Z,{menu:{items:[{label:Ot.createElement("div",{onClick:()=>{hn({name:"",choices:Array.from({length:4},()=>({choice_text:"",is_answer:0})),analysis:"",item_type:"SINGLE"}),mn([Dt==null?void 0:Dt.length,...On])}},"\u5355\u9009\u9898"),key:"1",show:!0},{label:Ot.createElement("div",{onClick:()=>{hn({name:"",choices:Array.from({length:4},()=>({choice_text:"",is_answer:0})),analysis:"",item_type:"MULTIPLE"}),mn([Dt==null?void 0:Dt.length,...On])}},"\u591A\u9009\u9898"),key:"2",show:!0},{label:Ot.createElement("div",{onClick:()=>{hn({name:"",choices:[{choice_text:"\u6B63\u786E",is_answer:0},{choice_text:"\u9519\u8BEF",is_answer:0}],analysis:"",item_type:"JUDGMENT"}),mn([Dt==null?void 0:Dt.length,...On])}},"\u5224\u65AD\u9898"),key:"3",show:!0},{label:Ot.createElement("div",{onClick:()=>{hn({name:"",analysis:"",is_ordered:!0,standard_answers:[{position:1,answer_text:[""]}],item_type:"COMPLETION",downcase:!0,no_space:!0}),mn([Dt==null?void 0:Dt.length,...On])}},"\u586B\u7A7A\u9898"),key:"4",show:!0},{label:Ot.createElement("div",{onClick:()=>{hn({name:"",answer_texts:[],keywords:[],use_keywords:!0,analysis:"",item_type:"SUBJECTIVE"}),mn([Dt==null?void 0:Dt.length,...On])}},"\u7B80\u7B54\u9898"),key:"5",show:!0}].filter(cn=>cn.show).map(cn=>({label:cn.label,key:cn.key}))}},Ot.createElement("div",{className:`${tt.Z.addBtn}`},"\u6DFB\u52A0\u5C0F\u9898")))}))};var Zt=z(92716)},95097:function(bn,zt,z){"use strict";z.d(zt,{z:function(){return ct},Z:function(){return Ce}});var y=z(59301),he=z(48850),ce=z(49142),je=z(64018),ve=z(17030),me=z(74128),ye=z(65862),Ae=z(15342),pe=z(44104),le=z(7939),Re=z(1012),Ie=z(52918),tt=z(59301),Me=({html:et})=>{const Te=(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 _e=Te.current.attachShadow({mode:"open"});ue.current=document.createElement("div"),ue.current.className="markdown-body",ue.current.innerHTML=et,_e.appendChild(ue.current);const lt=document.createElement("style");return lt.textContent=mt,_e.appendChild(lt),()=>{_e.innerHTML=""}},[]),(0,y.useEffect)(()=>{ue.current&&(ue.current.innerHTML=et)},[et]),tt.createElement("div",{ref:Te})};function Ee(et){const Te=["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(${Te.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi");return et.replace(ue,"").trim()}var we={mdBody:"mdBody___raKXb",button:"button___Ch5Pc",previewFlowChart:"previewFlowChart___vY1dq"},Ne=Object.defineProperty,Xe=Object.getOwnPropertySymbols,ft=Object.prototype.hasOwnProperty,Pe=Object.prototype.propertyIsEnumerable,Fe=(et,Te,ue)=>Te in et?Ne(et,Te,{enumerable:!0,configurable:!0,writable:!0,value:ue}):et[Te]=ue,Ze=(et,Te)=>{for(var ue in Te||(Te={}))ft.call(Te,ue)&&Fe(et,ue,Te[ue]);if(Xe)for(var ue of Xe(Te))Pe.call(Te,ue)&&Fe(et,ue,Te[ue]);return et};const $e="@\u2581\u2581@",gt="@\u2581@",ot=/<pre[^>]*>/g;function Qe(et){let Te=document.createElement("div");return Te.innerHTML=et,Te.childNodes.length===0?"":Te.childNodes[0].nodeValue}const ct=(et,Te)=>{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,_e=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,lt=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return Te?et.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(ue,(Mt,be,ge,Ft,_t,Tt,xe)=>{const rt=be||Ft||Tt,qe=ge||_t||xe||"?";return me.Z.API_SERVER+"/api/attachments/"+rt+qe+"&t="+(0,ye.Jn)(rt,Date.now())+(Mt.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(et=et.replace(lt,(Mt,be,ge,Ft,_t,Tt,xe)=>{const rt=be||Ft||Tt,qe=ge||_t||xe||"?";return me.Z.API_SERVER+"/attachments/download/"+rt+qe+"&t="+(0,ye.Jn)(rt,Date.now())+(Mt.indexOf(")")>-1?")":"&")}).replace(ue,(Mt,be,ge,Ft,_t,Tt,xe)=>{const rt=be||Ft||Tt,qe=ge||_t||xe||"?";return me.Z.API_SERVER+"/api/attachments/"+rt+qe+"&t="+(0,ye.Jn)(rt,Date.now())+(Mt.indexOf(")")>-1?")":"&")}).replace(mt,(Mt,be,ge,Ft,_t)=>{const Tt=be||Ft,xe=ge||_t||"";return'"'+me.Z.API_SERVER+"/api/attachments/"+Tt+xe+Tt+xe+"&t="+(0,ye.Jn)(Tt,Date.now())}).replace(_e,(Mt,be,ge,Ft,_t)=>{const Tt=be||Ft,xe=ge||_t||"";return"("+me.Z.API_SERVER+"/files/uploads/"+Tt+xe+Tt+xe+"&t="+(0,ye.Jn)(Tt,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 Ce=({value:et="",edit:Te=!1,className:ue,showTextOnly:mt,showLines:_e,style:lt={},stylesPrev:Mt={},highlightKeywords:be,showProgramFill:ge,isProgramFill:Ft,disabledFill:_t=!1,programFillValue:Tt,openEditor:xe=()=>{},onFillChange:rt=at=>{},onFillBlur:qe=()=>{},onFillFocus:Gt=()=>{}})=>{let at=Ee(String(et||""));const st=(0,y.useRef)(),nt=(0,y.useRef)(),[rn,kt]=(0,y.useState)(""),[ae,re]=(0,y.useState)("office"),[te,oe]=(0,y.useState)([]),de=(0,y.useRef)("a"+(0,Re.Z)()),ne={},se=Lt=>/<style[\s\S]*?>/i.test(Lt||""),Oe=(Lt,ln,$t)=>{const ze=document.createElement(Lt===gt?"input":"textarea");ze.style.width="100%",ze.style.height=Lt===gt?"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 ${Lt===gt?"":"show"}" style="width:${Lt===gt?"600px":"100%"}" title=${$t||""}><span>${ze.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function bt(Lt){return Lt=Lt.replace(/!\[.*?\]\(.*?\)/g,""),Lt=Lt.replace(/\[.*?\]\(.*?\)/g,""),Lt=Lt.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),Lt=Lt.replace(/<embed.*?>/g,""),Lt=Lt.replace(/<img.*?>/g,""),Lt=Lt.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),Lt=Lt.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),Lt=Lt.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),Lt=Lt.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),Lt}const Ge=Lt=>!mt&&se(at)?Lt:Lt.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(ln,$t){let ze=$t.replace(/(\n|\r)/g,"").split("}"),yt=[];return ze.map(Ht=>{Ht!=""&&yt.push(`.${de.current} ${Ht}`)}),`<style>${yt.join("}")}</style>`}),We=(0,y.useMemo)(()=>{try{const ze=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,yt=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Ht=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,en=/\(\/attachments\/download\//g;at=at.replace(en,"("+me.Z.API_SERVER+"/attachments/download/").replace(ze,"("+me.Z.API_SERVER+"/api/attachments/").replace(yt,'"'+me.Z.API_SERVER+"/api/attachments/").replace(Ht,'"'+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,`
`),st.current.style.display="none"}catch(ze){}if(ge){let ze=-1;return at=at.replaceAll("<","&lt;").replaceAll(">","&gt;").replace(/(@▁▁@|@▁@)/g,function(yt,Ht,en){var Ke;return++ze,Oe(yt,ze,(Ke=Tt==null?void 0:Tt[ze])==null?void 0:Ke.value.replaceAll("<","&lt;").replaceAll(">","&gt;"))}),`<pre style="background:#fff;padding:4px">${Ge(at||"")}</pre>`}let Lt=Ge(at);Lt=(0,ce.ZP)(Lt);const ln=(0,ce.ez)();at.match(/\[TOC\]/)&&(Lt=Lt.replace("<p>[TOC]</p>",(0,ce.Qv)()),(0,ce.Iy)()),Lt=Lt.replace(/(__special_katext_id_\d+__)/g,(ze,yt)=>{const{type:Ht,expression:en}=ln[yt];return(0,Ae.renderToString)(Qe(en)||"",{displayMode:Ht==="block",throwOnError:!1,output:"html"})}),Lt=Lt.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,ce.AL)();const $t=document.createElement("div");if($t.innerHTML=Lt,mt)return $t.innerText;if(be){const ze=be.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return Le($t,ze),$t.innerHTML}return setTimeout(()=>Yt(),500),$t.innerHTML},[at,be]);(0,y.useEffect)(()=>{Ve.current&&Ve.current.querySelectorAll(["input","textarea"]).forEach(ln=>{ln.oninput=it,ln.onblur=ht,ln.onfocus=Pt})},[te]),(0,y.useEffect)(()=>{var Lt,ln,$t,ze,yt;if(Tt!=null&&Tt.length)try{const Ht=Ve.current.querySelectorAll(".edu-program-fill-score"),en=Ve.current.querySelectorAll('[name="edu-program-fill"]');for(const[Ke,xt]of en.entries())xt.value=((Lt=Tt==null?void 0:Tt[Ke])==null?void 0:Lt.value)||"",((ln=Tt==null?void 0:Tt[Ke])==null?void 0:ln.type)==="warning"?xt.className="program-fill-warning":(($t=Tt==null?void 0:Tt[Ke])==null?void 0:$t.type)==="success"?xt.className="program-fill-success":xt.className="";for(const[Ke,xt]of Ht.entries())xt.innerHTML=(ze=Tt==null?void 0:Tt[Ke])!=null&&ze.score?`${(yt=Tt==null?void 0:Tt[Ke])==null?void 0:yt.score}\u5206`:"";oe(Tt)}catch(Ht){console.log(Ht,"error")}},[Tt]);const it=Lt=>{te[Lt.target.dataset.id]=te[Lt.target.dataset.id]||{},te[Lt.target.dataset.id].value=Lt.target.value,oe([...te]),rt(te,Lt.target.dataset.id)},ht=Lt=>{te[Lt.target.dataset.id]=te[Lt.target.dataset.id]||{},te[Lt.target.dataset.id].value=Lt.target.value,oe([...te]),qe(te,Lt.target.dataset.id)},Pt=Lt=>{te[Lt.target.dataset.id]=te[Lt.target.dataset.id]||{},te[Lt.target.dataset.id].value=Lt.target.value,oe([...te]),Gt(te,Lt.target.dataset.id)};function Le(Lt,ln){return Lt.childNodes.forEach($t=>{var ze;if($t.childNodes.length>0)Le($t,ln);else if($t.nodeName!=="IMG")if($t.innerHTML)$t.innerHTML=(ze=$t.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=$t.textContent.replace(new RegExp(ln,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),$t.replaceWith(yt)}})}const Ve=(0,y.useRef)();ce.jb.WebkitLineClamp=_e,_e&&(lt=Ze(Ze({},lt),ce.jb));function Ot(Lt){let ln=Lt.target;if(ln.tagName.toUpperCase()==="A"){let $t=ln.getAttribute("href");if($t.indexOf("office")>-1)Lt.preventDefault(),kt($t),re("office");else if($t.indexOf("application/pdf")>-1)Lt.preventDefault(),kt($t),re("pdf");else if($t.indexOf("text/html")>-1)Lt.preventDefault(),kt($t),re("html");else if($t.startsWith("#")){Lt.preventDefault();let ze=document.getElementById($t.replace("#",""));ze&&ze.scrollIntoView(!0)}}}const Yt=()=>{var Lt;const ln=(Lt=Ve.current)==null?void 0:Lt.querySelectorAll("video");ln==null||ln.forEach($t=>{if($t.oncontextmenu=()=>!1,$t.src.indexOf(".m3u8")>-1&&!$t.canPlayType("application/vnd.apple.mpegurl")){if(ve.ZP.isSupported()){var ze=new ve.ZP;ze.loadSource($t.src),ze.attachMedia($t)}}})};(0,y.useEffect)(()=>{if(Ve.current&&We&&We.match(ot)&&window.PR.prettyPrint(),Ve.current)return Ve.current.addEventListener("click",Ot),()=>{var Lt;(Lt=Ve.current)==null||Lt.removeEventListener("click",Ot),(0,ce.AL)(),(0,ce.Iy)()}},[We,Ve.current,Ot]);const un=Lt=>{Lt.target.nodeName==="IMG"&&Lt.target.className.indexOf("draw-flowchart")>-1?(st.current.style.zIndex=1,st.current.style.display="flex",st.current.style.width=Lt.target.clientWidth+"px",st.current.style.height=Lt.target.clientHeight+"px",st.current.style.top=Lt.target.offsetTop+"px",st.current.style.left=Lt.target.offsetLeft+"px",Lt.target.id&&(nt.current=Lt.target.id)):st.current.style.display="none"},tn=()=>{st.current.style.display="none"};return(0,y.useEffect)(()=>{var Lt;const ln=$t=>{$t.preventDefault(),$t.clipboardData.setData("text",window.getSelection().toString())};return(Lt=Ve.current)==null||Lt.addEventListener("copy",ln),()=>{var $t;($t=Ve.current)==null||$t.removeEventListener("copy",ln)}},[Ve.current]),y.createElement("div",{style:{position:"relative"},onMouseLeave:tn},mt&&y.createElement("div",{ref:Ve,className:`${we.mdBody} `},We),!mt&&!se(We)&&y.createElement("div",{ref:Ve,style:Ze({},lt),onMouseOver:un,className:`${ue||""} ${_t?"disabled-fill":""} markdown-body ${we.mdBody} ${de.current}`,dangerouslySetInnerHTML:{__html:We}}),!mt&&se(We)&&y.createElement(Me,{html:We}),y.createElement("div",{ref:st,className:`${we.button} ${Te?"":we.previewFlowChart}`},y.createElement(pe.Z,null,y.createElement(le.ZP,{onClick:()=>{Te?xe(nt.current):(kt(nt.current),re("flowChart"))}},Te?"\u7F16\u8F91":"\u9884\u89C8"))),y.createElement(Ie.Z,{close:!0,data:rn,type:rn!=null&&rn.length?ae:"",style:Ze({},Mt),onClose:()=>kt("")}))}},25965:function(bn,zt,z){"use strict";z.d(zt,{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"},ce=z(92310),je=z.n(ce),ve=z(62673),me=z(77019),ye=z(6767),Ae=z(25399),pe=z(7939),le=z(62957),Re=z(70858),Ie=z(4875),tt=z(28284),He=z(29787),Me=z(65862),Ee=z(38147),we=z(41867),Ne=z(71067),Xe=z(82636),ft=Object.defineProperty,Pe=Object.defineProperties,Fe=Object.getOwnPropertyDescriptors,Ze=Object.getOwnPropertySymbols,$e=Object.prototype.hasOwnProperty,gt=Object.prototype.propertyIsEnumerable,ot=(_e,lt,Mt)=>lt in _e?ft(_e,lt,{enumerable:!0,configurable:!0,writable:!0,value:Mt}):_e[lt]=Mt,Qe=(_e,lt)=>{for(var Mt in lt||(lt={}))$e.call(lt,Mt)&&ot(_e,Mt,lt[Mt]);if(Ze)for(var Mt of Ze(lt))gt.call(lt,Mt)&&ot(_e,Mt,lt[Mt]);return _e},ct=(_e,lt)=>Pe(_e,Fe(lt)),Ce=(_e,lt,Mt)=>new Promise((be,ge)=>{var Ft=xe=>{try{Tt(Mt.next(xe))}catch(rt){ge(rt)}},_t=xe=>{try{Tt(Mt.throw(xe))}catch(rt){ge(rt)}},Tt=xe=>xe.done?be(xe.value):Promise.resolve(xe.value).then(Ft,_t);Tt((Mt=Mt.apply(_e,lt)).next())});const et=ve.default.Group,Te=({className:_e,title:lt,items:Mt=[],value:be,onChange:ge})=>{const Ft=(Mt==null?void 0:Mt.length)===(be==null?void 0:be.length),_t=(be==null?void 0:be.length)>0&&(be==null?void 0:be.length)<(Mt==null?void 0:Mt.length),Tt=xe=>{const rt=Mt.map(qe=>qe.id);ge(xe.target.checked?rt:[])};return y.createElement(me.Z,{align:"middle",className:_e},!!lt&&y.createElement("div",{className:"mr20",style:{color:"#5F6368"}},lt),y.createElement(ve.default,{indeterminate:_t,onChange:Tt,checked:Ft},"\u5168\u90E8"),y.createElement(et,{value:be,onChange:ge},Mt.map(xe=>y.createElement(ve.default,{className:"ml30 c-black",key:xe.id,value:xe.id},xe.name,y.createElement("span",null,`(${xe.count})`)))))};var mt=({className:_e,style:lt,dataSource:Mt})=>{var be,ge,Ft,_t,Tt,xe,rt;const[qe,Gt]=(0,y.useState)({}),[at,st]=(0,y.useState)(!0),[nt,rn]=(0,y.useState)(!1),[kt,ae]=(0,y.useState)(!1),[re,te]=(0,y.useState)(null),[oe,de]=(0,y.useState)(0),[ne,se]=(0,y.useState)({}),[Oe,bt]=(0,y.useState)(!0),[Ge,We]=(0,y.useState)(0),[it,ht]=(0,y.useState)(0),[Pt,Le]=(0,y.useState)(!1),Ve=(0,y.useRef)(null),[Ot,Yt]=(0,y.useState)(!1),[un,tn]=(0,y.useState)(!0),[Lt,ln]=(0,y.useState)([]),$t={page:1,per_page:5,keyword:"",review:[],question_status:[],success_status:[],sort_by:null,direction:null},[ze,yt]=(0,y.useState)(Qe({},$t));(0,y.useEffect)(()=>{Mt!=null&&Mt.question_id&&Gt(Mt)},[Mt==null?void 0:Mt.question_id]),(0,y.useEffect)(()=>{var Dt;if(((Dt=qe==null?void 0:qe.exercise_question_resubmit)==null?void 0:Dt.status)==="running"){const hn=setInterval(()=>{Ke()},3e3);return()=>clearInterval(hn)}},[(be=qe==null?void 0:qe.exercise_question_resubmit)==null?void 0:be.status]),(0,y.useEffect)(()=>{var Dt;kt&&(kt===1&&(ze.question_status=xt.map(hn=>hn.value),ze.review=Zt.map(hn=>hn.value)),kt===2&&(ze.exercise_question_resubmit_id=(Dt=qe==null?void 0:qe.exercise_question_resubmit)==null?void 0:Dt.id,re===1&&(ze.success_status=[1]),re===2&&(ze.success_status=[0])),yt(Qe({},ze)),Ht(ze),ht(qe!=null&&qe.is_mirror?3:10),We(qe!=null&&qe.is_mirror?1:5))},[kt]),(0,y.useEffect)(()=>{Ot&&en()},[Ot]);const Ht=Dt=>Ce(void 0,null,function*(){st(!0);const hn=yield(0,Ee.ZP)(`/api/exercise_questions/${qe==null?void 0:qe.question_id}/resubmit_student_list.json`,{method:"get",params:Dt});(hn==null?void 0:hn.status)==0&&(se(hn||[]),de(hn==null?void 0:hn.count)),st(!1)}),en=()=>Ce(void 0,null,function*(){tn(!0);const Dt=yield(0,Ee.ZP)(`/api/exercise_questions/${qe==null?void 0:qe.question_id}/resubmit_history.json`,{method:"get"});(Dt==null?void 0:Dt.status)==0&&ln((Dt==null?void 0:Dt.data)||[]),tn(!1)}),Ke=()=>Ce(void 0,null,function*(){const Dt=yield(0,Ee.ZP)(`/api/exercise_questions/${qe==null?void 0:qe.question_id}/resubmit_status.json`,{method:"get"});(Dt==null?void 0:Dt.status)==0&&Gt(ct(Qe({},qe),{show_resubmit_history:!0,exercise_question_resubmit:(Dt==null?void 0:Dt.data)||{}}))}),xt=[{label:"\u672A\u8BC4\u6D4B",value:2,color:"#9096A3"},{label:"\u672A\u901A\u5173",value:0,color:"#E30000"},{label:"\u5DF2\u901A\u5173",value:1,color:"#00B187"}],Zt=[{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"}],At=[{title:"\u5E8F\u53F7",dataIndex:"key",render:(Dt,hn,Wt)=>y.createElement("span",{className:"c-black"},Wt+1+(ze.page-1)*ze.per_page)},{title:"\u59D3\u540D",dataIndex:"user_name",render:Dt=>y.createElement("span",{className:"c-black"},Dt)},{title:"\u5B66\u53F7",dataIndex:"student_id",sorter:!0,render:Dt=>y.createElement("span",{className:"c-grey-666"},Dt||"--")},{title:"\u5206\u73ED",dataIndex:"group_name",render:Dt=>y.createElement("span",{className:"c-black"},Dt)},{title:"\u9898\u76EE\u72B6\u6001",dataIndex:"question_status",render:Dt=>{const{label:hn,color:Wt}=xt.find(an=>an.value===Dt)||{};return y.createElement("span",{style:{color:Wt}},hn)}},{title:"\u9898\u76EE\u5F97\u5206",dataIndex:"question_score",sorter:!0,render:Dt=>y.createElement("span",{className:"c-black"},Dt)},{title:"\u6700\u7EC8\u6210\u7EE9",dataIndex:"score",sorter:!0,render:Dt=>y.createElement("span",{className:"c-black"},Dt)},{title:"\u8BC4\u9605\u72B6\u6001",dataIndex:"review",render:Dt=>{const{label:hn,color:Wt}=Zt.find(an=>an.value===Dt)||{};return y.createElement("span",{style:{color:Wt}},hn)}},kt===2&&{title:"\u91CD\u65B0\u8BC4\u6D4B\u7ED3\u679C",dataIndex:"success_status",render:Dt=>{const{label:hn,color:Wt}=dt.find(an=>an.value===Dt)||{};return y.createElement("span",{style:{color:Wt}},hn)}}].filter(Boolean),Ut=(Dt,hn,Wt)=>{ze.page=Dt==null?void 0:Dt.current,ze.per_page=Dt==null?void 0:Dt.pageSize,Wt!=null&&Wt.order?(ze.sort_by=Wt==null?void 0:Wt.field,ze.direction=(Wt==null?void 0:Wt.order)==="ascend"?"asc":"desc"):(ze.sort_by=null,ze.direction=null),yt(Qe({},ze)),Ht(ze)},pn=()=>{if(!Ge){ye.ZP.warning("\u8BF7\u8F93\u5165\u91CD\u65B0\u8BC4\u6D4B\u4EFB\u52A1\u5E76\u53D1\u4EBA\u6570");return}Le(!0)},On=()=>Ce(void 0,null,function*(){var Dt,hn;if((Dt=Ve.current)!=null&&Dt.onVerify())return;rn(!0);const Wt=yield(0,Ee.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:Oe,permits:Ge,exercise_question_resubmit_id:kt===1?null:(hn=qe==null?void 0:qe.exercise_question_resubmit)==null?void 0:hn.id}});(Wt==null?void 0:Wt.status)==0&&(yield Ke(),ye.ZP.success("\u64CD\u4F5C\u6210\u529F"),Le(!1),ae(!1)),rn(!1)}),mn=(Dt,hn)=>{ze.page=1,ze[hn]=Dt,yt(Qe({},ze)),Ht(ze)},Bn=["","\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:je()(he.recalculation,_e),style:lt},y.createElement(Ae.Z,{title:Bn[(qe==null?void 0:qe.disable_resubmit_reason)||0]},y.createElement(pe.ZP,{disabled:(qe==null?void 0:qe.disable_resubmit)||((ge=qe==null?void 0:qe.exercise_question_resubmit)==null?void 0:ge.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,((Ft=qe==null?void 0:qe.exercise_question_resubmit)==null?void 0:Ft.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"},(_t=qe==null?void 0:qe.exercise_question_resubmit)==null?void 0:_t.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"}},(Tt=qe==null?void 0:qe.exercise_question_resubmit)==null?void 0:Tt.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"}},(xe=qe==null?void 0:qe.exercise_question_resubmit)==null?void 0:xe.fail_count),"\u4EBA"),y.createElement(Ae.Z,{title:"\u64CD\u4F5C\u8BB0\u5F55"},y.createElement("i",{onClick:()=>Yt(!0),className:"iconfont icon-chakanshenqingjilu c-light-primary current font14"})))),y.createElement(le.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:pn,afterClose:()=>{bt(!0),te(null),yt(Qe({},$t))}},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(Te,{className:"mt10",title:"\u9898\u76EE\u72B6\u6001",items:(ne==null?void 0:ne.question_status)||[],value:ze.question_status,onChange:Dt=>mn(Dt,"question_status")}),y.createElement(Te,{className:"mt10",title:"\u8BC4\u9605\u72B6\u6001",items:(ne==null?void 0:ne.review_status)||[],value:ze.review,onChange:Dt=>mn(Dt,"review")})),kt===2&&y.createElement(y.Fragment,null,y.createElement(Te,{className:"mt10",title:"\u91CD\u65B0\u8BC4\u6D4B\u7ED3\u679C",items:(ne==null?void 0:ne.success_status)||[],value:ze.success_status,onChange:Dt=>mn(Dt,"success_status")})),y.createElement(Xe.t7,{className:he.input,style:{bottom:kt===1?10:-5},value:ze.keyword,onChange:Dt=>mn(Dt,"keyword"),placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u8005\u5B66\u53F7\u641C\u7D22"})),y.createElement(Re.default,{className:"mt20",columns:At,scroll:((rt=ne==null?void 0:ne.data)==null?void 0:rt.length)>7?{y:300}:{},dataSource:(ne==null?void 0:ne.data)||[],loading:at,onChange:Ut,pagination:{total:oe,pageSize:ze.per_page,current:ze.page,hideOnSinglePage:!oe,showSizeChanger:!0,pageSizeOptions:["5","10","20","50","100"],showQuickJumper:!0,size:"default",showTotal:Me.rU}}),y.createElement(me.Z,{justify:"space-between",align:"middle",className:"mt10"},y.createElement(ve.default,{className:"c-black",checked:Oe,onChange:Dt=>bt(Dt.target.checked)},"\u91CD\u65B0\u8BC4\u6D4B\u540E\u7684\u5206\u6570\u5927\u4E8E\u539F\u6765\u7684\u5206\u6570\u624D\u66F4\u65B0\u6210\u7EE9"),(0,we.Ny)()&&y.createElement("div",{className:"c-black"},"\u91CD\u65B0\u8BC4\u6D4B\u4EFB\u52A1\u5E76\u53D1\u4EBA\u6570",y.createElement(Ie.Z,{className:"ml10 mr10",value:Ge,max:it,min:1,precision:0,onChange:Dt=>We(Dt)}),"\u4EBA",y.createElement(Ae.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(le.default,{centered:!0,title:"\u91CD\u65B0\u8BC4\u6D4B\u7B97\u5206",open:Pt,width:494,zIndex:1001,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",confirmLoading:nt,destroyOnClose:!0,onOk:On,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(Ne.Z,{ref:Dt=>Ve.current=Dt}))),y.createElement(le.default,{centered:!0,title:"\u64CD\u4F5C\u8BB0\u5F55",open:Ot,width:710,onCancel:()=>Yt(!1),footer:null},y.createElement(He.Z,{spinning:un},y.createElement("div",{className:he.operating},Lt.map((Dt,hn)=>y.createElement("div",{key:hn,className:he.operatingItem},y.createElement("div",{style:{flex:"0 0 180px"},className:"c-grey-666"},Dt==null?void 0:Dt.created_at),y.createElement("div",{className:"c-black"},Dt==null?void 0:Dt.user_name,"\u64CD\u4F5C\u4E86\u91CD\u65B0\u8BC4\u6D4B\u7B97\u5206"),(Dt==null?void 0:Dt.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"},Dt==null?void 0:Dt.rate)):y.createElement("div",{className:"c-black"},"\u91CD\u65B0\u8BC4\u6D4B\u6210\u529F",y.createElement("span",{style:{color:"#3061D0",margin:"0 3px"}},Dt==null?void 0:Dt.success_student_count),"\u4EBA\uFF0C\u5931\u8D25",y.createElement("span",{style:{color:"#E30000",margin:"0 3px"}},Dt==null?void 0:Dt.fail_count),"\u4EBA")))),y.createElement("div",{style:{height:20}}))))}},83028:function(bn,zt,z){"use strict";z.d(zt,{Z:function(){return Ae}});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"},ce=z(62957),je="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAPCAYAAADUFP50AAAAAXNSR0IArs4c6QAAAUFJREFUOE+V0ktKw1AUxvH/rVqIxT4wkgwEUSmK4APRBfiYCKU7cOZEBOkadAMZiwhuwJETBQciFRTtwJkPBLW2BRGrRanU9kpN2sSYiGaWc/PjuznnCN2Qh8AkPo+AzXxKLLiPhW7ICtDqB4GzQkqM/huGFZgZcDCBBDaaicsTMKbZH2xfwdY5/ICAEGSasC0AwRYblj+gKkENwfy4WS9V4LHsgsk49EZteJKHdBa6w7AybdZzr3D64ILxGKjtNrx9gfsSRBSYtf6xZh1/u+qQClrIhtdFuHmGvhisJcz65RPsZl2Jc/3QE7FhpgDHuT80x2+O9cR1K/GiCDt3rkQ/+Ns43gDFD0YVmHIuQGOOmiGTARhxwkGd1cZ7Vwd0OppWr3911StpcV++Iwn67q/kyBMuHchErcqwFxT1XZXsfQJqo2zI6kdI4QAAAABJRU5ErkJggg==",ve="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=(pe,le,Re)=>new Promise((Ie,tt)=>{var He=we=>{try{Ee(Re.next(we))}catch(Ne){tt(Ne)}},Me=we=>{try{Ee(Re.throw(we))}catch(Ne){tt(Ne)}},Ee=we=>we.done?Ie(we.value):Promise.resolve(we.value).then(He,Me);Ee((Re=Re.apply(pe,le)).next())}),Ae=({type:pe,resdata:le,onok:Re,oktext:Ie,okloading:tt})=>{const[He,Me]=(0,y.useState)(!1),{can_copy_list:Ee,can_copy_num:we,challenge_type:Ne,course_data_list:Xe,no_copy_list:ft,no_copy_num:Pe,no_use_list:Fe,no_use_num:Ze,repeat_shixun_num:$e,student_count:gt,total_num:ot,use_num:Qe}=le;let ct=we>0||pe==="exercise";(0,y.useEffect)(()=>{(le==null?void 0:le.student_count)>0&&Me(!0)},[le]),console.log("---11",tt),(0,y.useEffect)(()=>{tt||Me(!1)},[tt]);const Ce=()=>{if(pe==="exercise"&&Ne===1)return y.createElement(y.Fragment,null,"\u8BFE\u5802\u5185\u6709",y.createElement("span",{className:he.orangeColor},gt),"\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(pe==="exercise"&&Ne===2)return y.createElement(y.Fragment,null,"\u8BFE\u5802\u5185\u6709",y.createElement("span",{className:he.orangeColor},gt),"\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(pe==="shixun"&&Ne===1)return y.createElement(y.Fragment,null,"\u8BFE\u5802\u5185\u6709",y.createElement("span",{className:he.orangeColor},gt),"\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(pe==="shixun"&&Ne===2)return y.createElement(y.Fragment,null,"\u8BFE\u5802\u5185\u6709",y.createElement("span",{className:he.orangeColor},gt),"\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(pe==="subject"&&Ne===1)return y.createElement(y.Fragment,null,"\u8BFE\u5802\u5185\u6709",y.createElement("span",{className:he.orangeColor},gt),"\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(pe==="subject"&&Ne===2)return y.createElement(y.Fragment,null,"\u8BFE\u5802\u5185\u6709 ",y.createElement("span",{className:he.orangeColor},gt)," \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(pe==="exercisepush")return y.createElement(y.Fragment,null,"\u8BFE\u5802\u5185\u6709",y.createElement("span",{className:he.orangeColor},gt),"\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(pe==="shixunpush"&&Ne===1)return y.createElement(y.Fragment,null,"\u8BFE\u5802\u5185\u6709",y.createElement("span",{className:he.orangeColor},gt),"\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(pe==="shixunpush"&&Ne===2)return y.createElement(y.Fragment,null,"\u8BFE\u5802\u5185\u6709",y.createElement("span",{className:he.orangeColor},gt),"\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(pe==="exercise"||pe==="subject"||pe==="exercisepush"||pe==="shixunpush")return y.createElement("div",{style:{marginTop:20}},Pe>0&&y.createElement("div",null,y.createElement("span",{className:he.flex},y.createElement("img",{src:ve,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},pe==="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"),(pe==="subject"||pe==="exercisepush")&&y.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",ct&&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"),pe==="shixunpush"&&y.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",ct&&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,ft==null?void 0:ft.map((Te,ue)=>y.createElement("a",{href:`/shixuns/${Te.identifier}/challenges`,target:"_blank"},"\u300A",Te==null?void 0:Te.name,"\u300B",ue+1!==Pe&&"\u3001"))))),we>0&&y.createElement("div",{style:{marginTop:20}},y.createElement("span",{className:he.flex},y.createElement("img",{src:je,style:{width:14}}),y.createElement("span",{className:he.statustitle},"\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),y.createElement("div",{className:he.statusbody},pe==="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"),(pe==="subject"||pe==="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"),pe==="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,Ee==null?void 0:Ee.map((Te,ue)=>y.createElement("a",{href:`/shixuns/${Te.identifier}/challenges`,target:"_blank"},"\u300A",Te==null?void 0:Te.name,"\u300B",ue+1!==we&&"\u3001"))))));if(pe==="shixun")return y.createElement("div",{style:{marginTop:20}},we>0?"\u8BE5\u9879\u76EE\u652F\u6301\u590D\u5236\uFF0C\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u53D1\u9001\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002":"\u8BE5\u9879\u76EE\u4E0D\u652F\u6301\u590D\u5236\uFF0C\u60A8\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002")};return y.createElement(ce.default,{open:He,onCancel:()=>{Me(!1)},cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",width:700,centered:!0,cancelButtonProps:{style:{display:!ct&&"none"}},zIndex:1003,confirmLoading:tt,okText:ct?Ie:"\u6211\u77E5\u9053\u4E86",onOk:()=>me(void 0,null,function*(){ct?yield Re([...Ee,...Fe]):Me(!1)})},y.createElement("div",{style:{maxHeight:600,overflow:"auto"}},Ce(),et()))}},88436:function(bn,zt,z){"use strict";z.d(zt,{Z:function(){return me}});var y=z(59301),he={btn:"btn___kReTL",redBtn:"redBtn___UFEL0"},ce=z(92310),je=z.n(ce),me=({className:ye,style:Ae,state:pe,onClick:le})=>{var Re,Ie;return y.createElement("div",{onClick:le,className:je()(pe?(Re=he)==null?void 0:Re.redBtn:(Ie=he)==null?void 0:Ie.btn,ye),style:Ae},pe?y.createElement(y.Fragment,null,y.createElement("i",{className:"iconfont icon-biaoji1"}),y.createElement("span",null,"\u53D6\u6D88\u6807\u8BB0\u9519\u9898")):y.createElement(y.Fragment,null,y.createElement("i",{className:"iconfont icon-biaojigaiti"}),y.createElement("span",null,"\u6807\u8BB0\u9519\u9898")))}},85533:function(bn,zt,z){"use strict";z.d(zt,{h:function(){return Pe}});var y=z(59301),he=z(82326),ce=z(28284),je=z(7939),ve=z(89780),me=z.n(ve),ye=z(45559),Ae=z(42313),pe=Object.defineProperty,le=Object.defineProperties,Re=Object.getOwnPropertyDescriptors,Ie=Object.getOwnPropertySymbols,tt=Object.prototype.hasOwnProperty,He=Object.prototype.propertyIsEnumerable,Me=(Fe,Ze,$e)=>Ze in Fe?pe(Fe,Ze,{enumerable:!0,configurable:!0,writable:!0,value:$e}):Fe[Ze]=$e,Ee=(Fe,Ze)=>{for(var $e in Ze||(Ze={}))tt.call(Ze,$e)&&Me(Fe,$e,Ze[$e]);if(Ie)for(var $e of Ie(Ze))He.call(Ze,$e)&&Me(Fe,$e,Ze[$e]);return Fe},we=(Fe,Ze)=>le(Fe,Re(Ze));const Ne=he.default.Option,Xe={labelCol:{span:4},wrapperCol:{span:20}},ft={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"]};zt.Z=({callback:Fe,onCancel:Ze})=>{const[$e,gt]=(0,y.useState)("python");function ot(ct){gt(ft[ct][1])}function Qe(ct){Fe(ct)}return y.createElement(ce.default,we(Ee({},Xe),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Qe,style:{width:500}}),y.createElement(ce.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},y.createElement(he.default,{getPopupContainer:ct=>ct.parentNode,onChange:ot},Object.keys(ft).map(ct=>y.createElement(Ne,{key:ct,value:ct},ft[ct][0])))),y.createElement(ce.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},y.createElement(Pe,{mode:$e})),y.createElement("div",{className:"flex-container flex-end"},y.createElement(je.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),y.createElement(je.ZP,{type:"ghost",onClick:Ze},"\u53D6\u6D88")))};function Pe({value:Fe,onChange:Ze,mode:$e,options:gt={}}){const ot=(0,y.useRef)(),[Qe,ct]=(0,y.useState)();return(0,y.useEffect)(()=>{if(Qe){let Ce=function(et){const Te=et.getValue();Ze&&Ze(Te)};return Qe.on("change",Ce),()=>{Qe.off("change",Ce)}}},[Qe,Ze]),(0,y.useEffect)(()=>{Qe&&Qe.setOption("mode",$e)},[Qe,$e]),(0,y.useEffect)(()=>{Qe&&(Fe!==Qe.getValue()||Fe==="")&&setTimeout(()=>{Qe.setValue(Fe||"")},300)},[Qe,Fe]),(0,y.useEffect)(()=>{if(ot.current&&!Qe){const Ce=me().fromTextArea(ot.current,Ee({mode:$e,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},gt));ct(Ce)}},[ot.current,Qe]),y.createElement("div",{className:"my-codemirror-container"},y.createElement("textarea",{ref:ot}))}},25374:function(bn,zt,z){"use strict";z.d(zt,{Z:function(){return an}});var y=z(59301),he=z(65582),ce=z(89780),je=z.n(ce),ve=z(76374),me=z(45559),ye=z(6313),Ae=z(25717),pe=z(99498),le=z(25419),Re=z(67549),Ie=z(95097),tt=({value:Vt="",className:cn,showTextOnly:on,showLines:Zn,style:_n={}})=>{const Nn=(0,y.useMemo)(()=>"",[Vt]);return y.createElement(y.Fragment,null,y.createElement("div",{dangerouslySetInnerHTML:{__html:Nn}}))},He=Object.defineProperty,Me=Object.defineProperties,Ee=Object.getOwnPropertyDescriptors,we=Object.getOwnPropertySymbols,Ne=Object.prototype.hasOwnProperty,Xe=Object.prototype.propertyIsEnumerable,ft=(Vt,cn,on)=>cn in Vt?He(Vt,cn,{enumerable:!0,configurable:!0,writable:!0,value:on}):Vt[cn]=on,Pe=(Vt,cn)=>{for(var on in cn||(cn={}))Ne.call(cn,on)&&ft(Vt,on,cn[on]);if(we)for(var on of we(cn))Xe.call(cn,on)&&ft(Vt,on,cn[on]);return Vt},Fe=(Vt,cn)=>Me(Vt,Ee(cn));let Ze=[{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 $e({onActionCallback:Vt,title:cn,icon:on,actionName:Zn,className:_n="",children:Nn}){function jn(){Vt(Zn)}return y.createElement("a",{title:cn,className:_n,onClick:jn},y.createElement("i",{className:`${on}`}),Nn)}var gt=({watch:Vt,showNullButton:cn,showNullProgramButton:on,onActionCallback:Zn,fullScreen:_n,insertTemp:Nn,hidetoolBar:jn,extraUse:Gn})=>{const $n=[...Ze,{title:`${Vt?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Vt?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return y.createElement("ul",{className:"markdown-toolbar-container"},!jn&&$n.map((lr,nr)=>y.createElement("li",{key:nr},lr.actionName?y.createElement($e,Fe(Pe({},lr),{onActionCallback:Zn})):y.createElement("span",{className:"v-line"}))),cn?y.createElement("li",null,y.createElement($e,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Zn},y.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,on?y.createElement(y.Fragment,null,y.createElement("li",null,y.createElement($e,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Zn},y.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u5355\u884C\u586B\u7A7A\u9879"))),y.createElement("li",null,y.createElement($e,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Zn},y.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u591A\u884C\u586B\u7A7A\u9879")))):null,Nn&&y.createElement("li",null,y.createElement($e,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Nn}`,onActionCallback:Zn},y.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Gn&&y.createElement("li",null,Gn),y.createElement("li",{className:"btn-full-screen"},y.createElement($e,{icon:`${_n?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:_n?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Zn})))},ot=z(57261),Qe=z(28284),ct=z(37568),Ce=z(7939),et=Object.defineProperty,Te=Object.defineProperties,ue=Object.getOwnPropertyDescriptors,mt=Object.getOwnPropertySymbols,_e=Object.prototype.hasOwnProperty,lt=Object.prototype.propertyIsEnumerable,Mt=(Vt,cn,on)=>cn in Vt?et(Vt,cn,{enumerable:!0,configurable:!0,writable:!0,value:on}):Vt[cn]=on,be=(Vt,cn)=>{for(var on in cn||(cn={}))_e.call(cn,on)&&Mt(Vt,on,cn[on]);if(mt)for(var on of mt(cn))lt.call(cn,on)&&Mt(Vt,on,cn[on]);return Vt},ge=(Vt,cn)=>Te(Vt,ue(cn));const Ft={labelCol:{span:4},wrapperCol:{span:20}};var _t=({callback:Vt,onCancel:cn})=>{function on(Zn){Vt(Zn)}return y.createElement(Qe.default,ge(be({},Ft),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:on,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(ct.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(ct.default,null)),y.createElement("div",{className:"flex-container flex-end"},y.createElement(Ce.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),y.createElement(Ce.ZP,{type:"ghost",onClick:cn},"\u53D6\u6D88")))},Tt=z(85533),xe=z(45053),rt=z(62957),qe=z(77019),Gt=z(16750),at=z(59301),st=({callback:Vt,onCancel:cn})=>{const on=document.createElement("canvas"),Zn=on.getContext("2d");on.width=1e3,on.height=800,Zn.fillStyle="#ffffff",Zn.fillRect(0,0,on.width,on.height);const _n=on.toDataURL("image/png");return at.createElement(rt.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},at.createElement(qe.Z,{style:{height:"100vh"}},at.createElement(Gt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:_n,visible:!0,title:String(Date.now())},onOk:Nn=>{Vt({src:Nn.url})},onClose:cn})))},nt=z(36207),rn=z(5269),kt=z(6767),ae={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re",drawerWrap:"drawerWrap___MfDw8"},re=z(59301),oe=(0,y.forwardRef)(({onCancel:Vt,editImgId:cn,callback:on},Zn)=>{let _n=(0,y.useRef)(),Nn=(0,y.useRef)(),jn=(0,y.useRef)(),Gn=(0,y.useRef)(!1);const $n=(0,y.useRef)(!1);console.log("ref:",Zn);const[lr,nr]=(0,y.useState)(0),[dn,Cn]=(0,y.useState)("100vh");return(0,y.useEffect)(()=>{nr(1)},[]),(0,y.useImperativeHandle)(Zn,()=>({setHeight:Cn})),re.createElement("div",{ref:$n,className:"body-overflow-initial"},re.createElement(nt.Z,{width:"100vw",height:dn,footer:null,closable:!0,placement:"bottom",open:!!lr,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${ae.drawerWrap}`,onClose:()=>{window.saveDrawData(Hn=>{on({src:`/api/attachments/${Hn}`,id:Hn})})},title:re.createElement(qe.Z,{align:"middle"},re.createElement(rn.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),re.createElement(rn.Z,{onClick:()=>{Cn(dn==="60px"?"100vh":"60px")}},re.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),re.createElement(rn.Z,{onClick:()=>{window.saveDrawData(Hn=>{if(Hn===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}}),on({src:`/api/attachments/${Hn}`,id:Hn,disabledClose:!0})})}},re.createElement(Ce.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},re.createElement("iframe",{src:`/drawio/src/main/webapp/?id=${cn||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:Nn})))}),de=z(74128),ne=z(47889),se=z(4875);const Oe=ne.ZP.Group,bt={margin:"0 8px"};var Ge=({callback:Vt,onCancel:cn})=>{function on(Zn){Vt(Zn)}return y.createElement(Qe.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:on},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(se.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(se.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(Oe,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(Ce.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),y.createElement(Ce.ZP,{type:"ghost",onClick:cn},"\u53D6\u6D88")))},We=z(58755),it=z(93510),ht=z.n(it),Le=(0,y.forwardRef)(({use3d:Vt,width:cn,height:on,callback:Zn,showSaveButton:_n},Nn)=>{const jn=(0,y.useRef)(),Gn=(0,y.useRef)(),[$n,lr]=(0,y.useState)(!1),nr=(0,y.useRef)({id:jn,appName:"graphing",width:cn||1e3,height:on||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)(()=>{Gn.current=new(ht())(nr.current,!0),window.onload=function(){Gn.current.inject("applet_container")}},[]);const dn=()=>{var Cn=window.ggbApplet.getPNGBase64(1,!0,72);return Zn&&Zn(Cn),Cn};return(0,y.useEffect)(()=>{nr.current.appName=$n?"3D":"graphing",Gn.current.inject("applet_container")},[$n]),(0,y.useEffect)(()=>{lr(Vt)},[Vt]),(0,y.useImperativeHandle)(Nn,()=>({getImgData:dn})),y.createElement(y.Fragment,null,y.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:jn}),y.createElement(qe.Z,{align:"middle"},y.createElement(rn.Z,{flex:1},y.createElement(We.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:$n,onChange:Cn=>lr(Cn)})),y.createElement(rn.Z,null,y.createElement(Ce.ZP,{size:"large",onClick:dn,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Ve=z(99298);const Ot="link",Yt="upload-image",un="add-flowchart",tn="draw-image",Lt="add-flowchart",ln="code-block",$t="add-table",ze="------------",yt={default:ze,left:`:${ze}`,center:`:${ze}:`,right:`${ze}:`};var Ht=z(31103),en=z(65862);function Ke(){}let xt=0;const Zt=1e4,dt="\u2581",At="@\u2581\u2581@",Ut="@\u2581@",pn=`
**\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`,On=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function mn(Vt){return/^\d+$/.test(Vt)?`${Vt}px`:Vt}const Dt=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",hn={[Dt+"-B"]:"bold",[Dt+"-I"]:"italic"},Wt={[Ot]:"\u6DFB\u52A0\u94FE\u63A5",[ln]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Yt]:"\u6DFB\u52A0\u56FE\u7247",[tn]:"\u6DFB\u52A0\u753B\u56FE",[un]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[$t]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var an=({defaultValue:Vt="",onChange:cn,width:on="100%",height:Zn=400,miniToolbar:_n=!1,isFocus:Nn=!1,watch:jn,insertTemp:Gn,mode:$n="markdown",id:lr="markdown-editor-id",showResizeBar:nr=!1,noStorage:dn=!1,showNullButton:Cn=!1,showNullProgramButton:Hn=!1,hidetoolBar:Kn=!1,fullScreen:Et=!1,onBlur:Rt,onCMBeforeChange:Je,onFullScreen:Bt,className:Ue="",disablePaste:Nt=!1,disabled:Jt=!1,disabledFill:Ln=!1,placeholder:zn="",values:pt="",extraUse:Ct,onAddBlank:St})=>{const[It,fn]=(0,y.useState)(null),[wn,Pn]=(0,y.useState)(Vt),[In,qn]=(0,y.useState)(jn),[rr,ir]=(0,y.useState)(Et),[sr,Qn]=(0,y.useState)(""),[ar,fr]=(0,y.useState)(0),[Sr,br]=(0,y.useState)(Zn),[jr,$r]=(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 Vn=window.scrollY||window.pageYOffset;Pn(pt),It==null||It.setValue(pt),window.scrollTo(0,Vn)},[pt]),(0,y.useEffect)(()=>{Bt==null||Bt(rr)},[rr]),(0,y.useEffect)(()=>{if(Fr.current){let Vn=function(ur,pr){var Zr;if(Nt){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(),$n=="stex")return;try{let Mo=Fo[1];((Zr=Fo[0])==null?void 0:Zr.kind)==="file"&&(Mo=Fo[0]);const Yo=Mo.getAsFile(),Jo=Yo.name.split(".").pop();(0,xe.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>`):On.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=je().fromTextArea(Fr.current,{mode:$n,lineNumbers:!_n,lineWrapping:!0,value:Vt,autoCloseTags:!0,autoCloseBrackets:!0});return Jn.on("keyup",function(ur,pr){pr.keyCode===8&&(ur.getValue()==""?Jn.setOption("placeholder",zn):Jn.setOption("placeholder",null))}),Jn.on("keydown",function(ur,pr){if(pr.keyCode===8){var Zr=ti(ur);Zr&&pr.preventDefault()}}),Nn&&Jn.focus(),Jn.on("paste",Vn),Jt&&Jn.on("beforeChange",function(ur,pr){(pr.origin==="paste"||pr.origin==="+input")&&pr.cancel()}),fn(Jn),()=>{Jn.off("paste",Vn)}}},[]);const Ho=(0,y.useCallback)(()=>{if(or.current)try{}catch(Vn){console.log(Vn,"---- to set md editor body height")}},[Sr,or,rr]);(0,y.useEffect)(()=>{function Vn(){let Jn=new ve.Z(ur=>{for(let pr of ur)(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=Vn();return()=>{var ur,pr;(ur=Fr.current)!=null&&ur.parentElement&&Jn.unobserve((pr=Fr.current)==null?void 0:pr.parentElement)}}},[It,Ho]),(0,y.useEffect)(()=>{if(It){let Vn=[];for(const[Jn,ur]of Object.entries(hn)){let pr={[Jn]:()=>{xo(ur)}};Vn.push(pr),It.addKeyMap(pr)}return()=>{for(let Jn of Vn)It.removeKeyMap(Jn)}}},[It]),(0,y.useEffect)(()=>{Et!==rr&&ir(Et)},[Et]),(0,Ht.Z)(()=>{if(!dn&&ar>0){let Vn=new Date().getTime(),Jn=window.sessionStorage.getItem(lr);Vn>=ar+Zt&&(!Jn||Jn!==wn)&&(window.sessionStorage.setItem(lr,wn),$r(!0))}},Zt),(0,y.useEffect)(()=>{qn(jn)},[It,jn]),(0,y.useEffect)(()=>{It&&Nn&&It.focus()},[It,Nn]),(0,y.useEffect)(()=>{if(In&&It){let Vn=function(ur){let pr=ur.target;if(Rr.current){let Zr=pr.scrollTop/pr.scrollHeight;Rr.current.scrollTop=Rr.current.scrollHeight*Zr}};const Jn=It.getScrollerElement();return Jn.addEventListener("scroll",Vn),()=>{Jn.removeEventListener("scroll",Vn)}}},[It,In]),(0,y.useEffect)(()=>{if(It&&Je){let Vn=function(Jn,ur){Je(Jn,ur)};return It.on("beforeChange",Vn),()=>{It.off("beforeChange",Vn)}}},[It,Je]),(0,y.useEffect)(()=>{if(It&&Rt){let Vn=function(){Rt(It.getValue())};return It.on("blur",Vn),()=>{It.off("blur",Vn)}}},[It,Rt]);function ti(Vn,Jn){var ur=Vn.getDoc(),pr=ur.getCursor(),Zr=ur.getLine(pr.line),Yr=Zr.charAt(pr.ch-1),to=Zr.lastIndexOf("@\u2581@",pr.ch),Fo=Zr.lastIndexOf("@\u2581\u2581@",pr.ch),Mo=to>Fo?to:Fo,Yo=to>Fo?3:4;if(At.indexOf(Yr)===-1)return null;if(console.log("change1:",Jn,Vn,Zr,pr,Mo,to,Fo,Yr),Mo>=0&&pr.ch-Mo<5){var Jo=Mo+Yo;return ur.replaceRange("",{line:pr.line,ch:Mo},{line:pr.line,ch:Jo}),{line:pr.line,ch:Jo}}return null}(0,y.useEffect)(()=>{if(It){let Vn=function(Jn,ur){const pr=Jn.getValue();Pn(pr),fr(new Date().getTime()),Jn.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),cn&&(Hn?cn(pr,Un(pr)):cn(pr))};return It.on("change",Vn),()=>{It.off("change",Vn)}}},[It,cn]),(0,y.useEffect)(()=>{if(It)if(Vt==null)It.setValue(""),Pn("");else{const Vn=window.scrollY||window.pageYOffset;Vt!==It.getValue()&&(It.setValue(Vt),Pn(Vt),It.setCursor(Jt?1:It.lineCount(),0),window.scrollTo(0,Vn))}},[It,Vt]);const xo=(0,y.useCallback)(Vn=>{const Jn=It.getCursor(),ur=It.getSelection();let pr=ur.split(`
`);switch(Vn){case"bold":return It.replaceSelection("**"+ur+"**"),ur===""&&It.setCursor(Jn.line,Jn.ch+2),It.focus();case"italic":return It.replaceSelection("*"+ur+"*"),ur===""&&It.setCursor(Jn.line,Jn.ch+1),It.focus();case"code":return It.replaceSelection("`"+ur+"`"),ur===""&&It.setCursor(Jn.line,Jn.ch+1),It.focus();case"inline-latex":return(0,en.Ye)(so)?void 0:(Qn("inline-latex"),It.focus());case"latex":return It.replaceSelection("```latex\n"+ur+"\n```"),It.setCursor(Jn.line+1,ur.length+1),It.focus();case"line-break":return It.replaceSelection(`<br/>
`),It.focus();case"list-ul":return ur===""?It.replaceSelection("- "+ur):It.replaceSelection(pr.map(Zr=>Zr===""?"":`- ${Zr}`).join(`
`)),It.focus();case"list-ol":return ur===""?It.replaceSelection("1. "+ur):It.replaceSelection(pr.map((Zr,Yr)=>Zr===""?"":`${Yr+1}. ${Zr}`).join(`
`)),It.focus();case"add-null-ch":St==null||St();return;case"add-signal":return ur===""&&It.setCursor(Jn.line,Jn.ch),It.replaceSelection(Ut),It.focus();case"add-multiple":return ur===""&&It.setCursor(Jn.line,Jn.ch),It.replaceSelection(At),It.focus();case"inster-template-1":return ur===""&&It.setCursor(Jn.line,Jn.ch),It.replaceSelection(pn),It.focus();case"eraser":return It.setValue(""),It.focus();case"trigger-watch":return qn(!In),It.focus();case"trigger-full-screen":return ir(!rr),It.focus();case Ot:Qn(Ot);return;case ln:Qn(ln);return;case Yt:Qn(Yt);return;case tn:Qn(tn);return;case"maths-latex":if((0,en.Ye)(so))return;Qn("maths-latex");return;case un:Br.current="",sessionStorage.removeItem("file_id"),Qn(un);return;case $t:Qn($t);return;default:throw new Error}},[It,In,rr]),No=(0,y.useCallback)((Vn,Jn)=>{var ur,pr,Zr,Yr,to,Fo;Vn!=null&&Vn.disabledClose||Qn("");const{src:Mo,alt:Yo,id:Jo}=Vn||{};switch(sr){case Ot:const{title:Xi,link:Yi}=Vn;return It.replaceSelection(`[${Xi}](${Yi})`),It.focus();case ln:const{language:ta,content:Lo}=Vn;return It.replaceSelection(["```"+ta,Lo,"```"].join(`
`)),It.focus();case"maths-latex":for(var ni=atob(Vn),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,xe.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,en.Ye)(so))return;It.replaceSelection("`$$"+Vn+"$$`");break;case Lt: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=de.Z.API_SERVER+Mo+"?t="+Date.now();break;case Yt:case tn:const co=Jn,wi=(Zr=(pr=(ur=co==null?void 0:co.name)==null?void 0:ur.split("."))==null?void 0:pr.pop)==null?void 0:Zr.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>`):On.includes(wi)?It.replaceSelection(`<a href="${Mo}?type=office&disposition=inline" target="_blank">${co.name}</a>`):It.replaceSelection(`[${co.name}](${Mo})`),It.focus();case $t:const{row:wo,col:aa,align:Qa}=Vn;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,sr]),To=(0,y.useMemo)(()=>{switch(sr){case Ot:return y.createElement(_t,{callback:No,onCancel:Xo});case ln:return y.createElement(Tt.Z,{callback:No,onCancel:Xo});case Yt:return y.createElement(xe.Z,{callback:No,onCancel:Xo});case un:return y.createElement(oe,{editImgId:Br.current,callback:No,onCancel:Xo});case $t:return y.createElement(Ge,{callback:No,onCancel:Xo});case"maths-latex":return y.createElement(Le,{showSaveButton:!0,callback:No});case"inline-latex":return y.createElement(Ve.Z,{showSaveButton:!0,callback:No});default:return null}},[sr]);function Xo(){Qn("")}(0,y.useEffect)(()=>{if(Ur.current){let Vn=function(to){Zr=!0,Yr=to.pageY},Jn=function(){Zr=!1},ur=function(to){if(Zr){let Fo=to.pageY-Yr;Fo<0&&(Fo=0),Fo>300&&(Fo=300);let Mo=Zn+Fo+"px";br(Mo)}},pr=Ur.current,Zr=!1,Yr=0;return pr.addEventListener("mousedown",Vn),document.addEventListener("mousemove",ur),document.addEventListener("mouseup",Jn),()=>{pr.removeEventListener("mousedown",Vn),document.removeEventListener("mousemove",ur),document.removeEventListener("mouseup",Jn)}}},[It,Ur]),(0,y.useEffect)(()=>{br(Zn)},[Zn]);const ko=mn(on),go=mn(Sr),dr={width:ko,height:go},Mn=(0,y.useMemo)(()=>{if(ar){let Vn=new Date(ar),Jn=Vn.getHours(),ur=Vn.getMinutes(),pr=Vn.getSeconds();return Jn=Jn<10?"0"+Jn:Jn,ur=ur<10?"0"+ur:ur,pr=pr<10?"0"+pr:pr,`${Jn}:${ur}:${pr}`}return 0},[ar]),Un=Vn=>{const Jn=[];if(Hn){let ur=-1;Vn=Vn.replace(/(@▁▁@|@▁@)/g,function(pr,Zr,Yr){Jn.push({multiLine:pr!==Ut})})}return Jn};function Yn(){window.sessionStorage.removeItem(lr),$r(!1),fr(0)}function kn(){$r(!1),fr(0),It.setValue(window.sessionStorage.getItem(lr))}(0,y.useEffect)(()=>{Wt[sr]&&sr!==tn&&sr!==un&&setTimeout(()=>{const Vn=document.getElementsByClassName("markdown-popup-form")[0],Jn=window.innerWidth/2-Vn.offsetWidth/2,ur=window.innerHeight/2-Vn.offsetHeight/2;Mr(Jn),kr(ur)},0)},[sr]);const mr=Vn=>{Vn.preventDefault();const Jn=Vn.clientX-hr,ur=Vn.clientY-eo;document.body.onmousemove=pr=>{let Zr=pr.clientX-Jn,Yr=pr.clientY-ur;const to=document.getElementsByClassName("markdown-popup-form")[0],Fo=window.innerWidth-to.offsetWidth,Mo=window.innerHeight-to.offsetHeight;Zr=Math.max(0,Math.min(Zr,Fo)),Yr=Math.max(0,Math.min(Yr,Mo)),wr(pr.clientX,pr.clientY,Jn,ur)&&(Mr(Zr),kr(Yr))},document.body.onmouseup=function(){document.body.onmousemove=null}},wr=(Vn,Jn,ur,pr)=>{const Zr=document.body.clientHeight,Yr=document.body.clientWidth;return Vn<20&&ur>Vn||Vn>Yr-20&&ur<Vn||Jn<20&&pr>Jn||Jn>Zr-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 ${Ue} ${In?"on-preview":""} ${_n?"mini":""} ${rr?"full-screen":""}`,style:dr},y.createElement(gt,{insertTemp:Gn,watch:In,fullScreen:rr,showNullButton:Cn,showNullProgramButton:Hn,onActionCallback:xo,hidetoolBar:Kn,extraUse:Ct}),y.createElement("div",{className:"markdown-editor-body"},y.createElement("div",{className:"codemirror-container"},y.createElement("textarea",{ref:Fr,placeholder:zn})),In?y.createElement("div",{ref:Rr,className:"preview-container"},$n==="stex"&&y.createElement(tt,{value:wn}),$n!=="stex"&&y.createElement(Ie.Z,{edit:!0,disabledFill:Ln,showProgramFill:Hn,value:wn,openEditor:Vn=>{var Jn;Br.current=Vn,(Jn=Cr.current)==null||Jn.setHeight("100vh"),setTimeout(()=>{Qn("add-flowchart")},150)}})):null))),nr?y.createElement("a",{ref:Ur,className:"editor-resize"}):null,sr===tn&&y.createElement(st,{callback:No,onCancel:Xo}),sr===un&&y.createElement(oe,{ref:Cr,editImgId:Br.current,callback:No,onCancel:Xo}),y.createElement(ot.Z,null,Wt[sr]&&sr!==tn&&sr!==un?y.createElement(rt.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:hr,top:eo},title:y.createElement("div",{style:{cursor:"move"},onMouseDown:mr},Wt[sr]),open:!0,onCancel:Xo,footer:null,destroyOnClose:!0,width:sr===un?"1200px":null,height:sr===un?"80vh":null,className:"markdown-popup-form"},To):null))}},45053:function(bn,zt,z){"use strict";z.d(zt,{Z:function(){return Ze},I:function(){return gt}});var y=z(28284),he=z(6767),ce=z(37568),je=z(44104),ve=z(4875),me=z(47889),ye=z(7939),Ae=z(28735),pe=z(59301),le=z(59301),Re=Object.defineProperty,Ie=Object.defineProperties,tt=Object.getOwnPropertyDescriptors,He=Object.getOwnPropertySymbols,Me=Object.prototype.hasOwnProperty,Ee=Object.prototype.propertyIsEnumerable,we=(ot,Qe,ct)=>Qe in ot?Re(ot,Qe,{enumerable:!0,configurable:!0,writable:!0,value:ct}):ot[Qe]=ct,Ne=(ot,Qe)=>{for(var ct in Qe||(Qe={}))Me.call(Qe,ct)&&we(ot,ct,Qe[ct]);if(He)for(var ct of He(Qe))Ee.call(Qe,ct)&&we(ot,ct,Qe[ct]);return ot},Xe=(ot,Qe)=>Ie(ot,tt(Qe));const{useForm:ft}=y.default,Pe={width:280,marginRight:10},Fe={labelCol:{span:5},wrapperCol:{span:19}};var Ze=({callback:ot,onCancel:Qe})=>{const[ct]=ft();let Ce=(0,pe.useRef)();function et(mt){Ce.current.width=ct.getFieldValue("width"),Ce.current.align=ct.getFieldValue("align"),ot(mt,Ce.current)}function Te(mt,_e){if(mt.status===-1){he.ZP.error(mt.message);return}ct.setFieldsValue({src:`/api/attachments/${mt.id}`,type:_e.type})}function ue(mt){let _e=mt.target.files[0];Ce.current=_e,gt(_e,Te)}return le.createElement(y.default,Xe(Ne({form:ct},Fe),{className:"upload-image-panel",onFinish:et,style:{width:470,overflow:"hidden"}}),le.createElement(y.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},le.createElement("div",{className:"flex-container"},le.createElement(y.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},le.createElement(ce.default,{style:Pe})),le.createElement($e,{onFileChange:ue}))),le.createElement(y.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},le.createElement(ce.default,{style:{width:264}})),le.createElement(y.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},le.createElement(je.Z,null,le.createElement(y.default.Item,{name:"width",style:{margin:0}},le.createElement(ve.Z,{style:{width:264}})),le.createElement("span",{className:"ml8"},"%"))),le.createElement(y.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},le.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"}]})),le.createElement("aside",null,le.createElement(y.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},le.createElement(ye.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),le.createElement(ye.ZP,{type:"default",onClick:Qe},"\u53D6\u6D88"))))};function $e({onFileChange:ot}){return le.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",le.createElement("input",{type:"file",onChange:ot}))}function gt(ot,Qe){if(!ot)throw new String("\u6CA1\u6709\u6587\u4EF6");let ct=new FormData;ct.append("editormd-image-file",ot),ct.append("file_param_name","editormd-image-file"),ct.append("byxhr","true");var Ce=new window.XMLHttpRequest;Ce.withCredentials=!0,Ce.addEventListener("load",function(et){Qe(JSON.parse(et.target.responseText),ot)},!1),Ce.addEventListener("error",function(et){console.error(et)},!1),Ce.open("POST",`${Ae.KI}/api/attachments.json`),Ce.send(ct)}},57261:function(bn,zt,z){"use strict";z.d(zt,{Z:function(){return ce}});var y=z(59301),he=z(4676);class ce extends y.Component{constructor(ve){super(ve);const me=window.document;this.node=me.createElement("div"),me.body.appendChild(this.node)}render(){const{children:ve}=this.props;return(0,he.createPortal)(ve,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},50258:function(bn,zt,z){"use strict";z.d(zt,{SV:function(){return st},ZP:function(){return at}});var y=z(59301),he=z(76374);const ce={keywords:["print","auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while"]},je={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"]},ve={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(`
`)}]},ye={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 Ae=z(53184),pe=z.n(Ae),le=(nt,rn,kt)=>new Promise((ae,re)=>{var te=ne=>{try{de(kt.next(ne))}catch(se){re(se)}},oe=ne=>{try{de(kt.throw(ne))}catch(se){re(se)}},de=ne=>ne.done?ae(ne.value):Promise.resolve(ne.value).then(te,oe);de((kt=kt.apply(nt,rn)).next())});const Re={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"]}},Ie=(nt,rn,kt,ae)=>{const re=rn.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:kt.lineNumber,endColumn:kt.column});return Array.from(new Set(re.match(/\b\w{2,}\b/g)||[])).map(oe=>({label:oe,kind:nt.languages.CompletionItemKind.Text,insertText:oe,range:ae}))},tt=(nt,rn,kt,ae)=>{nt.languages.registerCompletionItemProvider(rn,{provideCompletionItems(re,te){const oe=re.getWordUntilPosition(te),de={startLineNumber:te.lineNumber,endLineNumber:te.lineNumber,startColumn:oe.startColumn,endColumn:oe.endColumn},ne=re.getLineContent(te.lineNumber).substring(oe.startColumn-2,oe.endColumn);return{suggestions:[...Ie(nt,re,te,de),...kt.map(Oe=>({label:Oe,kind:nt.languages.CompletionItemKind.Keyword,documentation:Oe,insertText:Oe,insertTextRules:nt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:de})),...ae.map(Oe=>({label:Oe.label,kind:nt.languages.CompletionItemKind.Snippet,documentation:Oe.content,insertText:ne.startsWith("#")?Oe.content.replace(/#/,""):Oe.content,insertTextRules:nt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:de}))]}}})};var He=nt=>{Re.languages.forEach(rn=>{nt.languages.registerDocumentFormattingEditProvider(rn,{provideDocumentFormattingEdits(kt){return le(this,null,function*(){const ae=pe()(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(nt,"java",je.keywords,je.quickKey),tt(nt,"cpp",ve.keywords,ve.quickKey),tt(nt,"c",ce.keywords,[]),tt(nt,"python",me.keywords,me.quickKey),tt(nt,"scala",ye.keywords,ye.quickKey)};const Me="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var Ee=Object.defineProperty,we=(nt,rn,kt)=>rn in nt?Ee(nt,rn,{enumerable:!0,configurable:!0,writable:!0,value:kt}):nt[rn]=kt,Ne=(nt,rn,kt)=>we(nt,typeof rn!="symbol"?rn+"":rn,kt);const Xe=class $u{constructor(rn,kt,ae){this.placeholder=rn,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 $u.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)}};Ne(Xe,"ID","editor.widget.placeholderHint");var Pe=Xe,Fe=z(96236),Ze=z(6767),$e=z(25399),gt=z(89392),ot=z(77254),Qe=z(56102),ct=Object.defineProperty,Ce=Object.defineProperties,et=Object.getOwnPropertyDescriptors,Te=Object.getOwnPropertySymbols,ue=Object.prototype.hasOwnProperty,mt=Object.prototype.propertyIsEnumerable,_e=(nt,rn,kt)=>rn in nt?ct(nt,rn,{enumerable:!0,configurable:!0,writable:!0,value:kt}):nt[rn]=kt,lt=(nt,rn)=>{for(var kt in rn||(rn={}))ue.call(rn,kt)&&_e(nt,kt,rn[kt]);if(Te)for(var kt of Te(rn))mt.call(rn,kt)&&_e(nt,kt,rn[kt]);return nt},Mt=(nt,rn)=>Ce(nt,et(rn)),be=(nt,rn)=>{var kt={};for(var ae in nt)ue.call(nt,ae)&&rn.indexOf(ae)<0&&(kt[ae]=nt[ae]);if(nt!=null&&Te)for(var ae of Te(nt))rn.indexOf(ae)<0&&mt.call(nt,ae)&&(kt[ae]=nt[ae]);return kt},ge=(nt,rn,kt)=>new Promise((ae,re)=>{var te=ne=>{try{de(kt.next(ne))}catch(se){re(se)}},oe=ne=>{try{de(kt.throw(ne))}catch(se){re(se)}},de=ne=>ne.done?ae(ne.value):Promise.resolve(ne.value).then(te,oe);de((kt=kt.apply(nt,rn)).next())});function Ft(nt){return/^\d+$/.test(nt)?`${nt}px`:nt}function _t(){}let Tt=!1;const xe={"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 rt(nt=[]){let rn=nt;if(Array.isArray(nt)){for(let kt=0;kt<nt.length;kt++){let ae=xe[nt[kt]];if(ae)return ae}return rn[0]}return xe[rn]||rn}let qe=null;const Gt=()=>ge(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(nt){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",nt)}});var at=nt=>{var rn=nt,{width:kt="100%",height:ae="100%",value:re,language:te="javascript",style:oe={},options:de={},overrideServices:ne={},theme:se="vs-dark",onEditBlur:Oe,isCopy:bt=!1,onSave:Ge,autoHeight:We=!1,forbidCopy:it=!1,forbidCopyTips:ht,onChange:Pt=_t,editorDidMount:Le=_t,onFocus:Ve=_t,onBreakPoint:Ot=_t,breakPointValue:Yt=[],filename:un="educoder.txt",errorLine:tn,errorContent:Lt="",highlightLine:ln,openBreakPoint:$t=!1,placeholder:ze="",showMiniMap:yt=!0}=rn,Ht=be(rn,["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 en=(0,y.useRef)(),Ke=(0,y.useRef)({}),xt=(0,y.useRef)(),Zt=(0,y.useRef)(),dt=(0,y.useRef)([]),At=(0,y.useRef)(!1),Ut=(0,y.useRef)(),pn=(0,y.useRef)(),On=(0,y.useRef)(!1),[mn,Bn]=(0,y.useState)(!1);function Dt(){let dn;return en.current&&(dn=new he.Z(Cn=>{for(let Hn of Cn)(Hn.target.offsetHeight>0||Hn.target.offsetWidth>0)&&Ke.current.instance.layout()}),dn.observe(en.current)),dn}function hn(){Ze.ZP.warning({content:decodeURIComponent(ht||Me),key:"monaco-editor-tip"})}const Wt=()=>{let dn=Ke.current.instance;if(re!=null&&dn&&mn){const Cn=dn.getModel();Cn&&re!==Cn.getValue()&&(Tt=!0,Cn.setValue(re),dn.layout(),Tt=!1)}};(0,y.useEffect)(()=>{const dn=ot.Z.subscribe("formatDocument",Cn=>{var Hn;let Kn=Ke.current.instance;(Hn=Kn==null?void 0:Kn.getAction)==null||Hn.call(Kn,"editor.action.formatDocument").run()});return window.updateMonacoValue=Cn=>{Pt(Cn)},dn},[]),(0,y.useEffect)(()=>{var dn;let Cn=Ke.current.instance;Zt.current&&clearTimeout(Zt.current),Zt.current=setTimeout(()=>{Wt()},500),re&&(re!=null&&re.length)&&((dn=Cn==null?void 0:Cn.updateOptions)==null||dn.call(Cn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(re.split(/\r\n|\r|\n/g).length))+3,5)}))},[re,mn,Ke.current]),(0,y.useEffect)(()=>{if(tn&&Ke.current&&Ke.current.instance){let Cn=Ke.current.instance;Cn.changeViewZones(function(Hn){var Kn=document.createElement("div");Kn.style.padding="10px 20px",Kn.style.width="calc(100% - 20px)",Kn.className="my-error-line-wrp",Kn.innerHTML=Lt,Hn.addZone({afterLineNumber:tn||11,heightInLines:3,domNode:Kn})});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}};Cn.addOverlayWidget(dn),Cn.revealPositionInCenter({lineNumber:20,column:1})}},[tn,Ke.current,mn]);const an=(dn="",Cn)=>{if(!dn||dn.trim()==="")return!0;const Kn=Ke.current.instance.getModel().getLineTokens(Cn);let Et=!1;for(let Rt=0;Rt<2;Rt++)Kn.getStandardTokenType(Rt)===1&&(Et=!0);return Et};(0,y.useEffect)(()=>{var dn;const Cn=(dn=Ke.current)==null?void 0:dn.instance;if(Cn&&mn&&it){const Hn=Cn.onDidBlurEditorWidget(()=>{On.current=!1}),Kn=Cn.onDidFocusEditorText(()=>{On.current=!0});return()=>{Hn.dispose(),Kn.dispose()}}},[Ke.current,mn,it]),(0,y.useEffect)(()=>{var dn;if((dn=Ke.current)!=null&&dn.instance&&mn&&$t){let Cn=Ke.current.instance,Hn=Cn.getModel();if(!Hn)return;(()=>{var Ct;let St=[],It=[];const fn=Hn.getAllDecorations();for(let Pn of fn)Pn.options.className==="highlighted-line"&&(St.push((Ct=Pn==null?void 0:Pn.range)==null?void 0:Ct.startLineNumber),It.push(Pn==null?void 0:Pn.id));if(ln===St[0])return;Hn.deltaDecorations(It,[]);const wn=Hn.getLineCount();ln&&ln<=wn&&(Cn.deltaDecorations([],[{range:new qe.Range(ln,1,ln,Hn.getLineMaxColumn(ln)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Cn.revealLineInCenter(ln))})();const Et=(Ct=!1)=>{var St;let It=[],fn=[];const wn=Hn.getAllDecorations();for(let Pn of wn)Pn.options.linesDecorationsClassName==="breakpoints-select"&&(It.push((St=Pn==null?void 0:Pn.range)==null?void 0:St.startLineNumber),fn.push(Pn==null?void 0:Pn.id));if(Ct)return{lines:It,ids:fn};Ot(It)},Rt=Ct=>ge(void 0,null,function*(){let St={range:new qe.Range(Ct,1,Ct,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield Hn.deltaDecorations([],[St]),Et()}),Je=Ct=>ge(void 0,null,function*(){let St=[];const It=Cn.getLineDecorations(Ct);for(let fn of It)fn.options.linesDecorationsClassName==="breakpoints-select"&&St.push(fn.id);yield Hn.deltaDecorations(St,[]),Et()}),Bt=Ct=>{let St=Cn.getLineDecorations(Ct);for(let It of St)if(It.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,gt.isEqual)(Yt,Et(!0).lines)){Hn.deltaDecorations(Et(!0).ids,[]);const Ct=Yt.map(St=>({range:new qe.Range(St,1,St,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));Hn.deltaDecorations([],Ct)}const Ue=Cn.onDidChangeModelContent(Ct=>{let St=Cn.getPosition();if(St){let It=St.lineNumber;clearTimeout(pn.current),pn.current=setTimeout(()=>{an(Hn.getLineContent(It),It)?Je(It):Bt(It)?(Je(It),Rt(It)):Et()},100)}}),Nt=Cn.onMouseDown(Ct=>{var St,It,fn;if(Ct.target.detail&&((fn=(It=(St=Ct.target)==null?void 0:St.element)==null?void 0:It.className)!=null&&fn.includes("line-numbers"))){let wn=Ct.target.position.lineNumber;if(an(Hn.getLineContent(wn),wn))return;Bt(wn)?Je(wn):Rt(wn)}}),Jt=Ct=>{let St={range:new qe.Range(Ct,1,Ct,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};dt.current=Cn.deltaDecorations(dt.current,[St])},Ln=()=>{dt.current=Cn.deltaDecorations(dt.current,[])},zn=Cn.onMouseMove(Ct=>{var St,It,fn;if(Ln(),Ct.target.detail&&((fn=(It=(St=Ct.target)==null?void 0:St.element)==null?void 0:It.className)!=null&&fn.includes("line-numbers"))){let wn=Ct.target.position.lineNumber;if(an(Hn.getLineContent(wn),wn))return;Jt(wn)}}),pt=Cn.onMouseLeave(()=>{Ln()});return()=>{Ue.dispose(),Nt.dispose(),zn.dispose(),pt.dispose()}}},[Ke.current,mn,Yt,ln,$t,te]),(0,y.useEffect)(()=>{var dn;(dn=Ke.current)!=null&&dn.instance&&$t&&Ke.current.instance.setPosition({lineNumber:0,column:0})},[ln]);function Vt(){let dn=Ke.current.instance;if(dn){const Cn=dn.getSelection(),Hn=Ke.current.pastePos||{},Kn=new qe.Range(Hn.startLineNumber||Cn.endLineNumber,Hn.startColumn||Cn.endColumn,Hn.endLineNumber||Cn.endLineNumber,Hn.endColumn||Cn.endColumn);setTimeout(()=>{dn.executeEdits("",[{range:Kn,text:""}])},300)}}function cn(dn){(window.navigator.platform.match("Mac")?dn.metaKey:dn.ctrlKey)&&dn.keyCode==83&&(dn.preventDefault(),Ge())}const on=()=>{if(We&&Ke.current.instance){const dn=Ke.current.instance.getContentHeight();lr(dn<ae?ae:dn)}else lr(ae)};function Zn(dn){var Cn=document.createEvent("MouseEvents");Cn.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),dn.dispatchEvent(Cn)}const _n=dn=>{if(!On.current)return;const{keyCode:Cn,ctrlKey:Hn,metaKey:Kn,target:Et,type:Rt}=dn;return(Rt==="paste"||(Cn===67||Cn===86)&&(Kn||Hn))&&Et.nodeName==="TEXTAREA"&&(hn(),dn.preventDefault()),!1};function Nn(dn,Cn){var Hn=window.URL||window.webkitURL||window,Kn=new Blob([Cn]),Et=document.createElementNS("http://www.w3.org/1999/xhtml","a");Et.href=Hn.createObjectURL(Kn),Et.download=dn,Zn(Et)}(0,y.useEffect)(()=>{on()},[on]),(0,y.useEffect)(()=>{en.current&&!mn&&Promise.all([z.e(8909),z.e(2460)]).then(z.bind(z,71448)).then(dn=>{try{qe=dn,Ke.current.instance=qe.editor.create(en.current,{value:re,language:rt(te),theme:se,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:yt||!1}},ne);const Cn=Ke.current.instance;let Et=[...Fe.BH._menuItems].find(Ue=>Ue[0]._debugName=="EditorContext")[1],Rt=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Je=(Ue,Nt)=>{var Jt,Ln;let zn=Ue._first;do Nt.includes((Ln=(Jt=zn.element)==null?void 0:Jt.command)==null?void 0:Ln.id)&&Ue._remove(zn);while(zn=zn.next)};if(Le(Cn,qe),setTimeout(()=>{on(),Ke.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Nn(un||"educoder.txt",Cn.getValue())}})},500),Ke.current.subscription=Cn.onDidChangeModelContent(Ue=>{At.current?clearTimeout(Ut.current):(on(),Pt(Cn.getValue(),Ue)),Ut.current=setTimeout(()=>{At.current=!1},500)}),window.Monaco||He(qe,rt(te)),it&&(Je(Et,Rt),en.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",_n),window.removeEventListener("paste",_n),window.addEventListener("keydown",_n),window.addEventListener("paste",_n)),window.Monaco=qe,Oe&&Cn.onDidBlurEditorWidget(()=>{Oe(Cn.getValue())}),Ve&&Cn.onDidFocusEditorText(()=>{it&&Gt(),Ve(Cn.getValue())}),it){Gt();try{Cn.onDidPaste(Ue=>{const Nt=Cn.getSelection(),Jt=Ke.current.pastePos||{},Ln=new qe.Range(Jt.startLineNumber||Nt.endLineNumber,Jt.startColumn||Nt.endColumn,Jt.endLineNumber||Nt.endLineNumber,Jt.endColumn||Nt.endColumn);Cn.executeEdits("",[{range:Ue.range,text:""}])})}catch(Ue){}}let Bt=Dt();return ze&&typeof ze=="string"&&new Pe(ze,Cn,qe),Bn(!0),()=>{const Ue=Ke.current.instance;Ue.dispose();const Nt=Ue.getModel();Nt&&Nt.dispose(),Ke.current.subscription&&Ke.current.subscription.dispose(),Bt.unobserve(en.current)}}catch(Cn){}})},[]),(0,y.useEffect)(()=>{if(Ke.current.instance&&mn)return document.addEventListener("keydown",cn,!1),()=>{document.removeEventListener("keydown",cn)}},[Ge,mn]),(0,y.useEffect)(()=>{let dn=Ke.current.instance;if(dn&&mn){let Cn=rt(te);qe.editor.setModelLanguage(dn.getModel(),Cn)}},[te,mn]),(0,y.useEffect)(()=>{Ke.current.instance&&mn&&qe.editor.setTheme(se)},[se,mn]),(0,y.useEffect)(()=>{let dn=Ke.current.instance;xt.current=de,dn&&mn&&(dn.updateOptions(lt({},de)),setTimeout(()=>{dn.getModel().updateOptions(lt({},de))},200))},[JSON.stringify(de),mn]),(0,y.useEffect)(()=>{let dn=Ke.current.instance;dn&&mn&&dn.layout()},[kt,ae,mn]);const[jn,Gn]=(0,y.useState)(Ft(kt)),[$n,lr]=(0,y.useState)(Ft(ae)),nr=Mt(lt({},oe),{width:jn,height:$n,position:"relative"});return y.createElement("div",{className:"my-monaco-editor",ref:en,style:nr,onFocus:()=>{it&&Gt()}},bt&&y.createElement(Qe.CopyToClipboard,{text:re,onCopy:()=>Ze.ZP.success("\u590D\u5236\u6210\u529F")},y.createElement($e.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 st({width:nt="100%",height:rn="100%",original:kt,modified:ae,language:re,options:te={}}){const oe=(0,y.useRef)(),[de,ne]=(0,y.useState)(null);function se(We){let it;return oe.current&&(it=new he.Z(ht=>{for(let Pt of ht)(Pt.target.offsetHeight>0||Pt.target.offsetWidth>0)&&We.layout()}),it.observe(oe.current)),it}(0,y.useEffect)(()=>(oe.current&&Promise.all([z.e(8909),z.e(9404)]).then(z.bind(z,2550)).then(We=>{qe=We;const it=qe.editor.createDiffEditor(oe.current,Mt(lt({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(it);let ht=se(it);return()=>{it.dispose();const Pt=it.getModel();Pt&&Pt.dispose(),ht.unobserve(oe.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,y.useEffect)(()=>{de&&de.setModel({original:qe.editor.createModel(kt,re),modified:qe.editor.createModel(ae,re)})},[kt,ae,re,de]);const Oe=Ft(nt),bt=Ft(rn),Ge={width:Oe,height:bt};return y.createElement("div",{className:"my-diff-editor",ref:oe,style:Ge})}},61584:function(bn,zt,z){"use strict";z.d(zt,{Z:function(){return Re}});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),ce=z(25399),je=z(89787),ve=z(92310),me=z.n(ve),ye=z(65862),Ae=z(2524),pe=z(59301),Re=({className:Ie,dataSource:tt=[],col:He=4,right:Me,bottom:Ee=23,precision:we=0,wrapWidth:Ne=1200,trackEventItems:Xe,loading:ft,onRemove:Pe=()=>{},isCurrent:Fe=!0,showProgress:Ze=!1,showAlias:$e=!1,category:gt,hiddenClick:ot})=>{const Qe=Math.floor((Ne-(He-1)*Me)/He),ct=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png"}];return pe.createElement(he.Z,{spinning:ft},pe.createElement("div",{className:me()(y.list,Ie)},!!(tt!=null&&tt.length)&&(tt==null?void 0:tt.map((Ce,et)=>{var Te,ue,mt,_e,lt,Mt,be,ge,Ft,_t,Tt,xe,rt;const{name:qe,id:Gt,identifier:at,featured:st,school_name:nt,image_url:rn,excellent:kt,is_plan:ae}=Ce;return pe.createElement("div",{key:Gt,className:Fe&&Ze?y.wrapisCurrent:y.wrap,style:{width:Qe,marginRight:(1+et)%He===0?0:Me+we,marginBottom:Ee}},pe.createElement("a",{className:y.li,onClick:re=>{re.preventDefault(),re.stopPropagation(),Xe&&(0,ye.L9)([Xe]),(0,ye.xg)(`/paths/${at}`)}},pe.createElement("div",{className:y.img},pe.createElement("img",{className:y.cover,src:`${rn}`}),(Te=Ce==null?void 0:Ce.subject_tags)==null?void 0:Te.map((re,te)=>{var oe,de;if(te===0){const se=(oe=ct.find(Oe=>Oe.name==re))==null?void 0:oe.swimg;return pe.createElement("img",{className:y.sign,src:se,style:{left:"-4px"}})}const ne=(de=ct.find(se=>se.name==re))==null?void 0:de.ptimg;return pe.createElement("img",{className:y.sign,src:ne,style:{left:`${48+52*(te-1)+2*te}px`}})}),pe.createElement("div",{className:y.tagsDom},pe.createElement("div",{className:"flex flex-wrap gap-10px item-center"},(Ce==null?void 0:Ce.excellent)&&pe.createElement("div",{className:y.bq},"\u5F00\u653E\u8BFE\u7A0B"),((ue=Ce==null?void 0:Ce.custom_tags)==null?void 0:ue.length)>0&&pe.createElement(ce.Z,{title:(lt=(_e=Ce==null?void 0:Ce.custom_tags)==null?void 0:_e[((mt=Ce==null?void 0:Ce.custom_tags)==null?void 0:mt.length)-1])==null?void 0:lt.tag_name},pe.createElement("div",{className:"px-6px rounded-2px c-white h-16px flex item-center",style:{maxWidth:"62px",background:"#3061D0",border:"0.5px solid #8FAFF8"}},pe.createElement("span",{className:"multi-llipsis1e text-10px"},(ge=(be=Ce==null?void 0:Ce.custom_tags)==null?void 0:be[((Mt=Ce==null?void 0:Ce.custom_tags)==null?void 0:Mt.length)-1])==null?void 0:ge.tag_name))))),gt=="hide"&&(Ce==null?void 0:Ce.studying)&&Fe&&pe.createElement("div",{className:`${y.movebq} user-path-items`,onClick:re=>{re.stopPropagation(),Pe(Ce)}},pe.createElement("i",{className:"iconfont icon-yichu1 font12"}),pe.createElement("span",null,"\u79FB\u9664")),!["collect","payed"].includes(gt)&&Fe&&pe.createElement("div",{className:`${y.hiddenbq} user-path-items`,onClick:re=>{re.stopPropagation(),ot(Ce)}},pe.createElement("i",{className:`iconfont ${gt=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),pe.createElement("span",null,gt=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF"))),pe.createElement("div",{className:y.name},pe.createElement(ce.Z,{title:$e&&(Ce!=null&&Ce.excellent_alias_name)?pe.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${qe}`,pe.createElement("br",null),pe.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Ce==null?void 0:Ce.excellent_alias_name}`)):qe},pe.createElement("span",{className:y.e},$e&&(Ce==null?void 0:Ce.excellent_alias_name)||qe))),Fe&&Ze&&((Ft=Ce==null?void 0:Ce.progress)==null?void 0:Ft.all_score)!=0&&pe.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},pe.createElement(je.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((_t=Ce==null?void 0:Ce.progress)==null?void 0:_t.my_score)/((Tt=Ce==null?void 0:Ce.progress)==null?void 0:Tt.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(xe=Ce==null?void 0:Ce.progress)==null?void 0:xe.my_score,"/",(rt=Ce==null?void 0:Ce.progress)==null?void 0:rt.all_score),(!Fe||!Ze)&&pe.createElement(ce.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${nt}`},pe.createElement("div",{className:y.unit},pe.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),nt)),(!Fe||!Ze)&&pe.createElement("div",{className:y.tags},pe.createElement("div",null,pe.createElement(ce.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},pe.createElement("span",null,pe.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),pe.createElement("span",null,Ce.stages_count))),pe.createElement(ce.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},pe.createElement("span",null,pe.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),pe.createElement("span",null,Ce.members_count)))))))})),!tt.length&&pe.createElement(Ae.Z,null)))}},82636:function(bn,zt,z){"use strict";z.d(zt,{jL:function(){return ve},w9:function(){return Ft},QD:function(){return un},cQ:function(){return _e.Z},op:function(){return ht},O5:function(){return hn},_b:function(){return yt},t7:function(){return Ne},Gi:function(){return Gt},YG:function(){return rt},qp:function(){return Re},vr:function(){return ln},qE:function(){return Ve},Je:function(){return Pe},wb:function(){return mt},cq:function(){return ae},tp:function(){return He}});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"},ce="data:image/png;base64,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",ve=({dataSource:Wt=[],img:an,imgWidth:Vt=346,title:cn,sunTitle:on,bannerExtraContent:Zn})=>y.createElement("div",{className:he.banner},y.createElement("div",{className:he.content},y.createElement("aside",null,y.createElement("p",null,y.createElement("b",null,cn),y.createElement("span",null,on)),Wt.length>0&&y.createElement("div",{className:he.btns},Wt.map((_n,Nn)=>y.createElement("div",{key:Nn,onClick:_n.click},_n.name,_n.sign?y.createElement("img",{src:ce,width:39}):null))),Zn),an&&y.createElement("img",{style:{marginTop:33,marginRight:38},src:an,width:Vt}))),me={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"},ye=z(92310),Ae=z.n(ye),pe=z(89392),Re=({dataSource:Wt=[],value:an,onChange:Vt,onTitleChange:cn,className:on,title:Zn,titleWidth:_n=41,style:Nn={},fontColor:jn="#6A7283",showCount:Gn})=>{const[$n,lr]=(0,y.useState)(1),[nr,dn]=(0,y.useState)(!1),Cn=(0,y.useRef)(null),Hn=(0,y.useRef)(null);return(0,y.useEffect)(()=>{var Kn;Wt.length!==0&&(((Kn=Cn==null?void 0:Cn.current)==null?void 0:Kn.clientHeight)>97?lr(1):lr(0)),Wt.length===0&&lr(0),dn(!1)},[Wt]),y.createElement("div",{className:Ae()(me.row,on,"fadeIn","animated"),style:Nn},y.createElement("div",{onClick:(0,pe.throttle)(()=>cn==null?void 0:cn(),2e3),style:{width:_n,marginTop:nr?12:4},className:`${me.title} ${cn?"current":""}`},Zn),y.createElement("div",{className:nr?`${me.tagsWrap} ${me.tagsBorderWrap}`:me.tagsWrap},y.createElement("div",{className:me.bar,ref:Hn,style:$n>0?{height:$n===1?97:"auto",overflow:$n===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},y.createElement("div",{className:me.tag,ref:Cn},Wt==null?void 0:Wt.map(Kn=>y.createElement("span",{onClick:()=>Vt(Kn.id),key:Kn.id,style:{color:jn},className:an===Kn.id?me.active:""},y.createElement("span",{title:Kn.name,className:me.name},Kn.name),!!Gn&&y.createElement("span",{className:me.num},Kn.count))))),!!$n&&y.createElement(y.Fragment,null,$n===1?y.createElement("div",{onClick:()=>{var Kn;lr(2),((Kn=Cn==null?void 0:Cn.current)==null?void 0:Kn.clientHeight)>245?dn(!0):dn(!1)},className:me.action},"\u5C55\u5F00",y.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):y.createElement("div",{onClick:()=>{Hn.current.scrollTop=0,lr(1),dn(!1)},className:me.action},"\u6536\u8D77",y.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},Ie={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"},He=({dataSource:Wt=[],value:an,onChange:Vt,className:cn,style:on={}})=>y.createElement("div",{style:on,className:Ae()(Ie.tabs,cn)},Wt.map(Zn=>y.createElement("span",{onClick:()=>Vt(Zn.id),className:an===Zn.id?Ie.active:"",key:Zn.id},Zn.name))),Me={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"},Ee=z(37568),Ne=({dataSource:Wt=[],value:an="",onChange:Vt,onInputChange:cn=()=>{},className:on,style:Zn={},placeholder:_n,allowClear:Nn=!1})=>{var jn;const[Gn,$n]=(0,y.useState)(""),[lr,nr]=(0,y.useState)("");(0,y.useEffect)(()=>{var Hn;let Kn=an;(Hn=JSON.stringify(an))!=null&&Hn.includes("{")&&($n(an.id),Kn=an.value||"");try{nr(decodeURIComponent(Kn||""))}catch(Et){nr(decodeURIComponent(Kn||""))}},[an]);const dn=()=>{Vt(encodeURIComponent(lr),Gn||null)},Cn=Hn=>{Hn!==Gn&&($n(Hn),Vt(encodeURIComponent(lr),Hn))};return y.createElement("div",{className:Ae()(Me.input,on),style:Zn},!!Wt.length&&y.createElement("div",{className:Me.dropdown},y.createElement("div",{className:Me.text},(jn=Wt.find(Hn=>Hn.id===Gn))==null?void 0:jn.name,y.createElement("i",{className:"iconfont icon-zhankai4"}),y.createElement("b",{className:Me.b1}),y.createElement("b",{className:Me.b2})),y.createElement("div",{className:Me.menu},Wt.map((Hn,Kn)=>y.createElement("div",{key:Kn,onClick:()=>Cn(Hn.id)},Hn.name)))),y.createElement(Ee.default,{onPressEnter:dn,value:lr,onChange:Hn=>{nr(Hn.target.value),cn(encodeURIComponent(Hn.target.value),Gn||null)},placeholder:_n,variant:"borderless",allowClear:Nn,onClear:()=>Vt("",Gn||null)}),y.createElement("i",{onClick:dn,className:"iconfont icon-sousuo9 font14 current"}))},Xe={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"},Pe=({value:Wt,onChange:an,className:Vt,total:cn,pageSize:on,style:Zn={}})=>{const _n=Wt<2,Nn=Wt>=Math.ceil(cn/on);return cn<=on?y.createElement(y.Fragment,null):y.createElement("div",{className:Ae()(Xe.quickPager,Vt),style:Zn},y.createElement("div",{onClick:()=>{_n||an(Wt-1,"prev")},className:_n?Xe.disabled:""},"\u4E0A\u4E00\u9875"),y.createElement("div",{onClick:()=>{Nn||an(Wt+1,"next")},className:Nn?Xe.disabled:""},"\u4E0B\u4E00\u9875"))},Fe={flex_box_center:"flex_box_center___FO7TP",flex_space_between:"flex_space_between___LotYx",flex_box_vertical_center:"flex_box_vertical_center___bWdaw",flex_box_center_end:"flex_box_center_end___mVJ1o",flex_box_column:"flex_box_column___M83Mm",list:"list___oOsiS",wrap:"wrap___G6T7F",lockWrap:"lockWrap___Rl79E",li:"li___oZZ7l",cover:"cover___b2bYW",img:"img___IQX7w",sign:"sign___HkT6C",name:"name___SsJx8",e:"e___TMqq0",tags:"tags___bcjyo",rate:"rate___YACg7"},Ze=z(29787),$e=z(25399),gt=z(63139),ot=z(74128),Qe=z(65862),ct=z(96908),Ce=z(57177),et=z(81378),Te=z(2524),mt=({className:Wt,dataSource:an=[],col:Vt=4,right:cn,bottom:on=23,precision:Zn=0,wrapWidth:_n=1200,trackEventItems:Nn,loading:jn})=>{const Gn=Math.floor((_n-(Vt-1)*cn)/Vt);return y.createElement(Ze.Z,{spinning:jn},y.createElement("div",{className:Ae()(Fe.list,Wt)},!!an.length&&an.map(($n,lr)=>{const{name:nr,id:dn,identifier:Cn,power:Hn,cover_image_id:Kn,pic:Et}=$n;return y.createElement("div",{className:Fe.wrap,key:dn,style:{width:Gn,marginRight:(1+lr)%Vt===0?0:cn+Zn,marginBottom:on}},y.createElement("a",{target:"_blank",href:`/shixuns/${Cn}/challenges`,className:Fe.li,onClick:Rt=>{Rt.preventDefault(),Nn&&(0,Qe.L9)([Nn]),Hn&&(0,Qe.xg)(`/shixuns/${Cn}/challenges`)}},y.createElement("div",{className:Fe.img},y.createElement("img",{className:Fe.cover,src:`${Et}`}),$n.is_jupyter&&y.createElement("img",{className:Fe.sign,src:ct}),$n.is_jupyter_lab&&y.createElement("img",{className:Fe.sign,src:Ce}),$n.is_unity_3d&&y.createElement("img",{className:Fe.sign,src:et})),y.createElement("div",{className:Fe.name},y.createElement($e.Z,{title:nr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},y.createElement("span",{className:Fe.e},nr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),y.createElement("div",{className:Fe.tags},y.createElement($e.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},y.createElement("span",null,y.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),y.createElement("span",null,$n.challenges_count))),!!$n.myshixuns_count&&y.createElement($e.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,$n.myshixuns_count))),y.createElement($e.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},y.createElement("span",null,y.createElement("span",null,$n.level))),y.createElement("div",{className:Fe.rate},y.createElement(gt.Z,{allowHalf:!0,disabled:!0,defaultValue:$n.score_info}),y.createElement("span",null,"\xA0",$n.score_info?`${$n.score_info}\u5206`:"5\u5206")))),!Hn&&y.createElement("div",{className:Fe.lockWrap},y.createElement("img",{src:`${ot.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")))}),!an.length&&y.createElement(Te.Z,null)))},_e=z(61584),lt={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",hidden:"hidden___NniIi",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},Mt="data:image/png;base64,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",be=z(59301),Ft=({className:Wt,dataSource:an=[],col:Vt=4,right:cn,bottom:on=23,precision:Zn=0,wrapWidth:_n=1200,trackEventItems:Nn,loading:jn,category:Gn,hiddenClick:$n,handleVery:lr=()=>!0,isCurrent:nr})=>{const dn=Math.floor((_n-(Vt-1)*cn)/Vt);return be.createElement(Ze.Z,{spinning:jn},be.createElement("div",{className:Ae()(lt.list,Wt)},!!an.length&&an.map((Cn,Hn)=>{const{subject_identifier:Kn,id:Et,identifier:Rt,power:Je}=Cn,Bt=Cn.is_public!=0&&Cn.is_public;return be.createElement("div",{className:lt.wrap,key:Et,style:{width:dn,marginRight:(1+Hn)%Vt===0?0:cn+Zn,marginBottom:on}},be.createElement("a",{className:lt.li,onClick:Ue=>{Ue.preventDefault(),lr(Cn==null?void 0:Cn.first_category_url)&&(Nn&&(0,Qe.L9)([Nn]),(0,Qe.xg)(Cn.first_category_url))}},be.createElement("div",{className:lt.top},be.createElement($e.Z,{title:Cn.name},be.createElement("div",{className:lt.name},Cn.name)),be.createElement("img",{className:lt.img,src:ot.Z.IMG_SERVER+"/images/"+Cn.avatar_url}),be.createElement("div",{className:lt.text,title:Cn.creator},Cn.creator),Kn&&be.createElement("div",{className:lt.btns},be.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),be.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Bt&&be.createElement("div",{className:lt.sign},"\u516C\u5F00"),nr&&be.createElement("div",{className:lt.hidden,onClick:Ue=>{Ue.stopPropagation(),$n(Cn)}},be.createElement("i",{className:`iconfont ${Gn=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),Gn=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF")),be.createElement("div",{className:lt.bottom},Cn.visits>0&&be.createElement($e.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},be.createElement("span",null,be.createElement("i",{className:"iconfont icon-liulanyan"}),be.createElement("span",null,Cn.visits))),Cn.course_members_count>0&&be.createElement($e.Z,{title:"\u6210\u5458",placement:"bottom"},be.createElement("span",null,be.createElement("i",{className:"iconfont icon-chengyuan"}),Cn.course_members_count)),Cn.tasks_count>0&&be.createElement($e.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},be.createElement("span",null,be.createElement("i",{className:"iconfont icon-zuoye"}),Cn.tasks_count)),Cn.is_end?be.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):be.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!Cn.is_accessible&&be.createElement("div",{className:lt.lockWrap},be.createElement("img",{src:`${ot.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),be.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!an.length&&be.createElement(Te.Z,null)))},_t={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},Tt=z(65582),rt=({dataSource:Wt=[],value:an,onChange:Vt,className:cn,style:on={},tabBarExtraContent:Zn})=>y.createElement("div",{className:Ae()(_t.tabs,cn),style:on},y.createElement("div",{className:_t.tabsWrap},Wt.map((_n,Nn)=>!(_n!=null&&_n.hide)&&y.createElement("aside",{className:_t.tab,onClick:()=>{Vt(_n.id),_n.link&&Tt.history.push(_n.link)},key:Nn},y.createElement("div",{className:an===_n.id?_t.active:""},_n.name),(_n==null?void 0:_n.resetCount)==null&&(_n==null?void 0:_n.total)!==void 0&&y.createElement("span",null,"\uFF08",_n==null?void 0:_n.total,"\uFF09"),(_n==null?void 0:_n.resetCount)!==void 0&&(_n==null?void 0:_n.total)!==void 0&&y.createElement($e.Z,{title:(_n==null?void 0:_n.tip)!=null?_n==null?void 0:_n.tip:""},y.createElement("span",{style:{color:"#9096A3"}},"\uFF08",y.createElement("span",{style:{color:"#000"}},_n==null?void 0:_n.resetCount),"/",y.createElement("span",null,_n==null?void 0:_n.total),"\uFF09"))))),y.createElement("div",{className:_t.tabBar},Zn)),Gt=({className:Wt,style:an={},children:Vt})=>y.createElement("div",{className:Ae()(Wt),style:an},Vt),at={flex_box_center:"flex_box_center___e6HxQ",flex_space_between:"flex_space_between___RnXYe",flex_box_vertical_center:"flex_box_vertical_center___lVxPk",flex_box_center_end:"flex_box_center_end___bu8yv",flex_box_column:"flex_box_column___JczGj",orderWrap:"orderWrap___ZfyGX",orderIconWrap:"orderIconWrap___XTB_O",orderAsc:"orderAsc___KWHmA",orderDesc:"orderDesc___rHdbB",active:"active___a7eSP",cursorPointer:"cursorPointer___gs9kL",orderTextWrap:"orderTextWrap___teAKn"},st=z(75727),nt=z(93041);const rn=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var ae=({sortValue:Wt,dropValue:an,className:Vt,onSort:cn,onDrop:on,dataSource:Zn=rn})=>{var _n;return y.createElement("div",{className:Ae()(at.orderWrap,Vt)},y.createElement(st.Z,{dropdownRender:()=>y.createElement(nt.default,null,Zn.map((Nn,jn)=>y.createElement(nt.default.Item,{key:jn,onClick:()=>on(Nn.id)},Nn.name)))},y.createElement("span",{className:at.orderTextWrap},(_n=Zn.find(Nn=>an===Nn.id))==null?void 0:_n.name)),y.createElement("span",{className:at.orderIconWrap},y.createElement("span",{className:at.orderAsc},y.createElement("i",{className:Wt==="asc"?`iconfont icon-sanjiaoxing-up font12 ${at.cursorPointer} ${at.active}`:`iconfont icon-sanjiaoxing-up font12 ${at.cursorPointer}`,onClick:()=>cn(Wt==="asc"?"desc":"asc")})),y.createElement("span",{className:at.orderDesc},y.createElement("i",{className:Wt==="desc"?`iconfont icon-sanjiaoxing-down font12 ${at.cursorPointer} ${at.active}`:`iconfont icon-sanjiaoxing-down font12 ${at.cursorPointer}`,onClick:()=>cn(Wt==="asc"?"desc":"asc")}))))},re={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"},te=z(7939),oe=Object.defineProperty,de=Object.getOwnPropertySymbols,ne=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable,Oe=(Wt,an,Vt)=>an in Wt?oe(Wt,an,{enumerable:!0,configurable:!0,writable:!0,value:Vt}):Wt[an]=Vt,bt=(Wt,an)=>{for(var Vt in an||(an={}))ne.call(an,Vt)&&Oe(Wt,Vt,an[Vt]);if(de)for(var Vt of de(an))se.call(an,Vt)&&Oe(Wt,Vt,an[Vt]);return Wt},Ge=(Wt,an)=>{var Vt={};for(var cn in Wt)ne.call(Wt,cn)&&an.indexOf(cn)<0&&(Vt[cn]=Wt[cn]);if(Wt!=null&&de)for(var cn of de(Wt))an.indexOf(cn)<0&&se.call(Wt,cn)&&(Vt[cn]=Wt[cn]);return Vt},We=(Wt,an,Vt)=>new Promise((cn,on)=>{var Zn=jn=>{try{Nn(Vt.next(jn))}catch(Gn){on(Gn)}},_n=jn=>{try{Nn(Vt.throw(jn))}catch(Gn){on(Gn)}},Nn=jn=>jn.done?cn(jn.value):Promise.resolve(jn.value).then(Zn,_n);Nn((Vt=Vt.apply(Wt,an)).next())}),ht=Wt=>{var an=Wt,{className:Vt,style:cn,children:on,loading:Zn=!1,openLoading:_n,onClick:Nn=()=>{},size:jn="middle",shape:Gn="round"}=an,$n=Ge(an,["className","style","children","loading","openLoading","onClick","size","shape"]);const[lr,nr]=(0,y.useState)(!1);return y.createElement(te.ZP,bt({onClick:(0,pe.throttle)(dn=>We(void 0,null,function*(){_n&&nr(!0);try{yield Nn(dn)}catch(Cn){console.log("error",Cn)}_n&&nr(!1)}),2e3,{leading:!0,trailing:!1}),className:Ae()(re.btn,re[`${jn}-${Gn}`],Vt),style:cn,size:jn,shape:Gn,loading:lr||Zn},$n),on)},Pt={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"},Ve=({className:Wt,style:an,children:Vt=null,onClick:cn,title:on})=>y.createElement("div",{className:Ae()(Pt.head,Wt),style:an},y.createElement("span",{className:"primary-hover",onClick:cn},y.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),y.createElement("b",{title:on},on),y.createElement("div",{className:Pt.node},Vt)),Ot={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"},un=({confirmShow:Wt=!0,confirmTitle:an,confirmClick:Vt,cancelShow:cn=!0,cancelTitle:on,cancelClick:Zn,className:_n,style:Nn,confirmLoading:jn=!1})=>y.createElement("div",{className:Ae()(Ot.btns,_n),style:Nn},Wt&&y.createElement(te.ZP,{loading:jn,onClick:Vt,type:"primary",className:Ot.confirm},an),cn&&y.createElement(te.ZP,{onClick:Zn,className:Ot.cancel},on)),tn={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"},ln=({className:Wt,style:an={},LeftContent:Vt,children:cn,RightContent:on})=>y.createElement("div",{className:Ae()(tn.fixedBottom,Wt),style:an},y.createElement("div",{className:tn.wrap},y.createElement("div",{className:tn.left},Vt),y.createElement("div",{className:tn.center},cn),y.createElement("div",{className:tn.right},on))),$t={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"},yt=({className:Wt,style:an={},dataSource:Vt=[]})=>y.createElement("div",{className:Ae()($t.crumbs,Wt),style:an},Vt.map((cn,on)=>on<Vt.length-1?y.createElement(y.Fragment,{key:on},cn.path||cn.onClick?y.createElement("span",{className:$t.hover,onClick:cn!=null&&cn.onClick?cn.onClick:()=>Tt.history.push(cn.path)},cn.name):y.createElement("span",null,cn.name),y.createElement("span",null,"\xA0",">","\xA0")):y.createElement("span",{key:on,style:{color:"#5F6368"}},cn.name))),Ht=z(11938),en=Object.defineProperty,Ke=Object.defineProperties,xt=Object.getOwnPropertyDescriptors,Zt=Object.getOwnPropertySymbols,dt=Object.prototype.hasOwnProperty,At=Object.prototype.propertyIsEnumerable,Ut=(Wt,an,Vt)=>an in Wt?en(Wt,an,{enumerable:!0,configurable:!0,writable:!0,value:Vt}):Wt[an]=Vt,pn=(Wt,an)=>{for(var Vt in an||(an={}))dt.call(an,Vt)&&Ut(Wt,Vt,an[Vt]);if(Zt)for(var Vt of Zt(an))At.call(an,Vt)&&Ut(Wt,Vt,an[Vt]);return Wt},On=(Wt,an)=>Ke(Wt,xt(an)),mn=(Wt,an)=>{var Vt={};for(var cn in Wt)dt.call(Wt,cn)&&an.indexOf(cn)<0&&(Vt[cn]=Wt[cn]);if(Wt!=null&&Zt)for(var cn of Zt(Wt))an.indexOf(cn)<0&&At.call(Wt,cn)&&(Vt[cn]=Wt[cn]);return Vt};const{Countdown:Bn}=Ht.default;var hn=Wt=>{var an=Wt,{onChange:Vt}=an,cn=mn(an,["onChange"]);const[on,Zn]=(0,y.useState)(null);(0,y.useEffect)(()=>{typeof on=="number"&&on>=0&&Vt(on)},[on]);const _n=Nn=>{const jn=Math.floor(Nn/1e3);Zn(jn)};return y.createElement(Bn,On(pn({},cn),{onChange:_n}))}},31103:function(bn,zt,z){"use strict";z.d(zt,{Z:function(){return he}});var y=z(59301);function he(ce,je){const ve=(0,y.useRef)();(0,y.useEffect)(()=>{ve.current=ce}),(0,y.useEffect)(()=>{function me(){ve.current()}if(je!==null){let ye=setInterval(me,je);return()=>clearInterval(ye)}},[je])}},10129:function(bn,zt,z){"use strict";z.d(zt,{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||{})},67172:function(bn,zt,z){"use strict";z.d(zt,{H7:function(){return Me},MK:function(){return He},MU:function(){return le},X6:function(){return Ie},bM:function(){return pe},fi:function(){return Ee},fu:function(){return Ae},n4:function(){return we},rX:function(){return tt},vl:function(){return Ne},zO:function(){return Re}});var y=z(38147),he=Object.defineProperty,ce=Object.getOwnPropertySymbols,je=Object.prototype.hasOwnProperty,ve=Object.prototype.propertyIsEnumerable,me=(Xe,ft,Pe)=>ft in Xe?he(Xe,ft,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):Xe[ft]=Pe,ye=(Xe,ft)=>{for(var Pe in ft||(ft={}))je.call(ft,Pe)&&me(Xe,Pe,ft[Pe]);if(ce)for(var Pe of ce(ft))ve.call(ft,Pe)&&me(Xe,Pe,ft[Pe]);return Xe};function Ae(Xe,ft){return(0,y.U2)(`myproblems/${Xe}.json`,ye({hidePopLogin:!0},ft||{}))}function pe(Xe,ft){return(0,y.v_)(`myproblems/${Xe}/code_submit.json`,ft)}function le(Xe,ft){return(0,y.v_)(`myproblems/${Xe}/code_debug.json`,ft)}function Re(Xe,ft){return ft.language&&(ft.language=encodeURIComponent(ft.language)),(0,y.U2)(`myproblems/${Xe}/submit_records.json`,ft)}function Ie(Xe){return(0,y.U2)("myproblems/record_detail.json",{id:Xe})}function tt(Xe,ft){return(0,y.U2)(`myproblems/${Xe}/result.json`,{mode:ft})}function He(Xe,ft){return(0,y.v_)(`myproblems/${Xe}/add_notes.json`,ft)}function Me(Xe,ft){return(0,y.v_)(`myproblems/${Xe}/restore_initial_code.json`,ft)}function Ee(Xe){return(0,y.v_)(`myproblems/${Xe}/sync_code.json`)}function we(Xe,ft){return(0,y.v_)(`myproblems/${Xe}/update_code.json`,ft)}function Ne(Xe,ft){return(0,y.v_)(`discusses/${Xe}/plus.json`,ft)}},26971:function(bn,zt,z){"use strict";z.d(zt,{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"},ce=z(28284),je=z(25399),ve=z(7939),me=z(62957),ye=z(4875),Ae=z(6767),pe=z(37568),le=z(37285),Re=z(62673),Ie=z(37639),tt=z(77019),He=z(5269),Me=z(31709),Ee=Object.defineProperty,we=Object.getOwnPropertySymbols,Ne=Object.prototype.hasOwnProperty,Xe=Object.prototype.propertyIsEnumerable,ft=(vt,jt,Qt)=>jt in vt?Ee(vt,jt,{enumerable:!0,configurable:!0,writable:!0,value:Qt}):vt[jt]=Qt,Pe=(vt,jt)=>{for(var Qt in jt||(jt={}))Ne.call(jt,Qt)&&ft(vt,Qt,jt[Qt]);if(we)for(var Qt of we(jt))Xe.call(jt,Qt)&&ft(vt,Qt,jt[Qt]);return vt};const Fe=vt=>React.createElement("svg",Pe({width:34,height:34,xmlns:"http://www.w3.org/2000/svg"},vt),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 Ze="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cmVjdCBmaWxsPSIjRTRFNkZEIiB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHJ4PSIxMCIvPjxnIGZpbGwtcnVsZT0ibm9uemVybyI+PHBhdGggZD0iTTEzLjgwOCAxMS40NDhhLjU1OC41NTggMCAwIDEgMCAuNzg4bC0xLjU2NCAxLjU2NWEuNTU4LjU1OCAwIDEgMS0uNzg5LS43OWwxLjU2NC0xLjU2M2EuNTU4LjU1OCAwIDAgMSAuNzkgMFptOS44ODIgMi40NjJhLjU1OC41NTggMCAwIDEtLjc4OSAwbC0xLjU2NC0xLjU2M2EuNTU4LjU1OCAwIDEgMSAuNzg5LS43ODlsMS41NjQgMS41NjRhLjU1Ni41NTYgMCAwIDEgMCAuNzg4WiIgZmlsbD0iIzY2NzhFQiIvPjxwYXRoIGQ9Ik0yMS43NTMgMjEuNzA3YTUuOTM3IDUuOTM3IDAgMSAwLTguNTguMDE1bC0uOTM3LjkzNmEuNTU4LjU1OCAwIDEgMCAuNzg5Ljc4OGwuOTk1LS45OTRhNS45MSA1LjkxIDAgMCAwIDMuNDM2IDEuMDk1YzEuMjg3IDAgMi40OC0uNDEgMy40NTItMS4xMDZsLjk5Mi45OTJhLjU1OC41NTggMCAxIDAgLjc4OS0uNzg5bC0uOTM2LS45MzdaIiBmaWxsPSIjNjY3OEVCIi8+PHBhdGggZD0ibTIwLjg1OCAxOC45NS0zLjAyNC0xLjc0NXYtMi4wNTRhLjU1OC41NTggMCAxIDAtMS4xMTcgMHYyLjM1MWMwIC4wNjQuMDExLjEyNi4wMzEuMTg0YS41NTEuNTUxIDAgMCAwIC4yNTguMzNsMy4yOTMgMS45YS41NTcuNTU3IDAgMCAwIC41NTktLjk2NloiIGZpbGw9IiNGRkYiLz48L2c+PC9nPjwvc3ZnPg==",$e=z(95097),gt=z(65582),ot=z(65862),Qe=z(38147),ct=Object.defineProperty,Ce=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,Te=Object.prototype.propertyIsEnumerable,ue=(vt,jt,Qt)=>jt in vt?ct(vt,jt,{enumerable:!0,configurable:!0,writable:!0,value:Qt}):vt[jt]=Qt,mt=(vt,jt)=>{for(var Qt in jt||(jt={}))et.call(jt,Qt)&&ue(vt,Qt,jt[Qt]);if(Ce)for(var Qt of Ce(jt))Te.call(jt,Qt)&&ue(vt,Qt,jt[Qt]);return vt};const _e=vt=>React.createElement("svg",mt({width:34,height:34,xmlns:"http://www.w3.org/2000/svg"},vt),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 lt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cmVjdCB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHJ4PSIxMCIgZmlsbD0iI0VBRjNGNCIvPjxwYXRoIGQ9Ik0yNS45MDUgMTUuMzdhLjc3NS43NzUgMCAwIDAtLjYyNi0uNTI5bC00LjgxNC0uNy0yLjE1Mi00LjM2MmEuNzc2Ljc3NiAwIDAgMC0xLjM5MiAwbC0yLjE1MyA0LjM2My00LjgxNC42OTlhLjc3NS43NzUgMCAwIDAtLjQzIDEuMzIzbDMuNDg0IDMuMzk2LS44MjMgNC43OTRhLjc3Ny43NzcgMCAwIDAgMS4xMjYuODE4bDQuMzA2LTIuMjY0IDQuMzA1IDIuMjY0YS43NzguNzc4IDAgMCAwIC44MTctLjA1OS43NzcuNzc3IDAgMCAwIC4zMS0uNzU5bC0uODIzLTQuNzk0IDMuNDgzLTMuMzk2YS43NzcuNzc3IDAgMCAwIC4xOTYtLjc5NVoiIGZpbGw9IiMyMUMwQTYiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvZz48L3N2Zz4=",Mt=Object.defineProperty,be=Object.getOwnPropertySymbols,ge=Object.prototype.hasOwnProperty,Ft=Object.prototype.propertyIsEnumerable,_t=(vt,jt,Qt)=>jt in vt?Mt(vt,jt,{enumerable:!0,configurable:!0,writable:!0,value:Qt}):vt[jt]=Qt,Tt=(vt,jt)=>{for(var Qt in jt||(jt={}))ge.call(jt,Qt)&&_t(vt,Qt,jt[Qt]);if(be)for(var Qt of be(jt))Ft.call(jt,Qt)&&_t(vt,Qt,jt[Qt]);return vt};const xe=vt=>React.createElement("svg",Tt({width:34,height:34,xmlns:"http://www.w3.org/2000/svg"},vt),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 rt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cmVjdCBmaWxsPSIjRTdGM0ZGIiB3aWR0aD0iMzQiIGhlaWdodD0iMzQiIHJ4PSIxMCIvPjxnIGZpbGw9IiM0QzZGRkYiIGZpbGwtcnVsZT0ibm9uemVybyI+PHBhdGggZD0ibTIzLjcxOSAxMy4zMjUtNC4wOTgtMy45NGMtLjA5Ny0uMTMtLjIyNS0uMTYyLS4zNTUtLjE2Mi0uMTI5IDAtLjI1OC4wNjQtLjM4Ny4xNjFsLTcuNTUgNy43NTNjLS4wNjUuMDY1LS4wOTguMTYyLS4xMy4yMjdsLTEuMDMyIDUuNDI3Yy0uMDMzLjE5NC4wMzIuMzIzLjE2LjQ4NC4xMy4xMy4yMjcuMTYyLjM4OS4xNjJoLjA5Nmw0Ljc3Ni0xLjA5OWMuMDk3LS4wMzIuMTk0LS4wNjQuMjU4LS4xNjFsNy44NDEtOC4xMDhjLjE5NC0uMTYyLjE5NC0uNTE3LjAzMy0uNzQ0aC0uMDAxWm0tOC4xIDguMDQ0YS41MzQuNTM0IDAgMCAxLS4zODYuMTYyLjU2LjU2IDAgMCAxLS4zODgtLjE2MmwtMy0yLjgxYy0uMjI2LS4xOTQtLjIyNi0uNTE3LS4wMzMtLjc0My4xOTQtLjIyNy41MTctLjIyNy43NDMtLjAzM2wzIDIuODExYy4yNTkuMjI2LjI5MS41NS4wNjUuNzc2Wk0xNyAyMi45Mmg2Ljg0NHYxLjA1NUgxN3oiLz48L2c+PC9nPjwvc3ZnPg==",qe=z(70414),Gt=z(25374),at=z(20633),st={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"},nt=z(59301),rn=Object.defineProperty,kt=Object.defineProperties,ae=Object.getOwnPropertyDescriptors,re=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,oe=Object.prototype.propertyIsEnumerable,de=(vt,jt,Qt)=>jt in vt?rn(vt,jt,{enumerable:!0,configurable:!0,writable:!0,value:Qt}):vt[jt]=Qt,ne=(vt,jt)=>{for(var Qt in jt||(jt={}))te.call(jt,Qt)&&de(vt,Qt,jt[Qt]);if(re)for(var Qt of re(jt))oe.call(jt,Qt)&&de(vt,Qt,jt[Qt]);return vt},se=(vt,jt)=>kt(vt,ae(jt)),Oe=(vt,jt)=>{var Qt={};for(var gn in vt)te.call(vt,gn)&&jt.indexOf(gn)<0&&(Qt[gn]=vt[gn]);if(vt!=null&&re)for(var gn of re(vt))jt.indexOf(gn)<0&&oe.call(vt,gn)&&(Qt[gn]=vt[gn]);return Qt};const bt=null,Ge=(vt,jt)=>{var Qt=vt,{globalSetting:gn,loading:yo,dispatch:Vr,isEdit:fo,editData:Pr}=Qt,Kr=Oe(Qt,["globalSetting","loading","dispatch","isEdit","editData"]);const[Zo,ho]=(0,y.useState)(""),[oi,pi]=(0,y.useState)(""),[Qo,gr]=(0,y.useState)([]),[io,bo]=(0,y.useState)(""),[Io,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)(jt,()=>({onSave:bi,Clear:pa}));const bi=()=>{let cr=[],Ci=!1;return Zo?(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,ot.eR)(wa,1e4))&&(bo(`${Ei}-${Ql}`),Ae.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?(Ae.ZP.warning("\u586B\u7A7A\u9898\u6807\u51C6\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A/\u4E0D\u80FD\u8D85\u8FC720\u4E2A\uFF01"),!1):{name:Zo,analysis:oi,standard_answers:cr,is_ordered:Io,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}):(Ae.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)},ja=(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:st.modal,onOk:()=>{Di[cr]=Di[cr].filter((Ei,wa)=>wa!==Ci),gr(Di)}})},Ia=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:st.modal,onOk:()=>{let Ci=Qo.slice();Ci=Qo.filter((Di,Ei)=>cr!==Ei),gr(Ci)}})};return nt.createElement("section",{className:st.wrap},nt.createElement("p",{className:st.titleWrap},nt.createElement("span",{className:st.required},"*"),nt.createElement("span",{className:st.title},"\u9898\u5E72\uFF1A")),nt.createElement("div",null,nt.createElement(Gt.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:Zo,onChange:cr=>ho(cr),showNullButton:!0,onAddBlank:()=>gr(cr=>[...cr,[""]])})),nt.createElement("div",{className:"mt20 flex flex-col gap-10px"},Qo.map((cr,Ci)=>nt.createElement("div",{style:{display:"flex"}},nt.createElement("div",{style:{flex:1}},nt.createElement(at.Z,{key:Ci,answers:cr,index:Ci,flex:1,is_md:!0,activeOptionErrorIndex:io,onAnswerChange:hl,addChildAnswer:zo,deleteChildAnswer:ja,deleteChildAnswermain:Ia})),ao.use_blank_score&&nt.createElement("div",{style:{display:"flex",alignItems:"center",width:"165px"}},nt.createElement("span",{style:{color:"red",margin:"auto 5px auto 10px"}},"*"),"\u5206\u503C\uFF1A",nt.createElement(ye.Z,{style:{width:"100px"},size:"large",defaultValue:Nr[Ci],onBlur:Di=>{Nr[Ci]=Di.target.value,no([...Nr])}}))))),nt.createElement(ve.ZP,{className:"mt20",onClick:()=>gr(cr=>[...cr,[""]]),type:"primary",shape:"round"},"\u65B0\u589E\u586B\u7A7A\u9879"),nt.createElement("div",null,nt.createElement(Re.default,{className:`${st.color333} font14 mt20`,checked:ao.use_blank_score,onChange:cr=>Co(se(ne({},ao),{use_blank_score:cr.target.checked}))},"\u5224\u5206\u65F6\u6309\u7A7A\u7ED9\u5206"),nt.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")),nt.createElement("div",null,nt.createElement(Re.default,{className:`${st.color333} font14 mt20`,checked:ao.downcase,onChange:cr=>Co(se(ne({},ao),{downcase:cr.target.checked}))},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),nt.createElement("div",null,nt.createElement(Re.default,{className:`${st.color333} font14 mt20`,checked:ao.no_space,onChange:cr=>Co(se(ne({},ao),{no_space:cr.target.checked}))},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),nt.createElement("div",{className:"mt20"},(Qo==null?void 0:Qo.length)>1&&nt.createElement("span",null,nt.createElement(Re.default,{checked:Io,onChange:cr=>zr(cr.target.checked),className:`${st.color333} font14`},"\u591A\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u6709\u987A\u5E8F\u8981\u6C42"),nt.createElement("span",{className:`${st.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"))),nt.createElement("p",{className:st.titleWrap},nt.createElement("span",{className:st.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),nt.createElement(Gt.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 We=(0,gt.connect)(({loading:vt,globalSetting:jt})=>({globalSetting:jt,loading:vt.effects}),null,null,{forwardRef:!0})((0,y.forwardRef)(Ge)),it=z(47889),ht=Object.getOwnPropertySymbols,Pt=Object.prototype.hasOwnProperty,Le=Object.prototype.propertyIsEnumerable,Ve=(vt,jt)=>{var Qt={};for(var gn in vt)Pt.call(vt,gn)&&jt.indexOf(gn)<0&&(Qt[gn]=vt[gn]);if(vt!=null&&ht)for(var gn of ht(vt))jt.indexOf(gn)<0&&Le.call(vt,gn)&&(Qt[gn]=vt[gn]);return Qt};const Ot=null,Yt=(vt,jt)=>{var Qt=vt,{globalSetting:gn,loading:yo,editData:Vr,dispatch:fo,onRef:Pr=()=>{},isEdit:Kr}=Qt,Zo=Ve(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)(jt,()=>({onSave:bo,Clear:Io}));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}:(Ae.ZP.info("\u8BF7\u5148\u70B9\u51FB\u9009\u62E9\u672C\u9009\u62E9\u9898\u7684\u6B63\u786E\u9009\u9879"),!1):(Ae.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1),Io=()=>{Qo(""),io(""),oi("")};return y.createElement("section",{className:st.wrap},y.createElement("p",{className:st.titleWrap},y.createElement("span",{className:st.required},"*"),y.createElement("span",{className:st.title},"\u9898\u5E72\uFF1A")),y.createElement(Gt.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:st.titleWrap},y.createElement("span",{className:st.required},"*"),y.createElement("span",{className:st.title},"\u7B54\u6848\u9009\u9879\uFF1A",y.createElement("span",{className:st.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),y.createElement(it.ZP.Group,{buttonStyle:"solid",value:ho,onChange:zr=>oi(zr.target.value)},y.createElement(it.ZP.Button,{value:"0",className:`${st.radio} mr40`},"\u6B63\u786E"),y.createElement(it.ZP.Button,{value:"1",className:st.radio},"\u9519\u8BEF")),y.createElement("p",{className:st.titleWrap},y.createElement("span",{className:st.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),y.createElement(Gt.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,gt.connect)(({loading:vt,globalSetting:jt})=>({globalSetting:jt,loading:vt.effects}),null,null,{forwardRef:!0})((0,y.forwardRef)(Yt)),tn=Object.getOwnPropertySymbols,Lt=Object.prototype.hasOwnProperty,ln=Object.prototype.propertyIsEnumerable,$t=(vt,jt)=>{var Qt={};for(var gn in vt)Lt.call(vt,gn)&&jt.indexOf(gn)<0&&(Qt[gn]=vt[gn]);if(vt!=null&&tn)for(var gn of tn(vt))jt.indexOf(gn)<0&&ln.call(vt,gn)&&(Qt[gn]=vt[gn]);return Qt};const ze=null,yt=(vt,jt)=>{var Qt=vt,{globalSetting:gn,loading:yo,editData:Vr,dispatch:fo,onRef:Pr=()=>{},isEdit:Kr}=Qt,Zo=$t(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(Io=>({id:Io==null?void 0:Io.id,score:Io.score}));oi(bo)},[Vr]),(0,y.useImperativeHandle)(jt,()=>({onSave:pi,Clear:Qo}));const pi=()=>({challenges:[...ho]}),Qo=()=>{oi([])};console.log("editData--",Vr);const gr=io=>{var bo,Io;return y.createElement("div",null,(Io=(bo=io==null?void 0:io.shixun)==null?void 0:bo.challenges)==null?void 0:Io.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(je.Z,{key:Go,title:zr==null?void 0:zr.challenge_name},y.createElement("span",null,(0,ot.Pq)(zr==null?void 0:zr.challenge_name,44)))),y.createElement("p",{style:{marginBottom:0}},y.createElement("span",{className:st.required},"*"),y.createElement("span",{className:st.title},"\u5206\u503C\uFF1A"),y.createElement(ye.Z,{precision:1,min:1,max:100,className:st.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:st.wrap},y.createElement($e.Z,{style:{paddingRight:10},className:st.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:st.required},"*"),y.createElement("span",{className:st.title},"\u5173\u5361")),gr(Vr))};var Ht=(0,gt.connect)(({loading:vt,globalSetting:jt})=>({globalSetting:jt,loading:vt.effects}),null,null,{forwardRef:!0})((0,y.forwardRef)(yt)),en=Object.getOwnPropertySymbols,Ke=Object.prototype.hasOwnProperty,xt=Object.prototype.propertyIsEnumerable,Zt=(vt,jt)=>{var Qt={};for(var gn in vt)Ke.call(vt,gn)&&jt.indexOf(gn)<0&&(Qt[gn]=vt[gn]);if(vt!=null&&en)for(var gn of en(vt))jt.indexOf(gn)<0&&xt.call(vt,gn)&&(Qt[gn]=vt[gn]);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"],At=(vt,jt)=>{var Qt=vt,{editData:gn,globalSetting:yo,loading:Vr,dispatch:fo,onRef:Pr=()=>{},isEdit:Kr}=Qt,Zo=Zt(Qt,["editData","globalSetting","loading","dispatch","onRef","isEdit"]);const[ho,oi]=(0,y.useState)([]),[pi,Qo]=(0,y.useState)(),[gr,io]=(0,y.useState)([]),[bo,Io]=(0,y.useState)(""),[zr,Go]=(0,y.useState)("");(0,y.useEffect)(()=>{oi(["","","",""])},[]),(0,y.useEffect)(()=>{if(!gn||!Kr)return;Io(gn==null?void 0:gn.name),Go(gn==null?void 0:gn.analysis),oi(gn==null?void 0:gn.choices.map(Nr=>Nr.choice_text));const Co=[];gn==null||gn.choices.map((Nr,no)=>{Nr.is_answer&&Co.push(no)}),io(Co)},[gn]),(0,y.useImperativeHandle)(jt,()=>({onSave:fi,Clear:ao}));const fi=()=>{if(!bo)return Ae.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;const Co=ho.findIndex(no=>!no);if(Co>-1)return Ae.ZP.info(`\u8BF7\u5148\u8F93\u5165 ${dt[Co]} \u9009\u9879\u7684\u5185\u5BB9`),!1;if(!gr.length)return Ae.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 Ae.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(["","","",""]),Io(""),Go(""),io("")};return y.createElement("section",{className:st.wrap},y.createElement("p",{className:st.titleWrap},y.createElement("span",{className:st.required},"*"),y.createElement("span",{className:st.title},"\u9898\u5E72\uFF1A")),y.createElement(Gt.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:bo,onChange:Co=>Io(Co)}),y.createElement("p",{className:st.titleWrap},y.createElement("span",{className:st.required},"*"),y.createElement("span",{className:st.title},"\u7B54\u6848\u9009\u9879\uFF1A",y.createElement("span",{className:st.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),ho.map((Co,Nr)=>y.createElement("div",{className:st.choiceWrap,key:Nr},y.createElement(je.Z,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},y.createElement("div",{className:`${st.answer} ${gr.includes(Nr)?st.activeAnswer:""}`,onClick:()=>{gr.includes(Nr)?io(gr.filter(no=>no!==Nr)):io([...gr,Nr])}},dt[Nr])),y.createElement("div",{className:st.editorWrap},pi===Nr?y.createElement(Gt.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:st.htmlWrap,onClick:()=>Qo(Nr)},y.createElement($e.Z,{value:Co}))),Nr>1&&y.createElement(je.Z,{title:"\u5220\u9664"},y.createElement("i",{className:`${st.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(je.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},y.createElement("i",{className:`${st.addIcon} iconfont icon-roundaddfill ml6`,onClick:()=>oi([...ho,""])})))),y.createElement("p",{className:st.titleWrap},y.createElement("span",{className:st.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),y.createElement(Gt.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,gt.connect)(({loading:vt,globalSetting:jt})=>({globalSetting:jt,loading:vt.effects}),null,null,{forwardRef:!0})((0,y.forwardRef)(At)),pn=Object.getOwnPropertySymbols,On=Object.prototype.hasOwnProperty,mn=Object.prototype.propertyIsEnumerable,Bn=(vt,jt)=>{var Qt={};for(var gn in vt)On.call(vt,gn)&&jt.indexOf(gn)<0&&(Qt[gn]=vt[gn]);if(vt!=null&&pn)for(var gn of pn(vt))jt.indexOf(gn)<0&&mn.call(vt,gn)&&(Qt[gn]=vt[gn]);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"],hn=(vt,jt)=>{var Qt=vt,{editData:gn,globalSetting:yo,loading:Vr,dispatch:fo,onRef:Pr=()=>{},isEdit:Kr}=Qt,Zo=Bn(Qt,["editData","globalSetting","loading","dispatch","onRef","isEdit"]);const[ho,oi]=(0,y.useState)([]),[pi,Qo]=(0,y.useState)(),[gr,io]=(0,y.useState)(),[bo,Io]=(0,y.useState)(""),[zr,Go]=(0,y.useState)("");(0,y.useEffect)(()=>{oi(["","","",""])},[]),(0,y.useEffect)(()=>{if(!gn||!Kr)return;const Co=[],Nr=[];gn==null||gn.choices.forEach((no,bi)=>{Co.push(no.choice_text),no.is_answer&&Nr.push(bi)}),Io(gn==null?void 0:gn.name),Go(gn==null?void 0:gn.analysis),oi(Co),io(Nr)},[gn]),(0,y.useImperativeHandle)(jt,()=>({onSave:fi,Clear:ao}));const fi=()=>{if(!bo)return Ae.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;const Co=ho.findIndex(no=>!no);if(Co>-1)return Ae.ZP.info(`\u8BF7\u5148\u8F93\u5165 ${Dt[Co]} \u9009\u9879\u7684\u5185\u5BB9`),!1;if(!Array.isArray(gr))return Ae.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(["","","",""]),Io(""),Go(""),io("")};return y.createElement("section",{className:st.wrap},y.createElement("p",{className:st.titleWrap},y.createElement("span",{className:st.required},"*"),y.createElement("span",{className:st.title},"\u9898\u5E72\uFF1A")),y.createElement(Gt.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:bo,onChange:Co=>Io(Co)}),y.createElement("p",{className:st.titleWrap},y.createElement("span",{className:st.required},"*"),y.createElement("span",{className:st.title},"\u7B54\u6848\u9009\u9879\uFF1A",y.createElement("span",{className:st.colorGray},"\u70B9\u51FB\u9009\u9879\u53EF\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))),ho.map((Co,Nr)=>y.createElement("div",{className:st.choiceWrap,key:Nr},y.createElement(je.Z,{title:"\u70B9\u51FB\u8BBE\u7F6E\u4E3A\u6807\u51C6\u7B54\u6848",placement:"left"},y.createElement("div",{className:`${st.answer} ${gr!=null&&gr.includes(Nr)?st.activeAnswer:""}`,onClick:()=>io([Nr])},Dt[Nr])),y.createElement("div",{className:st.editorWrap},pi===Nr?y.createElement(Gt.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:st.htmlWrap,onClick:()=>Qo(Nr)},y.createElement($e.Z,{value:Co}))),Nr>1&&y.createElement(je.Z,{title:"\u5220\u9664"},y.createElement("i",{className:`${st.deleteIcon} iconfont icon-htmal5icon19`,onClick:()=>{oi(ho.filter((no,bi)=>bi!==Nr)),Nr===gr&&io(null)}})),Nr<14&&Nr===ho.length-1&&y.createElement(je.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},y.createElement("i",{className:`${st.addIcon} iconfont icon-roundaddfill ml6`,onClick:()=>oi([...ho,""])})))),y.createElement("p",{className:st.titleWrap},y.createElement("span",{className:st.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),y.createElement(Gt.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 Wt=(0,gt.connect)(({loading:vt,globalSetting:jt})=>({globalSetting:jt,loading:vt.effects}),null,null,{forwardRef:!0})((0,y.forwardRef)(hn)),an=z(96599),Vt=z(58755),cn=z(61485),on=z(59301),Zn=Object.defineProperty,_n=Object.defineProperties,Nn=Object.getOwnPropertyDescriptors,jn=Object.getOwnPropertySymbols,Gn=Object.prototype.hasOwnProperty,$n=Object.prototype.propertyIsEnumerable,lr=(vt,jt,Qt)=>jt in vt?Zn(vt,jt,{enumerable:!0,configurable:!0,writable:!0,value:Qt}):vt[jt]=Qt,nr=(vt,jt)=>{for(var Qt in jt||(jt={}))Gn.call(jt,Qt)&&lr(vt,Qt,jt[Qt]);if(jn)for(var Qt of jn(jt))$n.call(jt,Qt)&&lr(vt,Qt,jt[Qt]);return vt},dn=(vt,jt)=>_n(vt,Nn(jt)),Cn=(vt,jt)=>{var Qt={};for(var gn in vt)Gn.call(vt,gn)&&jt.indexOf(gn)<0&&(Qt[gn]=vt[gn]);if(vt!=null&&jn)for(var gn of jn(vt))jt.indexOf(gn)<0&&$n.call(vt,gn)&&(Qt[gn]=vt[gn]);return Qt},Hn=(vt,jt,Qt)=>new Promise((gn,yo)=>{var Vr=Kr=>{try{Pr(Qt.next(Kr))}catch(Zo){yo(Zo)}},fo=Kr=>{try{Pr(Qt.throw(Kr))}catch(Zo){yo(Zo)}},Pr=Kr=>Kr.done?gn(Kr.value):Promise.resolve(Kr.value).then(Vr,fo);Pr((Qt=Qt.apply(vt,jt)).next())});const Kn=vt=>{if(!vt)return!1;if(/^s*$/.test(vt)||vt.trim()===""){Ae.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u5168\u4E3A\u7A7A\u683C");return}let jt=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 vt==="|"?(Ae.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},Et=({value:vt=[],onClose:jt})=>on.createElement(an.default,{closable:!0,onClose:jt,className:st.keywordTag},on.createElement("pre",{style:{margin:"0px",whiteSpace:"pre-wrap"}},vt.join(" \u6216 "))),Rt=(vt,jt)=>{var Qt=vt,{editData:gn,globalSetting:yo,loading:Vr,dispatch:fo,onRef:Pr=()=>{},isEdit:Kr}=Qt,Zo=Cn(Qt,["editData","globalSetting","loading","dispatch","onRef","isEdit"]);const[ho,oi]=(0,y.useState)(""),[pi,Qo]=(0,y.useState)(""),[gr,io]=(0,y.useState)(""),[bo,Io]=(0,y.useState)(""),[zr]=ce.default.useForm(),Go=ce.default.useWatch("use_keywords",zr);(0,y.useEffect)(()=>{var Nr;!gn||!Kr||(oi(gn==null?void 0:gn.name),Qo(gn==null?void 0:gn.analysis),io((Nr=gn==null?void 0:gn.answer_texts)==null?void 0:Nr[0]),zr.setFieldsValue(nr({},gn)))},[gn]),(0,y.useImperativeHandle)(jt,()=>({onSave:fi,Clear:ao}));const fi=()=>Hn(void 0,null,function*(){if(!ho)return Ae.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;try{yield zr.validateFields()}catch(no){Ae.ZP.error(no.errorFields[0].errors[0]);return}const Nr=zr.getFieldsValue();return console.log(Nr,"values"),nr({name:ho,answer_texts:[gr],analysis:pi},Nr)}),ao=()=>{oi(""),Qo(""),io(""),zr.resetFields()},Co=gn==null?void 0:gn.score;return on.createElement("section",{className:st.wrap},on.createElement("p",{className:st.titleWrap},on.createElement("span",{className:st.required},"*"),on.createElement("span",{className:st.title},"\u9898\u5E72\uFF1A")),on.createElement(Gt.Z,{id:"single-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:ho,onChange:Nr=>oi(Nr)}),on.createElement("p",{className:st.titleWrap},on.createElement("span",{className:st.title},"\u53C2\u8003\u7B54\u6848\uFF1A")),on.createElement(Gt.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)}),on.createElement("p",{className:st.titleWrap},on.createElement("span",{className:st.title},"\u9898\u76EE\u89E3\u6790\uFF1A")),on.createElement(Gt.Z,{id:"single-question-answer",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u76EE\u89E3\u6790",defaultValue:pi,onChange:Nr=>Qo(Nr)}),on.createElement(ce.default,{form:zr,size:"large",onFinishFailed:Nr=>Hn(void 0,null,function*(){var no,bi;Ae.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"})})},on.createElement(tt.Z,{align:"middle",className:"mb30 mt20"},on.createElement(ce.default.Item,{noStyle:!0,name:"use_keywords",valuePropName:"checked"},on.createElement(Vt.Z,null)),on.createElement(He.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),on.createElement(He.Z,null,on.createElement(je.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"},on.createElement(cn.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),Go&&on.createElement(ce.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})=>on.createElement(on.Fragment,null,on.createElement("div",{className:"mb10"},"\u5173\u952E\u8BCD"),on.createElement(tt.Z,{align:"middle",className:"font14 mb30"},on.createElement(He.Z,{flex:1},on.createElement(pe.default,{value:bo,onChange:pa=>{Io(pa.target.value)},maxLength:50,allowClear:!0,onPressEnter:pa=>{var Ji,hl,zo,ja;const Ia=`${(Ji=pa.target)==null?void 0:Ji.value}`,cr=(zo=(hl=Ia==null?void 0:Ia.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=((ja=Ci==null?void 0:Ci.map(Ei=>Ei==null?void 0:Ei.keyword))==null?void 0:ja.flat())||[];for(const Ei of cr)if(Di.includes(Ei)){Ae.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}Kn(Ia)&&(no({keyword:cr,score:1}),Io(""))},className:st.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"})),on.createElement(He.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,ja=Cn(Ji,["key","name"]);return on.createElement(tt.Z,{key:hl,style:{marginRight:148}},on.createElement(He.Z,{flex:1},on.createElement(tt.Z,{align:"middle",justify:"space-between"},on.createElement(ce.default.Item,dn(nr({},ja),{name:[zo,"keyword"]}),on.createElement(Et,{onClose:()=>bi(zo)})),on.createElement(ce.default.Item,dn(nr({},ja),{name:[zo,"score"],label:"\u5206\u503C",rules:[{required:!0}]}),on.createElement(ye.Z,{min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))})))))};var Je=(0,gt.connect)(({loading:vt,globalSetting:jt})=>({globalSetting:jt,loading:vt.effects}),null,null,{forwardRef:!0})((0,y.forwardRef)(Rt)),Bt=z(8848),Ue={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"},Nt=z(32134),Jt=z(12893),Ln=Object.defineProperty,zn=Object.defineProperties,pt=Object.getOwnPropertyDescriptors,Ct=Object.getOwnPropertySymbols,St=Object.prototype.hasOwnProperty,It=Object.prototype.propertyIsEnumerable,fn=(vt,jt,Qt)=>jt in vt?Ln(vt,jt,{enumerable:!0,configurable:!0,writable:!0,value:Qt}):vt[jt]=Qt,wn=(vt,jt)=>{for(var Qt in jt||(jt={}))St.call(jt,Qt)&&fn(vt,Qt,jt[Qt]);if(Ct)for(var Qt of Ct(jt))It.call(jt,Qt)&&fn(vt,Qt,jt[Qt]);return vt},Pn=(vt,jt)=>zn(vt,pt(jt)),In=(vt,jt)=>{var Qt={};for(var gn in vt)St.call(vt,gn)&&jt.indexOf(gn)<0&&(Qt[gn]=vt[gn]);if(vt!=null&&Ct)for(var gn of Ct(vt))jt.indexOf(gn)<0&&It.call(vt,gn)&&(Qt[gn]=vt[gn]);return Qt};const qn=vt=>{var jt=vt,{value:Qt,onChange:gn,scrollId:yo}=jt,Vr=In(jt,["value","onChange","scrollId"]);return y.createElement("div",{id:yo||""},y.createElement(Gt.Z,Pn(wn({},Vr),{defaultValue:Qt,onChange:(fo,Pr)=>{Pr!=null&&Pr.length?gn(fo,Pr):gn(fo)}})))},rr=({value:vt,onChange:jt,placeholder:Qt,height:gn=140,isEdit:yo})=>yo?y.createElement(Gt.Z,{watch:!0,isFocus:!0,height:gn,placeholder:Qt,defaultValue:vt,onChange:jt}):y.createElement("div",{style:{cursor:"pointer"}},vt?y.createElement($e.Z,{className:Ue.inputBorder,value:vt}):y.createElement("div",{className:`${Ue.inputBorder} ${Ue.placeholder}`},Qt));var ir=z(59301),sr=Object.defineProperty,Qn=Object.defineProperties,ar=Object.getOwnPropertyDescriptors,fr=Object.getOwnPropertySymbols,Sr=Object.prototype.hasOwnProperty,br=Object.prototype.propertyIsEnumerable,jr=(vt,jt,Qt)=>jt in vt?sr(vt,jt,{enumerable:!0,configurable:!0,writable:!0,value:Qt}):vt[jt]=Qt,$r=(vt,jt)=>{for(var Qt in jt||(jt={}))Sr.call(jt,Qt)&&jr(vt,Qt,jt[Qt]);if(fr)for(var Qt of fr(jt))br.call(jt,Qt)&&jr(vt,Qt,jt[Qt]);return vt},hr=(vt,jt)=>Qn(vt,ar(jt)),Mr=(vt,jt)=>{var Qt={};for(var gn in vt)Sr.call(vt,gn)&&jt.indexOf(gn)<0&&(Qt[gn]=vt[gn]);if(vt!=null&&fr)for(var gn of fr(vt))jt.indexOf(gn)<0&&br.call(vt,gn)&&(Qt[gn]=vt[gn]);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:vt,onChange:jt,choiceTextKey:Qt,answerKey:gn,index:yo,isEdit:Vr,setInputActive:fo,form:Pr,choiceOptionsPath:Kr,allowChangeMode:Zo,showAddIcon:ho,addItem:oi,deleteItem:pi})=>{const Qo=(vt==null?void 0:vt[gn])===!0,gr=()=>{const bo=Pr.getFieldValue(Kr);Pr.setFieldValue(Kr,bo.map(Io=>hr($r({},Io),{[gn]:!1})))},io=()=>{Qo?jt(hr($r({},vt),{[gn]:!1})):(Zo||gr(),jt(hr($r({},vt),{[gn]:!0})))};return ir.createElement(tt.Z,{className:Ue.choiceWrap,align:"middle",wrap:!1},ir.createElement(He.Z,{onClick:io,className:`${Ue.choiceIndex} ${Qo?Ue.activeAnswer:""}`},eo[yo]),ir.createElement(He.Z,{flex:1,className:`${Ue.editorWrap} ml15`,onClick:fo},ir.createElement(rr,{height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",isEdit:Vr,value:vt==null?void 0:vt[Qt],onChange:bo=>{jt(hr($r({},vt),{[Qt]:bo}))}})),ir.createElement(He.Z,{flex:"0 0 auto",className:"ml15"},ir.createElement("div",{onClick:io,className:`${Ue.setAnswerBtn} ${Qo?Ue.activeAnswer:""}`},Qo?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")),ir.createElement(He.Z,{className:Ue.actionWrapper},ir.createElement(je.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},ir.createElement(Nt.Z,{className:Ue.addIcon,onClick:oi,style:{visibility:ho?"visible":"hidden"}})),ir.createElement(je.Z,{title:"\u5220\u9664"},ir.createElement(Jt.Z,{className:Ue.deleteIcon,onClick:pi,style:{visibility:yo>1?"visible":"hidden"}}))))},Fr=({questionTitlePlaceholder:vt,titleKey:jt,choiceKey:Qt,analysisKey:gn,choiceTextKey:yo,answerKey:Vr,choiceOptionsPath:fo,allowChangeMode:Pr=!0,form:Kr,showAnalysis:Zo=!0})=>{const[ho,oi]=(0,y.useState)(),[pi,Qo]=(0,y.useState)(!1);return ir.createElement("div",{className:Ue.wrap},ir.createElement("div",{className:Ue.questionTitleEditorWrap},ir.createElement(ce.default.Item,{label:"\u9898\u5E72",name:jt,labelCol:{span:24},rules:[{required:!0}]},ir.createElement(qn,{scrollId:Array.isArray(jt)?jt.join("_"):`${jt}`,watch:!0,height:140,placeholder:vt}))),ir.createElement(ce.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}}),ir.createElement(ce.default.List,{name:Qt,rules:[{validator(gr,io){const bo=io.some(zr=>zr[Vr]),Io=io.findIndex(zr=>{var Go;return((Go=zr[yo])==null?void 0:Go.length)<=0});return Io!==-1?Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${eo[Io]}\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((Io,zr)=>{var Go=Io,{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(ce.default.Item,hr($r({},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:`${Ue.addBtn} mb30`,onClick:()=>io({[yo]:"",[Vr]:0})},"\u6DFB\u52A0\u9009\u9879"))),Zo&&ir.createElement("div",{onClick:()=>Qo(!0)},ir.createElement(ce.default.Item,{name:gn,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},ir.createElement(rr,{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=(vt,jt,Qt)=>jt in vt?Ur(vt,jt,{enumerable:!0,configurable:!0,writable:!0,value:Qt}):vt[jt]=Qt,xo=(vt,jt)=>{for(var Qt in jt||(jt={}))so.call(jt,Qt)&&ti(vt,Qt,jt[Qt]);if(Cr)for(var Qt of Cr(jt))Ho.call(jt,Qt)&&ti(vt,Qt,jt[Qt]);return vt},No=(vt,jt)=>Rr(vt,Br(jt)),To=(vt,jt)=>{var Qt={};for(var gn in vt)so.call(vt,gn)&&jt.indexOf(gn)<0&&(Qt[gn]=vt[gn]);if(vt!=null&&Cr)for(var gn of Cr(vt))jt.indexOf(gn)<0&&Ho.call(vt,gn)&&(Qt[gn]=vt[gn]);return Qt};const Xo=({value:vt,onChange:jt,position:Qt,removeBlank:gn})=>{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:Ue.modal,onOk:()=>{const Pr=[...vt];Pr.splice(fo,1),Pr.length===0?gn(Qt-1):jt(Pr)}})},Vr=()=>{const fo=[...vt];fo.push(""),jt(fo)};return or.createElement(tt.Z,{className:"ml20"},or.createElement(He.Z,{flex:1},vt==null?void 0:vt.map((fo,Pr)=>or.createElement(tt.Z,{key:`${fo}_${Pr}`,className:"mb20"},or.createElement(pe.default.TextArea,{style:{flex:1,minHeight:44},defaultValue:fo,autoSize:{maxRows:3},maxLength:1e3,onBlur:Kr=>{const Zo=[...vt],ho=Kr.target.value.trim();Zo[Pr]=ho,jt(Zo)}}),or.createElement(je.Z,{title:"\u5220\u9664"},or.createElement(Jt.Z,{className:Ue.deleteIcon,style:{marginLeft:15,visibility:Qt===1&&Pr===0?"hidden":"visible"},onClick:()=>yo(Pr)})),or.createElement(je.Z,{title:"\u65B0\u589E\u7B54\u6848"},or.createElement(Nt.Z,{style:{color:"#2A5DD8",fontSize:16,marginLeft:15,visibility:Pr===0?"visible":"hidden"},onClick:()=>{Vr()}}))))))},ko=({value:vt=!0,onChange:jt})=>or.createElement(Vt.Z,{checked:!vt,onChange:Qt=>{jt(!Qt)}}),go="\u2581",dr=({questionTitlePlaceholder:vt,form:jt,name:Qt,scoreByBlank:gn="use_blank_score",answerKey:yo,titleKey:Vr="name",analysisKey:fo="analysis",isOrdered:Pr="is_ordered"})=>{var Kr,Zo;const[ho,oi]=(0,y.useState)(!1),pi=()=>{const zr=jt.getFieldValue(["sub_item_banks",...yo]);jt.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()},Io=(Zo=(Kr=jt.getFieldValue("sub_item_banks"))==null?void 0:Kr[yo==null?void 0:yo[0]])==null?void 0:Zo[yo==null?void 0:yo[1]];return or.createElement("div",{className:Ue.wrap},or.createElement("div",{className:Ue.questionTitleEditorWrap},or.createElement(ce.default.Item,{label:"\u9898\u5E72",name:Vr,labelCol:{span:24},rules:[{required:!0}]},or.createElement(qn,{scrollId:"name",watch:!0,height:140,placeholder:vt,showNullButton:!0,onAddBlank:()=>{const zr=jt.getFieldValue(["sub_item_banks",...yo]);gr(1,zr==null?void 0:zr.length)}}))),or.createElement(ce.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(ce.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(He.Z,{flex:"0 0 auto",className:`${Ue.blankIndex} pt5`},"\u586B\u7A7A\u9879",Nr+1),or.createElement(He.Z,{flex:1},or.createElement(tt.Z,{align:"top",justify:"space-between",wrap:!1},or.createElement(He.Z,{flex:1},or.createElement(ce.default.Item,No(xo({},Ji),{name:[pa,"answer_text"],noStyle:!0}),or.createElement(Xo,{removeBlank:bo,position:Nr+1}))),(jt==null?void 0:jt.getFieldValue(["sub_item_banks",...gn]))&&or.createElement(He.Z,{flex:"224px",style:{margin:"-2px 0px 0px 20px"}},or.createElement(ce.default.Item,No(xo({},Ji),{name:[pa,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:Ue.blankInputNumberWrapper}),or.createElement(ye.Z,{className:Ue.blankInput,min:.1,max:100,style:{width:"100%"},placeholder:"\u6309\u7A7A\u7ED9\u5206\u8BF7\u8F93\u5165\u5206\u503C"})))),or.createElement(ce.default.Item,No(xo({},Ji),{name:[pa,"position"],noStyle:!0}),or.createElement(pe.default,{type:"hidden"}))))})))),or.createElement(ve.ZP,{className:"mb20",onClick:()=>gr(1,Io==null?void 0:Io.length),type:"primary",shape:"round"},"\u65B0\u589E\u586B\u7A7A\u9879"),or.createElement(tt.Z,{align:"middle"},or.createElement(ce.default.Item,{name:[Qt,"downcase"],valuePropName:"checked"},or.createElement(Vt.Z,null)),or.createElement(He.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(ce.default.Item,{name:[Qt,"no_space"],valuePropName:"checked"},or.createElement(Vt.Z,null)),or.createElement(He.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),(Io==null?void 0:Io.length)>1&&or.createElement(tt.Z,{align:"middle",className:(Io==null?void 0:Io.length)>1?"mb30":`${Ue.hide}`},or.createElement(ce.default.Item,{name:Pr},or.createElement(ko,null)),or.createElement(He.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(ce.default.Item,{name:fo,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},or.createElement(rr,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:ho}))))};var Mn=Object.defineProperty,Un=Object.defineProperties,Yn=Object.getOwnPropertyDescriptors,kn=Object.getOwnPropertySymbols,mr=Object.prototype.hasOwnProperty,wr=Object.prototype.propertyIsEnumerable,Vn=(vt,jt,Qt)=>jt in vt?Mn(vt,jt,{enumerable:!0,configurable:!0,writable:!0,value:Qt}):vt[jt]=Qt,Jn=(vt,jt)=>{for(var Qt in jt||(jt={}))mr.call(jt,Qt)&&Vn(vt,Qt,jt[Qt]);if(kn)for(var Qt of kn(jt))wr.call(jt,Qt)&&Vn(vt,Qt,jt[Qt]);return vt},ur=(vt,jt)=>Un(vt,Yn(jt)),pr=(vt,jt)=>{var Qt={};for(var gn in vt)mr.call(vt,gn)&&jt.indexOf(gn)<0&&(Qt[gn]=vt[gn]);if(vt!=null&&kn)for(var gn of kn(vt))jt.indexOf(gn)<0&&wr.call(vt,gn)&&(Qt[gn]=vt[gn]);return Qt};const Zr={\u6B63\u786E:"T",\u9519\u8BEF:"F"},Yr=({value:vt,onChange:jt,form:Qt,choiceKey:gn})=>{const yo=(vt==null?void 0:vt.is_answer)===!0,Vr=vt==null?void 0:vt.choice_text,fo=()=>{var Pr;const Kr=(Pr=Qt==null?void 0:Qt.getFieldValue(["sub_item_banks",...gn]))==null?void 0:Pr.map(Zo=>({choice_text:Zo==null?void 0:Zo.choice_text,is_answer:!1}));Qt==null||Qt.setFieldValue(["sub_item_banks",...gn],Kr),jt(ur(Jn({},vt),{is_answer:!0}))};return y.createElement(tt.Z,{className:Ue.choiceWrap,align:"middle",wrap:!1},y.createElement(He.Z,{onClick:fo,className:`${Ue.choiceIndex} ${Ue.judgementIndex} ${yo?Ue.activeAnswer:""}`},Zr[Vr]),y.createElement(He.Z,{flex:1,className:`${Ue.editorWrap} ml15`},y.createElement("div",{className:`${Ue.inputBorder} ${Ue.placeholder} ${yo?Ue.activeJudgementAnswer:""}`},Vr)),y.createElement(He.Z,{flex:"0 0 auto",className:"ml15"},y.createElement("div",{onClick:fo,className:`${Ue.setAnswerBtn} ${yo?Ue.activeAnswer:""}`},yo?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")))},to=({questionTitlePlaceholder:vt,choiceKey:jt="choices",form:Qt,titleKey:gn="name",analysisKey:yo="analysis"})=>{const[Vr,fo]=(0,y.useState)(!1);return y.createElement("div",{className:Ue.wrap},y.createElement("div",{className:Ue.questionTitleEditorWrap},y.createElement(ce.default.Item,{label:"\u9898\u5E72",name:gn,labelCol:{span:24},rules:[{required:!0}]},y.createElement(qn,{scrollId:"name",watch:!0,height:140,placeholder:vt}))),y.createElement(ce.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}},y.createElement(ce.default.List,{name:jt,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 Zo=Kr,{key:ho,name:oi}=Zo,pi=pr(Zo,["key","name"]);return y.createElement(ce.default.Item,ur(Jn({},pi),{key:ho,name:oi,noStyle:!0}),y.createElement(Yr,{form:Qt,choiceKey:jt}))})))),y.createElement("div",{onClick:()=>fo(!0)},y.createElement(ce.default.Item,{name:yo,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},y.createElement(rr,{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=(vt,jt,Qt)=>jt in vt?Fo(vt,jt,{enumerable:!0,configurable:!0,writable:!0,value:Qt}):vt[jt]=Qt,_i=(vt,jt)=>{for(var Qt in jt||(jt={}))ni.call(jt,Qt)&&Mi(vt,Qt,jt[Qt]);if(Jo)for(var Qt of Jo(jt))ri.call(jt,Qt)&&Mi(vt,Qt,jt[Qt]);return vt},Xi=(vt,jt)=>Mo(vt,Yo(jt)),Yi=(vt,jt)=>{var Qt={};for(var gn in vt)ni.call(vt,gn)&&jt.indexOf(gn)<0&&(Qt[gn]=vt[gn]);if(vt!=null&&Jo)for(var gn of Jo(vt))jt.indexOf(gn)<0&&ri.call(vt,gn)&&(Qt[gn]=vt[gn]);return Qt};const ta=vt=>{var jt=vt,{value:Qt,onChange:gn}=jt,yo=Yi(jt,["value","onChange"]);const Vr=fo=>{gn([fo])};return y.createElement(Gt.Z,Xi(_i({},yo),{defaultValue:Qt==null?void 0:Qt[0],onChange:Vr}))},Lo=vt=>{if(!vt)return!1;let jt=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 vt==="|"?(Ae.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},co=({value:vt=[],onClose:jt})=>y.createElement(an.default,{closable:!0,onClose:jt,className:Ue.keywordTag},vt==null?void 0:vt.join(" \u6216 ")),wi=({questionTitlePlaceholder:vt,form:jt,showKeywords:Qt,isMustKeyWords:gn=Qt,titleKey:yo="name",analysisKey:Vr="analysis",answerTexts:fo="answer_texts",keywords:Pr="keywords",useKeywords:Kr="use_keywords",indexs:Zo})=>{const[ho,oi]=(0,y.useState)(!1),[pi,Qo]=(0,y.useState)(""),gr=ce.default.useWatch("sub_item_banks",jt),{use_keywords:io,score:bo}=(gr==null?void 0:gr[Zo])||{};return console.log(io,bo,"itemValues"),y.createElement("div",{className:Ue.wrap},y.createElement("div",{className:Ue.questionTitleEditorWrap},y.createElement(ce.default.Item,{label:"\u9898\u5E72",name:yo,labelCol:{span:24},rules:[{required:!0}]},y.createElement(qn,{scrollId:"name",watch:!0,height:140,placeholder:vt}))),y.createElement(ce.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&&!gn&&y.createElement(ce.default.Item,{hidden:!0,name:Kr,valuePropName:"checked"},y.createElement(Vt.Z,{defaultChecked:!0})),Qt&&gn&&y.createElement(tt.Z,{align:"middle",className:"mb30"},y.createElement(ce.default.Item,{name:Kr,valuePropName:"checked"},y.createElement(Vt.Z,null)),y.createElement(He.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),y.createElement(He.Z,null,y.createElement(je.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(cn.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),(io||!gn)&&y.createElement(ce.default.List,{name:Pr,rules:[{validator(Io,zr){return gn?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()}}]},(Io,{add:zr,remove:Go})=>y.createElement(y.Fragment,null,y.createElement("div",{className:`${Ue.title} mb10`},gn?"\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(He.Z,{flex:1},y.createElement(pe.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=jt.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)){Ae.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:Ue.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(He.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),Io.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(He.Z,{flex:1},y.createElement(tt.Z,{align:"middle",justify:"space-between"},y.createElement(ce.default.Item,Xi(_i({},no),{name:[Nr,"keyword"]}),y.createElement(co,{onClose:()=>Go(Nr)})),gn&&y.createElement(ce.default.Item,Xi(_i({},no),{name:[Nr,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:Ue.blankInputNumberWrapper}),y.createElement(ye.Z,{className:Ue.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(ce.default.Item,{name:Vr,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},y.createElement(rr,{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=(vt,jt,Qt)=>jt in vt?aa(vt,jt,{enumerable:!0,configurable:!0,writable:!0,value:Qt}):vt[jt]=Qt,ol=(vt,jt)=>{for(var Qt in jt||(jt={}))fa.call(jt,Qt)&&ka(vt,Qt,jt[Qt]);if(da)for(var Qt of da(jt))Ti.call(jt,Qt)&&ka(vt,Qt,jt[Qt]);return vt},Ja=(vt,jt)=>Qa(vt,Ha(jt)),la=(vt,jt)=>{var Qt={};for(var gn in vt)fa.call(vt,gn)&&jt.indexOf(gn)<0&&(Qt[gn]=vt[gn]);if(vt!=null&&da)for(var gn of da(vt))jt.indexOf(gn)<0&&Ti.call(vt,gn)&&(Qt[gn]=vt[gn]);return Qt},Pl=(vt,jt,Qt)=>new Promise((gn,yo)=>{var Vr=Kr=>{try{Pr(Qt.next(Kr))}catch(Zo){yo(Zo)}},fo=Kr=>{try{Pr(Qt.throw(Kr))}catch(Zo){yo(Zo)}},Pr=Kr=>Kr.done?gn(Kr.value):Promise.resolve(Kr.value).then(Vr,fo);Pr((Qt=Qt.apply(vt,jt)).next())});const{Panel:El}=Bt.default,$o=null,ai=(vt,jt)=>{var Qt=vt,{globalSetting:gn,loading:yo,dispatch:Vr,editData:fo,onRef:Pr=()=>{},isEdit:Kr}=Qt,Zo=la(Qt,["globalSetting","loading","dispatch","editData","onRef","isEdit"]);const[ho,oi]=(0,y.useState)(""),[pi,Qo]=(0,y.useState)([]),[gr]=ce.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"))},[ce.default.useWatch("sub_item_banks",gr)]),(0,y.useImperativeHandle)(jt,()=>({onSave:io,Clear:bo}));const io=()=>Pl(void 0,null,function*(){if(!ho)return Ae.ZP.info("\u8BF7\u60A8\u8F93\u5165\u9898\u5E72"),!1;try{yield gr.validateFields()}catch(Co){return console.log(Co,"errInfo"),Ae.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([])},Io={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:st.wrap},wo.createElement("p",{className:st.titleWrap},wo.createElement("span",{className:st.required},"*"),wo.createElement("span",{className:st.title},"\u9898\u5E72\uFF1A")),wo.createElement(Gt.Z,{id:"combination-question-title",watch:!0,height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9898\u5E72",defaultValue:ho,onChange:ao=>oi(ao)}),wo.createElement(ce.default,{form:gr,autoComplete:"off"},wo.createElement(ce.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(Bt.default,{className:ao.length>0?st.collapseWrapper:"",bordered:!1,expandIcon:({isActive:bi})=>wo.createElement("i",{className:`iconfont icon-weizhankai ${bi?st.open:st.close}`,style:{fontSize:14,transition:"all .2s"}})},ao.map((bi,pa)=>{var Ji=bi,{key:hl,name:zo}=Ji,ja=la(Ji,["key","name"]),Ia,cr,Ci,Di,Ei,wa,Ql,Jl,ss,Il,Rl,Cs;return wo.createElement(El,{className:st.panel,forceRender:!0,header:wo.createElement("div",{className:st.panelHeader},"\u7B2C",pa+1,"\u5C0F\u9898",wo.createElement("span",null,"\uFF08",Io[(Ia=no==null?void 0:no[zo])==null?void 0:Ia.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(ce.default.Item,Ja(ol({},ja),{name:[zo,"score"],className:st.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(it.ZP.Group,{defaultValue:(wa=no==null?void 0:no[zo])==null?void 0:wa.use_blank_score,className:st.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(je.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(ce.default.Item,Ja(ol({},ja),{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"}),((Il=no==null?void 0:no[zo])==null?void 0:Il.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,gt.connect)(({loading:vt,globalSetting:jt})=>({globalSetting:jt,loading:vt.effects}),null,null,{forwardRef:!0})((0,y.forwardRef)(ai)),Bo=z(96935),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(82636),sa=z(63952),cl=z(33270),xl=z(61527),Ka=z(2524),Sl=z(90463),dl=({open:vt,onCancel:jt,onOk:Qt})=>{const gn=(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,Zo]=(0,y.useState)(!1);(0,y.useEffect)(()=>{vt&&fo({page:1,limit:10,type:0},!0).then(gr=>{(gr==null?void 0:gr.shixuns_count)===0&&Zo(!0)})},[vt]);const[ho,oi]=(0,y.useState)([]),[pi,Qo]=(0,y.useState)([]);return y.createElement(me.default,{title:"\u9009\u62E9\u5B9E\u8BAD\u9898",open:vt,width:948,centered:!0,closable:!0,onCancel:jt,onOk:()=>Qt(pi),destroyOnClose:!0},y.createElement(tt.Z,{justify:"space-between",className:"mb20",style:{maxHeight:650}},y.createElement(He.Z,null,y.createElement(qo.Z,{style:{width:160},size:"large",placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",options:gn,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,ot.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($e.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(je.Z,{title:"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528"},y.createElement(cn.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:Io,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($e.Z,{value:bo,style:{marginBottom:18}}),y.createElement("div",{className:zi.challengeNameWrapper},Io.map((Co,Nr)=>y.createElement("div",{className:zi.challengeName,key:Nr},"\u7B2C",(0,ot.EM)(Nr+1),"\u9898\xA0",Co))),y.createElement(tt.Z,{className:zi.shixunPreviewFooter,justify:"space-between",style:{alignItems:"center"}},y.createElement(He.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(ve.ZP,{type:"primary",className:zi.btnToDetail,onClick:()=>(0,ot.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,Io,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:(Io=ao.challenge_names)==null?void 0:Io.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(83028),Fs=z(60979),Gl=(vt,jt,Qt)=>new Promise((gn,yo)=>{var Vr=Kr=>{try{Pr(Qt.next(Kr))}catch(Zo){yo(Zo)}},fo=Kr=>{try{Pr(Qt.throw(Kr))}catch(Zo){yo(Zo)}},Pr=Kr=>Kr.done?gn(Kr.value):Promise.resolve(Kr.value).then(Vr,fo);Pr((Qt=Qt.apply(vt,jt)).next())}),Ll=({visible:vt,getdata:jt,onCancel:Qt,onRandomExchange:gn,selectFromProblemSet:yo,questionParams:Vr})=>{const[fo,Pr]=(0,y.useState)(!1),[Kr,Zo]=(0,y.useState)(!1),[ho,oi]=(0,y.useState)({}),pi=(0,gt.useParams)(),[Qo,gr]=(0,y.useState)(),io=(bo,Io)=>Gl(void 0,null,function*(){Zo(!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:Io!=1,is_use:Io!=1}]}});Zo(!1),zr!=null&&zr.status||(Ae.ZP.info("\u6362\u9898\u6210\u529F"),Qt(),jt())});return y.createElement(me.default,{title:"\u8BF7\u9009\u62E9\u66FF\u6362\u65B9\u5F0F",open:vt,onCancel:Qt,centered:!0,maskClosable:!0,footer:null},y.createElement(tt.Z,{justify:"center",className:"pb20"},y.createElement(Bo.Z,{onClick:gn},"\u968F\u673A\u66F4\u6362"),(Vr==null?void 0:Vr.type)!=="PRACTICAL"&&y.createElement(ve.ZP,{style:{marginLeft:24},onClick:yo},"\u4ECE\u9898\u5E93\u4E2D\u9009\u62E9"),(Vr==null?void 0:Vr.type)==="PRACTICAL"&&y.createElement(ve.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){Ae.ZP.info("\u8BF7\u9009\u62E9\u5B9E\u8BAD");return}let Io=bo==null?void 0:bo.map(Go=>Go==null?void 0:Go.id),zr=yield(0,Fs.Tr)({id:[...Io],course_id:pi.coursesId,type:"shixun"});(zr==null?void 0:zr.student_count)===0?io(Io==null?void 0:Io[0],1):(gr(Io),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(98408),is=z(24334),Xl=z(88436),bs=z(25965),Ol=z(2337),Ls=z(41867),as=Object.defineProperty,wl=Object.defineProperties,Hl=Object.getOwnPropertyDescriptors,Wl=Object.getOwnPropertySymbols,ls=Object.prototype.hasOwnProperty,Kl=Object.prototype.propertyIsEnumerable,Yl=(vt,jt,Qt)=>jt in vt?as(vt,jt,{enumerable:!0,configurable:!0,writable:!0,value:Qt}):vt[jt]=Qt,qa=(vt,jt)=>{for(var Qt in jt||(jt={}))ls.call(jt,Qt)&&Yl(vt,Qt,jt[Qt]);if(Wl)for(var Qt of Wl(jt))Kl.call(jt,Qt)&&Yl(vt,Qt,jt[Qt]);return vt},el=(vt,jt)=>wl(vt,Hl(jt)),ji=(vt,jt,Qt)=>new Promise((gn,yo)=>{var Vr=Kr=>{try{Pr(Qt.next(Kr))}catch(Zo){yo(Zo)}},fo=Kr=>{try{Pr(Qt.throw(Kr))}catch(Zo){yo(Zo)}},Pr=Kr=>Kr.done?gn(Kr.value):Promise.resolve(Kr.value).then(Vr,fo);Pr((Qt=Qt.apply(vt,jt)).next())});const yi=({data:vt,submit:jt,goBack:Qt,loading:gn,onTypeScore:yo,editPreview:Vr=!1,onSkipExamination:fo,selectValue:Pr,onExchange:Kr,getdata:Zo,handleMarkWrongQuestion:ho,dispatch:oi})=>{var pi,Qo,gr,io,bo,Io,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),ja=(0,y.useRef)(),[Ia]=ce.default.useForm(),cr=(0,gt.useParams)(),[Ci,Di]=(0,y.useState)(!1),[Ei,wa]=(0,y.useState)([]);(0,y.useEffect)(()=>{Ji(!0)},[]),(0,y.useEffect)(()=>{Vr||(0,ot.Dk)("\u8BD5\u5377\u9884\u89C8")},[Vr]),(0,y.useEffect)(()=>{var xn;((xn=vt==null?void 0:vt.questionList)==null?void 0:xn.length)>0&&(vt==null||vt.questionList.forEach(Ar=>{var Wo;Ar.type==="PRACTICAL"&&((Wo=Ar==null?void 0:Ar.questions)==null||Wo.forEach((Lr,Xn)=>{var _o;Ei[Xn]=!((_o=Lr==null?void 0:Lr.shixun)!=null&&_o.ignore_prompt),wa([...Ei])}))}))},[vt]);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"},Il=xn=>{var Ar;const Wo=[];return y.createElement(y.Fragment,null,y.createElement("aside",{className:he.single},(Ar=xn==null?void 0:xn.choices)==null?void 0:Ar.map((Lr,Xn)=>(Lr.is_answer&&Wo.push(Ol.k4[Xn]),y.createElement("ul",{key:Xn},y.createElement("li",null,Ol.k4[Xn],"\u3001"),y.createElement("li",null,y.createElement($e.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[xn.difficulty])),y.createElement("aside",null,y.createElement("span",{className:he.text},"\u89E3\u6790:"),y.createElement($e.Z,{value:xn.analysis?xn.analysis:"\u6682\u65E0\u89E3\u6790"})),y.createElement("ul",null,y.createElement("li",null,y.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u8BFE\u7A0B:"),`${(xn==null?void 0:xn.course_discipline_name)||"--"}`),y.createElement(je.Z,{title:xn==null?void 0:xn.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:"),xn==null?void 0:xn.tag_discipline_name)))))},Rl=(xn,Ar)=>{var Wo;const Lr=(Wo=xn==null?void 0:xn.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($e.Z,{value:xn.analysis?xn.analysis:"\u6682\u65E0\u89E3\u6790"})),y.createElement("ul",null,y.createElement("li",null,y.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u8BFE\u7A0B:"),`${(Ar==null?void 0:Ar.course_discipline_name)||"--"}`),y.createElement(je.Z,{title:Ar?Ar==null?void 0:Ar.tag_discipline_name:xn==null?void 0:xn.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:"),Ar?Ar==null?void 0:Ar.tag_discipline_name:xn==null?void 0:xn.tag_discipline_name)))))},Cs=xn=>{var Ar;const Wo=(Ar=xn==null?void 0:xn.standard_answer)==null?void 0:Ar.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($e.Z,{value:xn.analysis?xn.analysis:"\u6682\u65E0\u89E3\u6790"})),y.createElement("ul",null,y.createElement("li",null,y.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u8BFE\u7A0B:"),`${(xn==null?void 0:xn.course_discipline_name)||"--"}`),y.createElement(je.Z,{title:xn==null?void 0:xn.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:"),xn==null?void 0:xn.tag_discipline_name)))))},Nl=(xn,Ar)=>{var Wo;return y.createElement("div",{className:he.analysis},y.createElement("div",null,"\u6B63\u786E\u7B54\u6848\uFF1A",(Wo=xn==null?void 0:xn.answer_texts)==null?void 0:Wo[0]),y.createElement("aside",null,y.createElement("span",{className:he.text},"\u89E3\u6790:"),y.createElement($e.Z,{value:xn.analysis?xn.analysis:"\u6682\u65E0\u89E3\u6790"})),y.createElement("ul",null,y.createElement("li",null,y.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u8BFE\u7A0B:"),`${(Ar==null?void 0:Ar.course_discipline_name)||"--"}`),y.createElement(je.Z,{title:Ar?Ar==null?void 0:Ar.tag_discipline_name:xn==null?void 0:xn.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:"),Ar?Ar==null?void 0:Ar.tag_discipline_name:xn==null?void 0:xn.tag_discipline_name))))},us=xn=>{var Ar,Wo;return y.createElement("div",{className:he.analysis},y.createElement("aside",null,y.createElement("span",{className:he.text},"\u9884\u671F\u8F93\u51FA:"),y.createElement($e.Z,{value:(Ar=xn==null?void 0:xn.program_attr)==null?void 0:Ar.description})),y.createElement("div",{style:{marginTop:20}},"\u6B63\u786E\u7B54\u6848\uFF1A",((Wo=xn==null?void 0:xn.program_attr)==null?void 0:Wo.answer_text)||"--"),y.createElement("aside",null,y.createElement("span",{className:he.text},"\u89E3\u6790:"),y.createElement($e.Z,{value:xn.analysis?xn.analysis:"\u6682\u65E0\u89E3\u6790"})),y.createElement("ul",null,y.createElement("li",null,y.createElement("span",{style:{color:"#007AFF",marginRight:10}},"\u8BFE\u7A0B:"),`${(xn==null?void 0:xn.course_discipline_name)||"--"}`),y.createElement(je.Z,{title:xn==null?void 0:xn.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:"),xn==null?void 0:xn.tag_discipline_name))))},Es=(xn,Ar)=>{var Wo;return y.createElement("div",null,(Wo=xn==null?void 0:xn.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"}},Ar+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(Ol.k4[va]),y.createElement("ul",{key:va},y.createElement("li",null,Ol.k4[va],"\u3001"),y.createElement("li",null,y.createElement($e.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($e.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:"),`${(xn==null?void 0:xn.course_discipline_name)||"--"}`),y.createElement(je.Z,{title:xn==null?void 0:xn.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:"),xn==null?void 0:xn.tag_discipline_name))))),(Lr.item_type=="COMPLETION"||Lr.item_type=="completion")&&Rl(Lr,xn),(Lr.item_type=="SUBJECTIVE"||Lr.item_type=="subjective")&&Nl(Lr,xn),((Vo=vt==null?void 0:vt.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(ve.ZP,{style:{color:"#3061D0"},onClick:()=>{Zl({value:Lr})}},"\u589E\u8BBE\u6B63\u786E\u7B54\u6848")))}))},Rs=xn=>{var Ar,Wo,Lr;return y.createElement("div",{style:{marginTop:"12px"}},(Wo=(Ar=xn==null?void 0:xn.shixun)==null?void 0:Ar.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(je.Z,{key:_o,title:Xn==null?void 0:Xn.challenge_name},y.createElement("span",null,(0,ot.Pq)(Xn==null?void 0:Xn.challenge_name,44)))),Vr&&y.createElement("div",null,"\u5206\u503C\uFF1A",Xn.score,"\u5206"))),y.createElement(gt.Link,{style:{float:"right"},target:"_blank",to:`/shixuns/${(Lr=xn==null?void 0:xn.shixun)==null?void 0:Lr.identifier}/challenges`},"\u5B9E\u8BAD\u8BE6\u60C5"),y.createElement("div",{style:{clear:"both"}}))},ql=xn=>{let Ar=xn.questions_score/xn.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,xn==null?void 0:xn.name,"\uFF1A"),y.createElement(ye.Z,{min:0,precision:1,defaultValue:Ar,onChange:Wo=>{Ar=Wo}}),y.createElement("span",{className:"ml5"},"\u5206/\u9898"))),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>ji(void 0,null,function*(){var Wo;if(!Ar)return Ae.ZP.warning("\u5206\u6570\u4E0D\u80FD\u4E3A\u7A7A\u6216\u4E3A0"),Promise.reject();const Lr={type:xn==null?void 0:xn.type,score:Ar,scoreTotal:Number((Wo=Ar*xn.questions_count)==null?void 0:Wo.toFixed(1))};yo(Lr)})})},cs=()=>{let xn="";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(pe.default,{placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u540D\u79F0",min:0,maxLength:60,defaultValue:xn,onChange:Ar=>{xn=Ar.target.value}}))),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>ji(void 0,null,function*(){var Ar;if(!xn)return Ae.ZP.warning("\u8BD5\u5377\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"),Promise.reject();const Wo=[],Lr=[],Xn=[],_o=[];(Ar=vt==null?void 0:vt.questionList)==null||Ar.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 jt({item_bank_ids:Wo,item_bank_scores:Lr,name:xn,combination_item_banks:Xn,shixun_ids:_o})})})},es=(xn,Ar,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"))ja.current={id:xn,ids:Vo,type:Ar,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:()=>ji(void 0,null,function*(){ki.update({cancelButtonProps:{disabled:!0}}),yield Kr({single_question_id:xn,seleted_item_bank_ids:Vo},{type:Ar,index:Wo}),ki.update({cancelButtonProps:{disabled:!1}}),Ae.ZP.success("\u5DF2\u91CD\u65B0\u968F\u673A\u751F\u6210\u8BD5\u9898")})})}},ds=xn=>{var Ar;const Wo=(Ar=xn.questions)==null?void 0:Ar.map(_o=>_o==null?void 0:_o.id),Lr=xn.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:()=>ji(void 0,null,function*(){Xn.update({cancelButtonProps:{disabled:!0}}),yield Kr({seleted_item_bank_ids:Wo},{type:xn.type}),Xn.update({cancelButtonProps:{disabled:!1}}),Ae.ZP.success(`\u5DF2\u91CD\u65B0\u968F\u673A\u751F\u6210${Lr}\u8BD5\u9898`)})})},fs=()=>{let xn=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:()=>ji(void 0,null,function*(){xn.update({cancelButtonProps:{disabled:!0}}),yield Kr(),xn.update({cancelButtonProps:{disabled:!1}}),Ae.ZP.success("\u5DF2\u91CD\u65B0\u968F\u673A\u751F\u6210\u6574\u5F20\u8BD5\u9898")})})},hs=xn=>{console.log(xn,"key"),fo(xn-1)},Qs=(xn,Ar)=>{var Wo,Lr;if(Ar==="SINGLE")return y.createElement(y.Fragment,null,y.createElement(Wt,{ref:Nr,editData:xn,isEdit:!0}),y.createElement(le.Z,null));if(Ar==="MULTIPLE")return y.createElement(y.Fragment,null,y.createElement(Ut,{ref:Nr,editData:xn,isEdit:!0}),y.createElement(le.Z,null));if(Ar==="JUDGMENT")return y.createElement(y.Fragment,null,y.createElement(un,{ref:Nr,editData:xn,isEdit:!0}),y.createElement(le.Z,null));if(Ar==="COMPLETION")return y.createElement(y.Fragment,null,y.createElement(We,{ref:Nr,editData:xn,isEdit:!0}),y.createElement(le.Z,null));if(Ar==="SUBJECTIVE")return y.createElement(y.Fragment,null,y.createElement(Je,{ref:Nr,editData:xn,isEdit:!0}),y.createElement(le.Z,null));if(Ar==="COMBINATION")return y.createElement(y.Fragment,null,y.createElement(Ro,{ref:Nr,editData:xn,isEdit:!0}),y.createElement(le.Z,null));if(Ar==="BPROGRAM")return y.createElement(y.Fragment,null,y.createElement(ce.default,{form:Ia,style:{marginTop:20},onFinishFailed:Xn=>{var _o,Vo;Xn.errorFields[0].name.includes("standard_answers")?Ae.ZP.error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"):Ae.ZP.error(Xn.errorFields[0].errors[0]),Ia.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=>ji(void 0,null,function*(){var _o;let Vo=el(qa({question_score:xn.score},Xn),{question_type:8,hack:el(qa({},Xn.hack),{difficult:xn.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/${xn.id}.json`,{method:"put",body:Vo});(ki==null?void 0:ki.status)===0&&(Ae.ZP.success("\u7F16\u8F91\u6210\u529F"),hs(Pr+1)),bi(null)})},y.createElement(fl.tc,{form:Ia,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9898\u5E72\u5E76\u8BBE\u7F6E\u586B\u7A7A\u9879",scoreByBlank:!1,hackidentifier:(Wo=xn==null?void 0:xn.program_attr)==null?void 0:Wo.identifier,answerKey:"standard_answers"}),y.createElement(le.Z,null)));if(Ar==="PROGRAM"&&gt.history.push(`/problems/${(Lr=xn==null?void 0:xn.program_attr)==null?void 0:Lr.identifier}/edit?type=exercises&express_id=${cr.categoryId}&question_id=${xn==null?void 0:xn.id}&score=${xn==null?void 0:xn.score}&callback_url=${location.pathname}&select=${Pr}&exercise=true`),Ar==="PRACTICAL")return y.createElement(y.Fragment,null,y.createElement(Ht,{ref:Nr,editData:xn,isEdit:!0}),y.createElement(le.Z,null))},Zs=(xn,Ar)=>ji(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:Ar.score,analysis:li.analysis};if(xn==="SINGLE"||xn==="MULTIPLE"||xn==="JUDGMENT"){if(xn!=="JUDGMENT"&&va(li==null?void 0:li.choices)){Ae.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=xn==="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(xn==="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 Ae.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 Ae.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(xn==="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),xn==="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 Be=[],ut=[];return(il=po==null?void 0:po.choices)==null||il.forEach((wt,Kt)=>{Be.push(wt.choice_text),wt!=null&&wt.is_answer&&ut.push(Kt+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:Be,standard_answers:ut,analysis:po.analysis,question_score:po==null?void 0:po.score}}else if((po==null?void 0:po.item_type)=="completion"){let Be=(La=po==null?void 0:po.standard_answer)==null?void 0:La.reduce((wt,Kt)=>wt+(Number(Kt==null?void 0:Kt.score)||0),0);if(parseFloat(Be.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 ut=[];return(De=po==null?void 0:po.standard_answer)==null||De.forEach((wt,Kt)=>{ut.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:ut,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){Ae.ZP.warning(po.message);return}delete Ri.analysis}let Bl=!1;(Ar==null?void 0:Ar.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=xn!=="PRACTICAL"?yield(0,Qe.ZP)(`/api/exercise_questions/${Ar.id}.json`,{method:"put",body:Ri}):yield(0,Qe.ZP)(`/api/exercise_questions/${Ar.id}/update_shixun_score.json`,{method:"post",body:qa({},li)});(ms==null?void 0:ms.status)===0&&(Ae.ZP.success("\u7F16\u8F91\u6210\u529F"),hs(Pr+1),bi(null))}),mu=()=>ji(void 0,null,function*(){(0,gt.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),Ae.ZP.success("\u66F4\u65B0\u6210\u529F")),(0,gt.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1}})}),Zl=({value:xn}={})=>{var Ar;const Wo=[];let Lr=[];const Xn=(Ar=xn==null?void 0:xn.choices)==null?void 0:Ar.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($e.Z,{className:"c-black font14",value:`${(li=Ol.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=Ol.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(Re.default.Group,{className:"flex-col mt20",options:Xn,defaultValue:Lr,onChange:Vo=>{Lr=Vo}})),onOk:()=>ji(void 0,null,function*(){const Vo=yield(0,Qe.ZP)(`/api/exercises/${cr.categoryId}/questions/${xn==null?void 0:xn.id}/add_standard_answers.json`,{method:"put",body:{standard_answer:Lr}});(Vo==null?void 0:Vo.status)===0&&(Ae.ZP.success("\u4FEE\u6539\u6210\u529F"),hs(Pr+1))})})},Ml=(pi=vt==null?void 0:vt.questionList)==null?void 0:pi.reduce((xn,Ar)=>xn+Number(Ar.questions_score),0),_s=Vr&&((Qo=vt==null?void 0:vt.exam)==null?void 0:Qo.exercise_status)!==1,pu=xn=>ji(void 0,null,function*(){const Ar=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:xn.id}});(Ar==null?void 0:Ar.status)===0&&(oi({type:"classroomList/setActionTabs",payload:{}}),Ae.ZP.info("\u5B9E\u8BAD\u540C\u6B65\u4E2D\uFF0C\u8BF7\u7A0D\u540E"))}),Js=(xn,Ar)=>ji(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:xn==null?void 0:xn.id}});(Wo==null?void 0:Wo.status)===0&&(Ei[Ar]=!1,wa([...Ei]))});return y.createElement("section",{className:he.wrap},y.createElement("div",{id:"id_left_preview",className:he.left,onMouseEnter:xn=>{const Ar=document.getElementById("id_left_preview");Ar.style.overflowY="auto"},onMouseLeave:xn=>{const Ar=document.getElementById("id_left_preview");Ar.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:lt}),y.createElement("span",null,"\u9898\u6570(\u9053)"),y.createElement("aside",null,vt==null?void 0:vt.all_questions_count)),y.createElement("div",{className:"mr30 ml30"},y.createElement("img",{src:rt}),y.createElement("span",null,"\u603B\u5206(\u5206)"),y.createElement("aside",null,Ml&&Ml.toFixed(1))),y.createElement("div",null,y.createElement("img",{src:Ze}),y.createElement("span",null,"\u65F6\u957F(\u5206)"),y.createElement("aside",null,((gr=vt==null?void 0:vt.exam)==null?void 0:gr.time)===-1||((io=vt==null?void 0:vt.exam)==null?void 0:io.time)===null?"\u4E0D\u9650":(bo=vt==null?void 0:vt.exam)==null?void 0:bo.time))),(Io=vt==null?void 0:vt.questionList)==null?void 0:Io.map((xn,Ar)=>{var Wo;return y.createElement("div",{className:he.list,key:Ar},y.createElement("div",{className:he.name},y.createElement("b",null),y.createElement("span",null,xn.name)),y.createElement("aside",null,y.createElement("div",null,"\u5171",y.createElement("span",{className:he.b},xn.questions_count),"\u9898 ",y.createElement("span",{className:he.l},"|"),"\u5171",y.createElement("span",{className:he.r},xn.questions_score),"\u5206"),y.createElement("div",{className:he.answerSheet},(Wo=xn==null?void 0:xn.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(je.Z,{title:(zr=vt==null?void 0:vt.exam)==null?void 0:zr.name,getPopupContainer:xn=>xn.parentNode},y.createElement("span",{className:he.t},(Go=vt==null?void 0:vt.exam)==null?void 0:Go.name))),Vr&&((fi=vt==null?void 0:vt.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(ve.ZP,{onClick:fs,type:"primary"},"\u968F\u673A\u66F4\u6362")),y.createElement("div",{className:he.topWarp},(ao=vt==null?void 0:vt.questionList)==null?void 0:ao.map((xn,Ar)=>{var Wo,Lr;return y.createElement(y.Fragment,{key:Ar},y.createElement("div",{className:he.head,style:Ar===0?{border:0,marginTop:-16}:{}},y.createElement("div",{className:he.name},y.createElement("b",null),y.createElement("span",null,xn.name)),y.createElement("div",{className:he.so},"\u5171",y.createElement("span",{className:he.b},xn.questions_count," "),"\u9898 ",xn.type==="COMBINATION"&&`\uFF08\u5305\u542B${(Wo=xn==null?void 0:xn.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},xn.questions_score),"\u5206"),!Vr&&y.createElement("div",{className:he.btn},y.createElement(ve.ZP,{onClick:()=>{ql(xn)},type:"primary",ghost:!0,className:"mr20"},"\u8BBE\u7F6E\u5F97\u5206"),y.createElement(ve.ZP,{onClick:()=>ds(xn),type:"primary",ghost:!0},"\u968F\u673A\u66F4\u6362"))),(Lr=xn==null?void 0:xn.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:`${(xn==null?void 0:xn.type)==="PRACTICAL"?"-2px":"-6px"}`}},y.createElement(ve.ZP,{onClick:()=>bi(null),className:"mr20",type:"primary",ghost:!0},"\u53D6\u6D88"),y.createElement(ve.ZP,{onClick:()=>{Zs(xn==null?void 0:xn.type,Xn)},type:"primary"},"\u4FDD\u5B58")),Qs(Xn,xn.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($e.Z,{style:{paddingRight:10},value:_o+1+"\u3001"+((Vo=Xn==null?void 0:Xn.program_attr)==null?void 0:Vo.description)}):y.createElement($e.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(Ie.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(ve.ZP,{size:"small",onClick:()=>Js(Xn,_o)},"\u5FFD\u7565"),y.createElement(ve.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(ve.ZP,{className:"ml20",size:"small",type:"primary",onClick:()=>(0,ot.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(ve.ZP,{onClick:()=>{var Bl,ms,po;if(no){Ae.ZP.warning("\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898");return}Ia.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"?gt.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(ve.ZP,{disabled:_s,className:"ml20",onClick:()=>es(Xn==null?void 0:Xn.id,xn.type,_o,xn),type:"primary",ghost:!0},"\u6362\u4E00\u9898")),(Xn==null?void 0:Xn.item_type)==="bprogram"&&y.createElement($e.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)||"")}),(xn.type==="SINGLE"||xn.type==="JUDGMENT"||xn.type==="MULTIPLE")&&Il(Xn),xn.type==="COMPLETION"&&Rl(Xn),xn.type==="SUBJECTIVE"&&Nl(Xn),xn.type==="PROGRAM"&&us(Xn),xn.type==="BPROGRAM"&&Cs(Xn),xn.type==="COMBINATION"&&Es(Xn,_o),xn.type==="PRACTICAL"&&Rs(Xn),y.createElement(tt.Z,{className:"mt20",wrap:!1,align:"middle",gutter:20},((va=vt==null?void 0:vt.exam)==null?void 0:va.exercise_status)===3&&!["PROGRAM","BPROGRAM","PRACTICAL","COMBINATION"].includes(xn.type)&&y.createElement(He.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(xn.type)&&(Xn==null?void 0:Xn.show_resubmit)&&y.createElement(He.Z,null,y.createElement(bs.C,{dataSource:el(qa({},Xn),{question_id:Xn==null?void 0:Xn.id})})),((Ri=vt==null?void 0:vt.exam)==null?void 0:Ri.exercise_status)===3&&["SINGLE"].includes(xn.type)&&y.createElement(He.Z,null,y.createElement(ve.ZP,{style:{color:"#3061D0"},onClick:()=>{Zl({value:Xn})}},"\u589E\u8BBE\u6B63\u786E\u7B54\u6848"))))}))}))),Vr?y.createElement(Qi.vr,null,y.createElement(Me.Z,{showTotal:ot.rU,total:(Co=vt==null?void 0:vt.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(Ie.Z,{color:"#55575D",overlayClassName:he.popover,open:pa,getPopupContainer:xn=>xn==null?void 0:xn.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:()=>ji(void 0,null,function*(){const xn=Number(Ml);[100,120,150].includes(xn)||(yield new Promise((Ar,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"}},xn),"\u5206\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u8FDB\u884C\u4FDD\u5B58\uFF1F"),onOk:()=>ji(void 0,null,function*(){Ar("")}),onCancel:()=>{Wo()}})})),cs()}),shape:"default",style:{height:38,background:"#fff",boxShadow:"none"}},"\u4FDD\u5B58")),y.createElement(Qi.op,{shape:"default",type:"primary",onClick:()=>ji(void 0,null,function*(){const xn=Number(Ml);[100,120,150].includes(xn)||(yield new Promise((Ar,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"}},xn),"\u5206\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u8FDB\u884C\u4FDD\u5B58\uFF1F"),onOk:()=>ji(void 0,null,function*(){Ar("")}),onCancel:()=>{Wo()}})})),jt()}),style:{height:38,marginLeft:20}},"\u63D0\u4EA4"))}),y.createElement(Ll,{visible:hl,questionParams:ja.current,getdata:Zo,onRandomExchange:()=>ji(void 0,null,function*(){const xn=ja.current;yield Kr({single_question_id:xn.id,seleted_item_bank_ids:xn.ids},{type:xn.type,index:xn.index}),zo(!1)}),selectFromProblemSet:()=>{const xn=ja.current,Ar=`${location.pathname}${location.search}`;Ar.includes("exercise")&&gt.history.push(`/paperlibrary/exchangequestion?type=exercise&qid=${xn.id}&qtype=${xn.type}&exerciseid=${cr.categoryId}&from=${Ar}`)},onCancel:()=>{zo(!1)}}))};var ci=(0,gt.connect)(({classroomList:vt})=>({classroomList:vt}))(yi)},74768:function(bn,zt,z){"use strict";z.r(zt),z.d(zt,{default:function(){return Ne}});var y=z(59301),he=z(65582),ce={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"},je=z(26971),ve=z(6767),me=z(458),ye=z(38147),Ae=z(65862),pe=z(59301),le=Object.defineProperty,Re=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,tt=Object.prototype.propertyIsEnumerable,He=(Xe,ft,Pe)=>ft in Xe?le(Xe,ft,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):Xe[ft]=Pe,Me=(Xe,ft)=>{for(var Pe in ft||(ft={}))Ie.call(ft,Pe)&&He(Xe,Pe,ft[Pe]);if(Re)for(var Pe of Re(ft))tt.call(ft,Pe)&&He(Xe,Pe,ft[Pe]);return Xe},Ee=(Xe,ft,Pe)=>new Promise((Fe,Ze)=>{var $e=Qe=>{try{ot(Pe.next(Qe))}catch(ct){Ze(ct)}},gt=Qe=>{try{ot(Pe.throw(Qe))}catch(ct){Ze(ct)}},ot=Qe=>Qe.done?Fe(Qe.value):Promise.resolve(Qe.value).then($e,gt);ot((Pe=Pe.apply(Xe,ft)).next())});const we=({paperlibrary:Xe,user:ft,globalSetting:Pe,dispatch:Fe,location:Ze})=>{var $e,gt,ot,Qe;const[ct]=(0,he.useSearchParams)(),Ce=ct.get("select")||0,[et,Te]=(0,y.useState)(!1),[ue,mt]=(0,y.useState)(!0),[_e,lt]=(0,y.useState)(Number(Ce)),[Mt,be]=(0,y.useState)({}),ge=(0,he.useParams)(),{userInfo:Ft}=ft,{actionTabs:_t}=Xe;(0,y.useEffect)(()=>(Fe({type:"globalSetting/footerToggle",payload:!1}),()=>{Fe({type:"globalSetting/footerToggle",payload:!0})}),[]),(0,y.useEffect)(()=>(Fe({type:"globalSetting/onlyShowBackTopToggle",payload:!1}),Fe({type:"globalSetting/onlyShowBackTopIconToggle",payload:!1}),Fe({type:"exercise/getWorkSetting",payload:Me({},ge)}),()=>{Fe({type:"globalSetting/onlyShowBackTopToggle",payload:!0}),Fe({type:"globalSetting/onlyShowBackTopIconToggle",payload:!0})}),[]),(0,y.useEffect)(()=>{Tt(_e)},[]),(0,y.useEffect)(()=>{var st;(st=_t==null?void 0:_t.params)!=null&&st.isUpdateData&&Tt(_e)},[($e=_t==null?void 0:_t.params)==null?void 0:$e.isUpdateData]);const Tt=(st=0)=>Ee(void 0,null,function*(){console.log(ge),mt(!0);const nt=yield(0,ye.ZP)(`/api/exercises/${ge.categoryId}/preview_random_exercise.json`,{method:"get",params:{num:st}});Fe({type:"paperlibrary/setActionTabs",payload:{params:{isUpdateData:!1}}}),mt(!1),be((0,Ae.PF)(nt))}),xe=()=>{he.history.push(`/classrooms/${ge.coursesId}/exercise`)},rt=()=>{alert("\u4FDD\u5B58")},qe=(st,nt)=>Ee(void 0,null,function*(){const rn=yield(0,ye.ZP)(`/api/exercises/${ge.categoryId}/toggle_random_question.json`,{method:"post",body:{question_id:st==null?void 0:st.single_question_id}});rn!=null&&rn.question&&(ve.ZP.info("\u6362\u9898\u6210\u529F"),Tt(_e))}),Gt=st=>Ee(void 0,null,function*(){document.body.scrollIntoView(),lt(st),yield Tt(st)}),at=st=>{Fe({type:"exercise/setActionTabs",payload:{key:"\u6807\u8BB0\u9519\u9898",params:st}})};return console.log((0,he.useLocation)(),"location333"),pe.createElement("section",{className:ce.wrap},pe.createElement(me.Z,{loading:ue,active:!0,paragraph:{rows:5}},((ot=(gt=(0,he.useLocation)())==null?void 0:gt.pathname)==null?void 0:ot.includes("preview"))&&pe.createElement("div",{className:ce.crumbs},pe.createElement("b",null),pe.createElement("span",{className:"current",onClick:()=>he.history.push(`/classrooms/${ge.coursesId}/exercise`)},`${(Qe=Ft==null?void 0:Ft.course)==null?void 0:Qe.course_name}>`),pe.createElement("span",{className:"current",onClick:()=>he.history.push(`/classrooms/${ge.coursesId}/exercise`)},"\u8BD5\u5377\u5217\u8868>"),pe.createElement("span",{style:{color:"#bebebe"}},"\u9884\u89C8")),pe.createElement(je.Z,{loading:et,submit:rt,goBack:xe,data:Mt,getdata:()=>{Tt(_e)},selectValue:_e,editPreview:!0,onExchange:qe,onSkipExamination:Gt,handleMarkWrongQuestion:at})))};var Ne=(0,he.connect)(({paperlibrary:Xe,user:ft,globalSetting:Pe})=>({paperlibrary:Xe,user:ft,globalSetting:Pe}))(we)},63952:function(bn,zt,z){"use strict";z.d(zt,{g:function(){return ve}});var y=z(59301),he=z(29297),ce=z(3033),je=(me,ye,Ae)=>new Promise((pe,le)=>{var Re=He=>{try{tt(Ae.next(He))}catch(Me){le(Me)}},Ie=He=>{try{tt(Ae.throw(He))}catch(Me){le(Me)}},tt=He=>He.done?pe(He.value):Promise.resolve(He.value).then(Re,Ie);tt((Ae=Ae.apply(me,ye)).next())});const ve=()=>{const[me,ye]=(0,y.useState)([]);return(0,y.useEffect)(()=>{je(void 0,null,function*(){const pe=yield(0,he.d1)({source:"question"});pe!=null&&pe.disciplines&&ye((0,ce.L)(pe==null?void 0:pe.disciplines))})},[]),me}},61527:function(bn,zt,z){"use strict";z.d(zt,{U:function(){return pe}});var y=z(59301),he=Object.defineProperty,ce=Object.getOwnPropertySymbols,je=Object.prototype.hasOwnProperty,ve=Object.prototype.propertyIsEnumerable,me=(le,Re,Ie)=>Re in le?he(le,Re,{enumerable:!0,configurable:!0,writable:!0,value:Ie}):le[Re]=Ie,ye=(le,Re)=>{for(var Ie in Re||(Re={}))je.call(Re,Ie)&&me(le,Ie,Re[Ie]);if(ce)for(var Ie of ce(Re))ve.call(Re,Ie)&&me(le,Ie,Re[Ie]);return le},Ae=(le,Re,Ie)=>new Promise((tt,He)=>{var Me=Ne=>{try{we(Ie.next(Ne))}catch(Xe){He(Xe)}},Ee=Ne=>{try{we(Ie.throw(Ne))}catch(Xe){He(Xe)}},we=Ne=>Ne.done?tt(Ne.value):Promise.resolve(Ne.value).then(Me,Ee);we((Ie=Ie.apply(le,Re)).next())});function pe(le,Re){const[Ie,tt]=(0,y.useState)(Re),[He,Me]=(0,y.useState)(!1),[Ee,we]=(0,y.useState)();return[Ie,He,(Xe,ft=!1)=>Ae(this,null,function*(){const Pe=ft?Re:ye(ye({},Ie),Xe);Me(!0),tt(Pe);const Fe=yield le(Pe);return Me(!1),we(Fe),Fe}),Ee,we]}},49142:function(bn,zt,z){"use strict";z.d(zt,{AL:function(){return Pe},Iy:function(){return Re},Qv:function(){return He},ez:function(){return ft},jb:function(){return Ie}});var y=z(32834),he=z.n(y),ce=z(11690),je=z.n(ce);let ve=1;function me(ot,Qe){const ct=ot.match(/^(\s+)(?:```)/);if(ct===null)return Qe;const Ce=ct[1];return Qe.split(`
`).map(et=>{const Te=et.match(/^\s+/);if(Te===null)return et;const[ue]=Te;return ue.length>=Ce.length?et.slice(Ce.length):et}).join(`
`)}let ye=[],Ae=["<ul>"];const pe=new(he()).Renderer,le=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function Re(){ye.length=0,Ae=["<ul>"]}const Ie={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function tt(ot,Qe,ct,Ce){if(Qe>=ot.length||ot[Qe].level<=ct)return Qe;var et=ot[Qe];Ce.push("<li><a href='#"+ve+et.anchor+"'>"+et.text+"</a>"),Qe++;var Te=[];return Qe=tt(ot,Qe,et.level,Te),Te.length>0&&(Ce.push("<ul>"),Te.forEach(function(ue){Ce.push(ue)}),Ce.push("</ul>")),Ce.push("</li>"),Qe=tt(ot,Qe,ct,Ce),Qe}function He(){return tt(ye,0,0,Ae),Ae.push("</ul>"),Ae.join("")}const Me={heading(ot){const Qe=le.exec(ot);if(ve+=1,Qe)return{type:"heading",raw:Qe[0],depth:Qe[1].length,text:Qe[2]}},fences(ot){const Qe=this.rules.block.fences.exec(ot);if(Qe){const ct=Qe[0];let Ce=me(ct,Qe[3]||"");const et=Qe[2]?Qe[2].trim():Qe[2];if(["latex","katex","math"].indexOf(et)>=0){const Te=Ne(),ue=Ce;Ce=Te,Xe[Te]={type:"block",expression:ue}}return{type:"code",raw:ct,lang:et,text:Ce}}}},Ee=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let we=0;const Ne=()=>`__special_katext_id_${we++}__`;let Xe={};function ft(){return Xe}function Pe(){we=0,Xe={}}function Fe(ot){return ot=ot.replace(Ee,(Qe,ct)=>{const Ce=Ne();return Xe[Ce]={type:"inline",expression:ct},Ce}),ot}const Ze=pe.listitem;pe.listitem=function(ot){return Ze(Fe(ot))};const $e=pe.paragraph;pe.paragraph=function(ot){return $e(Fe(ot))};const gt=pe.tablecell;pe.tablecell=function(ot,Qe){return gt(Fe(ot),Qe)},pe.code=function(ot,Qe,ct){const Ce=(Qe||"").match(/\S*/)[0];return Ce?["latex","katex","math"].indexOf(Ce)>=0?`<p class='editormd-tex'>${ot}</p>`:`<pre class="prettyprint linenums"><code class="language-${Qe}">${ct?ot:(0,ce.escape)(ot,!0)}</code></pre>
`:'<pre class="prettyprint linenums"><code>'+(ct?ot:(0,ce.escape)(ot,!0))+"</code></pre>"},pe.heading=function(ot,Qe,ct){let Ce=this.options.headerPrefix+ct.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return ye.push({anchor:Ce,level:Qe,text:ot}),"<h"+Qe+' id="'+ve+Ce+'">'+ot+"</h"+Qe+">"},he().setOptions({silent:!0,gfm:!0,pedantic:!1}),he().use({tokenizer:Me,renderer:pe}),zt.ZP=he()},9981:function(bn,zt){"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 ce=he<0||arguments.length<=he?void 0:arguments[he];ce&&Object.keys(ce).forEach(je=>{const ve=ce[je];ve!==void 0&&(y[je]=ve)})}return y};zt.Z=z},86013:function(bn,zt,z){"use strict";var y=z(59301),he=z(19248);const ce=je=>{let ve;return typeof je=="object"&&(je!=null&&je.clearIcon)?ve=je:je&&(ve={clearIcon:y.createElement(he.Z,null)}),ve};zt.Z=ce},54500:function(bn,zt,z){"use strict";z.d(zt,{Z:function(){return y}});const y=he=>he?typeof he=="function"?he():he:null},97224:function(bn,zt,z){"use strict";z.d(zt,{F:function(){return y}});function y(ce){return ce!=null&&ce===ce.window}const he=ce=>{var je,ve;if(typeof window=="undefined")return 0;let me=0;return y(ce)?me=ce.pageYOffset:ce instanceof Document?me=ce.documentElement.scrollTop:(ce instanceof HTMLElement||ce)&&(me=ce.scrollTop),ce&&!y(ce)&&typeof me!="number"&&(me=(ve=((je=ce.ownerDocument)!==null&&je!==void 0?je:ce).documentElement)===null||ve===void 0?void 0:ve.scrollTop),me};zt.Z=he},83010:function(bn,zt,z){"use strict";z.d(zt,{Z:function(){return je}});var y=z(16089);function he(ve,me,ye,Ae){const pe=ye-me;return ve/=Ae/2,ve<1?pe/2*ve*ve*ve+me:pe/2*((ve-=2)*ve*ve+2)+me}var ce=z(97224);function je(ve){let me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:ye=()=>window,callback:Ae,duration:pe=450}=me,le=ye(),Re=(0,ce.Z)(le),Ie=Date.now(),tt=()=>{const Me=Date.now()-Ie,Ee=he(Me>pe?pe:Me,Re,ve,pe);(0,ce.F)(le)?le.scrollTo(window.pageXOffset,Ee):le instanceof Document||le.constructor.name==="HTMLDocument"?le.documentElement.scrollTop=Ee:le.scrollTop=Ee,Me<pe?(0,y.Z)(tt):typeof Ae=="function"&&Ae()};(0,y.Z)(tt)}},79939:function(bn,zt,z){"use strict";z.d(zt,{Z:function(){return zn}});var y=z(94480),he=z(59301),ce=z(92310),je=z.n(ce),ve=z(54476),me=z(33885),ye=z(42978),Ae=z(75931),pe=z(37463),le=z(6551),Re=z(6089),Ie=z(18929),tt=he.createContext({}),He=tt,Me=z(76190),Ee=z(20068),we="__rc_cascader_search_mark__",Ne=function(Ct,St,It){var fn=It.label,wn=fn===void 0?"":fn;return St.some(function(Pn){return String(Pn[wn]).toLowerCase().includes(Ct.toLowerCase())})},Xe=function(Ct,St,It,fn){return St.map(function(wn){return wn[fn.label]}).join(" / ")},ft=function(Ct,St,It,fn,wn,Pn){var In=wn.filter,qn=In===void 0?Ne:In,rr=wn.render,ir=rr===void 0?Xe:rr,sr=wn.limit,Qn=sr===void 0?50:sr,ar=wn.sort;return he.useMemo(function(){var fr=[];if(!Ct)return[];function Sr(br,jr){var $r=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)(jr),[hr]),eo=hr[It.children],kr=$r||hr.disabled;if((!eo||eo.length===0||Pn)&&qn(Ct,Mr,{label:It.label})){var Fr;fr.push((0,me.Z)((0,me.Z)({},hr),{},(Fr={disabled:kr},(0,Ee.Z)(Fr,It.label,ir(Ct,Mr,fn,It)),(0,Ee.Z)(Fr,we,Mr),(0,Ee.Z)(Fr,It.children,void 0),Fr)))}eo&&Sr(hr[It.children],Mr,kr)}})}return Sr(St,[]),ar&&fr.sort(function(br,jr){return ar(br[we],jr[we],Ct,It)}),Qn!==!1&&Qn>0?fr.slice(0,Qn):fr},[Ct,St,It,fn,ir,Pn,qn,ar,Qn])},Pe=ft,Fe="__RC_CASCADER_SPLIT__",Ze="SHOW_PARENT",$e="SHOW_CHILD";function gt(pt){return pt.join(Fe)}function ot(pt){return pt.map(gt)}function Qe(pt){return pt.split(Fe)}function ct(pt){var Ct=pt||{},St=Ct.label,It=Ct.value,fn=Ct.children,wn=It||"value";return{label:St||"label",value:wn,key:wn,children:fn||"children"}}function Ce(pt,Ct){var St,It;return(St=pt.isLeaf)!==null&&St!==void 0?St:!((It=pt[Ct.children])!==null&&It!==void 0&&It.length)}function et(pt){var Ct=pt.parentElement;if(Ct){var St=pt.offsetTop-Ct.offsetTop;St-Ct.scrollTop<0?Ct.scrollTo({top:St}):St+pt.offsetHeight-Ct.scrollTop>Ct.offsetHeight&&Ct.scrollTo({top:St+pt.offsetHeight-Ct.offsetHeight})}}function Te(pt,Ct){return pt.map(function(St){var It;return(It=St[we])===null||It===void 0?void 0:It.map(function(fn){return fn[Ct.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(Ct){return Array.isArray(Ct)?Ct:[Ct]}):[]}function _e(pt,Ct,St){var It=new Set(pt),fn=Ct();return pt.filter(function(wn){var Pn=fn[wn],In=Pn?Pn.parent:null,qn=Pn?Pn.children:null;return Pn&&Pn.node.disabled?!0:St===$e?!(qn&&qn.some(function(rr){return rr.key&&It.has(rr.key)})):!(In&&!In.node.disabled&&It.has(In.key))})}function lt(pt,Ct,St){for(var It=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,fn=Ct,wn=[],Pn=function(){var rr,ir,sr,Qn=pt[In],ar=(rr=fn)===null||rr===void 0?void 0:rr.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;wn.push({value:(sr=fr==null?void 0:fr[St.value])!==null&&sr!==void 0?sr:Qn,index:ar,option:fr}),fn=fr==null?void 0:fr[St.children]},In=0;In<pt.length;In+=1)Pn();return wn}var Mt=function(pt,Ct,St,It,fn){return he.useMemo(function(){var wn=fn||function(Pn){var In=It?Pn.slice(-1):Pn,qn=" / ";return In.every(function(rr){return["string","number"].includes((0,Me.Z)(rr))})?In.join(qn):In.reduce(function(rr,ir,sr){var Qn=he.isValidElement(ir)?he.cloneElement(ir,{key:sr}):ir;return sr===0?[Qn]:[].concat((0,y.Z)(rr),[qn,Qn])},[])};return pt.map(function(Pn){var In,qn=lt(Pn,Ct,St),rr=wn(qn.map(function(sr){var Qn,ar=sr.option,fr=sr.value;return(Qn=ar==null?void 0:ar[St.label])!==null&&Qn!==void 0?Qn:fr}),qn.map(function(sr){var Qn=sr.option;return Qn})),ir=gt(Pn);return{label:rr,value:ir,key:ir,valueCells:Pn,disabled:(In=qn[qn.length-1])===null||In===void 0||(In=In.option)===null||In===void 0?void 0:In.disabled}})},[pt,Ct,St,fn,It])};function be(pt,Ct){return he.useCallback(function(St){var It=[],fn=[];return St.forEach(function(wn){var Pn=lt(wn,pt,Ct);Pn.every(function(In){return In.option})?fn.push(wn):It.push(wn)}),[fn,It]},[pt,Ct])}var ge=z(34061),Ft=function(pt,Ct){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,ge.I8)(pt,{fieldNames:Ct,initWrapper:function(wn){return(0,me.Z)((0,me.Z)({},wn),{},{pathKeyEntities:{}})},processEntity:function(wn,Pn){var In=wn.nodes.map(function(qn){return qn[Ct.value]}).join(Fe);Pn.pathKeyEntities[In]=wn,wn.key=In}})),St.current.info.pathKeyEntities},[Ct,pt]);return It};function _t(pt,Ct){var St=he.useMemo(function(){return Ct||[]},[Ct]),It=Ft(St,pt),fn=he.useCallback(function(wn){var Pn=It();return wn.map(function(In){var qn=Pn[In].nodes;return qn.map(function(rr){return rr[pt.value]})})},[It,pt]);return[St,It,fn]}var Tt=z(48736);function xe(pt){return he.useMemo(function(){if(!pt)return[!1,{}];var Ct={matchInputWidth:!0,limit:50};return pt&&(0,Me.Z)(pt)==="object"&&(Ct=(0,me.Z)((0,me.Z)({},Ct),pt)),Ct.limit<=0&&(Ct.limit=!1),[!0,Ct]},[pt])}var rt=z(34643);function qe(pt,Ct,St,It,fn,wn,Pn,In){return function(qn){if(!pt)Ct(qn);else{var rr=gt(qn),ir=ot(St),sr=ot(It),Qn=ir.includes(rr),ar=fn.some(function(kr){return gt(kr)===rr}),fr=St,Sr=fn;if(ar&&!Qn)Sr=fn.filter(function(kr){return gt(kr)!==rr});else{var br=Qn?ir.filter(function(kr){return kr!==rr}):[].concat((0,y.Z)(ir),[rr]),jr=wn(),$r;if(Qn){var hr=(0,rt.S)(br,{checked:!1,halfCheckedKeys:sr},jr);$r=hr.checkedKeys}else{var Mr=(0,rt.S)(br,!0,jr);$r=Mr.checkedKeys}var eo=_e($r,wn,In);fr=Pn(eo)}Ct([].concat((0,y.Z)(Sr),(0,y.Z)(fr)))}}}function Gt(pt,Ct,St,It,fn){return he.useMemo(function(){var wn=fn(Ct),Pn=(0,ye.Z)(wn,2),In=Pn[0],qn=Pn[1];if(!pt||!Ct.length)return[In,[],qn];var rr=ot(In),ir=St(),sr=(0,rt.S)(rr,!0,ir),Qn=sr.checkedKeys,ar=sr.halfCheckedKeys;return[It(Qn),It(ar),qn]},[pt,Ct,St,It,fn])}var at=he.memo(function(pt){var Ct=pt.children;return Ct},function(pt,Ct){return!Ct.open}),st=at;function nt(pt){var Ct,St=pt.prefixCls,It=pt.checked,fn=pt.halfChecked,wn=pt.disabled,Pn=pt.onClick,In=pt.disableCheckbox,qn=he.useContext(He),rr=qn.checkable,ir=typeof rr!="boolean"?rr:null;return he.createElement("span",{className:je()("".concat(St),(Ct={},(0,Ee.Z)(Ct,"".concat(St,"-checked"),It),(0,Ee.Z)(Ct,"".concat(St,"-indeterminate"),!It&&fn),(0,Ee.Z)(Ct,"".concat(St,"-disabled"),wn||In),Ct)),onClick:Pn},ir)}var rn="__cascader_fix_label__";function kt(pt){var Ct=pt.prefixCls,St=pt.multiple,It=pt.options,fn=pt.activeValue,wn=pt.prevValuePath,Pn=pt.onToggleOpen,In=pt.onSelect,qn=pt.onActive,rr=pt.checkedSet,ir=pt.halfCheckedSet,sr=pt.loadingKeys,Qn=pt.isSelectable,ar=pt.disabled,fr="".concat(Ct,"-menu"),Sr="".concat(Ct,"-menu-item"),br=he.useContext(He),jr=br.fieldNames,$r=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[we],xo=(Cr=Br[rn])!==null&&Cr!==void 0?Cr:Br[jr.label],No=Br[jr.value],To=Ce(Br,jr),Xo=ti?ti.map(function(Un){return Un[jr.value]}):[].concat((0,y.Z)(wn),[No]),ko=gt(Xo),go=sr.includes(ko),dr=rr.has(ko),Mn=ir.has(ko);return{disabled:so,label:xo,value:No,isLeaf:To,isLoading:go,checked:dr,halfChecked:Mn,option:Br,disableCheckbox:Ho,fullPath:Xo,fullPathKey:ko}})},[It,rr,jr,ir,sr,wn]);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,Mn=Br.disableCheckbox,Un=function(){if(!Ur(so)){var wr=(0,y.Z)(go);or&&xo&&wr.pop(),qn(wr)}},Yn=function(){Qn(ko)&&!Ur(so)&&In(go,xo)},kn;return typeof ko.title=="string"?kn=ko.title:typeof Ho=="string"&&(kn=Ho),he.createElement("li",{key:dr,className:je()(Sr,(Cr={},(0,Ee.Z)(Cr,"".concat(Sr,"-expand"),!xo),(0,Ee.Z)(Cr,"".concat(Sr,"-active"),fn===ti||fn===dr),(0,Ee.Z)(Cr,"".concat(Sr,"-disabled"),Ur(so)),(0,Ee.Z)(Cr,"".concat(Sr,"-loading"),No),Cr)),style:kr,role:"menuitemcheckbox",title:kn,"aria-checked":To,"data-path-key":dr,onClick:function(){Un(),!Mn&&(!St||xo)&&Yn()},onDoubleClick:function(){$r&&Pn(!1)},onMouseEnter:function(){or&&Un()},onMouseDown:function(wr){wr.preventDefault()}},St&&he.createElement(nt,{prefixCls:"".concat(Ct,"-checkbox"),checked:To,halfChecked:Xo,disabled:Ur(so)||Mn,disableCheckbox:Mn,onClick:function(wr){Mn||(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(Ct,St){var It=he.useContext(He),fn=It.values,wn=fn[0],Pn=he.useState([]),In=(0,ye.Z)(Pn,2),qn=In[0],rr=In[1];return he.useEffect(function(){Ct||rr(wn||[])},[St,wn]),[qn,rr]},re=ae,te=z(10228),oe=function(pt,Ct,St,It,fn,wn,Pn){var In=Pn.direction,qn=Pn.searchValue,rr=Pn.toggleOpen,ir=Pn.open,sr=In==="rtl",Qn=he.useMemo(function(){for(var kr=-1,Fr=Ct,or=[],Ur=[],Rr=It.length,Br=Te(Ct,St),Cr=function(No){var To=Fr.findIndex(function(Xo,ko){return(Br[ko]?gt(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=Ct,ti=0;ti<or.length-1;ti+=1)Ho=Ho[or[ti]][St.children];return[Ur,kr,Ho,Br]},[It,St,Ct]),ar=(0,ye.Z)(Qn,4),fr=ar[0],Sr=ar[1],br=ar[2],jr=ar[3],$r=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(jr[Ur]?gt(jr[Ur]):Br[St.value]);$r(Cr);return}}},Mr=function(){if(fr.length>1){var Fr=fr.slice(0,-1);$r(Fr)}else rr(!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]]);$r(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;sr?eo():Mr();break}case te.Z.RIGHT:{if(qn)break;sr?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[we])||[];Br.length?wn(Br.map(function(Cr){return Cr[St.value]}),Br[Br.length-1]):wn(fr,br[Sr])}break}case te.Z.ESC:rr(!1),ir&&Fr.stopPropagation()}},onKeyUp:function(){}}})},de=he.forwardRef(function(pt,Ct){var St,It,fn,wn=pt.prefixCls,Pn=pt.multiple,In=pt.searchValue,qn=pt.toggleOpen,rr=pt.notFoundContent,ir=pt.direction,sr=pt.open,Qn=pt.disabled,ar=he.useRef(null),fr=ir==="rtl",Sr=he.useContext(He),br=Sr.options,jr=Sr.values,$r=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||wn,Br=he.useState([]),Cr=(0,ye.Z)(Br,2),so=Cr[0],Ho=Cr[1],ti=function(Yr){if(!(!or||In)){var to=lt(Yr,br,hr),Fo=to.map(function(Jo){var ni=Jo.option;return ni}),Mo=Fo[Fo.length-1];if(Mo&&!Ce(Mo,hr)){var Yo=gt(Yr);Ho(function(Jo){return[].concat((0,y.Z)(Jo),[Yo])}),or(Fo)}}};he.useEffect(function(){so.length&&so.forEach(function(Zr){var Yr=Qe(Zr),to=lt(Yr,br,hr,!0).map(function(Mo){var Yo=Mo.option;return Yo}),Fo=to[to.length-1];(!Fo||Fo[hr.children]||Ce(Fo,hr))&&Ho(function(Mo){return Mo.filter(function(Yo){return Yo!==Zr})})})},[br,so,hr]);var xo=he.useMemo(function(){return new Set(ot(jr))},[jr]),No=he.useMemo(function(){return new Set(ot($r))},[$r]),To=re(Pn,sr),Xo=(0,ye.Z)(To,2),ko=Xo[0],go=Xo[1],dr=function(Yr){go(Yr),ti(Yr)},Mn=function(Yr){if(Qn)return!1;var to=Yr.disabled,Fo=Ce(Yr,hr);return!to&&(Fo||Mr||Pn)},Un=function(Yr,to){var Fo=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;eo(Yr),!Pn&&(to||Mr&&(Ur==="hover"||Fo))&&qn(!1)},Yn=he.useMemo(function(){return In?kr:br},[In,kr,br]),kn=he.useMemo(function(){for(var Zr=[{options:Yn}],Yr=Yn,to=Te(Yr,hr),Fo=function(){var Jo=ko[Mo],ni=Yr.find(function(Mi,_i){return(to[_i]?gt(to[_i]):Mi[hr.value])===Jo}),ri=ni==null?void 0:ni[hr.children];if(!(ri!=null&&ri.length))return 1;Yr=ri,Zr.push({options:ri})},Mo=0;Mo<ko.length&&!Fo();Mo+=1);return Zr},[Yn,ko,hr]),mr=function(Yr,to){Mn(to)&&Un(Yr,Ce(to,hr),!0)};oe(Ct,Yn,hr,ko,dr,mr,{direction:ir,searchValue:In,toggleOpen:qn,open:sr}),he.useEffect(function(){if(!In)for(var Zr=0;Zr<ko.length;Zr+=1){var Yr,to=ko.slice(0,Zr+1),Fo=gt(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,In]);var wr=!((St=kn[0])!==null&&St!==void 0&&(St=St.options)!==null&&St!==void 0&&St.length),Vn=[(It={},(0,Ee.Z)(It,hr.value,"__EMPTY__"),(0,Ee.Z)(It,rn,rr),(0,Ee.Z)(It,"disabled",!0),It)],Jn=(0,me.Z)((0,me.Z)({},pt),{},{multiple:!wr&&Pn,onSelect:Un,onActive:dr,onToggleOpen:qn,checkedSet:xo,halfCheckedSet:No,loadingKeys:so,isSelectable:Mn}),ur=wr?[{options:Vn}]:kn,pr=ur.map(function(Zr,Yr){var to=ko.slice(0,Yr),Fo=ko[Yr];return he.createElement(kt,(0,ve.Z)({key:Yr},Jn,{prefixCls:Rr,options:Zr.options,prevValuePath:to,activeValue:Fo}))});return he.createElement(st,{open:sr},he.createElement("div",{className:je()("".concat(Rr,"-menus"),(fn={},(0,Ee.Z)(fn,"".concat(Rr,"-menu-empty"),wr),(0,Ee.Z)(fn,"".concat(Rr,"-rtl"),fr),fn)),ref:ar},pr))}),ne=de,se=he.forwardRef(function(pt,Ct){var St=(0,pe.lk)();return he.createElement(ne,(0,ve.Z)({},pt,St,{ref:Ct}))}),Oe=se,bt=z(70425);function Ge(){}function We(pt){var Ct,St=pt,It=St.prefixCls,fn=It===void 0?"rc-cascader":It,wn=St.style,Pn=St.className,In=St.options,qn=St.checkable,rr=St.defaultValue,ir=St.value,sr=St.fieldNames,Qn=St.changeOnSelect,ar=St.onChange,fr=St.showCheckedStrategy,Sr=St.loadData,br=St.expandTrigger,jr=St.expandIcon,$r=jr===void 0?">":jr,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)(rr,{value:ir,postState:mt}),Rr=(0,ye.Z)(Ur,2),Br=Rr[0],Cr=Rr[1],so=he.useMemo(function(){return ct(sr)},[JSON.stringify(sr)]),Ho=_t(so,In),ti=(0,ye.Z)(Ho,3),xo=ti[0],No=ti[1],To=ti[2],Xo=be(xo,so),ko=Gt(or,Br,No,To,Xo),go=(0,ye.Z)(ko,3),dr=go[0],Mn=go[1],Un=go[2],Yn=(0,bt.zX)(function(ur){if(Cr(ur),ar){var pr=mt(ur),Zr=pr.map(function(Fo){return lt(Fo,xo,so).map(function(Mo){return Mo.option})}),Yr=or?pr:pr[0],to=or?Zr:Zr[0];ar(Yr,to)}}),kn=qe(or,Yn,dr,Mn,Un,No,To,fr),mr=(0,bt.zX)(function(ur){kn(ur)}),wr=he.useMemo(function(){return{options:xo,fieldNames:so,values:dr,halfValues:Mn,changeOnSelect:Qn,onSelect:mr,checkable:qn,searchOptions:[],dropdownPrefixCls:void 0,loadData:Sr,expandTrigger:br,expandIcon:$r,loadingIcon:hr,dropdownMenuColumnStyle:void 0}},[xo,so,dr,Mn,Qn,mr,qn,Sr,br,$r,hr]),Vn="".concat(fn,"-panel"),Jn=!xo.length;return he.createElement(He.Provider,{value:wr},he.createElement("div",{className:je()(Vn,(Ct={},(0,Ee.Z)(Ct,"".concat(Vn,"-rtl"),Mr==="rtl"),(0,Ee.Z)(Ct,"".concat(Vn,"-empty"),Jn),Ct),Pn),style:wn},Jn?kr:he.createElement(ne,{prefixCls:fn,searchValue:"",multiple:or,toggleOpen:Ge,open:!0,direction:Mr,disabled:Fr})))}function it(pt){var Ct=pt.onPopupVisibleChange,St=pt.popupVisible,It=pt.popupClassName,fn=pt.popupPlacement;warning(!Ct,"`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 ht(pt,Ct){if(pt){var St=function It(fn){for(var wn=0;wn<fn.length;wn++){var Pn=fn[wn];if(Pn[Ct==null?void 0:Ct.value]===null)return warning(!1,"`value` in Cascader options should not be `null`."),!0;if(Array.isArray(Pn[Ct==null?void 0:Ct.children])&&It(Pn[Ct==null?void 0:Ct.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"],Ve=he.forwardRef(function(pt,Ct){var St=pt.id,It=pt.prefixCls,fn=It===void 0?"rc-cascader":It,wn=pt.fieldNames,Pn=pt.defaultValue,In=pt.value,qn=pt.changeOnSelect,rr=pt.onChange,ir=pt.displayRender,sr=pt.checkable,Qn=pt.autoClearSearchValue,ar=Qn===void 0?!0:Qn,fr=pt.searchValue,Sr=pt.onSearch,br=pt.showSearch,jr=pt.expandTrigger,$r=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?Ze:go,Mn=pt.optionRender,Un=(0,Ae.Z)(pt,Le),Yn=(0,le.ZP)(St),kn=!!sr,mr=(0,Ie.Z)(Pn,{value:In,postState:mt}),wr=(0,ye.Z)(mr,2),Vn=wr[0],Jn=wr[1],ur=he.useMemo(function(){return ct(wn)},[JSON.stringify(wn)]),pr=_t(ur,$r),Zr=(0,ye.Z)(pr,3),Yr=Zr[0],to=Zr[1],Fo=Zr[2],Mo=(0,Ie.Z)("",{value:fr,postState:function(qo){return qo||""}}),Yo=(0,ye.Z)(Mo,2),Jo=Yo[0],ni=Yo[1],ri=function(qo,Bi){ni(qo),Bi.source!=="blur"&&Sr&&Sr(qo)},Mi=xe(br),_i=(0,ye.Z)(Mi,2),Xi=_i[0],Yi=_i[1],ta=Pe(Jo,Yr,ur,hr||fn,Yi,qn||kn),Lo=be(Yr,ur),co=Gt(kn,Vn,to,Fo,Lo),wi=(0,ye.Z)(co,3),wo=wi[0],aa=wi[1],Qa=wi[2],Ha=he.useMemo(function(){var Bo=ot(wo),qo=_e(Bo,to,dr);return[].concat((0,y.Z)(Qa),(0,y.Z)(Fo(qo)))},[wo,to,Fo,Qa,dr]),da=Mt(Ha,Yr,ur,kn,ir),fa=(0,Re.Z)(function(Bo){if(Jn(Bo),rr){var qo=mt(Bo),Bi=qo.map(function(Qi){return lt(Qi,Yr,ur).map(function(sa){return sa.option})}),Wa=kn?qo:qo[0],zi=kn?Bi:Bi[0];rr(Wa,zi)}}),Ti=qe(kn,fa,wo,aa,Qa,to,Fo,dr),ka=(0,Re.Z)(function(Bo){(!kn||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)},$o=he.useMemo(function(){return{options:Yr,fieldNames:ur,values:wo,halfValues:aa,changeOnSelect:qn,onSelect:ka,checkable:sr,searchOptions:ta,dropdownPrefixCls:hr,loadData:Mr,expandTrigger:jr,expandIcon:xo,loadingIcon:No,dropdownMenuColumnStyle:Ur,optionRender:Mn}},[Yr,ur,wo,aa,qn,ka,sr,ta,hr,Mr,jr,xo,No,Ur,Mn]),ai=!(Jo?ta:Yr).length,Ro=Jo&&Yi.matchInputWidth||ai?{}:{minWidth:"auto"};return he.createElement(He.Provider,{value:$o},he.createElement(pe.Ac,(0,ve.Z)({},Un,{ref:Ct,id:Yn,prefixCls:fn,autoClearSearchValue:ar,dropdownMatchSelectWidth:ko,dropdownStyle:(0,me.Z)((0,me.Z)({},Ro),Rr),displayValues:da,onDisplayValuesChange:ol,mode:kn?"multiple":void 0,searchValue:Jo,onSearch:ri,showSearch:Xi,OptionList:Oe,emptyOptions:ai,open:Ja,dropdownClassName:la,placement:Pl,onDropdownVisibleChange:El,getRawInputElement:function(){return To}})))});Ve.SHOW_PARENT=Ze,Ve.SHOW_CHILD=$e,Ve.Panel=We;var Ot=Ve,Yt=Ot,un=z(2738),tn=z(75030),Lt=z(86641),ln=z(45915),$t=z(82855),ze=z(48755),yt=z(38406),Ht=z(2171),en=z(83397),Ke=z(31756),xt=z(56553),Zt=z(24971),dt=z(1722),At=z(90376),Ut=z(68525),pn=z(90005),On=z(70045);function mn(pt,Ct){const{getPrefixCls:St,direction:It,renderEmpty:fn}=he.useContext(ze.E_),wn=Ct||It,Pn=St("select",pt),In=St("cascader",pt);return[Pn,In,wn,fn]}var Bn=mn;function Dt(pt,Ct){return he.useMemo(()=>Ct?he.createElement("span",{className:`${pt}-checkbox-inner`}):!1,[Ct])}var hn=z(33853),Wt=z(58617),an=z(38819),cn=(pt,Ct,St)=>{let It=St;St||(It=Ct?he.createElement(hn.Z,null):he.createElement(an.Z,null));const fn=he.createElement("span",{className:`${pt}-menu-item-loading-icon`},he.createElement(Wt.Z,{spin:!0}));return he.useMemo(()=>[It,fn],[It])},on=z(56119),Zn=z(16931),_n=z(36237),Nn=z(36170),jn=z(63356),$n=pt=>{const{prefixCls:Ct,componentCls:St}=pt,It=`${St}-menu-item`,fn=`
&${It}-expand ${It}-expand-icon,
${It}-loading-icon
`;return[(0,Nn.C2)(`${Ct}-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,_n.unit)(pt.lineWidth)} ${pt.lineType} ${pt.colorSplit}`},"&-item":Object.assign(Object.assign({},jn.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 lr=pt=>{const{componentCls:Ct,antCls:St}=pt;return[{[Ct]:{width:pt.controlWidth}},{[`${Ct}-dropdown`]:[{[`&${St}-select-dropdown`]:{padding:0}},$n(pt)]},{[`${Ct}-dropdown-rtl`]:{direction:"rtl"}},(0,on.c)(pt)]},nr=pt=>{const Ct=Math.round((pt.controlHeight-pt.fontSize*pt.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:pt.controlItemBgActive,optionSelectedFontWeight:pt.fontWeightStrong,optionPadding:`${Ct}px ${pt.paddingSM}px`,menuPadding:pt.paddingXXS,optionSelectedColor:pt.colorText}};var dn=(0,Zn.I$)("Cascader",pt=>[lr(pt)],nr);const Cn=pt=>{const{componentCls:Ct}=pt;return{[`${Ct}-panel`]:[$n(pt),{display:"inline-flex",border:`${(0,_n.unit)(pt.lineWidth)} ${pt.lineType} ${pt.colorSplit}`,borderRadius:pt.borderRadiusLG,overflowX:"auto",maxWidth:"100%",[`${Ct}-menus`]:{alignItems:"stretch"},[`${Ct}-menu`]:{height:"auto"},"&-empty":{padding:pt.paddingXXS}}]}};var Hn=(0,Zn.A1)(["Cascader","Panel"],pt=>Cn(pt),nr);function Kn(pt){const{prefixCls:Ct,className:St,multiple:It,rootClassName:fn,notFoundContent:wn,direction:Pn,expandIcon:In,disabled:qn}=pt,rr=he.useContext(Ht.Z),ir=qn!=null?qn:rr,[sr,Qn,ar,fr]=Bn(Ct,Pn),Sr=(0,en.Z)(Qn),[br,jr,$r]=dn(Qn,Sr);Hn(Qn);const hr=ar==="rtl",[Mr,eo]=cn(sr,hr,In),kr=wn||(fr==null?void 0:fr("Cascader"))||he.createElement(yt.Z,{componentName:"Cascader"}),Fr=Dt(Qn,It);return br(he.createElement(We,Object.assign({},pt,{checkable:Fr,prefixCls:Qn,className:je()(St,jr,fn,$r,Sr),notFoundContent:kr,direction:ar,expandIcon:Mr,loadingIcon:eo,disabled:ir})))}var Et=Kn,Rt=function(pt,Ct){var St={};for(var It in pt)Object.prototype.hasOwnProperty.call(pt,It)&&Ct.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++)Ct.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:Bt}=Yt;function Ue(pt,Ct,St){const It=pt.toLowerCase().split(Ct).reduce((Pn,In,qn)=>qn===0?[In]:[].concat((0,y.Z)(Pn),[Ct,In]),[]),fn=[];let wn=0;return It.forEach((Pn,In)=>{const qn=wn+Pn.length;let rr=pt.slice(wn,qn);wn=qn,In%2===1&&(rr=he.createElement("span",{className:`${St}-menu-item-keyword`,key:`separator-${In}`},rr)),fn.push(rr)}),fn}const Nt=(pt,Ct,St,It)=>{const fn=[],wn=pt.toLowerCase();return Ct.forEach((Pn,In)=>{In!==0&&fn.push(" / ");let qn=Pn[It.label];const rr=typeof qn;(rr==="string"||rr==="number")&&(qn=Ue(String(qn),wn,St)),fn.push(qn)}),fn},Jt=he.forwardRef((pt,Ct)=>{var St;const{prefixCls:It,size:fn,disabled:wn,className:Pn,rootClassName:In,multiple:qn,bordered:rr=!0,transitionName:ir,choiceTransitionName:sr="",popupClassName:Qn,dropdownClassName:ar,expandIcon:fr,placement:Sr,showSearch:br,allowClear:jr=!0,notFoundContent:$r,direction:hr,getPopupContainer:Mr,status:eo,showArrow:kr,builtinPlacements:Fr,style:or,variant:Ur}=pt,Rr=Rt(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(xt.aM),go=(0,$t.F)(No,eo),[dr,Mn,Un,Yn]=Bn(It,hr),kn=Un==="rtl",mr=Cr(),wr=(0,en.Z)(dr),[Vn,Jn,ur]=(0,At.Z)(dr,wr),pr=(0,en.Z)(Mn),[Zr]=dn(Mn,pr),{compactSize:Yr,compactItemClassnames:to}=(0,On.ri)(dr,hr),[Fo,Mo]=(0,Zt.Z)("cascader",Ur,rr),Yo=$r||(Yn==null?void 0:Yn("Cascader"))||he.createElement(yt.Z,{componentName:"Cascader"}),Jo=je()(Qn||ar,`${Mn}-dropdown`,{[`${Mn}-dropdown-rtl`]:Un==="rtl"},In,wr,pr,Jn,ur),ni=he.useMemo(()=>{if(!br)return br;let fa={render:Nt};return typeof br=="object"&&(fa=Object.assign(Object.assign({},fa),br)),fa},[br]),ri=(0,Ke.Z)(fa=>{var Ti;return(Ti=fn!=null?fn:Yr)!==null&&Ti!==void 0?Ti:fa}),Mi=he.useContext(Ht.Z),_i=wn!=null?wn:Mi,[Xi,Yi]=cn(dr,kn,fr),ta=Dt(Mn,qn),Lo=(0,pn.Z)(pt.suffixIcon,kr),{suffixIcon:co,removeIcon:wi,clearIcon:wo}=(0,Ut.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:kn?"bottomRight":"bottomLeft",[Sr,kn]),Qa=jr===!0?{clearIcon:wo}:jr,[Ha]=(0,tn.Cn)("SelectLike",(St=Br.dropdownStyle)===null||St===void 0?void 0:St.zIndex),da=he.createElement(Yt,Object.assign({prefixCls:dr,className:je()(!It&&Mn,{[`${dr}-lg`]:ri==="large",[`${dr}-sm`]:ri==="small",[`${dr}-rtl`]:kn,[`${dr}-${Fo}`]:Mo,[`${dr}-in-form-item`]:Xo},(0,$t.Z)(dr,go,To),to,Ho,Pn,In,wr,pr,Jn,ur),disabled:_i,style:Object.assign(Object.assign({},ti),or)},Br,{builtinPlacements:(0,dt.Z)(Fr,xo),direction:Un,placement:aa,notFoundContent:Yo,allowClear:Qa,showSearch:ni,expandIcon:Xi,suffixIcon:co,removeIcon:wi,loadingIcon:Yi,checkable:ta,dropdownClassName:Jo,dropdownPrefixCls:It||Mn,dropdownStyle:Object.assign(Object.assign({},Br.dropdownStyle),{zIndex:Ha}),choiceTransitionName:(0,Lt.m)(mr,"",sr),transitionName:(0,Lt.m)(mr,"slide-up",ir),getPopupContainer:Mr||so,ref:Ct}));return Zr(Vn(da))}),Ln=(0,ln.Z)(Jt,"dropdownAlign",pt=>(0,un.Z)(pt,["visible"]));Jt.SHOW_PARENT=Bt,Jt.SHOW_CHILD=Je,Jt.Panel=Et,Jt._InternalPanelDoNotUseOrYouWillBeFired=Ln;var zn=Jt},62673:function(bn,zt,z){"use strict";z.d(zt,{default:function(){return ot}});var y=z(59301),he=z(92310),ce=z.n(he),je=z(16632),ve=z(8654),me=z(12919),ye=z(63872),Ae=z(48755),pe=z(2171),le=z(83397),Re=z(56553),tt=y.createContext(null),He=z(36170),Me=z(74632),Ee=function(Qe,ct){var Ce={};for(var et in Qe)Object.prototype.hasOwnProperty.call(Qe,et)&&ct.indexOf(et)<0&&(Ce[et]=Qe[et]);if(Qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Te=0,et=Object.getOwnPropertySymbols(Qe);Te<et.length;Te++)ct.indexOf(et[Te])<0&&Object.prototype.propertyIsEnumerable.call(Qe,et[Te])&&(Ce[et[Te]]=Qe[et[Te]]);return Ce};const we=(Qe,ct)=>{var Ce;const{prefixCls:et,className:Te,rootClassName:ue,children:mt,indeterminate:_e=!1,style:lt,onMouseEnter:Mt,onMouseLeave:be,skipGroup:ge=!1,disabled:Ft}=Qe,_t=Ee(Qe,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:Tt,direction:xe,checkbox:rt}=y.useContext(Ae.E_),qe=y.useContext(tt),{isFormItemInput:Gt}=y.useContext(Re.aM),at=y.useContext(pe.Z),st=(Ce=(qe==null?void 0:qe.disabled)||Ft)!==null&&Ce!==void 0?Ce:at,nt=y.useRef(_t.value),rn=y.useRef(null),kt=(0,ve.sQ)(ct,rn);y.useEffect(()=>{qe==null||qe.registerValue(_t.value)},[]),y.useEffect(()=>{if(!ge)return _t.value!==nt.current&&(qe==null||qe.cancelValue(nt.current),qe==null||qe.registerValue(_t.value),nt.current=_t.value),()=>qe==null?void 0:qe.cancelValue(_t.value)},[_t.value]),y.useEffect(()=>{var We;!((We=rn.current)===null||We===void 0)&&We.input&&(rn.current.input.indeterminate=_e)},[_e]);const ae=Tt("checkbox",et),re=(0,le.Z)(ae),[te,oe,de]=(0,He.ZP)(ae,re),ne=Object.assign({},_t);qe&&!ge&&(ne.onChange=function(){_t.onChange&&_t.onChange.apply(_t,arguments),qe.toggleOption&&qe.toggleOption({label:mt,value:_t.value})},ne.name=qe.name,ne.checked=qe.value.includes(_t.value));const se=ce()(`${ae}-wrapper`,{[`${ae}-rtl`]:xe==="rtl",[`${ae}-wrapper-checked`]:ne.checked,[`${ae}-wrapper-disabled`]:st,[`${ae}-wrapper-in-form-item`]:Gt},rt==null?void 0:rt.className,Te,ue,de,re,oe),Oe=ce()({[`${ae}-indeterminate`]:_e},ye.A,oe),[bt,Ge]=(0,Me.Z)(ne.onClick);return te(y.createElement(me.Z,{component:"Checkbox",disabled:st},y.createElement("label",{className:se,style:Object.assign(Object.assign({},rt==null?void 0:rt.style),lt),onMouseEnter:Mt,onMouseLeave:be,onClick:bt},y.createElement(je.Z,Object.assign({},ne,{onClick:Ge,prefixCls:ae,className:Oe,disabled:st,ref:kt})),mt!==void 0&&y.createElement("span",{className:`${ae}-label`},mt))))};var Xe=y.forwardRef(we),ft=z(94480),Pe=z(2738),Fe=function(Qe,ct){var Ce={};for(var et in Qe)Object.prototype.hasOwnProperty.call(Qe,et)&&ct.indexOf(et)<0&&(Ce[et]=Qe[et]);if(Qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Te=0,et=Object.getOwnPropertySymbols(Qe);Te<et.length;Te++)ct.indexOf(et[Te])<0&&Object.prototype.propertyIsEnumerable.call(Qe,et[Te])&&(Ce[et[Te]]=Qe[et[Te]]);return Ce},$e=y.forwardRef((Qe,ct)=>{const{defaultValue:Ce,children:et,options:Te=[],prefixCls:ue,className:mt,rootClassName:_e,style:lt,onChange:Mt}=Qe,be=Fe(Qe,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:ge,direction:Ft}=y.useContext(Ae.E_),[_t,Tt]=y.useState(be.value||Ce||[]),[xe,rt]=y.useState([]);y.useEffect(()=>{"value"in be&&Tt(be.value||[])},[be.value]);const qe=y.useMemo(()=>Te.map(Oe=>typeof Oe=="string"||typeof Oe=="number"?{label:Oe,value:Oe}:Oe),[Te]),Gt=Oe=>{rt(bt=>bt.filter(Ge=>Ge!==Oe))},at=Oe=>{rt(bt=>[].concat((0,ft.Z)(bt),[Oe]))},st=Oe=>{const bt=_t.indexOf(Oe.value),Ge=(0,ft.Z)(_t);bt===-1?Ge.push(Oe.value):Ge.splice(bt,1),"value"in be||Tt(Ge),Mt==null||Mt(Ge.filter(We=>xe.includes(We)).sort((We,it)=>{const ht=qe.findIndex(Le=>Le.value===We),Pt=qe.findIndex(Le=>Le.value===it);return ht-Pt}))},nt=ge("checkbox",ue),rn=`${nt}-group`,kt=(0,le.Z)(nt),[ae,re,te]=(0,He.ZP)(nt,kt),oe=(0,Pe.Z)(be,["value","disabled"]),de=Te.length?qe.map(Oe=>y.createElement(Xe,{prefixCls:nt,key:Oe.value.toString(),disabled:"disabled"in Oe?Oe.disabled:be.disabled,value:Oe.value,checked:_t.includes(Oe.value),onChange:Oe.onChange,className:`${rn}-item`,style:Oe.style,title:Oe.title,id:Oe.id,required:Oe.required},Oe.label)):et,ne={toggleOption:st,value:_t,disabled:be.disabled,name:be.name,registerValue:at,cancelValue:Gt},se=ce()(rn,{[`${rn}-rtl`]:Ft==="rtl"},mt,_e,te,kt,re);return ae(y.createElement("div",Object.assign({className:se,style:lt},oe,{ref:ct}),y.createElement(tt.Provider,{value:ne},de)))});const gt=Xe;gt.Group=$e,gt.__ANT_CHECKBOX=!0;var ot=gt},36170:function(bn,zt,z){"use strict";z.d(zt,{C2:function(){return me}});var y=z(36237),he=z(63356),ce=z(51636),je=z(16931);const ve=ye=>{const{checkboxCls:Ae}=ye,pe=`${Ae}-wrapper`;return[{[`${Ae}-group`]:Object.assign(Object.assign({},(0,he.Wf)(ye)),{display:"inline-flex",flexWrap:"wrap",columnGap:ye.marginXS,[`> ${ye.antCls}-row`]:{flex:1}}),[pe]:Object.assign(Object.assign({},(0,he.Wf)(ye)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${pe}`]:{marginInlineStart:0},[`&${pe}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[Ae]:Object.assign(Object.assign({},(0,he.Wf)(ye)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:ye.borderRadiusSM,alignSelf:"center",[`${Ae}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${Ae}-inner`]:Object.assign({},(0,he.oN)(ye))},[`${Ae}-inner`]:{boxSizing:"border-box",display:"block",width:ye.checkboxSize,height:ye.checkboxSize,direction:"ltr",backgroundColor:ye.colorBgContainer,border:`${(0,y.unit)(ye.lineWidth)} ${ye.lineType} ${ye.colorBorder}`,borderRadius:ye.borderRadiusSM,borderCollapse:"separate",transition:`all ${ye.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:ye.calc(ye.checkboxSize).div(14).mul(5).equal(),height:ye.calc(ye.checkboxSize).div(14).mul(8).equal(),border:`${(0,y.unit)(ye.lineWidthBold)} solid ${ye.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${ye.motionDurationFast} ${ye.motionEaseInBack}, opacity ${ye.motionDurationFast}`}},"& + span":{paddingInlineStart:ye.paddingXS,paddingInlineEnd:ye.paddingXS}})},{[`
${pe}:not(${pe}-disabled),
${Ae}:not(${Ae}-disabled)
`]:{[`&:hover ${Ae}-inner`]:{borderColor:ye.colorPrimary}},[`${pe}:not(${pe}-disabled)`]:{[`&:hover ${Ae}-checked:not(${Ae}-disabled) ${Ae}-inner`]:{backgroundColor:ye.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${Ae}-checked:not(${Ae}-disabled):after`]:{borderColor:ye.colorPrimaryHover}}},{[`${Ae}-checked`]:{[`${Ae}-inner`]:{backgroundColor:ye.colorPrimary,borderColor:ye.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${ye.motionDurationMid} ${ye.motionEaseOutBack} ${ye.motionDurationFast}`}}},[`
${pe}-checked:not(${pe}-disabled),
${Ae}-checked:not(${Ae}-disabled)
`]:{[`&:hover ${Ae}-inner`]:{backgroundColor:ye.colorPrimaryHover,borderColor:"transparent"}}},{[Ae]:{"&-indeterminate":{[`${Ae}-inner`]:{backgroundColor:`${ye.colorBgContainer} !important`,borderColor:`${ye.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:ye.calc(ye.fontSizeLG).div(2).equal(),height:ye.calc(ye.fontSizeLG).div(2).equal(),backgroundColor:ye.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${Ae}-inner`]:{backgroundColor:`${ye.colorBgContainer} !important`,borderColor:`${ye.colorPrimary} !important`}}}},{[`${pe}-disabled`]:{cursor:"not-allowed"},[`${Ae}-disabled`]:{[`&, ${Ae}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${Ae}-inner`]:{background:ye.colorBgContainerDisabled,borderColor:ye.colorBorder,"&:after":{borderColor:ye.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:ye.colorTextDisabled},[`&${Ae}-indeterminate ${Ae}-inner::after`]:{background:ye.colorTextDisabled}}}]};function me(ye,Ae){const pe=(0,ce.mergeToken)(Ae,{checkboxCls:`.${ye}`,checkboxSize:Ae.controlInteractiveSize});return[ve(pe)]}zt.ZP=(0,je.I$)("Checkbox",(ye,Ae)=>{let{prefixCls:pe}=Ae;return[me(pe,ye)]})},38406:function(bn,zt,z){"use strict";var y=z(59301),he=z(48755),ce=z(584);const je=ve=>{const{componentName:me}=ve,{getPrefixCls:ye}=(0,y.useContext)(he.E_),Ae=ye("empty");switch(me){case"Table":case"List":return y.createElement(ce.Z,{image:ce.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return y.createElement(ce.Z,{image:ce.Z.PRESENTED_IMAGE_SIMPLE,className:`${Ae}-small`});case"Table.filter":return null;default:return y.createElement(ce.Z,null)}};zt.Z=je},37285:function(bn,zt,z){"use strict";z.d(zt,{Z:function(){return He}});var y=z(59301),he=z(92310),ce=z.n(he),je=z(48755),ve=z(36237),me=z(63356),ye=z(16931),Ae=z(51636);const pe=Me=>{const{componentCls:Ee,sizePaddingEdgeHorizontal:we,colorSplit:Ne,lineWidth:Xe,textPaddingInline:ft,orientationMargin:Pe,verticalMarginInline:Fe}=Me;return{[Ee]:Object.assign(Object.assign({},(0,me.Wf)(Me)),{borderBlockStart:`${(0,ve.unit)(Xe)} solid ${Ne}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:Fe,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${(0,ve.unit)(Xe)} solid ${Ne}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${(0,ve.unit)(Me.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${Ee}-with-text`]:{display:"flex",alignItems:"center",margin:`${(0,ve.unit)(Me.dividerHorizontalWithTextGutterMargin)} 0`,color:Me.colorTextHeading,fontWeight:500,fontSize:Me.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${Ne}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${(0,ve.unit)(Xe)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${Ee}-with-text-start`]:{"&::before":{width:`calc(${Pe} * 100%)`},"&::after":{width:`calc(100% - ${Pe} * 100%)`}},[`&-horizontal${Ee}-with-text-end`]:{"&::before":{width:`calc(100% - ${Pe} * 100%)`},"&::after":{width:`calc(${Pe} * 100%)`}},[`${Ee}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:ft},"&-dashed":{background:"none",borderColor:Ne,borderStyle:"dashed",borderWidth:`${(0,ve.unit)(Xe)} 0 0`},[`&-horizontal${Ee}-with-text${Ee}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${Ee}-dashed`]:{borderInlineStartWidth:Xe,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:Ne,borderStyle:"dotted",borderWidth:`${(0,ve.unit)(Xe)} 0 0`},[`&-horizontal${Ee}-with-text${Ee}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${Ee}-dotted`]:{borderInlineStartWidth:Xe,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${Ee}-with-text`]:{color:Me.colorText,fontWeight:"normal",fontSize:Me.fontSize},[`&-horizontal${Ee}-with-text-start${Ee}-no-default-orientation-margin-start`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${Ee}-inner-text`]:{paddingInlineStart:we}},[`&-horizontal${Ee}-with-text-end${Ee}-no-default-orientation-margin-end`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${Ee}-inner-text`]:{paddingInlineEnd:we}}})}},le=Me=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:Me.marginXS});var Re=(0,ye.I$)("Divider",Me=>{const Ee=(0,Ae.mergeToken)(Me,{dividerHorizontalWithTextGutterMargin:Me.margin,dividerHorizontalGutterMargin:Me.marginLG,sizePaddingEdgeHorizontal:0});return[pe(Ee)]},le,{unitless:{orientationMargin:!0}}),Ie=function(Me,Ee){var we={};for(var Ne in Me)Object.prototype.hasOwnProperty.call(Me,Ne)&&Ee.indexOf(Ne)<0&&(we[Ne]=Me[Ne]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xe=0,Ne=Object.getOwnPropertySymbols(Me);Xe<Ne.length;Xe++)Ee.indexOf(Ne[Xe])<0&&Object.prototype.propertyIsEnumerable.call(Me,Ne[Xe])&&(we[Ne[Xe]]=Me[Ne[Xe]]);return we},He=Me=>{const{getPrefixCls:Ee,direction:we,className:Ne,style:Xe}=(0,je.dj)("divider"),{prefixCls:ft,type:Pe="horizontal",orientation:Fe="center",orientationMargin:Ze,className:$e,rootClassName:gt,children:ot,dashed:Qe,variant:ct="solid",plain:Ce,style:et}=Me,Te=Ie(Me,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style"]),ue=Ee("divider",ft),[mt,_e,lt]=Re(ue),Mt=!!ot,be=y.useMemo(()=>Fe==="left"?we==="rtl"?"end":"start":Fe==="right"?we==="rtl"?"start":"end":Fe,[we,Fe]),ge=be==="start"&&Ze!=null,Ft=be==="end"&&Ze!=null,_t=ce()(ue,Ne,_e,lt,`${ue}-${Pe}`,{[`${ue}-with-text`]:Mt,[`${ue}-with-text-${be}`]:Mt,[`${ue}-dashed`]:!!Qe,[`${ue}-${ct}`]:ct!=="solid",[`${ue}-plain`]:!!Ce,[`${ue}-rtl`]:we==="rtl",[`${ue}-no-default-orientation-margin-start`]:ge,[`${ue}-no-default-orientation-margin-end`]:Ft},$e,gt),Tt=y.useMemo(()=>typeof Ze=="number"?Ze:/^\d+$/.test(Ze)?Number(Ze):Ze,[Ze]),xe={marginInlineStart:ge?Tt:void 0,marginInlineEnd:Ft?Tt:void 0};return mt(y.createElement("div",Object.assign({className:_t,style:Object.assign(Object.assign({},Xe),et)},Te,{role:"separator"}),ot&&Pe!=="vertical"&&y.createElement("span",{className:`${ue}-inner-text`,style:xe},ot)))}},36207:function(bn,zt,z){"use strict";z.d(zt,{Z:function(){return bt}});var y=z(59301),he=z(92310),ce=z.n(he),je=z(33885),ve=z(42978),me=z(43403),ye=z(34280),Ae=y.createContext(null),pe=y.createContext({}),le=Ae,Re=z(20068),Ie=z(54476),tt=z(77900),He=z(10228),Me=z(26112),Ee=z(75931),we=z(8654),Ne=["prefixCls","className","containerRef"],Xe=function(We){var it=We.prefixCls,ht=We.className,Pt=We.containerRef,Le=(0,Ee.Z)(We,Ne),Ve=y.useContext(pe),Ot=Ve.panel,Yt=(0,we.x1)(Ot,Pt);return y.createElement("div",(0,Ie.Z)({className:ce()("".concat(it,"-content"),ht),role:"dialog",ref:Yt},(0,Me.Z)(We,{aria:!0}),{"aria-modal":"true"},Le))},ft=Xe,Pe=z(48736);function Fe(Ge){return typeof Ge=="string"&&String(Number(Ge))===Ge?((0,Pe.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(Ge)):Ge}function Ze(Ge){warning(!("wrapperClassName"in Ge),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!Ge.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var $e={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function gt(Ge,We){var it,ht,Pt,Le=Ge.prefixCls,Ve=Ge.open,Ot=Ge.placement,Yt=Ge.inline,un=Ge.push,tn=Ge.forceRender,Lt=Ge.autoFocus,ln=Ge.keyboard,$t=Ge.classNames,ze=Ge.rootClassName,yt=Ge.rootStyle,Ht=Ge.zIndex,en=Ge.className,Ke=Ge.id,xt=Ge.style,Zt=Ge.motion,dt=Ge.width,At=Ge.height,Ut=Ge.children,pn=Ge.mask,On=Ge.maskClosable,mn=Ge.maskMotion,Bn=Ge.maskClassName,Dt=Ge.maskStyle,hn=Ge.afterOpenChange,Wt=Ge.onClose,an=Ge.onMouseEnter,Vt=Ge.onMouseOver,cn=Ge.onMouseLeave,on=Ge.onClick,Zn=Ge.onKeyDown,_n=Ge.onKeyUp,Nn=Ge.styles,jn=Ge.drawerRender,Gn=y.useRef(),$n=y.useRef(),lr=y.useRef();y.useImperativeHandle(We,function(){return Gn.current});var nr=function(St){var It=St.keyCode,fn=St.shiftKey;switch(It){case He.Z.TAB:{if(It===He.Z.TAB){if(!fn&&document.activeElement===lr.current){var wn;(wn=$n.current)===null||wn===void 0||wn.focus({preventScroll:!0})}else if(fn&&document.activeElement===$n.current){var Pn;(Pn=lr.current)===null||Pn===void 0||Pn.focus({preventScroll:!0})}}break}case He.Z.ESC:{Wt&&ln&&(St.stopPropagation(),Wt(St));break}}};y.useEffect(function(){if(Ve&&Lt){var Ct;(Ct=Gn.current)===null||Ct===void 0||Ct.focus({preventScroll:!0})}},[Ve]);var dn=y.useState(!1),Cn=(0,ve.Z)(dn,2),Hn=Cn[0],Kn=Cn[1],Et=y.useContext(le),Rt;typeof un=="boolean"?Rt=un?{}:{distance:0}:Rt=un||{};var Je=(it=(ht=(Pt=Rt)===null||Pt===void 0?void 0:Pt.distance)!==null&&ht!==void 0?ht:Et==null?void 0:Et.pushDistance)!==null&&it!==void 0?it:180,Bt=y.useMemo(function(){return{pushDistance:Je,push:function(){Kn(!0)},pull:function(){Kn(!1)}}},[Je]);y.useEffect(function(){if(Ve){var Ct;Et==null||(Ct=Et.push)===null||Ct===void 0||Ct.call(Et)}else{var St;Et==null||(St=Et.pull)===null||St===void 0||St.call(Et)}},[Ve]),y.useEffect(function(){return function(){var Ct;Et==null||(Ct=Et.pull)===null||Ct===void 0||Ct.call(Et)}},[]);var Ue=pn&&y.createElement(tt.default,(0,Ie.Z)({key:"mask"},mn,{visible:Ve}),function(Ct,St){var It=Ct.className,fn=Ct.style;return y.createElement("div",{className:ce()("".concat(Le,"-mask"),It,$t==null?void 0:$t.mask,Bn),style:(0,je.Z)((0,je.Z)((0,je.Z)({},fn),Dt),Nn==null?void 0:Nn.mask),onClick:On&&Ve?Wt:void 0,ref:St})}),Nt=typeof Zt=="function"?Zt(Ot):Zt,Jt={};if(Hn&&Je)switch(Ot){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}Ot==="left"||Ot==="right"?Jt.width=Fe(dt):Jt.height=Fe(At);var Ln={onMouseEnter:an,onMouseOver:Vt,onMouseLeave:cn,onClick:on,onKeyDown:Zn,onKeyUp:_n},zn=y.createElement(tt.default,(0,Ie.Z)({key:"panel"},Nt,{visible:Ve,forceRender:tn,onVisibleChanged:function(St){hn==null||hn(St)},removeOnLeave:!1,leavedClassName:"".concat(Le,"-content-wrapper-hidden")}),function(Ct,St){var It=Ct.className,fn=Ct.style,wn=y.createElement(ft,(0,Ie.Z)({id:Ke,containerRef:St,prefixCls:Le,className:ce()(en,$t==null?void 0:$t.content),style:(0,je.Z)((0,je.Z)({},xt),Nn==null?void 0:Nn.content)},(0,Me.Z)(Ge,{aria:!0}),Ln),Ut);return y.createElement("div",(0,Ie.Z)({className:ce()("".concat(Le,"-content-wrapper"),$t==null?void 0:$t.wrapper,It),style:(0,je.Z)((0,je.Z)((0,je.Z)({},Jt),fn),Nn==null?void 0:Nn.wrapper)},(0,Me.Z)(Ge,{data:!0})),jn?jn(wn):wn)}),pt=(0,je.Z)({},yt);return Ht&&(pt.zIndex=Ht),y.createElement(le.Provider,{value:Bt},y.createElement("div",{className:ce()(Le,"".concat(Le,"-").concat(Ot),ze,(0,Re.Z)((0,Re.Z)({},"".concat(Le,"-open"),Ve),"".concat(Le,"-inline"),Yt)),style:pt,tabIndex:-1,ref:Gn,onKeyDown:nr},Ue,y.createElement("div",{tabIndex:0,ref:$n,style:$e,"aria-hidden":"true","data-sentinel":"start"}),zn,y.createElement("div",{tabIndex:0,ref:lr,style:$e,"aria-hidden":"true","data-sentinel":"end"})))}var ot=y.forwardRef(gt),Qe=ot,ct=function(We){var it=We.open,ht=it===void 0?!1:it,Pt=We.prefixCls,Le=Pt===void 0?"rc-drawer":Pt,Ve=We.placement,Ot=Ve===void 0?"right":Ve,Yt=We.autoFocus,un=Yt===void 0?!0:Yt,tn=We.keyboard,Lt=tn===void 0?!0:tn,ln=We.width,$t=ln===void 0?378:ln,ze=We.mask,yt=ze===void 0?!0:ze,Ht=We.maskClosable,en=Ht===void 0?!0:Ht,Ke=We.getContainer,xt=We.forceRender,Zt=We.afterOpenChange,dt=We.destroyOnClose,At=We.onMouseEnter,Ut=We.onMouseOver,pn=We.onMouseLeave,On=We.onClick,mn=We.onKeyDown,Bn=We.onKeyUp,Dt=We.panelRef,hn=y.useState(!1),Wt=(0,ve.Z)(hn,2),an=Wt[0],Vt=Wt[1],cn=y.useState(!1),on=(0,ve.Z)(cn,2),Zn=on[0],_n=on[1];(0,ye.Z)(function(){_n(!0)},[]);var Nn=Zn?ht:!1,jn=y.useRef(),Gn=y.useRef();(0,ye.Z)(function(){Nn&&(Gn.current=document.activeElement)},[Nn]);var $n=function(Hn){var Kn;if(Vt(Hn),Zt==null||Zt(Hn),!Hn&&Gn.current&&!((Kn=jn.current)!==null&&Kn!==void 0&&Kn.contains(Gn.current))){var Et;(Et=Gn.current)===null||Et===void 0||Et.focus({preventScroll:!0})}},lr=y.useMemo(function(){return{panel:Dt}},[Dt]);if(!xt&&!an&&!Nn&&dt)return null;var nr={onMouseEnter:At,onMouseOver:Ut,onMouseLeave:pn,onClick:On,onKeyDown:mn,onKeyUp:Bn},dn=(0,je.Z)((0,je.Z)({},We),{},{open:Nn,prefixCls:Le,placement:Ot,autoFocus:un,keyboard:Lt,width:$t,mask:yt,maskClosable:en,inline:Ke===!1,afterOpenChange:$n,ref:jn},nr);return y.createElement(pe.Provider,{value:lr},y.createElement(me.Z,{open:Nn||xt||an,autoDestroy:!1,getContainer:Ke,autoLock:yt&&(Nn||an)},y.createElement(Qe,dn)))},Ce=ct,et=Ce,Te=z(62487),ue=z(75030),mt=z(86641),_e=z(55743),lt=z(48755),Mt=z(91190),be=z(78776),ge=z(458),_t=Ge=>{var We,it;const{prefixCls:ht,title:Pt,footer:Le,extra:Ve,loading:Ot,onClose:Yt,headerStyle:un,bodyStyle:tn,footerStyle:Lt,children:ln,classNames:$t,styles:ze}=Ge,yt=(0,lt.dj)("drawer"),Ht=y.useCallback(dt=>y.createElement("button",{type:"button",onClick:Yt,"aria-label":"Close",className:`${ht}-close`},dt),[Yt]),[en,Ke]=(0,be.Z)((0,be.w)(Ge),(0,be.w)(yt),{closable:!0,closeIconRender:Ht}),xt=y.useMemo(()=>{var dt,At;return!Pt&&!en?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:ce()(`${ht}-header`,{[`${ht}-header-close-only`]:en&&!Pt&&!Ve},(At=yt.classNames)===null||At===void 0?void 0:At.header,$t==null?void 0:$t.header)},y.createElement("div",{className:`${ht}-header-title`},Ke,Pt&&y.createElement("div",{className:`${ht}-title`},Pt)),Ve&&y.createElement("div",{className:`${ht}-extra`},Ve))},[en,Ke,Ve,un,ht,Pt]),Zt=y.useMemo(()=>{var dt,At;if(!Le)return null;const Ut=`${ht}-footer`;return y.createElement("div",{className:ce()(Ut,(dt=yt.classNames)===null||dt===void 0?void 0:dt.footer,$t==null?void 0:$t.footer),style:Object.assign(Object.assign(Object.assign({},(At=yt.styles)===null||At===void 0?void 0:At.footer),Lt),ze==null?void 0:ze.footer)},Le)},[Le,Lt,ht]);return y.createElement(y.Fragment,null,xt,y.createElement("div",{className:ce()(`${ht}-body`,$t==null?void 0:$t.body,(We=yt.classNames)===null||We===void 0?void 0:We.body),style:Object.assign(Object.assign(Object.assign({},(it=yt.styles)===null||it===void 0?void 0:it.body),tn),ze==null?void 0:ze.body)},Ot?y.createElement(ge.Z,{active:!0,title:!1,paragraph:{rows:5},className:`${ht}-body-skeleton`}):ln),Zt)},Tt=z(36237),xe=z(63356),rt=z(16931),qe=z(51636);const Gt=Ge=>{const We="100%";return{left:`translateX(-${We})`,right:`translateX(${We})`,top:`translateY(-${We})`,bottom:`translateY(${We})`}[Ge]},at=(Ge,We)=>({"&-enter, &-appear":Object.assign(Object.assign({},Ge),{"&-active":We}),"&-leave":Object.assign(Object.assign({},We),{"&-active":Ge})}),st=(Ge,We)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${We}`}}},at({opacity:Ge},{opacity:1})),nt=(Ge,We)=>[st(.7,We),at({transform:Gt(Ge)},{transform:"none"})];var kt=Ge=>{const{componentCls:We,motionDurationSlow:it}=Ge;return{[We]:{[`${We}-mask-motion`]:st(0,it),[`${We}-panel-motion`]:["left","right","top","bottom"].reduce((ht,Pt)=>Object.assign(Object.assign({},ht),{[`&-${Pt}`]:nt(Pt,it)}),{})}}};const ae=Ge=>{const{borderRadiusSM:We,componentCls:it,zIndexPopup:ht,colorBgMask:Pt,colorBgElevated:Le,motionDurationSlow:Ve,motionDurationMid:Ot,paddingXS:Yt,padding:un,paddingLG:tn,fontSizeLG:Lt,lineHeightLG:ln,lineWidth:$t,lineType:ze,colorSplit:yt,marginXS:Ht,colorIcon:en,colorIconHover:Ke,colorBgTextHover:xt,colorBgTextActive:Zt,colorText:dt,fontWeightStrong:At,footerPaddingBlock:Ut,footerPaddingInline:pn,calc:On}=Ge,mn=`${it}-content-wrapper`;return{[it]:{position:"fixed",inset:0,zIndex:ht,pointerEvents:"none",color:dt,"&-pure":{position:"relative",background:Le,display:"flex",flexDirection:"column",[`&${it}-left`]:{boxShadow:Ge.boxShadowDrawerLeft},[`&${it}-right`]:{boxShadow:Ge.boxShadowDrawerRight},[`&${it}-top`]:{boxShadow:Ge.boxShadowDrawerUp},[`&${it}-bottom`]:{boxShadow:Ge.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${it}-mask`]:{position:"absolute",inset:0,zIndex:ht,background:Pt,pointerEvents:"auto"},[mn]:{position:"absolute",zIndex:ht,maxWidth:"100vw",transition:`all ${Ve}`,"&-hidden":{display:"none"}},[`&-left > ${mn}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:Ge.boxShadowDrawerLeft},[`&-right > ${mn}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:Ge.boxShadowDrawerRight},[`&-top > ${mn}`]:{top:0,insetInline:0,boxShadow:Ge.boxShadowDrawerUp},[`&-bottom > ${mn}`]:{bottom:0,insetInline:0,boxShadow:Ge.boxShadowDrawerDown},[`${it}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:Le,pointerEvents:"auto"},[`${it}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${(0,Tt.unit)(un)} ${(0,Tt.unit)(tn)}`,fontSize:Lt,lineHeight:ln,borderBottom:`${(0,Tt.unit)($t)} ${ze} ${yt}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${it}-extra`]:{flex:"none"},[`${it}-close`]:Object.assign({display:"inline-flex",width:On(Lt).add(Yt).equal(),height:On(Lt).add(Yt).equal(),borderRadius:We,justifyContent:"center",alignItems:"center",marginInlineEnd:Ht,color:en,fontWeight:At,fontSize:Lt,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${Ot}`,textRendering:"auto","&:hover":{color:Ke,backgroundColor:xt,textDecoration:"none"},"&:active":{backgroundColor:Zt}},(0,xe.Qy)(Ge)),[`${it}-title`]:{flex:1,margin:0,fontWeight:Ge.fontWeightStrong,fontSize:Lt,lineHeight:ln},[`${it}-body`]:{flex:1,minWidth:0,minHeight:0,padding:tn,overflow:"auto",[`${it}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${it}-footer`]:{flexShrink:0,padding:`${(0,Tt.unit)(Ut)} ${(0,Tt.unit)(pn)}`,borderTop:`${(0,Tt.unit)($t)} ${ze} ${yt}`},"&-rtl":{direction:"rtl"}}}},re=Ge=>({zIndexPopup:Ge.zIndexPopupBase,footerPaddingBlock:Ge.paddingXS,footerPaddingInline:Ge.padding});var te=(0,rt.I$)("Drawer",Ge=>{const We=(0,qe.mergeToken)(Ge,{});return[ae(We),kt(We)]},re),oe=function(Ge,We){var it={};for(var ht in Ge)Object.prototype.hasOwnProperty.call(Ge,ht)&&We.indexOf(ht)<0&&(it[ht]=Ge[ht]);if(Ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pt=0,ht=Object.getOwnPropertySymbols(Ge);Pt<ht.length;Pt++)We.indexOf(ht[Pt])<0&&Object.prototype.propertyIsEnumerable.call(Ge,ht[Pt])&&(it[ht[Pt]]=Ge[ht[Pt]]);return it};const de=null,ne={distance:180},se=Ge=>{var We;const{rootClassName:it,width:ht,height:Pt,size:Le="default",mask:Ve=!0,push:Ot=ne,open:Yt,afterOpenChange:un,onClose:tn,prefixCls:Lt,getContainer:ln,style:$t,className:ze,visible:yt,afterVisibleChange:Ht,maskStyle:en,drawerStyle:Ke,contentWrapperStyle:xt}=Ge,Zt=oe(Ge,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:dt,getPrefixCls:At,direction:Ut,className:pn,style:On,classNames:mn,styles:Bn}=(0,lt.dj)("drawer"),Dt=At("drawer",Lt),[hn,Wt,an]=te(Dt),Vt=ln===void 0&&dt?()=>dt(document.body):ln,cn=ce()({"no-mask":!Ve,[`${Dt}-rtl`]:Ut==="rtl"},it,Wt,an),on=y.useMemo(()=>ht!=null?ht:Le==="large"?736:378,[ht,Le]),Zn=y.useMemo(()=>Pt!=null?Pt:Le==="large"?736:378,[Pt,Le]),_n={motionName:(0,mt.m)(Dt,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},Nn=dn=>({motionName:(0,mt.m)(Dt,`panel-motion-${dn}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),jn=(0,Mt.H)(),[Gn,$n]=(0,ue.Cn)("Drawer",Zt.zIndex),{classNames:lr={},styles:nr={}}=Zt;return hn(y.createElement(Te.Z,{form:!0,space:!0},y.createElement(_e.Z.Provider,{value:$n},y.createElement(et,Object.assign({prefixCls:Dt,onClose:tn,maskMotion:_n,motion:Nn},Zt,{classNames:{mask:ce()(lr.mask,mn.mask),content:ce()(lr.content,mn.content),wrapper:ce()(lr.wrapper,mn.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},nr.mask),en),Bn.mask),content:Object.assign(Object.assign(Object.assign({},nr.content),Ke),Bn.content),wrapper:Object.assign(Object.assign(Object.assign({},nr.wrapper),xt),Bn.wrapper)},open:Yt!=null?Yt:yt,mask:Ve,push:Ot,width:on,height:Zn,style:Object.assign(Object.assign({},On),$t),className:ce()(pn,ze),rootClassName:cn,getContainer:Vt,afterOpenChange:un!=null?un:Ht,panelRef:jn,zIndex:Gn}),y.createElement(_t,Object.assign({prefixCls:Dt},Zt,{onClose:tn}))))))},Oe=Ge=>{const{prefixCls:We,style:it,className:ht,placement:Pt="right"}=Ge,Le=oe(Ge,["prefixCls","style","className","placement"]),{getPrefixCls:Ve}=y.useContext(lt.E_),Ot=Ve("drawer",We),[Yt,un,tn]=te(Ot),Lt=ce()(Ot,`${Ot}-pure`,`${Ot}-${Pt}`,un,tn,ht);return Yt(y.createElement("div",{className:Lt,style:it},y.createElement(_t,Object.assign({prefixCls:Ot},Le))))};se._InternalPanelDoNotUseOrYouWillBeFired=Oe;var bt=se},19563:function(bn,zt,z){"use strict";z.d(zt,{Z:function(){return Tt}});var y=z(59301),he=z(33853),ce=z(38819),je=z(92310),ve=z.n(je),me=z(96478),ye=z(6089),Ae=z(18929),pe=z(2738),le=z(75030),Ie=xe=>typeof xe!="object"&&typeof xe!="function"||xe===null,tt=z(52838),He=z(45915),Me=z(22703),Ee=z(32383),we=z(55743),Ne=z(48755),Xe=z(83397),ft=z(93041),Pe=z(78857),Fe=z(57700),Ze=z(36237),$e=z(63356),gt=z(46e3),ot=z(93873),Qe=z(34925),ct=z(37645),Ce=z(36305),et=z(16931),Te=z(51636),mt=xe=>{const{componentCls:rt,menuCls:qe,colorError:Gt,colorTextLightSolid:at}=xe,st=`${qe}-item`;return{[`${rt}, ${rt}-menu-submenu`]:{[`${qe} ${st}`]:{[`&${st}-danger:not(${st}-disabled)`]:{color:Gt,"&:hover":{color:at,backgroundColor:Gt}}}}}};const _e=xe=>{const{componentCls:rt,menuCls:qe,zIndexPopup:Gt,dropdownArrowDistance:at,sizePopupArrow:st,antCls:nt,iconCls:rn,motionDurationMid:kt,paddingBlock:ae,fontSize:re,dropdownEdgeChildPadding:te,colorTextDisabled:oe,fontSizeIcon:de,controlPaddingHorizontal:ne,colorBgElevated:se}=xe;return[{[rt]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:Gt,display:"block","&::before":{position:"absolute",insetBlock:xe.calc(st).div(2).sub(at).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${nt}-btn`]:{[`& > ${rn}-down, & > ${nt}-btn-icon > ${rn}-down`]:{fontSize:de}},[`${rt}-wrap`]:{position:"relative",[`${nt}-btn > ${rn}-down`]:{fontSize:de},[`${rn}-down::before`]:{transition:`transform ${kt}`}},[`${rt}-wrap-open`]:{[`${rn}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${nt}-slide-down-enter${nt}-slide-down-enter-active${rt}-placement-bottomLeft,
&${nt}-slide-down-appear${nt}-slide-down-appear-active${rt}-placement-bottomLeft,
&${nt}-slide-down-enter${nt}-slide-down-enter-active${rt}-placement-bottom,
&${nt}-slide-down-appear${nt}-slide-down-appear-active${rt}-placement-bottom,
&${nt}-slide-down-enter${nt}-slide-down-enter-active${rt}-placement-bottomRight,
&${nt}-slide-down-appear${nt}-slide-down-appear-active${rt}-placement-bottomRight`]:{animationName:gt.fJ},[`&${nt}-slide-up-enter${nt}-slide-up-enter-active${rt}-placement-topLeft,
&${nt}-slide-up-appear${nt}-slide-up-appear-active${rt}-placement-topLeft,
&${nt}-slide-up-enter${nt}-slide-up-enter-active${rt}-placement-top,
&${nt}-slide-up-appear${nt}-slide-up-appear-active${rt}-placement-top,
&${nt}-slide-up-enter${nt}-slide-up-enter-active${rt}-placement-topRight,
&${nt}-slide-up-appear${nt}-slide-up-appear-active${rt}-placement-topRight`]:{animationName:gt.Qt},[`&${nt}-slide-down-leave${nt}-slide-down-leave-active${rt}-placement-bottomLeft,
&${nt}-slide-down-leave${nt}-slide-down-leave-active${rt}-placement-bottom,
&${nt}-slide-down-leave${nt}-slide-down-leave-active${rt}-placement-bottomRight`]:{animationName:gt.Uw},[`&${nt}-slide-up-leave${nt}-slide-up-leave-active${rt}-placement-topLeft,
&${nt}-slide-up-leave${nt}-slide-up-leave-active${rt}-placement-top,
&${nt}-slide-up-leave${nt}-slide-up-leave-active${rt}-placement-topRight`]:{animationName:gt.ly}}},(0,ct.ZP)(xe,se,{arrowPlacement:{top:!0,bottom:!0}}),{[`${rt} ${qe}`]:{position:"relative",margin:0},[`${qe}-submenu-popup`]:{position:"absolute",zIndex:Gt,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${rt}, ${rt}-menu-submenu`]:Object.assign(Object.assign({},(0,$e.Wf)(xe)),{[qe]:Object.assign(Object.assign({padding:te,listStyleType:"none",backgroundColor:se,backgroundClip:"padding-box",borderRadius:xe.borderRadiusLG,outline:"none",boxShadow:xe.boxShadowSecondary},(0,$e.Qy)(xe)),{"&:empty":{padding:0,boxShadow:"none"},[`${qe}-item-group-title`]:{padding:`${(0,Ze.unit)(ae)} ${(0,Ze.unit)(ne)}`,color:xe.colorTextDescription,transition:`all ${kt}`},[`${qe}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${qe}-item-icon`]:{minWidth:re,marginInlineEnd:xe.marginXS,fontSize:xe.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:xe.padding,marginInlineStart:"auto",fontSize:xe.fontSizeSM,color:xe.colorTextDescription}},[`${qe}-item, ${qe}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${(0,Ze.unit)(ae)} ${(0,Ze.unit)(ne)}`,color:xe.colorText,fontWeight:"normal",fontSize:re,lineHeight:xe.lineHeight,cursor:"pointer",transition:`all ${kt}`,borderRadius:xe.borderRadiusSM,"&:hover, &-active":{backgroundColor:xe.controlItemBgHover}},(0,$e.Qy)(xe)),{"&-selected":{color:xe.colorPrimary,backgroundColor:xe.controlItemBgActive,"&:hover, &-active":{backgroundColor:xe.controlItemBgActiveHover}},"&-disabled":{color:oe,cursor:"not-allowed","&:hover":{color:oe,backgroundColor:se,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${(0,Ze.unit)(xe.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:xe.colorSplit},[`${rt}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:xe.paddingXS,[`${rt}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:xe.colorTextDescription,fontSize:de,fontStyle:"normal"}}}),[`${qe}-item-group-list`]:{margin:`0 ${(0,Ze.unit)(xe.marginXS)}`,padding:0,listStyle:"none"},[`${qe}-submenu-title`]:{paddingInlineEnd:xe.calc(ne).add(xe.fontSizeSM).equal()},[`${qe}-submenu-vertical`]:{position:"relative"},[`${qe}-submenu${qe}-submenu-disabled ${rt}-menu-submenu-title`]:{[`&, ${rt}-menu-submenu-arrow-icon`]:{color:oe,backgroundColor:se,cursor:"not-allowed"}},[`${qe}-submenu-selected ${rt}-menu-submenu-title`]:{color:xe.colorPrimary}})})},[(0,gt.oN)(xe,"slide-up"),(0,gt.oN)(xe,"slide-down"),(0,ot.Fm)(xe,"move-up"),(0,ot.Fm)(xe,"move-down"),(0,Qe._y)(xe,"zoom-big")]]},lt=xe=>Object.assign(Object.assign({zIndexPopup:xe.zIndexPopupBase+50,paddingBlock:(xe.controlHeight-xe.fontSize*xe.lineHeight)/2},(0,ct.wZ)({contentRadius:xe.borderRadiusLG,limitVerticalRadius:!0})),(0,Ce.w)(xe));var Mt=(0,et.I$)("Dropdown",xe=>{const{marginXXS:rt,sizePopupArrow:qe,paddingXXS:Gt,componentCls:at}=xe,st=(0,Te.mergeToken)(xe,{menuCls:`${at}-menu`,dropdownArrowDistance:xe.calc(qe).div(2).add(rt).equal(),dropdownEdgeChildPadding:Gt});return[_e(st),mt(st)]},lt,{resetStyle:!1});const be=null,ge=xe=>{var rt;const{menu:qe,arrow:Gt,prefixCls:at,children:st,trigger:nt,disabled:rn,dropdownRender:kt,getPopupContainer:ae,overlayClassName:re,rootClassName:te,overlayStyle:oe,open:de,onOpenChange:ne,visible:se,onVisibleChange:Oe,mouseEnterDelay:bt=.15,mouseLeaveDelay:Ge=.1,autoAdjustOverflow:We=!0,placement:it="",overlay:ht,transitionName:Pt}=xe,{getPopupContainer:Le,getPrefixCls:Ve,direction:Ot,dropdown:Yt}=y.useContext(Ne.E_),un=(0,Ee.ln)("Dropdown"),tn=y.useMemo(()=>{const Vt=Ve();return Pt!==void 0?Pt:it.includes("top")?`${Vt}-slide-down`:`${Vt}-slide-up`},[Ve,it,Pt]),Lt=y.useMemo(()=>it?it.includes("Center")?it.slice(0,it.indexOf("Center")):it:Ot==="rtl"?"bottomRight":"bottomLeft",[it,Ot]),ln=Ve("dropdown",at),$t=(0,Xe.Z)(ln),[ze,yt,Ht]=Mt(ln,$t),[,en]=(0,Fe.ZP)(),Ke=y.Children.only(Ie(st)?y.createElement("span",null,st):st),xt=(0,Me.Tm)(Ke,{className:ve()(`${ln}-trigger`,{[`${ln}-rtl`]:Ot==="rtl"},Ke.props.className),disabled:(rt=Ke.props.disabled)!==null&&rt!==void 0?rt:rn}),Zt=rn?[]:nt,dt=!!(Zt!=null&&Zt.includes("contextMenu")),[At,Ut]=(0,Ae.Z)(!1,{value:de!=null?de:se}),pn=(0,ye.Z)(Vt=>{ne==null||ne(Vt,{source:"trigger"}),Oe==null||Oe(Vt),Ut(Vt)}),On=ve()(re,te,yt,Ht,$t,Yt==null?void 0:Yt.className,{[`${ln}-rtl`]:Ot==="rtl"}),mn=(0,tt.Z)({arrowPointAtCenter:typeof Gt=="object"&&Gt.pointAtCenter,autoAdjustOverflow:We,offset:en.marginXXS,arrowWidth:Gt?en.sizePopupArrow:0,borderRadius:en.borderRadius}),Bn=y.useCallback(()=>{qe!=null&&qe.selectable&&(qe!=null&&qe.multiple)||(ne==null||ne(!1,{source:"menu"}),Ut(!1))},[qe==null?void 0:qe.selectable,qe==null?void 0:qe.multiple]),Dt=()=>{let Vt;return qe!=null&&qe.items?Vt=y.createElement(ft.default,Object.assign({},qe)):typeof ht=="function"?Vt=ht():Vt=ht,kt&&(Vt=kt(Vt)),Vt=y.Children.only(typeof Vt=="string"?y.createElement("span",null,Vt):Vt),y.createElement(Pe.J,{prefixCls:`${ln}-menu`,rootClassName:ve()(Ht,$t),expandIcon:y.createElement("span",{className:`${ln}-menu-submenu-arrow`},Ot==="rtl"?y.createElement(he.Z,{className:`${ln}-menu-submenu-arrow-icon`}):y.createElement(ce.Z,{className:`${ln}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Bn,validator:cn=>{let{mode:on}=cn}},Vt)},[hn,Wt]=(0,le.Cn)("Dropdown",oe==null?void 0:oe.zIndex);let an=y.createElement(me.Z,Object.assign({alignPoint:dt},(0,pe.Z)(xe,["rootClassName"]),{mouseEnterDelay:bt,mouseLeaveDelay:Ge,visible:At,builtinPlacements:mn,arrow:!!Gt,overlayClassName:On,prefixCls:ln,getPopupContainer:ae||Le,transitionName:tn,trigger:Zt,overlay:Dt,placement:Lt,onVisibleChange:pn,overlayStyle:Object.assign(Object.assign(Object.assign({},Yt==null?void 0:Yt.style),oe),{zIndex:hn})}),xt);return hn&&(an=y.createElement(we.Z.Provider,{value:Wt},an)),ze(an)},Ft=(0,He.Z)(ge,"align",void 0,"dropdown",xe=>xe),_t=xe=>y.createElement(Ft,Object.assign({},xe),y.createElement("span",null));ge._InternalPanelDoNotUseOrYouWillBeFired=_t;var Tt=ge},75727:function(bn,zt,z){"use strict";z.d(zt,{Z:function(){return He}});var y=z(19563),he=z(59301),ce=z(18785),je=z(92310),ve=z.n(je),me=z(7939),ye=z(48755),Ae=z(44104),pe=z(70045),le=function(Me,Ee){var we={};for(var Ne in Me)Object.prototype.hasOwnProperty.call(Me,Ne)&&Ee.indexOf(Ne)<0&&(we[Ne]=Me[Ne]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xe=0,Ne=Object.getOwnPropertySymbols(Me);Xe<Ne.length;Xe++)Ee.indexOf(Ne[Xe])<0&&Object.prototype.propertyIsEnumerable.call(Me,Ne[Xe])&&(we[Ne[Xe]]=Me[Ne[Xe]]);return we};const Re=Me=>{const{getPopupContainer:Ee,getPrefixCls:we,direction:Ne}=he.useContext(ye.E_),{prefixCls:Xe,type:ft="default",danger:Pe,disabled:Fe,loading:Ze,onClick:$e,htmlType:gt,children:ot,className:Qe,menu:ct,arrow:Ce,autoFocus:et,overlay:Te,trigger:ue,align:mt,open:_e,onOpenChange:lt,placement:Mt,getPopupContainer:be,href:ge,icon:Ft=he.createElement(ce.Z,null),title:_t,buttonsRender:Tt=bt=>bt,mouseEnterDelay:xe,mouseLeaveDelay:rt,overlayClassName:qe,overlayStyle:Gt,destroyPopupOnHide:at,dropdownRender:st}=Me,nt=le(Me,["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"]),rn=we("dropdown",Xe),kt=`${rn}-button`,ae={menu:ct,arrow:Ce,autoFocus:et,align:mt,disabled:Fe,trigger:Fe?[]:ue,onOpenChange:lt,getPopupContainer:be||Ee,mouseEnterDelay:xe,mouseLeaveDelay:rt,overlayClassName:qe,overlayStyle:Gt,destroyPopupOnHide:at,dropdownRender:st},{compactSize:re,compactItemClassnames:te}=(0,pe.ri)(rn,Ne),oe=ve()(kt,te,Qe);"overlay"in Me&&(ae.overlay=Te),"open"in Me&&(ae.open=_e),"placement"in Me?ae.placement=Mt:ae.placement=Ne==="rtl"?"bottomLeft":"bottomRight";const de=he.createElement(me.ZP,{type:ft,danger:Pe,disabled:Fe,loading:Ze,onClick:$e,htmlType:gt,href:ge,title:_t},ot),ne=he.createElement(me.ZP,{type:ft,danger:Pe,icon:Ft}),[se,Oe]=Tt([de,ne]);return he.createElement(Ae.Z.Compact,Object.assign({className:oe,size:re,block:!0},nt),se,he.createElement(y.Z,Object.assign({},ae),Oe))};Re.__ANT_BUTTON=!0;var Ie=Re;const tt=y.Z;tt.Button=Ie;var He=tt},584:function(bn,zt,z){"use strict";z.d(zt,{Z:function(){return ft}});var y=z(59301),he=z(92310),ce=z.n(he),je=z(9017),ve=z(17835),me=z(57700),Ae=()=>{const[,Pe]=(0,me.ZP)(),[Fe]=(0,je.Z)("Empty"),$e=new ve.FastColor(Pe.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return y.createElement("svg",{style:$e,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},y.createElement("title",null,(Fe==null?void 0:Fe.description)||"Empty"),y.createElement("g",{fill:"none",fillRule:"evenodd"},y.createElement("g",{transform:"translate(24 31.67)"},y.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),y.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),y.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),y.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),y.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),y.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),y.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},y.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),y.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},le=()=>{const[,Pe]=(0,me.ZP)(),[Fe]=(0,je.Z)("Empty"),{colorFill:Ze,colorFillTertiary:$e,colorFillQuaternary:gt,colorBgContainer:ot}=Pe,{borderColor:Qe,shadowColor:ct,contentColor:Ce}=(0,y.useMemo)(()=>({borderColor:new ve.FastColor(Ze).onBackground(ot).toHexString(),shadowColor:new ve.FastColor($e).onBackground(ot).toHexString(),contentColor:new ve.FastColor(gt).onBackground(ot).toHexString()}),[Ze,$e,gt,ot]);return y.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},y.createElement("title",null,(Fe==null?void 0:Fe.description)||"Empty"),y.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},y.createElement("ellipse",{fill:ct,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:Ce}))))},Re=z(16931),Ie=z(51636);const tt=Pe=>{const{componentCls:Fe,margin:Ze,marginXS:$e,marginXL:gt,fontSize:ot,lineHeight:Qe}=Pe;return{[Fe]:{marginInline:$e,fontSize:ot,lineHeight:Qe,textAlign:"center",[`${Fe}-image`]:{height:Pe.emptyImgHeight,marginBottom:$e,opacity:Pe.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${Fe}-description`]:{color:Pe.colorTextDescription},[`${Fe}-footer`]:{marginTop:Ze},"&-normal":{marginBlock:gt,color:Pe.colorTextDescription,[`${Fe}-description`]:{color:Pe.colorTextDescription},[`${Fe}-image`]:{height:Pe.emptyImgHeightMD}},"&-small":{marginBlock:$e,color:Pe.colorTextDescription,[`${Fe}-image`]:{height:Pe.emptyImgHeightSM}}}}};var He=(0,Re.I$)("Empty",Pe=>{const{componentCls:Fe,controlHeightLG:Ze,calc:$e}=Pe,gt=(0,Ie.mergeToken)(Pe,{emptyImgCls:`${Fe}-img`,emptyImgHeight:$e(Ze).mul(2.5).equal(),emptyImgHeightMD:Ze,emptyImgHeightSM:$e(Ze).mul(.875).equal()});return[tt(gt)]}),Me=z(48755),Ee=function(Pe,Fe){var Ze={};for(var $e in Pe)Object.prototype.hasOwnProperty.call(Pe,$e)&&Fe.indexOf($e)<0&&(Ze[$e]=Pe[$e]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,$e=Object.getOwnPropertySymbols(Pe);gt<$e.length;gt++)Fe.indexOf($e[gt])<0&&Object.prototype.propertyIsEnumerable.call(Pe,$e[gt])&&(Ze[$e[gt]]=Pe[$e[gt]]);return Ze};const we=y.createElement(Ae,null),Ne=y.createElement(le,null),Xe=Pe=>{const{className:Fe,rootClassName:Ze,prefixCls:$e,image:gt=we,description:ot,children:Qe,imageStyle:ct,style:Ce,classNames:et,styles:Te}=Pe,ue=Ee(Pe,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:mt,direction:_e,className:lt,style:Mt,classNames:be,styles:ge}=(0,Me.dj)("empty"),Ft=mt("empty",$e),[_t,Tt,xe]=He(Ft),[rt]=(0,je.Z)("Empty"),qe=typeof ot!="undefined"?ot:rt==null?void 0:rt.description,Gt=typeof qe=="string"?qe:"empty";let at=null;return typeof gt=="string"?at=y.createElement("img",{alt:Gt,src:gt}):at=gt,_t(y.createElement("div",Object.assign({className:ce()(Tt,xe,Ft,lt,{[`${Ft}-normal`]:gt===Ne,[`${Ft}-rtl`]:_e==="rtl"},Fe,Ze,be.root,et==null?void 0:et.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},ge.root),Mt),Te==null?void 0:Te.root),Ce)},ue),y.createElement("div",{className:ce()(`${Ft}-image`,be.image,et==null?void 0:et.image),style:Object.assign(Object.assign(Object.assign({},ct),ge.image),Te==null?void 0:Te.image)},at),qe&&y.createElement("div",{className:ce()(`${Ft}-description`,be.description,et==null?void 0:et.description),style:Object.assign(Object.assign({},ge.description),Te==null?void 0:Te.description)},qe),Qe&&y.createElement("div",{className:ce()(`${Ft}-footer`,be.footer,et==null?void 0:et.footer),style:Object.assign(Object.assign({},ge.footer),Te==null?void 0:Te.footer)},Qe)))};Xe.PRESENTED_IMAGE_DEFAULT=we,Xe.PRESENTED_IMAGE_SIMPLE=Ne;var ft=Xe},28284:function(bn,zt,z){"use strict";z.d(zt,{default:function(){return Rt}});var y=z(56553),he=z(94480),ce=z(59301),je=z(92310),ve=z.n(je),me=z(77900),ye=z(86641),Ae=z(83397);function pe(Je){const[Bt,Ue]=ce.useState(Je);return ce.useEffect(()=>{const Nt=setTimeout(()=>{Ue(Je)},Je.length?0:10);return()=>{clearTimeout(Nt)}},[Je]),Bt}var le=z(36237),Re=z(63356),Ie=z(34925),tt=z(34961),He=z(51636),Me=z(16931),we=Je=>{const{componentCls:Bt}=Je,Ue=`${Bt}-show-help`,Nt=`${Bt}-show-help-item`;return{[Ue]:{transition:`opacity ${Je.motionDurationFast} ${Je.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[Nt]:{overflow:"hidden",transition:`height ${Je.motionDurationFast} ${Je.motionEaseInOut},
opacity ${Je.motionDurationFast} ${Je.motionEaseInOut},
transform ${Je.motionDurationFast} ${Je.motionEaseInOut} !important`,[`&${Nt}-appear, &${Nt}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${Nt}-leave-active`]:{transform:"translateY(-5px)"}}}}};const Ne=Je=>({legend:{display:"block",width:"100%",marginBottom:Je.marginLG,padding:0,color:Je.colorTextDescription,fontSize:Je.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${(0,le.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,le.unit)(Je.controlOutlineWidth)} ${Je.controlOutline}`},output:{display:"block",paddingTop:15,color:Je.colorText,fontSize:Je.fontSize,lineHeight:Je.lineHeight}}),Xe=(Je,Bt)=>{const{formItemCls:Ue}=Je;return{[Ue]:{[`${Ue}-label > label`]:{height:Bt},[`${Ue}-control-input`]:{minHeight:Bt}}}},ft=Je=>{const{componentCls:Bt}=Je;return{[Je.componentCls]:Object.assign(Object.assign(Object.assign({},(0,Re.Wf)(Je)),Ne(Je)),{[`${Bt}-text`]:{display:"inline-block",paddingInlineEnd:Je.paddingSM},"&-small":Object.assign({},Xe(Je,Je.controlHeightSM)),"&-large":Object.assign({},Xe(Je,Je.controlHeightLG))})}},Pe=Je=>{const{formItemCls:Bt,iconCls:Ue,rootPrefixCls:Nt,antCls:Jt,labelRequiredMarkColor:Ln,labelColor:zn,labelFontSize:pt,labelHeight:Ct,labelColonMarginInlineStart:St,labelColonMarginInlineEnd:It,itemMarginBottom:fn}=Je;return{[Bt]:Object.assign(Object.assign({},(0,Re.Wf)(Je)),{marginBottom:fn,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
&-hidden${Jt}-row`]:{display:"none"},"&-has-warning":{[`${Bt}-split`]:{color:Je.colorError}},"&-has-error":{[`${Bt}-split`]:{color:Je.colorWarning}},[`${Bt}-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:Ct,color:zn,fontSize:pt,[`> ${Ue}`]:{fontSize:Je.fontSize,verticalAlign:"top"},[`&${Bt}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:Je.marginXXS,color:Ln,fontSize:Je.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${Bt}-required-mark-hidden, &${Bt}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${Bt}-optional`]:{display:"inline-block",marginInlineStart:Je.marginXXS,color:Je.colorTextDescription,[`&${Bt}-required-mark-hidden`]:{display:"none"}},[`${Bt}-tooltip`]:{color:Je.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:Je.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:St,marginInlineEnd:It},[`&${Bt}-no-colon::after`]:{content:'"\\a0"'}}},[`${Bt}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${Nt}-col-'"]):not([class*="' ${Nt}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:Je.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[Bt]:{"&-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 ${Bt}-explain`]:{height:"auto",opacity:1},[`${Bt}-feedback-icon`]:{fontSize:Je.fontSize,textAlign:"center",visibility:"visible",animationName:Ie.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}}})}},Fe=(Je,Bt)=>{const{formItemCls:Ue}=Je;return{[`${Bt}-horizontal`]:{[`${Ue}-label`]:{flexGrow:0},[`${Ue}-control`]:{flex:"1 1 0",minWidth:0},[`${Ue}-label[class$='-24'], ${Ue}-label[class*='-24 ']`]:{[`& + ${Ue}-control`]:{minWidth:"unset"}}}}},Ze=Je=>{const{componentCls:Bt,formItemCls:Ue,inlineItemMarginBottom:Nt}=Je;return{[`${Bt}-inline`]:{display:"flex",flexWrap:"wrap",[Ue]:{flex:"none",marginInlineEnd:Je.margin,marginBottom:Nt,"&-row":{flexWrap:"nowrap"},[`> ${Ue}-label,
> ${Ue}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${Ue}-label`]:{flex:"none"},[`${Bt}-text`]:{display:"inline-block"},[`${Ue}-has-feedback`]:{display:"inline-block"}}}}},$e=Je=>({padding:Je.verticalLabelPadding,margin:Je.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),gt=Je=>{const{componentCls:Bt,formItemCls:Ue,rootPrefixCls:Nt}=Je;return{[`${Ue} ${Ue}-label`]:$e(Je),[`${Bt}:not(${Bt}-inline)`]:{[Ue]:{flexWrap:"wrap",[`${Ue}-label, ${Ue}-control`]:{[`&:not([class*=" ${Nt}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},ot=Je=>{const{componentCls:Bt,formItemCls:Ue,antCls:Nt}=Je;return{[`${Bt}-vertical`]:{[`${Ue}:not(${Ue}-horizontal)`]:{[`${Ue}-row`]:{flexDirection:"column"},[`${Ue}-label > label`]:{height:"auto"},[`${Ue}-control`]:{width:"100%"},[`${Ue}-label,
${Nt}-col-24${Ue}-label,
${Nt}-col-xl-24${Ue}-label`]:$e(Je)}},[`@media (max-width: ${(0,le.unit)(Je.screenXSMax)})`]:[gt(Je),{[Bt]:{[`${Ue}:not(${Ue}-horizontal)`]:{[`${Nt}-col-xs-24${Ue}-label`]:$e(Je)}}}],[`@media (max-width: ${(0,le.unit)(Je.screenSMMax)})`]:{[Bt]:{[`${Ue}:not(${Ue}-horizontal)`]:{[`${Nt}-col-sm-24${Ue}-label`]:$e(Je)}}},[`@media (max-width: ${(0,le.unit)(Je.screenMDMax)})`]:{[Bt]:{[`${Ue}:not(${Ue}-horizontal)`]:{[`${Nt}-col-md-24${Ue}-label`]:$e(Je)}}},[`@media (max-width: ${(0,le.unit)(Je.screenLGMax)})`]:{[Bt]:{[`${Ue}:not(${Ue}-horizontal)`]:{[`${Nt}-col-lg-24${Ue}-label`]:$e(Je)}}}}},Qe=Je=>{const{formItemCls:Bt,antCls:Ue}=Je;return{[`${Bt}-vertical`]:{[`${Bt}-row`]:{flexDirection:"column"},[`${Bt}-label > label`]:{height:"auto"},[`${Bt}-control`]:{width:"100%"}},[`${Bt}-vertical ${Bt}-label,
${Ue}-col-24${Bt}-label,
${Ue}-col-xl-24${Bt}-label`]:$e(Je),[`@media (max-width: ${(0,le.unit)(Je.screenXSMax)})`]:[gt(Je),{[Bt]:{[`${Ue}-col-xs-24${Bt}-label`]:$e(Je)}}],[`@media (max-width: ${(0,le.unit)(Je.screenSMMax)})`]:{[Bt]:{[`${Ue}-col-sm-24${Bt}-label`]:$e(Je)}},[`@media (max-width: ${(0,le.unit)(Je.screenMDMax)})`]:{[Bt]:{[`${Ue}-col-md-24${Bt}-label`]:$e(Je)}},[`@media (max-width: ${(0,le.unit)(Je.screenLGMax)})`]:{[Bt]:{[`${Ue}-col-lg-24${Bt}-label`]:$e(Je)}}}},ct=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}),Ce=(Je,Bt)=>(0,He.mergeToken)(Je,{formItemCls:`${Je.componentCls}-item`,rootPrefixCls:Bt});var et=(0,Me.I$)("Form",(Je,Bt)=>{let{rootPrefixCls:Ue}=Bt;const Nt=Ce(Je,Ue);return[ft(Nt),Pe(Nt),we(Nt),Fe(Nt,Nt.componentCls),Fe(Nt,Nt.formItemCls),Ze(Nt),ot(Nt),Qe(Nt),(0,tt.Z)(Nt),Ie.kr]},ct,{order:-1e3});const Te=[];function ue(Je,Bt,Ue){let Nt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof Je=="string"?Je:`${Bt}-${Nt}`,error:Je,errorStatus:Ue}}var _e=Je=>{let{help:Bt,helpStatus:Ue,errors:Nt=Te,warnings:Jt=Te,className:Ln,fieldId:zn,onVisibleChanged:pt}=Je;const{prefixCls:Ct}=ce.useContext(y.Rk),St=`${Ct}-item-explain`,It=(0,Ae.Z)(Ct),[fn,wn,Pn]=et(Ct,It),In=ce.useMemo(()=>(0,ye.Z)(Ct),[Ct]),qn=pe(Nt),rr=pe(Jt),ir=ce.useMemo(()=>Bt!=null?[ue(Bt,"help",Ue)]:[].concat((0,he.Z)(qn.map((ar,fr)=>ue(ar,"error","error",fr))),(0,he.Z)(rr.map((ar,fr)=>ue(ar,"warning","warning",fr)))),[Bt,Ue,qn,rr]),sr=ce.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(ce.createElement(me.default,{motionDeadline:In.motionDeadline,motionName:`${Ct}-show-help`,visible:!!sr.length,onVisibleChanged:pt},ar=>{const{className:fr,style:Sr}=ar;return ce.createElement("div",Object.assign({},Qn,{className:ve()(St,fr,Pn,It,Ln,wn),style:Sr}),ce.createElement(me.CSSMotionList,Object.assign({keys:sr},(0,ye.Z)(Ct),{motionName:`${Ct}-show-help-item`,component:!1}),br=>{const{key:jr,error:$r,errorStatus:hr,className:Mr,style:eo}=br;return ce.createElement("div",{key:jr,className:ve()(Mr,{[`${St}-${hr}`]:hr}),style:eo},$r)}))}))},lt=z(22001),Mt=z(48755),be=z(2171),ge=z(31756),Ft=z(23069),_t=z(76846),Tt=z(16722);const xe=["parentNode"],rt="form_item";function qe(Je){return Je===void 0||Je===!1?[]:Array.isArray(Je)?Je:[Je]}function Gt(Je,Bt){if(!Je.length)return;const Ue=Je.join("_");return Bt?`${Bt}_${Ue}`:xe.includes(Ue)?`${rt}_${Ue}`:Ue}function at(Je,Bt,Ue,Nt,Jt,Ln){let zn=Nt;return Ln!==void 0?zn=Ln:Ue.validating?zn="validating":Je.length?zn="error":Bt.length?zn="warning":(Ue.touched||Jt&&Ue.validated)&&(zn="success"),zn}var st=function(Je,Bt){var Ue={};for(var Nt in Je)Object.prototype.hasOwnProperty.call(Je,Nt)&&Bt.indexOf(Nt)<0&&(Ue[Nt]=Je[Nt]);if(Je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Jt=0,Nt=Object.getOwnPropertySymbols(Je);Jt<Nt.length;Jt++)Bt.indexOf(Nt[Jt])<0&&Object.prototype.propertyIsEnumerable.call(Je,Nt[Jt])&&(Ue[Nt[Jt]]=Je[Nt[Jt]]);return Ue};function nt(Je){return qe(Je).join("_")}function rn(Je,Bt){const Ue=Bt.getFieldInstance(Je),Nt=(0,_t.bn)(Ue);if(Nt)return Nt;const Jt=Gt(qe(Je),Bt.__INTERNAL__.name);if(Jt)return document.getElementById(Jt)}function kt(Je){const[Bt]=(0,lt.useForm)(),Ue=ce.useRef({}),Nt=ce.useMemo(()=>Je!=null?Je:Object.assign(Object.assign({},Bt),{__INTERNAL__:{itemRef:Jt=>Ln=>{const zn=nt(Jt);Ln?Ue.current[zn]=Ln:delete Ue.current[zn]}},scrollToField:function(Jt){let Ln=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{focus:zn}=Ln,pt=st(Ln,["focus"]),Ct=rn(Jt,Nt);Ct&&((0,Tt.Z)(Ct,Object.assign({scrollMode:"if-needed",block:"nearest"},pt)),zn&&Nt.focusField(Jt))},focusField:Jt=>{var Ln,zn;const pt=Nt.getFieldInstance(Jt);typeof(pt==null?void 0:pt.focus)=="function"?pt.focus():(zn=(Ln=rn(Jt,Nt))===null||Ln===void 0?void 0:Ln.focus)===null||zn===void 0||zn.call(Ln)},getFieldInstance:Jt=>{const Ln=nt(Jt);return Ue.current[Ln]}}),[Je,Bt]);return[Nt]}var ae=z(98350),re=function(Je,Bt){var Ue={};for(var Nt in Je)Object.prototype.hasOwnProperty.call(Je,Nt)&&Bt.indexOf(Nt)<0&&(Ue[Nt]=Je[Nt]);if(Je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Jt=0,Nt=Object.getOwnPropertySymbols(Je);Jt<Nt.length;Jt++)Bt.indexOf(Nt[Jt])<0&&Object.prototype.propertyIsEnumerable.call(Je,Nt[Jt])&&(Ue[Nt[Jt]]=Je[Nt[Jt]]);return Ue};const te=(Je,Bt)=>{const Ue=ce.useContext(be.Z),{getPrefixCls:Nt,direction:Jt,requiredMark:Ln,colon:zn,scrollToFirstError:pt,className:Ct,style:St}=(0,Mt.dj)("form"),{prefixCls:It,className:fn,rootClassName:wn,size:Pn,disabled:In=Ue,form:qn,colon:rr,labelAlign:ir,labelWrap:sr,labelCol:Qn,wrapperCol:ar,hideRequiredMark:fr,layout:Sr="horizontal",scrollToFirstError:br,requiredMark:jr,onFinishFailed:$r,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,ge.Z)(Pn),Ur=ce.useContext(ae.Z),Rr=ce.useMemo(()=>jr!==void 0?jr:fr?!1:Ln!==void 0?Ln:!0,[fr,jr,Ln]),Br=rr!=null?rr:zn,Cr=Nt("form",It),so=(0,Ae.Z)(Cr),[Ho,ti,xo]=et(Cr,so),No=ve()(Cr,`${Cr}-${Sr}`,{[`${Cr}-hide-required-mark`]:Rr===!1,[`${Cr}-rtl`]:Jt==="rtl",[`${Cr}-${or}`]:or},xo,so,ti,Ct,fn,wn),[To]=kt(qn),{__INTERNAL__:Xo}=To;Xo.name=hr;const ko=ce.useMemo(()=>({name:hr,labelAlign:ir,labelCol:Qn,labelWrap:sr,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=ce.useRef(null);ce.useImperativeHandle(Bt,()=>{var Un;return Object.assign(Object.assign({},To),{nativeElement:(Un=go.current)===null||Un===void 0?void 0:Un.nativeElement})});const dr=(Un,Yn)=>{if(Un){let kn={block:"nearest"};typeof Un=="object"&&(kn=Object.assign(Object.assign({},kn),Un)),To.scrollToField(Yn,kn)}},Mn=Un=>{if($r==null||$r(Un),Un.errorFields.length){const Yn=Un.errorFields[0].name;if(br!==void 0){dr(br,Yn);return}pt!==void 0&&dr(pt,Yn)}};return Ho(ce.createElement(y.pg.Provider,{value:kr},ce.createElement(be.n,{disabled:In},ce.createElement(Ft.Z.Provider,{value:or},ce.createElement(y.RV,{validateMessages:Ur},ce.createElement(y.q3.Provider,{value:ko},ce.createElement(lt.default,Object.assign({id:hr},Fr,{name:hr,onFinishFailed:Mn,form:To,ref:go,style:Object.assign(Object.assign({},St),Mr),className:No}))))))))};var de=ce.forwardRef(te),ne=z(41799),se=z(8654),Oe=z(22703),bt=z(32383),Ge=z(11592);function We(Je){if(typeof Je=="function")return Je;const Bt=(0,Ge.Z)(Je);return Bt.length<=1?Bt[0]:Bt}const it=()=>{const{status:Je,errors:Bt=[],warnings:Ue=[]}=ce.useContext(y.aM);return{status:Je,errors:Bt,warnings:Ue}};it.Context=y.aM;var ht=it,Pt=z(16089);function Le(Je){const[Bt,Ue]=ce.useState(Je),Nt=ce.useRef(null),Jt=ce.useRef([]),Ln=ce.useRef(!1);ce.useEffect(()=>(Ln.current=!1,()=>{Ln.current=!0,Pt.Z.cancel(Nt.current),Nt.current=null}),[]);function zn(pt){Ln.current||(Nt.current===null&&(Jt.current=[],Nt.current=(0,Pt.Z)(()=>{Nt.current=null,Ue(Ct=>{let St=Ct;return Jt.current.forEach(It=>{St=It(St)}),St})})),Jt.current.push(pt))}return[Bt,zn]}function Ve(){const{itemRef:Je}=ce.useContext(y.q3),Bt=ce.useRef({});function Ue(Nt,Jt){const Ln=Jt&&typeof Jt=="object"&&(0,se.C4)(Jt),zn=Nt.join("_");return(Bt.current.name!==zn||Bt.current.originRef!==Ln)&&(Bt.current.name=zn,Bt.current.originRef=Ln,Bt.current.ref=(0,se.sQ)(Je(Nt),Ln)),Bt.current.ref}return Ue}var Ot=z(29194),Yt=z(34280),un=z(2738),tn=z(65970),Lt=z(70425),ln=z(5472);const $t=Je=>{const{formItemCls:Bt}=Je;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${Bt}-control`]:{display:"flex"}}}};var ze=(0,Me.bk)(["Form","item-item"],(Je,Bt)=>{let{rootPrefixCls:Ue}=Bt;const Nt=Ce(Je,Ue);return[$t(Nt)]}),yt=function(Je,Bt){var Ue={};for(var Nt in Je)Object.prototype.hasOwnProperty.call(Je,Nt)&&Bt.indexOf(Nt)<0&&(Ue[Nt]=Je[Nt]);if(Je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Jt=0,Nt=Object.getOwnPropertySymbols(Je);Jt<Nt.length;Jt++)Bt.indexOf(Nt[Jt])<0&&Object.prototype.propertyIsEnumerable.call(Je,Nt[Jt])&&(Ue[Nt[Jt]]=Je[Nt[Jt]]);return Ue};const Ht=24;var Ke=Je=>{const{prefixCls:Bt,status:Ue,labelCol:Nt,wrapperCol:Jt,children:Ln,errors:zn,warnings:pt,_internalItemRender:Ct,extra:St,help:It,fieldId:fn,marginBottom:wn,onErrorVisibleChanged:Pn,label:In}=Je,qn=`${Bt}-item`,rr=ce.useContext(y.q3),ir=ce.useMemo(()=>{let Fr=Object.assign({},Jt||rr.wrapperCol||{});return In===null&&!Nt&&!Jt&&rr.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(Ur=>{const Rr=Ur?[Ur]:[],Br=(0,Lt.U2)(rr.labelCol,Rr),Cr=typeof Br=="object"?Br:{},so=(0,Lt.U2)(Fr,Rr),Ho=typeof so=="object"?so:{};"span"in Cr&&!("offset"in Ho)&&Cr.span<Ht&&(Fr=(0,Lt.t8)(Fr,[].concat(Rr,["offset"]),Cr.span))}),Fr},[Jt,rr]),sr=ve()(`${qn}-control`,ir.className),Qn=ce.useMemo(()=>{const{labelCol:Fr,wrapperCol:or}=rr;return yt(rr,["labelCol","wrapperCol"])},[rr]),ar=ce.useRef(null),[fr,Sr]=ce.useState(0);(0,Yt.Z)(()=>{St&&ar.current?Sr(ar.current.clientHeight):Sr(0)},[St]);const br=ce.createElement("div",{className:`${qn}-control-input`},ce.createElement("div",{className:`${qn}-control-input-content`},Ln)),jr=ce.useMemo(()=>({prefixCls:Bt,status:Ue}),[Bt,Ue]),$r=wn!==null||zn.length||pt.length?ce.createElement(y.Rk.Provider,{value:jr},ce.createElement(_e,{fieldId:fn,errors:zn,warnings:pt,help:It,helpStatus:Ue,className:`${qn}-explain-connected`,onVisibleChanged:Pn})):null,hr={};fn&&(hr.id=`${fn}_extra`);const Mr=St?ce.createElement("div",Object.assign({},hr,{className:`${qn}-extra`,ref:ar}),St):null,eo=$r||Mr?ce.createElement("div",{className:`${qn}-additional`,style:wn?{minHeight:wn+fr}:{}},$r,Mr):null,kr=Ct&&Ct.mark==="pro_table_render"&&Ct.render?Ct.render(Je,{input:br,errorList:$r,extra:Mr}):ce.createElement(ce.Fragment,null,br,eo);return ce.createElement(y.q3.Provider,{value:Qn},ce.createElement(ln.Z,Object.assign({},ir,{className:sr}),kr),ce.createElement(ze,{prefixCls:Bt}))},xt=z(61485),Zt=z(9017),dt=z(85981),At=z(25399),Ut=function(Je,Bt){var Ue={};for(var Nt in Je)Object.prototype.hasOwnProperty.call(Je,Nt)&&Bt.indexOf(Nt)<0&&(Ue[Nt]=Je[Nt]);if(Je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Jt=0,Nt=Object.getOwnPropertySymbols(Je);Jt<Nt.length;Jt++)Bt.indexOf(Nt[Jt])<0&&Object.prototype.propertyIsEnumerable.call(Je,Nt[Jt])&&(Ue[Nt[Jt]]=Je[Nt[Jt]]);return Ue};function pn(Je){return Je?typeof Je=="object"&&!ce.isValidElement(Je)?Je:{title:Je}:null}var mn=Je=>{let{prefixCls:Bt,label:Ue,htmlFor:Nt,labelCol:Jt,labelAlign:Ln,colon:zn,required:pt,requiredMark:Ct,tooltip:St,vertical:It}=Je;var fn;const[wn]=(0,Zt.Z)("Form"),{labelAlign:Pn,labelCol:In,labelWrap:qn,colon:rr}=ce.useContext(y.q3);if(!Ue)return null;const ir=Jt||In||{},sr=Ln||Pn,Qn=`${Bt}-item-label`,ar=ve()(Qn,sr==="left"&&`${Qn}-left`,ir.className,{[`${Qn}-wrap`]:!!qn});let fr=Ue;const Sr=zn===!0||rr!==!1&&zn!==!1;Sr&&!It&&typeof Ue=="string"&&Ue.trim()&&(fr=Ue.replace(/[:|]\s*$/,""));const jr=pn(St);if(jr){const{icon:Fr=ce.createElement(xt.Z,null)}=jr,or=Ut(jr,["icon"]),Ur=ce.createElement(At.Z,Object.assign({},or),ce.cloneElement(Fr,{className:`${Bt}-item-tooltip`,title:"",onClick:Rr=>{Rr.preventDefault()},tabIndex:null}));fr=ce.createElement(ce.Fragment,null,fr,Ur)}const $r=Ct==="optional",hr=typeof Ct=="function",Mr=Ct===!1;hr?fr=Ct(fr,{required:!!pt}):$r&&!pt&&(fr=ce.createElement(ce.Fragment,null,fr,ce.createElement("span",{className:`${Bt}-item-optional`,title:""},(wn==null?void 0:wn.optional)||((fn=dt.Z.Form)===null||fn===void 0?void 0:fn.optional))));let eo;Mr?eo="hidden":($r||hr)&&(eo="optional");const kr=ve()({[`${Bt}-item-required`]:pt,[`${Bt}-item-required-mark-${eo}`]:eo,[`${Bt}-item-no-colon`]:!Sr});return ce.createElement(ln.Z,Object.assign({},ir,{className:ar}),ce.createElement("label",{htmlFor:Nt,className:kr,title:typeof Ue=="string"?Ue:""},fr))},Bn=z(29679),Dt=z(19248),hn=z(96512),Wt=z(58617);const an={success:Bn.Z,warning:hn.Z,error:Dt.Z,validating:Wt.Z};function Vt(Je){let{children:Bt,errors:Ue,warnings:Nt,hasFeedback:Jt,validateStatus:Ln,prefixCls:zn,meta:pt,noStyle:Ct}=Je;const St=`${zn}-item`,{feedbackIcons:It}=ce.useContext(y.q3),fn=at(Ue,Nt,pt,null,!!Jt,Ln),{isFormItemInput:wn,status:Pn,hasFeedback:In,feedbackIcon:qn}=ce.useContext(y.aM),rr=ce.useMemo(()=>{var ir;let sr;if(Jt){const ar=Jt!==!0&&Jt.icons||It,fr=fn&&((ir=ar==null?void 0:ar({status:fn,errors:Ue,warnings:Nt}))===null||ir===void 0?void 0:ir[fn]),Sr=fn&&an[fn];sr=fr!==!1&&Sr?ce.createElement("span",{className:ve()(`${St}-feedback-icon`,`${St}-feedback-icon-${fn}`)},fr||ce.createElement(Sr,null)):null}const Qn={status:fn||"",errors:Ue,warnings:Nt,hasFeedback:!!Jt,feedbackIcon:sr,isFormItemInput:!0};return Ct&&(Qn.status=(fn!=null?fn:Pn)||"",Qn.isFormItemInput=wn,Qn.hasFeedback=!!(Jt!=null?Jt:In),Qn.feedbackIcon=Jt!==void 0?Qn.feedbackIcon:qn),Qn},[fn,Jt,Ct,wn,Pn]);return ce.createElement(y.aM.Provider,{value:rr},Bt)}var cn=function(Je,Bt){var Ue={};for(var Nt in Je)Object.prototype.hasOwnProperty.call(Je,Nt)&&Bt.indexOf(Nt)<0&&(Ue[Nt]=Je[Nt]);if(Je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Jt=0,Nt=Object.getOwnPropertySymbols(Je);Jt<Nt.length;Jt++)Bt.indexOf(Nt[Jt])<0&&Object.prototype.propertyIsEnumerable.call(Je,Nt[Jt])&&(Ue[Nt[Jt]]=Je[Nt[Jt]]);return Ue};function on(Je){const{prefixCls:Bt,className:Ue,rootClassName:Nt,style:Jt,help:Ln,errors:zn,warnings:pt,validateStatus:Ct,meta:St,hasFeedback:It,hidden:fn,children:wn,fieldId:Pn,required:In,isRequired:qn,onSubItemMetaChange:rr,layout:ir}=Je,sr=cn(Je,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout"]),Qn=`${Bt}-item`,{requiredMark:ar,vertical:fr}=ce.useContext(y.q3),Sr=fr||ir==="vertical",br=ce.useRef(null),jr=pe(zn),$r=pe(pt),hr=Ln!=null,Mr=!!(hr||zn.length||pt.length),eo=!!br.current&&(0,Ot.Z)(br.current),[kr,Fr]=ce.useState(null);(0,Yt.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?jr:St.errors,Ho=Cr?$r:St.warnings;return at(so,Ho,St,"",!!It,Ct)}(),Br=ve()(Qn,Ue,Nt,{[`${Qn}-with-help`]:hr||jr.length||$r.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 ce.createElement("div",{className:Br,style:Jt,ref:br},ce.createElement(tn.Z,Object.assign({className:`${Qn}-row`},(0,un.Z)(sr,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),ce.createElement(mn,Object.assign({htmlFor:Pn},Je,{requiredMark:ar,required:In!=null?In:qn,prefixCls:Bt,vertical:Sr})),ce.createElement(Ke,Object.assign({},Je,St,{errors:jr,warnings:$r,prefixCls:Bt,status:Rr,help:Ln,marginBottom:kr,onErrorVisibleChanged:or}),ce.createElement(y.qI.Provider,{value:rr},ce.createElement(Vt,{prefixCls:Bt,meta:St,errors:St.errors,warnings:St.warnings,hasFeedback:It,validateStatus:Rr},wn)))),!!kr&&ce.createElement("div",{className:`${Qn}-margin-offset`,style:{marginBottom:-kr}}))}const Zn="__SPLIT__",_n=null;function Nn(Je,Bt){const Ue=Object.keys(Je),Nt=Object.keys(Bt);return Ue.length===Nt.length&&Ue.every(Jt=>{const Ln=Je[Jt],zn=Bt[Jt];return Ln===zn||typeof Ln=="function"||typeof zn=="function"})}const jn=ce.memo(Je=>{let{children:Bt}=Je;return Bt},(Je,Bt)=>Nn(Je.control,Bt.control)&&Je.update===Bt.update&&Je.childProps.length===Bt.childProps.length&&Je.childProps.every((Ue,Nt)=>Ue===Bt.childProps[Nt]));function Gn(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function $n(Je){const{name:Bt,noStyle:Ue,className:Nt,dependencies:Jt,prefixCls:Ln,shouldUpdate:zn,rules:pt,children:Ct,required:St,label:It,messageVariables:fn,trigger:wn="onChange",validateTrigger:Pn,hidden:In,help:qn,layout:rr}=Je,{getPrefixCls:ir}=ce.useContext(Mt.E_),{name:sr}=ce.useContext(y.q3),Qn=We(Ct),ar=typeof Qn=="function",fr=ce.useContext(y.qI),{validateTrigger:Sr}=ce.useContext(lt.FieldContext),br=Pn!==void 0?Pn:Sr,jr=Bt!=null,$r=ir("form",Ln),hr=(0,Ae.Z)($r),[Mr,eo,kr]=et($r,hr),Fr=(0,bt.ln)("Form.Item"),or=ce.useContext(lt.ListContext),Ur=ce.useRef(null),[Rr,Br]=Le({}),[Cr,so]=(0,ne.Z)(()=>Gn()),Ho=go=>{const dr=or==null?void 0:or.getKey(go.name);if(so(go.destroy?Gn():go,!0),Ue&&qn!==!1&&fr){let Mn=go.name;if(go.destroy)Mn=Ur.current||Mn;else if(dr!==void 0){const[Un,Yn]=dr;Mn=[Un].concat((0,he.Z)(Yn)),Ur.current=Mn}fr(go,Mn)}},ti=(go,dr)=>{Br(Mn=>{const Un=Object.assign({},Mn),kn=[].concat((0,he.Z)(go.name.slice(0,-1)),(0,he.Z)(dr)).join(Zn);return go.destroy?delete Un[kn]:Un[kn]=go,Un})},[xo,No]=ce.useMemo(()=>{const go=(0,he.Z)(Cr.errors),dr=(0,he.Z)(Cr.warnings);return Object.values(Rr).forEach(Mn=>{go.push.apply(go,(0,he.Z)(Mn.errors||[])),dr.push.apply(dr,(0,he.Z)(Mn.warnings||[]))}),[go,dr]},[Rr,Cr.errors,Cr.warnings]),To=Ve();function Xo(go,dr,Mn){return Ue&&!In?ce.createElement(Vt,{prefixCls:$r,hasFeedback:Je.hasFeedback,validateStatus:Je.validateStatus,meta:Cr,errors:xo,warnings:No,noStyle:!0},go):ce.createElement(on,Object.assign({key:"row"},Je,{className:ve()(Nt,kr,hr,eo),prefixCls:$r,fieldId:dr,isRequired:Mn,errors:xo,warnings:No,meta:Cr,onSubItemMetaChange:ti,layout:rr}),go)}if(!jr&&!ar&&!Jt)return Mr(Xo(Qn));let ko={};return typeof It=="string"?ko.label=It:Bt&&(ko.label=String(Bt)),fn&&(ko=Object.assign(Object.assign({},ko),fn)),Mr(ce.createElement(lt.Field,Object.assign({},Je,{messageVariables:ko,trigger:wn,validateTrigger:br,onMetaChange:Ho}),(go,dr,Mn)=>{const Un=qe(Bt).length&&dr?dr.name:[],Yn=Gt(Un,sr),kn=St!==void 0?St:!!(pt!=null&&pt.some(Vn=>{if(Vn&&typeof Vn=="object"&&Vn.required&&!Vn.warningOnly)return!0;if(typeof Vn=="function"){const Jn=Vn(Mn);return(Jn==null?void 0:Jn.required)&&!(Jn!=null&&Jn.warningOnly)}return!1})),mr=Object.assign({},go);let wr=null;if(Array.isArray(Qn)&&jr)wr=Qn;else if(!(ar&&(!(zn||Jt)||jr))){if(!(Jt&&!ar&&!jr))if(ce.isValidElement(Qn)){const Vn=Object.assign(Object.assign({},Qn.props),mr);if(Vn.id||(Vn.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`),Vn["aria-describedby"]=pr.join(" ")}xo.length>0&&(Vn["aria-invalid"]="true"),kn&&(Vn["aria-required"]="true"),(0,se.Yr)(Qn)&&(Vn.ref=To(Un,Qn)),new Set([].concat((0,he.Z)(qe(wn)),(0,he.Z)(qe(br)))).forEach(pr=>{Vn[pr]=function(){for(var Zr,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||(Zr=to).call.apply(Zr,[mr].concat(Jo)),(Mo=(Fo=Qn.props)[pr])===null||Mo===void 0||(Yr=Mo).call.apply(Yr,[Fo].concat(Jo))}});const ur=[Vn["aria-required"],Vn["aria-invalid"],Vn["aria-describedby"]];wr=ce.createElement(jn,{control:mr,update:Qn,childProps:ur},(0,Oe.Tm)(Qn,Vn))}else ar&&(zn||Jt)&&!jr?wr=Qn(Mn):wr=Qn}return Xo(wr,Yn,kn)}))}const lr=$n;lr.useStatus=ht;var nr=lr,dn=function(Je,Bt){var Ue={};for(var Nt in Je)Object.prototype.hasOwnProperty.call(Je,Nt)&&Bt.indexOf(Nt)<0&&(Ue[Nt]=Je[Nt]);if(Je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Jt=0,Nt=Object.getOwnPropertySymbols(Je);Jt<Nt.length;Jt++)Bt.indexOf(Nt[Jt])<0&&Object.prototype.propertyIsEnumerable.call(Je,Nt[Jt])&&(Ue[Nt[Jt]]=Je[Nt[Jt]]);return Ue},Hn=Je=>{var{prefixCls:Bt,children:Ue}=Je,Nt=dn(Je,["prefixCls","children"]);const{getPrefixCls:Jt}=ce.useContext(Mt.E_),Ln=Jt("form",Bt),zn=ce.useMemo(()=>({prefixCls:Ln,status:"error"}),[Ln]);return ce.createElement(lt.List,Object.assign({},Nt),(pt,Ct,St)=>ce.createElement(y.Rk.Provider,{value:zn},Ue(pt.map(It=>Object.assign(Object.assign({},It),{fieldKey:It.key})),Ct,{errors:St.errors,warnings:St.warnings})))};function Kn(){const{form:Je}=ce.useContext(y.q3);return Je}const Et=de;Et.Item=nr,Et.List=Hn,Et.ErrorList=_e,Et.useForm=kt,Et.useFormInstance=Kn,Et.useWatch=lt.useWatch,Et.Provider=y.RV,Et.create=()=>{};var Rt=Et},4875:function(bn,zt,z){"use strict";z.d(zt,{Z:function(){return en}});var y=z(59301),he=z(84105),ce=z(87395),je=z(92310),ve=z.n(je),me=z(54476),ye=z(20068),Ae=z(76190),pe=z(42978),le=z(75931),Re=z(67732),Ie=z(83652);function tt(){return typeof BigInt=="function"}function He(Ke){return!Ke&&Ke!==0&&!Number.isNaN(Ke)||!String(Ke).trim()}function Me(Ke){var xt=Ke.trim(),Zt=xt.startsWith("-");Zt&&(xt=xt.slice(1)),xt=xt.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),xt.startsWith(".")&&(xt="0".concat(xt));var dt=xt||"0",At=dt.split("."),Ut=At[0]||"0",pn=At[1]||"0";Ut==="0"&&pn==="0"&&(Zt=!1);var On=Zt?"-":"";return{negative:Zt,negativeStr:On,trimStr:dt,integerStr:Ut,decimalStr:pn,fullStr:"".concat(On).concat(dt)}}function Ee(Ke){var xt=String(Ke);return!Number.isNaN(Number(xt))&&xt.includes("e")}function we(Ke){var xt=String(Ke);if(Ee(Ke)){var Zt=Number(xt.slice(xt.indexOf("e-")+2)),dt=xt.match(/\.(\d+)/);return dt!=null&&dt[1]&&(Zt+=dt[1].length),Zt}return xt.includes(".")&&Xe(xt)?xt.length-xt.indexOf(".")-1:0}function Ne(Ke){var xt=String(Ke);if(Ee(Ke)){if(Ke>Number.MAX_SAFE_INTEGER)return String(tt()?BigInt(Ke).toString():Number.MAX_SAFE_INTEGER);if(Ke<Number.MIN_SAFE_INTEGER)return String(tt()?BigInt(Ke).toString():Number.MIN_SAFE_INTEGER);xt=Ke.toFixed(we(xt))}return Me(xt).fullStr}function Xe(Ke){return typeof Ke=="number"?!Number.isNaN(Ke):Ke?/^\s*-?\d+(\.\d+)?\s*$/.test(Ke)||/^\s*-?\d+\.\s*$/.test(Ke)||/^\s*-?\.\d+\s*$/.test(Ke):!1}var ft=function(){function Ke(xt){if((0,Re.Z)(this,Ke),(0,ye.Z)(this,"origin",""),(0,ye.Z)(this,"negative",void 0),(0,ye.Z)(this,"integer",void 0),(0,ye.Z)(this,"decimal",void 0),(0,ye.Z)(this,"decimalLen",void 0),(0,ye.Z)(this,"empty",void 0),(0,ye.Z)(this,"nan",void 0),He(xt)){this.empty=!0;return}if(this.origin=String(xt),xt==="-"||Number.isNaN(xt)){this.nan=!0;return}var Zt=xt;if(Ee(Zt)&&(Zt=Number(Zt)),Zt=typeof Zt=="string"?Zt:Ne(Zt),Xe(Zt)){var dt=Me(Zt);this.negative=dt.negative;var At=dt.trimStr.split(".");this.integer=BigInt(At[0]);var Ut=At[1]||"0";this.decimal=BigInt(Ut),this.decimalLen=Ut.length}else this.nan=!0}return(0,Ie.Z)(Ke,[{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(Zt){var dt="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(Zt,"0"));return BigInt(dt)}},{key:"negate",value:function(){var Zt=new Ke(this.toString());return Zt.negative=!Zt.negative,Zt}},{key:"cal",value:function(Zt,dt,At){var Ut=Math.max(this.getDecimalStr().length,Zt.getDecimalStr().length),pn=this.alignDecimal(Ut),On=Zt.alignDecimal(Ut),mn=dt(pn,On).toString(),Bn=At(Ut),Dt=Me(mn),hn=Dt.negativeStr,Wt=Dt.trimStr,an="".concat(hn).concat(Wt.padStart(Bn+1,"0"));return new Ke("".concat(an.slice(0,-Bn),".").concat(an.slice(-Bn)))}},{key:"add",value:function(Zt){if(this.isInvalidate())return new Ke(Zt);var dt=new Ke(Zt);return dt.isInvalidate()?this:this.cal(dt,function(At,Ut){return At+Ut},function(At){return At})}},{key:"multi",value:function(Zt){var dt=new Ke(Zt);return this.isInvalidate()||dt.isInvalidate()?new Ke(NaN):this.cal(dt,function(At,Ut){return At*Ut},function(At){return At*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(Zt){return this.toString()===(Zt==null?void 0:Zt.toString())}},{key:"lessEquals",value:function(Zt){return this.add(Zt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var Zt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return Zt?this.isInvalidate()?"":Me("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),Ke}(),Pe=function(){function Ke(xt){if((0,Re.Z)(this,Ke),(0,ye.Z)(this,"origin",""),(0,ye.Z)(this,"number",void 0),(0,ye.Z)(this,"empty",void 0),He(xt)){this.empty=!0;return}this.origin=String(xt),this.number=Number(xt)}return(0,Ie.Z)(Ke,[{key:"negate",value:function(){return new Ke(-this.toNumber())}},{key:"add",value:function(Zt){if(this.isInvalidate())return new Ke(Zt);var dt=Number(Zt);if(Number.isNaN(dt))return this;var At=this.number+dt;if(At>Number.MAX_SAFE_INTEGER)return new Ke(Number.MAX_SAFE_INTEGER);if(At<Number.MIN_SAFE_INTEGER)return new Ke(Number.MIN_SAFE_INTEGER);var Ut=Math.max(we(this.number),we(dt));return new Ke(At.toFixed(Ut))}},{key:"multi",value:function(Zt){var dt=Number(Zt);if(this.isInvalidate()||Number.isNaN(dt))return new Ke(NaN);var At=this.number*dt;if(At>Number.MAX_SAFE_INTEGER)return new Ke(Number.MAX_SAFE_INTEGER);if(At<Number.MIN_SAFE_INTEGER)return new Ke(Number.MIN_SAFE_INTEGER);var Ut=Math.max(we(this.number),we(dt));return new Ke(At.toFixed(Ut))}},{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(Zt){return this.toNumber()===(Zt==null?void 0:Zt.toNumber())}},{key:"lessEquals",value:function(Zt){return this.add(Zt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var Zt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return Zt?this.isInvalidate()?"":Ne(this.number):this.origin}}]),Ke}();function Fe(Ke){return tt()?new ft(Ke):new Pe(Ke)}function Ze(Ke,xt,Zt){var dt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(Ke==="")return"";var At=Me(Ke),Ut=At.negativeStr,pn=At.integerStr,On=At.decimalStr,mn="".concat(xt).concat(On),Bn="".concat(Ut).concat(pn);if(Zt>=0){var Dt=Number(On[Zt]);if(Dt>=5&&!dt){var hn=Fe(Ke).add("".concat(Ut,"0.").concat("0".repeat(Zt)).concat(10-Dt));return Ze(hn.toString(),xt,Zt,dt)}return Zt===0?Bn:"".concat(Bn).concat(xt).concat(On.padEnd(Zt,"0").slice(0,Zt))}return mn===".0"?Bn:"".concat(Bn).concat(mn)}var $e=Fe,gt=z(36901),ot=z(34280);function Qe(Ke,xt){return typeof Proxy!="undefined"&&Ke?new Proxy(Ke,{get:function(dt,At){if(xt[At])return xt[At];var Ut=dt[At];return typeof Ut=="function"?Ut.bind(dt):Ut}}):Ke}var ct=z(8654),Ce=z(48736);function et(Ke,xt){var Zt=(0,y.useRef)(null);function dt(){try{var Ut=Ke.selectionStart,pn=Ke.selectionEnd,On=Ke.value,mn=On.substring(0,Ut),Bn=On.substring(pn);Zt.current={start:Ut,end:pn,value:On,beforeTxt:mn,afterTxt:Bn}}catch(Dt){}}function At(){if(Ke&&Zt.current&&xt)try{var Ut=Ke.value,pn=Zt.current,On=pn.beforeTxt,mn=pn.afterTxt,Bn=pn.start,Dt=Ut.length;if(Ut.startsWith(On))Dt=On.length;else if(Ut.endsWith(mn))Dt=Ut.length-Zt.current.afterTxt.length;else{var hn=On[Bn-1],Wt=Ut.indexOf(hn,Bn-1);Wt!==-1&&(Dt=Wt+1)}Ke.setSelectionRange(Dt,Dt)}catch(an){(0,Ce.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(an.message))}}return[dt,At]}var Te=z(49658),ue=function(){var xt=(0,y.useState)(!1),Zt=(0,pe.Z)(xt,2),dt=Zt[0],At=Zt[1];return(0,ot.Z)(function(){At((0,Te.Z)())},[]),dt},mt=ue,_e=z(16089),lt=200,Mt=600;function be(Ke){var xt=Ke.prefixCls,Zt=Ke.upNode,dt=Ke.downNode,At=Ke.upDisabled,Ut=Ke.downDisabled,pn=Ke.onStep,On=y.useRef(),mn=y.useRef([]),Bn=y.useRef();Bn.current=pn;var Dt=function(){clearTimeout(On.current)},hn=function(Nn,jn){Nn.preventDefault(),Dt(),Bn.current(jn);function Gn(){Bn.current(jn),On.current=setTimeout(Gn,lt)}On.current=setTimeout(Gn,Mt)};y.useEffect(function(){return function(){Dt(),mn.current.forEach(function(_n){return _e.Z.cancel(_n)})}},[]);var Wt=mt();if(Wt)return null;var an="".concat(xt,"-handler"),Vt=ve()(an,"".concat(an,"-up"),(0,ye.Z)({},"".concat(an,"-up-disabled"),At)),cn=ve()(an,"".concat(an,"-down"),(0,ye.Z)({},"".concat(an,"-down-disabled"),Ut)),on=function(){return mn.current.push((0,_e.Z)(Dt))},Zn={unselectable:"on",role:"button",onMouseUp:on,onMouseLeave:on};return y.createElement("div",{className:"".concat(an,"-wrap")},y.createElement("span",(0,me.Z)({},Zn,{onMouseDown:function(Nn){hn(Nn,!0)},"aria-label":"Increase Value","aria-disabled":At,className:Vt}),Zt||y.createElement("span",{unselectable:"on",className:"".concat(xt,"-handler-up-inner")})),y.createElement("span",(0,me.Z)({},Zn,{onMouseDown:function(Nn){hn(Nn,!1)},"aria-label":"Decrease Value","aria-disabled":Ut,className:cn}),dt||y.createElement("span",{unselectable:"on",className:"".concat(xt,"-handler-down-inner")})))}function ge(Ke){var xt=typeof Ke=="number"?Ne(Ke):Me(Ke).fullStr,Zt=xt.includes(".");return Zt?Me(xt.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:Ke+"0"}var Ft=z(30292),_t=function(){var Ke=(0,y.useRef)(0),xt=function(){_e.Z.cancel(Ke.current)};return(0,y.useEffect)(function(){return xt},[]),function(Zt){xt(),Ke.current=(0,_e.Z)(function(){Zt()})}},Tt=["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"],xe=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],rt=function(xt,Zt){return xt||Zt.isEmpty()?Zt.toString():Zt.toNumber()},qe=function(xt){var Zt=$e(xt);return Zt.isInvalidate()?null:Zt},Gt=y.forwardRef(function(Ke,xt){var Zt=Ke.prefixCls,dt=Ke.className,At=Ke.style,Ut=Ke.min,pn=Ke.max,On=Ke.step,mn=On===void 0?1:On,Bn=Ke.defaultValue,Dt=Ke.value,hn=Ke.disabled,Wt=Ke.readOnly,an=Ke.upHandler,Vt=Ke.downHandler,cn=Ke.keyboard,on=Ke.changeOnWheel,Zn=on===void 0?!1:on,_n=Ke.controls,Nn=_n===void 0?!0:_n,jn=Ke.classNames,Gn=Ke.stringMode,$n=Ke.parser,lr=Ke.formatter,nr=Ke.precision,dn=Ke.decimalSeparator,Cn=Ke.onChange,Hn=Ke.onInput,Kn=Ke.onPressEnter,Et=Ke.onStep,Rt=Ke.changeOnBlur,Je=Rt===void 0?!0:Rt,Bt=Ke.domRef,Ue=(0,le.Z)(Ke,Tt),Nt="".concat(Zt,"-input"),Jt=y.useRef(null),Ln=y.useState(!1),zn=(0,pe.Z)(Ln,2),pt=zn[0],Ct=zn[1],St=y.useRef(!1),It=y.useRef(!1),fn=y.useRef(!1),wn=y.useState(function(){return $e(Dt!=null?Dt:Bn)}),Pn=(0,pe.Z)(wn,2),In=Pn[0],qn=Pn[1];function rr(Yn){Dt===void 0&&qn(Yn)}var ir=y.useCallback(function(Yn,kn){if(!kn)return nr>=0?nr:Math.max(we(Yn),we(mn))},[nr,mn]),sr=y.useCallback(function(Yn){var kn=String(Yn);if($n)return $n(kn);var mr=kn;return dn&&(mr=mr.replace(dn,".")),mr.replace(/[^\w.-]+/g,"")},[$n,dn]),Qn=y.useRef(""),ar=y.useCallback(function(Yn,kn){if(lr)return lr(Yn,{userTyping:kn,input:String(Qn.current)});var mr=typeof Yn=="number"?Ne(Yn):Yn;if(!kn){var wr=ir(mr,kn);if(Xe(mr)&&(dn||wr>=0)){var Vn=dn||".";mr=Ze(mr,Vn,wr)}}return mr},[lr,ir,dn]),fr=y.useState(function(){var Yn=Bn!=null?Bn:Dt;return In.isInvalidate()&&["string","number"].includes((0,Ae.Z)(Yn))?Number.isNaN(Yn)?"":Yn:ar(In.toString(),!1)}),Sr=(0,pe.Z)(fr,2),br=Sr[0],jr=Sr[1];Qn.current=br;function $r(Yn,kn){jr(ar(Yn.isInvalidate()?Yn.toString(!1):Yn.toString(!kn),kn))}var hr=y.useMemo(function(){return qe(pn)},[pn,nr]),Mr=y.useMemo(function(){return qe(Ut)},[Ut,nr]),eo=y.useMemo(function(){return!hr||!In||In.isInvalidate()?!1:hr.lessEquals(In)},[hr,In]),kr=y.useMemo(function(){return!Mr||!In||In.isInvalidate()?!1:In.lessEquals(Mr)},[Mr,In]),Fr=et(Jt.current,pt),or=(0,pe.Z)(Fr,2),Ur=or[0],Rr=or[1],Br=function(kn){return hr&&!kn.lessEquals(hr)?hr:Mr&&!Mr.lessEquals(kn)?Mr:null},Cr=function(kn){return!Br(kn)},so=function(kn,mr){var wr=kn,Vn=Cr(wr)||wr.isEmpty();if(!wr.isEmpty()&&!mr&&(wr=Br(wr)||wr,Vn=!0),!Wt&&!hn&&Vn){var Jn=wr.toString(),ur=ir(Jn,mr);return ur>=0&&(wr=$e(Ze(Jn,".",ur)),Cr(wr)||(wr=$e(Ze(Jn,".",ur,!0)))),wr.equals(In)||(rr(wr),Cn==null||Cn(wr.isEmpty()?null:rt(Gn,wr)),Dt===void 0&&$r(wr,mr)),wr}return In},Ho=_t(),ti=function Yn(kn){if(Ur(),Qn.current=kn,jr(kn),!It.current){var mr=sr(kn),wr=$e(mr);wr.isNaN()||so(wr,!0)}Hn==null||Hn(kn),Ho(function(){var Vn=kn;$n||(Vn=kn.replace(/。/g,".")),Vn!==kn&&Yn(Vn)})},xo=function(){It.current=!0},No=function(){It.current=!1,ti(Jt.current.value)},To=function(kn){ti(kn.target.value)},Xo=function(kn){var mr;if(!(kn&&eo||!kn&&kr)){St.current=!1;var wr=$e(fn.current?ge(mn):mn);kn||(wr=wr.negate());var Vn=(In||$e(0)).add(wr.toString()),Jn=so(Vn,!1);Et==null||Et(rt(Gn,Jn),{offset:fn.current?ge(mn):mn,type:kn?"up":"down"}),(mr=Jt.current)===null||mr===void 0||mr.focus()}},ko=function(kn){var mr=$e(sr(br)),wr;mr.isNaN()?wr=so(In,kn):wr=so(mr,kn),Dt!==void 0?$r(In,!1):wr.isNaN()||$r(wr,!1)},go=function(){St.current=!0},dr=function(kn){var mr=kn.key,wr=kn.shiftKey;St.current=!0,fn.current=wr,mr==="Enter"&&(It.current||(St.current=!1),ko(!1),Kn==null||Kn(kn)),cn!==!1&&!It.current&&["Up","ArrowUp","Down","ArrowDown"].includes(mr)&&(Xo(mr==="Up"||mr==="ArrowUp"),kn.preventDefault())},Mn=function(){St.current=!1,fn.current=!1};y.useEffect(function(){if(Zn&&pt){var Yn=function(wr){Xo(wr.deltaY<0),wr.preventDefault()},kn=Jt.current;if(kn)return kn.addEventListener("wheel",Yn,{passive:!1}),function(){return kn.removeEventListener("wheel",Yn)}}});var Un=function(){Je&&ko(!1),Ct(!1),St.current=!1};return(0,ot.o)(function(){In.isInvalidate()||$r(In,!1)},[nr,lr]),(0,ot.o)(function(){var Yn=$e(Dt);qn(Yn);var kn=$e(sr(br));(!Yn.equals(kn)||!St.current||lr)&&$r(Yn,St.current)},[Dt]),(0,ot.o)(function(){lr&&Rr()},[br]),y.createElement("div",{ref:Bt,className:ve()(Zt,dt,(0,ye.Z)((0,ye.Z)((0,ye.Z)((0,ye.Z)((0,ye.Z)({},"".concat(Zt,"-focused"),pt),"".concat(Zt,"-disabled"),hn),"".concat(Zt,"-readonly"),Wt),"".concat(Zt,"-not-a-number"),In.isNaN()),"".concat(Zt,"-out-of-range"),!In.isInvalidate()&&!Cr(In))),style:At,onFocus:function(){Ct(!0)},onBlur:Un,onKeyDown:dr,onKeyUp:Mn,onCompositionStart:xo,onCompositionEnd:No,onBeforeInput:go},Nn&&y.createElement(be,{prefixCls:Zt,upNode:an,downNode:Vt,upDisabled:eo,downDisabled:kr,onStep:Xo}),y.createElement("div",{className:"".concat(Nt,"-wrap")},y.createElement("input",(0,me.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":Ut,"aria-valuemax":pn,"aria-valuenow":In.isInvalidate()?null:In.toString(),step:mn},Ue,{ref:(0,ct.sQ)(Jt,xt),className:Nt,value:br,onChange:To,disabled:hn,readOnly:Wt}))))}),at=y.forwardRef(function(Ke,xt){var Zt=Ke.disabled,dt=Ke.style,At=Ke.prefixCls,Ut=At===void 0?"rc-input-number":At,pn=Ke.value,On=Ke.prefix,mn=Ke.suffix,Bn=Ke.addonBefore,Dt=Ke.addonAfter,hn=Ke.className,Wt=Ke.classNames,an=(0,le.Z)(Ke,xe),Vt=y.useRef(null),cn=y.useRef(null),on=y.useRef(null),Zn=function(Nn){on.current&&(0,Ft.nH)(on.current,Nn)};return y.useImperativeHandle(xt,function(){return Qe(on.current,{focus:Zn,nativeElement:Vt.current.nativeElement||cn.current})}),y.createElement(gt.BaseInput,{className:hn,triggerFocus:Zn,prefixCls:Ut,value:pn,disabled:Zt,style:dt,prefix:On,suffix:mn,addonAfter:Dt,addonBefore:Bn,classNames:Wt,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:Vt},y.createElement(Gt,(0,me.Z)({prefixCls:Ut,disabled:Zt,ref:on,domRef:cn,className:Wt==null?void 0:Wt.input},an)))}),st=at,nt=st,rn=z(62487),kt=z(82855),ae=z(48755),re=z(60840),te=z(2171),oe=z(83397),de=z(31756),ne=z(56553),se=z(24971),Oe=z(70045),bt=z(36237),Ge=z(53075),We=z(64910),it=z(39082),ht=z(63356),Pt=z(56119),Le=z(16931),Ve=z(51636),Ot=z(17835);const Yt=Ke=>{var xt;const Zt=(xt=Ke.handleVisible)!==null&&xt!==void 0?xt:"auto",dt=Ke.controlHeightSM-Ke.lineWidth*2;return Object.assign(Object.assign({},(0,We.T)(Ke)),{controlWidth:90,handleWidth:dt,handleFontSize:Ke.fontSize/2,handleVisible:Zt,handleActiveBg:Ke.colorFillAlter,handleBg:Ke.colorBgContainer,filledHandleBg:new Ot.FastColor(Ke.colorFillSecondary).onBackground(Ke.colorBgContainer).toHexString(),handleHoverColor:Ke.colorPrimary,handleBorderColor:Ke.colorBorder,handleOpacity:Zt===!0?1:0,handleVisibleWidth:Zt===!0?dt:0})},un=(Ke,xt)=>{let{componentCls:Zt,borderRadiusSM:dt,borderRadiusLG:At}=Ke;const Ut=xt==="lg"?At:dt;return{[`&-${xt}`]:{[`${Zt}-handler-wrap`]:{borderStartEndRadius:Ut,borderEndEndRadius:Ut},[`${Zt}-handler-up`]:{borderStartEndRadius:Ut},[`${Zt}-handler-down`]:{borderEndEndRadius:Ut}}}},tn=Ke=>{const{componentCls:xt,lineWidth:Zt,lineType:dt,borderRadius:At,inputFontSizeSM:Ut,inputFontSizeLG:pn,controlHeightLG:On,controlHeightSM:mn,colorError:Bn,paddingInlineSM:Dt,paddingBlockSM:hn,paddingBlockLG:Wt,paddingInlineLG:an,colorTextDescription:Vt,motionDurationMid:cn,handleHoverColor:on,handleOpacity:Zn,paddingInline:_n,paddingBlock:Nn,handleBg:jn,handleActiveBg:Gn,colorTextDisabled:$n,borderRadiusSM:lr,borderRadiusLG:nr,controlWidth:dn,handleBorderColor:Cn,filledHandleBg:Hn,lineHeightLG:Kn,calc:Et}=Ke;return[{[xt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,ht.Wf)(Ke)),(0,Ge.ik)(Ke)),{display:"inline-block",width:dn,margin:0,padding:0,borderRadius:At}),(0,it.qG)(Ke,{[`${xt}-handler-wrap`]:{background:jn,[`${xt}-handler-down`]:{borderBlockStart:`${(0,bt.unit)(Zt)} ${dt} ${Cn}`}}})),(0,it.H8)(Ke,{[`${xt}-handler-wrap`]:{background:Hn,[`${xt}-handler-down`]:{borderBlockStart:`${(0,bt.unit)(Zt)} ${dt} ${Cn}`}},"&:focus-within":{[`${xt}-handler-wrap`]:{background:jn}}})),(0,it.vc)(Ke,{[`${xt}-handler-wrap`]:{background:jn,[`${xt}-handler-down`]:{borderBlockStart:`${(0,bt.unit)(Zt)} ${dt} ${Cn}`}}})),(0,it.Mu)(Ke)),{"&-rtl":{direction:"rtl",[`${xt}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:pn,lineHeight:Kn,borderRadius:nr,[`input${xt}-input`]:{height:Et(On).sub(Et(Zt).mul(2)).equal(),padding:`${(0,bt.unit)(Wt)} ${(0,bt.unit)(an)}`}},"&-sm":{padding:0,fontSize:Ut,borderRadius:lr,[`input${xt}-input`]:{height:Et(mn).sub(Et(Zt).mul(2)).equal(),padding:`${(0,bt.unit)(hn)} ${(0,bt.unit)(Dt)}`}},"&-out-of-range":{[`${xt}-input-wrap`]:{input:{color:Bn}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,ht.Wf)(Ke)),(0,Ge.s7)(Ke)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${xt}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${xt}-group-addon`]:{borderRadius:nr,fontSize:Ke.fontSizeLG}},"&-sm":{[`${xt}-group-addon`]:{borderRadius:lr}}},(0,it.ir)(Ke)),(0,it.S5)(Ke)),{[`&:not(${xt}-compact-first-item):not(${xt}-compact-last-item)${xt}-compact-item`]:{[`${xt}, ${xt}-group-addon`]:{borderRadius:0}},[`&:not(${xt}-compact-last-item)${xt}-compact-first-item`]:{[`${xt}, ${xt}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${xt}-compact-first-item)${xt}-compact-last-item`]:{[`${xt}, ${xt}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${xt}-input`]:{cursor:"not-allowed"},[xt]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,ht.Wf)(Ke)),{width:"100%",padding:`${(0,bt.unit)(Nn)} ${(0,bt.unit)(_n)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:At,outline:0,transition:`all ${cn} linear`,appearance:"textfield",fontSize:"inherit"}),(0,Ge.nz)(Ke.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${xt}-handler-wrap, &-focused ${xt}-handler-wrap`]:{width:Ke.handleWidth,opacity:1}})},{[xt]:Object.assign(Object.assign(Object.assign({[`${xt}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:Ke.handleVisibleWidth,opacity:Zn,height:"100%",borderStartStartRadius:0,borderStartEndRadius:At,borderEndEndRadius:At,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${cn}`,overflow:"hidden",[`${xt}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
${xt}-handler-up-inner,
${xt}-handler-down-inner
`]:{marginInlineEnd:0,fontSize:Ke.handleFontSize}}},[`${xt}-handler`]:{height:"50%",overflow:"hidden",color:Vt,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${(0,bt.unit)(Zt)} ${dt} ${Cn}`,transition:`all ${cn} linear`,"&:active":{background:Gn},"&:hover":{height:"60%",[`
${xt}-handler-up-inner,
${xt}-handler-down-inner
`]:{color:on}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,ht.Ro)()),{color:Vt,transition:`all ${cn} linear`,userSelect:"none"})},[`${xt}-handler-up`]:{borderStartEndRadius:At},[`${xt}-handler-down`]:{borderEndEndRadius:At}},un(Ke,"lg")),un(Ke,"sm")),{"&-disabled, &-readonly":{[`${xt}-handler-wrap`]:{display:"none"},[`${xt}-input`]:{color:"inherit"}},[`
${xt}-handler-up-disabled,
${xt}-handler-down-disabled
`]:{cursor:"not-allowed"},[`
${xt}-handler-up-disabled:hover &-handler-up-inner,
${xt}-handler-down-disabled:hover &-handler-down-inner
`]:{color:$n}})}]},Lt=Ke=>{const{componentCls:xt,paddingBlock:Zt,paddingInline:dt,inputAffixPadding:At,controlWidth:Ut,borderRadiusLG:pn,borderRadiusSM:On,paddingInlineLG:mn,paddingInlineSM:Bn,paddingBlockLG:Dt,paddingBlockSM:hn,motionDurationMid:Wt}=Ke;return{[`${xt}-affix-wrapper`]:Object.assign(Object.assign({[`input${xt}-input`]:{padding:`${(0,bt.unit)(Zt)} 0`}},(0,Ge.ik)(Ke)),{position:"relative",display:"inline-flex",alignItems:"center",width:Ut,padding:0,paddingInlineStart:dt,"&-lg":{borderRadius:pn,paddingInlineStart:mn,[`input${xt}-input`]:{padding:`${(0,bt.unit)(Dt)} 0`}},"&-sm":{borderRadius:On,paddingInlineStart:Bn,[`input${xt}-input`]:{padding:`${(0,bt.unit)(hn)} 0`}},[`&:not(${xt}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${xt}-disabled`]:{background:"transparent"},[`> div${xt}`]:{width:"100%",border:"none",outline:"none",[`&${xt}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${xt}-handler-wrap`]:{zIndex:2},[xt]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:At},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:dt,marginInlineStart:At,transition:`margin ${Wt}`}},[`&:hover ${xt}-handler-wrap, &-focused ${xt}-handler-wrap`]:{width:Ke.handleWidth,opacity:1},[`&:not(${xt}-affix-wrapper-without-controls):hover ${xt}-suffix`]:{marginInlineEnd:Ke.calc(Ke.handleWidth).add(dt).equal()}})}};var ln=(0,Le.I$)("InputNumber",Ke=>{const xt=(0,Ve.mergeToken)(Ke,(0,We.e)(Ke));return[tn(xt),Lt(xt),(0,Pt.c)(xt)]},Yt,{unitless:{handleOpacity:!0}}),$t=function(Ke,xt){var Zt={};for(var dt in Ke)Object.prototype.hasOwnProperty.call(Ke,dt)&&xt.indexOf(dt)<0&&(Zt[dt]=Ke[dt]);if(Ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var At=0,dt=Object.getOwnPropertySymbols(Ke);At<dt.length;At++)xt.indexOf(dt[At])<0&&Object.prototype.propertyIsEnumerable.call(Ke,dt[At])&&(Zt[dt[At]]=Ke[dt[At]]);return Zt};const ze=y.forwardRef((Ke,xt)=>{const{getPrefixCls:Zt,direction:dt}=y.useContext(ae.E_),At=y.useRef(null);y.useImperativeHandle(xt,()=>At.current);const{className:Ut,rootClassName:pn,size:On,disabled:mn,prefixCls:Bn,addonBefore:Dt,addonAfter:hn,prefix:Wt,suffix:an,bordered:Vt,readOnly:cn,status:on,controls:Zn,variant:_n}=Ke,Nn=$t(Ke,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),jn=Zt("input-number",Bn),Gn=(0,oe.Z)(jn),[$n,lr,nr]=ln(jn,Gn),{compactSize:dn,compactItemClassnames:Cn}=(0,Oe.ri)(jn,dt);let Hn=y.createElement(ce.Z,{className:`${jn}-handler-up-inner`}),Kn=y.createElement(he.Z,{className:`${jn}-handler-down-inner`});const Et=typeof Zn=="boolean"?Zn:void 0;typeof Zn=="object"&&(Hn=typeof Zn.upIcon=="undefined"?Hn:y.createElement("span",{className:`${jn}-handler-up-inner`},Zn.upIcon),Kn=typeof Zn.downIcon=="undefined"?Kn:y.createElement("span",{className:`${jn}-handler-down-inner`},Zn.downIcon));const{hasFeedback:Rt,status:Je,isFormItemInput:Bt,feedbackIcon:Ue}=y.useContext(ne.aM),Nt=(0,kt.F)(Je,on),Jt=(0,de.Z)(Pn=>{var In;return(In=On!=null?On:dn)!==null&&In!==void 0?In:Pn}),Ln=y.useContext(te.Z),zn=mn!=null?mn:Ln,[pt,Ct]=(0,se.Z)("inputNumber",_n,Vt),St=Rt&&y.createElement(y.Fragment,null,Ue),It=ve()({[`${jn}-lg`]:Jt==="large",[`${jn}-sm`]:Jt==="small",[`${jn}-rtl`]:dt==="rtl",[`${jn}-in-form-item`]:Bt},lr),fn=`${jn}-group`,wn=y.createElement(nt,Object.assign({ref:At,disabled:zn,className:ve()(nr,Gn,Ut,pn,Cn),upHandler:Hn,downHandler:Kn,prefixCls:jn,readOnly:cn,controls:Et,prefix:Wt,suffix:St||an,addonBefore:Dt&&y.createElement(rn.Z,{form:!0,space:!0},Dt),addonAfter:hn&&y.createElement(rn.Z,{form:!0,space:!0},hn),classNames:{input:It,variant:ve()({[`${jn}-${pt}`]:Ct},(0,kt.Z)(jn,Nt,Rt)),affixWrapper:ve()({[`${jn}-affix-wrapper-sm`]:Jt==="small",[`${jn}-affix-wrapper-lg`]:Jt==="large",[`${jn}-affix-wrapper-rtl`]:dt==="rtl",[`${jn}-affix-wrapper-without-controls`]:Zn===!1||zn},lr),wrapper:ve()({[`${fn}-rtl`]:dt==="rtl"},lr),groupWrapper:ve()({[`${jn}-group-wrapper-sm`]:Jt==="small",[`${jn}-group-wrapper-lg`]:Jt==="large",[`${jn}-group-wrapper-rtl`]:dt==="rtl",[`${jn}-group-wrapper-${pt}`]:Ct},(0,kt.Z)(`${jn}-group-wrapper`,Nt,Rt),lr)}},Nn));return $n(wn)}),yt=ze,Ht=Ke=>y.createElement(re.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},y.createElement(ze,Object.assign({},Ke)));yt._InternalPanelDoNotUseOrYouWillBeFired=Ht;var en=yt},49397:function(bn,zt,z){"use strict";z.d(zt,{Z:function(){return Pe}});var y=z(59301),he=z(92310),ce=z.n(he),je=z(36901),ve=z(8654),me=z(62487),ye=z(86013),Ae=z(82855),pe=z(48755),le=z(2171),Re=z(83397),Ie=z(31756),tt=z(56553),He=z(24971),Me=z(70045),Ee=z(23826),we=z(53075);function Ne(Fe){return!!(Fe.prefix||Fe.suffix||Fe.allowClear||Fe.showCount)}var Xe=function(Fe,Ze){var $e={};for(var gt in Fe)Object.prototype.hasOwnProperty.call(Fe,gt)&&Ze.indexOf(gt)<0&&($e[gt]=Fe[gt]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ot=0,gt=Object.getOwnPropertySymbols(Fe);ot<gt.length;ot++)Ze.indexOf(gt[ot])<0&&Object.prototype.propertyIsEnumerable.call(Fe,gt[ot])&&($e[gt[ot]]=Fe[gt[ot]]);return $e},Pe=(0,y.forwardRef)((Fe,Ze)=>{const{prefixCls:$e,bordered:gt=!0,status:ot,size:Qe,disabled:ct,onBlur:Ce,onFocus:et,suffix:Te,allowClear:ue,addonAfter:mt,addonBefore:_e,className:lt,style:Mt,styles:be,rootClassName:ge,onChange:Ft,classNames:_t,variant:Tt}=Fe,xe=Xe(Fe,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:rt,direction:qe,allowClear:Gt,autoComplete:at,className:st,style:nt,classNames:rn,styles:kt}=(0,pe.dj)("input"),ae=rt("input",$e),re=(0,y.useRef)(null),te=(0,Re.Z)(ae),[oe,de,ne]=(0,we.TI)(ae,ge),[se]=(0,we.ZP)(ae,te),{compactSize:Oe,compactItemClassnames:bt}=(0,Me.ri)(ae,qe),Ge=(0,Ie.Z)(en=>{var Ke;return(Ke=Qe!=null?Qe:Oe)!==null&&Ke!==void 0?Ke:en}),We=y.useContext(le.Z),it=ct!=null?ct:We,{status:ht,hasFeedback:Pt,feedbackIcon:Le}=(0,y.useContext)(tt.aM),Ve=(0,Ae.F)(ht,ot),Ot=Ne(Fe)||!!Pt,Yt=(0,y.useRef)(Ot),un=(0,Ee.Z)(re,!0),tn=en=>{un(),Ce==null||Ce(en)},Lt=en=>{un(),et==null||et(en)},ln=en=>{un(),Ft==null||Ft(en)},$t=(Pt||Te)&&y.createElement(y.Fragment,null,Te,Pt&&Le),ze=(0,ye.Z)(ue!=null?ue:Gt),[yt,Ht]=(0,He.Z)("input",Tt,gt);return oe(se(y.createElement(je.default,Object.assign({ref:(0,ve.sQ)(Ze,re),prefixCls:ae,autoComplete:at},xe,{disabled:it,onBlur:tn,onFocus:Lt,style:Object.assign(Object.assign({},nt),Mt),styles:Object.assign(Object.assign({},kt),be),suffix:$t,allowClear:ze,className:ce()(lt,ge,ne,te,bt,st),onChange:ln,addonBefore:_e&&y.createElement(me.Z,{form:!0,space:!0},_e),addonAfter:mt&&y.createElement(me.Z,{form:!0,space:!0},mt),classNames:Object.assign(Object.assign(Object.assign({},_t),rn),{input:ce()({[`${ae}-sm`]:Ge==="small",[`${ae}-lg`]:Ge==="large",[`${ae}-rtl`]:qe==="rtl"},_t==null?void 0:_t.input,rn.input,de),variant:ce()({[`${ae}-${yt}`]:Ht},(0,Ae.Z)(ae,Ve)),affixWrapper:ce()({[`${ae}-affix-wrapper-sm`]:Ge==="small",[`${ae}-affix-wrapper-lg`]:Ge==="large",[`${ae}-affix-wrapper-rtl`]:qe==="rtl"},de),wrapper:ce()({[`${ae}-group-rtl`]:qe==="rtl"},de),groupWrapper:ce()({[`${ae}-group-wrapper-sm`]:Ge==="small",[`${ae}-group-wrapper-lg`]:Ge==="large",[`${ae}-group-wrapper-rtl`]:qe==="rtl",[`${ae}-group-wrapper-${yt}`]:Ht},(0,Ae.Z)(`${ae}-group-wrapper`,Ve,Pt),de)})}))))})},79809:function(bn,zt,z){"use strict";z.d(zt,{Z:function(){return Ze}});var y=z(59301),he=z(92310),ce=z.n(he),je=z(22711),ve=z(86013),me=z(82855),ye=z(48755),Ae=z(2171),pe=z(83397),le=z(31756),Re=z(56553),Ie=z(24971),tt=z(70045),He=z(30292),Me=z(53075),Ee=z(16931),we=z(51636),Ne=z(64910);const Xe=$e=>{const{componentCls:gt,paddingLG:ot}=$e,Qe=`${gt}-textarea`;return{[`textarea${gt}`]:{maxWidth:"100%",height:"auto",minHeight:$e.controlHeight,lineHeight:$e.lineHeight,verticalAlign:"bottom",transition:`all ${$e.motionDurationSlow}`,resize:"vertical",[`&${gt}-mouse-active`]:{transition:`all ${$e.motionDurationSlow}, height 0s, width 0s`}},[`${gt}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[Qe]:{position:"relative","&-show-count":{[`> ${gt}`]:{height:"100%"},[`${gt}-data-count`]:{position:"absolute",bottom:$e.calc($e.fontSize).mul($e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:$e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
&-allow-clear > ${gt},
&-affix-wrapper${Qe}-has-feedback ${gt}
`]:{paddingInlineEnd:ot},[`&-affix-wrapper${gt}-affix-wrapper`]:{padding:0,[`> textarea${gt}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:$e.calc($e.controlHeight).sub($e.calc($e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${gt}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${gt}-clear-icon`]:{position:"absolute",insetInlineEnd:$e.paddingInline,insetBlockStart:$e.paddingXS},[`${Qe}-suffix`]:{position:"absolute",top:0,insetInlineEnd:$e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${gt}-affix-wrapper-sm`]:{[`${gt}-suffix`]:{[`${gt}-clear-icon`]:{insetInlineEnd:$e.paddingInlineSM}}}}}};var ft=(0,Ee.I$)(["Input","TextArea"],$e=>{const gt=(0,we.mergeToken)($e,(0,Ne.e)($e));return[Xe(gt)]},Ne.T,{resetFont:!1}),Pe=function($e,gt){var ot={};for(var Qe in $e)Object.prototype.hasOwnProperty.call($e,Qe)&&gt.indexOf(Qe)<0&&(ot[Qe]=$e[Qe]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,Qe=Object.getOwnPropertySymbols($e);ct<Qe.length;ct++)gt.indexOf(Qe[ct])<0&&Object.prototype.propertyIsEnumerable.call($e,Qe[ct])&&(ot[Qe[ct]]=$e[Qe[ct]]);return ot},Ze=(0,y.forwardRef)(($e,gt)=>{var ot;const{prefixCls:Qe,bordered:ct=!0,size:Ce,disabled:et,status:Te,allowClear:ue,classNames:mt,rootClassName:_e,className:lt,style:Mt,styles:be,variant:ge,showCount:Ft,onMouseDown:_t,onResize:Tt}=$e,xe=Pe($e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:rt,direction:qe,allowClear:Gt,autoComplete:at,className:st,style:nt,classNames:rn,styles:kt}=(0,ye.dj)("textArea"),ae=y.useContext(Ae.Z),re=et!=null?et:ae,{status:te,hasFeedback:oe,feedbackIcon:de}=y.useContext(Re.aM),ne=(0,me.F)(te,Te),se=y.useRef(null);y.useImperativeHandle(gt,()=>{var Ht;return{resizableTextArea:(Ht=se.current)===null||Ht===void 0?void 0:Ht.resizableTextArea,focus:en=>{var Ke,xt;(0,He.nH)((xt=(Ke=se.current)===null||Ke===void 0?void 0:Ke.resizableTextArea)===null||xt===void 0?void 0:xt.textArea,en)},blur:()=>{var en;return(en=se.current)===null||en===void 0?void 0:en.blur()}}});const Oe=rt("input",Qe),bt=(0,pe.Z)(Oe),[Ge,We,it]=(0,Me.TI)(Oe,_e),[ht]=ft(Oe,bt),{compactSize:Pt,compactItemClassnames:Le}=(0,tt.ri)(Oe,qe),Ve=(0,le.Z)(Ht=>{var en;return(en=Ce!=null?Ce:Pt)!==null&&en!==void 0?en:Ht}),[Ot,Yt]=(0,Ie.Z)("textArea",ge,ct),un=(0,ve.Z)(ue!=null?ue:Gt),[tn,Lt]=y.useState(!1),[ln,$t]=y.useState(!1),ze=Ht=>{Lt(!0),_t==null||_t(Ht);const en=()=>{Lt(!1),document.removeEventListener("mouseup",en)};document.addEventListener("mouseup",en)},yt=Ht=>{var en,Ke;if(Tt==null||Tt(Ht),tn&&typeof getComputedStyle=="function"){const xt=(Ke=(en=se.current)===null||en===void 0?void 0:en.nativeElement)===null||Ke===void 0?void 0:Ke.querySelector("textarea");xt&&getComputedStyle(xt).resize==="both"&&$t(!0)}};return Ge(ht(y.createElement(je.default,Object.assign({autoComplete:at},xe,{style:Object.assign(Object.assign({},nt),Mt),styles:Object.assign(Object.assign({},kt),be),disabled:re,allowClear:un,className:ce()(it,bt,lt,_e,Le,st,ln&&`${Oe}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},mt),rn),{textarea:ce()({[`${Oe}-sm`]:Ve==="small",[`${Oe}-lg`]:Ve==="large"},We,mt==null?void 0:mt.textarea,rn.textarea,tn&&`${Oe}-mouse-active`),variant:ce()({[`${Oe}-${Ot}`]:Yt},(0,me.Z)(Oe,ne)),affixWrapper:ce()(`${Oe}-textarea-affix-wrapper`,{[`${Oe}-affix-wrapper-rtl`]:qe==="rtl",[`${Oe}-affix-wrapper-sm`]:Ve==="small",[`${Oe}-affix-wrapper-lg`]:Ve==="large",[`${Oe}-textarea-show-count`]:Ft||((ot=$e.count)===null||ot===void 0?void 0:ot.show)},We)}),prefixCls:Oe,suffix:oe&&y.createElement("span",{className:`${Oe}-textarea-suffix`},de),showCount:Ft,ref:se,onResize:yt,onMouseDown:ze}))))})},23826:function(bn,zt,z){"use strict";z.d(zt,{Z:function(){return he}});var y=z(59301);function he(ce,je){const ve=(0,y.useRef)([]),me=()=>{ve.current.push(setTimeout(()=>{var ye,Ae,pe,le;!((ye=ce.current)===null||ye===void 0)&&ye.input&&((Ae=ce.current)===null||Ae===void 0?void 0:Ae.input.getAttribute("type"))==="password"&&(!((pe=ce.current)===null||pe===void 0)&&pe.input.hasAttribute("value"))&&((le=ce.current)===null||le===void 0||le.input.removeAttribute("value"))}))};return(0,y.useEffect)(()=>(je&&me(),()=>ve.current.forEach(ye=>{ye&&clearTimeout(ye)})),[]),me}},37568:function(bn,zt,z){"use strict";z.d(zt,{default:function(){return rn}});var y=z(59301),he=z(92310),ce=z.n(he),je=z(48755),ve=z(56553),me=z(53075),Ae=kt=>{const{getPrefixCls:ae,direction:re}=(0,y.useContext)(je.E_),{prefixCls:te,className:oe}=kt,de=ae("input-group",te),ne=ae("input"),[se,Oe,bt]=(0,me.ZP)(ne),Ge=ce()(de,bt,{[`${de}-lg`]:kt.size==="large",[`${de}-sm`]:kt.size==="small",[`${de}-compact`]:kt.compact,[`${de}-rtl`]:re==="rtl"},Oe,oe),We=(0,y.useContext)(ve.aM),it=(0,y.useMemo)(()=>Object.assign(Object.assign({},We),{isFormItemInput:!1}),[We]);return se(y.createElement("span",{className:Ge,style:kt.style,onMouseEnter:kt.onMouseEnter,onMouseLeave:kt.onMouseLeave,onFocus:kt.onFocus,onBlur:kt.onBlur},y.createElement(ve.aM.Provider,{value:it},kt.children)))},pe=z(49397),le=z(94480),Re=z(6089),Ie=z(26112),tt=z(82855),He=z(31756),Me=z(16931),Ee=z(51636),we=z(64910);const Ne=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 Xe=(0,Me.I$)(["Input","OTP"],kt=>{const ae=(0,Ee.mergeToken)(kt,(0,we.e)(kt));return[Ne(ae)]},we.T),ft=z(16089),Pe=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 oe=0,te=Object.getOwnPropertySymbols(kt);oe<te.length;oe++)ae.indexOf(te[oe])<0&&Object.prototype.propertyIsEnumerable.call(kt,te[oe])&&(re[te[oe]]=kt[te[oe]]);return re},Ze=y.forwardRef((kt,ae)=>{const{value:re,onChange:te,onActiveChange:oe,index:de,mask:ne}=kt,se=Pe(kt,["value","onChange","onActiveChange","index","mask"]),Oe=re&&typeof ne=="string"?ne:re,bt=Pt=>{te(de,Pt.target.value)},Ge=y.useRef(null);y.useImperativeHandle(ae,()=>Ge.current);const We=()=>{(0,ft.Z)(()=>{var Pt;const Le=(Pt=Ge.current)===null||Pt===void 0?void 0:Pt.input;document.activeElement===Le&&Le&&Le.select()})},it=Pt=>{const{key:Le,ctrlKey:Ve,metaKey:Ot}=Pt;Le==="ArrowLeft"?oe(de-1):Le==="ArrowRight"?oe(de+1):Le==="z"&&(Ve||Ot)&&Pt.preventDefault(),We()},ht=Pt=>{Pt.key==="Backspace"&&!re&&oe(de-1),We()};return y.createElement(pe.Z,Object.assign({type:ne===!0?"password":"text"},se,{ref:Ge,value:Oe,onInput:bt,onFocus:We,onKeyDown:it,onKeyUp:ht,onMouseDown:We,onMouseUp:We}))}),$e=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 oe=0,te=Object.getOwnPropertySymbols(kt);oe<te.length;oe++)ae.indexOf(te[oe])<0&&Object.prototype.propertyIsEnumerable.call(kt,te[oe])&&(re[te[oe]]=kt[te[oe]]);return re};function gt(kt){return(kt||"").split("")}const ot=kt=>{const{index:ae,prefixCls:re,separator:te}=kt,oe=typeof te=="function"?te(ae):te;return oe?y.createElement("span",{className:`${re}-separator`},oe):null};var ct=y.forwardRef((kt,ae)=>{const{prefixCls:re,length:te=6,size:oe,defaultValue:de,value:ne,onChange:se,formatter:Oe,separator:bt,variant:Ge,disabled:We,status:it,autoFocus:ht,mask:Pt,type:Le,onInput:Ve,inputMode:Ot}=kt,Yt=$e(kt,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:un,direction:tn}=y.useContext(je.E_),Lt=un("otp",re),ln=(0,Ie.Z)(Yt,{aria:!0,data:!0,attr:!0}),[$t,ze,yt]=Xe(Lt),Ht=(0,He.Z)(Wt=>oe!=null?oe:Wt),en=y.useContext(ve.aM),Ke=(0,tt.F)(en.status,it),xt=y.useMemo(()=>Object.assign(Object.assign({},en),{status:Ke,hasFeedback:!1,feedbackIcon:null}),[en,Ke]),Zt=y.useRef(null),dt=y.useRef({});y.useImperativeHandle(ae,()=>({focus:()=>{var Wt;(Wt=dt.current[0])===null||Wt===void 0||Wt.focus()},blur:()=>{var Wt;for(let an=0;an<te;an+=1)(Wt=dt.current[an])===null||Wt===void 0||Wt.blur()},nativeElement:Zt.current}));const At=Wt=>Oe?Oe(Wt):Wt,[Ut,pn]=y.useState(()=>gt(At(de||"")));y.useEffect(()=>{ne!==void 0&&pn(gt(ne))},[ne]);const On=(0,Re.Z)(Wt=>{pn(Wt),Ve&&Ve(Wt),se&&Wt.length===te&&Wt.every(an=>an)&&Wt.some((an,Vt)=>Ut[Vt]!==an)&&se(Wt.join(""))}),mn=(0,Re.Z)((Wt,an)=>{let Vt=(0,le.Z)(Ut);for(let on=0;on<Wt;on+=1)Vt[on]||(Vt[on]="");an.length<=1?Vt[Wt]=an:Vt=Vt.slice(0,Wt).concat(gt(an)),Vt=Vt.slice(0,te);for(let on=Vt.length-1;on>=0&&!Vt[on];on-=1)Vt.pop();const cn=At(Vt.map(on=>on||" ").join(""));return Vt=gt(cn).map((on,Zn)=>on===" "&&!Vt[Zn]?Vt[Zn]:on),Vt}),Bn=(Wt,an)=>{var Vt;const cn=mn(Wt,an),on=Math.min(Wt+an.length,te-1);on!==Wt&&cn[Wt]!==void 0&&((Vt=dt.current[on])===null||Vt===void 0||Vt.focus()),On(cn)},Dt=Wt=>{var an;(an=dt.current[Wt])===null||an===void 0||an.focus()},hn={variant:Ge,disabled:We,status:Ke,mask:Pt,type:Le,inputMode:Ot};return $t(y.createElement("div",Object.assign({},ln,{ref:Zt,className:ce()(Lt,{[`${Lt}-sm`]:Ht==="small",[`${Lt}-lg`]:Ht==="large",[`${Lt}-rtl`]:tn==="rtl"},yt,ze)}),y.createElement(ve.aM.Provider,{value:xt},Array.from({length:te}).map((Wt,an)=>{const Vt=`otp-${an}`,cn=Ut[an]||"";return y.createElement(y.Fragment,{key:Vt},y.createElement(Ze,Object.assign({ref:on=>{dt.current[an]=on},index:an,size:Ht,htmlSize:1,className:`${Lt}-input`,onChange:Bn,value:cn,onActiveChange:Dt,autoFocus:an===0&&ht},hn)),an<te-1&&y.createElement(ot,{separator:bt,index:an,prefixCls:Lt}))}))))}),Ce=z(73331),et=z(15277),Te=z(2738),ue=z(8654),mt=z(2171),_e=z(23826),lt=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 oe=0,te=Object.getOwnPropertySymbols(kt);oe<te.length;oe++)ae.indexOf(te[oe])<0&&Object.prototype.propertyIsEnumerable.call(kt,te[oe])&&(re[te[oe]]=kt[te[oe]]);return re};const Mt=kt=>kt?y.createElement(et.Z,null):y.createElement(Ce.Z,null),be={click:"onClick",hover:"onMouseOver"};var Ft=y.forwardRef((kt,ae)=>{const{disabled:re,action:te="click",visibilityToggle:oe=!0,iconRender:de=Mt}=kt,ne=y.useContext(mt.Z),se=re!=null?re:ne,Oe=typeof oe=="object"&&oe.visible!==void 0,[bt,Ge]=(0,y.useState)(()=>Oe?oe.visible:!1),We=(0,y.useRef)(null);y.useEffect(()=>{Oe&&Ge(oe.visible)},[Oe,oe]);const it=(0,_e.Z)(We),ht=()=>{var Ht;if(se)return;bt&&it();const en=!bt;Ge(en),typeof oe=="object"&&((Ht=oe.onVisibleChange)===null||Ht===void 0||Ht.call(oe,en))},Pt=Ht=>{const en=be[te]||"",Ke=de(bt),xt={[en]:ht,className:`${Ht}-icon`,key:"passwordIcon",onMouseDown:Zt=>{Zt.preventDefault()},onMouseUp:Zt=>{Zt.preventDefault()}};return y.cloneElement(y.isValidElement(Ke)?Ke:y.createElement("span",null,Ke),xt)},{className:Le,prefixCls:Ve,inputPrefixCls:Ot,size:Yt}=kt,un=lt(kt,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:tn}=y.useContext(je.E_),Lt=tn("input",Ot),ln=tn("input-password",Ve),$t=oe&&Pt(ln),ze=ce()(ln,Le,{[`${ln}-${Yt}`]:!!Yt}),yt=Object.assign(Object.assign({},(0,Te.Z)(un,["suffix","iconRender","visibilityToggle"])),{type:bt?"text":"password",className:ze,prefixCls:Lt,suffix:$t});return Yt&&(yt.size=Yt),y.createElement(pe.Z,Object.assign({ref:(0,ue.sQ)(ae,We)},yt))}),_t=z(47472),Tt=z(22703),xe=z(7939),rt=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 oe=0,te=Object.getOwnPropertySymbols(kt);oe<te.length;oe++)ae.indexOf(te[oe])<0&&Object.prototype.propertyIsEnumerable.call(kt,te[oe])&&(re[te[oe]]=kt[te[oe]]);return re},at=y.forwardRef((kt,ae)=>{const{prefixCls:re,inputPrefixCls:te,className:oe,size:de,suffix:ne,enterButton:se=!1,addonAfter:Oe,loading:bt,disabled:Ge,onSearch:We,onChange:it,onCompositionStart:ht,onCompositionEnd:Pt}=kt,Le=qe(kt,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:Ve,direction:Ot}=y.useContext(je.E_),Yt=y.useRef(!1),un=Ve("input-search",re),tn=Ve("input",te),{compactSize:Lt}=(0,rt.ri)(un,Ot),ln=(0,He.Z)(Bn=>{var Dt;return(Dt=de!=null?de:Lt)!==null&&Dt!==void 0?Dt:Bn}),$t=y.useRef(null),ze=Bn=>{Bn!=null&&Bn.target&&Bn.type==="click"&&We&&We(Bn.target.value,Bn,{source:"clear"}),it==null||it(Bn)},yt=Bn=>{var Dt;document.activeElement===((Dt=$t.current)===null||Dt===void 0?void 0:Dt.input)&&Bn.preventDefault()},Ht=Bn=>{var Dt,hn;We&&We((hn=(Dt=$t.current)===null||Dt===void 0?void 0:Dt.input)===null||hn===void 0?void 0:hn.value,Bn,{source:"input"})},en=Bn=>{Yt.current||bt||Ht(Bn)},Ke=typeof se=="boolean"?y.createElement(_t.Z,null):null,xt=`${un}-button`;let Zt;const dt=se||{},At=dt.type&&dt.type.__ANT_BUTTON===!0;At||dt.type==="button"?Zt=(0,Tt.Tm)(dt,Object.assign({onMouseDown:yt,onClick:Bn=>{var Dt,hn;(hn=(Dt=dt==null?void 0:dt.props)===null||Dt===void 0?void 0:Dt.onClick)===null||hn===void 0||hn.call(Dt,Bn),Ht(Bn)},key:"enterButton"},At?{className:xt,size:ln}:{})):Zt=y.createElement(xe.ZP,{className:xt,type:se?"primary":void 0,size:ln,disabled:Ge,key:"enterButton",onMouseDown:yt,onClick:Ht,loading:bt,icon:Ke},se),Oe&&(Zt=[Zt,(0,Tt.Tm)(Oe,{key:"addonAfter"})]);const Ut=ce()(un,{[`${un}-rtl`]:Ot==="rtl",[`${un}-${ln}`]:!!ln,[`${un}-with-button`]:!!se},oe),pn=Object.assign(Object.assign({},Le),{className:Ut,prefixCls:tn,type:"search"}),On=Bn=>{Yt.current=!0,ht==null||ht(Bn)},mn=Bn=>{Yt.current=!1,Pt==null||Pt(Bn)};return y.createElement(pe.Z,Object.assign({ref:(0,ue.sQ)($t,ae),onPressEnter:en},pn,{size:ln,onCompositionStart:On,onCompositionEnd:mn,addonAfter:Zt,suffix:ne,onChange:ze,disabled:Ge}))}),st=z(79809);const nt=pe.Z;nt.Group=Ae,nt.Search=at,nt.TextArea=st.Z,nt.Password=Ft,nt.OTP=ct;var rn=nt},24303:function(bn,zt,z){"use strict";z.d(zt,{D:function(){return $e},Z:function(){return Qe}});var y=z(59301),he=z(54476),ce={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},je=ce,ve=z(7657),me=function(Ce,et){return y.createElement(ve.Z,(0,he.Z)({},Ce,{ref:et,icon:je}))},ye=y.forwardRef(me),Ae=ye,pe=z(33853),le=z(38819),Re=z(92310),Ie=z.n(Re),tt=z(2738),He=z(48755),Me=z(6989),Ee=z(36237),we=z(48923),Ne=z(16931);const Xe=ct=>{const{componentCls:Ce,siderBg:et,motionDurationMid:Te,motionDurationSlow:ue,antCls:mt,triggerHeight:_e,triggerColor:lt,triggerBg:Mt,headerHeight:be,zeroTriggerWidth:ge,zeroTriggerHeight:Ft,borderRadiusLG:_t,lightSiderBg:Tt,lightTriggerColor:xe,lightTriggerBg:rt,bodyBg:qe}=ct;return{[Ce]:{position:"relative",minWidth:0,background:et,transition:`all ${Te}, background 0s`,"&-has-trigger":{paddingBottom:_e},"&-right":{order:1},[`${Ce}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${mt}-menu${mt}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${Ce}-children`]:{overflow:"hidden"},[`${Ce}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:_e,color:lt,lineHeight:(0,Ee.unit)(_e),textAlign:"center",background:Mt,cursor:"pointer",transition:`all ${Te}`},[`${Ce}-zero-width-trigger`]:{position:"absolute",top:be,insetInlineEnd:ct.calc(ge).mul(-1).equal(),zIndex:1,width:ge,height:Ft,color:lt,fontSize:ct.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:et,borderRadius:`0 ${(0,Ee.unit)(_t)} ${(0,Ee.unit)(_t)} 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:ct.calc(ge).mul(-1).equal(),borderRadius:`${(0,Ee.unit)(_t)} 0 0 ${(0,Ee.unit)(_t)}`}},"&-light":{background:Tt,[`${Ce}-trigger`]:{color:xe,background:rt},[`${Ce}-zero-width-trigger`]:{color:xe,background:rt,border:`1px solid ${qe}`,borderInlineStart:0}}}}};var ft=(0,Ne.I$)(["Layout","Sider"],ct=>[Xe(ct)],we.eh,{deprecatedTokens:we.jn}),Pe=function(ct,Ce){var et={};for(var Te in ct)Object.prototype.hasOwnProperty.call(ct,Te)&&Ce.indexOf(Te)<0&&(et[Te]=ct[Te]);if(ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ue=0,Te=Object.getOwnPropertySymbols(ct);ue<Te.length;ue++)Ce.indexOf(Te[ue])<0&&Object.prototype.propertyIsEnumerable.call(ct,Te[ue])&&(et[Te[ue]]=ct[Te[ue]]);return et};const Fe={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},Ze=ct=>!Number.isNaN(Number.parseFloat(ct))&&isFinite(ct),$e=y.createContext({}),gt=(()=>{let ct=0;return function(){let Ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return ct+=1,`${Ce}${ct}`}})();var Qe=y.forwardRef((ct,Ce)=>{const{prefixCls:et,className:Te,trigger:ue,children:mt,defaultCollapsed:_e=!1,theme:lt="dark",style:Mt={},collapsible:be=!1,reverseArrow:ge=!1,width:Ft=200,collapsedWidth:_t=80,zeroWidthTriggerStyle:Tt,breakpoint:xe,onCollapse:rt,onBreakpoint:qe}=ct,Gt=Pe(ct,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:at}=(0,y.useContext)(Me.V),[st,nt]=(0,y.useState)("collapsed"in ct?ct.collapsed:_e),[rn,kt]=(0,y.useState)(!1);(0,y.useEffect)(()=>{"collapsed"in ct&&nt(ct.collapsed)},[ct.collapsed]);const ae=(ln,$t)=>{"collapsed"in ct||nt(ln),rt==null||rt(ln,$t)},{getPrefixCls:re,direction:te}=(0,y.useContext)(He.E_),oe=re("layout-sider",et),[de,ne,se]=ft(oe),Oe=(0,y.useRef)(null);Oe.current=ln=>{kt(ln.matches),qe==null||qe(ln.matches),st!==ln.matches&&ae(ln.matches,"responsive")},(0,y.useEffect)(()=>{function ln(ze){return Oe.current(ze)}let $t;if(typeof window!="undefined"){const{matchMedia:ze}=window;if(ze&&xe&&xe in Fe){$t=ze(`screen and (max-width: ${Fe[xe]})`);try{$t.addEventListener("change",ln)}catch(yt){$t.addListener(ln)}ln($t)}}return()=>{try{$t==null||$t.removeEventListener("change",ln)}catch(ze){$t==null||$t.removeListener(ln)}}},[xe]),(0,y.useEffect)(()=>{const ln=gt("ant-sider-");return at.addSider(ln),()=>at.removeSider(ln)},[]);const bt=()=>{ae(!st,"clickTrigger")},Ge=(0,tt.Z)(Gt,["collapsed"]),We=st?_t:Ft,it=Ze(We)?`${We}px`:String(We),ht=parseFloat(String(_t||0))===0?y.createElement("span",{onClick:bt,className:Ie()(`${oe}-zero-width-trigger`,`${oe}-zero-width-trigger-${ge?"right":"left"}`),style:Tt},ue||y.createElement(Ae,null)):null,Pt=te==="rtl"==!ge,Ot={expanded:Pt?y.createElement(le.Z,null):y.createElement(pe.Z,null),collapsed:Pt?y.createElement(pe.Z,null):y.createElement(le.Z,null)}[st?"collapsed":"expanded"],Yt=ue!==null?ht||y.createElement("div",{className:`${oe}-trigger`,onClick:bt,style:{width:it}},ue||Ot):null,un=Object.assign(Object.assign({},Mt),{flex:`0 0 ${it}`,maxWidth:it,minWidth:it,width:it}),tn=Ie()(oe,`${oe}-${lt}`,{[`${oe}-collapsed`]:!!st,[`${oe}-has-trigger`]:be&&ue!==null&&!ht,[`${oe}-below`]:!!rn,[`${oe}-zero-width`]:parseFloat(it)===0},Te,ne,se),Lt=y.useMemo(()=>({siderCollapsed:st}),[st]);return de(y.createElement($e.Provider,{value:Lt},y.createElement("aside",Object.assign({className:tn},Ge,{style:un,ref:Ce}),y.createElement("div",{className:`${oe}-children`},mt),be||rn&&ht?Yt:null)))})},6989:function(bn,zt,z){"use strict";z.d(zt,{V:function(){return he}});var y=z(59301);const he=y.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}})},48923:function(bn,zt,z){"use strict";z.d(zt,{eh:function(){return je},jn:function(){return ve}});var y=z(36237),he=z(16931);const ce=me=>{const{antCls:ye,componentCls:Ae,colorText:pe,footerBg:le,headerHeight:Re,headerPadding:Ie,headerColor:tt,footerPadding:He,fontSize:Me,bodyBg:Ee,headerBg:we}=me;return{[Ae]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Ee,"&, *":{boxSizing:"border-box"},[`&${Ae}-has-sider`]:{flexDirection:"row",[`> ${Ae}, > ${Ae}-content`]:{width:0}},[`${Ae}-header, &${Ae}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${Ae}-header`]:{height:Re,padding:Ie,color:tt,lineHeight:(0,y.unit)(Re),background:we,[`${ye}-menu`]:{lineHeight:"inherit"}},[`${Ae}-footer`]:{padding:He,color:pe,fontSize:Me,background:le},[`${Ae}-content`]:{flex:"auto",color:pe,minHeight:0}}},je=me=>{const{colorBgLayout:ye,controlHeight:Ae,controlHeightLG:pe,colorText:le,controlHeightSM:Re,marginXXS:Ie,colorTextLightSolid:tt,colorBgContainer:He}=me,Me=pe*1.25;return{colorBgHeader:"#001529",colorBgBody:ye,colorBgTrigger:"#002140",bodyBg:ye,headerBg:"#001529",headerHeight:Ae*2,headerPadding:`0 ${Me}px`,headerColor:le,footerPadding:`${Re}px ${Me}px`,footerBg:ye,siderBg:"#001529",triggerHeight:pe+Ie*2,triggerBg:"#002140",triggerColor:tt,zeroTriggerWidth:pe,zeroTriggerHeight:pe,lightSiderBg:He,lightTriggerBg:He,lightTriggerColor:le}},ve=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];zt.ZP=(0,he.I$)("Layout",me=>[ce(me)],je,{deprecatedTokens:ve})},78857:function(bn,zt,z){"use strict";z.d(zt,{J:function(){return me}});var y=z(59301),he=z(8654),ce=z(62487),je=function(ye,Ae){var pe={};for(var le in ye)Object.prototype.hasOwnProperty.call(ye,le)&&Ae.indexOf(le)<0&&(pe[le]=ye[le]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,le=Object.getOwnPropertySymbols(ye);Re<le.length;Re++)Ae.indexOf(le[Re])<0&&Object.prototype.propertyIsEnumerable.call(ye,le[Re])&&(pe[le[Re]]=ye[le[Re]]);return pe};const ve=y.createContext(null),me=y.forwardRef((ye,Ae)=>{const{children:pe}=ye,le=je(ye,["children"]),Re=y.useContext(ve),Ie=y.useMemo(()=>Object.assign(Object.assign({},Re),le),[Re,le.prefixCls,le.mode,le.selectable,le.rootClassName]),tt=(0,he.t4)(pe),He=(0,he.x1)(Ae,tt?(0,he.C4)(pe):null);return y.createElement(ve.Provider,{value:Ie},y.createElement(ce.Z,{space:!0},tt?y.cloneElement(pe,{ref:He}):pe))});zt.Z=ve},93041:function(bn,zt,z){"use strict";z.d(zt,{default:function(){return de}});var y=z(59301),he=z(28321),ce=z(24303),je=z(18785),ve=z(92310),me=z.n(ve),ye=z(6089),Ae=z(2738),pe=z(86641),le=z(22703),Re=z(48755),Ie=z(83397),He=(0,y.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),Me=function(ne,se){var Oe={};for(var bt in ne)Object.prototype.hasOwnProperty.call(ne,bt)&&se.indexOf(bt)<0&&(Oe[bt]=ne[bt]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ge=0,bt=Object.getOwnPropertySymbols(ne);Ge<bt.length;Ge++)se.indexOf(bt[Ge])<0&&Object.prototype.propertyIsEnumerable.call(ne,bt[Ge])&&(Oe[bt[Ge]]=ne[bt[Ge]]);return Oe},we=ne=>{const{prefixCls:se,className:Oe,dashed:bt}=ne,Ge=Me(ne,["prefixCls","className","dashed"]),{getPrefixCls:We}=y.useContext(Re.E_),it=We("menu",se),ht=me()({[`${it}-item-divider-dashed`]:!!bt},Oe);return y.createElement(he.iz,Object.assign({className:ht},Ge))},Ne=z(11592),Xe=z(25399),Pe=ne=>{var se;const{className:Oe,children:bt,icon:Ge,title:We,danger:it,extra:ht}=ne,{prefixCls:Pt,firstLevel:Le,direction:Ve,disableMenuItemTitleTooltip:Ot,inlineCollapsed:Yt}=y.useContext(He),un=yt=>{const Ht=bt==null?void 0:bt[0],en=y.createElement("span",{className:me()(`${Pt}-title-content`,{[`${Pt}-title-content-with-extra`]:!!ht||ht===0})},bt);return(!Ge||y.isValidElement(bt)&&bt.type==="span")&&bt&&yt&&Le&&typeof Ht=="string"?y.createElement("div",{className:`${Pt}-inline-collapsed-noicon`},Ht.charAt(0)):en},{siderCollapsed:tn}=y.useContext(ce.D);let Lt=We;typeof We=="undefined"?Lt=Le?bt:"":We===!1&&(Lt="");const ln={title:Lt};!tn&&!Yt&&(ln.title=null,ln.open=!1);const $t=(0,Ne.Z)(bt).length;let ze=y.createElement(he.ck,Object.assign({},(0,Ae.Z)(ne,["title","icon","danger"]),{className:me()({[`${Pt}-item-danger`]:it,[`${Pt}-item-only-child`]:(Ge?$t+1:$t)===1},Oe),title:typeof We=="string"?We:void 0}),(0,le.Tm)(Ge,{className:me()(y.isValidElement(Ge)?(se=Ge.props)===null||se===void 0?void 0:se.className:"",`${Pt}-item-icon`)}),un(Yt));return Ot||(ze=y.createElement(Xe.Z,Object.assign({},ln,{placement:Ve==="rtl"?"left":"right",classNames:{root:`${Pt}-inline-collapsed-tooltip`}}),ze)),ze},Fe=z(78857),Ze=z(36237),$e=z(17835),gt=z(63356),ot=z(34961),Qe=z(46e3),ct=z(34925),Ce=z(16931),et=z(51636),ue=ne=>{const{componentCls:se,motionDurationSlow:Oe,horizontalLineHeight:bt,colorSplit:Ge,lineWidth:We,lineType:it,itemPaddingInline:ht}=ne;return{[`${se}-horizontal`]:{lineHeight:bt,border:0,borderBottom:`${(0,Ze.unit)(We)} ${it} ${Ge}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${se}-item, ${se}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:ht},[`> ${se}-item:hover,
> ${se}-item-active,
> ${se}-submenu ${se}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${se}-item, ${se}-submenu-title`]:{transition:[`border-color ${Oe}`,`background ${Oe}`].join(",")},[`${se}-submenu-arrow`]:{display:"none"}}}},_e=ne=>{let{componentCls:se,menuArrowOffset:Oe,calc:bt}=ne;return{[`${se}-rtl`]:{direction:"rtl"},[`${se}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${se}-rtl${se}-vertical,
${se}-submenu-rtl ${se}-vertical`]:{[`${se}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${(0,Ze.unit)(bt(Oe).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${(0,Ze.unit)(Oe)})`}}}}};const lt=ne=>Object.assign({},(0,gt.oN)(ne));var be=(ne,se)=>{const{componentCls:Oe,itemColor:bt,itemSelectedColor:Ge,subMenuItemSelectedColor:We,groupTitleColor:it,itemBg:ht,subMenuItemBg:Pt,itemSelectedBg:Le,activeBarHeight:Ve,activeBarWidth:Ot,activeBarBorderWidth:Yt,motionDurationSlow:un,motionEaseInOut:tn,motionEaseOut:Lt,itemPaddingInline:ln,motionDurationMid:$t,itemHoverColor:ze,lineType:yt,colorSplit:Ht,itemDisabledColor:en,dangerItemColor:Ke,dangerItemHoverColor:xt,dangerItemSelectedColor:Zt,dangerItemActiveBg:dt,dangerItemSelectedBg:At,popupBg:Ut,itemHoverBg:pn,itemActiveBg:On,menuSubMenuBg:mn,horizontalItemSelectedColor:Bn,horizontalItemSelectedBg:Dt,horizontalItemBorderRadius:hn,horizontalItemHoverBg:Wt}=ne;return{[`${Oe}-${se}, ${Oe}-${se} > ${Oe}`]:{color:bt,background:ht,[`&${Oe}-root:focus-visible`]:Object.assign({},lt(ne)),[`${Oe}-item`]:{"&-group-title, &-extra":{color:it}},[`${Oe}-submenu-selected > ${Oe}-submenu-title`]:{color:We},[`${Oe}-item, ${Oe}-submenu-title`]:{color:bt,[`&:not(${Oe}-item-disabled):focus-visible`]:Object.assign({},lt(ne))},[`${Oe}-item-disabled, ${Oe}-submenu-disabled`]:{color:`${en} !important`},[`${Oe}-item:not(${Oe}-item-selected):not(${Oe}-submenu-selected)`]:{[`&:hover, > ${Oe}-submenu-title:hover`]:{color:ze}},[`&:not(${Oe}-horizontal)`]:{[`${Oe}-item:not(${Oe}-item-selected)`]:{"&:hover":{backgroundColor:pn},"&:active":{backgroundColor:On}},[`${Oe}-submenu-title`]:{"&:hover":{backgroundColor:pn},"&:active":{backgroundColor:On}}},[`${Oe}-item-danger`]:{color:Ke,[`&${Oe}-item:hover`]:{[`&:not(${Oe}-item-selected):not(${Oe}-submenu-selected)`]:{color:xt}},[`&${Oe}-item:active`]:{background:dt}},[`${Oe}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Oe}-item-selected`]:{color:Ge,[`&${Oe}-item-danger`]:{color:Zt},"a, a:hover":{color:"inherit"}},[`& ${Oe}-item-selected`]:{backgroundColor:Le,[`&${Oe}-item-danger`]:{backgroundColor:At}},[`&${Oe}-submenu > ${Oe}`]:{backgroundColor:mn},[`&${Oe}-popup > ${Oe}`]:{backgroundColor:Ut},[`&${Oe}-submenu-popup > ${Oe}`]:{backgroundColor:Ut},[`&${Oe}-horizontal`]:Object.assign(Object.assign({},se==="dark"?{borderBottom:0}:{}),{[`> ${Oe}-item, > ${Oe}-submenu`]:{top:Yt,marginTop:ne.calc(Yt).mul(-1).equal(),marginBottom:0,borderRadius:hn,"&::after":{position:"absolute",insetInline:ln,bottom:0,borderBottom:`${(0,Ze.unit)(Ve)} solid transparent`,transition:`border-color ${un} ${tn}`,content:'""'},"&:hover, &-active, &-open":{background:Wt,"&::after":{borderBottomWidth:Ve,borderBottomColor:Bn}},"&-selected":{color:Bn,backgroundColor:Dt,"&:hover":{backgroundColor:Dt},"&::after":{borderBottomWidth:Ve,borderBottomColor:Bn}}}}),[`&${Oe}-root`]:{[`&${Oe}-inline, &${Oe}-vertical`]:{borderInlineEnd:`${(0,Ze.unit)(Yt)} ${yt} ${Ht}`}},[`&${Oe}-inline`]:{[`${Oe}-sub${Oe}-inline`]:{background:Pt},[`${Oe}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${(0,Ze.unit)(Ot)} solid ${Ge}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${$t} ${Lt}`,`opacity ${$t} ${Lt}`].join(","),content:'""'},[`&${Oe}-item-danger`]:{"&::after":{borderInlineEndColor:Zt}}},[`${Oe}-selected, ${Oe}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${$t} ${tn}`,`opacity ${$t} ${tn}`].join(",")}}}}}};const ge=ne=>{const{componentCls:se,itemHeight:Oe,itemMarginInline:bt,padding:Ge,menuArrowSize:We,marginXS:it,itemMarginBlock:ht,itemWidth:Pt,itemPaddingInline:Le}=ne,Ve=ne.calc(We).add(Ge).add(it).equal();return{[`${se}-item`]:{position:"relative",overflow:"hidden"},[`${se}-item, ${se}-submenu-title`]:{height:Oe,lineHeight:(0,Ze.unit)(Oe),paddingInline:Le,overflow:"hidden",textOverflow:"ellipsis",marginInline:bt,marginBlock:ht,width:Pt},[`> ${se}-item,
> ${se}-submenu > ${se}-submenu-title`]:{height:Oe,lineHeight:(0,Ze.unit)(Oe)},[`${se}-item-group-list ${se}-submenu-title,
${se}-submenu-title`]:{paddingInlineEnd:Ve}}};var _t=ne=>{const{componentCls:se,iconCls:Oe,itemHeight:bt,colorTextLightSolid:Ge,dropdownWidth:We,controlHeightLG:it,motionEaseOut:ht,paddingXL:Pt,itemMarginInline:Le,fontSizeLG:Ve,motionDurationFast:Ot,motionDurationSlow:Yt,paddingXS:un,boxShadowSecondary:tn,collapsedWidth:Lt,collapsedIconSize:ln}=ne,$t={height:bt,lineHeight:(0,Ze.unit)(bt),listStylePosition:"inside",listStyleType:"disc"};return[{[se]:{"&-inline, &-vertical":Object.assign({[`&${se}-root`]:{boxShadow:"none"}},ge(ne))},[`${se}-submenu-popup`]:{[`${se}-vertical`]:Object.assign(Object.assign({},ge(ne)),{boxShadow:tn})}},{[`${se}-submenu-popup ${se}-vertical${se}-sub`]:{minWidth:We,maxHeight:`calc(100vh - ${(0,Ze.unit)(ne.calc(it).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${se}-inline`]:{width:"100%",[`&${se}-root`]:{[`${se}-item, ${se}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Yt}`,`background ${Yt}`,`padding ${Ot} ${ht}`].join(","),[`> ${se}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${se}-sub${se}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${se}-submenu > ${se}-submenu-title`]:$t,[`& ${se}-item-group-title`]:{paddingInlineStart:Pt}},[`${se}-item`]:$t}},{[`${se}-inline-collapsed`]:{width:Lt,[`&${se}-root`]:{[`${se}-item, ${se}-submenu ${se}-submenu-title`]:{[`> ${se}-inline-collapsed-noicon`]:{fontSize:Ve,textAlign:"center"}}},[`> ${se}-item,
> ${se}-item-group > ${se}-item-group-list > ${se}-item,
> ${se}-item-group > ${se}-item-group-list > ${se}-submenu > ${se}-submenu-title,
> ${se}-submenu > ${se}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${(0,Ze.unit)(ne.calc(ln).div(2).equal())} - ${(0,Ze.unit)(Le)})`,textOverflow:"clip",[`
${se}-submenu-arrow,
${se}-submenu-expand-icon
`]:{opacity:0},[`${se}-item-icon, ${Oe}`]:{margin:0,fontSize:ln,lineHeight:(0,Ze.unit)(bt),"+ span":{display:"inline-block",opacity:0}}},[`${se}-item-icon, ${Oe}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${se}-item-icon, ${Oe}`]:{display:"none"},"a, a:hover":{color:Ge}},[`${se}-item-group-title`]:Object.assign(Object.assign({},gt.vS),{paddingInline:un})}}]};const Tt=ne=>{const{componentCls:se,motionDurationSlow:Oe,motionDurationMid:bt,motionEaseInOut:Ge,motionEaseOut:We,iconCls:it,iconSize:ht,iconMarginInlineEnd:Pt}=ne;return{[`${se}-item, ${se}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${Oe}`,`background ${Oe}`,`padding calc(${Oe} + 0.1s) ${Ge}`].join(","),[`${se}-item-icon, ${it}`]:{minWidth:ht,fontSize:ht,transition:[`font-size ${bt} ${We}`,`margin ${Oe} ${Ge}`,`color ${Oe}`].join(","),"+ span":{marginInlineStart:Pt,opacity:1,transition:[`opacity ${Oe} ${Ge}`,`margin ${Oe}`,`color ${Oe}`].join(",")}},[`${se}-item-icon`]:Object.assign({},(0,gt.Ro)()),[`&${se}-item-only-child`]:{[`> ${it}, > ${se}-item-icon`]:{marginInlineEnd:0}}},[`${se}-item-disabled, ${se}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${se}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},xe=ne=>{const{componentCls:se,motionDurationSlow:Oe,motionEaseInOut:bt,borderRadius:Ge,menuArrowSize:We,menuArrowOffset:it}=ne;return{[`${se}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:ne.margin,width:We,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Oe} ${bt}, opacity ${Oe}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:ne.calc(We).mul(.6).equal(),height:ne.calc(We).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:Ge,transition:[`background ${Oe} ${bt}`,`transform ${Oe} ${bt}`,`top ${Oe} ${bt}`,`color ${Oe} ${bt}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${(0,Ze.unit)(ne.calc(it).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${(0,Ze.unit)(it)})`}}}}},rt=ne=>{const{antCls:se,componentCls:Oe,fontSize:bt,motionDurationSlow:Ge,motionDurationMid:We,motionEaseInOut:it,paddingXS:ht,padding:Pt,colorSplit:Le,lineWidth:Ve,zIndexPopup:Ot,borderRadiusLG:Yt,subMenuItemBorderRadius:un,menuArrowSize:tn,menuArrowOffset:Lt,lineType:ln,groupTitleLineHeight:$t,groupTitleFontSize:ze}=ne;return[{"":{[Oe]:Object.assign(Object.assign({},(0,gt.dF)()),{"&-hidden":{display:"none"}})},[`${Oe}-submenu-hidden`]:{display:"none"}},{[Oe]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,gt.Wf)(ne)),(0,gt.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:bt,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Ge} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${Oe}-item`]:{flex:"none"}},[`${Oe}-item, ${Oe}-submenu, ${Oe}-submenu-title`]:{borderRadius:ne.itemBorderRadius},[`${Oe}-item-group-title`]:{padding:`${(0,Ze.unit)(ht)} ${(0,Ze.unit)(Pt)}`,fontSize:ze,lineHeight:$t,transition:`all ${Ge}`},[`&-horizontal ${Oe}-submenu`]:{transition:[`border-color ${Ge} ${it}`,`background ${Ge} ${it}`].join(",")},[`${Oe}-submenu, ${Oe}-submenu-inline`]:{transition:[`border-color ${Ge} ${it}`,`background ${Ge} ${it}`,`padding ${We} ${it}`].join(",")},[`${Oe}-submenu ${Oe}-sub`]:{cursor:"initial",transition:[`background ${Ge} ${it}`,`padding ${Ge} ${it}`].join(",")},[`${Oe}-title-content`]:{transition:`color ${Ge}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${se}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${Oe}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:ne.padding}},[`${Oe}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${Oe}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Le,borderStyle:ln,borderWidth:0,borderTopWidth:Ve,marginBlock:Ve,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Tt(ne)),{[`${Oe}-item-group`]:{[`${Oe}-item-group-list`]:{margin:0,padding:0,[`${Oe}-item, ${Oe}-submenu-title`]:{paddingInline:`${(0,Ze.unit)(ne.calc(bt).mul(2).equal())} ${(0,Ze.unit)(Pt)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Ot,borderRadius:Yt,boxShadow:"none",transformOrigin:"0 0",[`&${Oe}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${Oe}`]:Object.assign(Object.assign(Object.assign({borderRadius:Yt},Tt(ne)),xe(ne)),{[`${Oe}-item, ${Oe}-submenu > ${Oe}-submenu-title`]:{borderRadius:un},[`${Oe}-submenu-title::after`]:{transition:`transform ${Ge} ${it}`}})},"\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}}}),xe(ne)),{[`&-inline-collapsed ${Oe}-submenu-arrow,
&-inline ${Oe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${(0,Ze.unit)(Lt)})`},"&::after":{transform:`rotate(45deg) translateX(${(0,Ze.unit)(ne.calc(Lt).mul(-1).equal())})`}},[`${Oe}-submenu-open${Oe}-submenu-inline > ${Oe}-submenu-title > ${Oe}-submenu-arrow`]:{transform:`translateY(${(0,Ze.unit)(ne.calc(tn).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${(0,Ze.unit)(ne.calc(Lt).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${(0,Ze.unit)(Lt)})`}}})},{[`${se}-layout-header`]:{[Oe]:{lineHeight:"inherit"}}}]},qe=ne=>{var se,Oe,bt;const{colorPrimary:Ge,colorError:We,colorTextDisabled:it,colorErrorBg:ht,colorText:Pt,colorTextDescription:Le,colorBgContainer:Ve,colorFillAlter:Ot,colorFillContent:Yt,lineWidth:un,lineWidthBold:tn,controlItemBgActive:Lt,colorBgTextHover:ln,controlHeightLG:$t,lineHeight:ze,colorBgElevated:yt,marginXXS:Ht,padding:en,fontSize:Ke,controlHeightSM:xt,fontSizeLG:Zt,colorTextLightSolid:dt,colorErrorHover:At}=ne,Ut=(se=ne.activeBarWidth)!==null&&se!==void 0?se:0,pn=(Oe=ne.activeBarBorderWidth)!==null&&Oe!==void 0?Oe:un,On=(bt=ne.itemMarginInline)!==null&&bt!==void 0?bt:ne.marginXXS,mn=new $e.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:Ge,horizontalItemHoverColor:Ge,colorGroupTitle:Le,groupTitleColor:Le,colorItemTextSelected:Ge,itemSelectedColor:Ge,subMenuItemSelectedColor:Ge,colorItemTextSelectedHorizontal:Ge,horizontalItemSelectedColor:Ge,colorItemBg:Ve,itemBg:Ve,colorItemBgHover:ln,itemHoverBg:ln,colorItemBgActive:Yt,itemActiveBg:Lt,colorSubItemBg:Ot,subMenuItemBg:Ot,colorItemBgSelected:Lt,itemSelectedBg:Lt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:Ut,colorActiveBarHeight:tn,activeBarHeight:tn,colorActiveBarBorderSize:un,activeBarBorderWidth:pn,colorItemTextDisabled:it,itemDisabledColor:it,colorDangerItemText:We,dangerItemColor:We,colorDangerItemTextHover:We,dangerItemHoverColor:We,colorDangerItemTextSelected:We,dangerItemSelectedColor:We,colorDangerItemBgActive:ht,dangerItemActiveBg:ht,colorDangerItemBgSelected:ht,dangerItemSelectedBg:ht,itemMarginInline:On,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:$t,groupTitleLineHeight:ze,collapsedWidth:$t*2,popupBg:yt,itemMarginBlock:Ht,itemPaddingInline:en,horizontalLineHeight:`${$t*1.15}px`,iconSize:Ke,iconMarginInlineEnd:xt-Ke,collapsedIconSize:Zt,groupTitleFontSize:Ke,darkItemDisabledColor:new $e.FastColor(dt).setA(.25).toRgbString(),darkItemColor:mn,darkDangerItemColor:We,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:dt,darkItemSelectedBg:Ge,darkDangerItemSelectedBg:We,darkItemHoverBg:"transparent",darkGroupTitleColor:mn,darkItemHoverColor:dt,darkDangerItemHoverColor:At,darkDangerItemSelectedColor:dt,darkDangerItemActiveBg:We,itemWidth:Ut?`calc(100% + ${pn}px)`:`calc(100% - ${On*2}px)`}};var Gt=function(ne){let se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ne,Oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return(0,Ce.I$)("Menu",Ge=>{const{colorBgElevated:We,controlHeightLG:it,fontSize:ht,darkItemColor:Pt,darkDangerItemColor:Le,darkItemBg:Ve,darkSubMenuItemBg:Ot,darkItemSelectedColor:Yt,darkItemSelectedBg:un,darkDangerItemSelectedBg:tn,darkItemHoverBg:Lt,darkGroupTitleColor:ln,darkItemHoverColor:$t,darkItemDisabledColor:ze,darkDangerItemHoverColor:yt,darkDangerItemSelectedColor:Ht,darkDangerItemActiveBg:en,popupBg:Ke,darkPopupBg:xt}=Ge,Zt=Ge.calc(ht).div(7).mul(5).equal(),dt=(0,et.mergeToken)(Ge,{menuArrowSize:Zt,menuHorizontalHeight:Ge.calc(it).mul(1.15).equal(),menuArrowOffset:Ge.calc(Zt).mul(.25).equal(),menuSubMenuBg:We,calc:Ge.calc,popupBg:Ke}),At=(0,et.mergeToken)(dt,{itemColor:Pt,itemHoverColor:$t,groupTitleColor:ln,itemSelectedColor:Yt,subMenuItemSelectedColor:Yt,itemBg:Ve,popupBg:xt,subMenuItemBg:Ot,itemActiveBg:"transparent",itemSelectedBg:un,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Lt,itemDisabledColor:ze,dangerItemColor:Le,dangerItemHoverColor:yt,dangerItemSelectedColor:Ht,dangerItemActiveBg:en,dangerItemSelectedBg:tn,menuSubMenuBg:Ot,horizontalItemSelectedColor:Yt,horizontalItemSelectedBg:un});return[rt(dt),ue(dt),_t(dt),be(dt,"light"),be(At,"dark"),_e(dt),(0,ot.Z)(dt),(0,Qe.oN)(dt,"slide-up"),(0,Qe.oN)(dt,"slide-down"),(0,ct._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:Oe,unitless:{groupTitleLineHeight:!0}})(ne,se)},at=z(75030),nt=ne=>{var se;const{popupClassName:Oe,icon:bt,title:Ge,theme:We}=ne,it=y.useContext(He),{prefixCls:ht,inlineCollapsed:Pt,theme:Le}=it,Ve=(0,he.Xl)();let Ot;if(!bt)Ot=Pt&&!Ve.length&&Ge&&typeof Ge=="string"?y.createElement("div",{className:`${ht}-inline-collapsed-noicon`},Ge.charAt(0)):y.createElement("span",{className:`${ht}-title-content`},Ge);else{const tn=y.isValidElement(Ge)&&Ge.type==="span";Ot=y.createElement(y.Fragment,null,(0,le.Tm)(bt,{className:me()(y.isValidElement(bt)?(se=bt.props)===null||se===void 0?void 0:se.className:"",`${ht}-item-icon`)}),tn?Ge:y.createElement("span",{className:`${ht}-title-content`},Ge))}const Yt=y.useMemo(()=>Object.assign(Object.assign({},it),{firstLevel:!1}),[it]),[un]=(0,at.Cn)("Menu");return y.createElement(He.Provider,{value:Yt},y.createElement(he.Wd,Object.assign({},(0,Ae.Z)(ne,["icon"]),{title:Ot,popupClassName:me()(ht,Oe,`${ht}-${We||Le}`),popupStyle:Object.assign({zIndex:un},ne.popupStyle)})))},rn=function(ne,se){var Oe={};for(var bt in ne)Object.prototype.hasOwnProperty.call(ne,bt)&&se.indexOf(bt)<0&&(Oe[bt]=ne[bt]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ge=0,bt=Object.getOwnPropertySymbols(ne);Ge<bt.length;Ge++)se.indexOf(bt[Ge])<0&&Object.prototype.propertyIsEnumerable.call(ne,bt[Ge])&&(Oe[bt[Ge]]=ne[bt[Ge]]);return Oe};function kt(ne){return ne===null||ne===!1}const ae={item:Pe,submenu:nt,divider:we};var te=(0,y.forwardRef)((ne,se)=>{var Oe;const bt=y.useContext(Fe.Z),Ge=bt||{},{getPrefixCls:We,getPopupContainer:it,direction:ht,menu:Pt}=y.useContext(Re.E_),Le=We(),{prefixCls:Ve,className:Ot,style:Yt,theme:un="light",expandIcon:tn,_internalDisableMenuItemTitleTooltip:Lt,inlineCollapsed:ln,siderCollapsed:$t,rootClassName:ze,mode:yt,selectable:Ht,onClick:en,overflowedIndicatorPopupClassName:Ke}=ne,xt=rn(ne,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Zt=(0,Ae.Z)(xt,["collapsedWidth"]);(Oe=Ge.validator)===null||Oe===void 0||Oe.call(Ge,{mode:yt});const dt=(0,ye.Z)(function(){var on;en==null||en.apply(void 0,arguments),(on=Ge.onClick)===null||on===void 0||on.call(Ge)}),At=Ge.mode||yt,Ut=Ht!=null?Ht:Ge.selectable,pn=ln!=null?ln:$t,On={horizontal:{motionName:`${Le}-slide-up`},inline:(0,pe.Z)(Le),other:{motionName:`${Le}-zoom-big`}},mn=We("menu",Ve||Ge.prefixCls),Bn=(0,Ie.Z)(mn),[Dt,hn,Wt]=Gt(mn,Bn,!bt),an=me()(`${mn}-${un}`,Pt==null?void 0:Pt.className,Ot),Vt=y.useMemo(()=>{var on,Zn;if(typeof tn=="function"||kt(tn))return tn||null;if(typeof Ge.expandIcon=="function"||kt(Ge.expandIcon))return Ge.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 _n=(on=tn!=null?tn:Ge==null?void 0:Ge.expandIcon)!==null&&on!==void 0?on:Pt==null?void 0:Pt.expandIcon;return(0,le.Tm)(_n,{className:me()(`${mn}-submenu-expand-icon`,y.isValidElement(_n)?(Zn=_n.props)===null||Zn===void 0?void 0:Zn.className:void 0)})},[tn,Ge==null?void 0:Ge.expandIcon,Pt==null?void 0:Pt.expandIcon,mn]),cn=y.useMemo(()=>({prefixCls:mn,inlineCollapsed:pn||!1,direction:ht,firstLevel:!0,theme:un,mode:At,disableMenuItemTitleTooltip:Lt}),[mn,pn,ht,Lt,un]);return Dt(y.createElement(Fe.Z.Provider,{value:null},y.createElement(He.Provider,{value:cn},y.createElement(he.ZP,Object.assign({getPopupContainer:it,overflowedIndicator:y.createElement(je.Z,null),overflowedIndicatorPopupClassName:me()(mn,`${mn}-${un}`,Ke),mode:At,selectable:Ut,onClick:dt},Zt,{inlineCollapsed:pn,style:Object.assign(Object.assign({},Pt==null?void 0:Pt.style),Yt),className:an,prefixCls:mn,direction:ht,defaultMotions:On,expandIcon:Vt,ref:se,rootClassName:me()(ze,hn,Ge.rootClassName,Wt,Bn),_internalComponents:ae})))))});const oe=(0,y.forwardRef)((ne,se)=>{const Oe=(0,y.useRef)(null),bt=y.useContext(ce.D);return(0,y.useImperativeHandle)(se,()=>({menu:Oe.current,focus:Ge=>{var We;(We=Oe.current)===null||We===void 0||We.focus(Ge)}})),y.createElement(te,Object.assign({ref:Oe},ne,bt))});oe.Item=Pe,oe.SubMenu=nt,oe.Divider=we,oe.ItemGroup=he.BW;var de=oe},31709:function(bn,zt,z){"use strict";z.d(zt,{Z:function(){return Pt}});var y=z(59301),he=z(54476),ce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},je=ce,ve=z(7657),me=function(Ve,Ot){return y.createElement(ve.Z,(0,he.Z)({},Ve,{ref:Ot,icon:je}))},ye=y.forwardRef(me),Ae=ye,pe=z(49198),le=z(33853),Re=z(38819),Ie=z(92310),tt=z.n(Ie),He=z(20068),Me=z(76190),Ee=z(33885),we=z(42978),Ne=z(18929),Xe=z(10228),ft=z(26112),Pe=z(48736),Fe=z(17119),Ze=[10,20,50,100],$e=function(Ve){var Ot=Ve.pageSizeOptions,Yt=Ot===void 0?Ze:Ot,un=Ve.locale,tn=Ve.changeSize,Lt=Ve.pageSize,ln=Ve.goButton,$t=Ve.quickGo,ze=Ve.rootPrefixCls,yt=Ve.disabled,Ht=Ve.buildOptionText,en=Ve.showSizeChanger,Ke=Ve.sizeChangerRender,xt=y.useState(""),Zt=(0,we.Z)(xt,2),dt=Zt[0],At=Zt[1],Ut=function(){return!dt||Number.isNaN(dt)?void 0:Number(dt)},pn=typeof Ht=="function"?Ht:function(cn){return"".concat(cn," ").concat(un.items_per_page)},On=function(on){At(on.target.value)},mn=function(on){ln||dt===""||(At(""),!(on.relatedTarget&&(on.relatedTarget.className.indexOf("".concat(ze,"-item-link"))>=0||on.relatedTarget.className.indexOf("".concat(ze,"-item"))>=0))&&($t==null||$t(Ut())))},Bn=function(on){dt!==""&&(on.keyCode===Xe.Z.ENTER||on.type==="click")&&(At(""),$t==null||$t(Ut()))},Dt=function(){return Yt.some(function(on){return on.toString()===Lt.toString()})?Yt:Yt.concat([Lt]).sort(function(on,Zn){var _n=Number.isNaN(Number(on))?0:Number(on),Nn=Number.isNaN(Number(Zn))?0:Number(Zn);return _n-Nn})},hn="".concat(ze,"-options");if(!en&&!$t)return null;var Wt=null,an=null,Vt=null;return en&&Ke&&(Wt=Ke({disabled:yt,size:Lt,onSizeChange:function(on){tn==null||tn(Number(on))},"aria-label":un.page_size,className:"".concat(hn,"-size-changer"),options:Dt().map(function(cn){return{label:pn(cn),value:cn}})})),$t&&(ln&&(Vt=typeof ln=="boolean"?y.createElement("button",{type:"button",onClick:Bn,onKeyUp:Bn,disabled:yt,className:"".concat(hn,"-quick-jumper-button")},un.jump_to_confirm):y.createElement("span",{onClick:Bn,onKeyUp:Bn},ln)),an=y.createElement("div",{className:"".concat(hn,"-quick-jumper")},un.jump_to,y.createElement("input",{disabled:yt,type:"text",value:dt,onChange:On,onKeyUp:Bn,onBlur:mn,"aria-label":un.page}),un.page,Vt)),y.createElement("li",{className:hn},Wt,an)},gt=$e,ot=function(Ve){var Ot=Ve.rootPrefixCls,Yt=Ve.page,un=Ve.active,tn=Ve.className,Lt=Ve.showTitle,ln=Ve.onClick,$t=Ve.onKeyPress,ze=Ve.itemRender,yt="".concat(Ot,"-item"),Ht=tt()(yt,"".concat(yt,"-").concat(Yt),(0,He.Z)((0,He.Z)({},"".concat(yt,"-active"),un),"".concat(yt,"-disabled"),!Yt),tn),en=function(){ln(Yt)},Ke=function(dt){$t(dt,ln,Yt)},xt=ze(Yt,"page",y.createElement("a",{rel:"nofollow"},Yt));return xt?y.createElement("li",{title:Lt?String(Yt):null,className:Ht,onClick:en,onKeyDown:Ke,tabIndex:0},xt):null},Qe=ot,ct=function(Ve,Ot,Yt){return Yt};function Ce(){}function et(Le){var Ve=Number(Le);return typeof Ve=="number"&&!Number.isNaN(Ve)&&isFinite(Ve)&&Math.floor(Ve)===Ve}function Te(Le,Ve,Ot){var Yt=typeof Le=="undefined"?Ve:Le;return Math.floor((Ot-1)/Yt)+1}var ue=function(Ve){var Ot=Ve.prefixCls,Yt=Ot===void 0?"rc-pagination":Ot,un=Ve.selectPrefixCls,tn=un===void 0?"rc-select":un,Lt=Ve.className,ln=Ve.current,$t=Ve.defaultCurrent,ze=$t===void 0?1:$t,yt=Ve.total,Ht=yt===void 0?0:yt,en=Ve.pageSize,Ke=Ve.defaultPageSize,xt=Ke===void 0?10:Ke,Zt=Ve.onChange,dt=Zt===void 0?Ce:Zt,At=Ve.hideOnSinglePage,Ut=Ve.align,pn=Ve.showPrevNextJumpers,On=pn===void 0?!0:pn,mn=Ve.showQuickJumper,Bn=Ve.showLessItems,Dt=Ve.showTitle,hn=Dt===void 0?!0:Dt,Wt=Ve.onShowSizeChange,an=Wt===void 0?Ce:Wt,Vt=Ve.locale,cn=Vt===void 0?Fe.Z:Vt,on=Ve.style,Zn=Ve.totalBoundaryShowSizeChanger,_n=Zn===void 0?50:Zn,Nn=Ve.disabled,jn=Ve.simple,Gn=Ve.showTotal,$n=Ve.showSizeChanger,lr=$n===void 0?Ht>_n:$n,nr=Ve.sizeChangerRender,dn=Ve.pageSizeOptions,Cn=Ve.itemRender,Hn=Cn===void 0?ct:Cn,Kn=Ve.jumpPrevIcon,Et=Ve.jumpNextIcon,Rt=Ve.prevIcon,Je=Ve.nextIcon,Bt=y.useRef(null),Ue=(0,Ne.Z)(10,{value:en,defaultValue:xt}),Nt=(0,we.Z)(Ue,2),Jt=Nt[0],Ln=Nt[1],zn=(0,Ne.Z)(1,{value:ln,defaultValue:ze,postState:function(co){return Math.max(1,Math.min(co,Te(void 0,Jt,Ht)))}}),pt=(0,we.Z)(zn,2),Ct=pt[0],St=pt[1],It=y.useState(Ct),fn=(0,we.Z)(It,2),wn=fn[0],Pn=fn[1];(0,y.useEffect)(function(){Pn(Ct)},[Ct]);var In=dt!==Ce,qn="current"in Ve,rr=Math.max(1,Ct-(Bn?3:5)),ir=Math.min(Te(void 0,Jt,Ht),Ct+(Bn?3:5));function sr(Lo,co){var wi=Lo||y.createElement("button",{type:"button","aria-label":co,className:"".concat(Yt,"-item-link")});return typeof Lo=="function"&&(wi=y.createElement(Lo,(0,Ee.Z)({},Ve))),wi}function Qn(Lo){var co=Lo.target.value,wi=Te(void 0,Jt,Ht),wo;return co===""?wo=co:Number.isNaN(Number(co))?wo=wn:co>=wi?wo=wi:wo=Number(co),wo}function ar(Lo){return et(Lo)&&Lo!==Ct&&et(Ht)&&Ht>0}var fr=Ht>Jt?mn:!1;function Sr(Lo){(Lo.keyCode===Xe.Z.UP||Lo.keyCode===Xe.Z.DOWN)&&Lo.preventDefault()}function br(Lo){var co=Qn(Lo);switch(co!==wn&&Pn(co),Lo.keyCode){case Xe.Z.ENTER:hr(co);break;case Xe.Z.UP:hr(co-1);break;case Xe.Z.DOWN:hr(co+1);break;default:break}}function jr(Lo){hr(Qn(Lo))}function $r(Lo){var co=Te(Lo,Jt,Ht),wi=Ct>co&&co!==0?co:Ct;Ln(Lo),Pn(wi),an==null||an(Ct,Lo),St(wi),dt==null||dt(wi,Lo)}function hr(Lo){if(ar(Lo)&&!Nn){var co=Te(void 0,Jt,Ht),wi=Lo;return Lo>co?wi=co:Lo<1&&(wi=1),wi!==wn&&Pn(wi),St(wi),dt==null||dt(wi,Jt),wi}return Ct}var Mr=Ct>1,eo=Ct<Te(void 0,Jt,Ht);function kr(){Mr&&hr(Ct-1)}function Fr(){eo&&hr(Ct+1)}function or(){hr(rr)}function Ur(){hr(ir)}function Rr(Lo,co){if(Lo.key==="Enter"||Lo.charCode===Xe.Z.ENTER||Lo.keyCode===Xe.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=Hn(Lo,"prev",sr(Rt,"prev page"));return y.isValidElement(co)?y.cloneElement(co,{disabled:!Mr}):co}function xo(Lo){var co=Hn(Lo,"next",sr(Je,"next page"));return y.isValidElement(co)?y.cloneElement(co,{disabled:!eo}):co}function No(Lo){(Lo.type==="click"||Lo.keyCode===Xe.Z.ENTER)&&hr(wn)}var To=null,Xo=(0,ft.Z)(Ve,{aria:!0,data:!0}),ko=Gn&&y.createElement("li",{className:"".concat(Yt,"-total-text")},Gn(Ht,[Ht===0?0:(Ct-1)*Jt+1,Ct*Jt>Ht?Ht:Ct*Jt])),go=null,dr=Te(void 0,Jt,Ht);if(At&&Ht<=Jt)return null;var Mn=[],Un={rootPrefixCls:Yt,onClick:hr,onKeyPress:Rr,showTitle:hn,itemRender:Hn,page:-1},Yn=Ct-1>0?Ct-1:0,kn=Ct+1<dr?Ct+1:dr,mr=mn&&mn.goButton,wr=(0,Me.Z)(jn)==="object"?jn.readOnly:!jn,Vn=mr,Jn=null;jn&&(mr&&(typeof mr=="boolean"?Vn=y.createElement("button",{type:"button",onClick:No,onKeyUp:No},cn.jump_to_confirm):Vn=y.createElement("span",{onClick:No,onKeyUp:No},mr),Vn=y.createElement("li",{title:hn?"".concat(cn.jump_to).concat(Ct,"/").concat(dr):null,className:"".concat(Yt,"-simple-pager")},Vn)),Jn=y.createElement("li",{title:hn?"".concat(Ct,"/").concat(dr):null,className:"".concat(Yt,"-simple-pager")},wr?wn:y.createElement("input",{type:"text","aria-label":cn.jump_to,value:wn,disabled:Nn,onKeyDown:Sr,onKeyUp:br,onChange:br,onBlur:jr,size:3}),y.createElement("span",{className:"".concat(Yt,"-slash")},"/"),dr));var ur=Bn?1:2;if(dr<=3+ur*2){dr||Mn.push(y.createElement(Qe,(0,he.Z)({},Un,{key:"noPager",page:1,className:"".concat(Yt,"-item-disabled")})));for(var pr=1;pr<=dr;pr+=1)Mn.push(y.createElement(Qe,(0,he.Z)({},Un,{key:pr,page:pr,active:Ct===pr})))}else{var Zr=Bn?cn.prev_3:cn.prev_5,Yr=Bn?cn.next_3:cn.next_5,to=Hn(rr,"jump-prev",sr(Kn,"prev page")),Fo=Hn(ir,"jump-next",sr(Et,"next page"));On&&(To=to?y.createElement("li",{title:hn?Zr:null,key:"prev",onClick:or,tabIndex:0,onKeyDown:so,className:tt()("".concat(Yt,"-jump-prev"),(0,He.Z)({},"".concat(Yt,"-jump-prev-custom-icon"),!!Kn))},to):null,go=Fo?y.createElement("li",{title:hn?Yr:null,key:"next",onClick:Ur,tabIndex:0,onKeyDown:Ho,className:tt()("".concat(Yt,"-jump-next"),(0,He.Z)({},"".concat(Yt,"-jump-next-custom-icon"),!!Et))},Fo):null);var Mo=Math.max(1,Ct-ur),Yo=Math.min(Ct+ur,dr);Ct-1<=ur&&(Yo=1+ur*2),dr-Ct<=ur&&(Mo=dr-ur*2);for(var Jo=Mo;Jo<=Yo;Jo+=1)Mn.push(y.createElement(Qe,(0,he.Z)({},Un,{key:Jo,page:Jo,active:Ct===Jo})));if(Ct-1>=ur*2&&Ct!==3&&(Mn[0]=y.cloneElement(Mn[0],{className:tt()("".concat(Yt,"-item-after-jump-prev"),Mn[0].props.className)}),Mn.unshift(To)),dr-Ct>=ur*2&&Ct!==dr-2){var ni=Mn[Mn.length-1];Mn[Mn.length-1]=y.cloneElement(ni,{className:tt()("".concat(Yt,"-item-before-jump-next"),ni.props.className)}),Mn.push(go)}Mo!==1&&Mn.unshift(y.createElement(Qe,(0,he.Z)({},Un,{key:1,page:1}))),Yo!==dr&&Mn.push(y.createElement(Qe,(0,he.Z)({},Un,{key:dr,page:dr})))}var ri=ti(Yn);if(ri){var Mi=!Mr||!dr;ri=y.createElement("li",{title:hn?cn.prev_page:null,onClick:kr,tabIndex:Mi?null:0,onKeyDown:Br,className:tt()("".concat(Yt,"-prev"),(0,He.Z)({},"".concat(Yt,"-disabled"),Mi)),"aria-disabled":Mi},ri)}var _i=xo(kn);if(_i){var Xi,Yi;jn?(Xi=!eo,Yi=Mr?0:null):(Xi=!eo||!dr,Yi=Xi?null:0),_i=y.createElement("li",{title:hn?cn.next_page:null,onClick:Fr,tabIndex:Yi,onKeyDown:Cr,className:tt()("".concat(Yt,"-next"),(0,He.Z)({},"".concat(Yt,"-disabled"),Xi)),"aria-disabled":Xi},_i)}var ta=tt()(Yt,Lt,(0,He.Z)((0,He.Z)((0,He.Z)((0,He.Z)((0,He.Z)({},"".concat(Yt,"-start"),Ut==="start"),"".concat(Yt,"-center"),Ut==="center"),"".concat(Yt,"-end"),Ut==="end"),"".concat(Yt,"-simple"),jn),"".concat(Yt,"-disabled"),Nn));return y.createElement("ul",(0,he.Z)({className:ta,style:on,ref:Bt},Xo),ko,ri,jn?Jn:Mn,_i,y.createElement(gt,{locale:cn,rootPrefixCls:Yt,disabled:Nn,selectPrefixCls:tn,changeSize:$r,pageSize:Jt,pageSizeOptions:dn,quickGo:fr?hr:null,goButton:Vn,showSizeChanger:lr,sizeChangerRender:nr}))},mt=ue,_e=z(61852),lt=z(48755),Mt=z(31756),be=z(13783),ge=z(9017),Ft=z(82326),_t=z(57700),Tt=z(36237),xe=z(53075),rt=z(64910),qe=z(39082),Gt=z(63356),at=z(51636),st=z(16931);const nt=Le=>{const{componentCls:Ve}=Le;return{[`${Ve}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${Ve}-item-link`]:{color:Le.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${Ve}-item-link`]:{color:Le.colorTextDisabled,cursor:"not-allowed"}}},[`&${Ve}-disabled`]:{cursor:"not-allowed",[`${Ve}-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}}},[`${Ve}-item-link`]:{color:Le.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${Ve}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${Ve}-simple-pager`]:{color:Le.colorTextDisabled},[`${Ve}-jump-prev, ${Ve}-jump-next`]:{[`${Ve}-item-link-icon`]:{opacity:0},[`${Ve}-item-ellipsis`]:{opacity:1}}},[`&${Ve}-simple`]:{[`${Ve}-prev, ${Ve}-next`]:{[`&${Ve}-disabled ${Ve}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},rn=Le=>{const{componentCls:Ve}=Le;return{[`&${Ve}-mini ${Ve}-total-text, &${Ve}-mini ${Ve}-simple-pager`]:{height:Le.itemSizeSM,lineHeight:(0,Tt.unit)(Le.itemSizeSM)},[`&${Ve}-mini ${Ve}-item`]:{minWidth:Le.itemSizeSM,height:Le.itemSizeSM,margin:0,lineHeight:(0,Tt.unit)(Le.calc(Le.itemSizeSM).sub(2).equal())},[`&${Ve}-mini ${Ve}-prev, &${Ve}-mini ${Ve}-next`]:{minWidth:Le.itemSizeSM,height:Le.itemSizeSM,margin:0,lineHeight:(0,Tt.unit)(Le.itemSizeSM)},[`&${Ve}-mini:not(${Ve}-disabled)`]:{[`${Ve}-prev, ${Ve}-next`]:{[`&:hover ${Ve}-item-link`]:{backgroundColor:Le.colorBgTextHover},[`&:active ${Ve}-item-link`]:{backgroundColor:Le.colorBgTextActive},[`&${Ve}-disabled:hover ${Ve}-item-link`]:{backgroundColor:"transparent"}}},[`
&${Ve}-mini ${Ve}-prev ${Ve}-item-link,
&${Ve}-mini ${Ve}-next ${Ve}-item-link
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:Le.itemSizeSM,lineHeight:(0,Tt.unit)(Le.itemSizeSM)}},[`&${Ve}-mini ${Ve}-jump-prev, &${Ve}-mini ${Ve}-jump-next`]:{height:Le.itemSizeSM,marginInlineEnd:0,lineHeight:(0,Tt.unit)(Le.itemSizeSM)},[`&${Ve}-mini ${Ve}-options`]:{marginInlineStart:Le.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:Le.miniOptionsSizeChangerTop},"&-quick-jumper":{height:Le.itemSizeSM,lineHeight:(0,Tt.unit)(Le.itemSizeSM),input:Object.assign(Object.assign({},(0,xe.x0)(Le)),{width:Le.paginationMiniQuickJumperInputWidth,height:Le.controlHeightSM})}}}},kt=Le=>{const{componentCls:Ve}=Le;return{[`
&${Ve}-simple ${Ve}-prev,
&${Ve}-simple ${Ve}-next
`]:{height:Le.itemSizeSM,lineHeight:(0,Tt.unit)(Le.itemSizeSM),verticalAlign:"top",[`${Ve}-item-link`]:{height:Le.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:Le.colorBgTextHover},"&:active":{backgroundColor:Le.colorBgTextActive},"&::after":{height:Le.itemSizeSM,lineHeight:(0,Tt.unit)(Le.itemSizeSM)}}},[`&${Ve}-simple ${Ve}-simple-pager`]:{display:"inline-block",height:Le.itemSizeSM,marginInlineEnd:Le.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${(0,Tt.unit)(Le.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:Le.itemInputBg,border:`${(0,Tt.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,Tt.unit)(Le.inputOutlineOffset)} 0 ${(0,Tt.unit)(Le.controlOutlineWidth)} ${Le.controlOutline}`},"&[disabled]":{color:Le.colorTextDisabled,backgroundColor:Le.colorBgContainerDisabled,borderColor:Le.colorBorder,cursor:"not-allowed"}}}}},ae=Le=>{const{componentCls:Ve}=Le;return{[`${Ve}-jump-prev, ${Ve}-jump-next`]:{outline:0,[`${Ve}-item-container`]:{position:"relative",[`${Ve}-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"}},[`${Ve}-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":{[`${Ve}-item-link-icon`]:{opacity:1},[`${Ve}-item-ellipsis`]:{opacity:0}}},[`
${Ve}-prev,
${Ve}-jump-prev,
${Ve}-jump-next
`]:{marginInlineEnd:Le.marginXS},[`
${Ve}-prev,
${Ve}-next,
${Ve}-jump-prev,
${Ve}-jump-next
`]:{display:"inline-block",minWidth:Le.itemSize,height:Le.itemSize,color:Le.colorText,fontFamily:Le.fontFamily,lineHeight:(0,Tt.unit)(Le.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:Le.borderRadius,cursor:"pointer",transition:`all ${Le.motionDurationMid}`},[`${Ve}-prev, ${Ve}-next`]:{outline:0,button:{color:Le.colorText,cursor:"pointer",userSelect:"none"},[`${Ve}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:Le.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${(0,Tt.unit)(Le.lineWidth)} ${Le.lineType} transparent`,borderRadius:Le.borderRadius,outline:"none",transition:`all ${Le.motionDurationMid}`},[`&:hover ${Ve}-item-link`]:{backgroundColor:Le.colorBgTextHover},[`&:active ${Ve}-item-link`]:{backgroundColor:Le.colorBgTextActive},[`&${Ve}-disabled:hover`]:{[`${Ve}-item-link`]:{backgroundColor:"transparent"}}},[`${Ve}-slash`]:{marginInlineEnd:Le.paginationSlashMarginInlineEnd,marginInlineStart:Le.paginationSlashMarginInlineStart},[`${Ve}-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,Tt.unit)(Le.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},(0,xe.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:Ve}=Le;return{[`${Ve}-item`]:{display:"inline-block",minWidth:Le.itemSize,height:Le.itemSize,marginInlineEnd:Le.marginXS,fontFamily:Le.fontFamily,lineHeight:(0,Tt.unit)(Le.calc(Le.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:Le.itemBg,border:`${(0,Tt.unit)(Le.lineWidth)} ${Le.lineType} transparent`,borderRadius:Le.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${(0,Tt.unit)(Le.paginationItemPaddingInline)}`,color:Le.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${Ve}-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:Ve}=Le;return{[Ve]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Gt.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:'""'},[`${Ve}-total-text`]:{display:"inline-block",height:Le.itemSize,marginInlineEnd:Le.marginXS,lineHeight:(0,Tt.unit)(Le.calc(Le.itemSize).sub(2).equal()),verticalAlign:"middle"}}),re(Le)),ae(Le)),kt(Le)),rn(Le)),nt(Le)),{[`@media only screen and (max-width: ${Le.screenLG}px)`]:{[`${Ve}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${Le.screenSM}px)`]:{[`${Ve}-options`]:{display:"none"}}}),[`&${Le.componentCls}-rtl`]:{direction:"rtl"}}},oe=Le=>{const{componentCls:Ve}=Le;return{[`${Ve}:not(${Ve}-disabled)`]:{[`${Ve}-item`]:Object.assign({},(0,Gt.Qy)(Le)),[`${Ve}-jump-prev, ${Ve}-jump-next`]:{"&:focus-visible":Object.assign({[`${Ve}-item-link-icon`]:{opacity:1},[`${Ve}-item-ellipsis`]:{opacity:0}},(0,Gt.oN)(Le))},[`${Ve}-prev, ${Ve}-next`]:{[`&:focus-visible ${Ve}-item-link`]:Object.assign({},(0,Gt.oN)(Le))}}}},de=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,rt.T)(Le)),ne=Le=>(0,at.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,rt.e)(Le));var se=(0,st.I$)("Pagination",Le=>{const Ve=ne(Le);return[te(Ve),oe(Ve)]},de);const Oe=Le=>{const{componentCls:Ve}=Le;return{[`${Ve}${Ve}-bordered${Ve}-disabled:not(${Ve}-mini)`]:{"&, &:hover":{[`${Ve}-item-link`]:{borderColor:Le.colorBorder}},"&:focus-visible":{[`${Ve}-item-link`]:{borderColor:Le.colorBorder}},[`${Ve}-item, ${Ve}-item-link`]:{backgroundColor:Le.colorBgContainerDisabled,borderColor:Le.colorBorder,[`&:hover:not(${Ve}-item-active)`]:{backgroundColor:Le.colorBgContainerDisabled,borderColor:Le.colorBorder,a:{color:Le.colorTextDisabled}},[`&${Ve}-item-active`]:{backgroundColor:Le.itemActiveBgDisabled}},[`${Ve}-prev, ${Ve}-next`]:{"&:hover button":{backgroundColor:Le.colorBgContainerDisabled,borderColor:Le.colorBorder,color:Le.colorTextDisabled},[`${Ve}-item-link`]:{backgroundColor:Le.colorBgContainerDisabled,borderColor:Le.colorBorder}}},[`${Ve}${Ve}-bordered:not(${Ve}-mini)`]:{[`${Ve}-prev, ${Ve}-next`]:{"&:hover button":{borderColor:Le.colorPrimaryHover,backgroundColor:Le.itemBg},[`${Ve}-item-link`]:{backgroundColor:Le.itemLinkBg,borderColor:Le.colorBorder},[`&:hover ${Ve}-item-link`]:{borderColor:Le.colorPrimary,backgroundColor:Le.itemBg,color:Le.colorPrimary},[`&${Ve}-disabled`]:{[`${Ve}-item-link`]:{borderColor:Le.colorBorder,color:Le.colorTextDisabled}}},[`${Ve}-item`]:{backgroundColor:Le.itemBg,border:`${(0,Tt.unit)(Le.lineWidth)} ${Le.lineType} ${Le.colorBorder}`,[`&:hover:not(${Ve}-item-active)`]:{borderColor:Le.colorPrimary,backgroundColor:Le.itemBg,a:{color:Le.colorPrimary}},"&-active":{borderColor:Le.colorPrimary}}}}};var bt=(0,st.bk)(["Pagination","bordered"],Le=>{const Ve=ne(Le);return[Oe(Ve)]},de);function Ge(Le){return(0,y.useMemo)(()=>typeof Le=="boolean"?[Le,{}]:Le&&typeof Le=="object"?[!0,Le]:[void 0,void 0],[Le])}var We=function(Le,Ve){var Ot={};for(var Yt in Le)Object.prototype.hasOwnProperty.call(Le,Yt)&&Ve.indexOf(Yt)<0&&(Ot[Yt]=Le[Yt]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var un=0,Yt=Object.getOwnPropertySymbols(Le);un<Yt.length;un++)Ve.indexOf(Yt[un])<0&&Object.prototype.propertyIsEnumerable.call(Le,Yt[un])&&(Ot[Yt[un]]=Le[Yt[un]]);return Ot},ht=Le=>{const{align:Ve,prefixCls:Ot,selectPrefixCls:Yt,className:un,rootClassName:tn,style:Lt,size:ln,locale:$t,responsive:ze,showSizeChanger:yt,selectComponentClass:Ht,pageSizeOptions:en}=Le,Ke=We(Le,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:xt}=(0,be.Z)(ze),[,Zt]=(0,_t.ZP)(),{getPrefixCls:dt,direction:At,showSizeChanger:Ut,className:pn,style:On}=(0,lt.dj)("pagination"),mn=dt("pagination",Ot),[Bn,Dt,hn]=se(mn),Wt=(0,Mt.Z)(ln),an=Wt==="small"||!!(xt&&!Wt&&ze),[Vt]=(0,ge.Z)("Pagination",_e.Z),cn=Object.assign(Object.assign({},Vt),$t),[on,Zn]=Ge(yt),[_n,Nn]=Ge(Ut),jn=on!=null?on:_n,Gn=Zn!=null?Zn:Nn,$n=Ht||Ft.default,lr=y.useMemo(()=>en?en.map(Et=>Number(Et)):void 0,[en]),nr=Et=>{var Rt;const{disabled:Je,size:Bt,onSizeChange:Ue,"aria-label":Nt,className:Jt,options:Ln}=Et,{className:zn,onChange:pt}=Gn||{},Ct=(Rt=Ln.find(St=>String(St.value)===String(Bt)))===null||Rt===void 0?void 0:Rt.value;return y.createElement($n,Object.assign({disabled:Je,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:St=>St.parentNode,"aria-label":Nt,options:Ln},Gn,{value:Ct,onChange:(St,It)=>{Ue==null||Ue(St),pt==null||pt(St,It)},size:an?"small":"middle",className:tt()(Jt,zn)}))},dn=y.useMemo(()=>{const Et=y.createElement("span",{className:`${mn}-item-ellipsis`},"\u2022\u2022\u2022"),Rt=y.createElement("button",{className:`${mn}-item-link`,type:"button",tabIndex:-1},At==="rtl"?y.createElement(Re.Z,null):y.createElement(le.Z,null)),Je=y.createElement("button",{className:`${mn}-item-link`,type:"button",tabIndex:-1},At==="rtl"?y.createElement(le.Z,null):y.createElement(Re.Z,null)),Bt=y.createElement("a",{className:`${mn}-item-link`},y.createElement("div",{className:`${mn}-item-container`},At==="rtl"?y.createElement(pe.Z,{className:`${mn}-item-link-icon`}):y.createElement(Ae,{className:`${mn}-item-link-icon`}),Et)),Ue=y.createElement("a",{className:`${mn}-item-link`},y.createElement("div",{className:`${mn}-item-container`},At==="rtl"?y.createElement(Ae,{className:`${mn}-item-link-icon`}):y.createElement(pe.Z,{className:`${mn}-item-link-icon`}),Et));return{prevIcon:Rt,nextIcon:Je,jumpPrevIcon:Bt,jumpNextIcon:Ue}},[At,mn]),Cn=dt("select",Yt),Hn=tt()({[`${mn}-${Ve}`]:!!Ve,[`${mn}-mini`]:an,[`${mn}-rtl`]:At==="rtl",[`${mn}-bordered`]:Zt.wireframe},pn,un,tn,Dt,hn),Kn=Object.assign(Object.assign({},On),Lt);return Bn(y.createElement(y.Fragment,null,Zt.wireframe&&y.createElement(bt,{prefixCls:mn}),y.createElement(mt,Object.assign({},dn,Ke,{style:Kn,prefixCls:mn,selectPrefixCls:Cn,className:Hn,locale:cn,pageSizeOptions:lr,showSizeChanger:jn,sizeChangerRender:nr}))))},Pt=ht},69106:function(bn,zt,z){"use strict";z.d(zt,{aV:function(){return pe},t5:function(){return le}});var y=z(59301),he=z(92310),ce=z.n(he),je=z(29125),ve=z(54500),me=z(48755),ye=z(85074),Ae=function(Ie,tt){var He={};for(var Me in Ie)Object.prototype.hasOwnProperty.call(Ie,Me)&&tt.indexOf(Me)<0&&(He[Me]=Ie[Me]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ee=0,Me=Object.getOwnPropertySymbols(Ie);Ee<Me.length;Ee++)tt.indexOf(Me[Ee])<0&&Object.prototype.propertyIsEnumerable.call(Ie,Me[Ee])&&(He[Me[Ee]]=Ie[Me[Ee]]);return He};const pe=Ie=>{let{title:tt,content:He,prefixCls:Me}=Ie;return!tt&&!He?null:y.createElement(y.Fragment,null,tt&&y.createElement("div",{className:`${Me}-title`},tt),He&&y.createElement("div",{className:`${Me}-inner-content`},He))},le=Ie=>{const{hashId:tt,prefixCls:He,className:Me,style:Ee,placement:we="top",title:Ne,content:Xe,children:ft}=Ie,Pe=(0,ve.Z)(Ne),Fe=(0,ve.Z)(Xe),Ze=ce()(tt,He,`${He}-pure`,`${He}-placement-${we}`,Me);return y.createElement("div",{className:Ze,style:Ee},y.createElement("div",{className:`${He}-arrow`}),y.createElement(je.G,Object.assign({},Ie,{className:tt,prefixCls:He}),ft||y.createElement(pe,{prefixCls:He,title:Pe,content:Fe})))},Re=Ie=>{const{prefixCls:tt,className:He}=Ie,Me=Ae(Ie,["prefixCls","className"]),{getPrefixCls:Ee}=y.useContext(me.E_),we=Ee("popover",tt),[Ne,Xe,ft]=(0,ye.Z)(we);return Ne(y.createElement(le,Object.assign({},Me,{prefixCls:we,hashId:Xe,className:ce()(He,ft)})))};zt.ZP=Re},37639:function(bn,zt,z){"use strict";var y=z(59301),he=z(92310),ce=z.n(he),je=z(18929),ve=z(10228),me=z(54500),ye=z(86641),Ae=z(22703),pe=z(25399),le=z(69106),Re=z(48755),Ie=z(85074),tt=function(Ee,we){var Ne={};for(var Xe in Ee)Object.prototype.hasOwnProperty.call(Ee,Xe)&&we.indexOf(Xe)<0&&(Ne[Xe]=Ee[Xe]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ft=0,Xe=Object.getOwnPropertySymbols(Ee);ft<Xe.length;ft++)we.indexOf(Xe[ft])<0&&Object.prototype.propertyIsEnumerable.call(Ee,Xe[ft])&&(Ne[Xe[ft]]=Ee[Xe[ft]]);return Ne};const Me=y.forwardRef((Ee,we)=>{var Ne,Xe;const{prefixCls:ft,title:Pe,content:Fe,overlayClassName:Ze,placement:$e="top",trigger:gt="hover",children:ot,mouseEnterDelay:Qe=.1,mouseLeaveDelay:ct=.1,onOpenChange:Ce,overlayStyle:et={},styles:Te,classNames:ue}=Ee,mt=tt(Ee,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{getPrefixCls:_e,className:lt,style:Mt,classNames:be,styles:ge}=(0,Re.dj)("popover"),Ft=_e("popover",ft),[_t,Tt,xe]=(0,Ie.Z)(Ft),rt=_e(),qe=ce()(Ze,Tt,xe,lt,be.root,ue==null?void 0:ue.root),Gt=ce()(be.body,ue==null?void 0:ue.body),[at,st]=(0,je.Z)(!1,{value:(Ne=Ee.open)!==null&&Ne!==void 0?Ne:Ee.visible,defaultValue:(Xe=Ee.defaultOpen)!==null&&Xe!==void 0?Xe:Ee.defaultVisible}),nt=(te,oe)=>{st(te,!0),Ce==null||Ce(te,oe)},rn=te=>{te.keyCode===ve.Z.ESC&&nt(!1,te)},kt=te=>{nt(te)},ae=(0,me.Z)(Pe),re=(0,me.Z)(Fe);return _t(y.createElement(pe.Z,Object.assign({placement:$e,trigger:gt,mouseEnterDelay:Qe,mouseLeaveDelay:ct},mt,{prefixCls:Ft,classNames:{root:qe,body:Gt},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},ge.root),Mt),et),Te==null?void 0:Te.root),body:Object.assign(Object.assign({},ge.body),Te==null?void 0:Te.body)},ref:we,open:at,onOpenChange:kt,overlay:ae||re?y.createElement(le.aV,{prefixCls:Ft,title:ae,content:re}):null,transitionName:(0,ye.m)(rt,"zoom-big",mt.transitionName),"data-popover-inject":!0}),(0,Ae.Tm)(ot,{onKeyDown:te=>{var oe,de;y.isValidElement(ot)&&((de=ot==null?void 0:(oe=ot.props).onKeyDown)===null||de===void 0||de.call(oe,te)),rn(te)}})))});Me._InternalPanelDoNotUseOrYouWillBeFired=le.ZP,zt.Z=Me},85074:function(bn,zt,z){"use strict";var y=z(63356),he=z(34925),ce=z(37645),je=z(36305),ve=z(34998),me=z(16931),ye=z(51636);const Ae=Re=>{const{componentCls:Ie,popoverColor:tt,titleMinWidth:He,fontWeightStrong:Me,innerPadding:Ee,boxShadowSecondary:we,colorTextHeading:Ne,borderRadiusLG:Xe,zIndexPopup:ft,titleMarginBottom:Pe,colorBgElevated:Fe,popoverBg:Ze,titleBorderBottom:$e,innerContentPadding:gt,titlePadding:ot}=Re;return[{[Ie]:Object.assign(Object.assign({},(0,y.Wf)(Re)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:ft,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":Fe,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${Ie}-content`]:{position:"relative"},[`${Ie}-inner`]:{backgroundColor:Ze,backgroundClip:"padding-box",borderRadius:Xe,boxShadow:we,padding:Ee},[`${Ie}-title`]:{minWidth:He,marginBottom:Pe,color:Ne,fontWeight:Me,borderBottom:$e,padding:ot},[`${Ie}-inner-content`]:{color:tt,padding:gt}})},(0,ce.ZP)(Re,"var(--antd-arrow-background-color)"),{[`${Ie}-pure`]:{position:"relative",maxWidth:"none",margin:Re.sizePopupArrow,display:"inline-block",[`${Ie}-content`]:{display:"inline-block"}}}]},pe=Re=>{const{componentCls:Ie}=Re;return{[Ie]:ve.i.map(tt=>{const He=Re[`${tt}6`];return{[`&${Ie}-${tt}`]:{"--antd-arrow-background-color":He,[`${Ie}-inner`]:{backgroundColor:He},[`${Ie}-arrow`]:{background:"transparent"}}}})}},le=Re=>{const{lineWidth:Ie,controlHeight:tt,fontHeight:He,padding:Me,wireframe:Ee,zIndexPopupBase:we,borderRadiusLG:Ne,marginXS:Xe,lineType:ft,colorSplit:Pe,paddingSM:Fe}=Re,Ze=tt-He,$e=Ze/2,gt=Ze/2-Ie,ot=Me;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:we+30},(0,je.w)(Re)),(0,ce.wZ)({contentRadius:Ne,limitVerticalRadius:!0})),{innerPadding:Ee?0:12,titleMarginBottom:Ee?0:Xe,titlePadding:Ee?`${$e}px ${ot}px ${gt}px`:0,titleBorderBottom:Ee?`${Ie}px ${ft} ${Pe}`:"none",innerContentPadding:Ee?`${Fe}px ${ot}px`:0})};zt.Z=(0,me.I$)("Popover",Re=>{const{colorBgElevated:Ie,colorText:tt}=Re,He=(0,ye.mergeToken)(Re,{popoverBg:Ie,popoverColor:tt});return[Ae(He),pe(He),(0,he._y)(He,"zoom-big")]},le,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]})},89787:function(bn,zt,z){"use strict";z.d(zt,{Z:function(){return $t}});var y=z(59301),he=z(17835),ce=z(29679),je=z(40001),ve=z(19248),me=z(99267),ye=z(92310),Ae=z.n(ye),pe=z(2738),le=z(48755),Re=z(54476),Ie=z(33885),tt=z(75931),He={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},Me=function(){var yt=(0,y.useRef)([]),Ht=(0,y.useRef)(null);return(0,y.useEffect)(function(){var en=Date.now(),Ke=!1;yt.current.forEach(function(xt){if(xt){Ke=!0;var Zt=xt.style;Zt.transitionDuration=".3s, .3s, .3s, .06s",Ht.current&&en-Ht.current<100&&(Zt.transitionDuration="0s, 0s")}}),Ke&&(Ht.current=Date.now())}),yt.current},Ee=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],we=function(yt){var Ht=(0,Ie.Z)((0,Ie.Z)({},He),yt),en=Ht.className,Ke=Ht.percent,xt=Ht.prefixCls,Zt=Ht.strokeColor,dt=Ht.strokeLinecap,At=Ht.strokeWidth,Ut=Ht.style,pn=Ht.trailColor,On=Ht.trailWidth,mn=Ht.transition,Bn=(0,tt.Z)(Ht,Ee);delete Bn.gapPosition;var Dt=Array.isArray(Ke)?Ke:[Ke],hn=Array.isArray(Zt)?Zt:[Zt],Wt=Me(),an=At/2,Vt=100-At/2,cn="M ".concat(dt==="round"?an:0,",").concat(an,`
L `).concat(dt==="round"?Vt:100,",").concat(an),on="0 0 100 ".concat(At),Zn=0;return y.createElement("svg",(0,Re.Z)({className:Ae()("".concat(xt,"-line"),en),viewBox:on,preserveAspectRatio:"none",style:Ut},Bn),y.createElement("path",{className:"".concat(xt,"-line-trail"),d:cn,strokeLinecap:dt,stroke:pn,strokeWidth:On||At,fillOpacity:"0"}),Dt.map(function(_n,Nn){var jn=1;switch(dt){case"round":jn=1-At/100;break;case"square":jn=1-At/2/100;break;default:jn=1;break}var Gn={strokeDasharray:"".concat(_n*jn,"px, 100px"),strokeDashoffset:"-".concat(Zn,"px"),transition:mn||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},$n=hn[Nn]||hn[hn.length-1];return Zn+=_n,y.createElement("path",{key:Nn,className:"".concat(xt,"-line-path"),d:cn,strokeLinecap:dt,stroke:$n,strokeWidth:At,fillOpacity:"0",ref:function(nr){Wt[Nn]=nr},style:Gn})}))},Ne=we,Xe=z(76190),ft=z(42978),Pe=z(47273),Fe=0,Ze=(0,Pe.Z)();function $e(){var ze;return Ze?(ze=Fe,Fe+=1):ze="TEST_OR_SSR",ze}var gt=function(ze){var yt=y.useState(),Ht=(0,ft.Z)(yt,2),en=Ht[0],Ke=Ht[1];return y.useEffect(function(){Ke("rc_progress_".concat($e()))},[]),ze||en},ot=function(yt){var Ht=yt.bg,en=yt.children;return y.createElement("div",{style:{width:"100%",height:"100%",background:Ht}},en)};function Qe(ze,yt){return Object.keys(ze).map(function(Ht){var en=parseFloat(Ht),Ke="".concat(Math.floor(en*yt),"%");return"".concat(ze[Ht]," ").concat(Ke)})}var ct=y.forwardRef(function(ze,yt){var Ht=ze.prefixCls,en=ze.color,Ke=ze.gradientId,xt=ze.radius,Zt=ze.style,dt=ze.ptg,At=ze.strokeLinecap,Ut=ze.strokeWidth,pn=ze.size,On=ze.gapDegree,mn=en&&(0,Xe.Z)(en)==="object",Bn=mn?"#FFF":void 0,Dt=pn/2,hn=y.createElement("circle",{className:"".concat(Ht,"-circle-path"),r:xt,cx:Dt,cy:Dt,stroke:Bn,strokeLinecap:At,strokeWidth:Ut,opacity:dt===0?0:1,style:Zt,ref:yt});if(!mn)return hn;var Wt="".concat(Ke,"-conic"),an=On?"".concat(180+On/2,"deg"):"0deg",Vt=Qe(en,(360-On)/360),cn=Qe(en,1),on="conic-gradient(from ".concat(an,", ").concat(Vt.join(", "),")"),Zn="linear-gradient(to ".concat(On?"bottom":"top",", ").concat(cn.join(", "),")");return y.createElement(y.Fragment,null,y.createElement("mask",{id:Wt},hn),y.createElement("foreignObject",{x:0,y:0,width:pn,height:pn,mask:"url(#".concat(Wt,")")},y.createElement(ot,{bg:Zn},y.createElement(ot,{bg:on}))))}),Ce=ct,et=100,Te=function(yt,Ht,en,Ke,xt,Zt,dt,At,Ut,pn){var On=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,mn=en/100*360*((360-Zt)/360),Bn=Zt===0?0:{bottom:0,top:180,left:90,right:-90}[dt],Dt=(100-Ke)/100*Ht;Ut==="round"&&Ke!==100&&(Dt+=pn/2,Dt>=Ht&&(Dt=Ht-.01));var hn=et/2;return{stroke:typeof At=="string"?At:void 0,strokeDasharray:"".concat(Ht,"px ").concat(yt),strokeDashoffset:Dt+On,transform:"rotate(".concat(xt+mn+Bn,"deg)"),transformOrigin:"".concat(hn,"px ").concat(hn,"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 _e=function(yt){var Ht=(0,Ie.Z)((0,Ie.Z)({},He),yt),en=Ht.id,Ke=Ht.prefixCls,xt=Ht.steps,Zt=Ht.strokeWidth,dt=Ht.trailWidth,At=Ht.gapDegree,Ut=At===void 0?0:At,pn=Ht.gapPosition,On=Ht.trailColor,mn=Ht.strokeLinecap,Bn=Ht.style,Dt=Ht.className,hn=Ht.strokeColor,Wt=Ht.percent,an=(0,tt.Z)(Ht,ue),Vt=et/2,cn=gt(en),on="".concat(cn,"-gradient"),Zn=Vt-Zt/2,_n=Math.PI*2*Zn,Nn=Ut>0?90+Ut/2:-90,jn=_n*((360-Ut)/360),Gn=(0,Xe.Z)(xt)==="object"?xt:{count:xt,gap:2},$n=Gn.count,lr=Gn.gap,nr=mt(Wt),dn=mt(hn),Cn=dn.find(function(Ue){return Ue&&(0,Xe.Z)(Ue)==="object"}),Hn=Cn&&(0,Xe.Z)(Cn)==="object",Kn=Hn?"butt":mn,Et=Te(_n,jn,0,100,Nn,Ut,pn,On,Kn,Zt),Rt=Me(),Je=function(){var Nt=0;return nr.map(function(Jt,Ln){var zn=dn[Ln]||dn[dn.length-1],pt=Te(_n,jn,Nt,Jt,Nn,Ut,pn,zn,Kn,Zt);return Nt+=Jt,y.createElement(Ce,{key:Ln,color:zn,ptg:Jt,radius:Zn,prefixCls:Ke,gradientId:on,style:pt,strokeLinecap:Kn,strokeWidth:Zt,gapDegree:Ut,ref:function(St){Rt[Ln]=St},size:et})}).reverse()},Bt=function(){var Nt=Math.round($n*(nr[0]/100)),Jt=100/$n,Ln=0;return new Array($n).fill(null).map(function(zn,pt){var Ct=pt<=Nt-1?dn[0]:On,St=Ct&&(0,Xe.Z)(Ct)==="object"?"url(#".concat(on,")"):void 0,It=Te(_n,jn,Ln,Jt,Nn,Ut,pn,Ct,"butt",Zt,lr);return Ln+=(jn-It.strokeDashoffset+lr)*100/jn,y.createElement("circle",{key:pt,className:"".concat(Ke,"-circle-path"),r:Zn,cx:Vt,cy:Vt,stroke:St,strokeWidth:Zt,opacity:1,style:It,ref:function(wn){Rt[pt]=wn}})})};return y.createElement("svg",(0,Re.Z)({className:Ae()("".concat(Ke,"-circle"),Dt),viewBox:"0 0 ".concat(et," ").concat(et),style:Bn,id:en,role:"presentation"},an),!$n&&y.createElement("circle",{className:"".concat(Ke,"-circle-trail"),r:Zn,cx:Vt,cy:Vt,stroke:On,strokeLinecap:Kn,strokeWidth:dt||Zt,style:Et}),$n?Bt():Je())},lt=_e,Mt={Line:Ne,Circle:lt},be=z(25399),ge=z(68361);function Ft(ze){return!ze||ze<0?0:ze>100?100:ze}function _t(ze){let{success:yt,successPercent:Ht}=ze,en=Ht;return yt&&"progress"in yt&&(en=yt.progress),yt&&"percent"in yt&&(en=yt.percent),en}const Tt=ze=>{let{percent:yt,success:Ht,successPercent:en}=ze;const Ke=Ft(_t({success:Ht,successPercent:en}));return[Ke,Ft(Ft(yt)-Ke)]},xe=ze=>{let{success:yt={},strokeColor:Ht}=ze;const{strokeColor:en}=yt;return[en||ge.presetPrimaryColors.green,Ht||null]},rt=(ze,yt,Ht)=>{var en,Ke,xt,Zt;let dt=-1,At=-1;if(yt==="step"){const Ut=Ht.steps,pn=Ht.strokeWidth;typeof ze=="string"||typeof ze=="undefined"?(dt=ze==="small"?2:14,At=pn!=null?pn:8):typeof ze=="number"?[dt,At]=[ze,ze]:[dt=14,At=8]=Array.isArray(ze)?ze:[ze.width,ze.height],dt*=Ut}else if(yt==="line"){const Ut=Ht==null?void 0:Ht.strokeWidth;typeof ze=="string"||typeof ze=="undefined"?At=Ut||(ze==="small"?6:8):typeof ze=="number"?[dt,At]=[ze,ze]:[dt=-1,At=8]=Array.isArray(ze)?ze:[ze.width,ze.height]}else(yt==="circle"||yt==="dashboard")&&(typeof ze=="string"||typeof ze=="undefined"?[dt,At]=ze==="small"?[60,60]:[120,120]:typeof ze=="number"?[dt,At]=[ze,ze]:Array.isArray(ze)&&(dt=(Ke=(en=ze[0])!==null&&en!==void 0?en:ze[1])!==null&&Ke!==void 0?Ke:120,At=(Zt=(xt=ze[0])!==null&&xt!==void 0?xt:ze[1])!==null&&Zt!==void 0?Zt:120));return[dt,At]},qe=3,Gt=ze=>qe/ze*100;var st=ze=>{const{prefixCls:yt,trailColor:Ht=null,strokeLinecap:en="round",gapPosition:Ke,gapDegree:xt,width:Zt=120,type:dt,children:At,success:Ut,size:pn=Zt,steps:On}=ze,[mn,Bn]=rt(pn,"circle");let{strokeWidth:Dt}=ze;Dt===void 0&&(Dt=Math.max(Gt(mn),6));const hn={width:mn,height:Bn,fontSize:mn*.15+6},Wt=y.useMemo(()=>{if(xt||xt===0)return xt;if(dt==="dashboard")return 75},[xt,dt]),an=Tt(ze),Vt=Ke||dt==="dashboard"&&"bottom"||void 0,cn=Object.prototype.toString.call(ze.strokeColor)==="[object Object]",on=xe({success:Ut,strokeColor:ze.strokeColor}),Zn=Ae()(`${yt}-inner`,{[`${yt}-circle-gradient`]:cn}),_n=y.createElement(lt,{steps:On,percent:On?an[1]:an,strokeWidth:Dt,trailWidth:Dt,strokeColor:On?on[1]:on,strokeLinecap:en,trailColor:Ht,prefixCls:yt,gapDegree:Wt,gapPosition:Vt}),Nn=mn<=20,jn=y.createElement("div",{className:Zn,style:hn},_n,!Nn&&At);return Nn?y.createElement(be.Z,{title:At},jn):jn},nt=z(36237),rn=z(63356),kt=z(16931),ae=z(51636);const re="--progress-line-stroke-color",te="--progress-percent",oe=ze=>{const yt=ze?"100%":"-100%";return new nt.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}})},de=ze=>{const{componentCls:yt,iconCls:Ht}=ze;return{[yt]:Object.assign(Object.assign({},(0,rn.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",[Ht]:{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,nt.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:oe(),animationDuration:ze.progressActiveMotionDuration,animationTimingFunction:ze.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${yt}-rtl${yt}-status-active`]:{[`${yt}-bg::before`]:{animationName:oe(!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:Ht}=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%)",[Ht]:{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"}}}},se=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}}}}}},Oe=ze=>{const{componentCls:yt,iconCls:Ht}=ze;return{[yt]:{[`${yt}-small&-line, ${yt}-small&-line ${yt}-text ${Ht}`]:{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 Ge=(0,kt.I$)("Progress",ze=>{const yt=ze.calc(ze.marginXXS).div(2).equal(),Ht=(0,ae.mergeToken)(ze,{progressStepMarginInlineEnd:yt,progressStepMinWidth:yt,progressActiveMotionDuration:"2.4s"});return[de(Ht),ne(Ht),se(Ht),Oe(Ht)]},bt),We=function(ze,yt){var Ht={};for(var en in ze)Object.prototype.hasOwnProperty.call(ze,en)&&yt.indexOf(en)<0&&(Ht[en]=ze[en]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ke=0,en=Object.getOwnPropertySymbols(ze);Ke<en.length;Ke++)yt.indexOf(en[Ke])<0&&Object.prototype.propertyIsEnumerable.call(ze,en[Ke])&&(Ht[en[Ke]]=ze[en[Ke]]);return Ht};const it=ze=>{let yt=[];return Object.keys(ze).forEach(Ht=>{const en=parseFloat(Ht.replace(/%/g,""));Number.isNaN(en)||yt.push({key:en,value:ze[Ht]})}),yt=yt.sort((Ht,en)=>Ht.key-en.key),yt.map(Ht=>{let{key:en,value:Ke}=Ht;return`${Ke} ${en}%`}).join(", ")},ht=(ze,yt)=>{const{from:Ht=ge.presetPrimaryColors.blue,to:en=ge.presetPrimaryColors.blue,direction:Ke=yt==="rtl"?"to left":"to right"}=ze,xt=We(ze,["from","to","direction"]);if(Object.keys(xt).length!==0){const dt=it(xt),At=`linear-gradient(${Ke}, ${dt})`;return{background:At,[re]:At}}const Zt=`linear-gradient(${Ke}, ${Ht}, ${en})`;return{background:Zt,[re]:Zt}};var Le=ze=>{const{prefixCls:yt,direction:Ht,percent:en,size:Ke,strokeWidth:xt,strokeColor:Zt,strokeLinecap:dt="round",children:At,trailColor:Ut=null,percentPosition:pn,success:On}=ze,{align:mn,type:Bn}=pn,Dt=Zt&&typeof Zt!="string"?ht(Zt,Ht):{[re]:Zt,background:Zt},hn=dt==="square"||dt==="butt"?0:void 0,Wt=Ke!=null?Ke:[-1,xt||(Ke==="small"?6:8)],[an,Vt]=rt(Wt,"line",{strokeWidth:xt}),cn={backgroundColor:Ut||void 0,borderRadius:hn},on=Object.assign(Object.assign({width:`${Ft(en)}%`,height:Vt,borderRadius:hn},Dt),{[te]:Ft(en)/100}),Zn=_t(ze),_n={width:`${Ft(Zn)}%`,height:Vt,borderRadius:hn,backgroundColor:On==null?void 0:On.strokeColor},Nn={width:an<0?"100%":an},jn=y.createElement("div",{className:`${yt}-inner`,style:cn},y.createElement("div",{className:Ae()(`${yt}-bg`,`${yt}-bg-${Bn}`),style:on},Bn==="inner"&&At),Zn!==void 0&&y.createElement("div",{className:`${yt}-success-bg`,style:_n})),Gn=Bn==="outer"&&mn==="start",$n=Bn==="outer"&&mn==="end";return Bn==="outer"&&mn==="center"?y.createElement("div",{className:`${yt}-layout-bottom`},jn,At):y.createElement("div",{className:`${yt}-outer`,style:Nn},Gn&&At,jn,$n&&At)},Ot=ze=>{const{size:yt,steps:Ht,rounding:en=Math.round,percent:Ke=0,strokeWidth:xt=8,strokeColor:Zt,trailColor:dt=null,prefixCls:At,children:Ut}=ze,pn=en(Ht*(Ke/100)),On=yt==="small"?2:14,mn=yt!=null?yt:[On,xt],[Bn,Dt]=rt(mn,"step",{steps:Ht,strokeWidth:xt}),hn=Bn/Ht,Wt=Array.from({length:Ht});for(let an=0;an<Ht;an++){const Vt=Array.isArray(Zt)?Zt[an]:Zt;Wt[an]=y.createElement("div",{key:an,className:Ae()(`${At}-steps-item`,{[`${At}-steps-item-active`]:an<=pn-1}),style:{backgroundColor:an<=pn-1?Vt:dt,width:hn,height:Dt}})}return y.createElement("div",{className:`${At}-steps-outer`},Wt,Ut)},Yt=function(ze,yt){var Ht={};for(var en in ze)Object.prototype.hasOwnProperty.call(ze,en)&&yt.indexOf(en)<0&&(Ht[en]=ze[en]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ke=0,en=Object.getOwnPropertySymbols(ze);Ke<en.length;Ke++)yt.indexOf(en[Ke])<0&&Object.prototype.propertyIsEnumerable.call(ze,en[Ke])&&(Ht[en[Ke]]=ze[en[Ke]]);return Ht};const un=null,tn=["normal","exception","active","success"];var ln=y.forwardRef((ze,yt)=>{const{prefixCls:Ht,className:en,rootClassName:Ke,steps:xt,strokeColor:Zt,percent:dt=0,size:At="default",showInfo:Ut=!0,type:pn="line",status:On,format:mn,style:Bn,percentPosition:Dt={}}=ze,hn=Yt(ze,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:Wt="end",type:an="outer"}=Dt,Vt=Array.isArray(Zt)?Zt[0]:Zt,cn=typeof Zt=="string"||Array.isArray(Zt)?Zt:void 0,on=y.useMemo(()=>{if(Vt){const Je=typeof Vt=="string"?Vt:Object.values(Vt)[0];return new he.FastColor(Je).isLight()}return!1},[Zt]),Zn=y.useMemo(()=>{var Je,Bt;const Ue=_t(ze);return parseInt(Ue!==void 0?(Je=Ue!=null?Ue:0)===null||Je===void 0?void 0:Je.toString():(Bt=dt!=null?dt:0)===null||Bt===void 0?void 0:Bt.toString(),10)},[dt,ze.success,ze.successPercent]),_n=y.useMemo(()=>!tn.includes(On)&&Zn>=100?"success":On||"normal",[On,Zn]),{getPrefixCls:Nn,direction:jn,progress:Gn}=y.useContext(le.E_),$n=Nn("progress",Ht),[lr,nr,dn]=Ge($n),Cn=pn==="line",Hn=Cn&&!xt,Kn=y.useMemo(()=>{if(!Ut)return null;const Je=_t(ze);let Bt;const Ue=mn||(Jt=>`${Jt}%`),Nt=Cn&&on&&an==="inner";return an==="inner"||mn||_n!=="exception"&&_n!=="success"?Bt=Ue(Ft(dt),Ft(Je)):_n==="exception"?Bt=Cn?y.createElement(ve.Z,null):y.createElement(me.Z,null):_n==="success"&&(Bt=Cn?y.createElement(ce.Z,null):y.createElement(je.Z,null)),y.createElement("span",{className:Ae()(`${$n}-text`,{[`${$n}-text-bright`]:Nt,[`${$n}-text-${Wt}`]:Hn,[`${$n}-text-${an}`]:Hn}),title:typeof Bt=="string"?Bt:void 0},Bt)},[Ut,dt,Zn,_n,pn,$n,mn]);let Et;pn==="line"?Et=xt?y.createElement(Ot,Object.assign({},ze,{strokeColor:cn,prefixCls:$n,steps:typeof xt=="object"?xt.count:xt}),Kn):y.createElement(Le,Object.assign({},ze,{strokeColor:Vt,prefixCls:$n,direction:jn,percentPosition:{align:Wt,type:an}}),Kn):(pn==="circle"||pn==="dashboard")&&(Et=y.createElement(st,Object.assign({},ze,{strokeColor:Vt,prefixCls:$n,progressStatus:_n}),Kn));const Rt=Ae()($n,`${$n}-status-${_n}`,{[`${$n}-${pn==="dashboard"&&"circle"||pn}`]:pn!=="line",[`${$n}-inline-circle`]:pn==="circle"&&rt(At,"circle")[0]<=20,[`${$n}-line`]:Hn,[`${$n}-line-align-${Wt}`]:Hn,[`${$n}-line-position-${an}`]:Hn,[`${$n}-steps`]:xt,[`${$n}-show-info`]:Ut,[`${$n}-${At}`]:typeof At=="string",[`${$n}-rtl`]:jn==="rtl"},Gn==null?void 0:Gn.className,en,Ke,nr,dn);return lr(y.createElement("div",Object.assign({ref:yt,style:Object.assign(Object.assign({},Gn==null?void 0:Gn.style),Bn),className:Rt,role:"progressbar","aria-valuenow":Zn,"aria-valuemin":0,"aria-valuemax":100},(0,pe.Z)(hn,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Et))}),$t=ln},63139:function(bn,zt,z){"use strict";z.d(zt,{Z:function(){return Tt}});var y=z(59301),he=z(54476),ce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},je=ce,ve=z(7657),me=function(rt,qe){return y.createElement(ve.Z,(0,he.Z)({},rt,{ref:qe,icon:je}))},ye=y.forwardRef(me),Ae=ye,pe=z(92310),le=z.n(pe),Re=z(20068),Ie=z(42978),tt=z(75931),He=z(18929),Me=z(10228),Ee=z(26112);function we(xe,rt){var qe=xe.disabled,Gt=xe.prefixCls,at=xe.character,st=xe.characterRender,nt=xe.index,rn=xe.count,kt=xe.value,ae=xe.allowHalf,re=xe.focused,te=xe.onHover,oe=xe.onClick,de=function(ht){te(ht,nt)},ne=function(ht){oe(ht,nt)},se=function(ht){ht.keyCode===Me.Z.ENTER&&oe(ht,nt)},Oe=nt+1,bt=new Set([Gt]);kt===0&&nt===0&&re?bt.add("".concat(Gt,"-focused")):ae&&kt+.5>=Oe&&kt<Oe?(bt.add("".concat(Gt,"-half")),bt.add("".concat(Gt,"-active")),re&&bt.add("".concat(Gt,"-focused"))):(Oe<=kt?bt.add("".concat(Gt,"-full")):bt.add("".concat(Gt,"-zero")),Oe===kt&&re&&bt.add("".concat(Gt,"-focused")));var Ge=typeof at=="function"?at(xe):at,We=y.createElement("li",{className:le()(Array.from(bt)),ref:rt},y.createElement("div",{onClick:qe?null:ne,onKeyDown:qe?null:se,onMouseMove:qe?null:de,role:"radio","aria-checked":kt>nt?"true":"false","aria-posinset":nt+1,"aria-setsize":rn,tabIndex:qe?-1:0},y.createElement("div",{className:"".concat(Gt,"-first")},Ge),y.createElement("div",{className:"".concat(Gt,"-second")},Ge)));return st&&(We=st(We,xe)),We}var Ne=y.forwardRef(we);function Xe(){var xe=y.useRef({});function rt(Gt){return xe.current[Gt]}function qe(Gt){return function(at){xe.current[Gt]=at}}return[rt,qe]}function ft(xe){var rt=xe.pageXOffset,qe="scrollLeft";if(typeof rt!="number"){var Gt=xe.document;rt=Gt.documentElement[qe],typeof rt!="number"&&(rt=Gt.body[qe])}return rt}function Pe(xe){var rt,qe,Gt=xe.ownerDocument,at=Gt.body,st=Gt&&Gt.documentElement,nt=xe.getBoundingClientRect();return rt=nt.left,qe=nt.top,rt-=st.clientLeft||at.clientLeft||0,qe-=st.clientTop||at.clientTop||0,{left:rt,top:qe}}function Fe(xe){var rt=Pe(xe),qe=xe.ownerDocument,Gt=qe.defaultView||qe.parentWindow;return rt.left+=ft(Gt),rt.left}var Ze=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function $e(xe,rt){var qe=xe.prefixCls,Gt=qe===void 0?"rc-rate":qe,at=xe.className,st=xe.defaultValue,nt=xe.value,rn=xe.count,kt=rn===void 0?5:rn,ae=xe.allowHalf,re=ae===void 0?!1:ae,te=xe.allowClear,oe=te===void 0?!0:te,de=xe.keyboard,ne=de===void 0?!0:de,se=xe.character,Oe=se===void 0?"\u2605":se,bt=xe.characterRender,Ge=xe.disabled,We=xe.direction,it=We===void 0?"ltr":We,ht=xe.tabIndex,Pt=ht===void 0?0:ht,Le=xe.autoFocus,Ve=xe.onHoverChange,Ot=xe.onChange,Yt=xe.onFocus,un=xe.onBlur,tn=xe.onKeyDown,Lt=xe.onMouseLeave,ln=(0,tt.Z)(xe,Ze),$t=Xe(),ze=(0,Ie.Z)($t,2),yt=ze[0],Ht=ze[1],en=y.useRef(null),Ke=function(){if(!Ge){var Kn;(Kn=en.current)===null||Kn===void 0||Kn.focus()}};y.useImperativeHandle(rt,function(){return{focus:Ke,blur:function(){if(!Ge){var Kn;(Kn=en.current)===null||Kn===void 0||Kn.blur()}}}});var xt=(0,He.Z)(st||0,{value:nt}),Zt=(0,Ie.Z)(xt,2),dt=Zt[0],At=Zt[1],Ut=(0,He.Z)(null),pn=(0,Ie.Z)(Ut,2),On=pn[0],mn=pn[1],Bn=function(Kn,Et){var Rt=it==="rtl",Je=Kn+1;if(re){var Bt=yt(Kn),Ue=Fe(Bt),Nt=Bt.clientWidth;(Rt&&Et-Ue>Nt/2||!Rt&&Et-Ue<Nt/2)&&(Je-=.5)}return Je},Dt=function(Kn){At(Kn),Ot==null||Ot(Kn)},hn=y.useState(!1),Wt=(0,Ie.Z)(hn,2),an=Wt[0],Vt=Wt[1],cn=function(){Vt(!0),Yt==null||Yt()},on=function(){Vt(!1),un==null||un()},Zn=y.useState(null),_n=(0,Ie.Z)(Zn,2),Nn=_n[0],jn=_n[1],Gn=function(Kn,Et){var Rt=Bn(Et,Kn.pageX);Rt!==On&&(jn(Rt),mn(null)),Ve==null||Ve(Rt)},$n=function(Kn){Ge||(jn(null),mn(null),Ve==null||Ve(void 0)),Kn&&(Lt==null||Lt(Kn))},lr=function(Kn,Et){var Rt=Bn(Et,Kn.pageX),Je=!1;oe&&(Je=Rt===dt),$n(),Dt(Je?0:Rt),mn(Je?Rt:null)},nr=function(Kn){var Et=Kn.keyCode,Rt=it==="rtl",Je=re?.5:1;ne&&(Et===Me.Z.RIGHT&&dt<kt&&!Rt?(Dt(dt+Je),Kn.preventDefault()):Et===Me.Z.LEFT&&dt>0&&!Rt||Et===Me.Z.RIGHT&&dt>0&&Rt?(Dt(dt-Je),Kn.preventDefault()):Et===Me.Z.LEFT&&dt<kt&&Rt&&(Dt(dt+Je),Kn.preventDefault())),tn==null||tn(Kn)};y.useEffect(function(){Le&&!Ge&&Ke()},[]);var dn=new Array(kt).fill(0).map(function(Hn,Kn){return y.createElement(Ne,{ref:Ht(Kn),index:Kn,count:kt,disabled:Ge,prefixCls:"".concat(Gt,"-star"),allowHalf:re,value:Nn===null?dt:Nn,onClick:lr,onHover:Gn,key:Hn||Kn,character:Oe,characterRender:bt,focused:an})}),Cn=le()(Gt,at,(0,Re.Z)((0,Re.Z)({},"".concat(Gt,"-disabled"),Ge),"".concat(Gt,"-rtl"),it==="rtl"));return y.createElement("ul",(0,he.Z)({className:Cn,onMouseLeave:$n,tabIndex:Ge?-1:Pt,onFocus:Ge?null:cn,onBlur:Ge?null:on,onKeyDown:Ge?null:nr,ref:en},(0,Ee.Z)(ln,{aria:!0,data:!0,attr:!0})),dn)}var gt=y.forwardRef($e),ot=gt,Qe=z(48755),ct=z(25399),Ce=z(36237),et=z(63356),Te=z(16931),ue=z(51636);const mt=xe=>{const{componentCls:rt}=xe;return{[`${rt}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:xe.marginXS},"> div":{transition:`all ${xe.motionDurationMid}, outline 0s`,"&:hover":{transform:xe.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${(0,Ce.unit)(xe.lineWidth)} dashed ${xe.starColor}`,transform:xe.starHoverScale}},"&-first, &-second":{color:xe.starBg,transition:`all ${xe.motionDurationMid}`,userSelect:"none"},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${rt}-star-first, &-half ${rt}-star-second`]:{opacity:1},[`&-half ${rt}-star-first, &-full ${rt}-star-second`]:{color:"inherit"}}}},_e=xe=>({[`&-rtl${xe.componentCls}`]:{direction:"rtl"}}),lt=xe=>{const{componentCls:rt}=xe;return{[rt]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,et.Wf)(xe)),{display:"inline-block",margin:0,padding:0,color:xe.starColor,fontSize:xe.starSize,lineHeight:1,listStyle:"none",outline:"none",[`&-disabled${rt} ${rt}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),mt(xe)),_e(xe))}},Mt=xe=>({starColor:xe.yellow6,starSize:xe.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:xe.colorFillContent});var be=(0,Te.I$)("Rate",xe=>{const rt=(0,ue.mergeToken)(xe,{});return[lt(rt)]},Mt),ge=z(2171),Ft=function(xe,rt){var qe={};for(var Gt in xe)Object.prototype.hasOwnProperty.call(xe,Gt)&&rt.indexOf(Gt)<0&&(qe[Gt]=xe[Gt]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,Gt=Object.getOwnPropertySymbols(xe);at<Gt.length;at++)rt.indexOf(Gt[at])<0&&Object.prototype.propertyIsEnumerable.call(xe,Gt[at])&&(qe[Gt[at]]=xe[Gt[at]]);return qe},Tt=y.forwardRef((xe,rt)=>{const{prefixCls:qe,className:Gt,rootClassName:at,style:st,tooltips:nt,character:rn=y.createElement(Ae,null),disabled:kt}=xe,ae=Ft(xe,["prefixCls","className","rootClassName","style","tooltips","character","disabled"]),re=(ht,Pt)=>{let{index:Le}=Pt;return nt?y.createElement(ct.Z,{title:nt[Le]},ht):ht},{getPrefixCls:te,direction:oe,rate:de}=y.useContext(Qe.E_),ne=te("rate",qe),[se,Oe,bt]=be(ne),Ge=Object.assign(Object.assign({},de==null?void 0:de.style),st),We=y.useContext(ge.Z),it=kt!=null?kt:We;return se(y.createElement(ot,Object.assign({ref:rt,character:rn,characterRender:re,disabled:it},ae,{className:le()(Gt,at,Oe,bt,de==null?void 0:de.className),style:Ge,prefixCls:ne,direction:oe})))})},82326:function(bn,zt,z){"use strict";var y=z(59301),he=z(92310),ce=z.n(he),je=z(37463),ve=z(2738),me=z(75030),ye=z(86641),Ae=z(45915),pe=z(82855),le=z(48755),Re=z(38406),Ie=z(2171),tt=z(83397),He=z(31756),Me=z(56553),Ee=z(24971),we=z(70045),Ne=z(57700),Xe=z(1722),ft=z(90376),Pe=z(68525),Fe=z(90005),Ze=function(ct,Ce){var et={};for(var Te in ct)Object.prototype.hasOwnProperty.call(ct,Te)&&Ce.indexOf(Te)<0&&(et[Te]=ct[Te]);if(ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ue=0,Te=Object.getOwnPropertySymbols(ct);ue<Te.length;ue++)Ce.indexOf(Te[ue])<0&&Object.prototype.propertyIsEnumerable.call(ct,Te[ue])&&(et[Te[ue]]=ct[Te[ue]]);return et};const $e="SECRET_COMBOBOX_MODE_DO_NOT_USE",gt=(ct,Ce)=>{var et;const{prefixCls:Te,bordered:ue,className:mt,rootClassName:_e,getPopupContainer:lt,popupClassName:Mt,dropdownClassName:be,listHeight:ge=256,placement:Ft,listItemHeight:_t,size:Tt,disabled:xe,notFoundContent:rt,status:qe,builtinPlacements:Gt,dropdownMatchSelectWidth:at,popupMatchSelectWidth:st,direction:nt,style:rn,allowClear:kt,variant:ae,dropdownStyle:re,transitionName:te,tagRender:oe,maxCount:de,prefix:ne}=ct,se=Ze(ct,["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:Oe,getPrefixCls:bt,renderEmpty:Ge,direction:We,virtual:it,popupMatchSelectWidth:ht,popupOverflow:Pt}=y.useContext(le.E_),Le=(0,le.dj)("select"),[,Ve]=(0,Ne.ZP)(),Ot=_t!=null?_t:Ve==null?void 0:Ve.controlHeight,Yt=bt("select",Te),un=bt(),tn=nt!=null?nt:We,{compactSize:Lt,compactItemClassnames:ln}=(0,we.ri)(Yt,tn),[$t,ze]=(0,Ee.Z)("select",ae,ue),yt=(0,tt.Z)(Yt),[Ht,en,Ke]=(0,ft.Z)(Yt,yt),xt=y.useMemo(()=>{const{mode:nr}=ct;if(nr!=="combobox")return nr===$e?"combobox":nr},[ct.mode]),Zt=xt==="multiple"||xt==="tags",dt=(0,Fe.Z)(ct.suffixIcon,ct.showArrow),At=(et=st!=null?st:at)!==null&&et!==void 0?et:ht,{status:Ut,hasFeedback:pn,isFormItemInput:On,feedbackIcon:mn}=y.useContext(Me.aM),Bn=(0,pe.F)(Ut,qe);let Dt;rt!==void 0?Dt=rt:xt==="combobox"?Dt=null:Dt=(Ge==null?void 0:Ge("Select"))||y.createElement(Re.Z,{componentName:"Select"});const{suffixIcon:hn,itemIcon:Wt,removeIcon:an,clearIcon:Vt}=(0,Pe.Z)(Object.assign(Object.assign({},se),{multiple:Zt,hasFeedback:pn,feedbackIcon:mn,showSuffixIcon:dt,prefixCls:Yt,componentName:"Select"})),cn=kt===!0?{clearIcon:Vt}:kt,on=(0,ve.Z)(se,["suffixIcon","itemIcon"]),Zn=ce()(Mt||be,{[`${Yt}-dropdown-${tn}`]:tn==="rtl"},_e,Ke,yt,en),_n=(0,He.Z)(nr=>{var dn;return(dn=Tt!=null?Tt:Lt)!==null&&dn!==void 0?dn:nr}),Nn=y.useContext(Ie.Z),jn=xe!=null?xe:Nn,Gn=ce()({[`${Yt}-lg`]:_n==="large",[`${Yt}-sm`]:_n==="small",[`${Yt}-rtl`]:tn==="rtl",[`${Yt}-${$t}`]:ze,[`${Yt}-in-form-item`]:On},(0,pe.Z)(Yt,Bn,pn),ln,Le.className,mt,_e,Ke,yt,en),$n=y.useMemo(()=>Ft!==void 0?Ft:tn==="rtl"?"bottomRight":"bottomLeft",[Ft,tn]),[lr]=(0,me.Cn)("SelectLike",re==null?void 0:re.zIndex);return Ht(y.createElement(je.ZP,Object.assign({ref:Ce,virtual:it,showSearch:Le.showSearch},on,{style:Object.assign(Object.assign({},Le.style),rn),dropdownMatchSelectWidth:At,transitionName:(0,ye.m)(un,"slide-up",te),builtinPlacements:(0,Xe.Z)(Gt,Pt),listHeight:ge,listItemHeight:Ot,mode:xt,prefixCls:Yt,placement:$n,direction:tn,prefix:ne,suffixIcon:hn,menuItemSelectedIcon:Wt,removeIcon:an,allowClear:cn,notFoundContent:Dt,className:Gn,getPopupContainer:lt||Oe,dropdownClassName:Zn,disabled:jn,dropdownStyle:Object.assign(Object.assign({},re),{zIndex:lr}),maxCount:Zt?de:void 0,tagRender:Zt?oe:void 0})))},ot=y.forwardRef(gt),Qe=(0,Ae.Z)(ot,"dropdownAlign");ot.SECRET_COMBOBOX_MODE_DO_NOT_USE=$e,ot.Option=je.Wx,ot.OptGroup=je.Xo,ot._InternalPanelDoNotUseOrYouWillBeFired=Qe,zt.default=ot},1722:function(bn,zt){"use strict";const z=he=>{const je={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:he==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},je),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},je),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},je),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},je),{points:["br","tr"],offset:[0,-4]})}};function y(he,ce){return he||z(ce)}zt.Z=y},90376:function(bn,zt,z){"use strict";z.d(zt,{Z:function(){return Te}});var y=z(63356),he=z(56119),ce=z(16931),je=z(51636),ve=z(46e3),me=z(93873);const ye=ue=>{const{optionHeight:mt,optionFontSize:_e,optionLineHeight:lt,optionPadding:Mt}=ue;return{position:"relative",display:"block",minHeight:mt,padding:Mt,color:ue.colorText,fontWeight:"normal",fontSize:_e,lineHeight:lt,boxSizing:"border-box"}};var pe=ue=>{const{antCls:mt,componentCls:_e}=ue,lt=`${_e}-item`,Mt=`&${mt}-slide-up-enter${mt}-slide-up-enter-active`,be=`&${mt}-slide-up-appear${mt}-slide-up-appear-active`,ge=`&${mt}-slide-up-leave${mt}-slide-up-leave-active`,Ft=`${_e}-dropdown-placement-`,_t=`${lt}-option-selected`;return[{[`${_e}-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}${Ft}bottomLeft,
${be}${Ft}bottomLeft
`]:{animationName:ve.fJ},[`
${Mt}${Ft}topLeft,
${be}${Ft}topLeft,
${Mt}${Ft}topRight,
${be}${Ft}topRight
`]:{animationName:ve.Qt},[`${ge}${Ft}bottomLeft`]:{animationName:ve.Uw},[`
${ge}${Ft}topLeft,
${ge}${Ft}topRight
`]:{animationName:ve.ly},"&-hidden":{display:"none"},[lt]:Object.assign(Object.assign({},ye(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(${lt}-option-disabled)`]:{backgroundColor:ue.optionActiveBg},[`&-selected:not(${lt}-option-disabled)`]:{color:ue.optionSelectedColor,fontWeight:ue.optionSelectedFontWeight,backgroundColor:ue.optionSelectedBg,[`${lt}-option-state`]:{color:ue.colorPrimary}},"&-disabled":{[`&${lt}-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({},ye(ue)),{color:ue.colorTextDisabled})}),[`${_t}:has(+ ${_t})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${_t}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},(0,ve.oN)(ue,"slide-up"),(0,ve.oN)(ue,"slide-down"),(0,me.Fm)(ue,"move-up"),(0,me.Fm)(ue,"move-down")]},le=z(26743),Re=z(36237);function Ie(ue,mt){const{componentCls:_e,inputPaddingHorizontalBase:lt,borderRadius:Mt}=ue,be=ue.calc(ue.controlHeight).sub(ue.calc(ue.lineWidth).mul(2)).equal(),ge=mt?`${_e}-${mt}`:"";return{[`${_e}-single${ge}`]:{fontSize:ue.fontSize,height:ue.controlHeight,[`${_e}-selector`]:Object.assign(Object.assign({},(0,y.Wf)(ue,!0)),{display:"flex",borderRadius:Mt,flex:"1 1 auto",[`${_e}-selection-wrap:after`]:{lineHeight:(0,Re.unit)(be)},[`${_e}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
${_e}-selection-item,
${_e}-selection-placeholder
`]:{display:"block",padding:0,lineHeight:(0,Re.unit)(be),transition:`all ${ue.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${_e}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${_e}-selection-item:empty:after`,`${_e}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
&${_e}-show-arrow ${_e}-selection-item,
&${_e}-show-arrow ${_e}-selection-search,
&${_e}-show-arrow ${_e}-selection-placeholder
`]:{paddingInlineEnd:ue.showArrowPaddingInlineEnd},[`&${_e}-open ${_e}-selection-item`]:{color:ue.colorTextPlaceholder},[`&:not(${_e}-customize-input)`]:{[`${_e}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${(0,Re.unit)(lt)}`,[`${_e}-selection-search-input`]:{height:be,fontSize:ue.fontSize},"&:after":{lineHeight:(0,Re.unit)(be)}}},[`&${_e}-customize-input`]:{[`${_e}-selector`]:{"&:after":{display:"none"},[`${_e}-selection-search`]:{position:"static",width:"100%"},[`${_e}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${(0,Re.unit)(lt)}`,"&:after":{display:"none"}}}}}}}function tt(ue){const{componentCls:mt}=ue,_e=ue.calc(ue.controlPaddingHorizontalSM).sub(ue.lineWidth).equal();return[Ie(ue),Ie((0,je.mergeToken)(ue,{controlHeight:ue.controlHeightSM,borderRadius:ue.borderRadiusSM}),"sm"),{[`${mt}-single${mt}-sm`]:{[`&:not(${mt}-customize-input)`]:{[`${mt}-selector`]:{padding:`0 ${(0,Re.unit)(_e)}`},[`&${mt}-show-arrow ${mt}-selection-search`]:{insetInlineEnd:ue.calc(_e).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()}}}},Ie((0,je.mergeToken)(ue,{controlHeight:ue.singleItemHeightLG,fontSize:ue.fontSizeLG,borderRadius:ue.borderRadiusLG}),"lg")]}const He=ue=>{const{fontSize:mt,lineHeight:_e,lineWidth:lt,controlHeight:Mt,controlHeightSM:be,controlHeightLG:ge,paddingXXS:Ft,controlPaddingHorizontal:_t,zIndexPopupBase:Tt,colorText:xe,fontWeightStrong:rt,controlItemBgActive:qe,controlItemBgHover:Gt,colorBgContainer:at,colorFillSecondary:st,colorBgContainerDisabled:nt,colorTextDisabled:rn,colorPrimaryHover:kt,colorPrimary:ae,controlOutline:re}=ue,te=Ft*2,oe=lt*2,de=Math.min(Mt-te,Mt-oe),ne=Math.min(be-te,be-oe),se=Math.min(ge-te,ge-oe);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(Ft/2),zIndexPopup:Tt+50,optionSelectedColor:xe,optionSelectedFontWeight:rt,optionSelectedBg:qe,optionActiveBg:Gt,optionPadding:`${(Mt-mt*_e)/2}px ${_t}px`,optionFontSize:mt,optionLineHeight:_e,optionHeight:Mt,selectorBg:at,clearBg:at,singleItemHeightLG:ge,multipleItemBg:st,multipleItemBorderColor:"transparent",multipleItemHeight:de,multipleItemHeightSM:ne,multipleItemHeightLG:se,multipleSelectorBgDisabled:nt,multipleItemColorDisabled:rn,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(ue.fontSize*1.25),hoverBorderColor:kt,activeBorderColor:ae,activeOutlineColor:re,selectAffixPadding:Ft}},Me=(ue,mt)=>{const{componentCls:_e,antCls:lt,controlOutlineWidth:Mt}=ue;return{[`&:not(${_e}-customize-input) ${_e}-selector`]:{border:`${(0,Re.unit)(ue.lineWidth)} ${ue.lineType} ${mt.borderColor}`,background:ue.selectorBg},[`&:not(${_e}-disabled):not(${_e}-customize-input):not(${lt}-pagination-size-changer)`]:{[`&:hover ${_e}-selector`]:{borderColor:mt.hoverBorderHover},[`${_e}-focused& ${_e}-selector`]:{borderColor:mt.activeBorderColor,boxShadow:`0 0 0 ${(0,Re.unit)(Mt)} ${mt.activeOutlineColor}`,outline:0},[`${_e}-prefix`]:{color:mt.color}}}},Ee=(ue,mt)=>({[`&${ue.componentCls}-status-${mt.status}`]:Object.assign({},Me(ue,mt))}),we=ue=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},Me(ue,{borderColor:ue.colorBorder,hoverBorderHover:ue.hoverBorderColor,activeBorderColor:ue.activeBorderColor,activeOutlineColor:ue.activeOutlineColor,color:ue.colorText})),Ee(ue,{status:"error",borderColor:ue.colorError,hoverBorderHover:ue.colorErrorHover,activeBorderColor:ue.colorError,activeOutlineColor:ue.colorErrorOutline,color:ue.colorError})),Ee(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,Re.unit)(ue.lineWidth)} ${ue.lineType} ${ue.multipleItemBorderColor}`}})}),Ne=(ue,mt)=>{const{componentCls:_e,antCls:lt}=ue;return{[`&:not(${_e}-customize-input) ${_e}-selector`]:{background:mt.bg,border:`${(0,Re.unit)(ue.lineWidth)} ${ue.lineType} transparent`,color:mt.color},[`&:not(${_e}-disabled):not(${_e}-customize-input):not(${lt}-pagination-size-changer)`]:{[`&:hover ${_e}-selector`]:{background:mt.hoverBg},[`${_e}-focused& ${_e}-selector`]:{background:ue.selectorBg,borderColor:mt.activeBorderColor,outline:0}}}},Xe=(ue,mt)=>({[`&${ue.componentCls}-status-${mt.status}`]:Object.assign({},Ne(ue,mt))}),ft=ue=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},Ne(ue,{bg:ue.colorFillTertiary,hoverBg:ue.colorFillSecondary,activeBorderColor:ue.activeBorderColor,color:ue.colorText})),Xe(ue,{status:"error",bg:ue.colorErrorBg,hoverBg:ue.colorErrorBgHover,activeBorderColor:ue.colorError,color:ue.colorError})),Xe(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,Re.unit)(ue.lineWidth)} ${ue.lineType} ${ue.colorSplit}`}})}),Pe=ue=>({"&-borderless":{[`${ue.componentCls}-selector`]:{background:"transparent",border:`${(0,Re.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,Re.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}}}}),Fe=(ue,mt)=>{const{componentCls:_e,antCls:lt}=ue;return{[`&:not(${_e}-customize-input) ${_e}-selector`]:{borderWidth:`0 0 ${(0,Re.unit)(ue.lineWidth)} 0`,borderStyle:`none none ${ue.lineType} none`,borderColor:mt.borderColor,background:ue.selectorBg,borderRadius:0},[`&:not(${_e}-disabled):not(${_e}-customize-input):not(${lt}-pagination-size-changer)`]:{[`&:hover ${_e}-selector`]:{borderColor:mt.hoverBorderHover},[`${_e}-focused& ${_e}-selector`]:{borderColor:mt.activeBorderColor,outline:0},[`${_e}-prefix`]:{color:mt.color}}}},Ze=(ue,mt)=>({[`&${ue.componentCls}-status-${mt.status}`]:Object.assign({},Fe(ue,mt))}),$e=ue=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},Fe(ue,{borderColor:ue.colorBorder,hoverBorderHover:ue.hoverBorderColor,activeBorderColor:ue.activeBorderColor,activeOutlineColor:ue.activeOutlineColor,color:ue.colorText})),Ze(ue,{status:"error",borderColor:ue.colorError,hoverBorderHover:ue.colorErrorHover,activeBorderColor:ue.colorError,activeOutlineColor:ue.colorErrorOutline,color:ue.colorError})),Ze(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,Re.unit)(ue.lineWidth)} ${ue.lineType} ${ue.multipleItemBorderColor}`}})});var ot=ue=>({[ue.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},we(ue)),ft(ue)),Pe(ue)),$e(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"}}}},ct=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"}}}},Ce=ue=>{const{antCls:mt,componentCls:_e,inputPaddingHorizontalBase:lt,iconCls:Mt}=ue;return{[_e]:Object.assign(Object.assign({},(0,y.Wf)(ue)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${_e}-customize-input) ${_e}-selector`]:Object.assign(Object.assign({},Qe(ue)),ct(ue)),[`${_e}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},y.vS),{[`> ${mt}-typography`]:{display:"inline"}}),[`${_e}-selection-placeholder`]:Object.assign(Object.assign({},y.vS),{flex:1,color:ue.colorTextPlaceholder,pointerEvents:"none"}),[`${_e}-arrow`]:Object.assign(Object.assign({},(0,y.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:lt,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(${_e}-suffix)`]:{pointerEvents:"auto"}},[`${_e}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${_e}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${_e}-prefix`]:{flex:"none",marginInlineEnd:ue.selectAffixPadding},[`${_e}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:lt,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 ${_e}-clear`]:{opacity:1,background:ue.colorBgBase,borderRadius:"50%"}}),[`${_e}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${_e}-has-feedback`]:{[`${_e}-clear`]:{insetInlineEnd:ue.calc(lt).add(ue.fontSize).add(ue.paddingXS).equal()}}}}}},et=ue=>{const{componentCls:mt}=ue;return[{[mt]:{[`&${mt}-in-form-item`]:{width:"100%"}}},Ce(ue),tt(ue),(0,le.ZP)(ue),pe(ue),{[`${mt}-rtl`]:{direction:"rtl"}},(0,he.c)(ue,{borderElCls:`${mt}-selector`,focusElCls:`${mt}-focused`})]};var Te=(0,ce.I$)("Select",(ue,mt)=>{let{rootPrefixCls:_e}=mt;const lt=(0,je.mergeToken)(ue,{rootPrefixCls:_e,inputPaddingHorizontalBase:ue.calc(ue.paddingSM).sub(1).equal(),multipleSelectItemHeight:ue.multipleItemHeight,selectHeight:ue.controlHeight});return[et(lt),ot(lt)]},He,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}})},26743:function(bn,zt,z){"use strict";z.d(zt,{_z:function(){return me},gp:function(){return je}});var y=z(36237),he=z(63356),ce=z(51636);const je=le=>{const{multipleSelectItemHeight:Re,paddingXXS:Ie,lineWidth:tt,INTERNAL_FIXED_ITEM_MARGIN:He}=le,Me=le.max(le.calc(Ie).sub(tt).equal(),0),Ee=le.max(le.calc(Me).sub(He).equal(),0);return{basePadding:Me,containerPadding:Ee,itemHeight:(0,y.unit)(Re),itemLineHeight:(0,y.unit)(le.calc(Re).sub(le.calc(le.lineWidth).mul(2)).equal())}},ve=le=>{const{multipleSelectItemHeight:Re,selectHeight:Ie,lineWidth:tt}=le;return le.calc(Ie).sub(Re).div(2).sub(tt).equal()},me=le=>{const{componentCls:Re,iconCls:Ie,borderRadiusSM:tt,motionDurationSlow:He,paddingXS:Me,multipleItemColorDisabled:Ee,multipleItemBorderColorDisabled:we,colorIcon:Ne,colorIconHover:Xe,INTERNAL_FIXED_ITEM_MARGIN:ft}=le;return{[`${Re}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${Re}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:ft,borderRadius:tt,cursor:"default",transition:`font-size ${He}, line-height ${He}, height ${He}`,marginInlineEnd:le.calc(ft).mul(2).equal(),paddingInlineStart:Me,paddingInlineEnd:le.calc(Me).div(2).equal(),[`${Re}-disabled&`]:{color:Ee,borderColor:we,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:le.calc(Me).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,he.Ro)()),{display:"inline-flex",alignItems:"center",color:Ne,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${Ie}`]:{verticalAlign:"-0.2em"},"&:hover":{color:Xe}})}}}},ye=(le,Re)=>{const{componentCls:Ie,INTERNAL_FIXED_ITEM_MARGIN:tt}=le,He=`${Ie}-selection-overflow`,Me=le.multipleSelectItemHeight,Ee=ve(le),we=Re?`${Ie}-${Re}`:"",Ne=je(le);return{[`${Ie}-multiple${we}`]:Object.assign(Object.assign({},me(le)),{[`${Ie}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:Ne.basePadding,paddingBlock:Ne.containerPadding,borderRadius:le.borderRadius,[`${Ie}-disabled&`]:{background:le.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${(0,y.unit)(tt)} 0`,lineHeight:(0,y.unit)(Me),visibility:"hidden",content:'"\\a0"'}},[`${Ie}-selection-item`]:{height:Ne.itemHeight,lineHeight:(0,y.unit)(Ne.itemLineHeight)},[`${Ie}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:(0,y.unit)(Me),marginBlock:tt}},[`${Ie}-prefix`]:{marginInlineStart:le.calc(le.inputPaddingHorizontalBase).sub(Ne.basePadding).equal()},[`${He}-item + ${He}-item,
${Ie}-prefix + ${Ie}-selection-wrap
`]:{[`${Ie}-selection-search`]:{marginInlineStart:0},[`${Ie}-selection-placeholder`]:{insetInlineStart:0}},[`${He}-item-suffix`]:{minHeight:Ne.itemHeight,marginBlock:tt},[`${Ie}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:le.calc(le.inputPaddingHorizontalBase).sub(Ee).equal(),"\n &-input,\n &-mirror\n ":{height:Me,fontFamily:le.fontFamily,lineHeight:(0,y.unit)(Me),transition:`all ${le.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${Ie}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:le.calc(le.inputPaddingHorizontalBase).sub(Ne.basePadding).equal(),insetInlineEnd:le.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${le.motionDurationSlow}`}})}};function Ae(le,Re){const{componentCls:Ie}=le,tt=Re?`${Ie}-${Re}`:"",He={[`${Ie}-multiple${tt}`]:{fontSize:le.fontSize,[`${Ie}-selector`]:{[`${Ie}-show-search&`]:{cursor:"text"}},[`
&${Ie}-show-arrow ${Ie}-selector,
&${Ie}-allow-clear ${Ie}-selector
`]:{paddingInlineEnd:le.calc(le.fontSizeIcon).add(le.controlPaddingHorizontal).equal()}}};return[ye(le,Re),He]}const pe=le=>{const{componentCls:Re}=le,Ie=(0,ce.mergeToken)(le,{selectHeight:le.controlHeightSM,multipleSelectItemHeight:le.multipleItemHeightSM,borderRadius:le.borderRadiusSM,borderRadiusSM:le.borderRadiusXS}),tt=(0,ce.mergeToken)(le,{fontSize:le.fontSizeLG,selectHeight:le.controlHeightLG,multipleSelectItemHeight:le.multipleItemHeightLG,borderRadius:le.borderRadiusLG,borderRadiusSM:le.borderRadius});return[Ae(le),Ae(Ie,"sm"),{[`${Re}-multiple${Re}-sm`]:{[`${Re}-selection-placeholder`]:{insetInline:le.calc(le.controlPaddingHorizontalSM).sub(le.lineWidth).equal()},[`${Re}-selection-search`]:{marginInlineStart:2}}},Ae(tt,"lg")]};zt.ZP=pe},68525:function(bn,zt,z){"use strict";z.d(zt,{Z:function(){return Ae}});var y=z(59301),he=z(40001),ce=z(19248),je=z(99267),ve=z(84105),me=z(58617),ye=z(47472);function Ae(pe){let{suffixIcon:le,clearIcon:Re,menuItemSelectedIcon:Ie,removeIcon:tt,loading:He,multiple:Me,hasFeedback:Ee,prefixCls:we,showSuffixIcon:Ne,feedbackIcon:Xe,showArrow:ft,componentName:Pe}=pe;const Fe=Re!=null?Re:y.createElement(ce.Z,null),Ze=Qe=>le===null&&!Ee&&!ft?null:y.createElement(y.Fragment,null,Ne!==!1&&Qe,Ee&&Xe);let $e=null;if(le!==void 0)$e=Ze(le);else if(He)$e=Ze(y.createElement(me.Z,{spin:!0}));else{const Qe=`${we}-suffix`;$e=ct=>{let{open:Ce,showSearch:et}=ct;return Ze(Ce&&et?y.createElement(ye.Z,{className:Qe}):y.createElement(ve.Z,{className:Qe}))}}let gt=null;Ie!==void 0?gt=Ie:Me?gt=y.createElement(he.Z,null):gt=null;let ot=null;return tt!==void 0?ot=tt:ot=y.createElement(je.Z,null),{clearIcon:Fe,suffixIcon:$e,itemIcon:gt,removeIcon:ot}}},90005:function(bn,zt,z){"use strict";z.d(zt,{Z:function(){return y}});function y(he,ce){return ce!==void 0?ce:he!==null}},11938:function(bn,zt,z){"use strict";z.d(zt,{default:function(){return ct}});var y=z(59301),he=z(40192),ce=z(22703),je=z(92310),ve=z.n(je),me=z(26112),ye=z(48755),Ae=z(458),le=Ce=>{const{value:et,formatter:Te,precision:ue,decimalSeparator:mt,groupSeparator:_e="",prefixCls:lt}=Ce;let Mt;if(typeof Te=="function")Mt=Te(et);else{const be=String(et),ge=be.match(/^(-?)(\d*)(\.(\d+))?$/);if(!ge||be==="-")Mt=be;else{const Ft=ge[1];let _t=ge[2]||"0",Tt=ge[4]||"";_t=_t.replace(/\B(?=(\d{3})+(?!\d))/g,_e),typeof ue=="number"&&(Tt=Tt.padEnd(ue,"0").slice(0,ue>0?ue:0)),Tt&&(Tt=`${mt}${Tt}`),Mt=[y.createElement("span",{key:"int",className:`${lt}-content-value-int`},Ft,_t),Tt&&y.createElement("span",{key:"decimal",className:`${lt}-content-value-decimal`},Tt)]}}return y.createElement("span",{className:`${lt}-content-value`},Mt)},Re=z(63356),Ie=z(16931),tt=z(51636);const He=Ce=>{const{componentCls:et,marginXXS:Te,padding:ue,colorTextDescription:mt,titleFontSize:_e,colorTextHeading:lt,contentFontSize:Mt,fontFamily:be}=Ce;return{[et]:Object.assign(Object.assign({},(0,Re.Wf)(Ce)),{[`${et}-title`]:{marginBottom:Te,color:mt,fontSize:_e},[`${et}-skeleton`]:{paddingTop:ue},[`${et}-content`]:{color:lt,fontSize:Mt,fontFamily:be,[`${et}-content-value`]:{display:"inline-block",direction:"ltr"},[`${et}-content-prefix, ${et}-content-suffix`]:{display:"inline-block"},[`${et}-content-prefix`]:{marginInlineEnd:Te},[`${et}-content-suffix`]:{marginInlineStart:Te}}})}},Me=Ce=>{const{fontSizeHeading3:et,fontSize:Te}=Ce;return{titleFontSize:Te,contentFontSize:et}};var Ee=(0,Ie.I$)("Statistic",Ce=>{const et=(0,tt.mergeToken)(Ce,{});return[He(et)]},Me),we=function(Ce,et){var Te={};for(var ue in Ce)Object.prototype.hasOwnProperty.call(Ce,ue)&&et.indexOf(ue)<0&&(Te[ue]=Ce[ue]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var mt=0,ue=Object.getOwnPropertySymbols(Ce);mt<ue.length;mt++)et.indexOf(ue[mt])<0&&Object.prototype.propertyIsEnumerable.call(Ce,ue[mt])&&(Te[ue[mt]]=Ce[ue[mt]]);return Te},Xe=Ce=>{const{prefixCls:et,className:Te,rootClassName:ue,style:mt,valueStyle:_e,value:lt=0,title:Mt,valueRender:be,prefix:ge,suffix:Ft,loading:_t=!1,formatter:Tt,precision:xe,decimalSeparator:rt=".",groupSeparator:qe=",",onMouseEnter:Gt,onMouseLeave:at}=Ce,st=we(Ce,["prefixCls","className","rootClassName","style","valueStyle","value","title","valueRender","prefix","suffix","loading","formatter","precision","decimalSeparator","groupSeparator","onMouseEnter","onMouseLeave"]),{getPrefixCls:nt,direction:rn,className:kt,style:ae}=(0,ye.dj)("statistic"),re=nt("statistic",et),[te,oe,de]=Ee(re),ne=y.createElement(le,{decimalSeparator:rt,groupSeparator:qe,prefixCls:re,formatter:Tt,precision:xe,value:lt}),se=ve()(re,{[`${re}-rtl`]:rn==="rtl"},kt,Te,ue,oe,de),Oe=(0,me.Z)(st,{aria:!0,data:!0});return te(y.createElement("div",Object.assign({},Oe,{className:se,style:Object.assign(Object.assign({},ae),mt),onMouseEnter:Gt,onMouseLeave:at}),Mt&&y.createElement("div",{className:`${re}-title`},Mt),y.createElement(Ae.Z,{paragraph:!1,loading:_t,className:`${re}-skeleton`},y.createElement("div",{style:_e,className:`${re}-content`},ge&&y.createElement("span",{className:`${re}-content-prefix`},ge),be?be(ne):ne,Ft&&y.createElement("span",{className:`${re}-content-suffix`},Ft)))))};const ft=[["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 Pe(Ce,et){let Te=Ce;const ue=/\[[^\]]*]/g,mt=(et.match(ue)||[]).map(be=>be.slice(1,-1)),_e=et.replace(ue,"[]"),lt=ft.reduce((be,ge)=>{let[Ft,_t]=ge;if(be.includes(Ft)){const Tt=Math.floor(Te/_t);return Te-=Tt*_t,be.replace(new RegExp(`${Ft}+`,"g"),xe=>{const rt=xe.length;return Tt.toString().padStart(rt,"0")})}return be},_e);let Mt=0;return lt.replace(ue,()=>{const be=mt[Mt];return Mt+=1,be})}function Fe(Ce,et){const{format:Te=""}=et,ue=new Date(Ce).getTime(),mt=Date.now(),_e=Math.max(ue-mt,0);return Pe(_e,Te)}var Ze=function(Ce,et){var Te={};for(var ue in Ce)Object.prototype.hasOwnProperty.call(Ce,ue)&&et.indexOf(ue)<0&&(Te[ue]=Ce[ue]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var mt=0,ue=Object.getOwnPropertySymbols(Ce);mt<ue.length;mt++)et.indexOf(ue[mt])<0&&Object.prototype.propertyIsEnumerable.call(Ce,ue[mt])&&(Te[ue[mt]]=Ce[ue[mt]]);return Te};const $e=1e3/30;function gt(Ce){return new Date(Ce).getTime()}const ot=Ce=>{const{value:et,format:Te="HH:mm:ss",onChange:ue,onFinish:mt}=Ce,_e=Ze(Ce,["value","format","onChange","onFinish"]),lt=(0,he.Z)(),Mt=y.useRef(null),be=()=>{mt==null||mt(),Mt.current&&(clearInterval(Mt.current),Mt.current=null)},ge=()=>{const Tt=gt(et);Tt>=Date.now()&&(Mt.current=setInterval(()=>{lt(),ue==null||ue(Tt-Date.now()),Tt<Date.now()&&be()},$e))};y.useEffect(()=>(ge(),()=>{Mt.current&&(clearInterval(Mt.current),Mt.current=null)}),[et]);const Ft=(Tt,xe)=>Fe(Tt,Object.assign(Object.assign({},xe),{format:Te})),_t=Tt=>(0,ce.Tm)(Tt,{title:void 0});return y.createElement(Xe,Object.assign({},_e,{value:et,valueRender:_t,formatter:Ft}))};var Qe=y.memo(ot);Xe.Countdown=Qe;var ct=Xe},58755:function(bn,zt,z){"use strict";z.d(zt,{Z:function(){return mt}});var y=z(59301),he=z(58617),ce=z(92310),je=z.n(ce),ve=z(54476),me=z(20068),ye=z(42978),Ae=z(75931),pe=z(18929),le=z(10228),Re=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Ie=y.forwardRef(function(_e,lt){var Mt,be=_e.prefixCls,ge=be===void 0?"rc-switch":be,Ft=_e.className,_t=_e.checked,Tt=_e.defaultChecked,xe=_e.disabled,rt=_e.loadingIcon,qe=_e.checkedChildren,Gt=_e.unCheckedChildren,at=_e.onClick,st=_e.onChange,nt=_e.onKeyDown,rn=(0,Ae.Z)(_e,Re),kt=(0,pe.Z)(!1,{value:_t,defaultValue:Tt}),ae=(0,ye.Z)(kt,2),re=ae[0],te=ae[1];function oe(Oe,bt){var Ge=re;return xe||(Ge=Oe,te(Ge),st==null||st(Ge,bt)),Ge}function de(Oe){Oe.which===le.Z.LEFT?oe(!1,Oe):Oe.which===le.Z.RIGHT&&oe(!0,Oe),nt==null||nt(Oe)}function ne(Oe){var bt=oe(!re,Oe);at==null||at(bt,Oe)}var se=je()(ge,Ft,(Mt={},(0,me.Z)(Mt,"".concat(ge,"-checked"),re),(0,me.Z)(Mt,"".concat(ge,"-disabled"),xe),Mt));return y.createElement("button",(0,ve.Z)({},rn,{type:"button",role:"switch","aria-checked":re,disabled:xe,className:se,ref:lt,onKeyDown:de,onClick:ne}),rt,y.createElement("span",{className:"".concat(ge,"-inner")},y.createElement("span",{className:"".concat(ge,"-inner-checked")},qe),y.createElement("span",{className:"".concat(ge,"-inner-unchecked")},Gt)))});Ie.displayName="Switch";var tt=Ie,He=z(12919),Me=z(48755),Ee=z(2171),we=z(31756),Ne=z(36237),Xe=z(17835),ft=z(63356),Pe=z(16931),Fe=z(51636);const Ze=_e=>{const{componentCls:lt,trackHeightSM:Mt,trackPadding:be,trackMinWidthSM:ge,innerMinMarginSM:Ft,innerMaxMarginSM:_t,handleSizeSM:Tt,calc:xe}=_e,rt=`${lt}-inner`,qe=(0,Ne.unit)(xe(Tt).add(xe(be).mul(2)).equal()),Gt=(0,Ne.unit)(xe(_t).mul(2).equal());return{[lt]:{[`&${lt}-small`]:{minWidth:ge,height:Mt,lineHeight:(0,Ne.unit)(Mt),[`${lt}-inner`]:{paddingInlineStart:_t,paddingInlineEnd:Ft,[`${rt}-checked, ${rt}-unchecked`]:{minHeight:Mt},[`${rt}-checked`]:{marginInlineStart:`calc(-100% + ${qe} - ${Gt})`,marginInlineEnd:`calc(100% - ${qe} + ${Gt})`},[`${rt}-unchecked`]:{marginTop:xe(Mt).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${lt}-handle`]:{width:Tt,height:Tt},[`${lt}-loading-icon`]:{top:xe(xe(Tt).sub(_e.switchLoadingIconSize)).div(2).equal(),fontSize:_e.switchLoadingIconSize},[`&${lt}-checked`]:{[`${lt}-inner`]:{paddingInlineStart:Ft,paddingInlineEnd:_t,[`${rt}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${rt}-unchecked`]:{marginInlineStart:`calc(100% - ${qe} + ${Gt})`,marginInlineEnd:`calc(-100% + ${qe} - ${Gt})`}},[`${lt}-handle`]:{insetInlineStart:`calc(100% - ${(0,Ne.unit)(xe(Tt).add(be).equal())})`}},[`&:not(${lt}-disabled):active`]:{[`&:not(${lt}-checked) ${rt}`]:{[`${rt}-unchecked`]:{marginInlineStart:xe(_e.marginXXS).div(2).equal(),marginInlineEnd:xe(_e.marginXXS).mul(-1).div(2).equal()}},[`&${lt}-checked ${rt}`]:{[`${rt}-checked`]:{marginInlineStart:xe(_e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:xe(_e.marginXXS).div(2).equal()}}}}}}},$e=_e=>{const{componentCls:lt,handleSize:Mt,calc:be}=_e;return{[lt]:{[`${lt}-loading-icon${_e.iconCls}`]:{position:"relative",top:be(be(Mt).sub(_e.fontSize)).div(2).equal(),color:_e.switchLoadingIconColor,verticalAlign:"top"},[`&${lt}-checked ${lt}-loading-icon`]:{color:_e.switchColor}}}},gt=_e=>{const{componentCls:lt,trackPadding:Mt,handleBg:be,handleShadow:ge,handleSize:Ft,calc:_t}=_e,Tt=`${lt}-handle`;return{[lt]:{[Tt]:{position:"absolute",top:Mt,insetInlineStart:Mt,width:Ft,height:Ft,transition:`all ${_e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:be,borderRadius:_t(Ft).div(2).equal(),boxShadow:ge,transition:`all ${_e.switchDuration} ease-in-out`,content:'""'}},[`&${lt}-checked ${Tt}`]:{insetInlineStart:`calc(100% - ${(0,Ne.unit)(_t(Ft).add(Mt).equal())})`},[`&:not(${lt}-disabled):active`]:{[`${Tt}::before`]:{insetInlineEnd:_e.switchHandleActiveInset,insetInlineStart:0},[`&${lt}-checked ${Tt}::before`]:{insetInlineEnd:0,insetInlineStart:_e.switchHandleActiveInset}}}}},ot=_e=>{const{componentCls:lt,trackHeight:Mt,trackPadding:be,innerMinMargin:ge,innerMaxMargin:Ft,handleSize:_t,calc:Tt}=_e,xe=`${lt}-inner`,rt=(0,Ne.unit)(Tt(_t).add(Tt(be).mul(2)).equal()),qe=(0,Ne.unit)(Tt(Ft).mul(2).equal());return{[lt]:{[xe]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:Ft,paddingInlineEnd:ge,transition:`padding-inline-start ${_e.switchDuration} ease-in-out, padding-inline-end ${_e.switchDuration} ease-in-out`,[`${xe}-checked, ${xe}-unchecked`]:{display:"block",color:_e.colorTextLightSolid,fontSize:_e.fontSizeSM,transition:`margin-inline-start ${_e.switchDuration} ease-in-out, margin-inline-end ${_e.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:Mt},[`${xe}-checked`]:{marginInlineStart:`calc(-100% + ${rt} - ${qe})`,marginInlineEnd:`calc(100% - ${rt} + ${qe})`},[`${xe}-unchecked`]:{marginTop:Tt(Mt).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${lt}-checked ${xe}`]:{paddingInlineStart:ge,paddingInlineEnd:Ft,[`${xe}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${xe}-unchecked`]:{marginInlineStart:`calc(100% - ${rt} + ${qe})`,marginInlineEnd:`calc(-100% + ${rt} - ${qe})`}},[`&:not(${lt}-disabled):active`]:{[`&:not(${lt}-checked) ${xe}`]:{[`${xe}-unchecked`]:{marginInlineStart:Tt(be).mul(2).equal(),marginInlineEnd:Tt(be).mul(-1).mul(2).equal()}},[`&${lt}-checked ${xe}`]:{[`${xe}-checked`]:{marginInlineStart:Tt(be).mul(-1).mul(2).equal(),marginInlineEnd:Tt(be).mul(2).equal()}}}}}},Qe=_e=>{const{componentCls:lt,trackHeight:Mt,trackMinWidth:be}=_e;return{[lt]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,ft.Wf)(_e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:be,height:Mt,lineHeight:(0,Ne.unit)(Mt),verticalAlign:"middle",background:_e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${_e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${lt}-disabled)`]:{background:_e.colorTextTertiary}}),(0,ft.Qy)(_e)),{[`&${lt}-checked`]:{background:_e.switchColor,[`&:hover:not(${lt}-disabled)`]:{background:_e.colorPrimaryHover}},[`&${lt}-loading, &${lt}-disabled`]:{cursor:"not-allowed",opacity:_e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${lt}-rtl`]:{direction:"rtl"}})}},ct=_e=>{const{fontSize:lt,lineHeight:Mt,controlHeight:be,colorWhite:ge}=_e,Ft=lt*Mt,_t=be/2,Tt=2,xe=Ft-Tt*2,rt=_t-Tt*2;return{trackHeight:Ft,trackHeightSM:_t,trackMinWidth:xe*2+Tt*4,trackMinWidthSM:rt*2+Tt*2,trackPadding:Tt,handleBg:ge,handleSize:xe,handleSizeSM:rt,handleShadow:`0 2px 4px 0 ${new Xe.FastColor("#00230b").setA(.2).toRgbString()}`,innerMinMargin:xe/2,innerMaxMargin:xe+Tt+Tt*2,innerMinMarginSM:rt/2,innerMaxMarginSM:rt+Tt+Tt*2}};var Ce=(0,Pe.I$)("Switch",_e=>{const lt=(0,Fe.mergeToken)(_e,{switchDuration:_e.motionDurationMid,switchColor:_e.colorPrimary,switchDisabledOpacity:_e.opacityLoading,switchLoadingIconSize:_e.calc(_e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${_e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[Qe(lt),ot(lt),gt(lt),$e(lt),Ze(lt)]},ct),et=function(_e,lt){var Mt={};for(var be in _e)Object.prototype.hasOwnProperty.call(_e,be)&&lt.indexOf(be)<0&&(Mt[be]=_e[be]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ge=0,be=Object.getOwnPropertySymbols(_e);ge<be.length;ge++)lt.indexOf(be[ge])<0&&Object.prototype.propertyIsEnumerable.call(_e,be[ge])&&(Mt[be[ge]]=_e[be[ge]]);return Mt};const ue=y.forwardRef((_e,lt)=>{const{prefixCls:Mt,size:be,disabled:ge,loading:Ft,className:_t,rootClassName:Tt,style:xe,checked:rt,value:qe,defaultChecked:Gt,defaultValue:at,onChange:st}=_e,nt=et(_e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[rn,kt]=(0,pe.Z)(!1,{value:rt!=null?rt:qe,defaultValue:Gt!=null?Gt:at}),{getPrefixCls:ae,direction:re,switch:te}=y.useContext(Me.E_),oe=y.useContext(Ee.Z),de=(ge!=null?ge:oe)||Ft,ne=ae("switch",Mt),se=y.createElement("div",{className:`${ne}-handle`},Ft&&y.createElement(he.Z,{className:`${ne}-loading-icon`})),[Oe,bt,Ge]=Ce(ne),We=(0,we.Z)(be),it=je()(te==null?void 0:te.className,{[`${ne}-small`]:We==="small",[`${ne}-loading`]:Ft,[`${ne}-rtl`]:re==="rtl"},_t,Tt,bt,Ge),ht=Object.assign(Object.assign({},te==null?void 0:te.style),xe),Pt=function(){kt(arguments.length<=0?void 0:arguments[0]),st==null||st.apply(void 0,arguments)};return Oe(y.createElement(He.Z,{component:"Switch"},y.createElement(tt,Object.assign({},nt,{checked:rn,onChange:Pt,prefixCls:ne,className:it,style:ht,disabled:de,ref:lt,loadingIcon:se}))))});ue.__ANT_SWITCH=!0;var mt=ue},70858:function(bn,zt,z){"use strict";z.d(zt,{default:function(){return La}});var y=z(59301),he={},ce="rc-table-internal-hook",je=z(42978),ve=z(6089),me=z(34280),ye=z(13697),Ae=z(4676);function pe(De){var Be=y.createContext(void 0),ut=function(Kt){var qt=Kt.value,vn=Kt.children,sn=y.useRef(qt);sn.current=qt;var En=y.useState(function(){return{getValue:function(){return sn.current},listeners:new Set}}),yn=(0,je.Z)(En,1),Wn=yn[0];return(0,me.Z)(function(){(0,Ae.unstable_batchedUpdates)(function(){Wn.listeners.forEach(function(Rn){Rn(qt)})})},[qt]),y.createElement(Be.Provider,{value:Wn},vn)};return{Context:Be,Provider:ut,defaultValue:De}}function le(De,Be){var ut=(0,ve.Z)(typeof Be=="function"?Be:function(Rn){if(Be===void 0)return Rn;if(!Array.isArray(Be))return Rn[Be];var Tn={};return Be.forEach(function(Fn){Tn[Fn]=Rn[Fn]}),Tn}),wt=y.useContext(De==null?void 0:De.Context),Kt=wt||{},qt=Kt.listeners,vn=Kt.getValue,sn=y.useRef();sn.current=ut(wt?vn():De==null?void 0:De.defaultValue);var En=y.useState({}),yn=(0,je.Z)(En,2),Wn=yn[1];return(0,me.Z)(function(){if(!wt)return;function Rn(Tn){var Fn=ut(Tn);(0,ye.Z)(sn.current,Fn,!0)||Wn({})}return qt.add(Rn),function(){qt.delete(Rn)}},[wt]),sn.current}var Re=z(54476),Ie=z(8654);function tt(){var De=y.createContext(null);function Be(){return y.useContext(De)}function ut(Kt,qt){var vn=(0,Ie.Yr)(Kt),sn=function(yn,Wn){var Rn=vn?{ref:Wn}:{},Tn=y.useRef(0),Fn=y.useRef(yn),Dn=Be();return Dn!==null?y.createElement(Kt,(0,Re.Z)({},yn,Rn)):((!qt||qt(Fn.current,yn))&&(Tn.current+=1),Fn.current=yn,y.createElement(De.Provider,{value:Tn.current},y.createElement(Kt,(0,Re.Z)({},yn,Rn))))};return vn?y.forwardRef(sn):sn}function wt(Kt,qt){var vn=(0,Ie.Yr)(Kt),sn=function(yn,Wn){var Rn=vn?{ref:Wn}:{};return Be(),y.createElement(Kt,(0,Re.Z)({},yn,Rn))};return vn?y.memo(y.forwardRef(sn),qt):y.memo(sn,qt)}return{makeImmutable:ut,responseImmutable:wt,useImmutableMark:Be}}var He=tt(),Me=He.makeImmutable,Ee=He.responseImmutable,we=He.useImmutableMark,Ne=tt(),Xe=Ne.makeImmutable,ft=Ne.responseImmutable,Pe=Ne.useImmutableMark,Fe=pe(),Ze=Fe;function $e(De,Be){var ut=React.useRef(0);ut.current+=1;var wt=React.useRef(De),Kt=[];Object.keys(De||{}).map(function(vn){var sn;(De==null?void 0:De[vn])!==((sn=wt.current)===null||sn===void 0?void 0:sn[vn])&&Kt.push(vn)}),wt.current=De;var qt=React.useRef([]);return Kt.length&&(qt.current=Kt),React.useDebugValue(ut.current),React.useDebugValue(qt.current.join(", ")),Be&&console.log("".concat(Be,":"),ut.current,qt.current),ut.current}var gt=null,ot=null,Qe=z(76190),ct=z(33885),Ce=z(20068),et=z(92310),Te=z.n(et),ue=z(80547),mt=z(97938),_e=z(48736),lt=y.createContext({renderWithProps:!1}),Mt=lt,be="RC_TABLE_KEY";function ge(De){return De==null?[]:Array.isArray(De)?De:[De]}function Ft(De){var Be=[],ut={};return De.forEach(function(wt){for(var Kt=wt||{},qt=Kt.key,vn=Kt.dataIndex,sn=qt||ge(vn).join("-")||be;ut[sn];)sn="".concat(sn,"_next");ut[sn]=!0,Be.push(sn)}),Be}function _t(De){return De!=null}function Tt(De){return typeof De=="number"&&!Number.isNaN(De)}function xe(De){return De&&(0,Qe.Z)(De)==="object"&&!Array.isArray(De)&&!y.isValidElement(De)}function rt(De,Be,ut,wt,Kt,qt){var vn=y.useContext(Mt),sn=Pe(),En=(0,ue.Z)(function(){if(_t(wt))return[wt];var yn=Be==null||Be===""?[]:Array.isArray(Be)?Be:[Be],Wn=(0,mt.Z)(De,yn),Rn=Wn,Tn=void 0;if(Kt){var Fn=Kt(Wn,De,ut);xe(Fn)?(Rn=Fn.children,Tn=Fn.props,vn.renderWithProps=!0):Rn=Fn}return[Rn,Tn]},[sn,De,wt,Be,Kt,ut],function(yn,Wn){if(qt){var Rn=(0,je.Z)(yn,2),Tn=Rn[1],Fn=(0,je.Z)(Wn,2),Dn=Fn[1];return qt(Dn,Tn)}return vn.renderWithProps?!0:!(0,ye.Z)(yn,Wn,!0)});return En}function qe(De,Be,ut,wt){var Kt=De+Be-1;return De<=wt&&Kt>=ut}function Gt(De,Be){return le(Ze,function(ut){var wt=qe(De,Be||1,ut.hoverStartRow,ut.hoverEndRow);return[wt,ut.onHover]})}var at=z(70425),st=function(Be){var ut=Be.ellipsis,wt=Be.rowType,Kt=Be.children,qt,vn=ut===!0?{showTitle:!0}:ut;return vn&&(vn.showTitle||wt==="header")&&(typeof Kt=="string"||typeof Kt=="number"?qt=Kt.toString():y.isValidElement(Kt)&&typeof Kt.props.children=="string"&&(qt=Kt.props.children)),qt};function nt(De){var Be,ut,wt,Kt,qt,vn,sn,En,yn=De.component,Wn=De.children,Rn=De.ellipsis,Tn=De.scope,Fn=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,Ao=De.fixLeft,Eo=De.fixRight,Ko=De.firstFixLeft,oo=De.lastFixLeft,lo=De.firstFixRight,_r=De.lastFixRight,Or=De.appendNode,qr=De.additionalProps,uo=qr===void 0?{}:qr,Oo=De.isSticky,Hr="".concat(Fn,"-cell"),di=le(Ze,["supportSticky","allColumnsFixedLeft","rowHoverable"]),hi=di.supportSticky,ha=di.allColumnsFixedLeft,na=di.rowHoverable,Ki=rt(er,Dr,xr,Wn,Er,Tr),ra=(0,je.Z)(Ki,2),ya=ra[0],mi=ra[1],vi={},ba=typeof Ao=="number"&&hi,Ba=typeof Eo=="number"&&hi;ba&&(vi.position="sticky",vi.left=Ao),Ba&&(vi.position="sticky",vi.right=Eo);var So=(Be=(ut=(wt=mi==null?void 0:mi.colSpan)!==null&&wt!==void 0?wt:uo.colSpan)!==null&&ut!==void 0?ut:Qr)!==null&&Be!==void 0?Be:1,ei=(Kt=(qt=(vn=mi==null?void 0:mi.rowSpan)!==null&&vn!==void 0?vn:uo.rowSpan)!==null&&qt!==void 0?qt:si)!==null&&Kt!==void 0?Kt:1,vo=Gt(Wr,ei),Jr=(0,je.Z)(vo,2),xi=Jr[0],Oi=Jr[1],qi=(0,at.zX)(function($i){var Zi;er&&Oi(Wr,Wr+ei-1),uo==null||(Zi=uo.onMouseEnter)===null||Zi===void 0||Zi.call(uo,$i)}),Hi=(0,at.zX)(function($i){var Zi;er&&Oi(-1,-1),uo==null||(Zi=uo.onMouseLeave)===null||Zi===void 0||Zi.call(uo,$i)});if(So===0||ei===0)return null;var Ca=(sn=uo.title)!==null&&sn!==void 0?sn:st({rowType:ro,ellipsis:Rn,children:ya}),Pa=Te()(Hr,Dn,(En={},(0,Ce.Z)((0,Ce.Z)((0,Ce.Z)((0,Ce.Z)((0,Ce.Z)((0,Ce.Z)((0,Ce.Z)((0,Ce.Z)((0,Ce.Z)((0,Ce.Z)(En,"".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"),Rn),"".concat(Hr,"-with-append"),Or),"".concat(Hr,"-fix-sticky"),(ba||Ba)&&Oo&&hi),(0,Ce.Z)(En,"".concat(Hr,"-row-hover"),!mi&&xi)),uo.className,mi==null?void 0:mi.className),Po={};yr&&(Po.textAlign=yr);var jo=(0,ct.Z)((0,ct.Z)((0,ct.Z)((0,ct.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),Rn&&(oo||lo)&&(Ni=y.createElement("span",{className:"".concat(Hr,"-content")},Ni)),y.createElement(yn,(0,Re.Z)({},mi,uo,{className:Pa,style:jo,title:Ca,scope:Tn,onMouseEnter:na?qi:void 0,onMouseLeave:na?Hi:void 0,colSpan:So!==1?So:null,rowSpan:ei!==1?ei:null}),Or,Ni)}var rn=y.memo(nt);function kt(De,Be,ut,wt,Kt){var qt=ut[De]||{},vn=ut[Be]||{},sn,En;qt.fixed==="left"?sn=wt.left[Kt==="rtl"?Be:De]:vn.fixed==="right"&&(En=wt.right[Kt==="rtl"?De:Be]);var yn=!1,Wn=!1,Rn=!1,Tn=!1,Fn=ut[Be+1],Dn=ut[De-1],yr=Fn&&!Fn.fixed||Dn&&!Dn.fixed||ut.every(function(Tr){return Tr.fixed==="left"});if(Kt==="rtl"){if(sn!==void 0){var er=Dn&&Dn.fixed==="left";Tn=!er&&yr}else if(En!==void 0){var Er=Fn&&Fn.fixed==="right";Rn=!Er&&yr}}else if(sn!==void 0){var Dr=Fn&&Fn.fixed==="left";yn=!Dr&&yr}else if(En!==void 0){var xr=Dn&&Dn.fixed==="right";Wn=!xr&&yr}return{fixLeft:sn,fixRight:En,lastFixLeft:yn,firstFixRight:Wn,lastFixRight:Rn,firstFixLeft:Tn,isSticky:wt.isSticky}}var ae=y.createContext({}),re=ae;function te(De){var Be=De.className,ut=De.index,wt=De.children,Kt=De.colSpan,qt=Kt===void 0?1:Kt,vn=De.rowSpan,sn=De.align,En=le(Ze,["prefixCls","direction"]),yn=En.prefixCls,Wn=En.direction,Rn=y.useContext(re),Tn=Rn.scrollColumnIndex,Fn=Rn.stickyOffsets,Dn=Rn.flattenColumns,yr=ut+qt-1,er=yr+1===Tn?qt+1:qt,Er=kt(ut,ut+er-1,Dn,Fn,Wn);return y.createElement(rn,(0,Re.Z)({className:Be,index:ut,component:"td",prefixCls:yn,record:null,dataIndex:null,align:sn,colSpan:er,rowSpan:vn,render:function(){return wt}},Er))}var oe=z(75931),de=["children"];function ne(De){var Be=De.children,ut=(0,oe.Z)(De,de);return y.createElement("tr",ut,Be)}function se(De){var Be=De.children;return Be}se.Row=ne,se.Cell=te;var Oe=se;function bt(De){var Be=De.children,ut=De.stickyOffsets,wt=De.flattenColumns,Kt=le(Ze,"prefixCls"),qt=wt.length-1,vn=wt[qt],sn=y.useMemo(function(){return{stickyOffsets:ut,flattenColumns:wt,scrollColumnIndex:vn!=null&&vn.scrollbar?qt:null}},[vn,wt,qt,ut]);return y.createElement(re.Provider,{value:sn},y.createElement("tfoot",{className:"".concat(Kt,"-summary")},Be))}var Ge=ft(bt),We=Oe,it=z(29301),ht=z(3465),Pt=z(75152),Le=z(26112);function Ve(De,Be,ut,wt,Kt,qt,vn){De.push({record:Be,indent:ut,index:vn});var sn=qt(Be),En=Kt==null?void 0:Kt.has(sn);if(Be&&Array.isArray(Be[wt])&&En)for(var yn=0;yn<Be[wt].length;yn+=1)Ve(De,Be[wt][yn],ut+1,wt,Kt,qt,yn)}function Ot(De,Be,ut,wt){var Kt=y.useMemo(function(){if(ut!=null&&ut.size){for(var qt=[],vn=0;vn<(De==null?void 0:De.length);vn+=1){var sn=De[vn];Ve(qt,sn,0,Be,ut,wt,vn)}return qt}return De==null?void 0:De.map(function(En,yn){return{record:En,indent:0,index:yn}})},[De,Be,ut,wt]);return Kt}function Yt(De,Be,ut,wt){var Kt=le(Ze,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),qt=Kt.flattenColumns,vn=Kt.expandableType,sn=Kt.expandedKeys,En=Kt.childrenColumnName,yn=Kt.onTriggerExpand,Wn=Kt.rowExpandable,Rn=Kt.onRow,Tn=Kt.expandRowByClick,Fn=Kt.rowClassName,Dn=vn==="nest",yr=vn==="row"&&(!Wn||Wn(De)),er=yr||Dn,Er=sn&&sn.has(Be),Dr=En&&De&&De[En],xr=(0,at.zX)(yn),Tr=Rn==null?void 0:Rn(De,ut),Wr=Tr==null?void 0:Tr.onClick,ro=function(Eo){Tn&&er&&yn(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 Fn=="string"?Qr=Fn:typeof Fn=="function"&&(Qr=Fn(De,ut,wt));var si=Ft(qt);return(0,ct.Z)((0,ct.Z)({},Kt),{},{columnsKey:si,nestExpandable:Dn,expanded:Er,hasNestChildren:Dr,record:De,onTriggerExpand:xr,rowSupportExpand:yr,expandable:er,rowProps:(0,ct.Z)((0,ct.Z)({},Tr),{},{className:Te()(Qr,Tr==null?void 0:Tr.className),onClick:ro})})}function un(De){var Be=De.prefixCls,ut=De.children,wt=De.component,Kt=De.cellComponent,qt=De.className,vn=De.expanded,sn=De.colSpan,En=De.isEmpty,yn=le(Ze,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),Wn=yn.scrollbarSize,Rn=yn.fixHeader,Tn=yn.fixColumn,Fn=yn.componentWidth,Dn=yn.horizonScroll,yr=ut;return(En?Dn&&Fn:Tn)&&(yr=y.createElement("div",{style:{width:Fn-(Rn&&!En?Wn:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Be,"-expanded-row-fixed")},yr)),y.createElement(wt,{className:qt,style:{display:vn?null:"none"}},y.createElement(rn,{component:Kt,prefixCls:Be,colSpan:sn},yr))}var tn=un;function Lt(De){var Be=De.prefixCls,ut=De.record,wt=De.onExpand,Kt=De.expanded,qt=De.expandable,vn="".concat(Be,"-row-expand-icon");if(!qt)return y.createElement("span",{className:Te()(vn,"".concat(Be,"-row-spaced"))});var sn=function(yn){wt(ut,yn),yn.stopPropagation()};return y.createElement("span",{className:Te()(vn,(0,Ce.Z)((0,Ce.Z)({},"".concat(Be,"-row-expanded"),Kt),"".concat(Be,"-row-collapsed"),!Kt)),onClick:sn})}function ln(De,Be,ut){var wt=[];function Kt(qt){(qt||[]).forEach(function(vn,sn){wt.push(Be(vn,sn)),Kt(vn[ut])})}return Kt(De),wt}function $t(De,Be,ut,wt){return typeof De=="string"?De:typeof De=="function"?De(Be,ut,wt):""}function ze(De,Be,ut,wt,Kt){var qt=De.record,vn=De.prefixCls,sn=De.columnsKey,En=De.fixedInfoList,yn=De.expandIconColumnIndex,Wn=De.nestExpandable,Rn=De.indentSize,Tn=De.expandIcon,Fn=De.expanded,Dn=De.hasNestChildren,yr=De.onTriggerExpand,er=sn[ut],Er=En[ut],Dr;ut===(yn||0)&&Wn&&(Dr=y.createElement(y.Fragment,null,y.createElement("span",{style:{paddingLeft:"".concat(Rn*wt,"px")},className:"".concat(vn,"-row-indent indent-level-").concat(wt)}),Tn({prefixCls:vn,expanded:Fn,expandable:Dn,record:qt,onExpand:yr})));var xr;return Be.onCell&&(xr=Be.onCell(qt,Kt)),{key:er,fixedInfo:Er,appendCellNode:Dr,additionalCellProps:xr||{}}}function yt(De){var Be=De.className,ut=De.style,wt=De.record,Kt=De.index,qt=De.renderIndex,vn=De.rowKey,sn=De.indent,En=sn===void 0?0:sn,yn=De.rowComponent,Wn=De.cellComponent,Rn=De.scopeCellComponent,Tn=Yt(wt,vn,Kt,En),Fn=Tn.prefixCls,Dn=Tn.flattenColumns,yr=Tn.expandedRowClassName,er=Tn.expandedRowRender,Er=Tn.rowProps,Dr=Tn.expanded,xr=Tn.rowSupportExpand,Tr=y.useRef(!1);Tr.current||(Tr.current=Dr);var Wr=$t(yr,wt,Kt,En),ro=y.createElement(yn,(0,Re.Z)({},Er,{"data-row-key":vn,className:Te()(Be,"".concat(Fn,"-row"),"".concat(Fn,"-row-level-").concat(En),Er==null?void 0:Er.className,(0,Ce.Z)({},Wr,En>=1)),style:(0,ct.Z)((0,ct.Z)({},ut),Er==null?void 0:Er.style)}),Dn.map(function(Ao,Eo){var Ko=Ao.render,oo=Ao.dataIndex,lo=Ao.className,_r=ze(Tn,Ao,Eo,En,Kt),Or=_r.key,qr=_r.fixedInfo,uo=_r.appendCellNode,Oo=_r.additionalCellProps;return y.createElement(rn,(0,Re.Z)({className:lo,ellipsis:Ao.ellipsis,align:Ao.align,scope:Ao.rowScope,component:Ao.rowScope?Rn:Wn,prefixCls:Fn,key:Or,record:wt,index:Kt,renderIndex:qt,dataIndex:oo,render:Ko,shouldCellUpdate:Ao.shouldCellUpdate},qr,{appendNode:uo,additionalProps:Oo}))})),Qr;if(xr&&(Tr.current||Dr)){var si=er(wt,Kt,En+1,Dr);Qr=y.createElement(tn,{expanded:Dr,className:Te()("".concat(Fn,"-expanded-row"),"".concat(Fn,"-expanded-row-level-").concat(En+1),Wr),prefixCls:Fn,component:yn,cellComponent:Wn,colSpan:Dn.length,isEmpty:!1},si)}return y.createElement(y.Fragment,null,ro,Qr)}var Ht=ft(yt);function en(De){var Be=De.columnKey,ut=De.onColumnResize,wt=y.useRef();return(0,me.Z)(function(){wt.current&&ut(Be,wt.current.offsetWidth)},[]),y.createElement(it.Z,{data:Be},y.createElement("td",{ref:wt,style:{padding:0,border:0,height:0}},y.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}var Ke=z(29194);function xt(De){var Be=De.prefixCls,ut=De.columnsKey,wt=De.onColumnResize,Kt=y.useRef(null);return y.createElement("tr",{"aria-hidden":"true",className:"".concat(Be,"-measure-row"),style:{height:0,fontSize:0},ref:Kt},y.createElement(it.Z.Collection,{onBatchResize:function(vn){(0,Ke.Z)(Kt.current)&&vn.forEach(function(sn){var En=sn.data,yn=sn.size;wt(En,yn.offsetWidth)})}},ut.map(function(qt){return y.createElement(en,{key:qt,columnKey:qt,onColumnResize:wt})})))}function Zt(De){var Be=De.data,ut=De.measureColumnWidth,wt=le(Ze,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),Kt=wt.prefixCls,qt=wt.getComponent,vn=wt.onColumnResize,sn=wt.flattenColumns,En=wt.getRowKey,yn=wt.expandedKeys,Wn=wt.childrenColumnName,Rn=wt.emptyNode,Tn=Ot(Be,Wn,yn,En),Fn=y.useRef({renderWithProps:!1}),Dn=qt(["body","wrapper"],"tbody"),yr=qt(["body","row"],"tr"),er=qt(["body","cell"],"td"),Er=qt(["body","cell"],"th"),Dr;Be.length?Dr=Tn.map(function(Tr,Wr){var ro=Tr.record,Qr=Tr.indent,si=Tr.index,Ao=En(ro,Wr);return y.createElement(Ht,{key:Ao,rowKey:Ao,record:ro,index:Wr,renderIndex:si,rowComponent:yr,cellComponent:er,scopeCellComponent:Er,indent:Qr})}):Dr=y.createElement(tn,{expanded:!0,className:"".concat(Kt,"-placeholder"),prefixCls:Kt,component:yr,cellComponent:er,colSpan:sn.length,isEmpty:!0},Rn);var xr=Ft(sn);return y.createElement(Mt.Provider,{value:Fn.current},y.createElement(Dn,{className:"".concat(Kt,"-tbody")},ut&&y.createElement(xt,{prefixCls:Kt,columnsKey:xr,onColumnResize:vn}),Dr))}var dt=ft(Zt),At=["expandable"],Ut="RC_TABLE_INTERNAL_COL_DEFINE";function pn(De){var Be=De.expandable,ut=(0,oe.Z)(De,At),wt;return"expandable"in De?wt=(0,ct.Z)((0,ct.Z)({},ut),Be):wt=ut,wt.showExpandColumn===!1&&(wt.expandIconColumnIndex=-1),wt}var On=["columnType"];function mn(De){for(var Be=De.colWidths,ut=De.columns,wt=De.columCount,Kt=le(Ze,["tableLayout"]),qt=Kt.tableLayout,vn=[],sn=wt||ut.length,En=!1,yn=sn-1;yn>=0;yn-=1){var Wn=Be[yn],Rn=ut&&ut[yn],Tn=void 0,Fn=void 0;if(Rn&&(Tn=Rn[Ut],qt==="auto"&&(Fn=Rn.minWidth)),Wn||Fn||Tn||En){var Dn=Tn||{},yr=Dn.columnType,er=(0,oe.Z)(Dn,On);vn.unshift(y.createElement("col",(0,Re.Z)({key:yn,style:{width:Wn,minWidth:Fn}},er))),En=!0}}return y.createElement("colgroup",null,vn)}var Bn=mn,Dt=z(94480),hn=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Wt(De,Be){return(0,y.useMemo)(function(){for(var ut=[],wt=0;wt<Be;wt+=1){var Kt=De[wt];if(Kt!==void 0)ut[wt]=Kt;else return null}return ut},[De.join("_"),Be])}var an=y.forwardRef(function(De,Be){var ut=De.className,wt=De.noData,Kt=De.columns,qt=De.flattenColumns,vn=De.colWidths,sn=De.columCount,En=De.stickyOffsets,yn=De.direction,Wn=De.fixHeader,Rn=De.stickyTopOffset,Tn=De.stickyBottomOffset,Fn=De.stickyClassName,Dn=De.onScroll,yr=De.maxContentScroll,er=De.children,Er=(0,oe.Z)(De,hn),Dr=le(Ze,["prefixCls","scrollbarSize","isSticky","getComponent"]),xr=Dr.prefixCls,Tr=Dr.scrollbarSize,Wr=Dr.isSticky,ro=Dr.getComponent,Qr=ro(["header","table"],"table"),si=Wr&&!Wn?0:Tr,Ao=y.useRef(null),Eo=y.useCallback(function(Oo){(0,Ie.mH)(Be,Oo),(0,Ie.mH)(Ao,Oo)},[]);y.useEffect(function(){var Oo;function Hr(di){var hi=di,ha=hi.currentTarget,na=hi.deltaX;na&&(Dn({currentTarget:ha,scrollLeft:ha.scrollLeft+na}),di.preventDefault())}return(Oo=Ao.current)===null||Oo===void 0||Oo.addEventListener("wheel",Hr,{passive:!1}),function(){var di;(di=Ao.current)===null||di===void 0||di.removeEventListener("wheel",Hr)}},[]);var Ko=y.useMemo(function(){return qt.every(function(Oo){return Oo.width})},[qt]),oo=qt[qt.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,Dt.Z)(Kt),[lo]):Kt},[si,Kt]),Or=(0,y.useMemo)(function(){return si?[].concat((0,Dt.Z)(qt),[lo]):qt},[si,qt]),qr=(0,y.useMemo)(function(){var Oo=En.right,Hr=En.left;return(0,ct.Z)((0,ct.Z)({},En),{},{left:yn==="rtl"?[].concat((0,Dt.Z)(Hr.map(function(di){return di+si})),[0]):Hr,right:yn==="rtl"?Oo:[].concat((0,Dt.Z)(Oo.map(function(di){return di+si})),[0]),isSticky:Wr})},[si,En,Wr]),uo=Wt(vn,sn);return y.createElement("div",{style:(0,ct.Z)({overflow:"hidden"},Wr?{top:Rn,bottom:Tn}:{}),ref:Eo,className:Te()(ut,(0,Ce.Z)({},Fn,!!Fn))},y.createElement(Qr,{style:{tableLayout:"fixed",visibility:wt||uo?null:"hidden"}},(!wt||!yr||Ko)&&y.createElement(Bn,{colWidths:uo?[].concat((0,Dt.Z)(uo),[si]):[],columCount:sn+1,columns:Or}),er((0,ct.Z)((0,ct.Z)({},Er),{},{stickyOffsets:qr,columns:_r,flattenColumns:Or}))))}),Vt=y.memo(an),cn=function(Be){var ut=Be.cells,wt=Be.stickyOffsets,Kt=Be.flattenColumns,qt=Be.rowComponent,vn=Be.cellComponent,sn=Be.onHeaderRow,En=Be.index,yn=le(Ze,["prefixCls","direction"]),Wn=yn.prefixCls,Rn=yn.direction,Tn;sn&&(Tn=sn(ut.map(function(Dn){return Dn.column}),En));var Fn=Ft(ut.map(function(Dn){return Dn.column}));return y.createElement(qt,Tn,ut.map(function(Dn,yr){var er=Dn.column,Er=kt(Dn.colStart,Dn.colEnd,Kt,wt,Rn),Dr;return er&&er.onHeaderCell&&(Dr=Dn.column.onHeaderCell(er)),y.createElement(rn,(0,Re.Z)({},Dn,{scope:er.title?Dn.colSpan>1?"colgroup":"col":null,ellipsis:er.ellipsis,align:er.align,component:vn,prefixCls:Wn,key:Fn[yr]},Er,{additionalProps:Dr,rowType:"header"}))}))},on=cn;function Zn(De){var Be=[];function ut(vn,sn){var En=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Be[En]=Be[En]||[];var yn=sn,Wn=vn.filter(Boolean).map(function(Rn){var Tn={key:Rn.key,className:Rn.className||"",children:Rn.title,column:Rn,colStart:yn},Fn=1,Dn=Rn.children;return Dn&&Dn.length>0&&(Fn=ut(Dn,yn,En+1).reduce(function(yr,er){return yr+er},0),Tn.hasSubColumns=!0),"colSpan"in Rn&&(Fn=Rn.colSpan),"rowSpan"in Rn&&(Tn.rowSpan=Rn.rowSpan),Tn.colSpan=Fn,Tn.colEnd=Tn.colStart+Fn-1,Be[En].push(Tn),yn+=Fn,Fn});return Wn}ut(De,0);for(var wt=Be.length,Kt=function(sn){Be[sn].forEach(function(En){!("rowSpan"in En)&&!En.hasSubColumns&&(En.rowSpan=wt-sn)})},qt=0;qt<wt;qt+=1)Kt(qt);return Be}var _n=function(Be){var ut=Be.stickyOffsets,wt=Be.columns,Kt=Be.flattenColumns,qt=Be.onHeaderRow,vn=le(Ze,["prefixCls","getComponent"]),sn=vn.prefixCls,En=vn.getComponent,yn=y.useMemo(function(){return Zn(wt)},[wt]),Wn=En(["header","wrapper"],"thead"),Rn=En(["header","row"],"tr"),Tn=En(["header","cell"],"th");return y.createElement(Wn,{className:"".concat(sn,"-thead")},yn.map(function(Fn,Dn){var yr=y.createElement(on,{key:Dn,flattenColumns:Kt,cells:Fn,stickyOffsets:ut,rowComponent:Rn,cellComponent:Tn,onHeaderRow:qt,index:Dn});return yr}))},Nn=ft(_n),jn=z(11592);function Gn(De){var Be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof Be=="number"?Be:Be.endsWith("%")?De*parseFloat(Be)/100:null}function $n(De,Be,ut){return y.useMemo(function(){if(Be&&Be>0){var wt=0,Kt=0;De.forEach(function(Tn){var Fn=Gn(Be,Tn.width);Fn?wt+=Fn:Kt+=1});var qt=Math.max(Be,ut),vn=Math.max(qt-wt,Kt),sn=Kt,En=vn/Kt,yn=0,Wn=De.map(function(Tn){var Fn=(0,ct.Z)({},Tn),Dn=Gn(Be,Fn.width);if(Dn)Fn.width=Dn;else{var yr=Math.floor(En);Fn.width=sn===1?vn:yr,vn-=yr,sn-=1}return yn+=Fn.width,Fn});if(yn<qt){var Rn=qt/yn;vn=qt,Wn.forEach(function(Tn,Fn){var Dn=Math.floor(Tn.width*Rn);Tn.width=Fn===Wn.length-1?vn:Dn,vn-=Dn})}return[Wn,Math.max(yn,qt)]}return[De,Be]},[De,Be,ut])}var lr=["children"],nr=["fixed"];function dn(De){return(0,jn.Z)(De).filter(function(Be){return y.isValidElement(Be)}).map(function(Be){var ut=Be.key,wt=Be.props,Kt=wt.children,qt=(0,oe.Z)(wt,lr),vn=(0,ct.Z)({key:ut},qt);return Kt&&(vn.children=dn(Kt)),vn})}function Cn(De){return De.filter(function(Be){return Be&&(0,Qe.Z)(Be)==="object"&&!Be.hidden}).map(function(Be){var ut=Be.children;return ut&&ut.length>0?(0,ct.Z)((0,ct.Z)({},Be),{},{children:Cn(ut)}):Be})}function Hn(De){var Be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return De.filter(function(ut){return ut&&(0,Qe.Z)(ut)==="object"}).reduce(function(ut,wt,Kt){var qt=wt.fixed,vn=qt===!0?"left":qt,sn="".concat(Be,"-").concat(Kt),En=wt.children;return En&&En.length>0?[].concat((0,Dt.Z)(ut),(0,Dt.Z)(Hn(En,sn).map(function(yn){return(0,ct.Z)({fixed:vn},yn)}))):[].concat((0,Dt.Z)(ut),[(0,ct.Z)((0,ct.Z)({key:sn},wt),{},{fixed:vn})])},[])}function Kn(De){return De.map(function(Be){var ut=Be.fixed,wt=(0,oe.Z)(Be,nr),Kt=ut;return ut==="left"?Kt="right":ut==="right"&&(Kt="left"),(0,ct.Z)({fixed:Kt},wt)})}function Et(De,Be){var ut=De.prefixCls,wt=De.columns,Kt=De.children,qt=De.expandable,vn=De.expandedKeys,sn=De.columnTitle,En=De.getRowKey,yn=De.onTriggerExpand,Wn=De.expandIcon,Rn=De.rowExpandable,Tn=De.expandIconColumnIndex,Fn=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(Kt)||[];return Cn(oo.slice())},[wt,Kt]),Tr=y.useMemo(function(){if(qt){var oo=xr.slice();if(!oo.includes(he)){var lo=Tn||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(Oo,Hr){return Oo!==he||Hr===_r});var Or=xr[_r],qr;er?qr=er:qr=Or?Or.fixed:null;var uo=(0,Ce.Z)((0,Ce.Z)((0,Ce.Z)((0,Ce.Z)((0,Ce.Z)((0,Ce.Z)({},Ut,{className:"".concat(ut,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",sn),"fixed",qr),"className","".concat(ut,"-row-expand-icon-cell")),"width",yr),"render",function(Hr,di,hi){var ha=En(di,hi),na=vn.has(ha),Ki=Rn?Rn(di):!0,ra=Wn({prefixCls:ut,expanded:na,expandable:Ki,record:di,onExpand:yn});return Dn?y.createElement("span",{onClick:function(mi){return mi.stopPropagation()}},ra):ra});return oo.map(function(Oo){return Oo===he?uo:Oo})}return xr.filter(function(Oo){return Oo!==he})},[qt,xr,En,vn,Wn,Fn]),Wr=y.useMemo(function(){var oo=Tr;return Be&&(oo=Be(oo)),oo.length||(oo=[{render:function(){return null}}]),oo},[Be,Tr,Fn]),ro=y.useMemo(function(){return Fn==="rtl"?Kn(Hn(Wr)):Hn(Wr)},[Wr,Fn,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 Or=0;Or<=oo;Or+=1){var qr=ro[Or].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 Oo=uo;Oo<ro.length;Oo+=1){var Hr=ro[Oo].fixed;if(Hr!=="right")return!0}return!1},[ro]),si=$n(ro,Er,Dr),Ao=(0,je.Z)(si,2),Eo=Ao[0],Ko=Ao[1];return[Wr,Eo,Ko,Qr]}var Rt=Et;function Je(De,Be,ut){var wt=pn(De),Kt=wt.expandIcon,qt=wt.expandedRowKeys,vn=wt.defaultExpandedRowKeys,sn=wt.defaultExpandAllRows,En=wt.expandedRowRender,yn=wt.onExpand,Wn=wt.onExpandedRowsChange,Rn=wt.childrenColumnName,Tn=Kt||Lt,Fn=Rn||"children",Dn=y.useMemo(function(){return En?"row":De.expandable&&De.internalHooks===ce&&De.expandable.__PARENT_RENDER_ICON__||Be.some(function(Wr){return Wr&&(0,Qe.Z)(Wr)==="object"&&Wr[Fn]})?"nest":!1},[!!En,Be]),yr=y.useState(function(){return vn||(sn?ln(Be,ut,Fn):[])}),er=(0,je.Z)(yr,2),Er=er[0],Dr=er[1],xr=y.useMemo(function(){return new Set(qt||Er||[])},[qt,Er]),Tr=y.useCallback(function(Wr){var ro=ut(Wr,Be.indexOf(Wr)),Qr,si=xr.has(ro);si?(xr.delete(ro),Qr=(0,Dt.Z)(xr)):Qr=[].concat((0,Dt.Z)(xr),[ro]),Dr(Qr),yn&&yn(!si,Wr),Wn&&Wn(Qr)},[ut,xr,Be,yn,Wn]);return[wt,Dn,xr,Tn,Fn,Tr]}function Bt(De,Be,ut){var wt=De.map(function(Kt,qt){return kt(qt,qt,De,Be,ut)});return(0,ue.Z)(function(){return wt},[wt],function(Kt,qt){return!(0,ye.Z)(Kt,qt)})}function Ue(De){var Be=(0,y.useRef)(De),ut=(0,y.useState)({}),wt=(0,je.Z)(ut,2),Kt=wt[1],qt=(0,y.useRef)(null),vn=(0,y.useRef)([]);function sn(En){vn.current.push(En);var yn=Promise.resolve();qt.current=yn,yn.then(function(){if(qt.current===yn){var Wn=vn.current,Rn=Be.current;vn.current=[],Wn.forEach(function(Tn){Be.current=Tn(Be.current)}),qt.current=null,Rn!==Be.current&&Kt({})}})}return(0,y.useEffect)(function(){return function(){qt.current=null}},[]),[Be.current,sn]}function Nt(De){var Be=(0,y.useRef)(De||null),ut=(0,y.useRef)();function wt(){window.clearTimeout(ut.current)}function Kt(vn){Be.current=vn,wt(),ut.current=window.setTimeout(function(){Be.current=null,ut.current=void 0},100)}function qt(){return Be.current}return(0,y.useEffect)(function(){return wt},[]),[Kt,qt]}function Jt(){var De=y.useState(-1),Be=(0,je.Z)(De,2),ut=Be[0],wt=Be[1],Kt=y.useState(-1),qt=(0,je.Z)(Kt,2),vn=qt[0],sn=qt[1],En=y.useCallback(function(yn,Wn){wt(yn),sn(Wn)},[]);return[ut,vn,En]}var Ln=z(47273),zn=(0,Ln.Z)()?window:null;function pt(De,Be){var ut=(0,Qe.Z)(De)==="object"?De:{},wt=ut.offsetHeader,Kt=wt===void 0?0:wt,qt=ut.offsetSummary,vn=qt===void 0?0:qt,sn=ut.offsetScroll,En=sn===void 0?0:sn,yn=ut.getContainer,Wn=yn===void 0?function(){return zn}:yn,Rn=Wn()||zn,Tn=!!De;return y.useMemo(function(){return{isSticky:Tn,stickyClassName:Tn?"".concat(Be,"-sticky-holder"):"",offsetHeader:Kt,offsetSummary:vn,offsetScroll:En,container:Rn}},[Tn,En,Kt,vn,Be,Rn])}function Ct(De,Be,ut){var wt=(0,y.useMemo)(function(){var Kt=Be.length,qt=function(yn,Wn,Rn){for(var Tn=[],Fn=0,Dn=yn;Dn!==Wn;Dn+=Rn)Tn.push(Fn),Be[Dn].fixed&&(Fn+=De[Dn]||0);return Tn},vn=qt(0,Kt,1),sn=qt(Kt-1,-1,-1).reverse();return ut==="rtl"?{left:sn,right:vn}:{left:vn,right:sn}},[De,Be,ut]);return wt}var St=Ct;function It(De){var Be=De.className,ut=De.children;return y.createElement("div",{className:Be},ut)}var fn=It,wn=z(8224),Pn=z(16089),In=z(76846);function qn(De){var Be=(0,In.bn)(De),ut=Be.getBoundingClientRect(),wt=document.documentElement;return{left:ut.left+(window.pageXOffset||wt.scrollLeft)-(wt.clientLeft||document.body.clientLeft||0),top:ut.top+(window.pageYOffset||wt.scrollTop)-(wt.clientTop||document.body.clientTop||0)}}var rr=function(Be,ut){var wt,Kt,qt=Be.scrollBodyRef,vn=Be.onScroll,sn=Be.offsetScroll,En=Be.container,yn=Be.direction,Wn=le(Ze,"prefixCls"),Rn=((wt=qt.current)===null||wt===void 0?void 0:wt.scrollWidth)||0,Tn=((Kt=qt.current)===null||Kt===void 0?void 0:Kt.clientWidth)||0,Fn=Rn&&Tn*(Tn/Rn),Dn=y.useRef(),yr=Ue({scrollLeft:0,isHiddenScrollBar:!0}),er=(0,je.Z)(yr,2),Er=er[0],Dr=er[1],xr=y.useRef({delta:0,x:0}),Tr=y.useState(!1),Wr=(0,je.Z)(Tr,2),ro=Wr[0],Qr=Wr[1],si=y.useRef(null);y.useEffect(function(){return function(){Pn.Z.cancel(si.current)}},[]);var Ao=function(){Qr(!1)},Eo=function(Or){Or.persist(),xr.current.delta=Or.pageX-Er.scrollLeft,xr.current.x=0,Qr(!0),Or.preventDefault()},Ko=function(Or){var qr,uo=Or||((qr=window)===null||qr===void 0?void 0:qr.event),Oo=uo.buttons;if(!ro||Oo===0){ro&&Qr(!1);return}var Hr=xr.current.x+Or.pageX-xr.current.x-xr.current.delta,di=yn==="rtl";Hr=Math.max(di?Fn-Tn:0,Math.min(di?0:Tn-Fn,Hr));var hi=!di||Math.abs(Hr)+Math.abs(Fn)<Tn;hi&&(vn({scrollLeft:Hr/Tn*(Rn+2)}),xr.current.x=Or.pageX)},oo=function(){Pn.Z.cancel(si.current),si.current=(0,Pn.Z)(function(){if(qt.current){var Or=qn(qt.current).top,qr=Or+qt.current.offsetHeight,uo=En===window?document.documentElement.scrollTop+window.innerHeight:qn(En).top+En.clientHeight;qr-(0,Pt.Z)()<=uo||Or>=uo-sn?Dr(function(Oo){return(0,ct.Z)((0,ct.Z)({},Oo),{},{isHiddenScrollBar:!0})}):Dr(function(Oo){return(0,ct.Z)((0,ct.Z)({},Oo),{},{isHiddenScrollBar:!1})})}})},lo=function(Or){Dr(function(qr){return(0,ct.Z)((0,ct.Z)({},qr),{},{scrollLeft:Or/Rn*Tn||0})})};return y.useImperativeHandle(ut,function(){return{setScrollLeft:lo,checkScrollBarVisible:oo}}),y.useEffect(function(){var _r=(0,wn.Z)(document.body,"mouseup",Ao,!1),Or=(0,wn.Z)(document.body,"mousemove",Ko,!1);return oo(),function(){_r.remove(),Or.remove()}},[Fn,ro]),y.useEffect(function(){if(qt.current){for(var _r=[],Or=(0,In.bn)(qt.current);Or;)_r.push(Or),Or=Or.parentElement;return _r.forEach(function(qr){return qr.addEventListener("scroll",oo,!1)}),window.addEventListener("resize",oo,!1),window.addEventListener("scroll",oo,!1),En.addEventListener("scroll",oo,!1),function(){_r.forEach(function(qr){return qr.removeEventListener("scroll",oo)}),window.removeEventListener("resize",oo),window.removeEventListener("scroll",oo),En.removeEventListener("scroll",oo)}}},[En]),y.useEffect(function(){Er.isHiddenScrollBar||Dr(function(_r){var Or=qt.current;return Or?(0,ct.Z)((0,ct.Z)({},_r),{},{scrollLeft:Or.scrollLeft/Or.scrollWidth*Or.clientWidth}):_r})},[Er.isHiddenScrollBar]),Rn<=Tn||!Fn||Er.isHiddenScrollBar?null:y.createElement("div",{style:{height:(0,Pt.Z)(),width:Tn,bottom:sn},className:"".concat(Wn,"-sticky-scroll")},y.createElement("div",{onMouseDown:Eo,ref:Dn,className:Te()("".concat(Wn,"-sticky-scroll-bar"),(0,Ce.Z)({},"".concat(Wn,"-sticky-scroll-bar-active"),ro)),style:{width:"".concat(Fn,"px"),transform:"translate3d(".concat(Er.scrollLeft,"px, 0, 0)")}}))},ir=y.forwardRef(rr);function sr(De){return null}var Qn=sr;function ar(De){return null}var fr=ar,Sr="rc-table",br=[],jr={};function $r(){return"No Data"}function hr(De,Be){var ut=(0,ct.Z)({rowKey:"key",prefixCls:Sr,emptyText:$r},De),wt=ut.prefixCls,Kt=ut.className,qt=ut.rowClassName,vn=ut.style,sn=ut.data,En=ut.rowKey,yn=ut.scroll,Wn=ut.tableLayout,Rn=ut.direction,Tn=ut.title,Fn=ut.footer,Dn=ut.summary,yr=ut.caption,er=ut.id,Er=ut.showHeader,Dr=ut.components,xr=ut.emptyText,Tr=ut.onRow,Wr=ut.onHeaderRow,ro=ut.onScroll,Qr=ut.internalHooks,si=ut.transformColumns,Ao=ut.internalRefs,Eo=ut.tailor,Ko=ut.getContainerWidth,oo=ut.sticky,lo=ut.rowHoverable,_r=lo===void 0?!0:lo,Or=sn||br,qr=!!Or.length,uo=Qr===ce,Oo=y.useCallback(function(Ai,Ii){return(0,mt.Z)(Dr,Ai)||Ii},[Dr]),Hr=y.useMemo(function(){return typeof En=="function"?En:function(Ai){var Ii=Ai&&Ai[En];return Ii}},[En]),di=Oo(["body"]),hi=Jt(),ha=(0,je.Z)(hi,3),na=ha[0],Ki=ha[1],ra=ha[2],ya=Je(ut,Or,Hr),mi=(0,je.Z)(ya,6),vi=mi[0],ba=mi[1],Ba=mi[2],So=mi[3],ei=mi[4],vo=mi[5],Jr=yn==null?void 0:yn.x,xi=y.useState(0),Oi=(0,je.Z)(xi,2),qi=Oi[0],Hi=Oi[1],Ca=Rt((0,ct.Z)((0,ct.Z)((0,ct.Z)({},ut),vi),{},{expandable:!!vi.expandedRowRender,columnTitle:vi.columnTitle,expandedKeys:Ba,getRowKey:Hr,onTriggerExpand:vo,expandIcon:So,expandIconColumnIndex:vi.expandIconColumnIndex,direction:Rn,scrollWidth:uo&&Eo&&typeof Jr=="number"?Jr:null,clientWidth:qi}),uo?si:null),Pa=(0,je.Z)(Ca,4),Po=Pa[0],jo=Pa[1],Ni=Pa[2],$i=Pa[3],Zi=Ni!=null?Ni:Jr,Na=y.useMemo(function(){return{columns:Po,flattenColumns:jo}},[Po,jo]),Ea=y.useRef(),al=y.useRef(),oa=y.useRef(),Fi=y.useRef();y.useImperativeHandle(Be,function(){return{nativeElement:Ea.current,scrollTo:function(Ii){var Ua;if(oa.current instanceof HTMLElement){var gl=Ii.index,Ga=Ii.top,ws=Ii.key;if(Tt(Ga)){var rs;(rs=oa.current)===null||rs===void 0||rs.scrollTo({top:Ga})}else{var Vl,Bs=ws!=null?ws:Hr(Or[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(Ii)}}});var Wi=y.useRef(),Vi=y.useState(!1),Aa=(0,je.Z)(Vi,2),ma=Aa[0],Pi=Aa[1],ia=y.useState(!1),Li=(0,je.Z)(ia,2),$a=Li[0],Da=Li[1],tl=y.useState(new Map),ll=(0,je.Z)(tl,2),_l=ll[0],Ui=ll[1],Ps=Ft(jo),nl=Ps.map(function(Ai){return _l.get(Ai)}),Dl=y.useMemo(function(){return nl},[nl.join("_")]),pl=St(Dl,jo,Rn),sl=yn&&_t(yn.y),Gi=yn&&_t(Zi)||!!vi.fixed,vl=Gi&&jo.some(function(Ai){var Ii=Ai.fixed;return Ii}),ts=y.useRef(),jl=pt(oo,wt),$l=jl.isSticky,js=jl.offsetHeader,$s=jl.offsetSummary,zs=jl.offsetScroll,Hs=jl.stickyClassName,qs=jl.container,ui=y.useMemo(function(){return Dn==null?void 0:Dn(Or)},[Dn,Or]),gi=(sl||$l)&&y.isValidElement(ui)&&ui.type===Oe&&ui.props.fixed,ua,xa,Ra;sl&&(xa={overflowY:qr?"scroll":"auto",maxHeight:yn.y}),Gi&&(ua={overflowX:"auto"},sl||(xa={overflowY:"hidden"}),Ra={width:Zi===!0?"auto":Zi,minWidth:"100%"});var Ma=y.useCallback(function(Ai,Ii){Ui(function(Ua){if(Ua.get(Ai)!==Ii){var gl=new Map(Ua);return gl.set(Ai,Ii),gl}return Ua})},[]),Tl=Nt(null),Va=(0,je.Z)(Tl,2),xs=Va[0],eu=Va[1];function As(Ai,Ii){Ii&&(typeof Ii=="function"?Ii(Ai):Ii.scrollLeft!==Ai&&(Ii.scrollLeft=Ai,Ii.scrollLeft!==Ai&&setTimeout(function(){Ii.scrollLeft=Ai},0)))}var ps=(0,ve.Z)(function(Ai){var Ii=Ai.currentTarget,Ua=Ai.scrollLeft,gl=Rn==="rtl",Ga=typeof Ua=="number"?Ua:Ii.scrollLeft,ws=Ii||jr;if(!eu()||eu()===ws){var rs;xs(ws),As(Ga,al.current),As(Ga,oa.current),As(Ga,Wi.current),As(Ga,(rs=ts.current)===null||rs===void 0?void 0:rs.setScrollLeft)}var Vl=Ii||al.current;if(Vl){var Bs=uo&&Eo&&typeof Zi=="number"?Zi: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,ve.Z)(function(Ai){ps(Ai),ro==null||ro(Ai)}),vs=function(){if(Gi&&oa.current){var Ii;ps({currentTarget:(0,In.bn)(oa.current),scrollLeft:(Ii=oa.current)===null||Ii===void 0?void 0:Ii.scrollLeft})}else Pi(!1),Da(!1)},tu=function(Ii){var Ua,gl=Ii.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,sn,Po.length]),y.useEffect(function(){Ks.current=!0},[]);var nu=y.useState(0),vu=(0,je.Z)(nu,2),ns=vu[0],ru=vu[1],xu=y.useState(!0),ou=(0,je.Z)(xu,2),Os=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,ht.G)("position","sticky"))},[]),y.useEffect(function(){uo&&Ao&&(Ao.body.current=oa.current)});var wu=y.useCallback(function(Ai){return y.createElement(y.Fragment,null,y.createElement(Nn,Ai),gi==="top"&&y.createElement(Ge,Ai,ui))},[gi,ui]),Is=y.useCallback(function(Ai){return y.createElement(Ge,Ai,ui)},[ui]),iu=Oo(["table"],"table"),Ns=y.useMemo(function(){return Wn||(vl?Zi==="max-content"?"auto":"fixed":sl||$l||jo.some(function(Ai){var Ii=Ai.ellipsis;return Ii})?"fixed":"auto")},[sl,vl,jo,Wn,$l]),au,Ms={colWidths:Dl,columCount:jo.length,stickyOffsets:pl,onHeaderRow:Wr,fixHeader:sl,scroll:yn},lu=y.useMemo(function(){return qr?null:typeof xr=="function"?xr():xr},[qr,xr]),gu=y.createElement(dt,{data:Or,measureColumnWidth:sl||Gi||$l}),su=y.createElement(Bn,{colWidths:jo.map(function(Ai){var Ii=Ai.width;return Ii}),columns:jo}),uu=yr!=null?y.createElement("caption",{className:"".concat(wt,"-caption")},yr):void 0,Bu=(0,Le.Z)(ut,{data:!0}),Vs=(0,Le.Z)(ut,{aria:!0});if(sl||$l){var gs;typeof di=="function"?(gs=di(Or,{scrollbarSize:ns,ref:oa,onScroll:ps}),Ms.colWidths=jo.map(function(Ai,Ii){var Ua=Ai.width,gl=Ii===jo.length-1?Ua-ns:Ua;return typeof gl=="number"&&!Number.isNaN(gl)?gl:0})):gs=y.createElement("div",{style:(0,ct.Z)((0,ct.Z)({},ua),xa),onScroll:Ws,ref:oa,className:Te()("".concat(wt,"-body"))},y.createElement(iu,(0,Re.Z)({style:(0,ct.Z)((0,ct.Z)({},Ra),{},{tableLayout:Ns})},Vs),uu,su,gu,!gi&&ui&&y.createElement(Ge,{stickyOffsets:pl,flattenColumns:jo},ui)));var Ss=(0,ct.Z)((0,ct.Z)((0,ct.Z)({noData:!Or.length,maxContentScroll:Gi&&Zi==="max-content"},Ms),Na),{},{direction:Rn,stickyClassName:Hs,onScroll:ps});au=y.createElement(y.Fragment,null,Er!==!1&&y.createElement(Vt,(0,Re.Z)({},Ss,{stickyTopOffset:js,className:"".concat(wt,"-header"),ref:al}),wu),gs,gi&&gi!=="top"&&y.createElement(Vt,(0,Re.Z)({},Ss,{stickyBottomOffset:$s,className:"".concat(wt,"-summary"),ref:Wi}),Is),$l&&oa.current&&oa.current instanceof Element&&y.createElement(ir,{ref:ts,offsetScroll:zs,scrollBodyRef:oa,onScroll:ps,container:qs,direction:Rn}))}else au=y.createElement("div",{style:(0,ct.Z)((0,ct.Z)({},ua),xa),className:Te()("".concat(wt,"-content")),onScroll:ps,ref:oa},y.createElement(iu,(0,Re.Z)({style:(0,ct.Z)((0,ct.Z)({},Ra),{},{tableLayout:Ns})},Vs),uu,su,Er!==!1&&y.createElement(Nn,(0,Re.Z)({},Ms,Na)),gu,ui&&y.createElement(Ge,{stickyOffsets:pl,flattenColumns:jo},ui)));var cu=y.createElement("div",(0,Re.Z)({className:Te()(wt,Kt,(0,Ce.Z)((0,Ce.Z)((0,Ce.Z)((0,Ce.Z)((0,Ce.Z)((0,Ce.Z)((0,Ce.Z)((0,Ce.Z)((0,Ce.Z)((0,Ce.Z)({},"".concat(wt,"-rtl"),Rn==="rtl"),"".concat(wt,"-ping-left"),ma),"".concat(wt,"-ping-right"),$a),"".concat(wt,"-layout-fixed"),Wn==="fixed"),"".concat(wt,"-fixed-header"),sl),"".concat(wt,"-fixed-column"),vl),"".concat(wt,"-fixed-column-gapped"),vl&&$i),"".concat(wt,"-scroll-horizontal"),Gi),"".concat(wt,"-has-fix-left"),jo[0]&&jo[0].fixed),"".concat(wt,"-has-fix-right"),jo[jo.length-1]&&jo[jo.length-1].fixed==="right")),style:vn,id:er,ref:Ea},Bu),Tn&&y.createElement(fn,{className:"".concat(wt,"-title")},Tn(Or)),y.createElement("div",{ref:Fi,className:"".concat(wt,"-container")},au),Fn&&y.createElement(fn,{className:"".concat(wt,"-footer")},Fn(Or)));Gi&&(cu=y.createElement(it.Z,{onResize:tu},cu));var du=Bt(jo,pl,Rn),Du=y.useMemo(function(){return{scrollX:Zi,prefixCls:wt,getComponent:Oo,scrollbarSize:ns,direction:Rn,fixedInfoList:du,isSticky:$l,supportSticky:Os,componentWidth:qi,fixHeader:sl,fixColumn:vl,horizonScroll:Gi,tableLayout:Ns,rowClassName:qt,expandedRowClassName:vi.expandedRowClassName,expandIcon:So,expandableType:ba,expandRowByClick:vi.expandRowByClick,expandedRowRender:vi.expandedRowRender,onTriggerExpand:vo,expandIconColumnIndex:vi.expandIconColumnIndex,indentSize:vi.indentSize,allColumnsFixedLeft:jo.every(function(Ai){return Ai.fixed==="left"}),emptyNode:lu,columns:Po,flattenColumns:jo,onColumnResize:Ma,hoverStartRow:na,hoverEndRow:Ki,onHover:ra,rowExpandable:vi.rowExpandable,onRow:Tr,getRowKey:Hr,expandedKeys:Ba,childrenColumnName:ei,rowHoverable:_r}},[Zi,wt,Oo,ns,Rn,du,$l,Os,qi,sl,vl,Gi,Ns,qt,vi.expandedRowClassName,So,ba,vi.expandRowByClick,vi.expandedRowRender,vo,vi.expandIconColumnIndex,vi.indentSize,lu,Po,jo,Ma,na,Ki,ra,vi.rowExpandable,Tr,Hr,Ba,ei,_r]);return y.createElement(Ze.Provider,{value:Du},cu)}var Mr=y.forwardRef(hr);function eo(De){return Xe(Mr,De)}var kr=eo();kr.EXPAND_COLUMN=he,kr.INTERNAL_HOOKS=ce,kr.Column=Qn,kr.ColumnGroup=fr,kr.Summary=We;var Fr=kr,or=z(48911),Ur=pe(null),Rr=pe(null);function Br(De,Be,ut){var wt=Be||1;return ut[De+wt]-(ut[De]||0)}function Cr(De){var Be=De.rowInfo,ut=De.column,wt=De.colIndex,Kt=De.indent,qt=De.index,vn=De.component,sn=De.renderIndex,En=De.record,yn=De.style,Wn=De.className,Rn=De.inverse,Tn=De.getHeight,Fn=ut.render,Dn=ut.dataIndex,yr=ut.className,er=ut.width,Er=le(Rr,["columnsOffset"]),Dr=Er.columnsOffset,xr=ze(Be,ut,wt,Kt,qt),Tr=xr.key,Wr=xr.fixedInfo,ro=xr.appendCellNode,Qr=xr.additionalCellProps,si=Qr.style,Ao=Qr.colSpan,Eo=Ao===void 0?1:Ao,Ko=Qr.rowSpan,oo=Ko===void 0?1:Ko,lo=wt-1,_r=Br(lo,Eo,Dr),Or=Eo>1?er-_r:0,qr=(0,ct.Z)((0,ct.Z)((0,ct.Z)({},si),yn),{},{flex:"0 0 ".concat(_r,"px"),width:"".concat(_r,"px"),marginRight:Or,pointerEvents:"auto"}),uo=y.useMemo(function(){return Rn?oo<=1:Eo===0||oo===0||oo>1},[oo,Eo,Rn]);uo?qr.visibility="hidden":Rn&&(qr.height=Tn==null?void 0:Tn(oo));var Oo=uo?function(){return null}:Fn,Hr={};return(oo===0||Eo===0)&&(Hr.rowSpan=1,Hr.colSpan=1),y.createElement(rn,(0,Re.Z)({className:Te()(yr,Wn),ellipsis:ut.ellipsis,align:ut.align,scope:ut.rowScope,component:vn,prefixCls:Be.prefixCls,key:Tr,record:En,index:qt,renderIndex:sn,dataIndex:Dn,render:Oo,shouldCellUpdate:ut.shouldCellUpdate},Wr,{appendNode:ro,additionalProps:(0,ct.Z)((0,ct.Z)({},Qr),{},{style:qr},Hr)}))}var so=Cr,Ho=["data","index","className","rowKey","style","extra","getHeight"],ti=y.forwardRef(function(De,Be){var ut=De.data,wt=De.index,Kt=De.className,qt=De.rowKey,vn=De.style,sn=De.extra,En=De.getHeight,yn=(0,oe.Z)(De,Ho),Wn=ut.record,Rn=ut.indent,Tn=ut.index,Fn=le(Ze,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),Dn=Fn.scrollX,yr=Fn.flattenColumns,er=Fn.prefixCls,Er=Fn.fixColumn,Dr=Fn.componentWidth,xr=le(Ur,["getComponent"]),Tr=xr.getComponent,Wr=Yt(Wn,qt,wt,Rn),ro=Tr(["body","row"],"div"),Qr=Tr(["body","cell"],"div"),si=Wr.rowSupportExpand,Ao=Wr.expanded,Eo=Wr.rowProps,Ko=Wr.expandedRowRender,oo=Wr.expandedRowClassName,lo;if(si&&Ao){var _r=Ko(Wn,wt,Rn+1,Ao),Or=$t(oo,Wn,wt,Rn),qr={};Er&&(qr={style:(0,Ce.Z)({},"--virtual-width","".concat(Dr,"px"))});var uo="".concat(er,"-expanded-row-cell");lo=y.createElement(ro,{className:Te()("".concat(er,"-expanded-row"),"".concat(er,"-expanded-row-level-").concat(Rn+1),Or)},y.createElement(rn,{component:Qr,prefixCls:er,className:Te()(uo,(0,Ce.Z)({},"".concat(uo,"-fixed"),Er)),additionalProps:qr},_r))}var Oo=(0,ct.Z)((0,ct.Z)({},vn),{},{width:Dn});sn&&(Oo.position="absolute",Oo.pointerEvents="none");var Hr=y.createElement(ro,(0,Re.Z)({},Eo,yn,{"data-row-key":qt,ref:si?null:Be,className:Te()(Kt,"".concat(er,"-row"),Eo==null?void 0:Eo.className,(0,Ce.Z)({},"".concat(er,"-row-extra"),sn)),style:(0,ct.Z)((0,ct.Z)({},Oo),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:Rn,index:wt,renderIndex:Tn,record:Wn,inverse:sn,getHeight:En})}));return si?y.createElement("div",{ref:Be},Hr,lo):Hr}),xo=ft(ti),No=xo,To=y.forwardRef(function(De,Be){var ut=De.data,wt=De.onScroll,Kt=le(Ze,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),qt=Kt.flattenColumns,vn=Kt.onColumnResize,sn=Kt.getRowKey,En=Kt.expandedKeys,yn=Kt.prefixCls,Wn=Kt.childrenColumnName,Rn=Kt.scrollX,Tn=Kt.direction,Fn=le(Ur),Dn=Fn.sticky,yr=Fn.scrollY,er=Fn.listItemHeight,Er=Fn.getComponent,Dr=Fn.onScroll,xr=y.useRef(),Tr=Ot(ut,Wn,En,sn),Wr=y.useMemo(function(){var lo=0;return qt.map(function(_r){var Or=_r.width,qr=_r.key;return lo+=Or,[qr,Or,lo]})},[qt]),ro=y.useMemo(function(){return Wr.map(function(lo){return lo[2]})},[Wr]);y.useEffect(function(){Wr.forEach(function(lo){var _r=(0,je.Z)(lo,2),Or=_r[0],qr=_r[1];vn(Or,qr)})},[Wr]),y.useImperativeHandle(Be,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,Or){var qr,uo=(qr=Tr[Or])===null||qr===void 0?void 0:qr.record,Oo=_r.onCell;if(Oo){var Hr,di=Oo(uo,Or);return(Hr=di==null?void 0:di.rowSpan)!==null&&Hr!==void 0?Hr:1}return 1},si=function(_r){var Or=_r.start,qr=_r.end,uo=_r.getSize,Oo=_r.offsetY;if(qr<0)return null;for(var Hr=qt.filter(function(So){return Qr(So,Or)===0}),di=Or,hi=function(ei){if(Hr=Hr.filter(function(vo){return Qr(vo,ei)===0}),!Hr.length)return di=ei,1},ha=Or;ha>=0&&!hi(ha);ha-=1);for(var na=qt.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;qt.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=sn(ei.record,So),Jr=function(qi){var Hi=So+qi-1,Ca=sn(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:-Oo+xi.top},extra:!0,getHeight:Jr})});return Ba},Ao=y.useMemo(function(){return{columnsOffset:ro}},[ro]),Eo="".concat(yn,"-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:Ao},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 sn(_r.record)},component:Ko,scrollWidth:Rn,direction:Tn,onVirtualScroll:function(_r){var Or,qr=_r.x;wt({currentTarget:(Or=xr.current)===null||Or===void 0?void 0:Or.nativeElement,scrollLeft:qr})},onScroll:Dr,extraRender:si},function(lo,_r,Or){var qr=sn(lo.record,_r);return y.createElement(No,{data:lo,rowKey:qr,index:_r,style:Or.style})}))}),Xo=ft(To),ko=Xo,go=function(Be,ut){var wt=ut.ref,Kt=ut.onScroll;return y.createElement(ko,{ref:wt,data:Be,onScroll:Kt})};function dr(De,Be){var ut=De.data,wt=De.columns,Kt=De.scroll,qt=De.sticky,vn=De.prefixCls,sn=vn===void 0?Sr:vn,En=De.className,yn=De.listItemHeight,Wn=De.components,Rn=De.onScroll,Tn=Kt||{},Fn=Tn.x,Dn=Tn.y;typeof Fn!="number"&&(Fn=1),typeof Dn!="number"&&(Dn=500);var yr=(0,at.zX)(function(Dr,xr){return(0,mt.Z)(Wn,Dr)||xr}),er=(0,at.zX)(Rn),Er=y.useMemo(function(){return{sticky:qt,scrollY:Dn,listItemHeight:yn,getComponent:yr,onScroll:er}},[qt,Dn,yn,yr,er]);return y.createElement(Ur.Provider,{value:Er},y.createElement(Fr,(0,Re.Z)({},De,{className:Te()(En,"".concat(sn,"-virtual")),scroll:(0,ct.Z)((0,ct.Z)({},Kt),{},{x:Fn}),components:(0,ct.Z)((0,ct.Z)({},Wn),{},{body:ut!=null&&ut.length?go:void 0}),columns:wt,internalHooks:ce,tailor:!0,ref:Be})))}var Mn=y.forwardRef(dr);function Un(De){return Xe(Mn,De)}var Yn=Un(),kn=null,wr=De=>null,Jn=De=>null,ur=z(84105),pr=z(82661),Zr=z(34643),Yr=z(34061),to=z(18929);function Fo(De){const[Be,ut]=(0,y.useState)(null);return[(0,y.useCallback)((qt,vn,sn)=>{const En=Be!=null?Be:qt,yn=Math.min(En||0,qt),Wn=Math.max(En||0,qt),Rn=vn.slice(yn,Wn+1).map(Dn=>De(Dn)),Tn=Rn.some(Dn=>!sn.has(Dn)),Fn=[];return Rn.forEach(Dn=>{Tn?(sn.has(Dn)||Fn.push(Dn),sn.add(Dn)):(sn.delete(Dn),Fn.push(Dn))}),ut(Tn?Wn:null),Fn},[Be]),qt=>{ut(qt)}]}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,Be)=>{let ut=[];return(Be||[]).forEach(wt=>{ut.push(wt),wt&&typeof wt=="object"&&De in wt&&(ut=[].concat((0,Dt.Z)(ut),(0,Dt.Z)(ta(De,wt[De]))))}),ut};var co=(De,Be)=>{const{preserveSelectedRowKeys:ut,selectedRowKeys:wt,defaultSelectedRowKeys:Kt,getCheckboxProps:qt,onChange:vn,onSelect:sn,onSelectAll:En,onSelectInvert:yn,onSelectNone:Wn,onSelectMultiple:Rn,columnWidth:Tn,type:Fn,selections:Dn,fixed:yr,renderCell:er,hideSelectAll:Er,checkStrictly:Dr=!0}=Be||{},{prefixCls:xr,data:Tr,pageData:Wr,getRecordByKey:ro,getRowKey:Qr,expandType:si,childrenColumnName:Ao,locale:Eo,getPopupContainer:Ko}=De,oo=(0,Mo.ln)("Table"),[lo,_r]=Fo(So=>So),[Or,qr]=(0,to.Z)(wt||Kt||Yi,{value:wt}),uo=y.useRef(new Map),Oo=(0,y.useCallback)(So=>{if(ut){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,ut]);y.useEffect(()=>{Oo(Or)},[Or]);const Hr=(0,y.useMemo)(()=>ta(Ao,Wr),[Ao,Wr]),{keyEntities:di}=(0,y.useMemo)(()=>{if(Dr)return{keyEntities:null};let So=Tr;if(ut){const ei=new Set(Hr.map((Jr,xi)=>Qr(Jr,xi))),vo=Array.from(uo.current).reduce((Jr,xi)=>{let[Oi,qi]=xi;return ei.has(Oi)?Jr:Jr.concat(qi)},[]);So=[].concat((0,Dt.Z)(So),(0,Dt.Z)(vo))}return(0,Yr.I8)(So,{externalGetKey:Qr,childrenPropName:Ao})},[Tr,Qr,Dr,Ao,ut,Hr]),hi=(0,y.useMemo)(()=>{const So=new Map;return Hr.forEach((ei,vo)=>{const Jr=Qr(ei,vo),xi=(qt?qt(ei):null)||{};So.set(Jr,xi)}),So},[Hr,Qr,qt]),ha=(0,y.useCallback)(So=>{const ei=Qr(So);let vo;return hi.has(ei)?vo=hi.get(Qr(So)):vo=qt?qt(So):void 0,!!(vo!=null&&vo.disabled)},[hi,Qr]),[na,Ki]=(0,y.useMemo)(()=>{if(Dr)return[Or||[],[]];const{checkedKeys:So,halfCheckedKeys:ei}=(0,Zr.S)(Or,!0,di,ha);return[So||[],ei]},[Or,Dr,di,ha]),ra=(0,y.useMemo)(()=>{const So=Fn==="radio"?na.slice(0,1):na;return new Set(So)},[na,Fn]),ya=(0,y.useMemo)(()=>Fn==="radio"?new Set:new Set(Ki),[Ki,Fn]);y.useEffect(()=>{Be||qr(Yi)},[!!Be]);const mi=(0,y.useCallback)((So,ei)=>{let vo,Jr;Oo(So),ut?(vo=So,Jr=So.map(xi=>uo.current.get(xi))):(vo=[],Jr=[],So.forEach(xi=>{const Oi=ro(xi);Oi!==void 0&&(vo.push(xi),Jr.push(Oi))})),qr(vo),vn==null||vn(vo,Jr,{type:ei})},[qr,ro,vn,ut]),vi=(0,y.useCallback)((So,ei,vo,Jr)=>{if(sn){const xi=vo.map(Oi=>ro(Oi));sn(ro(So),ei,xi,Jr)}mi(vo,"single")},[sn,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,Oi)=>{const qi=Qr(xi,Oi),Hi=hi.get(qi);Hi!=null&&Hi.disabled||(vo.has(qi)?vo.delete(qi):vo.add(qi))});const Jr=Array.from(vo);yn&&(oo.deprecated(!1,"onSelectInvert","onChange"),yn(Jr)),mi(Jr,"invert")}}:ei===Xi?{key:"none",text:Eo.selectNone,onSelect(){Wn==null||Wn(),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,Oi=new Array(xi),qi=0;qi<xi;qi++)Oi[qi]=arguments[qi];(Jr=ei.onSelect)===null||Jr===void 0||(vo=Jr).call.apply(vo,[ei].concat(Oi)),_r(null)}})),[Dn,ra,Wr,Qr,yn,mi]);return[(0,y.useCallback)(So=>{var ei;if(!Be)return So.filter(Fi=>Fi!==ri);let vo=(0,Dt.Z)(So);const Jr=new Set(ra),xi=Hr.map(Qr).filter(Fi=>!hi.get(Fi).disabled),Oi=xi.every(Fi=>Jr.has(Fi)),qi=xi.some(Fi=>Jr.has(Fi)),Hi=()=>{const Fi=[];Oi?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);En==null||En(!Oi,Wi.map(Vi=>ro(Vi)),Fi.map(Vi=>ro(Vi))),mi(Wi,"all"),_r(null)};let Ca,Pa;if(Fn!=="radio"){let Fi;if(ba){const Pi={getPopupContainer:Ko,items:ba.map((ia,Li)=>{const{key:$a,text:Da,onSelect:tl}=ia;return{key:$a!=null?$a: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(ur.Z,null))))}const Wi=Hr.map((Pi,ia)=>{const Li=Qr(Pi,ia),$a=hi.get(Li)||{};return Object.assign({checked:Jr.has(Li)},$a)}).filter(Pi=>{let{disabled:ia}=Pi;return ia}),Vi=!!Wi.length&&Wi.length===Hr.length,Aa=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?Aa:!!Hr.length&&Oi,indeterminate:Vi?!Aa&&ma:!Oi&&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;Fn==="radio"?Po=(Fi,Wi,Vi)=>{const Aa=Qr(Wi,Vi),ma=Jr.has(Aa),Pi=hi.get(Aa);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(Aa)||vi(Aa,!0,[Aa],ia.nativeEvent),(Li=Pi==null?void 0:Pi.onChange)===null||Li===void 0||Li.call(Pi,ia)}})),checked:ma}}:Po=(Fi,Wi,Vi)=>{var Aa;const ma=Qr(Wi,Vi),Pi=Jr.has(ma),ia=ya.has(ma),Li=hi.get(ma);let $a;return si==="nest"?$a=ia:$a=(Aa=Li==null?void 0:Li.indeterminate)!==null&&Aa!==void 0?Aa:ia,{node:y.createElement(Yo.default,Object.assign({},Li,{indeterminate:$a,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);Rn==null||Rn(!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,Zr.S)([].concat((0,Dt.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,Zr.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 jo=(Fi,Wi,Vi)=>{const{node:Aa,checked:ma}=Po(Fi,Wi,Vi);return er?er(ma,Wi,Vi,Aa):Aa};if(!vo.includes(ri))if(vo.findIndex(Fi=>{var Wi;return((Wi=Fi[Ut])===null||Wi===void 0?void 0:Wi.columnType)==="EXPAND_COLUMN"})===0){const[Fi,...Wi]=vo;vo=[Fi,ri].concat((0,Dt.Z)(Wi))}else vo=[ri].concat((0,Dt.Z)(vo));const Ni=vo.indexOf(ri);vo=vo.filter((Fi,Wi)=>Fi!==ri||Wi===Ni);const $i=vo[Ni-1],Zi=vo[Ni+1];let Na=yr;Na===void 0&&((Zi==null?void 0:Zi.fixed)!==void 0?Na=Zi.fixed:($i==null?void 0:$i.fixed)!==void 0&&(Na=$i.fixed)),Na&&$i&&((ei=$i[Ut])===null||ei===void 0?void 0:ei.columnType)==="EXPAND_COLUMN"&&$i.fixed===void 0&&($i.fixed=Na);const Ea=Te()(`${xr}-selection-col`,{[`${xr}-selection-col-with-dropdown`]:Dn&&Fn==="checkbox"}),al=()=>Be!=null&&Be.columnTitle?typeof Be.columnTitle=="function"?Be.columnTitle(Pa):Be.columnTitle:Ca,oa={fixed:Na,width:Tn,className:`${xr}-selection-column`,title:al(),render:jo,onCell:Be.onCell,[Ut]:{className:Ea}};return vo.map(Fi=>Fi===ri?oa:Fi)},[Qr,Hr,Be,na,ra,ya,Tn,ba,si,hi,Rn,vi,ha]),ra]},wi=z(2738);function wo(De,Be){return De._antProxy=De._antProxy||{},Object.keys(Be).forEach(ut=>{if(!(ut in De._antProxy)){const wt=De[ut];De._antProxy[ut]=wt,De[ut]=Be[ut]}}),De}function aa(De,Be){return(0,y.useImperativeHandle)(De,()=>{const ut=Be(),{nativeElement:wt}=ut;return typeof Proxy!="undefined"?new Proxy(wt,{get(Kt,qt){return ut[qt]?ut[qt]:Reflect.get(Kt,qt)}}):wo(wt,ut)})}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 Be=>{const{prefixCls:ut,onExpand:wt,record:Kt,expanded:qt,expandable:vn}=Be,sn=`${ut}-row-expand-icon`;return y.createElement("button",{type:"button",onClick:En=>{wt(Kt,En),En.stopPropagation()},className:Te()(sn,{[`${sn}-spaced`]:!vn,[`${sn}-expanded`]:vn&&qt,[`${sn}-collapsed`]:vn&&!qt}),"aria-label":qt?De.collapse:De.expand,"aria-expanded":qt})}}var $o=El;function ai(De){return(ut,wt)=>{const Kt=ut.querySelector(`.${De}-container`);let qt=wt;if(Kt){const vn=getComputedStyle(Kt),sn=parseInt(vn.borderLeftWidth,10),En=parseInt(vn.borderRightWidth,10);qt=wt-sn-En}return qt}}const Ro=(De,Be)=>"key"in De&&De.key!==void 0&&De.key!==null?De.key:De.dataIndex?Array.isArray(De.dataIndex)?De.dataIndex.join("."):De.dataIndex:Be;function Bo(De,Be){return Be?`${Be}-${De}`:`${De}`}const qo=(De,Be)=>typeof De=="function"?De(Be):De,Bi=(De,Be)=>{const ut=qo(De,Be);return Object.prototype.toString.call(ut)==="[object Object]"?"":ut};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(Be,ut){return y.createElement(Qi.Z,(0,Re.Z)({},Be,{ref:ut,icon:zi}))},cl=y.forwardRef(sa),xl=cl,Ka=z(9981),Sl=z(40192);function kl(De){const Be=y.useRef(De),ut=(0,Sl.Z)();return[()=>Be.current,wt=>{Be.current=wt,ut()}]}var dl=z(7939),zl=z(584),Fs=z(93041),Gl=z(78857),Al=z(18287),Ll=z(47472),fl=z(49397),Xl=De=>{const{value:Be,filterSearch:ut,tablePrefixCls:wt,locale:Kt,onChange:qt}=De;return ut?y.createElement("div",{className:`${wt}-filter-dropdown-search`},y.createElement(fl.Z,{prefix:y.createElement(Ll.Z,null),placeholder:Kt.filterSearchPlaceholder,onChange:qt,value:Be,htmlSize:1,className:`${wt}-filter-dropdown-search-input`})):null},bs=z(10228);const Ol=De=>{const{keyCode:Be}=De;Be===bs.Z.ENTER&&De.stopPropagation()};var as=y.forwardRef((De,Be)=>y.createElement("div",{className:De.className,onClick:ut=>ut.stopPropagation(),onKeyDown:Ol,ref:Be},De.children));function wl(De){let Be=[];return(De||[]).forEach(ut=>{let{value:wt,children:Kt}=ut;Be.push(wt),Kt&&(Be=[].concat((0,Dt.Z)(Be),(0,Dt.Z)(wl(Kt))))}),Be}function Hl(De){return De.some(Be=>{let{children:ut}=Be;return ut})}function Wl(De,Be){return typeof Be=="string"||typeof Be=="number"?Be==null?void 0:Be.toString().toLowerCase().includes(De.trim().toLowerCase()):!1}function ls(De){let{filters:Be,prefixCls:ut,filteredKeys:wt,filterMultiple:Kt,searchValue:qt,filterSearch:vn}=De;return Be.map((sn,En)=>{const yn=String(sn.value);if(sn.children)return{key:yn||En,label:sn.text,popupClassName:`${ut}-dropdown-submenu`,children:ls({filters:sn.children,prefixCls:ut,filteredKeys:wt,filterMultiple:Kt,searchValue:qt,filterSearch:vn})};const Wn=Kt?Yo.default:ni.ZP,Rn={key:sn.value!==void 0?yn:En,label:y.createElement(y.Fragment,null,y.createElement(Wn,{checked:wt.includes(yn)}),y.createElement("span",null,sn.text))};return qt.trim()?typeof vn=="function"?vn(qt,sn)?Rn:null:Wl(qt,sn.text)?Rn:null:Rn})}function Kl(De){return De||[]}var qa=De=>{var Be,ut,wt,Kt;const{tablePrefixCls:qt,prefixCls:vn,column:sn,dropdownPrefixCls:En,columnKey:yn,filterOnClose:Wn,filterMultiple:Rn,filterMode:Tn="menu",filterSearch:Fn=!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:Ao,onFilterDropdownOpenChange:Eo}=sn,[Ko,oo]=y.useState(!1),lo=!!(Dn&&(!((Be=Dn.filteredKeys)===null||Be===void 0)&&Be.length||Dn.forceFiltered)),_r=Po=>{var jo;oo(Po),(jo=ro.onOpenChange)===null||jo===void 0||jo.call(ro,Po),Eo==null||Eo(Po),Ao==null||Ao(Po)},Or=(Kt=(wt=(ut=ro.open)!==null&&ut!==void 0?ut:Qr)!==null&&wt!==void 0?wt:si)!==null&&Kt!==void 0?Kt:Ko,qr=Dn==null?void 0:Dn.filteredKeys,[uo,Oo]=kl(Kl(qr)),Hr=Po=>{let{selectedKeys:jo}=Po;Oo(jo)},di=(Po,jo)=>{let{node:Ni,checked:$i}=jo;Hr(Rn?{selectedKeys:Po}:{selectedKeys:$i&&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:jo}=Po.target;ra(jo)};y.useEffect(()=>{Ko||ra("")},[Ko]);const mi=Po=>{const jo=Po!=null&&Po.length?Po:null;if(jo===null&&(!Dn||!Dn.filteredKeys)||(0,ye.Z)(jo,Dn==null?void 0:Dn.filteredKeys,!0))return null;yr({column:sn,key:yn,filteredKeys:jo})},vi=()=>{_r(!1),mi(uo())},ba=function(){let{confirm:Po,closeDropdown:jo}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};Po&&mi([]),jo&&_r(!1),ra(""),Oo(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,jo)=>{jo.source==="trigger"&&(Po&&qr!==void 0&&Oo(Kl(qr)),_r(Po),!Po&&!sn.filterDropdown&&Wn&&vi())},ei=Te()({[`${En}-menu-without-submenu`]:!Hl(sn.filters||[])}),vo=Po=>{if(Po.target.checked){const jo=wl(sn==null?void 0:sn.filters).map(Ni=>String(Ni));Oo(jo)}else Oo([])},Jr=Po=>{let{filters:jo}=Po;return(jo||[]).map((Ni,$i)=>{const Zi=String(Ni.value),Na={title:Ni.text,key:Ni.value!==void 0?Zi:String($i)};return Ni.children&&(Na.children=Jr({filters:Ni.children})),Na})},xi=Po=>{var jo;return Object.assign(Object.assign({},Po),{text:Po.title,value:Po.key,children:((jo=Po.children)===null||jo===void 0?void 0:jo.map(Ni=>xi(Ni)))||[]})};let Oi;const{direction:qi,renderEmpty:Hi}=y.useContext(Ha.E_);if(typeof sn.filterDropdown=="function")Oi=sn.filterDropdown({prefixCls:`${En}-custom`,setSelectedKeys:Po=>Hr({selectedKeys:Po}),selectedKeys:uo(),confirm:Ba,clearFilters:ba,filters:sn.filters,visible:Or,close:()=>{_r(!1)}});else if(sn.filterDropdown)Oi=sn.filterDropdown;else{const Po=uo()||[],jo=()=>{var $i,Zi;const Na=($i=Hi==null?void 0:Hi("Table.filter"))!==null&&$i!==void 0?$i:y.createElement(zl.Z,{image:zl.Z.PRESENTED_IMAGE_SIMPLE,description:er.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if((sn.filters||[]).length===0)return Na;if(Tn==="tree")return y.createElement(y.Fragment,null,y.createElement(Xl,{filterSearch:Fn,value:Ki,onChange:ya,tablePrefixCls:qt,locale:er}),y.createElement("div",{className:`${qt}-filter-dropdown-tree`},Rn?y.createElement(Yo.default,{checked:Po.length===wl(sn.filters).length,indeterminate:Po.length>0&&Po.length<wl(sn.filters).length,className:`${qt}-filter-dropdown-checkall`,onChange:vo},(Zi=er==null?void 0:er.filterCheckall)!==null&&Zi!==void 0?Zi:er==null?void 0:er.filterCheckAll):null,y.createElement(Al.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:Rn,checkStrictly:!Rn,className:`${En}-menu`,onCheck:di,checkedKeys:Po,selectedKeys:Po,showIcon:!1,treeData:Jr({filters:sn.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:Ki.trim()?oa=>typeof Fn=="function"?Fn(Ki,xi(oa)):Wl(Ki,oa.title):void 0})));const Ea=ls({filters:sn.filters||[],filterSearch:Fn,prefixCls:vn,filteredKeys:uo(),filterMultiple:Rn,searchValue:Ki}),al=Ea.every(oa=>oa===null);return y.createElement(y.Fragment,null,y.createElement(Xl,{filterSearch:Fn,value:Ki,onChange:ya,tablePrefixCls:qt,locale:er}),al?Na:y.createElement(Fs.default,{selectable:!0,multiple:Rn,prefixCls:`${En}-menu`,className:ei,onSelect:Hr,onDeselect:Hr,selectedKeys:Po,getPopupContainer:Dr,openKeys:hi,onOpenChange:na,items:Ea}))},Ni=()=>Tr?(0,ye.Z)((Wr||[]).map($i=>String($i)),Po,!0):Po.length===0;Oi=y.createElement(y.Fragment,null,jo(),y.createElement("div",{className:`${vn}-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)))}sn.filterDropdown&&(Oi=y.createElement(Gl.J,{selectable:void 0},Oi)),Oi=y.createElement(as,{className:`${vn}-dropdown`},Oi);const Ca=()=>{let Po;return typeof sn.filterIcon=="function"?Po=sn.filterIcon(lo):sn.filterIcon?Po=sn.filterIcon:Po=y.createElement(xl,null),y.createElement("span",{role:"button",tabIndex:-1,className:Te()(`${vn}-trigger`,{active:lo}),onClick:jo=>{jo.stopPropagation()}},Po)},Pa=(0,Ka.Z)({trigger:["click"],placement:qi==="rtl"?"bottomLeft":"bottomRight",children:Ca(),getPopupContainer:Dr},Object.assign(Object.assign({},ro),{rootClassName:Te()(xr,ro.rootClassName),open:Or,onOpenChange:So,dropdownRender:()=>typeof(ro==null?void 0:ro.dropdownRender)=="function"?ro.dropdownRender(Oi):Oi}));return y.createElement("div",{className:`${vn}-column`},y.createElement("span",{className:`${qt}-column-title`},Er),y.createElement(Jo.Z,Object.assign({},Pa)))};const el=(De,Be,ut)=>{let wt=[];return(De||[]).forEach((Kt,qt)=>{var vn;const sn=Bo(qt,ut);if(Kt.filters||"filterDropdown"in Kt||"onFilter"in Kt)if("filteredValue"in Kt){let En=Kt.filteredValue;"filterDropdown"in Kt||(En=(vn=En==null?void 0:En.map(String))!==null&&vn!==void 0?vn:En),wt.push({column:Kt,key:Ro(Kt,sn),filteredKeys:En,forceFiltered:Kt.filtered})}else wt.push({column:Kt,key:Ro(Kt,sn),filteredKeys:Be&&Kt.defaultFilteredValue?Kt.defaultFilteredValue:void 0,forceFiltered:Kt.filtered});"children"in Kt&&(wt=[].concat((0,Dt.Z)(wt),(0,Dt.Z)(el(Kt.children,Be,sn))))}),wt};function ji(De,Be,ut,wt,Kt,qt,vn,sn,En){return ut.map((yn,Wn)=>{const Rn=Bo(Wn,sn),{filterOnClose:Tn=!0,filterMultiple:Fn=!0,filterMode:Dn,filterSearch:yr}=yn;let er=yn;if(er.filters||er.filterDropdown){const Er=Ro(er,Rn),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:Be,column:er,columnKey:Er,filterState:Dr,filterOnClose:Tn,filterMultiple:Fn,filterMode:Dn,filterSearch:yr,triggerFilter:qt,locale:Kt,getPopupContainer:vn,rootClassName:En},qo(yn.title,xr))})}return"children"in er&&(er=Object.assign(Object.assign({},er),{children:ji(De,Be,er.children,wt,Kt,qt,vn,Rn,En)})),er})}const yi=De=>{const Be={};return De.forEach(ut=>{let{key:wt,filteredKeys:Kt,column:qt}=ut;const vn=wt,{filters:sn,filterDropdown:En}=qt;if(En)Be[vn]=Kt||null;else if(Array.isArray(Kt)){const yn=wl(sn);Be[vn]=yn.filter(Wn=>Kt.includes(String(Wn)))}else Be[vn]=null}),Be},ci=(De,Be,ut)=>Be.reduce((Kt,qt)=>{const{column:{onFilter:vn,filters:sn},filteredKeys:En}=qt;return vn&&En&&En.length?Kt.map(yn=>Object.assign({},yn)).filter(yn=>En.some(Wn=>{const Rn=wl(sn),Tn=Rn.findIndex(Dn=>String(Dn)===String(Wn)),Fn=Tn!==-1?Rn[Tn]:Wn;return yn[ut]&&(yn[ut]=ci(yn[ut],Be,ut)),vn(Fn,yn)})):Kt},De),vt=De=>De.flatMap(Be=>"children"in Be?[Be].concat((0,Dt.Z)(vt(Be.children||[]))):[Be]);var Qt=De=>{const{prefixCls:Be,dropdownPrefixCls:ut,mergedColumns:wt,onFilterChange:Kt,getPopupContainer:qt,locale:vn,rootClassName:sn}=De,En=(0,Mo.ln)("Table"),yn=y.useMemo(()=>vt(wt||[]),[wt]),[Wn,Rn]=y.useState(()=>el(yn,!0)),Tn=y.useMemo(()=>{const er=el(yn,!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=(yn||[]).map((Tr,Wr)=>Ro(Tr,Bo(Wr)));return Wn.filter(Tr=>{let{key:Wr}=Tr;return xr.includes(Wr)}).map(Tr=>{const Wr=yn[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},[yn,Wn]),Fn=y.useMemo(()=>yi(Tn),[Tn]),Dn=er=>{const Er=Tn.filter(Dr=>{let{key:xr}=Dr;return xr!==er.key});Er.push(er),Rn(Er),Kt(yi(Er),Er)};return[er=>ji(Be,ut,er,Tn,vn,Dn,qt,void 0,sn),Tn,Fn]},yo=(De,Be,ut)=>{const wt=y.useRef({});function Kt(qt){var vn;if(!wt.current||wt.current.data!==De||wt.current.childrenColumnName!==Be||wt.current.getRowKey!==ut){let En=function(yn){yn.forEach((Wn,Rn)=>{const Tn=ut(Wn,Rn);sn.set(Tn,Wn),Wn&&typeof Wn=="object"&&Be in Wn&&En(Wn[Be]||[])})};const sn=new Map;En(De),wt.current={data:De,childrenColumnName:Be,kvMap:sn,getRowKey:ut}}return(vn=wt.current.kvMap)===null||vn===void 0?void 0:vn.get(qt)}return[Kt]},Vr=function(De,Be){var ut={};for(var wt in De)Object.prototype.hasOwnProperty.call(De,wt)&&Be.indexOf(wt)<0&&(ut[wt]=De[wt]);if(De!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Kt=0,wt=Object.getOwnPropertySymbols(De);Kt<wt.length;Kt++)Be.indexOf(wt[Kt])<0&&Object.prototype.propertyIsEnumerable.call(De,wt[Kt])&&(ut[wt[Kt]]=De[wt[Kt]]);return ut};const fo=10;function Pr(De,Be){const ut={current:De.current,pageSize:De.pageSize};return Object.keys(Be&&typeof Be=="object"?Be:{}).forEach(Kt=>{const qt=De[Kt];typeof qt!="function"&&(ut[Kt]=qt)}),ut}function Kr(De,Be,ut){const wt=ut&&typeof ut=="object"?ut:{},{total:Kt=0}=wt,qt=Vr(wt,["total"]),[vn,sn]=(0,y.useState)(()=>({current:"defaultCurrent"in qt?qt.defaultCurrent:1,pageSize:"defaultPageSize"in qt?qt.defaultPageSize:fo})),En=(0,Ka.Z)(vn,qt,{total:Kt>0?Kt:De}),yn=Math.ceil((Kt||De)/En.pageSize);En.current>yn&&(En.current=yn||1);const Wn=(Tn,Fn)=>{sn({current:Tn!=null?Tn:1,pageSize:Fn||En.pageSize})},Rn=(Tn,Fn)=>{var Dn;ut&&((Dn=ut.onChange)===null||Dn===void 0||Dn.call(ut,Tn,Fn)),Wn(Tn,Fn),Be(Tn,Fn||(En==null?void 0:En.pageSize))};return ut===!1?[{},()=>{}]:[Object.assign(Object.assign({},En),{onChange:Rn}),Wn]}var Zo=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,Io=(De,Be)=>Be?De[De.indexOf(Be)+1]:De[0],zr=(De,Be,ut)=>{let wt=[];const Kt=(qt,vn)=>{wt.push({column:qt,key:Ro(qt,vn),multiplePriority:io(qt),sortOrder:qt.sortOrder})};return(De||[]).forEach((qt,vn)=>{const sn=Bo(vn,ut);qt.children?("sortOrder"in qt&&Kt(qt,sn),wt=[].concat((0,Dt.Z)(wt),(0,Dt.Z)(zr(qt.children,Be,sn)))):qt.sorter&&("sortOrder"in qt?Kt(qt,sn):Be&&qt.defaultSortOrder&&wt.push({column:qt,key:Ro(qt,sn),multiplePriority:io(qt),sortOrder:qt.defaultSortOrder}))}),wt},Go=(De,Be,ut,wt,Kt,qt,vn,sn)=>(Be||[]).map((yn,Wn)=>{const Rn=Bo(Wn,sn);let Tn=yn;if(Tn.sorter){const Fn=Tn.sortDirections||Kt,Dn=Tn.showSorterTooltip===void 0?vn:Tn.showSorterTooltip,yr=Ro(Tn,Rn),er=ut.find(Ao=>{let{key:Eo}=Ao;return Eo===yr}),Er=er?er.sortOrder:null,Dr=Io(Fn,Er);let xr;if(yn.sortIcon)xr=yn.sortIcon({sortOrder:Er});else{const Ao=Fn.includes(Qo)&&y.createElement(oi.Z,{className:Te()(`${De}-column-sorter-up`,{active:Er===Qo})}),Eo=Fn.includes(gr)&&y.createElement(ho.Z,{className:Te()(`${De}-column-sorter-down`,{active:Er===gr})});xr=y.createElement("span",{className:Te()(`${De}-column-sorter`,{[`${De}-column-sorter-full`]:!!(Ao&&Eo)})},y.createElement("span",{className:`${De}-column-sorter-inner`,"aria-hidden":"true"},Ao,Eo))}const{cancelSort:Tr,triggerAsc:Wr,triggerDesc:ro}=qt||{};let Qr=Tr;Dr===gr?Qr=ro:Dr===Qo&&(Qr=Wr);const si=typeof Dn=="object"?Object.assign({title:Qr},Dn):{title:Qr};Tn=Object.assign(Object.assign({},Tn),{className:Te()(Tn.className,{[`${De}-column-sort`]:Er}),title:Ao=>{const Eo=`${De}-column-sorters`,Ko=y.createElement("span",{className:`${De}-column-title`},qo(yn.title,Ao)),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:Ao=>{var Eo;const Ko=((Eo=yn.onHeaderCell)===null||Eo===void 0?void 0:Eo.call(yn,Ao))||{},oo=Ko.onClick,lo=Ko.onKeyDown;Ko.onClick=qr=>{wt({column:yn,key:yr,sortOrder:Dr,multiplePriority:io(yn)}),oo==null||oo(qr)},Ko.onKeyDown=qr=>{qr.keyCode===bs.Z.ENTER&&(wt({column:yn,key:yr,sortOrder:Dr,multiplePriority:io(yn)}),lo==null||lo(qr))};const _r=Bi(yn.title,{}),Or=_r==null?void 0:_r.toString();return Er&&(Ko["aria-sort"]=Er==="ascend"?"ascending":"descending"),Ko["aria-label"]=Or||"",Ko.className=Te()(Ko.className,`${De}-column-has-sorters`),Ko.tabIndex=0,yn.ellipsis&&(Ko.title=(_r!=null?_r:"").toString()),Ko}})}return"children"in Tn&&(Tn=Object.assign(Object.assign({},Tn),{children:Go(De,Tn.children,ut,wt,Kt,qt,vn,Rn)})),Tn}),fi=De=>{const{column:Be,sortOrder:ut}=De;return{column:Be,order:ut,field:Be.dataIndex,columnKey:Be.key}},ao=De=>{const Be=De.filter(ut=>{let{sortOrder:wt}=ut;return wt}).map(fi);if(Be.length===0&&De.length){const ut=De.length-1;return Object.assign(Object.assign({},fi(De[ut])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return Be.length<=1?Be[0]||{}:Be},Co=(De,Be,ut)=>{const wt=Be.slice().sort((vn,sn)=>sn.multiplePriority-vn.multiplePriority),Kt=De.slice(),qt=wt.filter(vn=>{let{column:{sorter:sn},sortOrder:En}=vn;return bo(sn)&&En});return qt.length?Kt.sort((vn,sn)=>{for(let En=0;En<qt.length;En+=1){const yn=qt[En],{column:{sorter:Wn},sortOrder:Rn}=yn,Tn=bo(Wn);if(Tn&&Rn){const Fn=Tn(vn,sn,Rn);if(Fn!==0)return Rn===Qo?Fn:-Fn}}return 0}).map(vn=>{const sn=vn[ut];return sn?Object.assign(Object.assign({},vn),{[ut]:Co(sn,Be,ut)}):vn}):Kt};var no=De=>{const{prefixCls:Be,mergedColumns:ut,sortDirections:wt,tableLocale:Kt,showSorterTooltip:qt,onSorterChange:vn}=De,[sn,En]=y.useState(zr(ut,!0)),yn=(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=yn(Dr.children,Tr);Er.push.apply(Er,(0,Dt.Z)(Wr))}}),Er},Wn=y.useMemo(()=>{let yr=!0;const er=zr(ut,!1);if(!er.length){const Tr=yn(ut);return sn.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},[ut,sn]),Rn=y.useMemo(()=>{var yr,er;const Er=Wn.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}},[Wn]),Tn=yr=>{let er;yr.multiplePriority===!1||!Wn.length||Wn[0].multiplePriority===!1?er=[yr]:er=[].concat((0,Dt.Z)(Wn.filter(Er=>{let{key:Dr}=Er;return Dr!==yr.key})),[yr]),En(er),vn(ao(er),er)};return[yr=>Go(Be,yr,Wn,Tn,wt,Kt,qt),Wn,Rn,()=>ao(Wn)]};const bi=(De,Be)=>De.map(wt=>{const Kt=Object.assign({},wt);return Kt.title=qo(wt.title,Be),"children"in Kt&&(Kt.children=bi(Kt.children,Be)),Kt});var Ji=De=>[y.useCallback(ut=>bi(ut,De),[De])],zo=eo((De,Be)=>{const{_renderTimes:ut}=De,{_renderTimes:wt}=Be;return ut!==wt}),Ia=Un((De,Be)=>{const{_renderTimes:ut}=De,{_renderTimes:wt}=Be;return ut!==wt}),cr=z(36237),Ci=z(17835),Di=z(63356),Ei=z(16931),wa=z(51636),Jl=De=>{const{componentCls:Be,lineWidth:ut,lineType:wt,tableBorderColor:Kt,tableHeaderBg:qt,tablePaddingVertical:vn,tablePaddingHorizontal:sn,calc:En}=De,yn=`${(0,cr.unit)(ut)} ${wt} ${Kt}`,Wn=(Rn,Tn,Fn)=>({[`&${Be}-${Rn}`]:{[`> ${Be}-container`]:{[`> ${Be}-content, > ${Be}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${Be}-expanded-row-fixed`]:{margin:`${(0,cr.unit)(En(Tn).mul(-1).equal())}
${(0,cr.unit)(En(En(Fn).add(ut)).mul(-1).equal())}`}}}}}});return{[`${Be}-wrapper`]:{[`${Be}${Be}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${Be}-title`]:{border:yn,borderBottom:0},[`> ${Be}-container`]:{borderInlineStart:yn,borderTop:yn,[`
> ${Be}-content,
> ${Be}-header,
> ${Be}-body,
> ${Be}-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:yn},"> thead":{"> tr:not(:last-child) > th":{borderBottom:yn},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${Be}-cell-fix-right-first::after`]:{borderInlineEnd:yn}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${Be}-expanded-row-fixed`]:{margin:`${(0,cr.unit)(En(vn).mul(-1).equal())} ${(0,cr.unit)(En(En(sn).add(ut)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:ut,bottom:0,borderInlineEnd:yn,content:'""'}}}}}},[`&${Be}-scroll-horizontal`]:{[`> ${Be}-container > ${Be}-body`]:{"> table > tbody":{[`
> tr${Be}-expanded-row,
> tr${Be}-placeholder
`]:{"> th, > td":{borderInlineEnd:0}}}}}},Wn("middle",De.tablePaddingVerticalMiddle,De.tablePaddingHorizontalMiddle)),Wn("small",De.tablePaddingVerticalSmall,De.tablePaddingHorizontalSmall)),{[`> ${Be}-footer`]:{border:yn,borderTop:0}}),[`${Be}-cell`]:{[`${Be}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${(0,cr.unit)(ut)} 0 ${(0,cr.unit)(ut)} ${qt}`}},[`${Be}-bordered ${Be}-cell-scrollbar`]:{borderInlineEnd:yn}}}},Il=De=>{const{componentCls:Be}=De;return{[`${Be}-wrapper`]:{[`${Be}-cell-ellipsis`]:Object.assign(Object.assign({},Di.vS),{wordBreak:"keep-all",[`
&${Be}-cell-fix-left-last,
&${Be}-cell-fix-right-first
`]:{overflow:"visible",[`${Be}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${Be}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},Cs=De=>{const{componentCls:Be}=De;return{[`${Be}-wrapper`]:{[`${Be}-tbody > tr${Be}-placeholder`]:{textAlign:"center",color:De.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:De.colorBgContainer}}}}},us=De=>{const{componentCls:Be,antCls:ut,motionDurationSlow:wt,lineWidth:Kt,paddingXS:qt,lineType:vn,tableBorderColor:sn,tableExpandIconBg:En,tableExpandColumnWidth:yn,borderRadius:Wn,tablePaddingVertical:Rn,tablePaddingHorizontal:Tn,tableExpandedRowBg:Fn,paddingXXS:Dn,expandIconMarginTop:yr,expandIconSize:er,expandIconHalfInner:Er,expandIconScale:Dr,calc:xr}=De,Tr=`${(0,cr.unit)(Kt)} ${vn} ${sn}`,Wr=xr(Dn).sub(Kt).equal();return{[`${Be}-wrapper`]:{[`${Be}-expand-icon-col`]:{width:yn},[`${Be}-row-expand-icon-cell`]:{textAlign:"center",[`${Be}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${Be}-row-indent`]:{height:1,float:"left"},[`${Be}-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:En,border:Tr,borderRadius:Wn,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:Kt},"&::after":{top:Wr,bottom:Wr,insetInlineStart:Er,width:Kt,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"}}),[`${Be}-row-indent + ${Be}-row-expand-icon`]:{marginTop:yr,marginInlineEnd:qt},[`tr${Be}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:Fn}},[`${ut}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${Be}-expanded-row-fixed`]:{position:"relative",margin:`${(0,cr.unit)(xr(Rn).mul(-1).equal())} ${(0,cr.unit)(xr(Tn).mul(-1).equal())}`,padding:`${(0,cr.unit)(Rn)} ${(0,cr.unit)(Tn)}`}}}},Rs=De=>{const{componentCls:Be,antCls:ut,iconCls:wt,tableFilterDropdownWidth:Kt,tableFilterDropdownSearchWidth:qt,paddingXXS:vn,paddingXS:sn,colorText:En,lineWidth:yn,lineType:Wn,tableBorderColor:Rn,headerIconColor:Tn,fontSizeSM:Fn,tablePaddingHorizontal:Dn,borderRadius:yr,motionDurationSlow:er,colorTextDescription:Er,colorPrimary:Dr,tableHeaderFilterActiveBg:xr,colorTextDisabled:Tr,tableFilterDropdownBg:Wr,tableFilterDropdownHeight:ro,controlItemBgHover:Qr,controlItemBgActive:si,boxShadowSecondary:Ao,filterDropdownMenuBg:Eo,calc:Ko}=De,oo=`${ut}-dropdown`,lo=`${Be}-filter-dropdown`,_r=`${ut}-tree`,Or=`${(0,cr.unit)(yn)} ${Wn} ${Rn}`;return[{[`${Be}-wrapper`]:{[`${Be}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${Be}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:Ko(vn).mul(-1).equal(),marginInline:`${(0,cr.unit)(vn)} ${(0,cr.unit)(Ko(Dn).div(2).mul(-1).equal())}`,padding:`0 ${(0,cr.unit)(vn)}`,color:Tn,fontSize:Fn,borderRadius:yr,cursor:"pointer",transition:`all ${er}`,"&:hover":{color:Er,background:xr},"&.active":{color:Dr}}}},{[`${ut}-dropdown`]:{[lo]:Object.assign(Object.assign({},(0,Di.Wf)(De)),{minWidth:Kt,backgroundColor:Wr,borderRadius:yr,boxShadow:Ao,overflow:"hidden",[`${oo}-menu`]:{maxHeight:ro,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:Eo,"&:empty::after":{display:"block",padding:`${(0,cr.unit)(sn)} 0`,color:Tr,fontSize:Fn,textAlign:"center",content:'"Not Found"'}},[`${lo}-tree`]:{paddingBlock:`${(0,cr.unit)(sn)} 0`,paddingInline:sn,[_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:sn,borderBottom:Or,"&-input":{input:{minWidth:qt},[wt]:{color:Tr}}},[`${lo}-checkall`]:{width:"100%",marginBottom:vn,marginInlineStart:vn},[`${lo}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${(0,cr.unit)(Ko(sn).sub(yn).equal())} ${(0,cr.unit)(sn)}`,overflow:"hidden",borderTop:Or}})}},{[`${ut}-dropdown ${lo}, ${lo}-submenu`]:{[`${ut}-checkbox-wrapper + span`]:{paddingInlineStart:sn,color:En},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},cs=De=>{const{componentCls:Be,lineWidth:ut,colorSplit:wt,motionDurationSlow:Kt,zIndexTableFixed:qt,tableBg:vn,zIndexTableSticky:sn,calc:En}=De,yn=wt;return{[`${Be}-wrapper`]:{[`
${Be}-cell-fix-left,
${Be}-cell-fix-right
`]:{position:"sticky !important",zIndex:qt,background:vn},[`
${Be}-cell-fix-left-first::after,
${Be}-cell-fix-left-last::after
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:En(ut).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${Kt}`,content:'""',pointerEvents:"none"},[`${Be}-cell-fix-left-all::after`]:{display:"none"},[`
${Be}-cell-fix-right-first::after,
${Be}-cell-fix-right-last::after
`]:{position:"absolute",top:0,bottom:En(ut).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${Kt}`,content:'""',pointerEvents:"none"},[`${Be}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:En(sn).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${Kt}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${Be}-ping-left`]:{[`&:not(${Be}-has-fix-left) ${Be}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${yn}`},[`
${Be}-cell-fix-left-first::after,
${Be}-cell-fix-left-last::after
`]:{boxShadow:`inset 10px 0 8px -8px ${yn}`},[`${Be}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${Be}-ping-right`]:{[`&:not(${Be}-has-fix-right) ${Be}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${yn}`},[`
${Be}-cell-fix-right-first::after,
${Be}-cell-fix-right-last::after
`]:{boxShadow:`inset -10px 0 8px -8px ${yn}`}},[`${Be}-fixed-column-gapped`]:{[`
${Be}-cell-fix-left-first::after,
${Be}-cell-fix-left-last::after,
${Be}-cell-fix-right-first::after,
${Be}-cell-fix-right-last::after
`]:{boxShadow:"none"}}}}},ds=De=>{const{componentCls:Be,antCls:ut,margin:wt}=De;return{[`${Be}-wrapper`]:{[`${Be}-pagination${ut}-pagination`]:{margin:`${(0,cr.unit)(wt)} 0`},[`${Be}-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:Be,tableRadius:ut}=De;return{[`${Be}-wrapper`]:{[Be]:{[`${Be}-title, ${Be}-header`]:{borderRadius:`${(0,cr.unit)(ut)} ${(0,cr.unit)(ut)} 0 0`},[`${Be}-title + ${Be}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${Be}-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:ut,borderStartEndRadius:ut,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:ut},"> *:last-child":{borderStartEndRadius:ut}}},"&-footer":{borderRadius:`0 0 ${(0,cr.unit)(ut)} ${(0,cr.unit)(ut)}`}}}}},Zs=De=>{const{componentCls:Be}=De;return{[`${Be}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${Be}-pagination-left`]:{justifyContent:"flex-end"},[`${Be}-pagination-right`]:{justifyContent:"flex-start"},[`${Be}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${Be}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${Be}-row-indent`]:{float:"right"}}}}},Zl=De=>{const{componentCls:Be,antCls:ut,iconCls:wt,fontSizeIcon:Kt,padding:qt,paddingXS:vn,headerIconColor:sn,headerIconHoverColor:En,tableSelectionColumnWidth:yn,tableSelectedRowBg:Wn,tableSelectedRowHoverBg:Rn,tableRowHoverBg:Tn,tablePaddingHorizontal:Fn,calc:Dn}=De;return{[`${Be}-wrapper`]:{[`${Be}-selection-col`]:{width:yn,[`&${Be}-selection-col-with-dropdown`]:{width:Dn(yn).add(Kt).add(Dn(qt).div(4)).equal()}},[`${Be}-bordered ${Be}-selection-col`]:{width:Dn(yn).add(Dn(vn).mul(2)).equal(),[`&${Be}-selection-col-with-dropdown`]:{width:Dn(yn).add(Kt).add(Dn(qt).div(4)).add(Dn(vn).mul(2)).equal()}},[`
table tr th${Be}-selection-column,
table tr td${Be}-selection-column,
${Be}-selection-column
`]:{paddingInlineEnd:De.paddingXS,paddingInlineStart:De.paddingXS,textAlign:"center",[`${ut}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${Be}-selection-column${Be}-cell-fix-left`]:{zIndex:Dn(De.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${Be}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${Be}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${Be}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${De.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:(0,cr.unit)(Dn(Fn).div(4).equal()),[wt]:{color:sn,fontSize:Kt,verticalAlign:"baseline","&:hover":{color:En}}},[`${Be}-tbody`]:{[`${Be}-row`]:{[`&${Be}-row-selected`]:{[`> ${Be}-cell`]:{background:Wn,"&-row-hover":{background:Rn}}},[`> ${Be}-cell-row-hover`]:{background:Tn}}}}}},_s=De=>{const{componentCls:Be,tableExpandColumnWidth:ut,calc:wt}=De,Kt=(qt,vn,sn,En)=>({[`${Be}${Be}-${qt}`]:{fontSize:En,[`
${Be}-title,
${Be}-footer,
${Be}-cell,
${Be}-thead > tr > th,
${Be}-tbody > tr > th,
${Be}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{padding:`${(0,cr.unit)(vn)} ${(0,cr.unit)(sn)}`},[`${Be}-filter-trigger`]:{marginInlineEnd:(0,cr.unit)(wt(sn).div(2).mul(-1).equal())},[`${Be}-expanded-row-fixed`]:{margin:`${(0,cr.unit)(wt(vn).mul(-1).equal())} ${(0,cr.unit)(wt(sn).mul(-1).equal())}`},[`${Be}-tbody`]:{[`${Be}-wrapper:only-child ${Be}`]:{marginBlock:(0,cr.unit)(wt(vn).mul(-1).equal()),marginInline:`${(0,cr.unit)(wt(ut).sub(sn).equal())} ${(0,cr.unit)(wt(sn).mul(-1).equal())}`}},[`${Be}-selection-extra`]:{paddingInlineStart:(0,cr.unit)(wt(sn).div(4).equal())}}});return{[`${Be}-wrapper`]:Object.assign(Object.assign({},Kt("middle",De.tablePaddingVerticalMiddle,De.tablePaddingHorizontalMiddle,De.tableFontSizeMiddle)),Kt("small",De.tablePaddingVerticalSmall,De.tablePaddingHorizontalSmall,De.tableFontSizeSmall))}},Js=De=>{const{componentCls:Be,marginXXS:ut,fontSizeIcon:wt,headerIconColor:Kt,headerIconHoverColor:qt}=De;return{[`${Be}-wrapper`]:{[`${Be}-thead th${Be}-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},[`
&${Be}-cell-fix-left:hover,
&${Be}-cell-fix-right:hover
`]:{background:De.tableFixedHeaderSortActiveBg}},[`${Be}-thead th${Be}-column-sort`]:{background:De.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${Be}-column-sort`]:{background:De.tableBodySortBg},[`${Be}-column-title`]:{position:"relative",zIndex:1,flex:1,minWidth:0},[`${Be}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${Be}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${Be}-column-sorter`]:{marginInlineStart:ut,color:Kt,fontSize:0,transition:`color ${De.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:wt,"&.active":{color:De.colorPrimary}},[`${Be}-column-sorter-up + ${Be}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${Be}-column-sorters:hover ${Be}-column-sorter`]:{color:qt}}}},Ar=De=>{const{componentCls:Be,opacityLoading:ut,tableScrollThumbBg:wt,tableScrollThumbBgHover:Kt,tableScrollThumbSize:qt,tableScrollBg:vn,zIndexTableSticky:sn,stickyScrollBarBorderRadius:En,lineWidth:yn,lineType:Wn,tableBorderColor:Rn}=De,Tn=`${(0,cr.unit)(yn)} ${Wn} ${Rn}`;return{[`${Be}-wrapper`]:{[`${Be}-sticky`]:{"&-holder":{position:"sticky",zIndex:sn,background:De.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${(0,cr.unit)(qt)} !important`,zIndex:sn,display:"flex",alignItems:"center",background:vn,borderTop:Tn,opacity:ut,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:qt,backgroundColor:wt,borderRadius:En,transition:`all ${De.motionDurationSlow}, transform 0s`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:Kt}}}}}}},Lr=De=>{const{componentCls:Be,lineWidth:ut,tableBorderColor:wt,calc:Kt}=De,qt=`${(0,cr.unit)(ut)} ${De.lineType} ${wt}`;return{[`${Be}-wrapper`]:{[`${Be}-summary`]:{position:"relative",zIndex:De.zIndexTableFixed,background:De.tableBg,"> tr":{"> th, > td":{borderBottom:qt}}},[`div${Be}-summary`]:{boxShadow:`0 ${(0,cr.unit)(Kt(ut).mul(-1).equal())} 0 ${wt}`}}}},_o=De=>{const{componentCls:Be,motionDurationMid:ut,lineWidth:wt,lineType:Kt,tableBorderColor:qt,calc:vn}=De,sn=`${(0,cr.unit)(wt)} ${Kt} ${qt}`,En=`${Be}-expanded-row-cell`;return{[`${Be}-wrapper`]:{[`${Be}-tbody-virtual`]:{[`${Be}-tbody-virtual-holder-inner`]:{[`
& > ${Be}-row,
& > div:not(${Be}-row) > ${Be}-row
`]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${Be}-cell`]:{borderBottom:sn,transition:`background ${ut}`},[`${Be}-expanded-row`]:{[`${En}${En}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${(0,cr.unit)(wt)})`,borderInlineEnd:"none"}}},[`${Be}-bordered`]:{[`${Be}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:sn,position:"absolute"},[`${Be}-cell`]:{borderInlineEnd:sn,[`&${Be}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:vn(wt).mul(-1).equal(),borderInlineStart:sn}}},[`&${Be}-virtual`]:{[`${Be}-placeholder ${Be}-cell`]:{borderInlineEnd:sn,borderBottom:sn}}}}}};const Vo=De=>{const{componentCls:Be,fontWeightStrong:ut,tablePaddingVertical:wt,tablePaddingHorizontal:Kt,tableExpandColumnWidth:qt,lineWidth:vn,lineType:sn,tableBorderColor:En,tableFontSize:yn,tableBg:Wn,tableRadius:Rn,tableHeaderTextColor:Tn,motionDurationMid:Fn,tableHeaderBg:Dn,tableHeaderCellSplitColor:yr,tableFooterTextColor:er,tableFooterBg:Er,calc:Dr}=De,xr=`${(0,cr.unit)(vn)} ${sn} ${En}`;return{[`${Be}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,Di.dF)()),{[Be]:Object.assign(Object.assign({},(0,Di.Wf)(De)),{fontSize:yn,background:Wn,borderRadius:`${(0,cr.unit)(Rn)} ${(0,cr.unit)(Rn)} 0 0`,scrollbarColor:`${De.tableScrollThumbBg} ${De.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${(0,cr.unit)(Rn)} ${(0,cr.unit)(Rn)} 0 0`,borderCollapse:"separate",borderSpacing:0},[`
${Be}-cell,
${Be}-thead > tr > th,
${Be}-tbody > tr > th,
${Be}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{position:"relative",padding:`${(0,cr.unit)(wt)} ${(0,cr.unit)(Kt)}`,overflowWrap:"break-word"},[`${Be}-title`]:{padding:`${(0,cr.unit)(wt)} ${(0,cr.unit)(Kt)}`},[`${Be}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:Tn,fontWeight:ut,textAlign:"start",background:Dn,borderBottom:xr,transition:`background ${Fn} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${Be}-selection-column):not(${Be}-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 ${Fn}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${Be}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${Fn}, border-color ${Fn}`,borderBottom:xr,[`
> ${Be}-wrapper:only-child,
> ${Be}-expanded-row-fixed > ${Be}-wrapper:only-child
`]:{[Be]:{marginBlock:(0,cr.unit)(Dr(wt).mul(-1).equal()),marginInline:`${(0,cr.unit)(Dr(qt).sub(Kt).equal())}
${(0,cr.unit)(Dr(Kt).mul(-1).equal())}`,[`${Be}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:Tn,fontWeight:ut,textAlign:"start",background:Dn,borderBottom:xr,transition:`background ${Fn} ease`}}},[`${Be}-footer`]:{padding:`${(0,cr.unit)(wt)} ${(0,cr.unit)(Kt)}`,color:er,background:Er}})}},ki=De=>{const{colorFillAlter:Be,colorBgContainer:ut,colorTextHeading:wt,colorFillSecondary:Kt,colorFillContent:qt,controlItemBgActive:vn,controlItemBgActiveHover:sn,padding:En,paddingSM:yn,paddingXS:Wn,colorBorderSecondary:Rn,borderRadiusLG:Tn,controlHeight:Fn,colorTextPlaceholder:Dn,fontSize:yr,fontSizeSM:er,lineHeight:Er,lineWidth:Dr,colorIcon:xr,colorIconHover:Tr,opacityLoading:Wr,controlInteractiveSize:ro}=De,Qr=new Ci.FastColor(Kt).onBackground(ut).toHexString(),si=new Ci.FastColor(qt).onBackground(ut).toHexString(),Ao=new Ci.FastColor(Be).onBackground(ut).toHexString(),Eo=new Ci.FastColor(xr),Ko=new Ci.FastColor(Tr),oo=ro/2-Dr,lo=oo*2+Dr*3;return{headerBg:Ao,headerColor:wt,headerSortActiveBg:Qr,headerSortHoverBg:si,bodySortBg:Ao,rowHoverBg:Ao,rowSelectedBg:vn,rowSelectedHoverBg:sn,rowExpandedBg:Be,cellPaddingBlock:En,cellPaddingInline:En,cellPaddingBlockMD:yn,cellPaddingInlineMD:Wn,cellPaddingBlockSM:Wn,cellPaddingInlineSM:Wn,borderColor:Rn,headerBorderRadius:Tn,footerBg:Ao,footerColor:wt,cellFontSize:yr,cellFontSizeMD:yr,cellFontSizeSM:yr,headerSplitColor:Rn,fixedHeaderSortActiveBg:Qr,headerFilterHoverBg:qt,filterDropdownMenuBg:ut,filterDropdownBg:ut,expandIconBg:ut,selectionColumnWidth:Fn,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:Be,colorSplit:ut,colorBgContainer:wt,controlInteractiveSize:Kt,headerBg:qt,headerColor:vn,headerSortActiveBg:sn,headerSortHoverBg:En,bodySortBg:yn,rowHoverBg:Wn,rowSelectedBg:Rn,rowSelectedHoverBg:Tn,rowExpandedBg:Fn,cellPaddingBlock:Dn,cellPaddingInline:yr,cellPaddingBlockMD:er,cellPaddingInlineMD:Er,cellPaddingBlockSM:Dr,cellPaddingInlineSM:xr,borderColor:Tr,footerBg:Wr,footerColor:ro,headerBorderRadius:Qr,cellFontSize:si,cellFontSizeMD:Ao,cellFontSizeSM:Eo,headerSplitColor:Ko,fixedHeaderSortActiveBg:oo,headerFilterHoverBg:lo,filterDropdownBg:_r,expandIconBg:Or,selectionColumnWidth:qr,stickyScrollBarBg:uo,calc:Oo}=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:vn,tableHeaderBg:qt,tableFooterTextColor:ro,tableFooterBg:Wr,tableHeaderCellSplitColor:Ko,tableHeaderSortBg:sn,tableHeaderSortHoverBg:En,tableBodySortBg:yn,tableFixedHeaderSortActiveBg:oo,tableHeaderFilterActiveBg:lo,tableFilterDropdownBg:_r,tableRowHoverBg:Wn,tableSelectedRowBg:Rn,tableSelectedRowHoverBg:Tn,zIndexTableFixed:li,zIndexTableSticky:Oo(li).add(1).equal({unit:!1}),tableFontSizeMiddle:Ao,tableFontSizeSmall:Eo,tableSelectionColumnWidth:qr,tableExpandIconBg:Or,tableExpandColumnWidth:Oo(Kt).add(Oo(De.padding).mul(2)).equal(),tableExpandedRowBg:Fn,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:uo,tableScrollThumbBgHover:Be,tableScrollBg:ut});return[Vo(Hr),ds(Hr),Lr(Hr),Js(Hr),Rs(Hr),Jl(Hr),hs(Hr),us(Hr),Lr(Hr),Cs(Hr),Zl(Hr),cs(Hr),Ar(Hr),Il(Hr),_s(Hr),Zs(Hr),_o(Hr)]},ki,{unitless:{expandIconScale:!0}});const Ri=[],Bl=(De,Be)=>{var ut,wt;const{prefixCls:Kt,className:qt,rootClassName:vn,style:sn,size:En,bordered:yn,dropdownPrefixCls:Wn,dataSource:Rn,pagination:Tn,rowSelection:Fn,rowKey:Dn="key",rowClassName:yr,columns:er,children:Er,childrenColumnName:Dr,onChange:xr,getPopupContainer:Tr,loading:Wr,expandIcon:ro,expandable:Qr,expandedRowRender:si,expandIconColumnIndex:Ao,indentSize:Eo,scroll:Ko,sortDirections:oo,locale:lo,showSorterTooltip:_r={target:"full-header"},virtual:Or}=De,qr=(0,Mo.ln)("Table"),uo=y.useMemo(()=>er||dn(Er),[er,Er]),Oo=y.useMemo(()=>uo.some(ui=>ui.responsive),[uo]),Hr=(0,ka.Z)(Oo),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)(En),ba=Object.assign(Object.assign({},ha.Table),lo),Ba=Rn||Ri,So=ya("table",Kt),ei=ya("dropdown",Wn),[,vo]=(0,Pl.ZP)(),Jr=(0,fa.Z)(So),[xi,Oi,qi]=va(So,Jr),Hi=Object.assign(Object.assign({childrenColumnName:Dr,expandIconColumnIndex:Ao},Qr),{expandIcon:(ut=Qr==null?void 0:Qr.expandIcon)!==null&&ut!==void 0?ut:(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)},jo=ai(So),Ni=y.useRef(null),$i=y.useRef(null);aa(Be,()=>Object.assign(Object.assign({},$i.current),{nativeElement:Ni.current}));const Zi=y.useMemo(()=>typeof Dn=="function"?Dn:ui=>ui==null?void 0:ui[Dn],[Dn]),[Na]=yo(Ba,Ca,Zi),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),Tn&&((Ma=Tn.onChange)===null||Ma===void 0||Ma.call(Tn,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,Aa]=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=Aa(),Ea.sorterStates=Wi;const Pi=(ui,gi)=>{al({filters:ui,filterStates:gi},"filter",!0)},[ia,Li,$a]=Qt({prefixCls:So,locale:ba,dropdownPrefixCls:ei,mergedColumns:di,onFilterChange:Pi,getPopupContainer:Tr||mi,rootClassName:Te()(vn,Jr)}),Da=ci(ma,Li,Ca);Ea.filters=$a,Ea.filterStates=Li;const tl=y.useMemo(()=>{const ui={};return Object.keys($a).forEach(gi=>{$a[gi]!==null&&(ui[gi]=$a[gi])}),Object.assign(Object.assign({},Vi),{filters:ui})},[Vi,$a]),[ll]=Ji(tl),_l=(ui,gi)=>{al({pagination:Object.assign(Object.assign({},Ea.pagination),{current:ui,pageSize:gi})},"paginate")},[Ui,Ps]=Zo(Da.length,_l,Tn);Ea.pagination=Tn===!1?{}:Pr(Ui,Tn),Ea.resetPagination=Ps;const nl=y.useMemo(()=>{if(Tn===!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)},[!!Tn,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:Zi,getRecordByKey:Na,expandType:Pa,childrenColumnName:Ca,locale:ba,getPopupContainer:Tr||mi},Fn),sl=(ui,gi,ua)=>{let xa;return typeof yr=="function"?xa=Te()(yr(ui,gi,ua)):xa=Te()(yr),Te()({[`${So}-row-selected`]:pl.has(Zi(ui,gi))},xa)};Hi.__PARENT_RENDER_ICON__=Hi.expandIcon,Hi.expandIcon=Hi.expandIcon||ro||$o(ba),Pa==="nest"&&Hi.expandIconColumnIndex===void 0?Hi.expandIconColumnIndex=Fn?1:0:Hi.expandIconColumnIndex>0&&Fn&&(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(Tn!==!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:Te()(`${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 jl;typeof Wr=="boolean"?jl={spinning:Wr}:typeof Wr=="object"&&(jl=Object.assign({spinning:!0},Wr));const $l=Te()(qi,Jr,`${So}-wrapper`,Ki==null?void 0:Ki.className,{[`${So}-wrapper-rtl`]:na==="rtl"},qt,vn,Oi),js=Object.assign(Object.assign({},Ki==null?void 0:Ki.style),sn),$s=typeof(lo==null?void 0:lo.emptyText)!="undefined"?lo.emptyText:(ra==null?void 0:ra("Table"))||y.createElement(da.Z,{componentName:"Table"}),zs=Or?Ia: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 Or&&(Hs.listItemHeight=qs),xi(y.createElement("div",{ref:Ni,className:$l,style:js},y.createElement(la.Z,Object.assign({spinning:!1},jl),vl,y.createElement(zs,Object.assign({},Hs,hi,{ref:$i,columns:di,direction:na,expandable:Hi,prefixCls:So,className:Te()({[`${So}-middle`]:vi==="middle",[`${So}-small`]:vi==="small",[`${So}-bordered`]:yn,[`${So}-empty`]:Ba.length===0},qi,Jr,Oi),data:nl,rowKey:Zi,rowClassName:sl,emptyText:$s,internalHooks:ce,internalRefs:Po,transformColumns:Gi,getContainerWidth:jo})),ts)))};var ms=y.forwardRef(Bl);const po=(De,Be)=>{const ut=y.useRef(0);return ut.current+=1,y.createElement(ms,Object.assign({},De,{ref:Be,_renderTimes:ut.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=We;var il=ga,La=il},96599:function(bn,zt,z){"use strict";z.d(zt,{default:function(){return Te}});var y=z(59301),he=z(92310),ce=z.n(he),je=z(2738),ve=z(29509),me=z(78776),ye=z(22703),Ae=z(12919),pe=z(48755),le=z(36237),Re=z(17835),Ie=z(63356),tt=z(51636),He=z(16931);const Me=ue=>{const{paddingXXS:mt,lineWidth:_e,tagPaddingHorizontal:lt,componentCls:Mt,calc:be}=ue,ge=be(lt).sub(_e).equal(),Ft=be(mt).sub(_e).equal();return{[Mt]:Object.assign(Object.assign({},(0,Ie.Wf)(ue)),{display:"inline-block",height:"auto",marginInlineEnd:ue.marginXS,paddingInline:ge,fontSize:ue.tagFontSize,lineHeight:ue.tagLineHeight,whiteSpace:"nowrap",background:ue.defaultBg,border:`${(0,le.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:Ft,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:ge}}),[`${Mt}-borderless`]:{borderColor:"transparent",background:ue.tagBorderlessBg}}},Ee=ue=>{const{lineWidth:mt,fontSizeIcon:_e,calc:lt}=ue,Mt=ue.fontSizeSM;return(0,tt.mergeToken)(ue,{tagFontSize:Mt,tagLineHeight:(0,le.unit)(lt(ue.lineHeightSM).mul(Mt).equal()),tagIconSize:lt(_e).sub(lt(mt).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:ue.defaultBg})},we=ue=>({defaultBg:new Re.FastColor(ue.colorFillQuaternary).onBackground(ue.colorBgContainer).toHexString(),defaultColor:ue.colorText});var Ne=(0,He.I$)("Tag",ue=>{const mt=Ee(ue);return Me(mt)},we),Xe=function(ue,mt){var _e={};for(var lt in ue)Object.prototype.hasOwnProperty.call(ue,lt)&&mt.indexOf(lt)<0&&(_e[lt]=ue[lt]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Mt=0,lt=Object.getOwnPropertySymbols(ue);Mt<lt.length;Mt++)mt.indexOf(lt[Mt])<0&&Object.prototype.propertyIsEnumerable.call(ue,lt[Mt])&&(_e[lt[Mt]]=ue[lt[Mt]]);return _e},Pe=y.forwardRef((ue,mt)=>{const{prefixCls:_e,style:lt,className:Mt,checked:be,onChange:ge,onClick:Ft}=ue,_t=Xe(ue,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:Tt,tag:xe}=y.useContext(pe.E_),rt=rn=>{ge==null||ge(!be),Ft==null||Ft(rn)},qe=Tt("tag",_e),[Gt,at,st]=Ne(qe),nt=ce()(qe,`${qe}-checkable`,{[`${qe}-checkable-checked`]:be},xe==null?void 0:xe.className,Mt,at,st);return Gt(y.createElement("span",Object.assign({},_t,{ref:mt,style:Object.assign(Object.assign({},lt),xe==null?void 0:xe.style),className:nt,onClick:rt})))}),Fe=z(93427);const Ze=ue=>(0,Fe.Z)(ue,(mt,_e)=>{let{textColor:lt,lightBorderColor:Mt,lightColor:be,darkColor:ge}=_e;return{[`${ue.componentCls}${ue.componentCls}-${mt}`]:{color:lt,background:be,borderColor:Mt,"&-inverse":{color:ue.colorTextLightSolid,background:ge,borderColor:ge},[`&${ue.componentCls}-borderless`]:{borderColor:"transparent"}}}});var $e=(0,He.bk)(["Tag","preset"],ue=>{const mt=Ee(ue);return Ze(mt)},we);function gt(ue){return typeof ue!="string"?ue:ue.charAt(0).toUpperCase()+ue.slice(1)}const ot=(ue,mt,_e)=>{const lt=gt(_e);return{[`${ue.componentCls}${ue.componentCls}-${mt}`]:{color:ue[`color${_e}`],background:ue[`color${lt}Bg`],borderColor:ue[`color${lt}Border`],[`&${ue.componentCls}-borderless`]:{borderColor:"transparent"}}}};var Qe=(0,He.bk)(["Tag","status"],ue=>{const mt=Ee(ue);return[ot(mt,"success","Success"),ot(mt,"processing","Info"),ot(mt,"error","Error"),ot(mt,"warning","Warning")]},we),ct=function(ue,mt){var _e={};for(var lt in ue)Object.prototype.hasOwnProperty.call(ue,lt)&&mt.indexOf(lt)<0&&(_e[lt]=ue[lt]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Mt=0,lt=Object.getOwnPropertySymbols(ue);Mt<lt.length;Mt++)mt.indexOf(lt[Mt])<0&&Object.prototype.propertyIsEnumerable.call(ue,lt[Mt])&&(_e[lt[Mt]]=ue[lt[Mt]]);return _e};const et=y.forwardRef((ue,mt)=>{const{prefixCls:_e,className:lt,rootClassName:Mt,style:be,children:ge,icon:Ft,color:_t,onClose:Tt,bordered:xe=!0,visible:rt}=ue,qe=ct(ue,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:Gt,direction:at,tag:st}=y.useContext(pe.E_),[nt,rn]=y.useState(!0),kt=(0,je.Z)(qe,["closeIcon","closable"]);y.useEffect(()=>{rt!==void 0&&rn(rt)},[rt]);const ae=(0,ve.o2)(_t),re=(0,ve.yT)(_t),te=ae||re,oe=Object.assign(Object.assign({backgroundColor:_t&&!te?_t:void 0},st==null?void 0:st.style),be),de=Gt("tag",_e),[ne,se,Oe]=Ne(de),bt=ce()(de,st==null?void 0:st.className,{[`${de}-${_t}`]:te,[`${de}-has-color`]:_t&&!te,[`${de}-hidden`]:!nt,[`${de}-rtl`]:at==="rtl",[`${de}-borderless`]:!xe},lt,Mt,se,Oe),Ge=Ve=>{Ve.stopPropagation(),Tt==null||Tt(Ve),!Ve.defaultPrevented&&rn(!1)},[,We]=(0,me.Z)((0,me.w)(ue),(0,me.w)(st),{closable:!1,closeIconRender:Ve=>{const Ot=y.createElement("span",{className:`${de}-close-icon`,onClick:Ge},Ve);return(0,ye.wm)(Ve,Ot,Yt=>({onClick:un=>{var tn;(tn=Yt==null?void 0:Yt.onClick)===null||tn===void 0||tn.call(Yt,un),Ge(un)},className:ce()(Yt==null?void 0:Yt.className,`${de}-close-icon`)}))}}),it=typeof qe.onClick=="function"||ge&&ge.type==="a",ht=Ft||null,Pt=ht?y.createElement(y.Fragment,null,ht,ge&&y.createElement("span",null,ge)):ge,Le=y.createElement("span",Object.assign({},kt,{ref:mt,className:bt,style:oe}),Pt,We,ae&&y.createElement($e,{key:"preset",prefixCls:de}),re&&y.createElement(Qe,{key:"status",prefixCls:de}));return ne(it?y.createElement(Ae.Z,{component:"Tag"},Le):Le)});et.CheckableTag=Pe;var Te=et},18287:function(bn,zt,z){"use strict";z.d(zt,{default:function(){return Tt}});var y=z(3741),he=z(94480),ce=z(59301),je=z(52671),ve=z(8657),me=z(54476),ye={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"},Ae=ye,pe=z(7657),le=function(rt,qe){return ce.createElement(pe.Z,(0,me.Z)({},rt,{ref:qe,icon:Ae}))},Re=ce.forwardRef(le),Ie=Re,tt=z(92310),He=z.n(tt),Me=z(82661),Ee=z(34061),we=z(48755),Ne=z(56082),Xe=z(86641),ft=z(57700),Pe=z(12425);const Fe=4;function Ze(xe){const{dropPosition:rt,dropLevelOffset:qe,prefixCls:Gt,indent:at,direction:st="ltr"}=xe,nt=st==="ltr"?"left":"right",rn=st==="ltr"?"right":"left",kt={[nt]:-qe*at+Fe,[rn]:0};switch(rt){case-1:kt.top=-3;break;case 1:kt.bottom=-3;break;default:kt.bottom=-3,kt[nt]=at+Fe;break}return ce.createElement("div",{style:kt,className:`${Gt}-drop-indicator`})}var $e=Ze,gt=z(85278),Qe=ce.forwardRef((xe,rt)=>{var qe;const{getPrefixCls:Gt,direction:at,virtual:st,tree:nt}=ce.useContext(we.E_),{prefixCls:rn,className:kt,showIcon:ae=!1,showLine:re,switcherIcon:te,switcherLoadingIcon:oe,blockNode:de=!1,children:ne,checkable:se=!1,selectable:Oe=!0,draggable:bt,motion:Ge,style:We}=xe,it=Gt("tree",rn),ht=Gt(),Pt=Ge!=null?Ge:Object.assign(Object.assign({},(0,Xe.Z)(ht)),{motionAppear:!1}),Le=Object.assign(Object.assign({},xe),{checkable:se,selectable:Oe,showIcon:ae,motion:Pt,blockNode:de,showLine:!!re,dropIndicatorRender:$e}),[Ve,Ot,Yt]=(0,Pe.ZP)(it),[,un]=(0,ft.ZP)(),tn=un.paddingXS/2+(((qe=un.Tree)===null||qe===void 0?void 0:qe.titleHeight)||un.controlHeightSM),Lt=ce.useMemo(()=>{if(!bt)return!1;let $t={};switch(typeof bt){case"function":$t.nodeDraggable=bt;break;case"object":$t=Object.assign({},bt);break;default:break}return $t.icon!==!1&&($t.icon=$t.icon||ce.createElement(Ne.Z,null)),$t},[bt]),ln=$t=>ce.createElement(gt.Z,{prefixCls:it,switcherIcon:te,switcherLoadingIcon:oe,treeNodeProps:$t,showLine:re});return Ve(ce.createElement(y.ZP,Object.assign({itemHeight:tn,ref:rt,virtual:st},Le,{style:Object.assign(Object.assign({},nt==null?void 0:nt.style),We),prefixCls:it,className:He()({[`${it}-icon-hide`]:!ae,[`${it}-block-node`]:de,[`${it}-unselectable`]:!Oe,[`${it}-rtl`]:at==="rtl"},nt==null?void 0:nt.className,kt,Ot,Yt),direction:at,checkable:se&&ce.createElement("span",{className:`${it}-checkbox-inner`}),selectable:Oe,switcherIcon:ln,draggable:Lt}),ne))});const ct=0,Ce=1,et=2;function Te(xe,rt,qe){const{key:Gt,children:at}=qe;function st(nt){const rn=nt[Gt],kt=nt[at];rt(rn,nt)!==!1&&Te(kt||[],rt,qe)}xe.forEach(st)}function ue(xe){let{treeData:rt,expandedKeys:qe,startKey:Gt,endKey:at,fieldNames:st}=xe;const nt=[];let rn=ct;if(Gt&&Gt===at)return[Gt];if(!Gt||!at)return[];function kt(ae){return ae===Gt||ae===at}return Te(rt,ae=>{if(rn===et)return!1;if(kt(ae)){if(nt.push(ae),rn===ct)rn=Ce;else if(rn===Ce)return rn=et,!1}else rn===Ce&&nt.push(ae);return qe.includes(ae)},(0,Ee.w$)(st)),nt}function mt(xe,rt,qe){const Gt=(0,he.Z)(rt),at=[];return Te(xe,(st,nt)=>{const rn=Gt.indexOf(st);return rn!==-1&&(at.push(nt),Gt.splice(rn,1)),!!Gt.length},(0,Ee.w$)(qe)),at}var _e=function(xe,rt){var qe={};for(var Gt in xe)Object.prototype.hasOwnProperty.call(xe,Gt)&&rt.indexOf(Gt)<0&&(qe[Gt]=xe[Gt]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,Gt=Object.getOwnPropertySymbols(xe);at<Gt.length;at++)rt.indexOf(Gt[at])<0&&Object.prototype.propertyIsEnumerable.call(xe,Gt[at])&&(qe[Gt[at]]=xe[Gt[at]]);return qe};function lt(xe){const{isLeaf:rt,expanded:qe}=xe;return rt?ce.createElement(je.Z,null):qe?ce.createElement(ve.Z,null):ce.createElement(Ie,null)}function Mt(xe){let{treeData:rt,children:qe}=xe;return rt||(0,Ee.zn)(qe)}const be=(xe,rt)=>{var{defaultExpandAll:qe,defaultExpandParent:Gt,defaultExpandedKeys:at}=xe,st=_e(xe,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const nt=ce.useRef(null),rn=ce.useRef(null),kt=()=>{const{keyEntities:Ve}=(0,Ee.I8)(Mt(st));let Ot;return qe?Ot=Object.keys(Ve):Gt?Ot=(0,Me.r7)(st.expandedKeys||at||[],Ve):Ot=st.expandedKeys||at||[],Ot},[ae,re]=ce.useState(st.selectedKeys||st.defaultSelectedKeys||[]),[te,oe]=ce.useState(()=>kt());ce.useEffect(()=>{"selectedKeys"in st&&re(st.selectedKeys)},[st.selectedKeys]),ce.useEffect(()=>{"expandedKeys"in st&&oe(st.expandedKeys)},[st.expandedKeys]);const de=(Ve,Ot)=>{var Yt;return"expandedKeys"in st||oe(Ve),(Yt=st.onExpand)===null||Yt===void 0?void 0:Yt.call(st,Ve,Ot)},ne=(Ve,Ot)=>{var Yt;const{multiple:un,fieldNames:tn}=st,{node:Lt,nativeEvent:ln}=Ot,{key:$t=""}=Lt,ze=Mt(st),yt=Object.assign(Object.assign({},Ot),{selected:!0}),Ht=(ln==null?void 0:ln.ctrlKey)||(ln==null?void 0:ln.metaKey),en=ln==null?void 0:ln.shiftKey;let Ke;un&&Ht?(Ke=Ve,nt.current=$t,rn.current=Ke,yt.selectedNodes=mt(ze,Ke,tn)):un&&en?(Ke=Array.from(new Set([].concat((0,he.Z)(rn.current||[]),(0,he.Z)(ue({treeData:ze,expandedKeys:te,startKey:$t,endKey:nt.current,fieldNames:tn}))))),yt.selectedNodes=mt(ze,Ke,tn)):(Ke=[$t],nt.current=$t,rn.current=Ke,yt.selectedNodes=mt(ze,Ke,tn)),(Yt=st.onSelect)===null||Yt===void 0||Yt.call(st,Ke,yt),"selectedKeys"in st||re(Ke)},{getPrefixCls:se,direction:Oe}=ce.useContext(we.E_),{prefixCls:bt,className:Ge,showIcon:We=!0,expandAction:it="click"}=st,ht=_e(st,["prefixCls","className","showIcon","expandAction"]),Pt=se("tree",bt),Le=He()(`${Pt}-directory`,{[`${Pt}-directory-rtl`]:Oe==="rtl"},Ge);return ce.createElement(Qe,Object.assign({icon:lt,ref:rt,blockNode:!0},ht,{showIcon:We,expandAction:it,prefixCls:Pt,className:Le,expandedKeys:te,selectedKeys:ae,onSelect:ne,onExpand:de}))};var Ft=ce.forwardRef(be);const _t=Qe;_t.DirectoryTree=Ft,_t.TreeNode=y.OF;var Tt=_t},12425:function(bn,zt,z){"use strict";z.d(zt,{ZP:function(){return Me},Yk:function(){return Ie},TM:function(){return tt}});var y=z(36237),he=z(36170),ce=z(63356),je=z(34961),ve=z(51636),me=z(16931);const ye=Ee=>{let{treeCls:we,treeNodeCls:Ne,directoryNodeSelectedBg:Xe,directoryNodeSelectedColor:ft,motionDurationMid:Pe,borderRadius:Fe,controlItemBgHover:Ze}=Ee;return{[`${we}${we}-directory ${Ne}`]:{[`${we}-node-content-wrapper`]:{position:"static",[`> *:not(${we}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${Pe}`,content:'""',borderRadius:Fe},"&:hover:before":{background:Ze}},[`${we}-switcher, ${we}-checkbox, ${we}-draggable-icon`]:{zIndex:1},"&-selected":{[`${we}-switcher, ${we}-draggable-icon`]:{color:ft},[`${we}-node-content-wrapper`]:{color:ft,background:"transparent","&:before, &:hover:before":{background:Xe}}}}}},Ae=new y.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),pe=(Ee,we)=>({[`.${Ee}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${we.motionDurationSlow}`}}}),le=(Ee,we)=>({[`.${Ee}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:we.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${(0,y.unit)(we.lineWidthBold)} solid ${we.colorPrimary}`,borderRadius:"50%",content:'""'}}}),Re=(Ee,we)=>{const{treeCls:Ne,treeNodeCls:Xe,treeNodePadding:ft,titleHeight:Pe,indentSize:Fe,nodeSelectedBg:Ze,nodeHoverBg:$e,colorTextQuaternary:gt,controlItemBgActiveDisabled:ot}=we;return{[Ne]:Object.assign(Object.assign({},(0,ce.Wf)(we)),{background:we.colorBgContainer,borderRadius:we.borderRadius,transition:`background-color ${we.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${Ne}-rtl ${Ne}-switcher_close ${Ne}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${Ne}-active-focused)`]:Object.assign({},(0,ce.oN)(we)),[`${Ne}-list-holder-inner`]:{alignItems:"flex-start"},[`&${Ne}-block-node`]:{[`${Ne}-list-holder-inner`]:{alignItems:"stretch",[`${Ne}-node-content-wrapper`]:{flex:"auto"},[`${Xe}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${we.colorPrimary}`,opacity:0,animationName:Ae,animationDuration:we.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:we.borderRadius}}},[Xe]:{display:"flex",alignItems:"flex-start",marginBottom:ft,lineHeight:(0,y.unit)(Pe),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:ft},[`&-disabled ${Ne}-node-content-wrapper`]:{color:we.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${Ne}-checkbox-disabled + ${Ne}-node-selected,&${Xe}-disabled${Xe}-selected ${Ne}-node-content-wrapper`]:{backgroundColor:ot},[`${Ne}-checkbox-disabled`]:{pointerEvents:"unset"},[`&:not(${Xe}-disabled)`]:{[`${Ne}-node-content-wrapper`]:{"&:hover":{color:we.nodeHoverColor}}},[`&-active ${Ne}-node-content-wrapper`]:{background:we.controlItemBgHover},[`&:not(${Xe}-disabled).filter-node ${Ne}-title`]:{color:we.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",[`${Ne}-draggable-icon`]:{flexShrink:0,width:Pe,textAlign:"center",visibility:"visible",color:gt},[`&${Xe}-disabled ${Ne}-draggable-icon`]:{visibility:"hidden"}}},[`${Ne}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:Fe}},[`${Ne}-draggable-icon`]:{visibility:"hidden"},[`${Ne}-switcher, ${Ne}-checkbox`]:{marginInlineEnd:we.calc(we.calc(Pe).sub(we.controlInteractiveSize)).div(2).equal()},[`${Ne}-switcher`]:Object.assign(Object.assign({},pe(Ee,we)),{position:"relative",flex:"none",alignSelf:"stretch",width:Pe,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${we.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:Pe,height:Pe,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:we.borderRadius,transition:`all ${we.motionDurationSlow}`},[`&:not(${Ne}-switcher-noop):hover:before`]:{backgroundColor:we.colorBgTextHover},[`&_close ${Ne}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:we.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:we.calc(Pe).div(2).equal(),bottom:we.calc(ft).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${we.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:we.calc(we.calc(Pe).div(2).equal()).mul(.8).equal(),height:we.calc(Pe).div(2).equal(),borderBottom:`1px solid ${we.colorBorder}`,content:'""'}}}),[`${Ne}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:Pe,paddingBlock:0,paddingInline:we.paddingXS,background:"transparent",borderRadius:we.borderRadius,cursor:"pointer",transition:`all ${we.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},le(Ee,we)),{"&:hover":{backgroundColor:$e},[`&${Ne}-node-selected`]:{color:we.nodeSelectedColor,backgroundColor:Ze},[`${Ne}-iconEle`]:{display:"inline-block",width:Pe,height:Pe,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${Ne}-unselectable ${Ne}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${Xe}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${we.colorPrimary}`},"&-show-line":{[`${Ne}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:we.calc(Pe).div(2).equal(),bottom:we.calc(ft).mul(-1).equal(),borderInlineEnd:`1px solid ${we.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${Ne}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${Xe}-leaf-last ${Ne}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${(0,y.unit)(we.calc(Pe).div(2).equal())} !important`}})}},Ie=function(Ee,we){let Ne=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const Xe=`.${Ee}`,ft=`${Xe}-treenode`,Pe=we.calc(we.paddingXS).div(2).equal(),Fe=(0,ve.mergeToken)(we,{treeCls:Xe,treeNodeCls:ft,treeNodePadding:Pe});return[Re(Ee,Fe),Ne&&ye(Fe)].filter(Boolean)},tt=Ee=>{const{controlHeightSM:we,controlItemBgHover:Ne,controlItemBgActive:Xe}=Ee,ft=we;return{titleHeight:ft,indentSize:ft,nodeHoverBg:Ne,nodeHoverColor:Ee.colorText,nodeSelectedBg:Xe,nodeSelectedColor:Ee.colorText}},He=Ee=>{const{colorTextLightSolid:we,colorPrimary:Ne}=Ee;return Object.assign(Object.assign({},tt(Ee)),{directoryNodeSelectedColor:we,directoryNodeSelectedBg:Ne})};var Me=(0,me.I$)("Tree",(Ee,we)=>{let{prefixCls:Ne}=we;return[{[Ee.componentCls]:(0,he.C2)(`${Ne}-checkbox`,Ee)},Ie(Ne,Ee),(0,je.Z)(Ee)]},He)},85278:function(bn,zt,z){"use strict";z.d(zt,{Z:function(){return we}});var y=z(59301),he=z(54476),ce={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},je=ce,ve=z(7657),me=function(Xe,ft){return y.createElement(ve.Z,(0,he.Z)({},Xe,{ref:ft,icon:je}))},ye=y.forwardRef(me),Ae=ye,pe=z(52671),le=z(58617),Re=z(15075),Ie=z(43531),tt=z(92310),He=z.n(tt),Me=z(22703),we=Ne=>{const{prefixCls:Xe,switcherIcon:ft,treeNodeProps:Pe,showLine:Fe,switcherLoadingIcon:Ze}=Ne,{isLeaf:$e,expanded:gt,loading:ot}=Pe;if(ot)return y.isValidElement(Ze)?Ze:y.createElement(le.Z,{className:`${Xe}-switcher-loading-icon`});let Qe;if(Fe&&typeof Fe=="object"&&(Qe=Fe.showLeafIcon),$e){if(!Fe)return null;if(typeof Qe!="boolean"&&Qe){const et=typeof Qe=="function"?Qe(Pe):Qe,Te=`${Xe}-switcher-line-custom-icon`;return y.isValidElement(et)?(0,Me.Tm)(et,{className:He()(et.props.className||"",Te)}):et}return Qe?y.createElement(pe.Z,{className:`${Xe}-switcher-line-icon`}):y.createElement("span",{className:`${Xe}-switcher-leaf-line`})}const ct=`${Xe}-switcher-icon`,Ce=typeof ft=="function"?ft(Pe):ft;return y.isValidElement(Ce)?(0,Me.Tm)(Ce,{className:He()(Ce.props.className||"",ct)}):Ce!==void 0?Ce:Fe?gt?y.createElement(Re.Z,{className:`${Xe}-switcher-line-icon`}):y.createElement(Ie.Z,{className:`${Xe}-switcher-line-icon`}):y.createElement(Ae,{className:ct})}},99498:function(bn,zt,z){(function(y){y(z(89780))})(function(y){y.defineOption("placeholder","",function(Ae,pe,le){var Re=le&&le!=y.Init;if(pe&&!Re)Ae.on("blur",ve),Ae.on("change",me),Ae.on("swapDoc",me),y.on(Ae.getInputField(),"compositionupdate",Ae.state.placeholderCompose=function(){je(Ae)}),me(Ae);else if(!pe&&Re){Ae.off("blur",ve),Ae.off("change",me),Ae.off("swapDoc",me),y.off(Ae.getInputField(),"compositionupdate",Ae.state.placeholderCompose),he(Ae);var Ie=Ae.getWrapperElement();Ie.className=Ie.className.replace(" CodeMirror-empty","")}pe&&!Ae.hasFocus()&&ve(Ae)});function he(Ae){Ae.state.placeholder&&(Ae.state.placeholder.parentNode.removeChild(Ae.state.placeholder),Ae.state.placeholder=null)}function ce(Ae){he(Ae);var pe=Ae.state.placeholder=document.createElement("pre");pe.style.cssText="height: 0; overflow: visible",pe.style.direction=Ae.getOption("direction"),pe.className="CodeMirror-placeholder CodeMirror-line-like";var le=Ae.getOption("placeholder");typeof le=="string"&&(le=document.createTextNode(le)),pe.appendChild(le),Ae.display.lineSpace.insertBefore(pe,Ae.display.lineSpace.firstChild)}function je(Ae){setTimeout(function(){var pe=!1,le=Ae.getInputField();le.nodeName=="TEXTAREA"?pe=!le.value:Ae.lineCount()==1&&(pe=!/[^\u200b]/.test(le.querySelector(".CodeMirror-line").textContent)),pe?ce(Ae):he(Ae)},20)}function ve(Ae){ye(Ae)&&ce(Ae)}function me(Ae){var pe=Ae.getWrapperElement(),le=ye(Ae);pe.className=pe.className.replace(" CodeMirror-empty","")+(le?" CodeMirror-empty":""),le?ce(Ae):he(Ae)}function ye(Ae){return Ae.lineCount()===1&&Ae.getLine(0)===""}})},25717:function(bn,zt,z){(function(y){y(z(89780))})(function(y){var he={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},ce=y.Pos;y.defineOption("autoCloseBrackets",!1,function(Me,Ee,we){we&&we!=y.Init&&(Me.removeKeyMap(ve),Me.state.closeBrackets=null),Ee&&(me(je(Ee,"pairs")),Me.state.closeBrackets=Ee,Me.addKeyMap(ve))});function je(Me,Ee){return Ee=="pairs"&&typeof Me=="string"?Me:typeof Me=="object"&&Me[Ee]!=null?Me[Ee]:he[Ee]}var ve={Backspace:pe,Enter:le};function me(Me){for(var Ee=0;Ee<Me.length;Ee++){var we=Me.charAt(Ee),Ne="'"+we+"'";ve[Ne]||(ve[Ne]=ye(we))}}me(he.pairs+"`");function ye(Me){return function(Ee){return Ie(Ee,Me)}}function Ae(Me){var Ee=Me.state.closeBrackets;if(!Ee||Ee.override)return Ee;var we=Me.getModeAt(Me.getCursor());return we.closeBrackets||Ee}function pe(Me){var Ee=Ae(Me);if(!Ee||Me.getOption("disableInput"))return y.Pass;for(var we=je(Ee,"pairs"),Ne=Me.listSelections(),Xe=0;Xe<Ne.length;Xe++){if(!Ne[Xe].empty())return y.Pass;var ft=tt(Me,Ne[Xe].head);if(!ft||we.indexOf(ft)%2!=0)return y.Pass}for(var Xe=Ne.length-1;Xe>=0;Xe--){var Pe=Ne[Xe].head;Me.replaceRange("",ce(Pe.line,Pe.ch-1),ce(Pe.line,Pe.ch+1),"+delete")}}function le(Me){var Ee=Ae(Me),we=Ee&&je(Ee,"explode");if(!we||Me.getOption("disableInput"))return y.Pass;for(var Ne=Me.listSelections(),Xe=0;Xe<Ne.length;Xe++){if(!Ne[Xe].empty())return y.Pass;var ft=tt(Me,Ne[Xe].head);if(!ft||we.indexOf(ft)%2!=0)return y.Pass}Me.operation(function(){var Pe=Me.lineSeparator()||`
`;Me.replaceSelection(Pe+Pe,null),Me.execCommand("goCharLeft"),Ne=Me.listSelections();for(var Fe=0;Fe<Ne.length;Fe++){var Ze=Ne[Fe].head.line;Me.indentLine(Ze,null,!0),Me.indentLine(Ze+1,null,!0)}})}function Re(Me){var Ee=y.cmpPos(Me.anchor,Me.head)>0;return{anchor:new ce(Me.anchor.line,Me.anchor.ch+(Ee?-1:1)),head:new ce(Me.head.line,Me.head.ch+(Ee?1:-1))}}function Ie(Me,Ee){var we=Ae(Me);if(!we||Me.getOption("disableInput"))return y.Pass;var Ne=je(we,"pairs"),Xe=Ne.indexOf(Ee);if(Xe==-1)return y.Pass;for(var ft=je(we,"closeBefore"),Pe=je(we,"triples"),Fe=Ne.charAt(Xe+1)==Ee,Ze=Me.listSelections(),$e=Xe%2==0,gt,ot=0;ot<Ze.length;ot++){var Qe=Ze[ot],ct=Qe.head,Ce,et=Me.getRange(ct,ce(ct.line,ct.ch+1));if($e&&!Qe.empty())Ce="surround";else if((Fe||!$e)&&et==Ee)Fe&&He(Me,ct)?Ce="both":Pe.indexOf(Ee)>=0&&Me.getRange(ct,ce(ct.line,ct.ch+3))==Ee+Ee+Ee?Ce="skipThree":Ce="skip";else if(Fe&&ct.ch>1&&Pe.indexOf(Ee)>=0&&Me.getRange(ce(ct.line,ct.ch-2),ct)==Ee+Ee){if(ct.ch>2&&/\bstring/.test(Me.getTokenTypeAt(ce(ct.line,ct.ch-2))))return y.Pass;Ce="addFour"}else if(Fe){var Te=ct.ch==0?" ":Me.getRange(ce(ct.line,ct.ch-1),ct);if(!y.isWordChar(et)&&Te!=Ee&&!y.isWordChar(Te))Ce="both";else return y.Pass}else if($e&&(et.length===0||/\s/.test(et)||ft.indexOf(et)>-1))Ce="both";else return y.Pass;if(!gt)gt=Ce;else if(gt!=Ce)return y.Pass}var ue=Xe%2?Ne.charAt(Xe-1):Ee,mt=Xe%2?Ee:Ne.charAt(Xe+1);Me.operation(function(){if(gt=="skip")Me.execCommand("goCharRight");else if(gt=="skipThree")for(var _e=0;_e<3;_e++)Me.execCommand("goCharRight");else if(gt=="surround"){for(var lt=Me.getSelections(),_e=0;_e<lt.length;_e++)lt[_e]=ue+lt[_e]+mt;Me.replaceSelections(lt,"around"),lt=Me.listSelections().slice();for(var _e=0;_e<lt.length;_e++)lt[_e]=Re(lt[_e]);Me.setSelections(lt)}else gt=="both"?(Me.replaceSelection(ue+mt,null),Me.triggerElectric(ue+mt),Me.execCommand("goCharLeft")):gt=="addFour"&&(Me.replaceSelection(ue+ue+ue+ue,"before"),Me.execCommand("goCharRight"))})}function tt(Me,Ee){var we=Me.getRange(ce(Ee.line,Ee.ch-1),ce(Ee.line,Ee.ch+1));return we.length==2?we:null}function He(Me,Ee){var we=Me.getTokenAt(ce(Ee.line,Ee.ch+1));return/\bstring/.test(we.type)&&we.start==Ee.ch&&(Ee.ch==0||!/\bstring/.test(Me.getTokenTypeAt(Ee)))}})},6313:function(bn,zt,z){(function(y){y(z(89780),z(32855))})(function(y){y.defineOption("autoCloseTags",!1,function(pe,le,Re){if(Re!=y.Init&&Re&&pe.removeKeyMap("autoCloseTags"),!!le){var Ie={name:"autoCloseTags"};(typeof le!="object"||le.whenClosing!==!1)&&(Ie["'/'"]=function(tt){return me(tt)}),(typeof le!="object"||le.whenOpening!==!1)&&(Ie["'>'"]=function(tt){return je(tt)}),pe.addKeyMap(Ie)}});var he=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],ce=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function je(pe){if(pe.getOption("disableInput"))return y.Pass;for(var le=pe.listSelections(),Re=[],Ie=pe.getOption("autoCloseTags"),tt=0;tt<le.length;tt++){if(!le[tt].empty())return y.Pass;var He=le[tt].head,Me=pe.getTokenAt(He),Ee=y.innerMode(pe.getMode(),Me.state),we=Ee.state,Ne=Ee.mode.xmlCurrentTag&&Ee.mode.xmlCurrentTag(we),Xe=Ne&&Ne.name;if(!Xe)return y.Pass;var ft=Ee.mode.configuration=="html",Pe=typeof Ie=="object"&&Ie.dontCloseTags||ft&&he,Fe=typeof Ie=="object"&&Ie.indentTags||ft&&ce;Me.end>He.ch&&(Xe=Xe.slice(0,Xe.length-Me.end+He.ch));var Ze=Xe.toLowerCase();if(!Xe||Me.type=="string"&&(Me.end!=He.ch||!/[\"\']/.test(Me.string.charAt(Me.string.length-1))||Me.string.length==1)||Me.type=="tag"&&Ne.close||Me.string.indexOf("/")==He.ch-Me.start-1||Pe&&ye(Pe,Ze)>-1||Ae(pe,Ee.mode.xmlCurrentContext&&Ee.mode.xmlCurrentContext(we)||[],Xe,He,!0))return y.Pass;var $e=typeof Ie=="object"&&Ie.emptyTags;if($e&&ye($e,Xe)>-1){Re[tt]={text:"/>",newPos:y.Pos(He.line,He.ch+2)};continue}var gt=Fe&&ye(Fe,Ze)>-1;Re[tt]={indent:gt,text:">"+(gt?`
`:"")+"</"+Xe+">",newPos:gt?y.Pos(He.line+1,0):y.Pos(He.line,He.ch+1)}}for(var ot=typeof Ie=="object"&&Ie.dontIndentOnAutoClose,tt=le.length-1;tt>=0;tt--){var Qe=Re[tt];pe.replaceRange(Qe.text,le[tt].head,le[tt].anchor,"+insert");var ct=pe.listSelections().slice(0);ct[tt]={head:Qe.newPos,anchor:Qe.newPos},pe.setSelections(ct),!ot&&Qe.indent&&(pe.indentLine(Qe.newPos.line,null,!0),pe.indentLine(Qe.newPos.line+1,null,!0))}}function ve(pe,le){for(var Re=pe.listSelections(),Ie=[],tt=le?"/":"</",He=pe.getOption("autoCloseTags"),Me=typeof He=="object"&&He.dontIndentOnSlash,Ee=0;Ee<Re.length;Ee++){if(!Re[Ee].empty())return y.Pass;var we=Re[Ee].head,Ne=pe.getTokenAt(we),Xe=y.innerMode(pe.getMode(),Ne.state),ft=Xe.state;if(le&&(Ne.type=="string"||Ne.string.charAt(0)!="<"||Ne.start!=we.ch-1))return y.Pass;var Pe,Fe=Xe.mode.name!="xml"&&pe.getMode().name=="htmlmixed";if(Fe&&Xe.mode.name=="javascript")Pe=tt+"script";else if(Fe&&Xe.mode.name=="css")Pe=tt+"style";else{var Ze=Xe.mode.xmlCurrentContext&&Xe.mode.xmlCurrentContext(ft);if(!Ze||Ze.length&&Ae(pe,Ze,Ze[Ze.length-1],we))return y.Pass;Pe=tt+Ze[Ze.length-1]}pe.getLine(we.line).charAt(Ne.end)!=">"&&(Pe+=">"),Ie[Ee]=Pe}if(pe.replaceSelections(Ie),Re=pe.listSelections(),!Me)for(var Ee=0;Ee<Re.length;Ee++)(Ee==Re.length-1||Re[Ee].head.line<Re[Ee+1].head.line)&&pe.indentLine(Re[Ee].head.line)}function me(pe){return pe.getOption("disableInput")?y.Pass:ve(pe,!0)}y.commands.closeTag=function(pe){return ve(pe)};function ye(pe,le){if(pe.indexOf)return pe.indexOf(le);for(var Re=0,Ie=pe.length;Re<Ie;++Re)if(pe[Re]==le)return Re;return-1}function Ae(pe,le,Re,Ie,tt){if(!y.scanForClosingTag)return!1;var He=Math.min(pe.lastLine()+1,Ie.line+500),Me=y.scanForClosingTag(pe,Ie,null,He);if(!Me||Me.tag!=Re)return!1;for(var Ee=tt?1:0,we=le.length-1;we>=0&&le[we]==Re;we--)++Ee;Ie=Me.to;for(var we=1;we<Ee;we++){var Ne=y.scanForClosingTag(pe,Ie,null,He);if(!Ne||Ne.tag!=Re)return!1;Ie=Ne.to}return!0}})},32855:function(bn,zt,z){(function(y){y(z(89780))})(function(y){"use strict";var he=y.Pos;function ce(we,Ne){return we.line-Ne.line||we.ch-Ne.ch}var je="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",ve=je+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",me=new RegExp("<(/?)(["+je+"]["+ve+"]*)","g");function ye(we,Ne,Xe,ft){this.line=Ne,this.ch=Xe,this.cm=we,this.text=we.getLine(Ne),this.min=ft?Math.max(ft.from,we.firstLine()):we.firstLine(),this.max=ft?Math.min(ft.to-1,we.lastLine()):we.lastLine()}function Ae(we,Ne){var Xe=we.cm.getTokenTypeAt(he(we.line,Ne));return Xe&&/\btag\b/.test(Xe)}function pe(we){if(!(we.line>=we.max))return we.ch=0,we.text=we.cm.getLine(++we.line),!0}function le(we){if(!(we.line<=we.min))return we.text=we.cm.getLine(--we.line),we.ch=we.text.length,!0}function Re(we){for(;;){var Ne=we.text.indexOf(">",we.ch);if(Ne==-1){if(pe(we))continue;return}if(!Ae(we,Ne+1)){we.ch=Ne+1;continue}var Xe=we.text.lastIndexOf("/",Ne),ft=Xe>-1&&!/\S/.test(we.text.slice(Xe+1,Ne));return we.ch=Ne+1,ft?"selfClose":"regular"}}function Ie(we){for(;;){var Ne=we.ch?we.text.lastIndexOf("<",we.ch-1):-1;if(Ne==-1){if(le(we))continue;return}if(!Ae(we,Ne+1)){we.ch=Ne;continue}me.lastIndex=Ne,we.ch=Ne;var Xe=me.exec(we.text);if(Xe&&Xe.index==Ne)return Xe}}function tt(we){for(;;){me.lastIndex=we.ch;var Ne=me.exec(we.text);if(!Ne){if(pe(we))continue;return}if(!Ae(we,Ne.index+1)){we.ch=Ne.index+1;continue}return we.ch=Ne.index+Ne[0].length,Ne}}function He(we){for(;;){var Ne=we.ch?we.text.lastIndexOf(">",we.ch-1):-1;if(Ne==-1){if(le(we))continue;return}if(!Ae(we,Ne+1)){we.ch=Ne;continue}var Xe=we.text.lastIndexOf("/",Ne),ft=Xe>-1&&!/\S/.test(we.text.slice(Xe+1,Ne));return we.ch=Ne+1,ft?"selfClose":"regular"}}function Me(we,Ne){for(var Xe=[];;){var ft=tt(we),Pe,Fe=we.line,Ze=we.ch-(ft?ft[0].length:0);if(!ft||!(Pe=Re(we)))return;if(Pe!="selfClose")if(ft[1]){for(var $e=Xe.length-1;$e>=0;--$e)if(Xe[$e]==ft[2]){Xe.length=$e;break}if($e<0&&(!Ne||Ne==ft[2]))return{tag:ft[2],from:he(Fe,Ze),to:he(we.line,we.ch)}}else Xe.push(ft[2])}}function Ee(we,Ne){for(var Xe=[];;){var ft=He(we);if(!ft)return;if(ft=="selfClose"){Ie(we);continue}var Pe=we.line,Fe=we.ch,Ze=Ie(we);if(!Ze)return;if(Ze[1])Xe.push(Ze[2]);else{for(var $e=Xe.length-1;$e>=0;--$e)if(Xe[$e]==Ze[2]){Xe.length=$e;break}if($e<0&&(!Ne||Ne==Ze[2]))return{tag:Ze[2],from:he(we.line,we.ch),to:he(Pe,Fe)}}}}y.registerHelper("fold","xml",function(we,Ne){for(var Xe=new ye(we,Ne.line,0);;){var ft=tt(Xe);if(!ft||Xe.line!=Ne.line)return;var Pe=Re(Xe);if(!Pe)return;if(!ft[1]&&Pe!="selfClose"){var Fe=he(Xe.line,Xe.ch),Ze=Me(Xe,ft[2]);return Ze&&ce(Ze.from,Fe)>0?{from:Fe,to:Ze.from}:null}}}),y.findMatchingTag=function(we,Ne,Xe){var ft=new ye(we,Ne.line,Ne.ch,Xe);if(!(ft.text.indexOf(">")==-1&&ft.text.indexOf("<")==-1)){var Pe=Re(ft),Fe=Pe&&he(ft.line,ft.ch),Ze=Pe&&Ie(ft);if(!(!Pe||!Ze||ce(ft,Ne)>0)){var $e={from:he(ft.line,ft.ch),to:Fe,tag:Ze[2]};return Pe=="selfClose"?{open:$e,close:null,at:"open"}:Ze[1]?{open:Ee(ft,Ze[2]),close:$e,at:"close"}:(ft=new ye(we,Fe.line,Fe.ch,Xe),{open:$e,close:Me(ft,Ze[2]),at:"open"})}}},y.findEnclosingTag=function(we,Ne,Xe,ft){for(var Pe=new ye(we,Ne.line,Ne.ch,Xe);;){var Fe=Ee(Pe,ft);if(!Fe)break;var Ze=new ye(we,Ne.line,Ne.ch,Xe),$e=Me(Ze,Fe.tag);if($e)return{open:Fe,close:$e}}},y.scanForClosingTag=function(we,Ne,Xe,ft){var Pe=new ye(we,Ne.line,Ne.ch,ft?{from:0,to:ft}:null);return Me(Pe,Xe)}})},89780:function(bn){(function(zt,z){bn.exports=z()})(this,function(){"use strict";var zt=navigator.userAgent,z=navigator.platform,y=/gecko\/\d/i.test(zt),he=/MSIE \d/.test(zt),ce=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(zt),je=/Edge\/(\d+)/.exec(zt),ve=he||ce||je,me=ve&&(he?document.documentMode||6:+(je||ce)[1]),ye=!je&&/WebKit\//.test(zt),Ae=ye&&/Qt\/\d+\.\d+/.test(zt),pe=!je&&/Chrome\//.test(zt),le=/Opera\//.test(zt),Re=/Apple Computer/.test(navigator.vendor),Ie=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(zt),tt=/PhantomJS/.test(zt),He=!je&&/AppleWebKit/.test(zt)&&/Mobile\/\w+/.test(zt),Me=/Android/.test(zt),Ee=He||Me||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(zt),we=He||/Mac/.test(z),Ne=/\bCrOS\b/.test(zt),Xe=/win/i.test(z),ft=le&&zt.match(/Version\/(\d*\.\d*)/);ft&&(ft=Number(ft[1])),ft&&ft>=15&&(le=!1,ye=!0);var Pe=we&&(Ae||le&&(ft==null||ft<12.11)),Fe=y||ve&&me>=9;function Ze(a){return new RegExp("(^|\\s)"+a+"(?:$|\\s)\\s*")}var $e=function(a,b){var x=a.className,E=Ze(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 gt(a){for(var b=a.childNodes.length;b>0;--b)a.removeChild(a.firstChild);return a}function ot(a,b){return gt(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 ie=0;ie<b.length;++ie)ee.appendChild(b[ie]);return ee}function ct(a,b,x,E){var ee=Qe(a,b,x,E);return ee.setAttribute("role","presentation"),ee}var Ce;document.createRange?Ce=function(a,b,x,E){var ee=document.createRange();return ee.setEnd(E||a,x),ee.setStart(a,b),ee}:Ce=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 Te(){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;Ze(b).test(x)||(a.className+=(x?" ":"")+b)}function mt(a,b){for(var x=a.split(" "),E=0;E<x.length;E++)x[E]&&!Ze(x[E]).test(b)&&(b+=" "+x[E]);return b}var _e=function(a){a.select()};He?_e=function(a){a.selectionStart=0,a.selectionEnd=a.value.length}:ve&&(_e=function(a){try{a.select()}catch(b){}});function lt(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 be(a,b,x,E,ee){b==null&&(b=a.search(/[^\s\u00a0]/),b==-1&&(b=a.length));for(var ie=E||0,fe=ee||0;;){var Se=a.indexOf(" ",ie);if(Se<0||Se>=b)return fe+(b-ie);fe+=Se-ie,fe+=x-fe%x,ie=Se+1}}var ge=function(){this.id=null,this.f=null,this.time=0,this.handler=lt(this.onTimeout,this)};ge.prototype.onTimeout=function(a){a.id=0,a.time<=+new Date?a.f():setTimeout(a.handler,a.time-+new Date)},ge.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 Ft(a,b){for(var x=0;x<a.length;++x)if(a[x]==b)return x;return-1}var _t=50,Tt={toString:function(){return"CodeMirror.Pass"}},xe={scroll:!1},rt={origin:"*mouse"},qe={origin:"+move"};function Gt(a,b,x){for(var E=0,ee=0;;){var ie=a.indexOf(" ",E);ie==-1&&(ie=a.length);var fe=ie-E;if(ie==a.length||ee+fe>=b)return E+Math.min(fe,b-ee);if(ee+=ie-E,ee+=x-ee%x,E=ie+1,ee>=b)return E}}var at=[""];function st(a){for(;at.length<=a;)at.push(nt(at)+" ");return at[a]}function nt(a){return a[a.length-1]}function rn(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 oe(a){return/\w/.test(a)||a>"\x80"&&(a.toUpperCase()!=a.toLowerCase()||te.test(a))}function de(a,b){return b?b.source.indexOf("\\w")>-1&&oe(a)?!0:b.test(a):oe(a)}function ne(a){for(var b in a)if(a.hasOwnProperty(b)&&a[b])return!1;return!0}var se=/[\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 Oe(a){return a.charCodeAt(0)>=768&&se.test(a)}function bt(a,b,x){for(;(x<0?b>0:b<a.length)&&Oe(a.charAt(b));)b+=x;return b}function Ge(a,b,x){for(var E=b>x?-1:1;;){if(b==x)return b;var ee=(b+x)/2,ie=E<0?Math.ceil(ee):Math.floor(ee);if(ie==b)return a(ie)?b:x;a(ie)?x=ie:b=ie+E}}function We(a,b,x,E){if(!a)return E(b,x,"ltr",0);for(var ee=!1,ie=0;ie<a.length;++ie){var fe=a[ie];(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",ie),ee=!0)}ee||E(b,x,"ltr")}var it=null;function ht(a,b,x){var E;it=null;for(var ee=0;ee<a.length;++ee){var ie=a[ee];if(ie.from<b&&ie.to>b)return ee;ie.to==b&&(ie.from!=ie.to&&x=="before"?E=ee:it=ee),ie.from==b&&(ie.from!=ie.to&&x!="before"?E=ee:it=ee)}return E!=null?E:it}var Pt=function(){var a="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",b="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function x(Ye){return Ye<=247?a.charAt(Ye):1424<=Ye&&Ye<=1524?"R":1536<=Ye&&Ye<=1785?b.charAt(Ye-1536):1774<=Ye&&Ye<=2220?"r":8192<=Ye&&Ye<=8203?"w":Ye==8204?"b":"L"}var E=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,ee=/[stwN]/,ie=/[LRr]/,fe=/[Lb1n]/,Se=/[1n]/;function ke(Ye,Xt,nn){this.level=Ye,this.from=Xt,this.to=nn}return function(Ye,Xt){var nn=Xt=="ltr"?"L":"R";if(Ye.length==0||Xt=="ltr"&&!E.test(Ye))return!1;for(var An=Ye.length,Sn=[],tr=0;tr<An;++tr)Sn.push(x(Ye.charCodeAt(tr)));for(var vr=0,Ir=nn;vr<An;++vr){var Gr=Sn[vr];Gr=="m"?Sn[vr]=Ir:Ir=Gr}for(var mo=0,Xr=nn;mo<An;++mo){var Do=Sn[mo];Do=="1"&&Xr=="r"?Sn[mo]="n":ie.test(Do)&&(Xr=Do,Do=="r"&&(Sn[mo]="R"))}for(var ii=1,Uo=Sn[0];ii<An-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<An;++ca){var Xa=Sn[ca];if(Xa==",")Sn[ca]="N";else if(Xa=="%"){var Fa=void 0;for(Fa=ca+1;Fa<An&&Sn[Fa]=="%";++Fa);for(var Fl=ca&&Sn[ca-1]=="!"||Fa<An&&Sn[Fa]=="1"?"1":"N",yl=ca;yl<Fa;++yl)Sn[yl]=Fl;ca=Fa-1}}for(var Za=0,bl=nn;Za<An;++Za){var rl=Sn[Za];bl=="L"&&rl=="1"?Sn[Za]="L":ie.test(rl)&&(bl=rl)}for(var za=0;za<An;++za)if(ee.test(Sn[za])){var _a=void 0;for(_a=za+1;_a<An&&ee.test(Sn[_a]);++_a);for(var Oa=(za?Sn[za-1]:nn)=="L",Cl=(_a<An?Sn[_a]:nn)=="L",Xs=Oa==Cl?Oa?"L":"R":nn,Ds=za;Ds<_a;++Ds)Sn[Ds]=Xs;za=_a-1}for(var ul=[],os,Ya=0;Ya<An;)if(fe.test(Sn[Ya])){var Ou=Ya;for(++Ya;Ya<An&&fe.test(Sn[Ya]);++Ya);ul.push(new ke(0,Ou,Ya))}else{var ys=Ya,Ts=ul.length,ks=Xt=="rtl"?1:0;for(++Ya;Ya<An&&Sn[Ya]!="L";++Ya);for(var ml=ys;ml<Ya;)if(Se.test(Sn[ml])){ys<ml&&(ul.splice(Ts,0,new ke(1,ys,ml)),Ts+=ks);var Ys=ml;for(++ml;ml<Ya&&Se.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 Xt=="ltr"&&(ul[0].level==1&&(os=Ye.match(/^\s+/))&&(ul[0].from=os[0].length,ul.unshift(new ke(0,0,os[0].length))),nt(ul).level==1&&(os=Ye.match(/\s+$/))&&(nt(ul).to-=os[0].length,ul.push(new ke(0,An-os[0].length,An)))),Xt=="rtl"?ul.reverse():ul}}();function Le(a,b){var x=a.order;return x==null&&(x=a.order=Pt(a.text,b)),x}var Ve=[],Ot=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]||Ve).concat(x)}};function Yt(a,b){return a._handlers&&a._handlers[b]||Ve}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 ie=Ft(ee,x);ie>-1&&(E[b]=ee.slice(0,ie).concat(ee.slice(ie+1)))}}}function tn(a,b){var x=Yt(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 Lt(a,b,x){return typeof b=="string"&&(b={type:b,preventDefault:function(){this.defaultPrevented=!0}}),tn(a,x||b.type,a,b),en(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)Ft(x,b[E])==-1&&x.push(b[E])}function $t(a,b){return Yt(a,b).length>0}function ze(a){a.prototype.on=function(b,x){Ot(this,b,x)},a.prototype.off=function(b,x){un(this,b,x)}}function yt(a){a.preventDefault?a.preventDefault():a.returnValue=!1}function Ht(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0}function en(a){return a.defaultPrevented!=null?a.defaultPrevented:a.returnValue==!1}function Ke(a){yt(a),Ht(a)}function xt(a){return a.target||a.srcElement}function Zt(a){var b=a.which;return b==null&&(a.button&1?b=1:a.button&2?b=3:a.button&4&&(b=2)),we&&a.ctrlKey&&b==1&&(b=3),b}var dt=function(){if(ve&&me<9)return!1;var a=Qe("div");return"draggable"in a||"dragDrop"in a}(),At;function Ut(a){if(At==null){var b=Qe("span","\u200B");ot(a,Qe("span",[b,document.createTextNode("x")])),a.firstChild.offsetHeight!=0&&(At=b.offsetWidth<=1&&b.offsetHeight>2&&!(ve&&me<8))}var x=At?Qe("span","\u200B"):Qe("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return x.setAttribute("cm-text",""),x}var pn;function On(a){if(pn!=null)return pn;var b=ot(a,document.createTextNode("A\u062EA")),x=Ce(b,0,1).getBoundingClientRect(),E=Ce(b,1,2).getBoundingClientRect();return gt(a),!x||x.left==x.right?!1:pn=E.right-x.right<3}var mn=`
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 ie=a.slice(b,a.charAt(ee-1)=="\r"?ee-1:ee),fe=ie.indexOf("\r");fe!=-1?(x.push(ie.slice(0,fe)),b+=fe+1):(x.push(ie),b=ee+1)}return x}:function(a){return a.split(/\r\n?|\n/)},Bn=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},Dt=function(){var a=Qe("div");return"oncopy"in a?!0:(a.setAttribute("oncopy","return;"),typeof a.oncopy=="function")}(),hn=null;function Wt(a){if(hn!=null)return hn;var b=ot(a,Qe("span","x")),x=b.getBoundingClientRect(),E=Ce(b,0,1).getBoundingClientRect();return hn=Math.abs(x.left-E.left)>1}var an={},Vt={};function cn(a,b){arguments.length>2&&(b.dependencies=Array.prototype.slice.call(arguments,2)),an[a]=b}function on(a,b){Vt[a]=b}function Zn(a){if(typeof a=="string"&&Vt.hasOwnProperty(a))a=Vt[a];else if(a&&typeof a.name=="string"&&Vt.hasOwnProperty(a.name)){var b=Vt[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 Zn("application/xml");if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(a))return Zn("application/json")}return typeof a=="string"?{name:a}:a||{name:"null"}}function _n(a,b){b=Zn(b);var x=an[b.name];if(!x)return _n(a,"text/plain");var E=x(a,b);if(Nn.hasOwnProperty(b.name)){var ee=Nn[b.name];for(var ie in ee)ee.hasOwnProperty(ie)&&(E.hasOwnProperty(ie)&&(E["_"+ie]=E[ie]),E[ie]=ee[ie])}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 Nn={};function jn(a,b){var x=Nn.hasOwnProperty(a)?Nn[a]:Nn[a]={};Mt(b,x)}function Gn(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 $n(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 lr(a,b,x){return a.startState?a.startState(b,x):!0}var nr=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};nr.prototype.eol=function(){return this.pos>=this.string.length},nr.prototype.sol=function(){return this.pos==this.lineStart},nr.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},nr.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},nr.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},nr.prototype.eatWhile=function(a){for(var b=this.pos;this.eat(a););return this.pos>b},nr.prototype.eatSpace=function(){for(var a=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>a},nr.prototype.skipToEnd=function(){this.pos=this.string.length},nr.prototype.skipTo=function(a){var b=this.string.indexOf(a,this.pos);if(b>-1)return this.pos=b,!0},nr.prototype.backUp=function(a){this.pos-=a},nr.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=be(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?be(this.string,this.lineStart,this.tabSize):0)},nr.prototype.indentation=function(){return be(this.string,null,this.tabSize)-(this.lineStart?be(this.string,this.lineStart,this.tabSize):0)},nr.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 ie=this.string.slice(this.pos).match(a);return ie&&ie.index>0?null:(ie&&b!==!1&&(this.pos+=ie[0].length),ie)}},nr.prototype.current=function(){return this.string.slice(this.start,this.pos)},nr.prototype.hideFirstChars=function(a,b){this.lineStart+=a;try{return b()}finally{this.lineStart-=a}},nr.prototype.lookAhead=function(a){var b=this.lineOracle;return b&&b.lookAhead(a)},nr.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],ie=ee.chunkSize();if(b<ie){x=ee;break}b-=ie}return x.lines[b]}function Cn(a,b,x){var E=[],ee=b.line;return a.iter(b.line,x.line+1,function(ie){var fe=ie.text;ee==x.line&&(fe=fe.slice(0,x.ch)),ee==b.line&&(fe=fe.slice(b.ch)),E.push(fe),++ee}),E}function Hn(a,b,x){var E=[];return a.iter(b,x,function(ee){E.push(ee.text)}),E}function Kn(a,b){var x=b-a.height;if(x)for(var E=a;E;E=E.parent)E.height+=x}function Et(a){if(a.parent==null)return null;for(var b=a.parent,x=Ft(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 Rt(a,b){var x=a.first;e:do{for(var E=0;E<a.children.length;++E){var ee=a.children[E],ie=ee.height;if(b<ie){a=ee;continue e}b-=ie,x+=ee.chunkSize()}return x}while(!a.lines);for(var fe=0;fe<a.lines.length;++fe){var Se=a.lines[fe],ke=Se.height;if(b<ke)break;b-=ke}return x+fe}function Je(a,b){return b>=a.first&&b<a.first+a.size}function Bt(a,b){return String(a.lineNumberFormatter(b+a.firstLineNumber))}function Ue(a,b,x){if(x===void 0&&(x=null),!(this instanceof Ue))return new Ue(a,b,x);this.line=a,this.ch=b,this.sticky=x}function Nt(a,b){return a.line-b.line||a.ch-b.ch}function Jt(a,b){return a.sticky==b.sticky&&Nt(a,b)==0}function Ln(a){return Ue(a.line,a.ch)}function zn(a,b){return Nt(a,b)<0?b:a}function pt(a,b){return Nt(a,b)<0?a:b}function Ct(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 Ue(a.first,0);var x=a.first+a.size-1;return b.line>x?Ue(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?Ue(a.line,b):x<0?Ue(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 wn=function(a,b){this.state=a,this.lookAhead=b},Pn=function(a,b,x,E){this.state=b,this.doc=a,this.line=x,this.maxLookAhead=E||0,this.baseTokens=null,this.baseTokenPos=1};Pn.prototype.lookAhead=function(a){var b=this.doc.getLine(this.line+a);return b!=null&&a>this.maxLookAhead&&(this.maxLookAhead=a),b},Pn.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}},Pn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Pn.fromSaved=function(a,b,x){return b instanceof wn?new Pn(a,Gn(a.mode,b.state),x,b.lookAhead):new Pn(a,Gn(a.mode,b),x)},Pn.prototype.save=function(a){var b=a!==!1?Gn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new wn(b,this.maxLookAhead):b};function In(a,b,x,E){var ee=[a.state.modeGen],ie={};br(a,b.text,a.doc.mode,x,function(Ye,Xt){return ee.push(Ye,Xt)},ie,E);for(var fe=x.state,Se=function(Ye){x.baseTokens=ee;var Xt=a.state.overlays[Ye],nn=1,An=0;x.state=!0,br(a,b.text,Xt.mode,x,function(Sn,tr){for(var vr=nn;An<Sn;){var Ir=ee[nn];Ir>Sn&&ee.splice(nn,1,Sn,ee[nn+1],Ir),nn+=2,An=Math.min(Sn,Ir)}if(tr)if(Xt.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}},ie),x.state=fe,x.baseTokens=null,x.baseTokenPos=1},ke=0;ke<a.state.overlays.length;++ke)Se(ke);return{styles:ee,classes:ie.bgClass||ie.textClass?ie:null}}function qn(a,b,x){if(!b.styles||b.styles[0]!=a.state.modeGen){var E=rr(a,Et(b)),ee=b.text.length>a.options.maxHighlightLength&&Gn(a.doc.mode,E.state),ie=In(a,b,E);ee&&(E.state=ee),b.stateAfter=E.save(!ee),b.styles=ie.styles,ie.classes?b.styleClasses=ie.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 rr(a,b,x){var E=a.doc,ee=a.display;if(!E.mode.startState)return new Pn(E,!0,b);var ie=jr(a,b,x),fe=ie>E.first&&dn(E,ie-1).stateAfter,Se=fe?Pn.fromSaved(E,fe,ie):new Pn(E,lr(E.mode),ie);return E.iter(ie,b,function(ke){ir(a,ke.text,Se);var Ye=Se.line;ke.stateAfter=Ye==b-1||Ye%5==0||Ye>=ee.viewFrom&&Ye<ee.viewTo?Se.save():null,Se.nextLine()}),x&&(E.modeFrontier=Se.line),Se}function ir(a,b,x,E){var ee=a.doc.mode,ie=new nr(b,a.options.tabSize,x);for(ie.start=ie.pos=E||0,b==""&&sr(ee,x.state);!ie.eol();)Qn(ee,ie,x.state),ie.start=ie.pos}function sr(a,b){if(a.blankLine)return a.blankLine(b);if(a.innerMode){var x=$n(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]=$n(a,x).mode);var ie=a.token(b,x);if(b.pos>b.start)return ie}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,ie=ee.mode,fe;b=St(ee,b);var Se=dn(ee,b.line),ke=rr(a,b.line,x),Ye=new nr(Se.text,a.options.tabSize,ke),Xt;for(E&&(Xt=[]);(E||Ye.pos<b.ch)&&!Ye.eol();)Ye.start=Ye.pos,fe=Qn(ie,Ye,ke.state),E&&Xt.push(new ar(Ye,fe,Gn(ee.mode,ke.state)));return E?Xt:new ar(Ye,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,ie,fe){var Se=x.flattenSpans;Se==null&&(Se=a.options.flattenSpans);var ke=0,Ye=null,Xt=new nr(b,a.options.tabSize,E),nn,An=a.options.addModeClass&&[null];for(b==""&&Sr(sr(x,E.state),ie);!Xt.eol();){if(Xt.pos>a.options.maxHighlightLength?(Se=!1,fe&&ir(a,b,E,Xt.pos),Xt.pos=b.length,nn=null):nn=Sr(Qn(x,Xt,E.state,An),ie),An){var Sn=An[0].name;Sn&&(nn="m-"+(nn?Sn+" "+nn:Sn))}if(!Se||Ye!=nn){for(;ke<Xt.start;)ke=Math.min(Xt.start,ke+5e3),ee(ke,Ye);Ye=nn}Xt.start=Xt.pos}for(;ke<Xt.pos;){var tr=Math.min(Xt.pos,ke+5e3);ee(tr,Ye),ke=tr}}function jr(a,b,x){for(var E,ee,ie=a.doc,fe=x?-1:b-(a.doc.mode.innerMode?1e3:100),Se=b;Se>fe;--Se){if(Se<=ie.first)return ie.first;var ke=dn(ie,Se-1),Ye=ke.stateAfter;if(Ye&&(!x||Se+(Ye instanceof wn?Ye.lookAhead:0)<=ie.modeFrontier))return Se;var Xt=be(ke.text,null,a.options.tabSize);(ee==null||E>Xt)&&(ee=Se-1,E=Xt)}return ee}function $r(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 wn)||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 ie=a[ee],fe=ie.marker,Se=ie.from==null||(fe.inclusiveLeft?ie.from<=b:ie.from<b);if(Se||ie.from==b&&fe.type=="bookmark"&&(!x||!ie.marker.insertLeft)){var ke=ie.to==null||(fe.inclusiveRight?ie.to>=b:ie.to>b);(E||(E=[])).push(new Fr(fe,ie.from,ke?null:ie.to))}}return E}function Cr(a,b,x){var E;if(a)for(var ee=0;ee<a.length;++ee){var ie=a[ee],fe=ie.marker,Se=ie.to==null||(fe.inclusiveRight?ie.to>=b:ie.to>b);if(Se||ie.from==b&&fe.type=="bookmark"&&(!x||ie.marker.insertLeft)){var ke=ie.from==null||(fe.inclusiveLeft?ie.from<=b:ie.from<b);(E||(E=[])).push(new Fr(fe,ke?null:ie.from-b,ie.to==null?null:ie.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,ie=b.to.ch,fe=Nt(b.from,b.to)==0,Se=Br(x,ee,fe),ke=Cr(E,ie,fe),Ye=b.text.length==1,Xt=nt(b.text).length+(Ye?ee:0);if(Se)for(var nn=0;nn<Se.length;++nn){var An=Se[nn];if(An.to==null){var Sn=or(ke,An.marker);Sn?Ye&&(An.to=Sn.to==null?null:Sn.to+Xt):An.to=ee}}if(ke)for(var tr=0;tr<ke.length;++tr){var vr=ke[tr];if(vr.to!=null&&(vr.to+=Xt),vr.from==null){var Ir=or(Se,vr.marker);Ir||(vr.from=Xt,Ye&&(Se||(Se=[])).push(vr))}else vr.from+=Xt,Ye&&(Se||(Se=[])).push(vr)}Se&&(Se=Ho(Se)),ke&&ke!=Se&&(ke=Ho(ke));var Gr=[Se];if(!Ye){var mo=b.text.length-2,Xr;if(mo>0&&Se)for(var Do=0;Do<Se.length;++Do)Se[Do].to==null&&(Xr||(Xr=[])).push(new Fr(Se[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||Ft(E,vr)==-1)&&(E||(E=[])).push(vr)}}),!E)return null;for(var ee=[{from:b,to:x}],ie=0;ie<E.length;++ie)for(var fe=E[ie],Se=fe.find(0),ke=0;ke<ee.length;++ke){var Ye=ee[ke];if(!(Nt(Ye.to,Se.from)<0||Nt(Ye.from,Se.to)>0)){var Xt=[ke,1],nn=Nt(Ye.from,Se.from),An=Nt(Ye.to,Se.to);(nn<0||!fe.inclusiveLeft&&!nn)&&Xt.push({from:Ye.from,to:Se.from}),(An>0||!fe.inclusiveRight&&!An)&&Xt.push({from:Se.to,to:Ye.to}),ee.splice.apply(ee,Xt),ke+=Xt.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(),ie=Nt(E.from,ee.from)||To(a)-To(b);if(ie)return-ie;var fe=Nt(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,ie=0;ie<x.length;++ie)ee=x[ie],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 Mn(a){return go(a,!1)}function Un(a,b){var x=Mr&&a.markedSpans,E;if(x)for(var ee=0;ee<x.length;++ee){var ie=x[ee];ie.marker.collapsed&&(ie.from==null||ie.from<b)&&(ie.to==null||ie.to>b)&&(!E||ko(E,ie.marker)<0)&&(E=ie.marker)}return E}function Yn(a,b,x,E,ee){var ie=dn(a,b),fe=Mr&&ie.markedSpans;if(fe)for(var Se=0;Se<fe.length;++Se){var ke=fe[Se];if(ke.marker.collapsed){var Ye=ke.marker.find(0),Xt=Nt(Ye.from,x)||To(ke.marker)-To(ee),nn=Nt(Ye.to,E)||Xo(ke.marker)-Xo(ee);if(!(Xt>=0&&nn<=0||Xt<=0&&nn>=0)&&(Xt<=0&&(ke.marker.inclusiveRight&&ee.inclusiveLeft?Nt(Ye.to,x)>=0:Nt(Ye.to,x)>0)||Xt>=0&&(ke.marker.inclusiveRight&&ee.inclusiveLeft?Nt(Ye.from,E)<=0:Nt(Ye.from,E)<0)))return!0}}}function kn(a){for(var b;b=dr(a);)a=b.find(-1,!0).line;return a}function mr(a){for(var b;b=Mn(a);)a=b.find(1,!0).line;return a}function wr(a){for(var b,x;b=Mn(a);)a=b.find(1,!0).line,(x||(x=[])).push(a);return x}function Vn(a,b){var x=dn(a,b),E=kn(x);return x==E?b:Et(E)}function Jn(a,b){if(b>a.lastLine())return b;var x=dn(a,b),E;if(!ur(a,x))return b;for(;E=Mn(x);)x=E.find(1,!0).line;return Et(x)+1}function ur(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,ie=0;ie<b.markedSpans.length;++ie)if(ee=b.markedSpans[ie],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 Zr(a){a=kn(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 ie=x.parent;ie;x=ie,ie=x.parent)for(var fe=0;fe<ie.children.length;++fe){var Se=ie.children[fe];if(Se==x)break;b+=Se.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=Mn(E);){var ie=x.find(0,!0);b-=E.text.length-ie.from.ch,E=ie.to.line,b+=E.text.length-ie.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 Et(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&&Kn(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=ct("span",null,null,ye?"padding-right: .1px":null),E={pre:ct("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 ie=ee?b.rest[ee-1]:b.line,fe=void 0;E.pos=0,E.addToken=Xi,On(a.display.measure)&&(fe=Le(ie,a.doc.direction))&&(E.addToken=ta(E.addToken,fe)),E.map=[];var Se=b!=a.display.externalMeasured&&Et(ie);co(ie,E,qn(a,ie,Se)),ie.styleClasses&&(ie.styleClasses.bgClass&&(E.bgClass=mt(ie.styleClasses.bgClass,E.bgClass||"")),ie.styleClasses.textClass&&(E.textClass=mt(ie.styleClasses.textClass,E.textClass||""))),E.map.length==0&&E.map.push(0,0,E.content.appendChild(Ut(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(ye){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 tn(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,ie,fe){if(b){var Se=a.splitSpaces?Yi(b,a.trailingSpace):b,ke=a.cm.state.specialChars,Ye=!1,Xt;if(!ke.test(b))a.col+=b.length,Xt=document.createTextNode(Se),a.map.push(a.pos,a.pos+b.length,Xt),ve&&me<9&&(Ye=!0),a.pos+=b.length;else{Xt=document.createDocumentFragment();for(var nn=0;;){ke.lastIndex=nn;var An=ke.exec(b),Sn=An?An.index-nn:b.length-nn;if(Sn){var tr=document.createTextNode(Se.slice(nn,nn+Sn));ve&&me<9?Xt.appendChild(Qe("span",[tr])):Xt.appendChild(tr),a.map.push(a.pos,a.pos+Sn,tr),a.col+=Sn,a.pos+=Sn}if(!An)break;nn+=Sn+1;var vr=void 0;if(An[0]==" "){var Ir=a.cm.options.tabSize,Gr=Ir-a.col%Ir;vr=Xt.appendChild(Qe("span",st(Gr),"cm-tab")),vr.setAttribute("role","presentation"),vr.setAttribute("cm-text"," "),a.col+=Gr}else An[0]=="\r"||An[0]==`
`?(vr=Xt.appendChild(Qe("span",An[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),vr.setAttribute("cm-text",An[0]),a.col+=1):(vr=a.cm.options.specialCharPlaceholder(An[0]),vr.setAttribute("cm-text",An[0]),ve&&me<9?Xt.appendChild(Qe("span",[vr])):Xt.appendChild(vr),a.col+=1);a.map.push(a.pos,a.pos+1,vr),a.pos++}}if(a.trailingSpace=Se.charCodeAt(b.length-1)==32,x||E||ee||Ye||ie||fe){var mo=x||"";E&&(mo+=E),ee&&(mo+=ee);var Xr=Qe("span",[Xt],mo,ie);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(Xt)}}function Yi(a,b){if(a.length>1&&!/ /.test(a))return a;for(var x=b,E="",ee=0;ee<a.length;ee++){var ie=a.charAt(ee);ie==" "&&x&&(ee==a.length-1||a.charCodeAt(ee+1)==32)&&(ie="\xA0"),E+=ie,x=ie==" "}return E}function ta(a,b){return function(x,E,ee,ie,fe,Se,ke){ee=ee?ee+" cm-force-border":"cm-force-border";for(var Ye=x.pos,Xt=Ye+E.length;;){for(var nn=void 0,An=0;An<b.length&&(nn=b[An],!(nn.to>Ye&&nn.from<=Ye));An++);if(nn.to>=Xt)return a(x,E,ee,ie,fe,Se,ke);a(x,E.slice(0,nn.to-Ye),ee,ie,null,Se,ke),ie=null,E=E.slice(nn.to-Ye),Ye=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,ie=0;if(!E){for(var fe=1;fe<x.length;fe+=2)b.addToken(b,ee.slice(ie,ie=x[fe]),ri(x[fe+1],b.cm.options));return}for(var Se=ee.length,ke=0,Ye=1,Xt="",nn,An,Sn=0,tr,vr,Ir,Gr,mo;;){if(Sn==ke){tr=vr=Ir=An="",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&&(An=(An?An+";":"")+Si.css),Si.startStyle&&Uo.from==ke&&(Ir+=" "+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?Se+1:Gr.to)-ke,Gr.marker,Gr.from==null),Gr.to==null)return;Gr.to==ke&&(Gr=!1)}}if(ke>=Se)break;for(var Fl=Math.min(Se,Sn);;){if(Xt){var yl=ke+Xt.length;if(!Gr){var Za=yl>Fl?Xt.slice(0,Fl-ke):Xt;b.addToken(b,Za,nn?nn+tr:tr,Ir,ke+Za.length==Sn?vr:"",An,mo)}if(yl>=Fl){Xt=Xt.slice(Fl-ke),ke=Fl;break}ke=yl,Ir=""}Xt=ee.slice(ie,ie=x[Ye++]),nn=ri(x[Ye++],b.cm.options)}}}function wi(a,b,x){this.line=b,this.rest=wr(b),this.size=this.rest?Et(nt(this.rest))-x+1:1,this.node=this.text=null,this.hidden=ur(a,b)}function wo(a,b,x){for(var E=[],ee,ie=b;ie<x;ie=ee){var fe=new wi(a.doc,dn(a.doc,ie),ie);ee=ie+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=Yt(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 ie=function(Se){ee.push(function(){return x[Se].apply(null,E)})},fe=0;fe<x.length;++fe)ie(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 ie=b.changes[ee];ie=="text"?El(a,b):ie=="gutter"?ai(a,b,x,E):ie=="class"?$o(a,b):ie=="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),ve&&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,$o(a,b)):x&&(b.text.className=x)}function $o(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 ie=b.line.gutterMarkers;if(a.options.lineNumbers||ie){var fe=Ja(b),Se=b.gutter=Qe("div",null,"CodeMirror-gutter-wrapper","left: "+(a.options.fixedGutter?E.fixedPos:-E.gutterTotalWidth)+"px");if(a.display.input.setUneditable(Se),fe.insertBefore(Se,b.text),b.line.gutterClass&&(Se.className+=" "+b.line.gutterClass),a.options.lineNumbers&&(!ie||!ie["CodeMirror-linenumbers"])&&(b.lineNumber=Se.appendChild(Qe("div",Bt(a.options,x),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+E.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+a.display.lineNumInnerWidth+"px"))),ie)for(var ke=0;ke<a.display.gutterSpecs.length;++ke){var Ye=a.display.gutterSpecs[ke].className,Xt=ie.hasOwnProperty(Ye)&&ie[Ye];Xt&&Se.appendChild(Qe("div",[Xt],"CodeMirror-gutter-elt","left: "+E.gutterLeft[Ye]+"px; width: "+E.gutterWidth[Ye]+"px"))}}}function Ro(a,b,x){b.alignable&&(b.alignable=null);for(var E=Ze("CodeMirror-linewidget"),ee=b.node.firstChild,ie=void 0;ee;ee=ie)ie=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),$o(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 ie=Ja(x),fe=0,Se=b.widgets;fe<Se.length;++fe){var ke=Se[fe],Ye=Qe("div",[ke.node],"CodeMirror-linewidget"+(ke.className?" "+ke.className:""));ke.handleMouseEvents||Ye.setAttribute("cm-ignore-events","true"),Wa(ke,Ye,x,E),a.display.input.setUneditable(Ye),ee&&ke.above?ie.insertBefore(Ye,x.gutter||x.text):ie.appendChild(Ye),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;"),ot(b.display.measure,Qe("div",[a.node],null,x))}return a.height=a.node.parentNode.offsetHeight}function Qi(a,b){for(var x=xt(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=ot(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 _t-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 ie=b.measure.heights=[];if(E){b.measure.width=ee;for(var fe=b.text.firstChild.getClientRects(),Se=0;Se<fe.length-1;Se++){var ke=fe[Se],Ye=fe[Se+1];Math.abs(ke.bottom-Ye.bottom)>2&&ie.push((ke.bottom+Ye.top)/2-x.top)}}ie.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(Et(a.rest[ee])>x)return{map:a.measure.maps[ee],cache:a.measure.caches[ee],before:!0}}function Fs(a,b){b=kn(b);var x=Et(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,ot(a.display.lineMeasure,ee.pre),E}function Gl(a,b,x,E){return fl(a,Ll(a,b),x,E)}function Al(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=Et(b),E=Al(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 ie=x+(E||""),fe;return b.cache.hasOwnProperty(ie)?fe=b.cache[ie]:(b.rect||(b.rect=b.view.text.getBoundingClientRect()),b.hasHeights||(dl(a,b.view,b.rect),b.hasHeights=!0),fe=Ol(a,b,x,E),fe.bogus||(b.cache[ie]=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,ie,fe,Se,ke,Ye=0;Ye<a.length;Ye+=3)if(Se=a[Ye],ke=a[Ye+1],b<Se?(ee=0,ie=1,fe="left"):b<ke?(ee=b-Se,ie=ee+1):(Ye==a.length-3||b==ke&&a[Ye+3]>b)&&(ie=ke-Se,ee=ie-1,b>=ke&&(fe="right")),ee!=null){if(E=a[Ye+2],Se==ke&&x==(E.insertLeft?"left":"right")&&(fe=x),x=="left"&&ee==0)for(;Ye&&a[Ye-2]==a[Ye-3]&&a[Ye-1].insertLeft;)E=a[(Ye-=3)+2],fe="left";if(x=="right"&&ee==ke-Se)for(;Ye<a.length-3&&a[Ye+3]==a[Ye+4]&&!a[Ye+5].insertLeft;)E=a[(Ye+=3)+2],fe="right";break}return{node:E,start:ee,end:ie,collapse:fe,coverStart:Se,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 Ol(a,b,x,E){var ee=Xl(b.map,x,E),ie=ee.node,fe=ee.start,Se=ee.end,ke=ee.collapse,Ye;if(ie.nodeType==3){for(var Xt=0;Xt<4;Xt++){for(;fe&&Oe(b.line.text.charAt(ee.coverStart+fe));)--fe;for(;ee.coverStart+Se<ee.coverEnd&&Oe(b.line.text.charAt(ee.coverStart+Se));)++Se;if(ve&&me<9&&fe==0&&Se==ee.coverEnd-ee.coverStart?Ye=ie.parentNode.getBoundingClientRect():Ye=bs(Ce(ie,fe,Se).getClientRects(),E),Ye.left||Ye.right||fe==0)break;Se=fe,fe=fe-1,ke="right"}ve&&me<11&&(Ye=Ls(a.display.measure,Ye))}else{fe>0&&(ke=E="right");var nn;a.options.lineWrapping&&(nn=ie.getClientRects()).length>1?Ye=nn[E=="right"?nn.length-1:0]:Ye=ie.getBoundingClientRect()}if(ve&&me<9&&!fe&&(!Ye||!Ye.left&&!Ye.right)){var An=ie.parentNode.getClientRects()[0];An?Ye={left:An.left,right:An.left+Zo(a.display),top:An.top,bottom:An.bottom}:Ye=is}for(var Sn=Ye.top-b.rect.top,tr=Ye.bottom-b.rect.top,vr=(Sn+tr)/2,Ir=b.view.measure.heights,Gr=0;Gr<Ir.length-1&&!(vr<Ir[Gr]);Gr++);var mo=Gr?Ir[Gr-1]:0,Xr=Ir[Gr],Do={left:(ke=="right"?Ye.right:Ye.left)-b.rect.left,right:(ke=="left"?Ye.left:Ye.right)-b.rect.left,top:mo,bottom:Xr};return!Ye.left&&!Ye.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||!Wt(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,gt(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 pe&&Me?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function ls(){return pe&&Me?-(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 ie=Kl(b);x.top+=ie,x.bottom+=ie}if(E=="line")return x;E||(E="local");var fe=Zr(b);if(E=="local"?fe+=sa(a.display):fe-=a.display.viewOffset,E=="page"||E=="window"){var Se=a.display.lineSpace.getBoundingClientRect();fe+=Se.top+(E=="window"?0:ls());var ke=Se.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 ie=a.display.sizer.getBoundingClientRect();E+=ie.left,ee+=ie.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 ji(a,b,x,E,ee,ie){E=E||dn(a.doc,b.line),ee||(ee=Ll(a,E));function fe(tr,vr){var Ir=fl(a,ee,tr,vr?"right":"left",ie);return vr?Ir.left=Ir.right:Ir.right=Ir.left,Yl(a,E,Ir,x)}var Se=Le(E,a.doc.direction),ke=b.ch,Ye=b.sticky;if(ke>=E.text.length?(ke=E.text.length,Ye="before"):ke<=0&&(ke=0,Ye="after"),!Se)return fe(Ye=="before"?ke-1:ke,Ye=="before");function Xt(tr,vr,Ir){var Gr=Se[vr],mo=Gr.level==1;return fe(Ir?tr-1:tr,mo!=Ir)}var nn=ht(Se,ke,Ye),An=it,Sn=Xt(ke,nn,Ye=="before");return An!=null&&(Sn.other=Xt(ke,An,Ye!="before")),Sn}function yi(a,b){var x=0;b=St(a.doc,b),a.options.lineWrapping||(x=Zo(a.display)*b.ch);var E=dn(a.doc,b.line),ee=Zr(E)+sa(a.display);return{left:x,right:x,top:ee,bottom:ee+E.height}}function ci(a,b,x,E,ee){var ie=Ue(a,b,x);return ie.xRel=ee,E&&(ie.outside=E),ie}function vt(a,b,x){var E=a.doc;if(x+=a.display.viewOffset,x<0)return ci(E.first,0,null,-1,-1);var ee=Rt(E,x),ie=E.first+E.size-1;if(ee>ie)return ci(E.first+E.size-1,dn(E,ie).text.length,null,1,1);b<0&&(b=0);for(var fe=dn(E,ee);;){var Se=yo(a,fe,ee,b,x),ke=Un(fe,Se.ch+(Se.xRel>0||Se.outside>0?1:0));if(!ke)return Se;var Ye=ke.find(1);if(Ye.line==ee)return Ye;fe=dn(E,ee=Ye.line)}}function jt(a,b,x,E){E-=Kl(b);var ee=b.text.length,ie=Ge(function(fe){return fl(a,x,fe-1).bottom<=E},ee,0);return ee=Ge(function(fe){return fl(a,x,fe).top>E},ie,ee),{begin:ie,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 jt(a,b,x,ee)}function gn(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-=Zr(b);var ie=Ll(a,b),fe=Kl(b),Se=0,ke=b.text.length,Ye=!0,Xt=Le(b,a.doc.direction);if(Xt){var nn=(a.options.lineWrapping?fo:Vr)(a,b,x,ie,Xt,E,ee);Ye=nn.level!=1,Se=Ye?nn.from:nn.to-1,ke=Ye?nn.to:nn.from-1}var An=null,Sn=null,tr=Ge(function(ii){var Uo=fl(a,ie,ii);return Uo.top+=fe,Uo.bottom+=fe,gn(Uo,E,ee,!1)?(Uo.top<=ee&&Uo.left<=E&&(An=ii,Sn=Uo),!0):!1},Se,ke),vr,Ir,Gr=!1;if(Sn){var mo=E-Sn.left<Sn.right-E,Xr=mo==Ye;tr=An+(Xr?0:1),Ir=Xr?"after":"before",vr=mo?Sn.left:Sn.right}else{!Ye&&(tr==ke||tr==Se)&&tr++,Ir=tr==0?"after":tr==b.text.length?"before":fl(a,ie,tr-(Ye?1:0)).bottom+fe<=ee==Ye?"after":"before";var Do=ji(a,Ue(x,tr,Ir),"line",b,ie);vr=Do.left,Gr=ee<Do.top?-1:ee>=Do.bottom?1:0}return tr=bt(b.text,tr,1),ci(x,tr,Ir,Gr,E-vr)}function Vr(a,b,x,E,ee,ie,fe){var Se=Ge(function(nn){var An=ee[nn],Sn=An.level!=1;return gn(ji(a,Ue(x,Sn?An.to:An.from,Sn?"before":"after"),"line",b,E),ie,fe,!0)},0,ee.length-1),ke=ee[Se];if(Se>0){var Ye=ke.level!=1,Xt=ji(a,Ue(x,Ye?ke.from:ke.to,Ye?"after":"before"),"line",b,E);gn(Xt,ie,fe,!0)&&Xt.top>fe&&(ke=ee[Se-1])}return ke}function fo(a,b,x,E,ee,ie,fe){var Se=jt(a,b,E,fe),ke=Se.begin,Ye=Se.end;/\s/.test(b.text.charAt(Ye-1))&&Ye--;for(var Xt=null,nn=null,An=0;An<ee.length;An++){var Sn=ee[An];if(!(Sn.from>=Ye||Sn.to<=ke)){var tr=Sn.level!=1,vr=fl(a,E,tr?Math.min(Ye,Sn.to)-1:Math.max(ke,Sn.from)).right,Ir=vr<ie?ie-vr+1e9:vr-ie;(!Xt||nn>Ir)&&(Xt=Sn,nn=Ir)}}return Xt||(Xt=ee[ee.length-1]),Xt.from<ke&&(Xt={from:ke,to:Xt.to,level:Xt.level}),Xt.to>Ye&&(Xt={from:Xt.from,to:Ye,level:Xt.level}),Xt}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"))}ot(a.measure,Pr);var x=Pr.offsetHeight/50;return x>3&&(a.cachedTextHeight=x),gt(a.measure),x||1}function Zo(a){if(a.cachedCharWidth!=null)return a.cachedCharWidth;var b=Qe("span","xxxxxxxxxx"),x=Qe("pre",[b],"CodeMirror-line-like");ot(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,ie=b.gutters.firstChild,fe=0;ie;ie=ie.nextSibling,++fe){var Se=a.display.gutterSpecs[fe].className;x[Se]=ie.offsetLeft+ie.clientLeft+ee,E[Se]=ie.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/Zo(a.display)-3);return function(ee){if(ur(a.doc,ee))return 0;var ie=0;if(ee.widgets)for(var fe=0;fe<ee.widgets.length;fe++)ee.widgets[fe].height&&(ie+=ee.widgets[fe].height);return x?ie+(Math.ceil(ee.text.length/E)||1)*b:ie+b}}function Qo(a){var b=a.doc,x=pi(a);b.iter(function(E){var ee=x(E);ee!=E.height&&Kn(E,ee)})}function gr(a,b,x,E){var ee=a.display;if(!x&&xt(b).getAttribute("cm-not-content")=="true")return null;var ie,fe,Se=ee.lineSpace.getBoundingClientRect();try{ie=b.clientX-Se.left,fe=b.clientY-Se.top}catch(nn){return null}var ke=vt(a,ie,fe),Ye;if(E&&ke.xRel>0&&(Ye=dn(a.doc,ke.line).text).length==ke.ch){var Xt=be(Ye,Ye.length,a.options.tabSize)-Ye.length;ke=Ue(ke.line,Math.max(0,Math.round((ie-xl(a.display).left)/Zo(a.display))-Xt))}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&&Vn(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 ie=Go(a,x,x+E,1);ie?(ee.view=ee.view.slice(ie.index),ee.viewFrom=ie.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 Se=Go(a,b,b,-1),ke=Go(a,x,x+E,1);Se&&ke?(ee.view=ee.view.slice(0,Se.index).concat(wo(a,Se.lineN,ke.lineN)).concat(ee.view.slice(ke.index)),ee.viewTo+=E):zr(a)}var Ye=ee.externalMeasured;Ye&&(x<Ye.lineN?Ye.lineN+=E:b<Ye.lineN+Ye.size&&(ee.externalMeasured=null))}function Io(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 ie=E.view[io(a,b)];if(ie.node!=null){var fe=ie.changes||(ie.changes=[]);Ft(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),ie,fe=a.display.view;if(!Mr||x==a.doc.first+a.doc.size)return{index:ee,lineN:x};for(var Se=a.display.viewFrom,ke=0;ke<ee;ke++)Se+=fe[ke].size;if(Se!=b){if(E>0){if(ee==fe.length-1)return null;ie=Se+fe[ee].size-b,ee++}else ie=Se-b;b+=ie,x+=ie}for(;Vn(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(),ie=E.selection=document.createDocumentFragment(),fe=0;fe<x.sel.ranges.length;fe++)if(!(!b&&fe==x.sel.primIndex)){var Se=x.sel.ranges[fe];if(!(Se.from().line>=a.display.viewTo||Se.to().line<a.display.viewFrom)){var ke=Se.empty();(ke||a.options.showCursorWhenSelecting)&&no(a,Se.head,ee),ke||pa(a,Se,ie)}}return E}function no(a,b,x){var E=ji(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 ie=x.appendChild(Qe("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));ie.style.display="",ie.style.left=E.other.left+"px",ie.style.top=E.other.top+"px",ie.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,ie=document.createDocumentFragment(),fe=xl(a.display),Se=fe.left,ke=Math.max(E.sizerWidth,Sl(a)-E.sizer.offsetLeft)-fe.right,Ye=ee.direction=="ltr";function Xt(Xr,Do,ii,Uo){Do<0&&(Do=0),Do=Math.round(Do),Uo=Math.round(Uo),ie.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(Za,bl){return el(a,Ue(Xr,Za),"div",Uo,bl)}function Fl(Za,bl,rl){var za=Qt(a,Uo,null,Za),_a=bl=="ltr"==(rl=="after")?"left":"right",Oa=rl=="after"?za.begin:za.end-(/\s/.test(Uo.text.charAt(za.end-1))?2:1);return Fa(Oa,_a)[_a]}var yl=Le(Uo,ee.direction);return We(yl,Do||0,ii==null?Si:ii,function(Za,bl,rl,za){var _a=rl=="ltr",Oa=Fa(Za,_a?"left":"right"),Cl=Fa(bl-1,_a?"right":"left"),Xs=Do==null&&Za==0,Ds=ii==null&&bl==Si,ul=za==0,os=!yl||za==yl.length-1;if(Cl.top-Oa.top<=3){var Ya=(Ye?Xs:Ds)&&ul,Ou=(Ye?Ds:Xs)&&os,ys=Ya?Se:(_a?Oa:Cl).left,Ts=Ou?ke:(_a?Cl:Oa).right;Xt(ys,Oa.top,Ts-ys,Oa.bottom)}else{var ks,ml,Ys,Iu;_a?(ks=Ye&&Xs&&ul?Se:Oa.left,ml=Ye?ke:Fl(Za,rl,"before"),Ys=Ye?Se:Fl(bl,rl,"after"),Iu=Ye&&Ds&&os?ke:Cl.right):(ks=Ye?Fl(Za,rl,"before"):Se,ml=!Ye&&Xs&&ul?ke:Oa.right,Ys=!Ye&&Ds&&os?Se:Cl.left,Iu=Ye?Fl(bl,rl,"after"):ke),Xt(ks,Oa.top,ml-ks,Oa.bottom),Oa.bottom<Cl.top&&Xt(Se,Oa.bottom,null,Cl.top),Xt(Ys,Cl.top,Iu-Ys,Cl.bottom)}(!ca||bi(Oa,ca)<0)&&(ca=Oa),bi(Cl,ca)<0&&(ca=Cl),(!Xa||bi(Oa,Xa)<0)&&(Xa=Oa),bi(Cl,Xa)<0&&(Xa=Cl)}),{start:ca,end:Xa}}var An=b.from(),Sn=b.to();if(An.line==Sn.line)nn(An.line,An.ch,Sn.ch);else{var tr=dn(ee,An.line),vr=dn(ee,Sn.line),Ir=kn(tr)==kn(vr),Gr=nn(An.line,An.ch,Ir?tr.text.length+1:null).end,mo=nn(Sn.line,Ir?0:null,Sn.ch).start;Ir&&(Gr.top<mo.top-2?(Xt(Gr.right,Gr.top,null,Gr.bottom),Xt(Se,mo.top,mo.left,mo.bottom)):Xt(Gr.right,Gr.top,mo.left-Gr.right,Gr.bottom)),Gr.bottom<mo.top&&Xt(Se,Gr.bottom,null,mo.top)}x.appendChild(ie)}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()||Ia(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(),ja(a))}function zo(a){a.state.delayingBlurEvent=!0,setTimeout(function(){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1,Ia(a))},100)}function ja(a,b){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1),a.options.readOnly!="nocursor"&&(a.state.focused||(tn(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(),ye&&setTimeout(function(){return a.display.input.reset(!0)},20)),a.display.input.receivedFocus()),Ji(a))}function Ia(a,b){a.state.delayingBlurEvent||(a.state.focused&&(tn(a,"blur",a,b),a.state.focused=!1,$e(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],ie=a.options.lineWrapping,fe=void 0,Se=0;if(!ee.hidden){if(ve&&me<8){var ke=ee.node.offsetTop+ee.node.offsetHeight;fe=ke-x,x=ke}else{var Ye=ee.node.getBoundingClientRect();fe=Ye.bottom-Ye.top,!ie&&ee.text.firstChild&&(Se=ee.text.firstChild.getBoundingClientRect().right-Ye.left-1)}var Xt=ee.line.height-fe;if((Xt>.005||Xt<-.005)&&(Kn(ee.line,fe),Ci(ee.line),ee.rest))for(var nn=0;nn<ee.rest.length;nn++)Ci(ee.rest[nn]);if(Se>a.display.sizerWidth){var An=Math.ceil(Se/Zo(a.display));An>a.display.maxLineLength&&(a.display.maxLineLength=An,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,ie=Rt(b,E),fe=Rt(b,ee);if(x&&x.ensure){var Se=x.ensure.from.line,ke=x.ensure.to.line;Se<ie?(ie=Se,fe=Rt(b,Zr(dn(b,Se))+a.wrapper.clientHeight)):Math.min(ke,b.lastLine())>=fe&&(ie=Rt(b,Zr(dn(b,ke))-a.wrapper.clientHeight),fe=ke)}return{from:ie,to:Math.max(fe,ie+1)}}function Ei(a,b){if(!Lt(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 ie=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(ie),ie.scrollIntoView(ee),a.display.lineSpace.removeChild(ie)}}}function wa(a,b,x,E){E==null&&(E=0);var ee;!a.options.lineWrapping&&b==x&&(b=b.ch?Ue(b.line,b.sticky=="before"?b.ch-1:b.ch,"after"):b,x=b.sticky=="before"?Ue(b.line,b.ch+1,"before"):b);for(var ie=0;ie<5;ie++){var fe=!1,Se=ji(a,b),ke=!x||x==b?Se:ji(a,x);ee={left:Math.min(Se.left,ke.left),top:Math.min(Se.top,ke.top)-E,right:Math.max(Se.left,ke.left),bottom:Math.max(Se.bottom,ke.bottom)+E};var Ye=Jl(a,ee),Xt=a.doc.scrollTop,nn=a.doc.scrollLeft;if(Ye.scrollTop!=null&&(Es(a,Ye.scrollTop),Math.abs(a.doc.scrollTop-Xt)>1&&(fe=!0)),Ye.scrollLeft!=null&&(ql(a,Ye.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,ie=kl(a),fe={};b.bottom-b.top>ie&&(b.bottom=b.top+ie);var Se=a.doc.height+cl(x),ke=b.top<E,Ye=b.bottom>Se-E;if(b.top<ee)fe.scrollTop=ke?0:b.top;else if(b.bottom>ee+ie){var Xt=Math.min(b.top,(Ye?Se:b.bottom)-ie);Xt!=ee&&(fe.scrollTop=Xt)}var nn=a.options.fixedGutter?0:x.gutters.offsetWidth,An=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<An?fe.scrollLeft=Math.max(0,b.left+nn-(tr?0:10)):b.right>Sn+An-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 Il(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,ut(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),Ot(E,"scroll",function(){E.clientHeight&&b(E.scrollTop,"vertical")}),Ot(ee,"scroll",function(){ee.clientWidth&&b(ee.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,ve&&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 ie=a.viewWidth-a.barLeft-(x?E:0);this.horiz.firstChild.style.width=Math.max(0,a.scrollWidth-a.clientWidth+ie)+"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=we&&!Ie?"12px":"18px";this.horiz.style.height=this.vert.style.width=a,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new ge,this.disableVert=new ge},es.prototype.enableZeroWidthBar=function(a,b,x){a.style.pointerEvents="auto";function E(){var ee=a.getBoundingClientRect(),ie=x=="vert"?document.elementFromPoint(ee.right-1,(ee.top+ee.bottom)/2):document.elementFromPoint((ee.right+ee.left)/2,ee.bottom-1);ie!=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 Zs(a){a.display.scrollbars&&(a.display.scrollbars.clear(),a.display.scrollbars.addClass&&$e(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),Ot(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 Zl(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++)xn(b[ee]);for(var ie=0;ie<b.length;ie++)Ar(b[ie]);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 xn(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 Ar(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==Te();a.preparedSelection&&b.display.input.showSelection(a.preparedSelection,x),(a.updatedDisplay||a.startHeight!=b.doc.height)&&fs(b,a.barMeasure),a.updatedDisplay&&Be(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 ie=a.maybeHiddenMarkers,fe=a.maybeUnhiddenMarkers;if(ie)for(var Se=0;Se<ie.length;++Se)ie[Se].lines.length||tn(ie[Se],"hide");if(fe)for(var ke=0;ke<fe.length;++ke)fe[ke].lines.length&&tn(fe[ke],"unhide");x.wrapper.offsetHeight&&(E.scrollTop=b.display.scroller.scrollTop),a.changeObjs&&tn(b,"changes",b,a.changeObjs),a.update&&a.update.finish()}function Lr(a,b){if(a.curOp)return b();Zl(a);try{return b()}finally{Ml(a)}}function Xn(a,b){return function(){if(a.curOp)return b.apply(a,arguments);Zl(a);try{return b.apply(a,arguments)}finally{Ml(a)}}}function _o(a){return function(){if(this.curOp)return a.apply(this,arguments);Zl(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);Zl(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,lt(li,a))}function li(a){var b=a.doc;if(!(b.highlightFrontier>=a.display.viewTo)){var x=+new Date+a.options.workTime,E=rr(a,b.highlightFrontier),ee=[];b.iter(E.line,Math.min(b.first+b.size,a.display.viewTo+500),function(ie){if(E.line>=a.display.viewFrom){var fe=ie.styles,Se=ie.text.length>a.options.maxHighlightLength?Gn(b.mode,E.state):null,ke=In(a,ie,E,!0);Se&&(E.state=Se),ie.styles=ke.styles;var Ye=ie.styleClasses,Xt=ke.classes;Xt?ie.styleClasses=Xt:Ye&&(ie.styleClasses=null);for(var nn=!fe||fe.length!=ie.styles.length||Ye!=Xt&&(!Ye||!Xt||Ye.bgClass!=Xt.bgClass||Ye.textClass!=Xt.textClass),An=0;!nn&&An<fe.length;++An)nn=fe[An]!=ie.styles[An];nn&&ee.push(E.line),ie.stateAfter=E.save(),E.nextLine()}else ie.text.length<=a.options.maxHighlightLength&&ir(a,ie.text,E),ie.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 ie=0;ie<ee.length;ie++)Io(a,ee[ie],"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){$t(a,b)&&this.events.push(arguments)},va.prototype.finish=function(){for(var a=0;a<this.events.length;a++)tn.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=Te();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==Te())&&(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,ie=Math.max(b.visible.from-a.options.viewportMargin,E.first),fe=Math.min(ee,b.visible.to+a.options.viewportMargin);x.viewFrom<ie&&ie-x.viewFrom<20&&(ie=Math.max(E.first,x.viewFrom)),x.viewTo>fe&&x.viewTo-fe<20&&(fe=Math.min(ee,x.viewTo)),Mr&&(ie=Vn(a.doc,ie),fe=Jn(a.doc,fe));var Se=ie!=x.viewFrom||fe!=x.viewTo||x.lastWrapHeight!=b.wrapperHeight||x.lastWrapWidth!=b.wrapperWidth;fi(a,ie,fe),x.viewOffset=Zr(dn(a.doc,x.viewFrom)),a.display.mover.style.top=x.viewOffset+"px";var ke=ao(a);if(!Se&&ke==0&&!b.force&&x.renderedView==x.view&&(x.updateLineNumbers==null||x.updateLineNumbers>=x.viewTo))return!1;var Ye=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(Ye),gt(x.cursorDiv),gt(x.selectionDiv),x.gutters.style.height=x.sizer.style.minHeight=0,Se&&(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),Be(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),Be(a,E),x.finish()}}function La(a,b,x){var E=a.display,ee=a.options.lineNumbers,ie=E.lineDiv,fe=ie.firstChild;function Se(tr){var vr=tr.nextSibling;return ye&&we&&a.display.currentWheelTarget==tr?tr.style.display="none":tr.parentNode.removeChild(tr),vr}for(var ke=E.view,Ye=E.viewFrom,Xt=0;Xt<ke.length;Xt++){var nn=ke[Xt];if(!nn.hidden)if(!nn.node||nn.node.parentNode!=ie){var An=Bo(a,nn,Ye,x);ie.insertBefore(An,fe)}else{for(;fe!=nn.node;)fe=Se(fe);var Sn=ee&&b!=null&&b<=Ye&&nn.lineNumber;nn.changes&&(Ft(nn.changes,"gutter")>-1&&(Sn=!1),ol(a,nn,Ye,x)),Sn&&(gt(nn.lineNumber),nn.lineNumber.appendChild(document.createTextNode(Bt(a.options,Ye)))),fe=nn.node.nextSibling}Ye+=nn.size}for(;fe;)fe=Se(fe)}function De(a){var b=a.gutters.offsetWidth;a.sizer.style.marginLeft=b+"px"}function Be(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 ut(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,ie=E+"px",fe=0;fe<x.length;fe++)if(!x[fe].hidden){a.options.fixedGutter&&(x[fe].gutter&&(x[fe].gutter.style.left=ie),x[fe].gutterBackground&&(x[fe].gutterBackground.style.left=ie));var Se=x[fe].alignable;if(Se)for(var ke=0;ke<Se.length;ke++)Se[ke].style.left=ie}a.options.fixedGutter&&(b.gutters.style.left=E+ee+"px")}}function wt(a){if(!a.options.lineNumbers)return!1;var b=a.doc,x=Bt(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")),ie=ee.firstChild.offsetWidth,fe=ee.offsetWidth-ie;return E.lineGutter.style.width="",E.lineNumInnerWidth=Math.max(ie,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 Kt(a,b){for(var x=[],E=!1,ee=0;ee<a.length;ee++){var ie=a[ee],fe=null;if(typeof ie!="string"&&(fe=ie.style,ie=ie.className),ie=="CodeMirror-linenumbers")if(b)E=!0;else continue;x.push({className:ie,style:fe})}return b&&!E&&x.push({className:"CodeMirror-linenumbers",style:null}),x}function qt(a){var b=a.gutters,x=a.gutterSpecs;gt(b),a.lineGutter=null;for(var E=0;E<x.length;++E){var ee=x[E],ie=ee.className,fe=ee.style,Se=b.appendChild(Qe("div",null,"CodeMirror-gutter "+ie));fe&&(Se.style.cssText=fe),ie=="CodeMirror-linenumbers"&&(a.lineGutter=Se,Se.style.width=(a.lineNumWidth||1)+"px")}b.style.display=x.length?"":"none",De(a)}function vn(a){qt(a.display),bo(a),ut(a)}function sn(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=ct("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=ct("div",[ee.measure,ee.lineMeasure,ee.selectionDiv,ee.cursorDiv,ee.lineDiv],null,"position: relative; outline: none");var ie=ct("div",[ee.lineSpace],"CodeMirror-lines");ee.mover=Qe("div",[ie],null,"position: relative"),ee.sizer=Qe("div",[ee.mover],"CodeMirror-sizer"),ee.sizerWidth=null,ee.heightForcer=Qe("div",null,null,"position: absolute; height: "+_t+"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"),ve&&me<8&&(ee.gutters.style.zIndex=-1,ee.scroller.style.paddingRight=0),!ye&&!(y&&Ee)&&(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=Kt(E.gutters,E.lineNumbers),qt(ee),x.init(ee)}var En=0,yn=null;ve?yn=-.53:y?yn=15:pe?yn=-.7:Re&&(yn=-1/3);function Wn(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 Rn(a){var b=Wn(a);return b.x*=yn,b.y*=yn,b}function Tn(a,b){var x=Wn(b),E=x.x,ee=x.y,ie=a.display,fe=ie.scroller,Se=fe.scrollWidth>fe.clientWidth,ke=fe.scrollHeight>fe.clientHeight;if(E&&Se||ee&&ke){if(ee&&we&&ye){e:for(var Ye=b.target,Xt=ie.view;Ye!=fe;Ye=Ye.parentNode)for(var nn=0;nn<Xt.length;nn++)if(Xt[nn].node==Ye){a.display.currentWheelTarget=Ye;break e}}if(E&&!y&&!le&&yn!=null){ee&&ke&&Es(a,Math.max(0,fe.scrollTop+ee*yn)),ql(a,Math.max(0,fe.scrollLeft+E*yn)),(!ee||ee&&ke)&&yt(b),ie.wheelStartX=null;return}if(ee&&yn!=null){var An=ee*yn,Sn=a.doc.scrollTop,tr=Sn+ie.wrapper.clientHeight;An<0?Sn=Math.max(0,Sn+An-50):tr=Math.min(a.doc.height,tr+An+50),il(a,{top:Sn,bottom:tr})}En<20&&(ie.wheelStartX==null?(ie.wheelStartX=fe.scrollLeft,ie.wheelStartY=fe.scrollTop,ie.wheelDX=E,ie.wheelDY=ee,setTimeout(function(){if(ie.wheelStartX!=null){var vr=fe.scrollLeft-ie.wheelStartX,Ir=fe.scrollTop-ie.wheelStartY,Gr=Ir&&ie.wheelDY&&Ir/ie.wheelDY||vr&&ie.wheelDX&&vr/ie.wheelDX;ie.wheelStartX=ie.wheelStartY=null,Gr&&(yn=(yn*En+Gr)/(En+1),++En)}},200)):(ie.wheelDX+=E,ie.wheelDY+=ee))}}var Fn=function(a,b){this.ranges=a,this.primIndex=b};Fn.prototype.primary=function(){return this.ranges[this.primIndex]},Fn.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},Fn.prototype.deepCopy=function(){for(var a=[],b=0;b<this.ranges.length;b++)a[b]=new Dn(Ln(this.ranges[b].anchor),Ln(this.ranges[b].head));return new Fn(a,this.primIndex)},Fn.prototype.somethingSelected=function(){for(var a=0;a<this.ranges.length;a++)if(!this.ranges[a].empty())return!0;return!1},Fn.prototype.contains=function(a,b){b||(b=a);for(var x=0;x<this.ranges.length;x++){var E=this.ranges[x];if(Nt(b,E.from())>=0&&Nt(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(An,Sn){return Nt(An.from(),Sn.from())}),x=Ft(b,ee);for(var ie=1;ie<b.length;ie++){var fe=b[ie],Se=b[ie-1],ke=Nt(Se.to(),fe.from());if(E&&!fe.empty()?ke>0:ke>=0){var Ye=pt(Se.from(),fe.from()),Xt=zn(Se.to(),fe.to()),nn=Se.empty()?fe.from()==fe.head:Se.from()==Se.head;ie<=x&&--x,b.splice(--ie,2,new Dn(nn?Xt:Ye,nn?Ye:Xt))}}return new Fn(b,x)}function er(a,b){return new Fn([new Dn(a,b||a)],0)}function Er(a){return a.text?Ue(a.from.line+a.text.length-1,nt(a.text).length+(a.text.length==1?a.from.ch:0)):a.to}function Dr(a,b){if(Nt(a,b.from)<0)return a;if(Nt(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),Ue(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?Ue(x.line,a.ch-b.ch+x.ch):Ue(x.line+(a.line-b.line),a.ch)}function Wr(a,b,x){for(var E=[],ee=Ue(a.first,0),ie=ee,fe=0;fe<b.length;fe++){var Se=b[fe],ke=Tr(Se.from,ee,ie),Ye=Tr(Er(Se),ee,ie);if(ee=Se.to,ie=Ye,x=="around"){var Xt=a.sel.ranges[fe],nn=Nt(Xt.head,Xt.anchor)<0;E[fe]=new Dn(nn?Ye:ke,nn?ke:Ye)}else E[fe]=new Dn(ke,ke)}return new Fn(E,a.sel.primIndex)}function ro(a){a.doc.mode=_n(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&&nt(b.text)==""&&(!a.cm||a.cm.options.wholeLineUpdateBefore)}function Ao(a,b,x,E){function ee(mo){return x?x[mo]:null}function ie(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(Ye[ii],ee(ii),E));return Do}var Se=b.from,ke=b.to,Ye=b.text,Xt=dn(a,Se.line),nn=dn(a,ke.line),An=nt(Ye),Sn=ee(Ye.length-1),tr=ke.line-Se.line;if(b.full)a.insert(0,fe(0,Ye.length)),a.remove(Ye.length,a.size-Ye.length);else if(si(a,b)){var vr=fe(0,Ye.length-1);ie(nn,nn.text,Sn),tr&&a.remove(Se.line,tr),vr.length&&a.insert(Se.line,vr)}else if(Xt==nn)if(Ye.length==1)ie(Xt,Xt.text.slice(0,Se.ch)+An+Xt.text.slice(ke.ch),Sn);else{var Ir=fe(1,Ye.length-1);Ir.push(new Fo(An+Xt.text.slice(ke.ch),Sn,E)),ie(Xt,Xt.text.slice(0,Se.ch)+Ye[0],ee(0)),a.insert(Se.line+1,Ir)}else if(Ye.length==1)ie(Xt,Xt.text.slice(0,Se.ch)+Ye[0]+nn.text.slice(ke.ch),ee(0)),a.remove(Se.line+1,tr);else{ie(Xt,Xt.text.slice(0,Se.ch)+Ye[0],ee(0)),ie(nn,An+nn.text.slice(ke.ch),Sn);var Gr=fe(1,Ye.length-1);tr>1&&a.remove(Se.line+1,tr-1),a.insert(Se.line+1,Gr)}Ti(a,"change",a,b)}function Eo(a,b,x){function E(ee,ie,fe){if(ee.linked)for(var Se=0;Se<ee.linked.length;++Se){var ke=ee.linked[Se];if(ke.doc!=ie){var Ye=fe&&ke.sharedHist;x&&!Ye||(b(ke.doc,Ye),E(ke.doc,ee,Ye))}}}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:$e)(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 Or(a,b){var x={from:Ln(b.from),to:Er(b),text:Cn(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=nt(a);if(b.ranges)a.pop();else break}}function uo(a,b){if(b)return qr(a.done),nt(a.done);if(a.done.length&&!nt(a.done).ranges)return nt(a.done);if(a.done.length>1&&!a.done[a.done.length-2].ranges)return a.done.pop(),nt(a.done)}function Oo(a,b,x,E){var ee=a.history;ee.undone.length=0;var ie=+new Date,fe,Se;if((ee.lastOp==E||ee.lastOrigin==b.origin&&b.origin&&(b.origin.charAt(0)=="+"&&ee.lastModTime>ie-(a.cm?a.cm.options.historyEventDelay:500)||b.origin.charAt(0)=="*"))&&(fe=uo(ee,ee.lastOp==E)))Se=nt(fe.changes),Nt(b.from,b.to)==0&&Nt(b.from,Se.to)==0?Se.to=Er(b):fe.changes.push(Or(a,b));else{var ke=nt(ee.done);for((!ke||!ke.ranges)&&hi(a.sel,ee.done),fe={changes:[Or(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=ie,ee.lastOp=ee.lastSelOp=E,ee.lastOrigin=ee.lastSelOrigin=b.origin,Se||tn(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,ie=E&&E.origin;x==ee.lastSelOp||ie&&ee.lastSelOrigin==ie&&(ee.lastModTime==ee.lastSelTime&&ee.lastOrigin==ie||Hr(a,ie,nt(ee.done),b))?ee.done[ee.done.length-1]=b:hi(b,ee.done),ee.lastSelTime=+new Date,ee.lastSelOrigin=ie,ee.lastSelOp=x,E&&E.clearRedo!==!1&&qr(ee.undone)}function hi(a,b){var x=nt(b);x&&x.ranges&&x.equals(a)||b.push(a)}function ha(a,b,x,E){var ee=b["spans_"+a.id],ie=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]={}))[ie]=fe.markedSpans),++ie})}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 ie=x[ee],fe=E[ee];if(ie&&fe)e:for(var Se=0;Se<fe.length;++Se){for(var ke=fe[Se],Ye=0;Ye<ie.length;++Ye)if(ie[Ye].marker==ke.marker)continue e;ie.push(ke)}else fe&&(x[ee]=fe)}return x}function ya(a,b,x){for(var E=[],ee=0;ee<a.length;++ee){var ie=a[ee];if(ie.ranges){E.push(x?Fn.prototype.deepCopy.call(ie):ie);continue}var fe=ie.changes,Se=[];E.push({changes:Se});for(var ke=0;ke<fe.length;++ke){var Ye=fe[ke],Xt=void 0;if(Se.push({from:Ye.from,to:Ye.to,text:Ye.text}),b)for(var nn in Ye)(Xt=nn.match(/^spans_(\d+)$/))&&Ft(b,Number(Xt[1]))>-1&&(nt(Se)[nn]=Ye[nn],delete Ye[nn])}}return E}function mi(a,b,x,E){if(E){var ee=a.anchor;if(x){var ie=Nt(b,ee)<0;ie!=Nt(x,ee)<0?(ee=b,b=x):ie!=Nt(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 Fn([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),ie=0;ie<a.sel.ranges.length;ie++)E[ie]=mi(a.sel.ranges[ie],b[ie],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 ie=0;ie<ee.length;ie++)this.ranges[ie]=new Dn(St(a,ee[ie].anchor),St(a,ee[ie].head))},origin:x&&x.origin};return tn(a,"beforeSelectionChange",a,E),a.cm&&tn(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=nt(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){($t(a,"beforeSelectionChange")||a.cm&&$t(a.cm,"beforeSelectionChange"))&&(b=ei(a,b,x));var E=x&&x.bias||(Nt(b.primary().head,a.sel.primary().head)<0?-1:1);Oi(a,Hi(a,b,E,!0)),!(x&&x.scroll===!1)&&a.cm&&Il(a.cm)}function Oi(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){Oi(a,Hi(a,a.sel,null,!1))}function Hi(a,b,x,E){for(var ee,ie=0;ie<b.ranges.length;ie++){var fe=b.ranges[ie],Se=b.ranges.length==a.sel.ranges.length&&a.sel.ranges[ie],ke=Pa(a,fe.anchor,Se&&Se.anchor,x,E),Ye=Pa(a,fe.head,Se&&Se.head,x,E);(ee||ke!=fe.anchor||Ye!=fe.head)&&(ee||(ee=b.ranges.slice(0,ie)),ee[ie]=new Dn(ke,Ye))}return ee?yr(a.cm,ee,b.primIndex):b}function Ca(a,b,x,E,ee){var ie=dn(a,b.line);if(ie.markedSpans)for(var fe=0;fe<ie.markedSpans.length;++fe){var Se=ie.markedSpans[fe],ke=Se.marker,Ye="selectLeft"in ke?!ke.selectLeft:ke.inclusiveLeft,Xt="selectRight"in ke?!ke.selectRight:ke.inclusiveRight;if((Se.from==null||(Ye?Se.from<=b.ch:Se.from<b.ch))&&(Se.to==null||(Xt?Se.to>=b.ch:Se.to>b.ch))){if(ee&&(tn(ke,"beforeCursorEnter"),ke.explicitlyCleared))if(ie.markedSpans){--fe;continue}else break;if(!ke.atomic)continue;if(x){var nn=ke.find(E<0?1:-1),An=void 0;if((E<0?Xt:Ye)&&(nn=Po(a,nn,-E,nn&&nn.line==b.line?ie:null)),nn&&nn.line==b.line&&(An=Nt(nn,x))&&(E<0?An<0:An>0))return Ca(a,nn,b,E,ee)}var Sn=ke.find(E<0?-1:1);return(E<0?Ye:Xt)&&(Sn=Po(a,Sn,E,Sn.line==b.line?ie:null)),Sn?Ca(a,Sn,b,E,ee):null}}return b}function Pa(a,b,x,E,ee){var ie=E||1,fe=Ca(a,b,x,ie,ee)||!ee&&Ca(a,b,x,ie,!0)||Ca(a,b,x,-ie,ee)||!ee&&Ca(a,b,x,-ie,!0);return fe||(a.cantEdit=!0,Ue(a.first,0))}function Po(a,b,x,E){return x<0&&b.ch==0?b.line>a.first?St(a,Ue(b.line-1)):null:x>0&&b.ch==(E||dn(a,b.line)).text.length?b.line<a.first+a.size-1?Ue(b.line+1,0):null:new Ue(b.line,b.ch+x)}function jo(a){a.setSelection(Ue(a.firstLine(),0),Ue(a.lastLine()),xe)}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,ie,fe,Se){ee&&(E.from=St(a,ee)),ie&&(E.to=St(a,ie)),fe&&(E.text=fe),Se!==void 0&&(E.origin=Se)}),tn(a,"beforeChange",a,E),a.cm&&tn(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 $i(a,b,x){if(a.cm){if(!a.cm.curOp)return Xn(a.cm,$i)(a,b,x);if(a.cm.state.suppressEdits)return}if(!(($t(a,"beforeChange")||a.cm&&$t(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)Zi(a,{from:E[ee].from,to:E[ee].to,text:ee?[""]:b.text,origin:b.origin});else Zi(a,b)}}function Zi(a,b){if(!(b.text.length==1&&b.text[0]==""&&Nt(b.from,b.to)==0)){var x=xr(a,b);Oo(a,b,x,a.cm?a.cm.curOp.id:NaN),al(a,b,x,so(a,b));var E=[];Eo(a,function(ee,ie){!ie&&Ft(E,ee.history)==-1&&(Aa(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,ie,fe=a.sel,Se=b=="undo"?ee.done:ee.undone,ke=b=="undo"?ee.undone:ee.done,Ye=0;Ye<Se.length&&(ie=Se[Ye],!(x?ie.ranges&&!ie.equals(a.sel):!ie.ranges));Ye++);if(Ye!=Se.length){for(ee.lastOrigin=ee.lastSelOrigin=null;;)if(ie=Se.pop(),ie.ranges){if(hi(ie,ke),x&&!ie.equals(a.sel)){Jr(a,ie,{clearRedo:!1});return}fe=ie}else if(E){Se.push(ie);return}else break;var Xt=[];hi(fe,ke),ke.push({changes:Xt,generation:ee.generation}),ee.generation=ie.generation||++ee.maxGeneration;for(var nn=$t(a,"beforeChange")||a.cm&&$t(a.cm,"beforeChange"),An=function(vr){var Ir=ie.changes[vr];if(Ir.origin=b,nn&&!Ni(a,Ir,!1))return Se.length=0,{};Xt.push(Or(a,Ir));var Gr=vr?xr(a,Ir):nt(Se);al(a,Ir,Gr,ra(a,Ir)),!vr&&a.cm&&a.cm.scrollIntoView({from:Ir.from,to:Er(Ir)});var mo=[];Eo(a,function(Xr,Do){!Do&&Ft(mo,Xr.history)==-1&&(Aa(Xr.history,Ir),mo.push(Xr.history)),al(Xr,Ir,null,ra(Xr,Ir))})},Sn=ie.changes.length-1;Sn>=0;--Sn){var tr=An(Sn);if(tr)return tr.v}}}}function Ea(a,b){if(b!=0&&(a.first+=b,a.sel=new Fn(rn(a.sel.ranges,function(ee){return new Dn(Ue(ee.anchor.line+b,ee.anchor.ch),Ue(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++)Io(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:Ue(a.first,0),to:Ue(b.to.line+ee,b.to.ch),text:[nt(b.text)],origin:b.origin}}var ie=a.lastLine();b.to.line>ie&&(b={from:b.from,to:Ue(ie,dn(a,ie).text.length),text:[b.text[0]],origin:b.origin}),b.removed=Cn(a,b.from,b.to),x||(x=xr(a,b)),a.cm?oa(a.cm,b,E):Ao(a,b,E),xi(a,x,xe),a.cantEdit&&Pa(a,Ue(a.firstLine(),0))&&(a.cantEdit=!1)}}function oa(a,b,x){var E=a.doc,ee=a.display,ie=b.from,fe=b.to,Se=!1,ke=ie.line;a.options.lineWrapping||(ke=Et(kn(dn(E,ie.line))),E.iter(ke,fe.line+1,function(Sn){if(Sn==ee.maxLine)return Se=!0,!0})),E.sel.contains(b.from,b.to)>-1&&ln(a),Ao(E,b,x,pi(a)),a.options.lineWrapping||(E.iter(ke,ie.line+b.text.length,function(Sn){var tr=Yr(Sn);tr>ee.maxLineLength&&(ee.maxLine=Sn,ee.maxLineLength=tr,ee.maxLineChanged=!0,Se=!1)}),Se&&(a.curOp.updateMaxLine=!0)),$r(E,ie.line),ki(a,400);var Ye=b.text.length-(fe.line-ie.line)-1;b.full?bo(a):ie.line==fe.line&&b.text.length==1&&!si(a.doc,b)?Io(a,ie.line,"text"):bo(a,ie.line,fe.line+1,Ye);var Xt=$t(a,"changes"),nn=$t(a,"change");if(nn||Xt){var An={from:ie,to:fe,text:b.text,removed:b.removed,origin:b.origin};nn&&Ti(a,"change",a,An),Xt&&(a.curOp.changeObjs||(a.curOp.changeObjs=[])).push(An)}a.display.selForContextMenu=null}function Fi(a,b,x,E,ee){var ie;E||(E=x),Nt(E,x)<0&&(ie=[E,x],x=ie[0],E=ie[1]),typeof b=="string"&&(b=a.splitLines(b)),$i(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 ie=a[ee],fe=!0;if(ie.ranges){ie.copied||(ie=a[ee]=ie.deepCopy(),ie.copied=!0);for(var Se=0;Se<ie.ranges.length;Se++)Wi(ie.ranges[Se].anchor,b,x,E),Wi(ie.ranges[Se].head,b,x,E);continue}for(var ke=0;ke<ie.changes.length;++ke){var Ye=ie.changes[ke];if(x<Ye.from.line)Ye.from=Ue(Ye.from.line+E,Ye.from.ch),Ye.to=Ue(Ye.to.line+E,Ye.to.ch);else if(b<=Ye.to.line){fe=!1;break}}fe||(a.splice(0,ee+1),ee=0)}}function Aa(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,ie=b;return typeof b=="number"?ie=dn(a,Ct(a,b)):ee=Et(b),ee==null?null:(E(ie,ee)&&a.cm&&Io(a.cm,ee,x),ie)}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 ie=Math.min(b,ee-a),fe=E.height;if(E.removeInner(a,ie),this.height-=fe-E.height,ee==ie&&(this.children.splice(x--,1),E.parent=null),(b-=ie)==0)break;a=0}else a-=ee}if(this.size-b<25&&(this.children.length>1||!(this.children[0]instanceof Pi))){var Se=[];this.collapse(Se),this.children=[new Pi(Se)],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],ie=ee.chunkSize();if(a<=ie){if(ee.insertInner(a,b,x),ee.lines&&ee.lines.length>50){for(var fe=ee.lines.length%25+25,Se=fe;Se<ee.lines.length;){var ke=new Pi(ee.lines.slice(Se,Se+=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-=ie}},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=Ft(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],ie=ee.chunkSize();if(a<ie){var fe=Math.min(b,ie-a);if(ee.iterN(a,fe,x))return!0;if((b-=fe)==0)break;a=0}else a-=ie}}};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=Et(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 ie=zi(this);Kn(x,Math.max(0,x.height-ie)),a&&(Lr(a,function(){$a(a,x,-ie),Io(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&&(ur(this.doc,E)||Kn(E,E.height+ee),x&&Lr(x,function(){x.curOp.forceUpdate=!0,$a(x,E,ee),Ti(x,"lineWidgetChanged",x,a,Et(E))}))},ze(Li);function $a(a,b,x){Zr(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),ie=a.cm;return ie&&ee.noHScroll&&(ie.display.alignWidgets=!0),ma(a,b,"widget",function(fe){var Se=fe.widgets||(fe.widgets=[]);if(ee.insertAt==null?Se.push(ee):Se.splice(Math.min(Se.length-1,Math.max(0,ee.insertAt)),0,ee),ee.line=fe,ie&&!ur(a,fe)){var ke=Zr(fe)<a.scrollTop;Kn(fe,fe.height+zi(ee)),ke&&ss(ie,ee.height),ie.curOp.forceUpdate=!0}return!0}),ie&&Ti(ie,"lineWidgetAdded",ie,ee,typeof b=="number"?b:Et(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&&Zl(a),$t(this,"clear")){var x=this.find();x&&Ti(this,"clear",x.from,x.to)}for(var E=null,ee=null,ie=0;ie<this.lines.length;++ie){var fe=this.lines[ie],Se=or(fe.markedSpans,this);a&&!this.collapsed?Io(a,Et(fe),"text"):a&&(Se.to!=null&&(ee=Et(fe)),Se.from!=null&&(E=Et(fe))),fe.markedSpans=Ur(fe.markedSpans,Se),Se.from==null&&this.collapsed&&!ur(this.doc,fe)&&a&&Kn(fe,Kr(a.display))}if(a&&this.collapsed&&!a.options.lineWrapping)for(var ke=0;ke<this.lines.length;++ke){var Ye=kn(this.lines[ke]),Xt=Yr(Ye);Xt>a.display.maxLineLength&&(a.display.maxLine=Ye,a.display.maxLineLength=Xt,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 ie=this.lines[ee],fe=or(ie.markedSpans,this);if(fe.from!=null&&(x=Ue(b?ie:Et(ie),fe.from),a==-1))return x;if(fe.to!=null&&(E=Ue(b?ie:Et(ie),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,ie=Et(b.line),fe=Al(E,ie);if(fe&&(as(fe),E.curOp.selectionChanged=E.curOp.forceUpdate=!0),E.curOp.updateMaxLine=!0,!ur(x.doc,ee)&&x.height!=null){var Se=x.height;x.height=null;var ke=zi(x)-Se;ke&&Kn(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||Ft(b.maybeHiddenMarkers,this)==-1)&&(b.maybeUnhiddenMarkers||(b.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(a)},ll.prototype.detachLine=function(a){if(this.lines.splice(Ft(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 ie=new ll(a,ee),fe=Nt(b,x);if(E&&Mt(E,ie,!1),fe>0||fe==0&&ie.clearWhenEmpty!==!1)return ie;if(ie.replacedWith&&(ie.collapsed=!0,ie.widgetNode=ct("span",[ie.replacedWith],"CodeMirror-widget"),E.handleMouseEvents||ie.widgetNode.setAttribute("cm-ignore-events","true"),E.insertLeft&&(ie.widgetNode.insertLeft=!0)),ie.collapsed){if(Yn(a,b.line,b,x,ie)||b.line!=x.line&&Yn(a,x.line,b,x,ie))throw new Error("Inserting collapsed marker partially overlapping an existing one");kr()}ie.addToHistory&&Oo(a,{from:b,to:x,origin:"markText"},a.sel,NaN);var Se=b.line,ke=a.cm,Ye;if(a.iter(Se,x.line+1,function(nn){ke&&ie.collapsed&&!ke.options.lineWrapping&&kn(nn)==ke.display.maxLine&&(Ye=!0),ie.collapsed&&Se!=b.line&&Kn(nn,0),Rr(nn,new Fr(ie,Se==b.line?b.ch:null,Se==x.line?x.ch:null)),++Se}),ie.collapsed&&a.iter(b.line,x.line+1,function(nn){ur(a,nn)&&Kn(nn,0)}),ie.clearOnEnter&&Ot(ie,"beforeCursorEnter",function(){return ie.clear()}),ie.readOnly&&(eo(),(a.history.done.length||a.history.undone.length)&&a.clearHistory()),ie.collapsed&&(ie.id=++tl,ie.atomic=!0),ke){if(Ye&&(ke.curOp.updateMaxLine=!0),ie.collapsed)bo(ke,b.line,x.line+1);else if(ie.className||ie.startStyle||ie.endStyle||ie.css||ie.attributes||ie.title)for(var Xt=b.line;Xt<=x.line;Xt++)Io(ke,Xt,"text");ie.atomic&&qi(ke.doc),Ti(ke,"markerAdded",ke,ie)}return ie}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 ie=[_l(a,b,x,E,ee)],fe=ie[0],Se=E.widgetNode;return Eo(a,function(ke){Se&&(E.widgetNode=Se.cloneNode(!0)),ie.push(_l(ke,St(ke,b),St(ke,x),E,ee));for(var Ye=0;Ye<ke.linked.length;++Ye)if(ke.linked[Ye].isParent)return;fe=nt(ie)}),new Ui(ie,fe)}function nl(a){return a.findMarks(Ue(a.first,0),a.clipPos(Ue(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(),ie=a.clipPos(ee.from),fe=a.clipPos(ee.to);if(Nt(ie,fe)){var Se=_l(a,ie,fe,E.primary,E.primary.type);E.markers.push(Se),Se.parent=E}}}function pl(a){for(var b=function(E){var ee=a[E],ie=[ee.primary.doc];Eo(ee.primary.doc,function(ke){return ie.push(ke)});for(var fe=0;fe<ee.markers.length;fe++){var Se=ee.markers[fe];Ft(ie,Se.doc)==-1&&(Se.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 ie=Ue(x,0);this.sel=er(ie),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)),Ao(this,{from:ie,to:ie,text:a}),Jr(this,er(ie),xe)};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=Hn(this,this.first,this.first+this.size);return a===!1?b:b.join(a||this.lineSeparator())},setValue:Vo(function(a){var b=Ue(this.first,0),x=this.first+this.size-1;$i(this,{from:b,to:Ue(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),xe)}),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=Cn(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 Et(a)},getLineHandleVisualStart:function(a){return typeof a=="number"&&(a=dn(this,a)),kn(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"?Ue(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=rn(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=Cn(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=Cn(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,ie=0;ie<ee.ranges.length;ie++){var fe=ee.ranges[ie];E[ie]={from:fe.from(),to:fe.to(),text:this.splitLines(a[ie]),origin:x}}for(var Se=b&&b!="end"&&Wr(this,E,b),ke=E.length-1;ke>=0;ke--)$i(this,E[ke]);Se?vo(this,Se):this.cm&&Il(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=Et(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(Ze(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",ie=E[ee];if(ie)if(x==null)E[ee]=null;else{var fe=ie.match(Ze(x));if(!fe)return!1;var Se=fe.index+fe[0].length;E[ee]=ie.slice(0,fe.index)+(!fe.index||Se==ie.length?"":" ")+ie.slice(Se)||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(ie){var fe=ie.markedSpans;if(fe)for(var Se=0;Se<fe.length;Se++){var ke=fe[Se];!(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 ie=ee.text.length+E;if(ie>a)return b=a,!0;a-=ie,++x}),St(this,Ue(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(Hn(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(Hn(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):mn(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(js(b),!(Lt(b,a)||Qi(b.display,a))){yt(a),ve&&(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,ie=Array(ee),fe=0,Se=function(){++fe==ee&&Xn(b,function(){x=St(b.doc,x);var Sn={from:x,to:x,text:b.doc.splitLines(ie.filter(function(tr){return tr!=null}).join(b.doc.lineSeparator())),origin:"paste"};$i(b.doc,Sn),vo(b.doc,er(St(b.doc,x),St(b.doc,Er(Sn))))})()},ke=function(Sn,tr){if(b.options.allowDropFileTypes&&Ft(b.options.allowDropFileTypes,Sn.type)==-1){Se();return}var vr=new FileReader;vr.onerror=function(){return Se()},vr.onload=function(){var Ir=vr.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Ir)){Se();return}ie[tr]=Ir,Se()},vr.readAsText(Sn)},Ye=0;Ye<E.length;Ye++)ke(E[Ye],Ye);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 Xt=a.dataTransfer.getData("Text");if(Xt){var nn;if(b.state.draggingText&&!b.state.draggingText.copy&&(nn=b.listSelections()),xi(b.doc,er(x,x)),nn)for(var An=0;An<nn.length;++An)Fi(b.doc,"",nn[An].anchor,nn[An].head,"drag");b.replaceSelection(Xt,"around","paste"),b.display.input.focus()}}catch(Sn){}}}}function jl(a,b){if(ve&&(!a.state.draggingText||+new Date-vl<100)){Ke(b);return}if(!(Lt(a,b)||Qi(a.display,b))&&(b.dataTransfer.setData("Text",a.getSelection()),b.dataTransfer.effectAllowed="copyMove",b.dataTransfer.setDragImage&&!Re)){var x=Qe("img",null,null,"position: fixed; left: 0; top: 0;");x.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",le&&(x.width=x.height=1,a.display.wrapper.appendChild(x),x._top=x.offsetTop),b.dataTransfer.setDragImage(x,0,0),le&&x.parentNode.removeChild(x)}}function $l(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)),ot(a.display.dragCursor,E)}}function js(a){a.display.dragCursor&&(a.display.lineSpace.removeChild(a.display.dragCursor),a.display.dragCursor=null)}function $s(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 ie=0;ie<x.length;ie++)a(x[ie])})}}var zs=!1;function Hs(){zs||(qs(),zs=!0)}function qs(){var a;Ot(window,"resize",function(){a==null&&(a=setTimeout(function(){a=null,$s(ui)},100))}),Ot(window,"blur",function(){return $s(Ia)})}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=we?Ma.macDefault:Ma.pcDefault;function Tl(a){var b=a.split(/-(?!$)/);a=b[b.length-1];for(var x,E,ee,ie,fe=0;fe<b.length-1;fe++){var Se=b[fe];if(/^(cmd|meta|m)$/i.test(Se))ie=!0;else if(/^a(lt)?$/i.test(Se))x=!0;else if(/^(c|ctrl|control)$/i.test(Se))E=!0;else if(/^s(hift)?$/i.test(Se))ee=!0;else throw new Error("Unrecognized modifier name: "+Se)}return x&&(a="Alt-"+a),E&&(a="Ctrl-"+a),ie&&(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=rn(x.split(" "),Tl),ie=0;ie<ee.length;ie++){var fe=void 0,Se=void 0;ie==ee.length-1?(Se=ee.join(" "),fe=E):(Se=ee.slice(0,ie+1).join(" "),fe="...");var ke=b[Se];if(!ke)b[Se]=fe;else if(ke!=fe)throw new Error("Inconsistent bindings for "+Se)}delete a[x]}for(var Ye in b)a[Ye]=b[Ye];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 ie=0;ie<b.fallthrough.length;ie++){var fe=xs(a,b.fallthrough[ie],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 As(a,b,x){var E=a;return b.altKey&&E!="Alt"&&(a="Alt-"+a),(Pe?b.metaKey:b.ctrlKey)&&E!="Ctrl"&&(a="Ctrl-"+a),(Pe?b.ctrlKey:b.metaKey)&&E!="Mod"&&(a="Cmd-"+a),!x&&b.shiftKey&&E!="Shift"&&(a="Shift-"+a),a}function ps(a,b){if(le&&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),As(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 ie=b(x[ee]);E.length&&Nt(ie.from,nt(E).to)<=0;){var fe=E.pop();if(Nt(fe.from,ie.from)<0){ie.from=fe.from;break}}E.push(ie)}Lr(a,function(){for(var Se=E.length-1;Se>=0;Se--)Fi(a.doc,"",E[Se].from,E[Se].to,"+delete");Il(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 Ue(b.line,E,x<0?"after":"before")}function nu(a,b,x,E,ee){if(a){b.doc.direction=="rtl"&&(ee=-ee);var ie=Le(x,b.doc.direction);if(ie){var fe=ee<0?nt(ie):ie[0],Se=ee<0==(fe.level==1),ke=Se?"after":"before",Ye;if(fe.level>0||b.doc.direction=="rtl"){var Xt=Ll(b,x);Ye=ee<0?x.text.length-1:0;var nn=fl(b,Xt,Ye).top;Ye=Ge(function(An){return fl(b,Xt,An).top==nn},ee<0==(fe.level==1)?fe.from:fe.to-1,Ye),ke=="before"&&(Ye=tu(x,Ye,1))}else Ye=ee<0?fe.to:fe.from;return new Ue(E,Ye,ke)}}return new Ue(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 ie=ht(ee,x.ch,x.sticky),fe=ee[ie];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 Se=function(Gr,mo){return tu(b,Gr instanceof Ue?Gr.ch:Gr,mo)},ke,Ye=function(Gr){return a.options.lineWrapping?(ke=ke||Ll(a,b),Qt(a,b,ke,Gr)):{begin:0,end:b.text.length}},Xt=Ye(x.sticky=="before"?Se(x,-1):x.ch);if(a.doc.direction=="rtl"||fe.level==1){var nn=fe.level==1==E<0,An=Se(x,nn?1:-1);if(An!=null&&(nn?An<=fe.to&&An<=Xt.end:An>=fe.from&&An>=Xt.begin)){var Sn=nn?"before":"after";return new Ue(x.line,An,Sn)}}var tr=function(Gr,mo,Xr){for(var Do=function(ca,Xa){return Xa?new Ue(x.line,Se(ca,1),"before"):new Ue(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:Se(Xr.end,-1);if(ii.from<=Si&&Si<ii.to||(Si=Uo?ii.from:Se(ii.to,-1),Xr.begin<=Si&&Si<Xr.end))return Do(Si,Uo)}},vr=tr(ie+E,E,Xt);if(vr)return vr;var Ir=E>0?Xt.end:Se(Xt.begin,-1);return Ir!=null&&!(E>0&&Ir==b.text.length)&&(vr=tr(E>0?0:ee.length-1,E,Ye(Ir)),vr)?vr:null}var ns={selectAll:jo,singleSelection:function(a){return a.setSelection(a.getCursor("anchor"),a.getCursor("head"),xe)},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:Ue(b.head.line+1,0)}:{from:b.head,to:Ue(b.head.line,x)}}else return{from:b.from(),to:b.to()}})},deleteLine:function(a){return vs(a,function(b){return{from:Ue(b.from().line,0),to:St(a.doc,Ue(b.to().line+1,0))}})},delLineLeft:function(a){return vs(a,function(b){return{from:Ue(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(Ue(a.firstLine(),0))},goDocEnd:function(a){return a.extendSelection(Ue(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 ie=x[ee].from(),fe=be(a.getLine(ie.line),ie.ch,E);b.push(st(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,ie=dn(a.doc,ee.line).text;if(ie){if(ee.ch==ie.length&&(ee=new Ue(ee.line,ee.ch-1)),ee.ch>0)ee=new Ue(ee.line,ee.ch+1),a.replaceRange(ie.charAt(ee.ch-1)+ie.charAt(ee.ch-2),Ue(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 Ue(ee.line,1),a.replaceRange(ie.charAt(0)+a.doc.lineSeparator()+fe.charAt(fe.length-1),Ue(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);Il(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=kn(x);return E!=x&&(b=Et(E)),nu(!0,a,E,b,1)}function xu(a,b){var x=dn(a.doc,b),E=mr(x);return E!=x&&(b=Et(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 ie=Math.max(x.ch,E.text.search(/\S/)),fe=b.line==x.line&&b.ch<=ie&&b.ch;return Ue(x.line,fe?0:ie,x.sticky)}return x}function Os(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)!=Tt}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 ge;function Is(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?Is(a,"Shift-"+x,b,function(E){return Os(a,E,!0)})||Is(a,x,b,function(E){if(typeof E=="string"?/^go[A-Z]/.test(E):E.motion)return Os(a,E)}):Is(a,x,b,function(E){return Os(a,E)}):!1}function au(a,b,x){return Is(a,"'"+x+"'",b,function(E){return Os(a,E,!0)})}var Ms=null;function lu(a){var b=this;if(!(a.target&&a.target!=b.display.input.getField())&&(b.curOp.focus=Te(),!Lt(b,a))){ve&&me<11&&a.keyCode==27&&(a.returnValue=!1);var x=a.keyCode;b.display.shift=x==16||a.shiftKey;var E=Ns(b,a);le&&(Ms=E?x:null,!E&&x==88&&!Dt&&(we?a.metaKey:a.ctrlKey)&&b.replaceSelection("",null,"cut")),y&&!we&&!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)&&($e(b,"CodeMirror-crosshair"),un(document,"keyup",x),un(document,"mouseover",x))}Ot(document,"keyup",x),Ot(document,"mouseover",x)}function su(a){a.keyCode==16&&(this.doc.sel.shift=!1),Lt(this,a)}function uu(a){var b=this;if(!(a.target&&a.target!=b.display.input.getField())&&!(Qi(b.display,a)||Lt(b,a)||a.ctrlKey&&!a.altKey||we&&a.metaKey)){var x=a.keyCode,E=a.charCode;if(le&&x==Ms){Ms=null,yt(a);return}if(!(le&&(!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&&Nt(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(!(Lt(b,a)||x.activeTouch&&x.input.supportsTouch())){if(x.input.ensurePolled(),x.shift=a.shiftKey,Qi(x,a)){ye||(x.scroller.draggable=!1,setTimeout(function(){return x.scroller.draggable=!0},100));return}if(!Vl(b,a)){var E=gr(b,a),ee=Zt(a),ie=E?cu(E,ee):"single";window.focus(),ee==1&&b.state.selectingText&&b.state.selectingText(a),!(E&&Du(b,ee,E,ie,a))&&(ee==1?E?Ii(b,E,ie,a):xt(a)==x.scroller&&yt(a):ee==2?(E&&vi(b.doc,E),setTimeout(function(){return x.input.focus()},20)):ee==3&&(Fe?b.display.input.onContextMenu(a):zo(b)))}}}function Du(a,b,x,E,ee){var ie="Click";return E=="double"?ie="Double"+ie:E=="triple"&&(ie="Triple"+ie),ie=(b==1?"Left":b==2?"Middle":"Right")+ie,Is(a,As(ie,ee),ee,function(fe){if(typeof fe=="string"&&(fe=ns[fe]),!fe)return!1;var Se=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),Se=fe(a,x)!=Tt}finally{a.state.suppressEdits=!1}return Se})}function Ai(a,b,x){var E=a.getOption("configureMouse"),ee=E?E(a,b,x):{};if(ee.unit==null){var ie=Ne?x.shiftKey&&x.metaKey:x.altKey;ee.unit=ie?"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=we?x.metaKey:x.ctrlKey),ee.moveOnDrag==null&&(ee.moveOnDrag=!(we?x.altKey:x.ctrlKey)),ee}function Ii(a,b,x,E){ve?setTimeout(lt(hl,a),0):a.curOp.focus=Te();var ee=Ai(a,x,E),ie=a.doc.sel,fe;a.options.dragDrop&&dt&&!a.isReadOnly()&&x=="single"&&(fe=ie.contains(b))>-1&&(Nt((fe=ie.ranges[fe]).from(),b)<0||b.xRel>0)&&(Nt(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,ie=!1,fe=Xn(a,function(Ye){ye&&(ee.scroller.draggable=!1),a.state.draggingText=!1,un(ee.wrapper.ownerDocument,"mouseup",fe),un(ee.wrapper.ownerDocument,"mousemove",Se),un(ee.scroller,"dragstart",ke),un(ee.scroller,"drop",fe),ie||(yt(Ye),E.addNew||vi(a.doc,x,null,null,E.extend),ye&&!Re||ve&&me==9?setTimeout(function(){ee.wrapper.ownerDocument.body.focus({preventScroll:!0}),ee.input.focus()},20):ee.input.focus())}),Se=function(Ye){ie=ie||Math.abs(b.clientX-Ye.clientX)+Math.abs(b.clientY-Ye.clientY)>=10},ke=function(){return ie=!0};ye&&(ee.scroller.draggable=!0),a.state.draggingText=fe,fe.copy=!E.moveOnDrag,ee.scroller.dragDrop&&ee.scroller.dragDrop(),Ot(ee.wrapper.ownerDocument,"mouseup",fe),Ot(ee.wrapper.ownerDocument,"mousemove",Se),Ot(ee.scroller,"dragstart",ke),Ot(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(Ue(b.line,0),St(a.doc,Ue(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,ie=a.doc;yt(b);var fe,Se,ke=ie.sel,Ye=ke.ranges;if(E.addNew&&!E.extend?(Se=ie.sel.contains(x),Se>-1?fe=Ye[Se]:fe=new Dn(x,x)):(fe=ie.sel.primary(),Se=ie.sel.primIndex),E.unit=="rectangle")E.addNew||(fe=new Dn(x,x)),x=gr(a,b,!0,!0),Se=-1;else{var Xt=gl(a,x,E.unit);E.extend?fe=mi(fe,Xt.anchor,Xt.head,E.extend):fe=Xt}E.addNew?Se==-1?(Se=Ye.length,Jr(ie,yr(a,Ye.concat([fe]),Se),{scroll:!1,origin:"*mouse"})):Ye.length>1&&Ye[Se].empty()&&E.unit=="char"&&!E.extend?(Jr(ie,yr(a,Ye.slice(0,Se).concat(Ye.slice(Se+1)),0),{scroll:!1,origin:"*mouse"}),ke=ie.sel):Ba(ie,Se,fe,rt):(Se=0,Jr(ie,new Fn([fe],0),rt),ke=ie.sel);var nn=x;function An(Xr){if(Nt(nn,Xr)!=0)if(nn=Xr,E.unit=="rectangle"){for(var Do=[],ii=a.options.tabSize,Uo=be(dn(ie,x.line).text,x.ch,ii),Si=be(dn(ie,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(ie,Fa).text,Za=Gt(yl,ca,ii);ca==Xa?Do.push(new Dn(Ue(Fa,Za),Ue(Fa,Za))):yl.length>Za&&Do.push(new Dn(Ue(Fa,Za),Ue(Fa,Gt(yl,Xa,ii))))}Do.length||Do.push(new Dn(x,x)),Jr(ie,yr(a,ke.ranges.slice(0,Se).concat(Do),Se),{origin:"*mouse",scroll:!1}),a.scrollIntoView(Xr)}else{var bl=fe,rl=gl(a,Xr,E.unit),za=bl.anchor,_a;Nt(rl.anchor,za)>0?(_a=rl.head,za=pt(bl.from(),rl.anchor)):(_a=rl.anchor,za=zn(bl.to(),rl.head));var Oa=ke.ranges.slice(0);Oa[Se]=ws(a,new Dn(St(ie,za),_a)),Jr(ie,yr(a,Oa,Se),rt)}}var Sn=ee.wrapper.getBoundingClientRect(),tr=0;function vr(Xr){var Do=++tr,ii=gr(a,Xr,!0,E.unit=="rectangle");if(ii)if(Nt(ii,nn)!=0){a.curOp.focus=Te(),An(ii);var Uo=Di(ee,ie);(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 Ir(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),ie.history.lastSelOrigin=null}var Gr=Xn(a,function(Xr){Xr.buttons===0||!Zt(Xr)?Ir(Xr):vr(Xr)}),mo=Xn(a,Ir);a.state.selectingText=mo,Ot(ee.wrapper.ownerDocument,"mousemove",Gr),Ot(ee.wrapper.ownerDocument,"mouseup",mo)}function ws(a,b){var x=b.anchor,E=b.head,ee=dn(a.doc,x.line);if(Nt(x,E)==0&&x.sticky==E.sticky)return b;var ie=Le(ee);if(!ie)return b;var fe=ht(ie,x.ch,x.sticky),Se=ie[fe];if(Se.from!=x.ch&&Se.to!=x.ch)return b;var ke=fe+(Se.from==x.ch==(Se.level!=1)?0:1);if(ke==0||ke==ie.length)return b;var Ye;if(E.line!=x.line)Ye=(E.line-x.line)*(a.doc.direction=="ltr"?1:-1)>0;else{var Xt=ht(ie,E.ch,E.sticky),nn=Xt-fe||(E.ch-x.ch)*(Se.level==1?-1:1);Xt==ke-1||Xt==ke?Ye=nn<0:Ye=nn>0}var An=ie[ke+(Ye?-1:0)],Sn=Ye==(An.level==1),tr=Sn?An.from:An.to,vr=Sn?"after":"before";return x.ch==tr&&x.sticky==vr?b:new Dn(new Ue(x.line,tr,vr),E)}function rs(a,b,x,E){var ee,ie;if(b.touches)ee=b.touches[0].clientX,ie=b.touches[0].clientY;else try{ee=b.clientX,ie=b.clientY}catch(An){return!1}if(ee>=Math.floor(a.display.gutters.getBoundingClientRect().right))return!1;E&&yt(b);var fe=a.display,Se=fe.lineDiv.getBoundingClientRect();if(ie>Se.bottom||!$t(a,x))return en(b);ie-=Se.top-fe.viewOffset;for(var ke=0;ke<a.display.gutterSpecs.length;++ke){var Ye=fe.gutters.childNodes[ke];if(Ye&&Ye.getBoundingClientRect().right>=ee){var Xt=Rt(a.doc,ie),nn=a.display.gutterSpecs[ke];return tn(a,x,a,Xt,nn.className,b),en(b)}}}function Vl(a,b){return rs(a,b,"gutterClick",!0)}function Bs(a,b){Qi(a.display,b)||fu(a,b)||Lt(a,b,"contextmenu")||Fe||a.display.input.onContextMenu(b)}function fu(a,b){return $t(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,ie,fe){a.defaults[E]=ee,ie&&(b[E]=fe?function(Se,ke,Ye){Ye!=Us&&ie(Se,ke,Ye)}:ie)}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 ie=[],fe=E.doc.first;E.doc.iter(function(ke){for(var Ye=0;;){var Xt=ke.text.indexOf(ee,Ye);if(Xt==-1)break;Ye=Xt+ee.length,ie.push(Ue(fe,Xt))}fe++});for(var Se=ie.length-1;Se>=0;Se--)Fi(E.doc,ee,ie[Se],Ue(ie[Se].line,ie[Se].ch+ee.length))}}),x("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(E,ee,ie){E.state.specialChars=new RegExp(ee.source+(ee.test(" ")?"":"| "),"g"),ie!=Us&&E.refresh()}),x("specialCharPlaceholder",_i,function(E){return E.refresh()},!0),x("electricChars",!0),x("inputStyle",Ee?"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",!Xe),x("wholeLineUpdateBefore",!0),x("theme","default",function(E){Nu(E),vn(E)},!0),x("keyMap","default",function(E,ee,ie){var fe=Ws(ee),Se=ie!=Us&&Ws(ie);Se&&Se.detach&&Se.detach(E,fe),fe.attach&&fe.attach(E,Se||null)}),x("extraKeys",null),x("configureMouse",null),x("lineWrapping",!1,Wu,!0),x("gutters",[],function(E,ee){E.display.gutterSpecs=Kt(ee,E.options.lineNumbers),vn(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){Zs(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=Kt(E.options.gutters,ee),vn(E)},!0),x("firstLineNumber",1,vn,!0),x("lineNumberFormatter",function(E){return E},vn,!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"&&(Ia(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,ie=b?Ot:un;ie(a.display.scroller,"dragstart",ee.start),ie(a.display.scroller,"dragenter",ee.enter),ie(a.display.scroller,"dragover",ee.over),ie(a.display.scroller,"dragleave",ee.leave),ie(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):($e(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),ie=this.display=new sn(a,E,ee,b);ie.wrapper.CodeMirror=this,Nu(this),b.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Zs(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 ge,keySeq:null,specialChars:null},b.autofocus&&!Ee&&ie.input.focus(),ve&&me<11&&setTimeout(function(){return x.display.input.reset(!0)},20),Ku(this),Hs(),Zl(this),this.curOp.forceUpdate=!0,Ko(this,E),b.autofocus&&!Ee||this.hasFocus()?setTimeout(function(){x.hasFocus()&&!x.state.focused&&ja(x)},20):Ia(this);for(var fe in yu)yu.hasOwnProperty(fe)&&yu[fe](this,b[fe],Us);wt(this),b.finishInit&&b.finishInit(this);for(var Se=0;Se<Fu.length;++Se)Fu[Se](this);Ml(this),ye&&b.lineWrapping&&getComputedStyle(ie.lineDiv).textRendering=="optimizelegibility"&&(ie.lineDiv.style.textRendering="auto")}Sa.defaults=Mu,Sa.optionHandlers=yu;function Ku(a){var b=a.display;Ot(b.scroller,"mousedown",Xn(a,du)),ve&&me<11?Ot(b.scroller,"dblclick",Xn(a,function(ke){if(!Lt(a,ke)){var Ye=gr(a,ke);if(!(!Ye||Vl(a,ke)||Qi(a.display,ke))){yt(ke);var Xt=a.findWordAt(Ye);vi(a.doc,Xt.anchor,Xt.head)}}})):Ot(b.scroller,"dblclick",function(ke){return Lt(a,ke)||yt(ke)}),Ot(b.scroller,"contextmenu",function(ke){return Bs(a,ke)}),Ot(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 ie(ke){if(ke.touches.length!=1)return!1;var Ye=ke.touches[0];return Ye.radiusX<=1&&Ye.radiusY<=1}function fe(ke,Ye){if(Ye.left==null)return!0;var Xt=Ye.left-ke.left,nn=Ye.top-ke.top;return Xt*Xt+nn*nn>20*20}Ot(b.scroller,"touchstart",function(ke){if(!Lt(a,ke)&&!ie(ke)&&!Vl(a,ke)){b.input.ensurePolled(),clearTimeout(x);var Ye=+new Date;b.activeTouch={start:Ye,moved:!1,prev:Ye-E.end<=300?E:null},ke.touches.length==1&&(b.activeTouch.left=ke.touches[0].pageX,b.activeTouch.top=ke.touches[0].pageY)}}),Ot(b.scroller,"touchmove",function(){b.activeTouch&&(b.activeTouch.moved=!0)}),Ot(b.scroller,"touchend",function(ke){var Ye=b.activeTouch;if(Ye&&!Qi(b,ke)&&Ye.left!=null&&!Ye.moved&&new Date-Ye.start<300){var Xt=a.coordsChar(b.activeTouch,"page"),nn;!Ye.prev||fe(Ye,Ye.prev)?nn=new Dn(Xt,Xt):!Ye.prev.prev||fe(Ye,Ye.prev.prev)?nn=a.findWordAt(Xt):nn=new Dn(Ue(Xt.line,0),St(a.doc,Ue(Xt.line+1,0))),a.setSelection(nn.anchor,nn.head),a.focus(),yt(ke)}ee()}),Ot(b.scroller,"touchcancel",ee),Ot(b.scroller,"scroll",function(){b.scroller.clientHeight&&(Es(a,b.scroller.scrollTop),ql(a,b.scroller.scrollLeft,!0),tn(a,"scroll",a))}),Ot(b.scroller,"mousewheel",function(ke){return Tn(a,ke)}),Ot(b.scroller,"DOMMouseScroll",function(ke){return Tn(a,ke)}),Ot(b.wrapper,"scroll",function(){return b.wrapper.scrollTop=b.wrapper.scrollLeft=0}),b.dragFunctions={enter:function(ke){Lt(a,ke)||Ke(ke)},over:function(ke){Lt(a,ke)||($l(a,ke),Ke(ke))},start:function(ke){return jl(a,ke)},drop:Xn(a,ts),leave:function(ke){Lt(a,ke)||js(a)}};var Se=b.input.getField();Ot(Se,"keyup",function(ke){return su.call(a,ke)}),Ot(Se,"keydown",Xn(a,lu)),Ot(Se,"keypress",Xn(a,uu)),Ot(Se,"focus",function(ke){return ja(a,ke)}),Ot(Se,"blur",function(ke){return Ia(a,ke)})}var Fu=[];Sa.defineInitHook=function(a){return Fu.push(a)};function hu(a,b,x,E){var ee=a.doc,ie;x==null&&(x="add"),x=="smart"&&(ee.mode.indent?ie=rr(a,b).state:x="prev");var fe=a.options.tabSize,Se=dn(ee,b),ke=be(Se.text,null,fe);Se.stateAfter&&(Se.stateAfter=null);var Ye=Se.text.match(/^\s*/)[0],Xt;if(!E&&!/\S/.test(Se.text))Xt=0,x="not";else if(x=="smart"&&(Xt=ee.mode.indent(ie,Se.text.slice(Ye.length),Se.text),Xt==Tt||Xt>150)){if(!E)return;x="prev"}x=="prev"?b>ee.first?Xt=be(dn(ee,b-1).text,null,fe):Xt=0:x=="add"?Xt=ke+a.options.indentUnit:x=="subtract"?Xt=ke-a.options.indentUnit:typeof x=="number"&&(Xt=ke+x),Xt=Math.max(0,Xt);var nn="",An=0;if(a.options.indentWithTabs)for(var Sn=Math.floor(Xt/fe);Sn;--Sn)An+=fe,nn+=" ";if(An<Xt&&(nn+=st(Xt-An)),nn!=Ye)return Fi(ee,nn,Ue(b,0),Ue(b,Ye.length),"+input"),Se.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<Ye.length){var Ir=Ue(b,Ye.length);Ba(ee,tr,new Dn(Ir,Ir));break}}}var Ul=null;function bu(a){Ul=a}function Pu(a,b,x,E,ee){var ie=a.doc;a.display.shift=!1,E||(E=ie.sel);var fe=+new Date-200,Se=ee=="paste"||a.state.pasteIncoming>fe,ke=mn(b),Ye=null;if(Se&&E.ranges.length>1)if(Ul&&Ul.text.join(`
`)==b){if(E.ranges.length%Ul.text.length==0){Ye=[];for(var Xt=0;Xt<Ul.text.length;Xt++)Ye.push(ie.splitLines(Ul.text[Xt]))}}else ke.length==E.ranges.length&&a.options.pasteLinesPerSelection&&(Ye=rn(ke,function(Gr){return[Gr]}));for(var nn=a.curOp.updateInput,An=E.ranges.length-1;An>=0;An--){var Sn=E.ranges[An],tr=Sn.from(),vr=Sn.to();Sn.empty()&&(x&&x>0?tr=Ue(tr.line,tr.ch-x):a.state.overwrite&&!Se?vr=Ue(vr.line,Math.min(dn(ie,vr.line).text.length,vr.ch+nt(ke).length)):Se&&Ul&&Ul.lineWise&&Ul.text.join(`
`)==ke.join(`
`)&&(tr=vr=Ue(tr.line,0)));var Ir={from:tr,to:vr,text:Ye?Ye[An%Ye.length]:ke,origin:ee||(Se?"paste":a.state.cutIncoming>fe?"cut":"+input")};$i(a.doc,Ir),Ti(a,"inputRead",a,Ir)}b&&!Se&&ku(a,b),Il(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 ie=a.getModeAt(ee.head),fe=!1;if(ie.electricChars){for(var Se=0;Se<ie.electricChars.length;Se++)if(b.indexOf(ie.electricChars.charAt(Se))>-1){fe=hu(a,ee.head.line,"smart");break}}else ie.electricInput&&ie.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,ie={anchor:Ue(ee,0),head:Ue(ee+1,0)};x.push(ie),b.push(a.getRange(ie.anchor,ie.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 Zu(){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 ye?a.style.width="1000px":a.setAttribute("wrap","off"),He&&(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 ie=this.options,fe=ie[E];ie[E]==ee&&E!="mode"||(ie[E]=ee,b.hasOwnProperty(E)&&Xn(this,b[E])(this,ee,fe),tn(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,ie=0;ie<ee.length;++ie)if(ee[ie]==E||ee[ie].name==E)return ee.splice(ie,1),!0},addOverlay:_o(function(E,ee){var ie=E.token?E:a.getMode(this.options,E);if(ie.startState)throw new Error("Overlays may not be stateful.");kt(this.state.overlays,{mode:ie,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,ie=0;ie<ee.length;++ie){var fe=ee[ie].modeSpec;if(fe==E||typeof E=="string"&&fe.name==E){ee.splice(ie,1),this.state.modeGen++,bo(this);return}}}),indentLine:_o(function(E,ee,ie){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,ie)}),indentSelection:_o(function(E){for(var ee=this.doc.sel.ranges,ie=-1,fe=0;fe<ee.length;fe++){var Se=ee[fe];if(Se.empty())Se.head.line>ie&&(hu(this,Se.head.line,E,!0),ie=Se.head.line,fe==this.doc.sel.primIndex&&Il(this));else{var ke=Se.from(),Ye=Se.to(),Xt=Math.max(ie,ke.line);ie=Math.min(this.lastLine(),Ye.line-(Ye.ch?0:1))+1;for(var nn=Xt;nn<ie;++nn)hu(this,nn,E);var An=this.doc.sel.ranges;ke.ch==0&&ee.length==An.length&&An[fe].from().ch>0&&Ba(this.doc,fe,new Dn(ke,An[fe].to()),xe)}}}),getTokenAt:function(E,ee){return fr(this,E,ee)},getLineTokens:function(E,ee){return fr(this,Ue(E),ee,!0)},getTokenTypeAt:function(E){E=St(this.doc,E);var ee=qn(this,dn(this.doc,E.line)),ie=0,fe=(ee.length-1)/2,Se=E.ch,ke;if(Se==0)ke=ee[2];else for(;;){var Ye=ie+fe>>1;if((Ye?ee[Ye*2-1]:0)>=Se)fe=Ye;else if(ee[Ye*2+1]<Se)ie=Ye+1;else{ke=ee[Ye*2+2];break}}var Xt=ke?ke.indexOf("overlay "):-1;return Xt<0?ke:Xt==0?null:ke.slice(0,Xt-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 ie=[];if(!x.hasOwnProperty(ee))return ie;var fe=x[ee],Se=this.getModeAt(E);if(typeof Se[ee]=="string")fe[Se[ee]]&&ie.push(fe[Se[ee]]);else if(Se[ee])for(var ke=0;ke<Se[ee].length;ke++){var Ye=fe[Se[ee][ke]];Ye&&ie.push(Ye)}else Se.helperType&&fe[Se.helperType]?ie.push(fe[Se.helperType]):fe[Se.name]&&ie.push(fe[Se.name]);for(var Xt=0;Xt<fe._global.length;Xt++){var nn=fe._global[Xt];nn.pred(Se,this)&&Ft(ie,nn.val)==-1&&ie.push(nn.val)}return ie},getStateAfter:function(E,ee){var ie=this.doc;return E=Ct(ie,E==null?ie.first+ie.size-1:E),rr(this,E+1,ee).state},cursorCoords:function(E,ee){var ie,fe=this.doc.sel.primary();return E==null?ie=fe.head:typeof E=="object"?ie=St(this.doc,E):ie=E?fe.from():fe.to(),ji(this,ie,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"),vt(this,E.left,E.top)},lineAtHeight:function(E,ee){return E=qa(this,{top:E,left:0},ee||"page").top,Rt(this.doc,E+this.display.viewOffset)},heightAtLine:function(E,ee,ie){var fe=!1,Se;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),Se=dn(this.doc,E)}else Se=E;return Yl(this,Se,{top:0,left:0},ee||"page",ie||fe).top+(fe?this.doc.height-Zr(Se):0)},defaultTextHeight:function(){return Kr(this.display)},defaultCharWidth:function(){return Zo(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(E,ee,ie,fe,Se){var ke=this.display;E=ji(this,St(this.doc,E));var Ye=E.bottom,Xt=E.left;if(ee.style.position="absolute",ee.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(ee),ke.sizer.appendChild(ee),fe=="over")Ye=E.top;else if(fe=="above"||fe=="near"){var nn=Math.max(ke.wrapper.clientHeight,this.doc.height),An=Math.max(ke.sizer.clientWidth,ke.lineSpace.clientWidth);(fe=="above"||E.bottom+ee.offsetHeight>nn)&&E.top>ee.offsetHeight?Ye=E.top-ee.offsetHeight:E.bottom+ee.offsetHeight<=nn&&(Ye=E.bottom),Xt+ee.offsetWidth>An&&(Xt=An-ee.offsetWidth)}ee.style.top=Ye+"px",ee.style.left=ee.style.right="",Se=="right"?(Xt=ke.sizer.clientWidth-ee.offsetWidth,ee.style.right="0px"):(Se=="left"?Xt=0:Se=="middle"&&(Xt=(ke.sizer.clientWidth-ee.offsetWidth)/2),ee.style.left=Xt+"px"),ie&&Ql(this,{left:Xt,top:Ye,right:Xt+ee.offsetWidth,bottom:Ye+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,ie,fe){var Se=1;ee<0&&(Se=-1,ee=-ee);for(var ke=St(this.doc,E),Ye=0;Ye<ee&&(ke=Au(this.doc,ke,Se,ie,fe),!ke.hitSide);++Ye);return ke},moveH:_o(function(E,ee){var ie=this;this.extendSelectionsBy(function(fe){return ie.display.shift||ie.doc.extend||fe.empty()?Au(ie.doc,fe.head,E,ee,ie.options.rtlMoveVisually):E<0?fe.from():fe.to()},qe)}),deleteH:_o(function(E,ee){var ie=this.doc.sel,fe=this.doc;ie.somethingSelected()?fe.replaceSelection("",null,"+delete"):vs(this,function(Se){var ke=Au(fe,Se.head,E,ee,!1);return E<0?{from:ke,to:Se.head}:{from:Se.head,to:ke}})}),findPosV:function(E,ee,ie,fe){var Se=1,ke=fe;ee<0&&(Se=-1,ee=-ee);for(var Ye=St(this.doc,E),Xt=0;Xt<ee;++Xt){var nn=ji(this,Ye,"div");if(ke==null?ke=nn.left:nn.left=ke,Ye=_u(this,nn,Se,ie),Ye.hitSide)break}return Ye},moveV:_o(function(E,ee){var ie=this,fe=this.doc,Se=[],ke=!this.display.shift&&!fe.extend&&fe.sel.somethingSelected();if(fe.extendSelectionsBy(function(Xt){if(ke)return E<0?Xt.from():Xt.to();var nn=ji(ie,Xt.head,"div");Xt.goalColumn!=null&&(nn.left=Xt.goalColumn),Se.push(nn.left);var An=_u(ie,nn,E,ee);return ee=="page"&&Xt==fe.sel.primary()&&ss(ie,el(ie,An,"div").top-nn.top),An},qe),Se.length)for(var Ye=0;Ye<fe.sel.ranges.length;Ye++)fe.sel.ranges[Ye].goalColumn=Se[Ye]}),findWordAt:function(E){var ee=this.doc,ie=dn(ee,E.line).text,fe=E.ch,Se=E.ch;if(ie){var ke=this.getHelper(E,"wordChars");(E.sticky=="before"||Se==ie.length)&&fe?--fe:++Se;for(var Ye=ie.charAt(fe),Xt=de(Ye,ke)?function(nn){return de(nn,ke)}:/\s/.test(Ye)?function(nn){return/\s/.test(nn)}:function(nn){return!/\s/.test(nn)&&!de(nn)};fe>0&&Xt(ie.charAt(fe-1));)--fe;for(;Se<ie.length&&Xt(ie.charAt(Se));)++Se}return new Dn(Ue(E.line,fe),Ue(E.line,Se))},toggleOverwrite:function(E){E!=null&&E==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?ue(this.display.cursorDiv,"CodeMirror-overwrite"):$e(this.display.cursorDiv,"CodeMirror-overwrite"),tn(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Te()},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:Ue(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 ie=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 Se=this.display.viewFrom;this.doc.iter(Se,this.display.viewTo,function(ke){if(ke.widgets){for(var Ye=0;Ye<ke.widgets.length;Ye++)if(ke.widgets[Ye].noHScroll){Io(ie,Se,"widget");break}}++Se}),this.curOp.forceUpdate=!0,tn(this,"refresh",this)}),operation:function(E){return Lr(this,E)},startOperation:function(){return Zl(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),tn(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,ie){x.hasOwnProperty(E)||(x[E]=a[E]={_global:[]}),x[E][ee]=ie},a.registerGlobalHelper=function(E,ee,ie,fe){a.registerHelper(E,ee,fe),x[E]._global.push({pred:ie,val:fe})}}function Au(a,b,x,E,ee){var ie=b,fe=x,Se=dn(a,b.line),ke=ee&&a.direction=="rtl"?-x:x;function Ye(){var mo=b.line+ke;return mo<a.first||mo>=a.first+a.size?!1:(b=new Ue(mo,b.ch,b.sticky),Se=dn(a,mo))}function Xt(mo){var Xr;if(E=="codepoint"){var Do=Se.text.charCodeAt(b.ch+(E>0?0:-1));isNaN(Do)?Xr=null:Xr=new Ue(b.line,Math.max(0,Math.min(Se.text.length,b.ch+x*(Do>=55296&&Do<56320?2:1))),-x)}else ee?Xr=vu(a.cm,Se,b,x):Xr=Ks(Se,b,x);if(Xr==null)if(!mo&&Ye())b=nu(ee,a.cm,Se,b.line,ke);else return!1;else b=Xr;return!0}if(E=="char"||E=="codepoint")Xt();else if(E=="column")Xt(!0);else if(E=="word"||E=="group")for(var nn=null,An=E=="group",Sn=a.cm&&a.cm.getHelper(b,"wordChars"),tr=!0;!(x<0&&!Xt(!tr));tr=!1){var vr=Se.text.charAt(b.ch)||`
`,Ir=de(vr,Sn)?"w":An&&vr==`
`?"n":!An||/\s/.test(vr)?null:"p";if(An&&!tr&&!Ir&&(Ir="s"),nn&&nn!=Ir){x<0&&(x=1,Xt(),b.sticky="after");break}if(Ir&&(nn=Ir),x>0&&!Xt(!tr))break}var Gr=Pa(a,b,ie,fe,!0);return Jt(ie,Gr)&&(Gr.hitSide=!0),Gr}function _u(a,b,x,E){var ee=a.doc,ie=b.left,fe;if(E=="page"){var Se=Math.min(a.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),ke=Math.max(Se-.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 Ye;Ye=vt(a,ie,fe),!!Ye.outside;){if(x<0?fe<=0:fe>=ee.height){Ye.hitSide=!0;break}fe+=x*5}return Ye}var ea=function(a){this.cm=a,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ge,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 ie(Se){for(var ke=Se.target;ke;ke=ke.parentNode){if(ke==ee)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(ke.className))break}return!1}Ot(ee,"paste",function(Se){!ie(Se)||Lt(E,Se)||Tu(Se,E)||me<=11&&setTimeout(Xn(E,function(){return b.updateFromDOM()}),20)}),Ot(ee,"compositionstart",function(Se){b.composing={data:Se.data,done:!1}}),Ot(ee,"compositionupdate",function(Se){b.composing||(b.composing={data:Se.data,done:!1})}),Ot(ee,"compositionend",function(Se){b.composing&&(Se.data!=b.composing.data&&b.readFromDOMSoon(),b.composing.done=!0)}),Ot(ee,"touchstart",function(){return x.forceCompositionEnd()}),Ot(ee,"input",function(){b.composing||b.readFromDOMSoon()});function fe(Se){if(!(!ie(Se)||Lt(E,Se))){if(E.somethingSelected())bu({lineWise:!1,text:E.getSelections()}),Se.type=="cut"&&E.replaceSelection("",null,"cut");else if(E.options.lineWiseCopyCut){var ke=Lu(E);bu({lineWise:!0,text:ke.text}),Se.type=="cut"&&E.operation(function(){E.setSelections(ke.ranges,0,xe),E.replaceSelection("",null,"cut")})}else return;if(Se.clipboardData){Se.clipboardData.clearData();var Ye=Ul.text.join(`
`);if(Se.clipboardData.setData("Text",Ye),Se.clipboardData.getData("Text")==Ye){Se.preventDefault();return}}var Xt=Zu(),nn=Xt.firstChild;E.display.lineSpace.insertBefore(Xt,E.display.lineSpace.firstChild),nn.value=Ul.text.join(`
`);var An=document.activeElement;_e(nn),setTimeout(function(){E.display.lineSpace.removeChild(Xt),An.focus(),An==ee&&x.showPrimarySelection()},50)}}Ot(ee,"copy",fe),Ot(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 ie=Cu(b,a.anchorNode,a.anchorOffset),fe=Cu(b,a.focusNode,a.focusOffset);if(!(ie&&!ie.bad&&fe&&!fe.bad&&Nt(pt(ie,fe),E)==0&&Nt(zn(ie,fe),ee)==0)){var Se=b.display.view,ke=E.line>=b.display.viewFrom&&ju(b,E)||{node:Se[0].measure.map[2],offset:0},Ye=ee.line<b.display.viewTo&&ju(b,ee);if(!Ye){var Xt=Se[Se.length-1].measure,nn=Xt.maps?Xt.maps[Xt.maps.length-1]:Xt.map;Ye={node:nn[nn.length-1],offset:nn[nn.length-2]-nn[nn.length-3]}}if(!ke||!Ye){a.removeAllRanges();return}var An=a.rangeCount&&a.getRangeAt(0),Sn;try{Sn=Ce(ke.node,ke.offset,Ye.offset,Ye.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)),An&&a.anchorNode==null?a.addRange(An):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){ot(this.cm.display.cursorDiv,a.cursors),ot(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(Me&&pe&&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),xe),(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=Ue(E.line-1,dn(a.doc,E.line-1).length)),ee.ch==dn(a.doc,ee.line).text.length&&ee.line<a.lastLine()&&(ee=Ue(ee.line+1,0)),E.line<b.viewFrom||ee.line>b.viewTo-1)return!1;var ie,fe,Se;E.line==b.viewFrom||(ie=io(a,E.line))==0?(fe=Et(b.view[0].line),Se=b.view[0].node):(fe=Et(b.view[ie].line),Se=b.view[ie-1].node.nextSibling);var ke=io(a,ee.line),Ye,Xt;if(ke==b.view.length-1?(Ye=b.viewTo-1,Xt=b.lineDiv.lastChild):(Ye=Et(b.view[ke+1].line)-1,Xt=b.view[ke+1].node.previousSibling),!Se)return!1;for(var nn=a.doc.splitLines(Gu(a,Se,Xt,fe,Ye)),An=Cn(a.doc,Ue(fe,0),Ue(Ye,dn(a.doc,Ye).text.length));nn.length>1&&An.length>1;)if(nt(nn)==nt(An))nn.pop(),An.pop(),Ye--;else if(nn[0]==An[0])nn.shift(),An.shift(),fe++;else break;for(var Sn=0,tr=0,vr=nn[0],Ir=An[0],Gr=Math.min(vr.length,Ir.length);Sn<Gr&&vr.charCodeAt(Sn)==Ir.charCodeAt(Sn);)++Sn;for(var mo=nt(nn),Xr=nt(An),Do=Math.min(mo.length-(nn.length==1?Sn:0),Xr.length-(An.length==1?Sn:0));tr<Do&&mo.charCodeAt(mo.length-tr-1)==Xr.charCodeAt(Xr.length-tr-1);)++tr;if(nn.length==1&&An.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=Ue(fe,Sn),Uo=Ue(Ye,An.length?nt(An).length-tr:0);if(nn.length>1||nn[0]||Nt(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 ju(a,b){var x=Al(a,b.line);if(!x||x.hidden)return null;var E=dn(a.doc,b.line),ee=zl(x,E,b.line),ie=Le(E,a.doc.direction),fe="left";if(ie){var Se=ht(ie,b.ch);fe=Se%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 ie="",fe=!1,Se=a.doc.lineSeparator(),ke=!1;function Ye(Sn){return function(tr){return tr.id==Sn}}function Xt(){fe&&(ie+=Se,ke&&(ie+=Se),fe=ke=!1)}function nn(Sn){Sn&&(Xt(),ie+=Sn)}function An(Sn){if(Sn.nodeType==1){var tr=Sn.getAttribute("cm-text");if(tr){nn(tr);return}var vr=Sn.getAttribute("cm-marker"),Ir;if(vr){var Gr=a.findMarks(Ue(E,0),Ue(ee+1,0),Ye(+vr));Gr.length&&(Ir=Gr[0].find(0))&&nn(Cn(a.doc,Ir.from,Ir.to).join(Se));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&&Xt();for(var Xr=0;Xr<Sn.childNodes.length;Xr++)An(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(;An(b),b!=x;)b=b.nextSibling,ke=!1;return ie}function Cu(a,b,x){var E;if(b==a.display.lineDiv){if(E=a.display.lineDiv.childNodes[x],!E)return Gs(a.clipPos(Ue(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 ie=a.display.view[ee];if(ie.node==E)return Xu(ie,b,x)}}function Xu(a,b,x){var E=a.text.firstChild,ee=!1;if(!b||!et(E,b))return Gs(Ue(Et(a.line),0),!0);if(b==E&&(ee=!0,b=E.childNodes[x],x=0,!b)){var ie=a.rest?nt(a.rest):a.line;return Gs(Ue(Et(ie),ie.text.length),ee)}var fe=b.nodeType==3?b:null,Se=b;for(!fe&&b.childNodes.length==1&&b.firstChild.nodeType==3&&(fe=b.firstChild,x&&(x=fe.nodeValue.length));Se.parentNode!=E;)Se=Se.parentNode;var ke=a.measure,Ye=ke.maps;function Xt(Ir,Gr,mo){for(var Xr=-1;Xr<(Ye?Ye.length:0);Xr++)for(var Do=Xr<0?ke.map:Ye[Xr],ii=0;ii<Do.length;ii+=3){var Uo=Do[ii+2];if(Uo==Ir||Uo==Gr){var Si=Et(Xr<0?a.line:a.rest[Xr]),ca=Do[ii]+mo;return(mo<0||Uo!=Ir)&&(ca=Do[ii+(mo?1:0)]),Ue(Si,ca)}}}var nn=Xt(fe,Se,x);if(nn)return Gs(nn,ee);for(var An=Se.nextSibling,Sn=fe?fe.nodeValue.length-x:0;An;An=An.nextSibling){if(nn=Xt(An,An.firstChild,0),nn)return Gs(Ue(nn.line,nn.ch-Sn),ee);Sn+=An.textContent.length}for(var tr=Se.previousSibling,vr=x;tr;tr=tr.previousSibling){if(nn=Xt(tr,tr.firstChild,-1),nn)return Gs(Ue(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 ge,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),He&&(ee.style.width="0px"),Ot(ee,"input",function(){ve&&me>=9&&b.hasSelection&&(b.hasSelection=null),x.poll()}),Ot(ee,"paste",function(fe){Lt(E,fe)||Tu(fe,E)||(E.state.pasteIncoming=+new Date,x.fastPoll())});function ie(fe){if(!Lt(E,fe)){if(E.somethingSelected())bu({lineWise:!1,text:E.getSelections()});else if(E.options.lineWiseCopyCut){var Se=Lu(E);bu({lineWise:!0,text:Se.text}),fe.type=="cut"?E.setSelections(Se.ranges,null,xe):(x.prevInput="",ee.value=Se.text.join(`
`),_e(ee))}else return;fe.type=="cut"&&(E.state.cutIncoming=+new Date)}}Ot(ee,"cut",ie),Ot(ee,"copy",ie),Ot(a.scroller,"paste",function(fe){if(!(Qi(a,fe)||Lt(E,fe))){if(!ee.dispatchEvent){E.state.pasteIncoming=+new Date,x.focus();return}var Se=new Event("paste");Se.clipboardData=fe.clipboardData,ee.dispatchEvent(Se)}}),Ot(a.lineSpace,"selectstart",function(fe){Qi(a,fe)||yt(fe)}),Ot(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"})}}),Ot(ee,"compositionend",function(){x.composing&&(x.poll(),x.composing.range.clear(),x.composing=null)})},Ta.prototype.createField=function(a){this.wrapper=Zu(),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=ji(a,x.sel.primary().head,"div"),ie=b.wrapper.getBoundingClientRect(),fe=b.lineDiv.getBoundingClientRect();E.teTop=Math.max(0,Math.min(b.wrapper.clientHeight-10,ee.top+fe.top-ie.top)),E.teLeft=Math.max(0,Math.min(b.wrapper.clientWidth-10,ee.left+fe.left-ie.left))}return E},Ta.prototype.showSelection=function(a){var b=this.cm,x=b.display;ot(x.cursorDiv,a.cursors),ot(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&&_e(this.textarea),ve&&me>=9&&(this.hasSelection=x)}else a||(this.prevInput=this.textarea.value="",ve&&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"&&(!Ee||Te()!=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||Bn(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(ve&&me>=9&&this.hasSelection===ee||we&&/[\uf700-\uf7ff]/.test(ee))return b.display.input.reset(),!1;if(b.doc.sel==b.display.selForContextMenu){var ie=ee.charCodeAt(0);if(ie==8203&&!E&&(E="\u200B"),ie==8666)return this.reset(),this.cm.execCommand("undo")}for(var fe=0,Se=Math.min(E.length,ee.length);fe<Se&&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(){ve&&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 ie=gr(x,a),fe=E.scroller.scrollTop;if(!ie||le)return;var Se=x.options.resetSelectionOnContextMenu;Se&&x.doc.sel.contains(ie)==-1&&Xn(x,Jr)(x.doc,er(ie),xe);var ke=ee.style.cssText,Ye=b.wrapper.style.cssText,Xt=b.wrapper.offsetParent.getBoundingClientRect();b.wrapper.style.cssText="position: static",ee.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(a.clientY-Xt.top-5)+"px; left: "+(a.clientX-Xt.left-5)+`px;
z-index: 1000; background: `+(ve?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var nn;ye&&(nn=window.scrollY),E.input.focus(),ye&&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 An(){if(ee.selectionStart!=null){var vr=x.somethingSelected(),Ir="\u200B"+(vr?ee.value:"");ee.value="\u21DA",ee.value=Ir,b.prevInput=vr?"":"\u200B",ee.selectionStart=1,ee.selectionEnd=Ir.length,E.selForContextMenu=x.doc.sel}}function Sn(){if(b.contextMenuPending==Sn&&(b.contextMenuPending=!1,b.wrapper.style.cssText=Ye,ee.style.cssText=ke,ve&&me<9&&E.scrollbars.setScrollTop(E.scroller.scrollTop=fe),ee.selectionStart!=null)){(!ve||ve&&me<9)&&An();var vr=0,Ir=function(){E.selForContextMenu==x.doc.sel&&ee.selectionStart==0&&ee.selectionEnd>0&&b.prevInput=="\u200B"?Xn(x,jo)(x):vr++<10?E.detectingSelectAll=setTimeout(Ir,500):(E.selForContextMenu=null,E.input.reset())};E.detectingSelectAll=setTimeout(Ir,200)}}if(ve&&me>=9&&An(),Fe){Ke(a);var tr=function(){un(window,"mouseup",tr),setTimeout(Sn,20)};Ot(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=Te();b.autofocus=x==a||a.getAttribute("autofocus")!=null&&x==document.body}function E(){a.value=Se.getValue()}var ee;if(a.form&&(Ot(a.form,"submit",E),!b.leaveSubmitMethodAlone)){var ie=a.form;ee=ie.submit;try{var fe=ie.submit=function(){E(),ie.submit=ee,ie.submit(),ie.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 Se=Sa(function(ke){return a.parentNode.insertBefore(ke,a.nextSibling)},b);return Se}function Qu(a){a.off=un,a.on=Ot,a.wheelEventPixels=Rn,a.Doc=Gi,a.splitLines=mn,a.countColumn=be,a.findColumn=Gt,a.isWordChar=oe,a.Pass=Tt,a.signal=tn,a.Line=Fo,a.changeEnd=Er,a.scrollbarModel=Qs,a.Pos=Ue,a.cmpPos=Nt,a.modes=an,a.mimeModes=Vt,a.resolveMode=Zn,a.getMode=_n,a.modeExtensions=Nn,a.extendMode=jn,a.copyState=Gn,a.startState=lr,a.innerMode=$n,a.commands=ns,a.keyMap=Ma,a.keyName=ps,a.isModifierKey=eu,a.lookupKey=xs,a.normalizeKeyMap=Va,a.StringStream=nr,a.SharedTextMarker=Ui,a.TextMarker=ll,a.LineWidget=Li,a.e_preventDefault=yt,a.e_stopPropagation=Ht,a.e_stop=Ke,a.addClass=ue,a.contains=et,a.rmClass=$e,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)&&Ft(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),cn.apply(this,arguments)},Sa.defineMIME=on,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,zt,z){(function(y){y(z(89780),z(15525),z(98101))})(function(y){"use strict";y.defineMode("markdown",function(he,ce){var je=y.getMode(he,"text/html"),ve=je.name=="null";function me(be){if(y.findModeByName){var ge=y.findModeByName(be);ge&&(be=ge.mime||ge.mimes[0])}var Ft=y.getMode(he,be);return Ft.name=="null"?null:Ft}ce.highlightFormatting===void 0&&(ce.highlightFormatting=!1),ce.maxBlockquoteDepth===void 0&&(ce.maxBlockquoteDepth=0),ce.taskLists===void 0&&(ce.taskLists=!1),ce.strikethrough===void 0&&(ce.strikethrough=!1),ce.emoji===void 0&&(ce.emoji=!1),ce.fencedCodeBlockHighlighting===void 0&&(ce.fencedCodeBlockHighlighting=!0),ce.fencedCodeBlockDefaultMode===void 0&&(ce.fencedCodeBlockDefaultMode="text/plain"),ce.xml===void 0&&(ce.xml=!0),ce.tokenTypeOverrides===void 0&&(ce.tokenTypeOverrides={});var ye={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 Ae in ye)ye.hasOwnProperty(Ae)&&ce.tokenTypeOverrides[Ae]&&(ye[Ae]=ce.tokenTypeOverrides[Ae]);var pe=/^([*\-_])(?:\s*\1){2,}\s*$/,le=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,Re=/^\[(x| )\](?=\s)/i,Ie=ce.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,tt=/^ {0,3}(?:\={1,}|-{2,})\s*$/,He=/^[^#!\[\]*_\\<>` "'(~:]+/,Me=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,Ee=/^\s*\[[^\]]+?\]:.*$/,we=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,Ne=" ";function Xe(be,ge,Ft){return ge.f=ge.inline=Ft,Ft(be,ge)}function ft(be,ge,Ft){return ge.f=ge.block=Ft,Ft(be,ge)}function Pe(be){return!be||!/\S/.test(be.string)}function Fe(be){if(be.linkTitle=!1,be.linkHref=!1,be.linkText=!1,be.em=!1,be.strong=!1,be.strikethrough=!1,be.quote=0,be.indentedCode=!1,be.f==$e){var ge=ve;if(!ge){var Ft=y.innerMode(je,be.htmlState);ge=Ft.mode.name=="xml"&&Ft.state.tagStart===null&&!Ft.state.context&&Ft.state.tokenize.isInText}ge&&(be.f=ct,be.block=Ze,be.htmlState=null)}return be.trailingSpace=0,be.trailingSpaceNewLine=!1,be.prevLine=be.thisLine,be.thisLine={stream:null},null}function Ze(be,ge){var Ft=be.column()===ge.indentation,_t=Pe(ge.prevLine.stream),Tt=ge.indentedCode,xe=ge.prevLine.hr,rt=ge.list!==!1,qe=(ge.listStack[ge.listStack.length-1]||0)+3;ge.indentedCode=!1;var Gt=ge.indentation;if(ge.indentationDiff===null&&(ge.indentationDiff=ge.indentation,rt)){for(ge.list=null;Gt<ge.listStack[ge.listStack.length-1];)ge.listStack.pop(),ge.listStack.length?ge.indentation=ge.listStack[ge.listStack.length-1]:ge.list=!1;ge.list!==!1&&(ge.indentationDiff=Gt-ge.listStack[ge.listStack.length-1])}var at=!_t&&!xe&&!ge.prevLine.header&&(!rt||!Tt)&&!ge.prevLine.fencedCodeEnd,st=(ge.list===!1||xe||_t)&&ge.indentation<=qe&&be.match(pe),nt=null;if(ge.indentationDiff>=4&&(Tt||ge.prevLine.fencedCodeEnd||ge.prevLine.header||_t))return be.skipToEnd(),ge.indentedCode=!0,ye.code;if(be.eatSpace())return null;if(Ft&&ge.indentation<=qe&&(nt=be.match(Ie))&&nt[1].length<=6)return ge.quote=0,ge.header=nt[1].length,ge.thisLine.header=!0,ce.highlightFormatting&&(ge.formatting="header"),ge.f=ge.inline,ot(ge);if(ge.indentation<=qe&&be.eat(">"))return ge.quote=Ft?1:ge.quote+1,ce.highlightFormatting&&(ge.formatting="quote"),be.eatSpace(),ot(ge);if(!st&&!ge.setext&&Ft&&ge.indentation<=qe&&(nt=be.match(le))){var rn=nt[1]?"ol":"ul";return ge.indentation=Gt+be.current().length,ge.list=!0,ge.quote=0,ge.listStack.push(ge.indentation),ge.em=!1,ge.strong=!1,ge.code=!1,ge.strikethrough=!1,ce.taskLists&&be.match(Re,!1)&&(ge.taskList=!0),ge.f=ge.inline,ce.highlightFormatting&&(ge.formatting=["list","list-"+rn]),ot(ge)}else{if(Ft&&ge.indentation<=qe&&(nt=be.match(Me,!0)))return ge.quote=0,ge.fencedEndRE=new RegExp(nt[1]+"+ *$"),ge.localMode=ce.fencedCodeBlockHighlighting&&me(nt[2]||ce.fencedCodeBlockDefaultMode),ge.localMode&&(ge.localState=y.startState(ge.localMode)),ge.f=ge.block=gt,ce.highlightFormatting&&(ge.formatting="code-block"),ge.code=-1,ot(ge);if(ge.setext||(!at||!rt)&&!ge.quote&&ge.list===!1&&!ge.code&&!st&&!Ee.test(be.string)&&(nt=be.lookAhead(1))&&(nt=nt.match(tt)))return ge.setext?(ge.header=ge.setext,ge.setext=0,be.skipToEnd(),ce.highlightFormatting&&(ge.formatting="header")):(ge.header=nt[0].charAt(0)=="="?1:2,ge.setext=ge.header),ge.thisLine.header=!0,ge.f=ge.inline,ot(ge);if(st)return be.skipToEnd(),ge.hr=!0,ge.thisLine.hr=!0,ye.hr;if(be.peek()==="[")return Xe(be,ge,mt)}return Xe(be,ge,ge.inline)}function $e(be,ge){var Ft=je.token(be,ge.htmlState);if(!ve){var _t=y.innerMode(je,ge.htmlState);(_t.mode.name=="xml"&&_t.state.tagStart===null&&!_t.state.context&&_t.state.tokenize.isInText||ge.md_inside&&be.current().indexOf(">")>-1)&&(ge.f=ct,ge.block=Ze,ge.htmlState=null)}return Ft}function gt(be,ge){var Ft=ge.listStack[ge.listStack.length-1]||0,_t=ge.indentation<Ft,Tt=Ft+3;if(ge.fencedEndRE&&ge.indentation<=Tt&&(_t||be.match(ge.fencedEndRE))){ce.highlightFormatting&&(ge.formatting="code-block");var xe;return _t||(xe=ot(ge)),ge.localMode=ge.localState=null,ge.block=Ze,ge.f=ct,ge.fencedEndRE=null,ge.code=0,ge.thisLine.fencedCodeEnd=!0,_t?ft(be,ge,ge.block):xe}else return ge.localMode?ge.localMode.token(be,ge.localState):(be.skipToEnd(),ye.code)}function ot(be){var ge=[];if(be.formatting){ge.push(ye.formatting),typeof be.formatting=="string"&&(be.formatting=[be.formatting]);for(var Ft=0;Ft<be.formatting.length;Ft++)ge.push(ye.formatting+"-"+be.formatting[Ft]),be.formatting[Ft]==="header"&&ge.push(ye.formatting+"-"+be.formatting[Ft]+"-"+be.header),be.formatting[Ft]==="quote"&&(!ce.maxBlockquoteDepth||ce.maxBlockquoteDepth>=be.quote?ge.push(ye.formatting+"-"+be.formatting[Ft]+"-"+be.quote):ge.push("error"))}if(be.taskOpen)return ge.push("meta"),ge.length?ge.join(" "):null;if(be.taskClosed)return ge.push("property"),ge.length?ge.join(" "):null;if(be.linkHref?ge.push(ye.linkHref,"url"):(be.strong&&ge.push(ye.strong),be.em&&ge.push(ye.em),be.strikethrough&&ge.push(ye.strikethrough),be.emoji&&ge.push(ye.emoji),be.linkText&&ge.push(ye.linkText),be.code&&ge.push(ye.code),be.image&&ge.push(ye.image),be.imageAltText&&ge.push(ye.imageAltText,"link"),be.imageMarker&&ge.push(ye.imageMarker)),be.header&&ge.push(ye.header,ye.header+"-"+be.header),be.quote&&(ge.push(ye.quote),!ce.maxBlockquoteDepth||ce.maxBlockquoteDepth>=be.quote?ge.push(ye.quote+"-"+be.quote):ge.push(ye.quote+"-"+ce.maxBlockquoteDepth)),be.list!==!1){var _t=(be.listStack.length-1)%3;_t?_t===1?ge.push(ye.list2):ge.push(ye.list3):ge.push(ye.list1)}return be.trailingSpaceNewLine?ge.push("trailing-space-new-line"):be.trailingSpace&&ge.push("trailing-space-"+(be.trailingSpace%2?"a":"b")),ge.length?ge.join(" "):null}function Qe(be,ge){if(be.match(He,!0))return ot(ge)}function ct(be,ge){var Ft=ge.text(be,ge);if(typeof Ft!="undefined")return Ft;if(ge.list)return ge.list=null,ot(ge);if(ge.taskList){var _t=be.match(Re,!0)[1]===" ";return _t?ge.taskOpen=!0:ge.taskClosed=!0,ce.highlightFormatting&&(ge.formatting="task"),ge.taskList=!1,ot(ge)}if(ge.taskOpen=!1,ge.taskClosed=!1,ge.header&&be.match(/^#+$/,!0))return ce.highlightFormatting&&(ge.formatting="header"),ot(ge);var Tt=be.next();if(ge.linkTitle){ge.linkTitle=!1;var xe=Tt;Tt==="("&&(xe=")"),xe=(xe+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var rt="^\\s*(?:[^"+xe+"\\\\]+|\\\\\\\\|\\\\.)"+xe;if(be.match(new RegExp(rt),!0))return ye.linkHref}if(Tt==="`"){var qe=ge.formatting;ce.highlightFormatting&&(ge.formatting="code"),be.eatWhile("`");var Gt=be.current().length;if(ge.code==0&&(!ge.quote||Gt==1))return ge.code=Gt,ot(ge);if(Gt==ge.code){var at=ot(ge);return ge.code=0,at}else return ge.formatting=qe,ot(ge)}else if(ge.code)return ot(ge);if(Tt==="\\"&&(be.next(),ce.highlightFormatting)){var st=ot(ge),nt=ye.formatting+"-escape";return st?st+" "+nt:nt}if(Tt==="!"&&be.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return ge.imageMarker=!0,ge.image=!0,ce.highlightFormatting&&(ge.formatting="image"),ot(ge);if(Tt==="["&&ge.imageMarker&&be.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return ge.imageMarker=!1,ge.imageAltText=!0,ce.highlightFormatting&&(ge.formatting="image"),ot(ge);if(Tt==="]"&&ge.imageAltText){ce.highlightFormatting&&(ge.formatting="image");var st=ot(ge);return ge.imageAltText=!1,ge.image=!1,ge.inline=ge.f=et,st}if(Tt==="["&&!ge.image)return ge.linkText&&be.match(/^.*?\]/)||(ge.linkText=!0,ce.highlightFormatting&&(ge.formatting="link")),ot(ge);if(Tt==="]"&&ge.linkText){ce.highlightFormatting&&(ge.formatting="link");var st=ot(ge);return ge.linkText=!1,ge.inline=ge.f=be.match(/\(.*?\)| ?\[.*?\]/,!1)?et:ct,st}if(Tt==="<"&&be.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){ge.f=ge.inline=Ce,ce.highlightFormatting&&(ge.formatting="link");var st=ot(ge);return st?st+=" ":st="",st+ye.linkInline}if(Tt==="<"&&be.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){ge.f=ge.inline=Ce,ce.highlightFormatting&&(ge.formatting="link");var st=ot(ge);return st?st+=" ":st="",st+ye.linkEmail}if(ce.xml&&Tt==="<"&&be.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var rn=be.string.indexOf(">",be.pos);if(rn!=-1){var kt=be.string.substring(be.start,rn);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(kt)&&(ge.md_inside=!0)}return be.backUp(1),ge.htmlState=y.startState(je),ft(be,ge,$e)}if(ce.xml&&Tt==="<"&&be.match(/^\/\w*?>/))return ge.md_inside=!1,"tag";if(Tt==="*"||Tt==="_"){for(var ae=1,re=be.pos==1?" ":be.string.charAt(be.pos-2);ae<3&&be.eat(Tt);)ae++;var te=be.peek()||" ",oe=!/\s/.test(te)&&(!we.test(te)||/\s/.test(re)||we.test(re)),de=!/\s/.test(re)&&(!we.test(re)||/\s/.test(te)||we.test(te)),ne=null,se=null;if(ae%2&&(!ge.em&&oe&&(Tt==="*"||!de||we.test(re))?ne=!0:ge.em==Tt&&de&&(Tt==="*"||!oe||we.test(te))&&(ne=!1)),ae>1&&(!ge.strong&&oe&&(Tt==="*"||!de||we.test(re))?se=!0:ge.strong==Tt&&de&&(Tt==="*"||!oe||we.test(te))&&(se=!1)),se!=null||ne!=null){ce.highlightFormatting&&(ge.formatting=ne==null?"strong":se==null?"em":"strong em"),ne===!0&&(ge.em=Tt),se===!0&&(ge.strong=Tt);var at=ot(ge);return ne===!1&&(ge.em=!1),se===!1&&(ge.strong=!1),at}}else if(Tt===" "&&(be.eat("*")||be.eat("_"))){if(be.peek()===" ")return ot(ge);be.backUp(1)}if(ce.strikethrough){if(Tt==="~"&&be.eatWhile(Tt)){if(ge.strikethrough){ce.highlightFormatting&&(ge.formatting="strikethrough");var at=ot(ge);return ge.strikethrough=!1,at}else if(be.match(/^[^\s]/,!1))return ge.strikethrough=!0,ce.highlightFormatting&&(ge.formatting="strikethrough"),ot(ge)}else if(Tt===" "&&be.match(/^~~/,!0)){if(be.peek()===" ")return ot(ge);be.backUp(2)}}if(ce.emoji&&Tt===":"&&be.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){ge.emoji=!0,ce.highlightFormatting&&(ge.formatting="emoji");var Oe=ot(ge);return ge.emoji=!1,Oe}return Tt===" "&&(be.match(/^ +$/,!1)?ge.trailingSpace++:ge.trailingSpace&&(ge.trailingSpaceNewLine=!0)),ot(ge)}function Ce(be,ge){var Ft=be.next();if(Ft===">"){ge.f=ge.inline=ct,ce.highlightFormatting&&(ge.formatting="link");var _t=ot(ge);return _t?_t+=" ":_t="",_t+ye.linkInline}return be.match(/^[^>]+/,!0),ye.linkInline}function et(be,ge){if(be.eatSpace())return null;var Ft=be.next();return Ft==="("||Ft==="["?(ge.f=ge.inline=ue(Ft==="("?")":"]"),ce.highlightFormatting&&(ge.formatting="link-string"),ge.linkHref=!0,ot(ge)):"error"}var Te={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function ue(be){return function(ge,Ft){var _t=ge.next();if(_t===be){Ft.f=Ft.inline=ct,ce.highlightFormatting&&(Ft.formatting="link-string");var Tt=ot(Ft);return Ft.linkHref=!1,Tt}return ge.match(Te[be]),Ft.linkHref=!0,ot(Ft)}}function mt(be,ge){return be.match(/^([^\]\\]|\\.)*\]:/,!1)?(ge.f=_e,be.next(),ce.highlightFormatting&&(ge.formatting="link"),ge.linkText=!0,ot(ge)):Xe(be,ge,ct)}function _e(be,ge){if(be.match(/^\]:/,!0)){ge.f=ge.inline=lt,ce.highlightFormatting&&(ge.formatting="link");var Ft=ot(ge);return ge.linkText=!1,Ft}return be.match(/^([^\]\\]|\\.)+/,!0),ye.linkText}function lt(be,ge){return be.eatSpace()?null:(be.match(/^[^\s]+/,!0),be.peek()===void 0?ge.linkTitle=!0:be.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),ge.f=ge.inline=ct,ye.linkHref+" url")}var Mt={startState:function(){return{f:Ze,prevLine:{stream:null},thisLine:{stream:null},block:Ze,htmlState:null,indentation:0,inline:ct,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(be){return{f:be.f,prevLine:be.prevLine,thisLine:be.thisLine,block:be.block,htmlState:be.htmlState&&y.copyState(je,be.htmlState),indentation:be.indentation,localMode:be.localMode,localState:be.localMode?y.copyState(be.localMode,be.localState):null,inline:be.inline,text:be.text,formatting:!1,linkText:be.linkText,linkTitle:be.linkTitle,linkHref:be.linkHref,code:be.code,em:be.em,strong:be.strong,strikethrough:be.strikethrough,emoji:be.emoji,header:be.header,setext:be.setext,hr:be.hr,taskList:be.taskList,list:be.list,listStack:be.listStack.slice(0),quote:be.quote,indentedCode:be.indentedCode,trailingSpace:be.trailingSpace,trailingSpaceNewLine:be.trailingSpaceNewLine,md_inside:be.md_inside,fencedEndRE:be.fencedEndRE}},token:function(be,ge){if(ge.formatting=!1,be!=ge.thisLine.stream){if(ge.header=0,ge.hr=!1,be.match(/^\s*$/,!0))return Fe(ge),null;if(ge.prevLine=ge.thisLine,ge.thisLine={stream:be},ge.taskList=!1,ge.trailingSpace=0,ge.trailingSpaceNewLine=!1,!ge.localState&&(ge.f=ge.block,ge.f!=$e)){var Ft=be.match(/^\s*/,!0)[0].replace(/\t/g,Ne).length;if(ge.indentation=Ft,ge.indentationDiff=null,Ft>0)return null}}return ge.f(be,ge)},innerMode:function(be){return be.block==$e?{state:be.htmlState,mode:je}:be.localState?{state:be.localState,mode:be.localMode}:{state:be,mode:Mt}},indent:function(be,ge,Ft){return be.block==$e&&je.indent?je.indent(be.htmlState,ge,Ft):be.localState&&be.localMode.indent?be.localMode.indent(be.localState,ge,Ft):y.Pass},blankLine:Fe,getType:ot,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Mt},"xml"),y.defineMIME("text/markdown","markdown"),y.defineMIME("text/x-markdown","markdown")})},98101:function(bn,zt,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 ce=y.modeInfo[he];ce.mimes&&(ce.mime=ce.mimes[0])}y.findModeByMIME=function(je){je=je.toLowerCase();for(var ve=0;ve<y.modeInfo.length;ve++){var me=y.modeInfo[ve];if(me.mime==je)return me;if(me.mimes){for(var ye=0;ye<me.mimes.length;ye++)if(me.mimes[ye]==je)return me}}if(/\+xml$/.test(je))return y.findModeByMIME("application/xml");if(/\+json$/.test(je))return y.findModeByMIME("application/json")},y.findModeByExtension=function(je){je=je.toLowerCase();for(var ve=0;ve<y.modeInfo.length;ve++){var me=y.modeInfo[ve];if(me.ext){for(var ye=0;ye<me.ext.length;ye++)if(me.ext[ye]==je)return me}}},y.findModeByFileName=function(je){for(var ve=0;ve<y.modeInfo.length;ve++){var me=y.modeInfo[ve];if(me.file&&me.file.test(je))return me}var ye=je.lastIndexOf("."),Ae=ye>-1&&je.substring(ye+1,je.length);if(Ae)return y.findModeByExtension(Ae)},y.findModeByName=function(je){je=je.toLowerCase();for(var ve=0;ve<y.modeInfo.length;ve++){var me=y.modeInfo[ve];if(me.name.toLowerCase()==je)return me;if(me.alias){for(var ye=0;ye<me.alias.length;ye++)if(me.alias[ye].toLowerCase()==je)return me}}}})},67549:function(bn,zt,z){(function(y){y(z(89780))})(function(y){"use strict";y.defineMode("stex",function(he,ce){"use strict";function je(He,Me){He.cmdState.push(Me)}function ve(He){return He.cmdState.length>0?He.cmdState[He.cmdState.length-1]:null}function me(He){var Me=He.cmdState.pop();Me&&Me.closeBracket()}function ye(He){for(var Me=He.cmdState,Ee=Me.length-1;Ee>=0;Ee--){var we=Me[Ee];if(we.name!="DEFAULT")return we}return{styleIdentifier:function(){return null}}}function Ae(He,Me,Ee){return function(){this.name=He,this.bracketNo=0,this.style=Me,this.styles=Ee,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var pe={};pe.importmodule=Ae("importmodule","tag",["string","builtin"]),pe.documentclass=Ae("documentclass","tag",["","atom"]),pe.usepackage=Ae("usepackage","tag",["atom"]),pe.begin=Ae("begin","tag",["atom"]),pe.end=Ae("end","tag",["atom"]),pe.label=Ae("label","tag",["atom"]),pe.ref=Ae("ref","tag",["atom"]),pe.eqref=Ae("eqref","tag",["atom"]),pe.cite=Ae("cite","tag",["atom"]),pe.bibitem=Ae("bibitem","tag",["atom"]),pe.Bibitem=Ae("Bibitem","tag",["atom"]),pe.RBibitem=Ae("RBibitem","tag",["atom"]),pe.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function le(He,Me){He.f=Me}function Re(He,Me){var Ee;if(He.match(/^\\[a-zA-Z@]+/)){var we=He.current().slice(1);return Ee=pe.hasOwnProperty(we)?pe[we]:pe.DEFAULT,Ee=new Ee,je(Me,Ee),le(Me,tt),Ee.style}if(He.match(/^\\[$&%#{}_]/)||He.match(/^\\[,;!\/\\]/))return"tag";if(He.match("\\["))return le(Me,function(Xe,ft){return Ie(Xe,ft,"\\]")}),"keyword";if(He.match("\\("))return le(Me,function(Xe,ft){return Ie(Xe,ft,"\\)")}),"keyword";if(He.match("$$"))return le(Me,function(Xe,ft){return Ie(Xe,ft,"$$")}),"keyword";if(He.match("$"))return le(Me,function(Xe,ft){return Ie(Xe,ft,"$")}),"keyword";var Ne=He.next();if(Ne=="%")return He.skipToEnd(),"comment";if(Ne=="}"||Ne=="]"){if(Ee=ve(Me),Ee)Ee.closeBracket(Ne),le(Me,tt);else return"error";return"bracket"}else return Ne=="{"||Ne=="["?(Ee=pe.DEFAULT,Ee=new Ee,je(Me,Ee),"bracket"):/\d/.test(Ne)?(He.eatWhile(/[\w.%]/),"atom"):(He.eatWhile(/[\w\-_]/),Ee=ye(Me),Ee.name=="begin"&&(Ee.argument=He.current()),Ee.styleIdentifier())}function Ie(He,Me,Ee){if(He.eatSpace())return null;if(Ee&&He.match(Ee))return le(Me,Re),"keyword";if(He.match(/^\\[a-zA-Z@]+/))return"tag";if(He.match(/^[a-zA-Z]+/))return"variable-2";if(He.match(/^\\[$&%#{}_]/)||He.match(/^\\[,;!\/]/)||He.match(/^[\^_&]/))return"tag";if(He.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(He.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var we=He.next();return we=="{"||we=="}"||we=="["||we=="]"||we=="("||we==")"?"bracket":we=="%"?(He.skipToEnd(),"comment"):"error"}function tt(He,Me){var Ee=He.peek(),we;return Ee=="{"||Ee=="["?(we=ve(Me),we.openBracket(Ee),He.eat(Ee),le(Me,Re),"bracket"):/[ \t\r]/.test(Ee)?(He.eat(Ee),null):(le(Me,Re),me(Me),Re(He,Me))}return{startState:function(){var He=ce.inMathMode?function(Me,Ee){return Ie(Me,Ee)}:Re;return{cmdState:[],f:He}},copyState:function(He){return{cmdState:He.cmdState.slice(),f:He.f}},token:function(He,Me){return Me.f(He,Me)},blankLine:function(He){He.f=Re,He.cmdState.length=0},lineComment:"%"}}),y.defineMIME("text/x-stex","stex"),y.defineMIME("text/x-latex","stex")})},15525:function(bn,zt,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},ce={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};y.defineMode("xml",function(je,ve){var me=je.indentUnit,ye={},Ae=ve.htmlMode?he:ce;for(var pe in Ae)ye[pe]=Ae[pe];for(var pe in ve)ye[pe]=ve[pe];var le,Re;function Ie(Ce,et){function Te(_e){return et.tokenize=_e,_e(Ce,et)}var ue=Ce.next();if(ue=="<")return Ce.eat("!")?Ce.eat("[")?Ce.match("CDATA[")?Te(Me("atom","]]>")):null:Ce.match("--")?Te(Me("comment","-->")):Ce.match("DOCTYPE",!0,!0)?(Ce.eatWhile(/[\w\._\-]/),Te(Ee(1))):null:Ce.eat("?")?(Ce.eatWhile(/[\w\._\-]/),et.tokenize=Me("meta","?>"),"meta"):(le=Ce.eat("/")?"closeTag":"openTag",et.tokenize=tt,"tag bracket");if(ue=="&"){var mt;return Ce.eat("#")?Ce.eat("x")?mt=Ce.eatWhile(/[a-fA-F\d]/)&&Ce.eat(";"):mt=Ce.eatWhile(/[\d]/)&&Ce.eat(";"):mt=Ce.eatWhile(/[\w\.\-:]/)&&Ce.eat(";"),mt?"atom":"error"}else return Ce.eatWhile(/[^&<]/),null}Ie.isInText=!0;function tt(Ce,et){var Te=Ce.next();if(Te==">"||Te=="/"&&Ce.eat(">"))return et.tokenize=Ie,le=Te==">"?"endTag":"selfcloseTag","tag bracket";if(Te=="=")return le="equals",null;if(Te=="<"){et.tokenize=Ie,et.state=ft,et.tagName=et.tagStart=null;var ue=et.tokenize(Ce,et);return ue?ue+" tag error":"tag error"}else return/[\'\"]/.test(Te)?(et.tokenize=He(Te),et.stringStartCol=Ce.column(),et.tokenize(Ce,et)):(Ce.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function He(Ce){var et=function(Te,ue){for(;!Te.eol();)if(Te.next()==Ce){ue.tokenize=tt;break}return"string"};return et.isInAttribute=!0,et}function Me(Ce,et){return function(Te,ue){for(;!Te.eol();){if(Te.match(et)){ue.tokenize=Ie;break}Te.next()}return Ce}}function Ee(Ce){return function(et,Te){for(var ue;(ue=et.next())!=null;){if(ue=="<")return Te.tokenize=Ee(Ce+1),Te.tokenize(et,Te);if(ue==">")if(Ce==1){Te.tokenize=Ie;break}else return Te.tokenize=Ee(Ce-1),Te.tokenize(et,Te)}return"meta"}}function we(Ce,et,Te){this.prev=Ce.context,this.tagName=et,this.indent=Ce.indented,this.startOfLine=Te,(ye.doNotIndent.hasOwnProperty(et)||Ce.context&&Ce.context.noIndent)&&(this.noIndent=!0)}function Ne(Ce){Ce.context&&(Ce.context=Ce.context.prev)}function Xe(Ce,et){for(var Te;;){if(!Ce.context||(Te=Ce.context.tagName,!ye.contextGrabbers.hasOwnProperty(Te)||!ye.contextGrabbers[Te].hasOwnProperty(et)))return;Ne(Ce)}}function ft(Ce,et,Te){return Ce=="openTag"?(Te.tagStart=et.column(),Pe):Ce=="closeTag"?Fe:ft}function Pe(Ce,et,Te){return Ce=="word"?(Te.tagName=et.current(),Re="tag",gt):ye.allowMissingTagName&&Ce=="endTag"?(Re="tag bracket",gt(Ce,et,Te)):(Re="error",Pe)}function Fe(Ce,et,Te){if(Ce=="word"){var ue=et.current();return Te.context&&Te.context.tagName!=ue&&ye.implicitlyClosed.hasOwnProperty(Te.context.tagName)&&Ne(Te),Te.context&&Te.context.tagName==ue||ye.matchClosing===!1?(Re="tag",Ze):(Re="tag error",$e)}else return ye.allowMissingTagName&&Ce=="endTag"?(Re="tag bracket",Ze(Ce,et,Te)):(Re="error",$e)}function Ze(Ce,et,Te){return Ce!="endTag"?(Re="error",Ze):(Ne(Te),ft)}function $e(Ce,et,Te){return Re="error",Ze(Ce,et,Te)}function gt(Ce,et,Te){if(Ce=="word")return Re="attribute",ot;if(Ce=="endTag"||Ce=="selfcloseTag"){var ue=Te.tagName,mt=Te.tagStart;return Te.tagName=Te.tagStart=null,Ce=="selfcloseTag"||ye.autoSelfClosers.hasOwnProperty(ue)?Xe(Te,ue):(Xe(Te,ue),Te.context=new we(Te,ue,mt==Te.indented)),ft}return Re="error",gt}function ot(Ce,et,Te){return Ce=="equals"?Qe:(ye.allowMissing||(Re="error"),gt(Ce,et,Te))}function Qe(Ce,et,Te){return Ce=="string"?ct:Ce=="word"&&ye.allowUnquoted?(Re="string",gt):(Re="error",gt(Ce,et,Te))}function ct(Ce,et,Te){return Ce=="string"?ct:gt(Ce,et,Te)}return{startState:function(Ce){var et={tokenize:Ie,state:ft,indented:Ce||0,tagName:null,tagStart:null,context:null};return Ce!=null&&(et.baseIndent=Ce),et},token:function(Ce,et){if(!et.tagName&&Ce.sol()&&(et.indented=Ce.indentation()),Ce.eatSpace())return null;le=null;var Te=et.tokenize(Ce,et);return(Te||le)&&Te!="comment"&&(Re=null,et.state=et.state(le||Te,Ce,et),Re&&(Te=Re=="error"?Te+" error":Re)),Te},indent:function(Ce,et,Te){var ue=Ce.context;if(Ce.tokenize.isInAttribute)return Ce.tagStart==Ce.indented?Ce.stringStartCol+1:Ce.indented+me;if(ue&&ue.noIndent)return y.Pass;if(Ce.tokenize!=tt&&Ce.tokenize!=Ie)return Te?Te.match(/^(\s*)/)[0].length:0;if(Ce.tagName)return ye.multilineTagIndentPastTag!==!1?Ce.tagStart+Ce.tagName.length+2:Ce.tagStart+me*(ye.multilineTagIndentFactor||1);if(ye.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(ye.implicitlyClosed.hasOwnProperty(ue.tagName))ue=ue.prev;else break;else if(mt)for(;ue;){var _e=ye.contextGrabbers[ue.tagName];if(_e&&_e.hasOwnProperty(mt[2]))ue=ue.prev;else break}for(;ue&&ue.prev&&!ue.startOfLine;)ue=ue.prev;return ue?ue.indent+me:Ce.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:ye.htmlMode?"html":"xml",helperType:ye.htmlMode?"html":"xml",skipAttribute:function(Ce){Ce.state==Qe&&(Ce.state=gt)},xmlCurrentTag:function(Ce){return Ce.tagName?{name:Ce.tagName,close:Ce.type=="closeTag"}:null},xmlCurrentContext:function(Ce){for(var et=[],Te=Ce.context;Te;Te=Te.prev)Te.tagName&&et.push(Te.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,zt,z){var y,he;(function(ce,je){bn.exports=je(ce)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof z.g!="undefined"?z.g:this,function(ce){"use strict";ce=ce||{};var je=ce.Base64,ve="2.6.4",me="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ye=function(Te){for(var ue={},mt=0,_e=Te.length;mt<_e;mt++)ue[Te.charAt(mt)]=mt;return ue}(me),Ae=String.fromCharCode,pe=function(Te){if(Te.length<2){var ue=Te.charCodeAt(0);return ue<128?Te:ue<2048?Ae(192|ue>>>6)+Ae(128|ue&63):Ae(224|ue>>>12&15)+Ae(128|ue>>>6&63)+Ae(128|ue&63)}else{var ue=65536+(Te.charCodeAt(0)-55296)*1024+(Te.charCodeAt(1)-56320);return Ae(240|ue>>>18&7)+Ae(128|ue>>>12&63)+Ae(128|ue>>>6&63)+Ae(128|ue&63)}},le=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,Re=function(Te){return Te.replace(le,pe)},Ie=function(Te){var ue=[0,2,1][Te.length%3],mt=Te.charCodeAt(0)<<16|(Te.length>1?Te.charCodeAt(1):0)<<8|(Te.length>2?Te.charCodeAt(2):0),_e=[me.charAt(mt>>>18),me.charAt(mt>>>12&63),ue>=2?"=":me.charAt(mt>>>6&63),ue>=1?"=":me.charAt(mt&63)];return _e.join("")},tt=ce.btoa&&typeof ce.btoa=="function"?function(Te){return ce.btoa(Te)}:function(Te){if(Te.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return Te.replace(/[\s\S]{1,3}/g,Ie)},He=function(Te){return tt(Re(String(Te)))},Me=function(Te){return Te.replace(/[+\/]/g,function(ue){return ue=="+"?"-":"_"}).replace(/=/g,"")},Ee=function(Te,ue){return ue?Me(He(Te)):He(Te)},we=function(Te){return Ee(Te,!0)},Ne;ce.Uint8Array&&(Ne=function(Te,ue){for(var mt="",_e=0,lt=Te.length;_e<lt;_e+=3){var Mt=Te[_e],be=Te[_e+1],ge=Te[_e+2],Ft=Mt<<16|be<<8|ge;mt+=me.charAt(Ft>>>18)+me.charAt(Ft>>>12&63)+(typeof be!="undefined"?me.charAt(Ft>>>6&63):"=")+(typeof ge!="undefined"?me.charAt(Ft&63):"=")}return ue?Me(mt):mt});var Xe=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,ft=function(Te){switch(Te.length){case 4:var ue=(7&Te.charCodeAt(0))<<18|(63&Te.charCodeAt(1))<<12|(63&Te.charCodeAt(2))<<6|63&Te.charCodeAt(3),mt=ue-65536;return Ae((mt>>>10)+55296)+Ae((mt&1023)+56320);case 3:return Ae((15&Te.charCodeAt(0))<<12|(63&Te.charCodeAt(1))<<6|63&Te.charCodeAt(2));default:return Ae((31&Te.charCodeAt(0))<<6|63&Te.charCodeAt(1))}},Pe=function(Te){return Te.replace(Xe,ft)},Fe=function(Te){var ue=Te.length,mt=ue%4,_e=(ue>0?ye[Te.charAt(0)]<<18:0)|(ue>1?ye[Te.charAt(1)]<<12:0)|(ue>2?ye[Te.charAt(2)]<<6:0)|(ue>3?ye[Te.charAt(3)]:0),lt=[Ae(_e>>>16),Ae(_e>>>8&255),Ae(_e&255)];return lt.length-=[0,0,2,1][mt],lt.join("")},Ze=ce.atob&&typeof ce.atob=="function"?function(Te){return ce.atob(Te)}:function(Te){return Te.replace(/\S{1,4}/g,Fe)},$e=function(Te){return Ze(String(Te).replace(/[^A-Za-z0-9\+\/]/g,""))},gt=function(Te){return Pe(Ze(Te))},ot=function(Te){return String(Te).replace(/[-_]/g,function(ue){return ue=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},Qe=function(Te){return gt(ot(Te))},ct;ce.Uint8Array&&(ct=function(Te){return Uint8Array.from($e(ot(Te)),function(ue){return ue.charCodeAt(0)})});var Ce=function(){var Te=ce.Base64;return ce.Base64=je,Te};if(ce.Base64={VERSION:ve,atob:$e,btoa:tt,fromBase64:Qe,toBase64:Ee,utob:Re,encode:Ee,encodeURI:we,btou:Pe,decode:Qe,noConflict:Ce,fromUint8Array:Ne,toUint8Array:ct},typeof Object.defineProperty=="function"){var et=function(Te){return{value:Te,enumerable:!1,writable:!0,configurable:!0}};ce.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",et(function(){return Qe(this)})),Object.defineProperty(String.prototype,"toBase64",et(function(Te){return Ee(this,Te)})),Object.defineProperty(String.prototype,"toBase64URI",et(function(){return Ee(this,!0)}))}}return ce.Meteor&&(Base64=ce.Base64),bn.exports?bn.exports.Base64=ce.Base64:(y=[],he=function(){return ce.Base64}.apply(zt,y),he!==void 0&&(bn.exports=he)),{Base64:ce.Base64}})},2859:function(bn,zt,z){"use strict";z.d(zt,{hP:function(){return kt}});var y=function(ae,re){return(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(te,oe){te.__proto__=oe}||function(te,oe){for(var de in oe)Object.prototype.hasOwnProperty.call(oe,de)&&(te[de]=oe[de])})(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 ce(ae,re,te,oe){return new(te||(te=Promise))(function(de,ne){function se(Ge){try{bt(oe.next(Ge))}catch(We){ne(We)}}function Oe(Ge){try{bt(oe.throw(Ge))}catch(We){ne(We)}}function bt(Ge){var We;Ge.done?de(Ge.value):(We=Ge.value,We instanceof te?We:new te(function(it){it(We)})).then(se,Oe)}bt((oe=oe.apply(ae,re||[])).next())})}function je(ae,re){var te,oe,de,ne,se={label:0,sent:function(){if(1&de[0])throw de[1];return de[1]},trys:[],ops:[]};return ne={next:Oe(0),throw:Oe(1),return:Oe(2)},typeof Symbol=="function"&&(ne[Symbol.iterator]=function(){return this}),ne;function Oe(bt){return function(Ge){return function(We){if(te)throw new TypeError("Generator is already executing.");for(;se;)try{if(te=1,oe&&(de=2&We[0]?oe.return:We[0]?oe.throw||((de=oe.return)&&de.call(oe),0):oe.next)&&!(de=de.call(oe,We[1])).done)return de;switch(oe=0,de&&(We=[2&We[0],de.value]),We[0]){case 0:case 1:de=We;break;case 4:return se.label++,{value:We[1],done:!1};case 5:se.label++,oe=We[1],We=[0];continue;case 7:We=se.ops.pop(),se.trys.pop();continue;default:if(de=se.trys,!((de=de.length>0&&de[de.length-1])||We[0]!==6&&We[0]!==2)){se=0;continue}if(We[0]===3&&(!de||We[1]>de[0]&&We[1]<de[3])){se.label=We[1];break}if(We[0]===6&&se.label<de[1]){se.label=de[1],de=We;break}if(de&&se.label<de[2]){se.label=de[2],se.ops.push(We);break}de[2]&&se.ops.pop(),se.trys.pop();continue}We=re.call(ae,se)}catch(it){We=[6,it],oe=0}finally{te=de=0}if(5&We[0])throw We[1];return{value:We[0]?We[1]:void 0,done:!0}}([bt,Ge])}}}function ve(){for(var ae=0,re=0,te=arguments.length;re<te;re++)ae+=arguments[re].length;var oe=Array(ae),de=0;for(re=0;re<te;re++)for(var ne=arguments[re],se=0,Oe=ne.length;se<Oe;se++,de++)oe[de]=ne[se];return oe}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 oe=0,de=te;oe<de.length;oe++){var ne=de[oe],se=ne[0],Oe=ne[1];re.setAttribute(se,Oe)}},ae.createRect=function(re,te,oe){var de=document.createElementNS("http://www.w3.org/2000/svg","rect");return de.setAttribute("width",re.toString()),de.setAttribute("height",te.toString()),oe&&ae.setAttributes(de,oe),de},ae.createLine=function(re,te,oe,de,ne){var se=document.createElementNS("http://www.w3.org/2000/svg","line");return se.setAttribute("x1",re.toString()),se.setAttribute("y1",te.toString()),se.setAttribute("x2",oe.toString()),se.setAttribute("y2",de.toString()),ne&&ae.setAttributes(se,ne),se},ae.createPolygon=function(re,te){var oe=document.createElementNS("http://www.w3.org/2000/svg","polygon");return oe.setAttribute("points",re),te&&ae.setAttributes(oe,te),oe},ae.createCircle=function(re,te){var oe=document.createElementNS("http://www.w3.org/2000/svg","circle");return oe.setAttribute("cx",(re/2).toString()),oe.setAttribute("cy",(re/2).toString()),oe.setAttribute("r",re.toString()),te&&ae.setAttributes(oe,te),oe},ae.createEllipse=function(re,te,oe){var de=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return de.setAttribute("cx",(re/2).toString()),de.setAttribute("cy",(te/2).toString()),de.setAttribute("rx",(re/2).toString()),de.setAttribute("ry",(te/2).toString()),oe&&ae.setAttributes(de,oe),de},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,oe,de,ne,se,Oe){var bt=document.createElementNS("http://www.w3.org/2000/svg","marker");return ae.setAttributes(bt,[["id",re],["orient",te],["markerWidth",oe.toString()],["markerHeight",de.toString()],["refX",ne.toString()],["refY",se.toString()]]),bt.appendChild(Oe),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 oe=document.createElementNS("http://www.w3.org/2000/svg","tspan");return oe.textContent=re,te&&ae.setAttributes(oe,te),oe},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 oe=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return oe.x=re,oe.y=te,oe},ae.createPath=function(re,te){var oe=document.createElementNS("http://www.w3.org/2000/svg","path");return oe.setAttribute("d",re),te&&ae.setAttributes(oe,te),oe},ae}(),ye=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}(),Ae=function(){function ae(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return ae.prototype.rasterize=function(re,te,oe){var de=this;return new Promise(function(ne){var se=oe!==void 0?oe:document.createElement("canvas");re===null&&(de.markersOnly=!0,de.naturalSize=!1);var Oe=document.createElementNS("http://www.w3.org/2000/svg","svg");Oe.setAttribute("xmlns","http://www.w3.org/2000/svg"),Oe.setAttribute("width",te.width.baseVal.valueAsString),Oe.setAttribute("height",te.height.baseVal.valueAsString),Oe.setAttribute("viewBox","0 0 "+te.viewBox.baseVal.width.toString()+" "+te.viewBox.baseVal.height.toString()),Oe.innerHTML=te.innerHTML,de.naturalSize===!0?(Oe.width.baseVal.value=re.naturalWidth,Oe.height.baseVal.value=re.naturalHeight):de.width!==void 0&&de.height!==void 0&&(Oe.width.baseVal.value=de.width,Oe.height.baseVal.value=de.height),se.width=Oe.width.baseVal.value,se.height=Oe.height.baseVal.value;var bt=Oe.outerHTML,Ge=se.getContext("2d");de.markersOnly!==!0&&Ge.drawImage(re,0,0,se.width,se.height);var We=window.URL,it=new Image(se.width,se.height);it.setAttribute("crossOrigin","anonymous");var ht=new Blob([bt],{type:"image/svg+xml"}),Pt=We.createObjectURL(ht);it.onload=function(){Ge.drawImage(it,0,0),We.revokeObjectURL(Pt);var Le=se.toDataURL(de.imageType,de.imageQuality);ne(Le)},it.src=Pt})},ae}(),pe=function(){},le=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 Re("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new Re("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new Re("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new Ie("fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new Ie("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}(),Re=function(ae,re){this.selector=ae,this.style=re},Ie=function(ae,re){this.localName=ae,this.style=re},tt=function(){function ae(re,te,oe,de,ne){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=re,this.displayMode=te,this.markerItems=oe,this.uiStyleSettings=de,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 oe=document.createElement("div");oe.className=this.toolbarBlockStyleClass.name,oe.style.whiteSpace="nowrap",this.uiContainer.appendChild(oe),this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M10.07 14.27a.997.997 0 011.33.48l2.3 4.99 1.8-.85-2.31-4.98c-.24-.5-.02-1.1.48-1.33l.28-.08 2.3-.45L8 5.12V15.9l1.82-1.47.25-.16m3.57 7.7a.99.99 0 01-1.33-.47l-2.18-4.74-2.51 2.02c-.17.14-.38.22-.62.22a1 1 0 01-1-1V3a1 1 0 011-1c.24 0 .47.09.64.23l.01-.01 11.49 9.64a1.001 1.001 0 01-.44 1.75l-3.16.62 2.2 4.73c.26.5.02 1.09-.48 1.32l-3.62 1.69z"/></svg>',"select"),this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M9 3v1H4v2h1v13a2 2 0 002 2h10a2 2 0 002-2V6h1V4h-5V3H9M7 6h10v13H7V6m2 2v9h2V8H9m4 0v9h2V8h-2z"/></svg>',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M19.36 2.72l1.42 1.42-5.72 5.71c1.07 1.54 1.22 3.39.32 4.59L9.06 8.12c1.2-.9 3.05-.75 4.59.32l5.71-5.72M5.93 17.57c-2.01-2.01-3.24-4.41-3.58-6.65l4.88-2.09 7.44 7.44-2.09 4.88c-2.24-.34-4.64-1.57-6.65-3.58z"/></svg>',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M12.5 8c-2.65 0-5.05 1-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"/></svg>',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M18.4 10.6C16.55 9 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16a8.002 8.002 0 017.6-5.5c1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"/></svg>',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M15.5 14l5 5-1.5 1.5-5-5v-.79l-.27-.28A6.471 6.471 0 019.5 16 6.5 6.5 0 013 9.5 6.5 6.5 0 019.5 3 6.5 6.5 0 0116 9.5c0 1.61-.59 3.09-1.57 4.23l.28.27h.79m-6 0C12 14 14 12 14 9.5S12 5 9.5 5 5 7 5 9.5 7 14 9.5 14m2.5-4h-2v2H9v-2H7V9h2V7h1v2h2v1z"/></svg>',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 009.5 3 6.5 6.5 0 003 9.5 6.5 6.5 0 009.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 5 1.5-1.5-5-5m-6 0C7 14 5 12 5 9.5S7 5 9.5 5 14 7 14 9.5 12 14 9.5 14M7 9h5v1H7V9z"/></svg>',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(oe,'<svg viewBox="0 0 24 24"><path d="M18.13 12l1.26-1.26c.44-.44 1-.68 1.61-.74V9l-6-6H5c-1.11 0-2 .89-2 2v14a2 2 0 002 2h6v-1.87l.13-.13H5V5h7v7h6.13M14 4.5l5.5 5.5H14V4.5m5.13 9.33l2.04 2.04L15.04 22H13v-2.04l6.13-6.13m3.72.36l-.98.98-2.04-2.04.98-.98c.19-.2.52-.2.72 0l1.32 1.32c.2.2.2.53 0 .72z"/></svg>',"notes"),this.markerButtonBlock=document.createElement("div"),this.markerButtonBlock.className=this.toolbarBlockStyleClass.name,this.markerButtonBlock.style.flexGrow="2",this.markerButtonBlock.style.textAlign="center",this.uiContainer.appendChild(this.markerButtonBlock),this.markerButtonOverflowBlock=document.createElement("div"),this.markerButtonOverflowBlock.className=this.toolbarOverflowBlockStyleClass.name+" "+(this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName?this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName:this.toolbarOverflowBlockStyleColorsClass.name),this.markerButtonOverflowBlock.style.display="none",this.uiContainer.appendChild(this.markerButtonOverflowBlock),this.markerItems&&(this.markerItems.forEach(function(ne){var se=document.createElement("div");se.className=""+te.toolbarButtonStyleClass.name,se.setAttribute("data-type-name",ne.typeName),se.innerHTML=ne.icon,se.addEventListener("click",function(){te.markerToolbarButtonClicked(se,ne)}),te.buttons.push(se),te.markerButtons.push(se)}),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 de=document.createElement("div");de.className=this.toolbarBlockStyleClass.name,de.style.whiteSpace="nowrap",de.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(de),this.addActionButton(de,'<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(de,'<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,oe){var de=this,ne=document.createElement("div");switch(ne.className=""+this.toolbarButtonStyleClass.name,ne.innerHTML=te,ne.setAttribute("data-action",oe),ne.addEventListener("click",function(){de.actionToolbarButtonClicked(ne,oe)}),oe){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 Ie("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 Ie("toolbar_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
`)),this.toolbarBlockStyleClass=this.styles.addClass(new Ie("toolbar-block",`
display: inline-block;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new Ie("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 Ie("toolbar-overflow-block_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`));var re=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new Ie("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 Ie("toolbar_button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new Ie("toolbar_active_button",`
fill: `+this.uiStyleSettings.toolbarColor+`;
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new Re("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`)),this.styles.addRule(new Re("."+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(oe){return oe("marker",te)}),this.markerButtonOverflowBlock.style.display="none"},ae.prototype.actionToolbarButtonClicked=function(re,te){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(oe){return oe("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(oe){return oe.getAttribute("data-type-name")===re});te&&this.setActiveButton(te)},ae.prototype.setCurrentMarker=function(re){var te=this;this.currentMarker=re,this.buttons.filter(function(oe){return/delete|notes/.test(oe.getAttribute("data-action"))}).forEach(function(oe){te.currentMarker===void 0?(oe.style.fillOpacity="0.4",oe.style.pointerEvents="none"):(oe.style.fillOpacity="1",oe.style.pointerEvents="all")})},ae}(),He=function(){function ae(re,te,oe,de){this.panels=[],this.panelButtons=[],this.markerjsContainer=re,this.displayMode=te,this.uiStyleSettings=oe,this.styles=de,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return ae.prototype.addStyles=function(){var re;this.toolboxStyleClass=this.styles.addClass(new Ie("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 Ie("toolbox_colors",`
color: `+this.uiStyleSettings.toolboxColor+`;
`));var te=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new Ie("toolbox-button-row",`
display: flex;
cursor: default;
box-sizing: content-box;
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new Ie("toolbox-button-row_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new Ie("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 Ie("toolbox-panel-row_colors",`
background-color: `+((re=this.uiStyleSettings.toolboxBackgroundColor)!==null&&re!==void 0?re:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
`)),this.toolboxButtonStyleClass=this.styles.addClass(new Ie("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 Ie("toolbox-button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new Ie("toolbox-active-button_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.styles.addRule(new Re("."+this.toolboxButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new Re("."+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,oe,de=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+" "+((oe=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&oe!==void 0?oe:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(ne){var se;ne.uiStyleSettings=de.uiStyleSettings;var Oe=document.createElement("div");Oe.className=de.toolboxButtonStyleClass.name+" "+((se=de.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&se!==void 0?se:de.toolboxButtonStyleColorsClass.name),Oe.innerHTML=ne.icon,Oe.title=ne.title,Oe.addEventListener("click",function(){de.panelButtonClick(ne)}),de.panelButtons.push(Oe),de.buttonRow.appendChild(Oe)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},ae.prototype.panelButtonClick=function(re){var te=this,oe=-1;if(re!==this.activePanel){oe=this.panels.indexOf(re),this.panelRow.innerHTML="";var de=re.getUi();de.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(de),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,se){var Oe,bt;ne.className=te.toolboxButtonStyleClass.name+" "+(se===oe?""+((Oe=te.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Oe!==void 0?Oe:te.toolboxActiveButtonStyleColorsClass.name):""+((bt=te.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&bt!==void 0?bt:te.toolboxButtonStyleColorsClass.name))})},ae}(),Me=function(ae,re){this.title=ae,this.icon=re},Ee=function(ae){function re(te,oe,de,ne){var se=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 se.colors=[],se.addTransparent=!1,se.colorBoxes=[],se.colors=oe,se.currentColor=de,se.setCurrentColor=se.setCurrentColor.bind(se),se.getColorBox=se.getColorBox.bind(se),se}return he(re,ae),re.prototype.getUi=function(){var te=this,oe=document.createElement("div");return oe.style.overflow="hidden",oe.style.whiteSpace="nowrap",this.colors.forEach(function(de){var ne=te.getColorBox(de);oe.appendChild(ne),te.colorBoxes.push(ne)}),oe},re.prototype.getColorBox=function(te){var oe=this,de=this.uiStyleSettings.toolbarHeight/4,ne=this.uiStyleSettings.toolbarHeight-de,se=document.createElement("div");se.style.display="inline-block",se.style.boxSizing="content-box",se.style.width=ne-2+"px",se.style.height=ne-2+"px",se.style.padding="1px",se.style.marginRight="2px",se.style.marginBottom="2px",se.style.borderWidth="2px",se.style.borderStyle="solid",se.style.borderRadius=(ne+2)/2+"px",se.style.borderColor=te===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",se.addEventListener("click",function(){oe.setCurrentColor(te,se)});var Oe=document.createElement("div");return Oe.style.display="inline-block",Oe.style.width=ne-2+"px",Oe.style.height=ne-2+"px",Oe.style.backgroundColor=te,Oe.style.borderRadius=ne/2+"px",te==="transparent"&&(Oe.style.fill=this.uiStyleSettings.toolboxAccentColor,Oe.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>`),se.appendChild(Oe),se},re.prototype.setCurrentColor=function(te,oe){var de=this;this.currentColor=te,this.colorBoxes.forEach(function(ne){ne.style.borderColor=ne===oe?de.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(te)},re}(Me),we=function(){function ae(re,te,oe){this._state="new",this._isSelected=!1,this._container=re,this._overlayContainer=te,this.globalSettings=oe,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}(),Ne=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}(),Xe=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}(),ft=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}(),Pe=function(ae){function re(te,oe,de){var ne=ae.call(this,te,oe,de)||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 oe=me.createTransform();this._visual.transform.baseVal.appendItem(oe)},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,oe){ae.prototype.pointerDown.call(this,te,oe),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 de=this.unrotatePoint(te);if(this.manipulationStartX=de.x,this.manipulationStartY=de.y,this.offsetX=de.x-this.left,this.offsetY=de.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(oe),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(oe)){this.activeGrip=this.rotatorGrip;var 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 se=this.container.transform.baseVal.getItem(0);se.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(se,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},re.prototype.pointerUp=function(te){var oe=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",oe==="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 oe=this.unrotatePoint(te);this.state==="creating"?this.resize(te):this.state==="move"?(this.left=this.manipulationStartLeft+(oe.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(oe.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(oe):this.state==="rotate"&&this.rotate(te)},re.prototype.resize=function(te){var oe=this.manipulationStartLeft,de=this.manipulationStartWidth,ne=this.manipulationStartTop,se=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:oe=this.manipulationStartLeft+te.x-this.manipulationStartX,de=this.manipulationStartWidth+this.manipulationStartLeft-oe;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:de=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,se=this.manipulationStartHeight+this.manipulationStartTop-ne;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:se=this.manipulationStartHeight+te.y-this.manipulationStartY}de>=0?(this.left=oe,this.width=de):(this.left=oe+de,this.width=-de),se>=0?(this.top=ne,this.height=se):(this.top=ne+se,this.height=-se),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 oe=Math.sign(te.x-this.centerX);this.rotationAngle=180*Math.atan((te.y-this.centerY)/(te.x-this.centerX))/Math.PI+90*oe,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 oe=this.container.getCTM(),de=me.createPoint(te.x,te.y);return{x:(de=de.matrixTransform(oe)).x,y:de.y}},re.prototype.unrotatePoint=function(te){if(this.rotationAngle===0)return te;var oe=this.container.getCTM();oe=oe.inverse();var de=me.createPoint(te.x,te.y);return{x:(de=de.matrixTransform(oe)).x,y:de.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 Ne,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 Xe;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,oe=-te/2,de=oe,ne=(this.width+this.CB_DISTANCE)/2-te/2,se=(this.height+this.CB_DISTANCE)/2-te/2,Oe=this.height+this.CB_DISTANCE-te/2,bt=this.width+this.CB_DISTANCE-te/2;this.positionGrip(this.controlGrips.topLeft.visual,oe,de),this.positionGrip(this.controlGrips.topCenter.visual,ne,de),this.positionGrip(this.controlGrips.topRight.visual,bt,de),this.positionGrip(this.controlGrips.centerLeft.visual,oe,se),this.positionGrip(this.controlGrips.centerRight.visual,bt,se),this.positionGrip(this.controlGrips.bottomLeft.visual,oe,Oe),this.positionGrip(this.controlGrips.bottomCenter.visual,ne,Oe),this.positionGrip(this.controlGrips.bottomRight.visual,bt,Oe),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,ne,de-3*this.CB_DISTANCE)},re.prototype.positionGrip=function(te,oe,de){var ne=te.transform.baseVal.getItem(0);ne.setTranslate(oe,de),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:ft.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:ft.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 oe=te;this.left=oe.left,this.top=oe.top,this.width=oe.width,this.height=oe.height,this.rotationAngle=oe.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(ft.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,oe.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(ft.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,oe.containerTransformMatrix))},re.prototype.scale=function(te,oe){ae.prototype.scale.call(this,te,oe);var de=this.rotatePoint({x:this.left,y:this.top}),ne=this.unrotatePoint({x:de.x*te,y:de.y*oe});this.left=ne.x,this.top=ne.y,this.width=this.width*te,this.height=this.height*oe,this.adjustControlBox()},re}(we),Fe=function(ae){function re(te,oe,de){var ne=ae.call(this,te,oe,de)||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,oe){ae.prototype.pointerDown.call(this,te,oe),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 oe=te;this.fillColor=oe.fillColor,this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.opacity=oe.opacity,this.createVisual(),ae.prototype.restoreState.call(this,te),this.setSize()},re.prototype.scale=function(te,oe){ae.prototype.scale.call(this,te,oe),this.setSize()},re.title="Rectangle marker",re}(Pe),Ze=function(ae){function re(te,oe,de,ne){var se=ae.call(this,te,ne||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return se.widths=[],se.widthBoxes=[],se.widths=oe,se.currentWidth=de,se.setCurrentWidth=se.setCurrentWidth.bind(se),se}return he(re,ae),re.prototype.getUi=function(){var te=this,oe=document.createElement("div");return oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2",this.widths.forEach(function(de){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=de===te.currentWidth?te.uiStyleSettings.toolboxAccentColor:"transparent",ne.addEventListener("click",function(){te.setCurrentWidth(de,ne)}),oe.appendChild(ne);var se=document.createElement("div");se.innerText=de.toString(),se.style.marginRight="5px",ne.appendChild(se);var Oe=document.createElement("div");Oe.style.minHeight="20px",Oe.style.flexGrow="2",Oe.style.display="flex",Oe.style.alignItems="center";var bt=document.createElement("hr");bt.style.minWidth="20px",bt.style.border="0px",bt.style.borderTop=de+"px solid "+te.uiStyleSettings.toolboxColor,bt.style.flexGrow="2",Oe.appendChild(bt),ne.appendChild(Oe),te.widthBoxes.push(ne)}),oe},re.prototype.setCurrentWidth=function(te,oe){var de=this;this.currentWidth=te,this.widthBoxes.forEach(function(ne){ne.style.borderColor=ne===oe?de.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},re}(Me),$e=function(ae){function re(te,oe,de,ne){var se=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 se.styles=[],se.styleBoxes=[],se.styles=oe,se.currentStyle=de,se.setCurrentStyle=se.setCurrentStyle.bind(se),se}return he(re,ae),re.prototype.getUi=function(){var te=this,oe=document.createElement("div");return oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2",this.styles.forEach(function(de){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=de===te.currentStyle?te.uiStyleSettings.toolboxAccentColor:"transparent",ne.addEventListener("click",function(){te.setCurrentStyle(de,ne)}),oe.appendChild(ne);var se=document.createElement("div");se.style.minHeight="20px",se.style.flexGrow="2",se.style.overflow="hidden";var Oe=`<svg width="100" height="20">
<line x1="0" y1="10" x2="100" y2="10" stroke="`+te.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(de!==""?'stroke-dasharray="'+de+'"':"")+` />
</svg>`;se.innerHTML=Oe,ne.appendChild(se),te.styleBoxes.push(ne)}),oe},re.prototype.setCurrentStyle=function(te,oe){var de=this;this.currentStyle=te,this.styleBoxes.forEach(function(ne){ne.style.borderColor=ne===oe?de.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},re}(Me),gt=function(ae){function re(te,oe,de){var ne=ae.call(this,te,oe,de)||this;return ne.strokeColor=de.defaultColor,ne.strokeWidth=de.defaultStrokeWidth,ne.strokeDasharray=de.defaultStrokeDasharray,ne.strokePanel=new Ee("Line color",de.defaultColorSet,de.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.strokeWidthPanel=new Ze("Line width",de.defaultStrokeWidths,de.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new $e("Line style",de.defaultStrokeDasharrays,de.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}(Fe),ot=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,oe,de){var ne=ae.call(this,te,oe,de)||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,oe){ae.prototype.pointerDown.call(this,te,oe),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(oe)?this.activeGrip=this.grip1:this.grip2.ownsTarget(oe)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},re.prototype.pointerUp=function(te){var oe=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",oe==="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 Xe;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,oe,de){var ne=te.transform.baseVal.getItem(0);ne.setTranslate(oe,de),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 oe=te;this.x1=oe.x1,this.y1=oe.y1,this.x2=oe.x2,this.y2=oe.y2},re.prototype.scale=function(te,oe){ae.prototype.scale.call(this,te,oe),this.x1=this.x1*te,this.y1=this.y1*oe,this.x2=this.x2*te,this.y2=this.y2*oe,this.adjustVisual(),this.adjustControlBox()},re}(we),ct=function(ae){function re(te,oe,de){var ne=ae.call(this,te,oe,de)||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=de.defaultColor,ne.strokeWidth=de.defaultStrokeWidth,ne.strokeDasharray=de.defaultStrokeDasharray,ne.strokePanel=new Ee("Line color",de.defaultColorSet,de.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.strokeWidthPanel=new Ze("Line width",de.defaultStrokeWidths,de.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new $e("Line style",de.defaultStrokeDasharrays,de.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,oe){ae.prototype.pointerDown.call(this,te,oe),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 oe=te;this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.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),Ce=function(ae){function re(te,oe,de,ne){var se=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 se.fonts=[],se.fontBoxes=[],se.fonts=oe,se.currentFont=de,se.setCurrentFont=se.setCurrentFont.bind(se),se}return he(re,ae),re.prototype.getUi=function(){var te=this,oe=document.createElement("div");return oe.style.overflow="hidden",oe.style.flexGrow="2",this.fonts.forEach(function(de){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=de===te.currentFont?te.uiStyleSettings.toolboxAccentColor:"transparent",ne.addEventListener("click",function(){te.setCurrentFont(de,ne)}),oe.appendChild(ne);var se=document.createElement("div");se.style.display="flex",se.style.minHeight="20px",se.style.flexGrow="2",se.style.fontFamily=de,se.style.overflow="hidden";var Oe=document.createElement("div");Oe.style.whiteSpace="nowrap",Oe.style.overflow="hidden",Oe.style.textOverflow="ellipsis",Oe.innerHTML="The quick brown fox jumps over the lazy dog",se.appendChild(Oe),ne.appendChild(se),te.fontBoxes.push(ne)}),oe},re.prototype.setCurrentFont=function(te,oe){var de=this;this.currentFont=te,this.fontBoxes.forEach(function(ne){ne.style.borderColor=ne===oe?de.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},re}(Me),et=function(ae){function re(te,oe,de){var ne=ae.call(this,te,oe,de)||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=de.defaultColor,ne.fontFamily=de.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 Ee("Color",de.defaultColorSet,de.defaultColor),ne.colorPanel.onColorChanged=ne.setColor,ne.fontFamilyPanel=new Ce("Font",de.defaultFontFamilies,de.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 oe=!1;return this.textElement.childNodes.forEach(function(de){de===te&&(oe=!0)}),oe},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,oe){ae.prototype.pointerDown.call(this,te,oe),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(oe){te.textElement.appendChild(me.createTSpan(oe.trim()===""?" ":oe.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},re.prototype.getTextScale=function(){var te=this.textElement.getBBox(),oe=1;if(te.width>0&&te.height>0){var de=(1*this.width-this.width*this.padding*2/100)/te.width,ne=(1*this.height-this.height*this.padding*2/100)/te.height;oe=Math.min(de,ne)}return oe},re.prototype.getTextPosition=function(te){var oe=this.textElement.getBBox(),de=0,ne=0;return oe.width>0&&oe.height>0&&(de=(this.width-oe.width*te)/2,ne=this.height/2-oe.height*te/2),{x:de,y:ne}},re.prototype.sizeText=function(){var te=this.textElement.getBBox(),oe=this.getTextScale(),de=this.getTextPosition(oe);de.y-=te.y*oe,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+de.x+"px, "+de.y+"px) scale("+oe+", "+oe+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(de.x,de.y),this.textElement.transform.baseVal.getItem(1).setScale(oe,oe))},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 oe=this.state;oe==="creating"&&(this._suppressMarkerCreateEvent=!0),ae.prototype.pointerUp.call(this,te),this.setSize(),(oe==="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(oe){oe.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var oe=Number.parseFloat(te.textEditor.style.fontSize);te.textEditor.clientWidth>=Number.parseInt(te.textEditor.style.maxWidth)&&oe>.9;)oe-=.1,te.textEditor.style.fontSize=Math.max(oe,.9)+"em"}),this.textEditor.addEventListener("keyup",function(oe){oe.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(oe){if(oe.clipboardData){var de=oe.clipboardData.getData("text"),ne=window.getSelection();if(!ne.rangeCount)return!1;ne.deleteFromDocument(),ne.getRangeAt(0).insertNode(document.createTextNode(de)),oe.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(),oe=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),de=this.textElement.getBBox(),ne={x:de.width*te,y:de.height*te};oe.x-=ne.x/2,oe.y-=ne.y/2,this.textEditor.style.top=oe.y+"px",this.textEditor.style.left=oe.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-oe.x+"px",this.textEditor.style.fontSize=Math.max(16*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,oe){ae.prototype.dblClick.call(this,te,oe),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 oe=te;this.color=oe.color,this.fontFamily=oe.fontFamily,this.padding=oe.padding,this.text=oe.text,this.createVisual(),ae.prototype.restoreState.call(this,te),this.setSize()},re.prototype.scale=function(te,oe){ae.prototype.scale.call(this,te,oe),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}(Pe),Te=function(ae){function re(te,oe,de){var ne=ae.call(this,te,oe,de)||this;return ne.color="transparent",ne.lineWidth=3,ne.drawing=!1,ne.pixelRatio=1,ne.color=de.defaultColor,ne.lineWidth=de.defaultStrokeWidth,ne.pixelRatio=de.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 Ee("Color",de.defaultColorSet,de.defaultColor),ne.colorPanel.onColorChanged=ne.setColor,ne.lineWidthPanel=new Ze("Line width",de.defaultStrokeWidths,de.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,oe){this.state==="new"&&(this.addCanvas(),this.createVisual(),this._state="creating"),this.state==="creating"?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(te.x,te.y),this.drawing=!0):ae.prototype.pointerDown.call(this,te,oe)},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),oe=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],de=oe[0],ne=oe[1],se=oe[2],Oe=oe[3],bt=!1,Ge=0;Ge<this.canvasElement.height;Ge++)for(var We=0;We<this.canvasElement.width;We++)te.data[Ge*this.canvasElement.width*4+4*We+3]>0&&(bt=!0,Ge<ne&&(ne=Ge),We<de&&(de=We),Ge>Oe&&(Oe=Ge),We>se&&(se=We));if(bt){this.left=de/this.pixelRatio,this.top=ne/this.pixelRatio,this.width=(se-de)/this.pixelRatio,this.height=(Oe-ne)/this.pixelRatio;var it=document.createElement("canvas");it.width=se-de,it.height=Oe-ne,it.getContext("2d").putImageData(this.canvasContext.getImageData(de,ne,se-de,Oe-ne),0,0),this.drawingImgUrl=it.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,oe){ae.prototype.scale.call(this,te,oe),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}(Pe),ue=function(ae){function re(te,oe,de){var ne=ae.call(this,te,de||'<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=oe,ne.setCurrentType=ne.setCurrentType.bind(ne),ne}return he(re,ae),re.prototype.getUi=function(){var te=this,oe=document.createElement("div");oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2";for(var de=function(Oe){var bt="both";switch(Oe){case 0:bt="both";break;case 1:bt="start";break;case 2:bt="end";break;case 3:bt="none"}var Ge=document.createElement("div");if(Ge.style.display="flex",Ge.style.flexGrow="2",Ge.style.alignItems="center",Ge.style.justifyContent="space-between",Ge.style.padding="5px",Ge.style.borderWidth="2px",Ge.style.borderStyle="solid",Ge.style.borderColor=bt===ne.currentType?ne.uiStyleSettings.toolboxAccentColor:"transparent",Ge.addEventListener("click",function(){te.setCurrentType(bt,Ge)}),oe.appendChild(Ge),bt==="both"||bt==="start"){var We=document.createElement("div");We.style.display="flex",We.style.alignItems="center",We.style.minHeight="20px",We.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>`,We.style.marginLeft="5px",Ge.appendChild(We)}var it=document.createElement("div");it.style.display="flex",it.style.alignItems="center",it.style.minHeight="20px",it.style.flexGrow="2";var ht=document.createElement("hr");if(ht.style.minWidth="20px",ht.style.border="0px",ht.style.borderTop="3px solid "+(ne.uiStyleSettings!==void 0?ne.uiStyleSettings.toolboxColor:"#eeeeee"),ht.style.flexGrow="2",it.appendChild(ht),Ge.appendChild(it),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",Ge.appendChild(Pt)}ne.typeBoxes.push(Ge)},ne=this,se=0;se<4;se++)de(se);return oe},re.prototype.setCurrentType=function(te,oe){var de=this;this.currentType=te,this.typeBoxes.forEach(function(ne){ne.style.borderColor=ne===oe?de.uiStyleSettings!==void 0?de.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},re}(Me),mt=function(ae){function re(te,oe,de){var ne=ae.call(this,te,oe,de)||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,oe){var de=this.arrowBaseWidth+2*this.strokeWidth,ne=this.arrowBaseHeight+2*this.strokeWidth;return te-de/2+","+(oe+ne/2)+" "+te+","+(oe-ne/2)+" "+(te+de/2)+","+(oe+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,oe){ae.prototype.pointerDown.call(this,te,oe),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 oe=this.arrow1.transform.baseVal.getItem(0);oe.setRotate(te,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(oe,0);var de=this.arrow2.transform.baseVal.getItem(0);de.setRotate(te+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(de,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 oe=te;this.arrowType=oe.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}(ct),_e=function(ae){function re(te,oe,de){var ne=ae.call(this,te,oe,de)||this;return ne.fillColor=de.defaultFillColor,ne.strokeWidth=0,ne.fillPanel=new Ee("Color",de.defaultColorSet,de.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}(Fe),lt=function(ae){function re(te,oe,de,ne){var se=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 se.opacities=[],se.opacityBoxes=[],se.opacities=oe,se.currentOpacity=de,se.setCurrentOpacity=se.setCurrentOpacity.bind(se),se}return he(re,ae),re.prototype.getUi=function(){var te=this,oe=document.createElement("div");return oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2",oe.style.justifyContent="space-between",this.opacities.forEach(function(de){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=de===te.currentOpacity?te.uiStyleSettings.toolboxAccentColor:"transparent",ne.addEventListener("click",function(){te.setCurrentOpacity(de,ne)}),oe.appendChild(ne);var se=document.createElement("div");se.innerText=100*de+"%",ne.appendChild(se),te.opacityBoxes.push(ne)}),oe},re.prototype.setCurrentOpacity=function(te,oe){var de=this;this.currentOpacity=te,this.opacityBoxes.forEach(function(ne){ne.style.borderColor=ne===oe?de.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},re}(Me),Mt=function(ae){function re(te,oe,de){var ne=ae.call(this,te,oe,de)||this;return ne.setOpacity=ne.setOpacity.bind(ne),ne.fillColor=de.defaultHighlightColor,ne.strokeWidth=0,ne.opacity=de.defaultHighlightOpacity,ne.fillPanel=new Ee("Color",de.defaultColorSet,ne.fillColor),ne.fillPanel.onColorChanged=ne.setFillColor,ne.opacityPanel=new lt("Opacity",de.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}(_e),be='<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>',ge='<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>',Ft=function(ae){function re(te,oe,de){var ne=ae.call(this,te,oe,de)||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=de.defaultStrokeColor,ne.bgColor=de.defaultFillColor,ne.fontFamily=de.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 Ee("Text color",de.defaultColorSet,ne.color,be),ne.colorPanel.onColorChanged=ne.setColor,ne.bgColorPanel=new Ee("Fill color",de.defaultColorSet,ne.bgColor,ge),ne.bgColorPanel.onColorChanged=ne.setBgColor,ne.fontFamilyPanel=new Ce("Font",de.defaultFontFamilies,de.defaultFontFamily),ne.fontFamilyPanel.onFontChanged=ne.setFont,ne.tipGrip=new Xe,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,oe){this.state==="new"&&ae.prototype.pointerDown.call(this,te,oe),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(oe)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):ae.prototype.pointerDown.call(this,te,oe)},re.prototype.pointerUp=function(te){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,ae.prototype.pointerUp.call(this,te);else{var oe=this.state==="creating";ae.prototype.pointerUp.call(this,te),this.setTipPoints(oe),this.positionTip()}},re.prototype.manipulate=function(te){if(this.tipMoving){var oe=this.unrotatePoint(te);this.tipPosition={x:oe.x-this.manipulationStartLeft,y:oe.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 oe=Math.min(this.height/2,15),de=this.height/5;te&&(this.tipPosition={x:oe+de/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))?(de=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:oe,y:0},this.tipBase2Position={x:oe+de,y:0}):(this.tipBase1Position={x:0,y:oe},this.tipBase2Position={x:0,y:oe+de}):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))?(de=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-oe-de,y:0},this.tipBase2Position={x:this.width-oe,y:0}):(this.tipBase1Position={x:this.width,y:oe},this.tipBase2Position={x:this.width,y:oe+de}):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))?(de=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-oe-de,y:this.height},this.tipBase2Position={x:this.width-oe,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-oe-de},this.tipBase2Position={x:this.width,y:this.height-oe}):ne<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(de=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:oe,y:this.height},this.tipBase2Position={x:oe+de,y:this.height}):(this.tipBase1Position={x:0,y:this.height-oe},this.tipBase2Position={x:0,y:this.height-oe-de})},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 oe=te;this.bgColor=oe.bgColor,this.tipPosition=oe.tipPosition,ae.prototype.restoreState.call(this,te),this.createTip(),this.setTipPoints()},re.prototype.scale=function(te,oe){ae.prototype.scale.call(this,te,oe),this.tipPosition={x:this.tipPosition.x*te,y:this.tipPosition.y*oe},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),_t=function(ae){function re(te,oe,de){var ne=ae.call(this,te,oe,de)||this;return ne.fillColor="transparent",ne.strokeColor="transparent",ne.strokeWidth=0,ne.strokeDasharray="",ne.opacity=1,ne.strokeColor=de.defaultColor,ne.strokeWidth=de.defaultStrokeWidth,ne.strokeDasharray=de.defaultStrokeDasharray,ne.fillColor=de.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 Ee("Line color",ve(de.defaultColorSet,["transparent"]),de.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.fillPanel=new Ee("Fill color",ve(de.defaultColorSet,["transparent"]),ne.fillColor,ge),ne.fillPanel.onColorChanged=ne.setFillColor,ne.strokeWidthPanel=new Ze("Line width",de.defaultStrokeWidths,de.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new $e("Line style",de.defaultStrokeDasharrays,de.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne.opacityPanel=new lt("Opacity",de.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,oe){ae.prototype.pointerDown.call(this,te,oe),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 oe=te;this.fillColor=oe.fillColor,this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.opacity=oe.opacity,this.createVisual(),ae.prototype.restoreState.call(this,te),this.setSize()},re.prototype.scale=function(te,oe){ae.prototype.scale.call(this,te,oe),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}(Pe),Tt=function(ae){function re(te,oe,de){return ae.call(this,te,oe,de)||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,oe){ae.prototype.pointerDown.call(this,te,oe),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),oe=this.tip1.transform.baseVal.getItem(0);oe.setRotate(te,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(oe,0);var de=this.tip2.transform.baseVal.getItem(0);de.setRotate(te+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(de,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}(ct),xe=function(ae){function re(te,oe,de){var ne=ae.call(this,te,oe,de)||this;return ne.strokePanel.colors=de.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}(_t),rt=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,oe,de){var ne=ae.call(this,te,oe,de)||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=de.defaultColor,ne.strokeWidth=de.defaultStrokeWidth,ne.strokeDasharray=de.defaultStrokeDasharray,ne.strokePanel=new Ee("Line color",de.defaultColorSet,de.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.strokeWidthPanel=new Ze("Line width",de.defaultStrokeWidths,de.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new $e("Line style",de.defaultStrokeDasharrays,de.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,oe){ae.prototype.pointerDown.call(this,te,oe),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(oe)&&(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,oe){this.curveX=this.curveX*te,this.curveY=this.curveY*oe,ae.prototype.scale.call(this,te,oe)},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 oe=te;this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.curveX=oe.curveX,this.curveY=oe.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),Gt=function(ae){function re(te,oe,de){var ne=ae.call(this,te,oe,de)||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=de.defaultColor,ne.strokeWidth=de.defaultStrokeWidth,ne.strokeDasharray=de.defaultStrokeDasharray,ne.fillColor=de.defaultFillColor,ne.textColor=de.defaultStrokeColor,ne.fontFamily=de.defaultFontFamily,ne.fontSize=de.defaultCaptionFontSize,ne.captionText=de.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 Ee("Line color",ve(de.defaultColorSet,["transparent"]),ne.strokeColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.fillPanel=new Ee("Fill color",ve(de.defaultColorSet,["transparent"]),ne.fillColor,ge),ne.fillPanel.onColorChanged=ne.setFillColor,ne.strokeWidthPanel=new Ze("Line width",de.defaultStrokeWidths,de.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new $e("Line style",de.defaultStrokeDasharrays,de.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne.fontFamilyPanel=new Ce("Font",de.defaultFontFamilies,de.defaultFontFamily),ne.fontFamilyPanel.onFontChanged=ne.setFont,ne.textColorPanel=new Ee("Text color",de.defaultColorSet,ne.textColor,be),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,oe){ae.prototype.pointerDown.call(this,te,oe),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(oe){oe.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(oe){oe.key==="Enter"&&te.finishTextEditing(te.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(oe){oe.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,oe){ae.prototype.dblClick.call(this,te,oe),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 oe=te;this.fillColor=oe.fillColor,this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.textColor=oe.textColor,this.fontFamily=oe.fontFamily,this.captionText=oe.captionText,this.fontSize=oe.fontSize,this.createVisual(),ae.prototype.restoreState.call(this,te),this.setSize()},re.prototype.scale=function(te,oe){ae.prototype.scale.call(this,te,oe),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}(Pe),at=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}(),st=function(ae){function re(te,oe,de){var ne=ae.call(this,te,!1)||this;return ne.dataUrl=oe,ne.state=de,ne}return he(re,ae),re}(at),nt=function(ae){function re(te,oe,de){de===void 0&&(de=!1);var ne=ae.call(this,te,de)||this;return ne.marker=oe,ne}return he(re,ae),re}(at),rn=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 oe=this[re].indexOf(te);oe>-1&&this[re].splice(oe,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 ot,this._isOpen=!1,this.undoRedoManager=new rt,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 rn,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=ae.instanceCounter++,this.styles=new le(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[gt,Te,mt,et,xe,_t,Mt,Ft,Tt,_e,ct,qe,Gt]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[gt,Te,mt,et,_t,Mt,Ft]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"BASIC_MARKER_TYPES",{get:function(){return[gt,Te,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(oe){if(typeof oe=="string"){var de=te.ALL_MARKER_TYPES.find(function(ne){return ne.typeName===oe});de!==void 0&&te._availableMarkerTypes.push(de)}else te._availableMarkerTypes.push(oe)})},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(),ye.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},ae.prototype.show=function(){var re=this;this.styles.styleSheetRoot===void 0&&pe.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=pe.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(te){return te(new at(re))})},ae.prototype.render=function(){return ce(this,void 0,void 0,function(){var re;return je(this,function(te){switch(te.label){case 0:return this.setCurrentMarker(),(re=new Ae).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 oe=!1;re||this.eventListeners.beforeclose.forEach(function(de){var ne=new at(te,!0);de(ne),ne.defaultPrevented&&(oe=!0)}),oe||(this.coverDiv&&this.closeUI(),this.targetObserver&&(this.targetObserver.unobserve(this.target),this.targetObserver.unobserve(this.editorCanvas)),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(de){return de(new at(te))}),this.detachEvents(),this._isOpen=!1)}},ae.prototype.addMarkersToToolbar=function(){for(var re,te=[],oe=0;oe<arguments.length;oe++)te[oe]=arguments[oe];(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,oe=te<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/re;this.resize(te,oe)},ae.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},ae.prototype.resize=function(re,te){this._isResizing=!0;var oe=re/this.imageWidth,de=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(oe,de),this._isResizing=!1},ae.prototype.scaleMarkers=function(re,te){var oe,de=this;this._currentMarker&&this._currentMarker instanceof et?this._currentMarker.scale(re,te):(oe=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(ne){ne!==de._currentMarker&&ne.scale(re,te)}),oe!==void 0&&this.setCurrentMarker(oe)},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=[],oe=0;oe<arguments.length;oe++)te[oe]=arguments[oe];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 He(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(de){var ne=new nt(re,re._currentMarker,!0);de(ne),ne.defaultPrevented&&(te=!0)}),!te){var oe=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(de){return de(new nt(re,oe))})}}},ae.prototype.clear=function(){var re=this,te=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(se){var Oe=new nt(re,void 0,!0);se(Oe),Oe.defaultPrevented&&(te=!0)}),!te)){this.setCurrentMarker();for(var oe=function(se){var Oe=de.markers[se];de.setCurrentMarker(de.markers[se]),de._currentMarker.dispose(),de.markerImage.removeChild(de._currentMarker.container),de.markers.splice(de.markers.indexOf(de._currentMarker),1),de.eventListeners.markerdelete.forEach(function(bt){return bt(new nt(re,Oe))})},de=this,ne=this.markers.length-1;ne>=0;ne--)oe(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(),oe=this.undoRedoManager.getLastUndoStep();if(!oe||oe.width===te.width&&oe.height===te.height){var de=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(te),de<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(ne){return ne(new at(re))})}else this.undoRedoManager.replaceLastUndoStep(te),this.eventListeners.statechange.forEach(function(ne){return ne(new at(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(oe){return oe(new at(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(oe){return oe(new at(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 ce(this,void 0,void 0,function(){var re,te,oe=this;return je(this,function(de){switch(de.label){case 0:return[4,this.render()];case 1:return re=de.sent(),te=this.getState(),this.eventListeners.render.forEach(function(ne){return ne(new st(oe,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(oe){return te.markers.push(oe.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(oe){var de=te._availableMarkerTypes.find(function(se){return se.typeName===oe.typeName});if(de!==void 0){var ne=te.addNewMarker(de);ne.restoreState(oe),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(oe){return oe(new at(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,oe=this;(te=typeof re=="string"?this._availableMarkerTypes.find(function(de){return de.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(de){return de(new nt(oe,oe._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 Te&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(Te):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(oe){return oe(new nt(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(oe){return oe(new nt(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(oe){return oe(new nt(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(oe){return oe(new nt(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(oe){return oe.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(oe){return oe.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 oe=this.markerImage.getBoundingClientRect();return{x:(re-oe.left)/this.zoomLevel,y:(te-oe.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){ye.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 at(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 at(re))}))},ae.instanceCounter=0,ae}()},6551:function(bn,zt,z){"use strict";z.d(zt,{ZP:function(){return ye}});var y=z(42978),he=z(59301),ce=z(47273),je=0,ve=(0,ce.Z)();function me(){var Ae;return ve?(Ae=je,je+=1):Ae="TEST_OR_SSR",Ae}function ye(Ae){var pe=he.useState(),le=(0,y.Z)(pe,2),Re=le[0],Ie=le[1];return he.useEffect(function(){Ie("rc_select_".concat(me()))},[]),Ae||Re}},37463:function(bn,zt,z){"use strict";z.d(zt,{Ac:function(){return Lt},Xo:function(){return $t},Wx:function(){return yt},ZP:function(){return Kn},lk:function(){return ft}});var y=z(54476),he=z(94480),ce=z(20068),je=z(33885),ve=z(42978),me=z(75931),ye=z(76190),Ae=z(18929),pe=z(48736),le=z(59301),Re=z(92310),Ie=z.n(Re),tt=z(34280),He=z(49658),Me=z(8654),Ee=function(Rt){var Je=Rt.className,Bt=Rt.customizeIcon,Ue=Rt.customizeIconProps,Nt=Rt.children,Jt=Rt.onMouseDown,Ln=Rt.onClick,zn=typeof Bt=="function"?Bt(Ue):Bt;return le.createElement("span",{className:Je,onMouseDown:function(Ct){Ct.preventDefault(),Jt==null||Jt(Ct)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Ln,"aria-hidden":!0},zn!==void 0?zn:le.createElement("span",{className:Ie()(Je.split(/\s+/).map(function(pt){return"".concat(pt,"-icon")}))},Nt))},we=Ee,Ne=function(Rt,Je,Bt,Ue,Nt){var Jt=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Ln=arguments.length>6?arguments[6]:void 0,zn=arguments.length>7?arguments[7]:void 0,pt=le.useMemo(function(){if((0,ye.Z)(Ue)==="object")return Ue.clearIcon;if(Nt)return Nt},[Ue,Nt]),Ct=le.useMemo(function(){return!!(!Jt&&Ue&&(Bt.length||Ln)&&!(zn==="combobox"&&Ln===""))},[Ue,Jt,Bt.length,Ln,zn]);return{allowClear:Ct,clearIcon:le.createElement(we,{className:"".concat(Rt,"-clear"),onMouseDown:Je,customizeIcon:pt},"\xD7")}},Xe=le.createContext(null);function ft(){return le.useContext(Xe)}function Pe(){var Et=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Rt=le.useState(!1),Je=(0,ve.Z)(Rt,2),Bt=Je[0],Ue=Je[1],Nt=le.useRef(null),Jt=function(){window.clearTimeout(Nt.current)};le.useEffect(function(){return Jt},[]);var Ln=function(pt,Ct){Jt(),Nt.current=window.setTimeout(function(){Ue(pt),Ct&&Ct()},Et)};return[Bt,Ln,Jt]}function Fe(){var Et=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Rt=le.useRef(null),Je=le.useRef(null);le.useEffect(function(){return function(){window.clearTimeout(Je.current)}},[]);function Bt(Ue){(Ue||Rt.current===null)&&(Rt.current=Ue),window.clearTimeout(Je.current),Je.current=window.setTimeout(function(){Rt.current=null},Et)}return[function(){return Rt.current},Bt]}function Ze(Et,Rt,Je,Bt){var Ue=le.useRef(null);Ue.current={open:Rt,triggerOpen:Je,customizedTrigger:Bt},le.useEffect(function(){function Nt(Jt){var Ln;if(!((Ln=Ue.current)!==null&&Ln!==void 0&&Ln.customizedTrigger)){var zn=Jt.target;zn.shadowRoot&&Jt.composed&&(zn=Jt.composedPath()[0]||zn),Ue.current.open&&Et().filter(function(pt){return pt}).every(function(pt){return!pt.contains(zn)&&pt!==zn})&&Ue.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Nt),function(){return window.removeEventListener("mousedown",Nt)}},[])}var $e=z(10228);function gt(Et){return Et&&![$e.Z.ESC,$e.Z.SHIFT,$e.Z.BACKSPACE,$e.Z.TAB,$e.Z.WIN_KEY,$e.Z.ALT,$e.Z.META,$e.Z.WIN_KEY_RIGHT,$e.Z.CTRL,$e.Z.SEMICOLON,$e.Z.EQUALS,$e.Z.CAPS_LOCK,$e.Z.CONTEXT_MENU,$e.Z.F1,$e.Z.F2,$e.Z.F3,$e.Z.F4,$e.Z.F5,$e.Z.F6,$e.Z.F7,$e.Z.F8,$e.Z.F9,$e.Z.F10,$e.Z.F11,$e.Z.F12].includes(Et)}var ot=z(26112),Qe=z(83836);function ct(Et,Rt,Je){var Bt=(0,je.Z)((0,je.Z)({},Et),Je?Rt:{});return Object.keys(Rt).forEach(function(Ue){var Nt=Rt[Ue];typeof Nt=="function"&&(Bt[Ue]=function(){for(var Jt,Ln=arguments.length,zn=new Array(Ln),pt=0;pt<Ln;pt++)zn[pt]=arguments[pt];return Nt.apply(void 0,zn),(Jt=Et[Ue])===null||Jt===void 0?void 0:Jt.call.apply(Jt,[Et].concat(zn))})}),Bt}var Ce=ct,et=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],Te=function(Rt,Je){var Bt=Rt.prefixCls,Ue=Rt.id,Nt=Rt.inputElement,Jt=Rt.autoFocus,Ln=Rt.autoComplete,zn=Rt.editable,pt=Rt.activeDescendantId,Ct=Rt.value,St=Rt.open,It=Rt.attrs,fn=(0,me.Z)(Rt,et),wn=Nt||le.createElement("input",null),Pn=wn,In=Pn.ref,qn=Pn.props;return(0,pe.Kp)(!("maxLength"in wn.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),wn=le.cloneElement(wn,(0,je.Z)((0,je.Z)((0,je.Z)({type:"search"},Ce(fn,qn,!0)),{},{id:Ue,ref:(0,Me.sQ)(Je,In),autoComplete:Ln||"off",autoFocus:Jt,className:Ie()("".concat(Bt,"-selection-search-input"),qn==null?void 0:qn.className),role:"combobox","aria-expanded":St||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Ue,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Ue,"_list"),"aria-activedescendant":St?pt:void 0},It),{},{value:zn?Ct:"",readOnly:!zn,unselectable:zn?null:"on",style:(0,je.Z)((0,je.Z)({},qn.style),{},{opacity:zn?null:0})})),wn},ue=le.forwardRef(Te),mt=ue;function _e(Et){return Array.isArray(Et)?Et:Et!==void 0?[Et]:[]}var lt=typeof window!="undefined"&&window.document&&window.document.documentElement,Mt=lt;function be(Et){return Et!=null}function ge(Et){return!Et&&Et!==0}function Ft(Et){return["string","number"].includes((0,ye.Z)(Et))}function _t(Et){var Rt=void 0;return Et&&(Ft(Et.title)?Rt=Et.title.toString():Ft(Et.label)&&(Rt=Et.label.toString())),Rt}function Tt(Et,Rt){Mt?le.useLayoutEffect(Et,Rt):le.useEffect(Et,Rt)}function xe(Et){var Rt;return(Rt=Et.key)!==null&&Rt!==void 0?Rt:Et.value}var rt=function(Rt){Rt.preventDefault(),Rt.stopPropagation()},qe=function(Rt){var Je=Rt.id,Bt=Rt.prefixCls,Ue=Rt.values,Nt=Rt.open,Jt=Rt.searchValue,Ln=Rt.autoClearSearchValue,zn=Rt.inputRef,pt=Rt.placeholder,Ct=Rt.disabled,St=Rt.mode,It=Rt.showSearch,fn=Rt.autoFocus,wn=Rt.autoComplete,Pn=Rt.activeDescendantId,In=Rt.tabIndex,qn=Rt.removeIcon,rr=Rt.maxTagCount,ir=Rt.maxTagTextLength,sr=Rt.maxTagPlaceholder,Qn=sr===void 0?function(Yn){return"+ ".concat(Yn.length," ...")}:sr,ar=Rt.tagRender,fr=Rt.onToggleOpen,Sr=Rt.onRemove,br=Rt.onInputChange,jr=Rt.onInputPaste,$r=Rt.onInputKeyDown,hr=Rt.onInputMouseDown,Mr=Rt.onInputCompositionStart,eo=Rt.onInputCompositionEnd,kr=Rt.onInputBlur,Fr=le.useRef(null),or=(0,le.useState)(0),Ur=(0,ve.Z)(or,2),Rr=Ur[0],Br=Ur[1],Cr=(0,le.useState)(!1),so=(0,ve.Z)(Cr,2),Ho=so[0],ti=so[1],xo="".concat(Bt,"-selection"),No=Nt||St==="multiple"&&Ln===!1||St==="tags"?Jt:"",To=St==="tags"||St==="multiple"&&Ln===!1||It&&(Nt||Ho);Tt(function(){Br(Fr.current.scrollWidth)},[No]);var Xo=function(kn,mr,wr,Vn,Jn){return le.createElement("span",{title:_t(kn),className:Ie()("".concat(xo,"-item"),(0,ce.Z)({},"".concat(xo,"-item-disabled"),wr))},le.createElement("span",{className:"".concat(xo,"-item-content")},mr),Vn&&le.createElement(we,{className:"".concat(xo,"-item-remove"),onMouseDown:rt,onClick:Jn,customizeIcon:qn},"\xD7"))},ko=function(kn,mr,wr,Vn,Jn,ur){var pr=function(Yr){rt(Yr),fr(!Nt)};return le.createElement("span",{onMouseDown:pr},ar({label:mr,value:kn,disabled:wr,closable:Vn,onClose:Jn,isMaxTag:!!ur}))},go=function(kn){var mr=kn.disabled,wr=kn.label,Vn=kn.value,Jn=!Ct&&!mr,ur=wr;if(typeof ir=="number"&&(typeof wr=="string"||typeof wr=="number")){var pr=String(ur);pr.length>ir&&(ur="".concat(pr.slice(0,ir),"..."))}var Zr=function(to){to&&to.stopPropagation(),Sr(kn)};return typeof ar=="function"?ko(Vn,ur,mr,Jn,Zr):Xo(kn,ur,mr,Jn,Zr)},dr=function(kn){if(!Ue.length)return null;var mr=typeof Qn=="function"?Qn(kn):Qn;return typeof ar=="function"?ko(void 0,mr,!1,!1,void 0,!0):Xo({title:mr},mr,!1)},Mn=le.createElement("div",{className:"".concat(xo,"-search"),style:{width:Rr},onFocus:function(){ti(!0)},onBlur:function(){ti(!1)}},le.createElement(mt,{ref:zn,open:Nt,prefixCls:Bt,id:Je,inputElement:null,disabled:Ct,autoFocus:fn,autoComplete:wn,editable:To,activeDescendantId:Pn,value:No,onKeyDown:$r,onMouseDown:hr,onChange:br,onPaste:jr,onCompositionStart:Mr,onCompositionEnd:eo,onBlur:kr,tabIndex:In,attrs:(0,ot.Z)(Rt,!0)}),le.createElement("span",{ref:Fr,className:"".concat(xo,"-search-mirror"),"aria-hidden":!0},No,"\xA0")),Un=le.createElement(Qe.Z,{prefixCls:"".concat(xo,"-overflow"),data:Ue,renderItem:go,renderRest:dr,suffix:Mn,itemKey:xe,maxCount:rr});return le.createElement("span",{className:"".concat(xo,"-wrap")},Un,!Ue.length&&!No&&le.createElement("span",{className:"".concat(xo,"-placeholder")},pt))},Gt=qe,at=function(Rt){var Je=Rt.inputElement,Bt=Rt.prefixCls,Ue=Rt.id,Nt=Rt.inputRef,Jt=Rt.disabled,Ln=Rt.autoFocus,zn=Rt.autoComplete,pt=Rt.activeDescendantId,Ct=Rt.mode,St=Rt.open,It=Rt.values,fn=Rt.placeholder,wn=Rt.tabIndex,Pn=Rt.showSearch,In=Rt.searchValue,qn=Rt.activeValue,rr=Rt.maxLength,ir=Rt.onInputKeyDown,sr=Rt.onInputMouseDown,Qn=Rt.onInputChange,ar=Rt.onInputPaste,fr=Rt.onInputCompositionStart,Sr=Rt.onInputCompositionEnd,br=Rt.onInputBlur,jr=Rt.title,$r=le.useState(!1),hr=(0,ve.Z)($r,2),Mr=hr[0],eo=hr[1],kr=Ct==="combobox",Fr=kr||Pn,or=It[0],Ur=In||"";kr&&qn&&!Mr&&(Ur=qn),le.useEffect(function(){kr&&eo(!1)},[kr,qn]);var Rr=Ct!=="combobox"&&!St&&!Pn?!1:!!Ur,Br=jr===void 0?_t(or):jr,Cr=le.useMemo(function(){return or?null:le.createElement("span",{className:"".concat(Bt,"-selection-placeholder"),style:Rr?{visibility:"hidden"}:void 0},fn)},[or,Rr,fn,Bt]);return le.createElement("span",{className:"".concat(Bt,"-selection-wrap")},le.createElement("span",{className:"".concat(Bt,"-selection-search")},le.createElement(mt,{ref:Nt,prefixCls:Bt,id:Ue,open:St,inputElement:Je,disabled:Jt,autoFocus:Ln,autoComplete:zn,editable:Fr,activeDescendantId:pt,value:Ur,onKeyDown:ir,onMouseDown:sr,onChange:function(Ho){eo(!0),Qn(Ho)},onPaste:ar,onCompositionStart:fr,onCompositionEnd:Sr,onBlur:br,tabIndex:wn,attrs:(0,ot.Z)(Rt,!0),maxLength:kr?rr:void 0})),!kr&&or?le.createElement("span",{className:"".concat(Bt,"-selection-item"),title:Br,style:Rr?{visibility:"hidden"}:void 0},or.label):null,Cr)},st=at,nt=function(Rt,Je){var Bt=(0,le.useRef)(null),Ue=(0,le.useRef)(!1),Nt=Rt.prefixCls,Jt=Rt.open,Ln=Rt.mode,zn=Rt.showSearch,pt=Rt.tokenWithEnter,Ct=Rt.disabled,St=Rt.prefix,It=Rt.autoClearSearchValue,fn=Rt.onSearch,wn=Rt.onSearchSubmit,Pn=Rt.onToggleOpen,In=Rt.onInputKeyDown,qn=Rt.onInputBlur,rr=Rt.domRef;le.useImperativeHandle(Je,function(){return{focus:function(Br){Bt.current.focus(Br)},blur:function(){Bt.current.blur()}}});var ir=Fe(0),sr=(0,ve.Z)(ir,2),Qn=sr[0],ar=sr[1],fr=function(Br){var Cr=Br.which,so=Bt.current instanceof HTMLTextAreaElement;!so&&Jt&&(Cr===$e.Z.UP||Cr===$e.Z.DOWN)&&Br.preventDefault(),In&&In(Br),Cr===$e.Z.ENTER&&Ln==="tags"&&!Ue.current&&!Jt&&(wn==null||wn(Br.target.value)),!(so&&!Jt&&~[$e.Z.UP,$e.Z.DOWN,$e.Z.LEFT,$e.Z.RIGHT].indexOf(Cr))&&gt(Cr)&&Pn(!0)},Sr=function(){ar(!0)},br=(0,le.useRef)(null),jr=function(Br){fn(Br,!0,Ue.current)!==!1&&Pn(!0)},$r=function(){Ue.current=!0},hr=function(Br){Ue.current=!1,Ln!=="combobox"&&jr(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,jr(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!==Bt.current){var so=document.body.style.msTouchAction!==void 0;so?setTimeout(function(){Bt.current.focus()}):Bt.current.focus()}},Fr=function(Br){var Cr=Qn();Br.target!==Bt.current&&!Cr&&!(Ln==="combobox"&&Ct)&&Br.preventDefault(),(Ln!=="combobox"&&(!zn||!Cr)||!Jt)&&(Jt&&It!==!1&&fn("",!0,!1),Pn())},or={inputRef:Bt,onInputKeyDown:fr,onInputMouseDown:Sr,onInputChange:Mr,onInputPaste:eo,onInputCompositionStart:$r,onInputCompositionEnd:hr,onInputBlur:qn},Ur=Ln==="multiple"||Ln==="tags"?le.createElement(Gt,(0,y.Z)({},Rt,or)):le.createElement(st,(0,y.Z)({},Rt,or));return le.createElement("div",{ref:rr,className:"".concat(Nt,"-selector"),onClick:kr,onMouseDown:Fr},St&&le.createElement("div",{className:"".concat(Nt,"-prefix")},St),Ur)},rn=le.forwardRef(nt),kt=rn,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(Rt){var Je=Rt===!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"}}},oe=function(Rt,Je){var Bt=Rt.prefixCls,Ue=Rt.disabled,Nt=Rt.visible,Jt=Rt.children,Ln=Rt.popupElement,zn=Rt.animation,pt=Rt.transitionName,Ct=Rt.dropdownStyle,St=Rt.dropdownClassName,It=Rt.direction,fn=It===void 0?"ltr":It,wn=Rt.placement,Pn=Rt.builtinPlacements,In=Rt.dropdownMatchSelectWidth,qn=Rt.dropdownRender,rr=Rt.dropdownAlign,ir=Rt.getPopupContainer,sr=Rt.empty,Qn=Rt.getTriggerDOMNode,ar=Rt.onPopupVisibleChange,fr=Rt.onPopupMouseEnter,Sr=(0,me.Z)(Rt,re),br="".concat(Bt,"-dropdown"),jr=Ln;qn&&(jr=qn(Ln));var $r=le.useMemo(function(){return Pn||te(In)},[Pn,In]),hr=zn?"".concat(br,"-").concat(zn):pt,Mr=typeof In=="number",eo=le.useMemo(function(){return Mr?null:In===!1?"minWidth":"width"},[In,Mr]),kr=Ct;Mr&&(kr=(0,je.Z)((0,je.Z)({},kr),{},{width:In}));var Fr=le.useRef(null);return le.useImperativeHandle(Je,function(){return{getPopupElement:function(){var Ur;return(Ur=Fr.current)===null||Ur===void 0?void 0:Ur.popupElement}}}),le.createElement(ae.Z,(0,y.Z)({},Sr,{showAction:ar?["click"]:[],hideAction:ar?["click"]:[],popupPlacement:wn||(fn==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:$r,prefixCls:br,popupTransitionName:hr,popup:le.createElement("div",{onMouseEnter:fr},jr),ref:Fr,stretch:eo,popupAlign:rr,popupVisible:Nt,getPopupContainer:ir,popupClassName:Ie()(St,(0,ce.Z)({},"".concat(br,"-empty"),sr)),popupStyle:kr,getTriggerDOMNode:Qn,onPopupVisibleChange:ar}),Jt)},de=le.forwardRef(oe),ne=de,se=z(66712);function Oe(Et,Rt){var Je=Et.key,Bt;return"value"in Et&&(Bt=Et.value),Je!=null?Je:Bt!==void 0?Bt:"rc-index-key-".concat(Rt)}function bt(Et){return typeof Et!="undefined"&&!Number.isNaN(Et)}function Ge(Et,Rt){var Je=Et||{},Bt=Je.label,Ue=Je.value,Nt=Je.options,Jt=Je.groupLabel,Ln=Bt||(Rt?"children":"label");return{label:Ln,value:Ue||"value",options:Nt||"options",groupLabel:Jt||Ln}}function We(Et){var Rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Je=Rt.fieldNames,Bt=Rt.childrenAsData,Ue=[],Nt=Ge(Je,!1),Jt=Nt.label,Ln=Nt.value,zn=Nt.options,pt=Nt.groupLabel;function Ct(St,It){Array.isArray(St)&&St.forEach(function(fn){if(It||!(zn in fn)){var wn=fn[Ln];Ue.push({key:Oe(fn,Ue.length),groupOption:It,data:fn,label:fn[Jt],value:wn})}else{var Pn=fn[pt];Pn===void 0&&Bt&&(Pn=fn.label),Ue.push({key:Oe(fn,Ue.length),group:!0,data:fn,label:Pn}),Ct(fn[zn],!0)}})}return Ct(Et,!1),Ue}function it(Et){var Rt=(0,je.Z)({},Et);return"props"in Rt||Object.defineProperty(Rt,"props",{get:function(){return(0,pe.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Rt}}),Rt}var ht=function(Rt,Je,Bt){if(!Je||!Je.length)return null;var Ue=!1,Nt=function Ln(zn,pt){var Ct=(0,se.Z)(pt),St=Ct[0],It=Ct.slice(1);if(!St)return[zn];var fn=zn.split(St);return Ue=Ue||fn.length>1,fn.reduce(function(wn,Pn){return[].concat((0,he.Z)(wn),(0,he.Z)(Ln(Pn,It)))},[]).filter(Boolean)},Jt=Nt(Rt,Je);return Ue?typeof Bt!="undefined"?Jt.slice(0,Bt):Jt:null},Pt=le.createContext(null),Le=Pt;function Ve(Et){var Rt=Et.visible,Je=Et.values;if(!Rt)return null;var Bt=50;return le.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(Je.slice(0,Bt).map(function(Ue){var Nt=Ue.label,Jt=Ue.value;return["number","string"].includes((0,ye.Z)(Nt))?Nt:Jt}).join(", ")),Je.length>Bt?", ...":null)}var Ot=["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"],Yt=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],un=function(Rt){return Rt==="tags"||Rt==="multiple"},tn=le.forwardRef(function(Et,Rt){var Je,Bt=Et.id,Ue=Et.prefixCls,Nt=Et.className,Jt=Et.showSearch,Ln=Et.tagRender,zn=Et.direction,pt=Et.omitDomProps,Ct=Et.displayValues,St=Et.onDisplayValuesChange,It=Et.emptyOptions,fn=Et.notFoundContent,wn=fn===void 0?"Not Found":fn,Pn=Et.onClear,In=Et.mode,qn=Et.disabled,rr=Et.loading,ir=Et.getInputElement,sr=Et.getRawInputElement,Qn=Et.open,ar=Et.defaultOpen,fr=Et.onDropdownVisibleChange,Sr=Et.activeValue,br=Et.onActiveValueChange,jr=Et.activeDescendantId,$r=Et.searchValue,hr=Et.autoClearSearchValue,Mr=Et.onSearch,eo=Et.onSearchSplit,kr=Et.tokenSeparators,Fr=Et.allowClear,or=Et.prefix,Ur=Et.suffixIcon,Rr=Et.clearIcon,Br=Et.OptionList,Cr=Et.animation,so=Et.transitionName,Ho=Et.dropdownStyle,ti=Et.dropdownClassName,xo=Et.dropdownMatchSelectWidth,No=Et.dropdownRender,To=Et.dropdownAlign,Xo=Et.placement,ko=Et.builtinPlacements,go=Et.getPopupContainer,dr=Et.showAction,Mn=dr===void 0?[]:dr,Un=Et.onFocus,Yn=Et.onBlur,kn=Et.onKeyUp,mr=Et.onKeyDown,wr=Et.onMouseDown,Vn=(0,me.Z)(Et,Ot),Jn=un(In),ur=(Jt!==void 0?Jt:Jn)||In==="combobox",pr=(0,je.Z)({},Vn);Yt.forEach(function(yi){delete pr[yi]}),pt==null||pt.forEach(function(yi){delete pr[yi]});var Zr=le.useState(!1),Yr=(0,ve.Z)(Zr,2),to=Yr[0],Fo=Yr[1];le.useEffect(function(){Fo((0,He.Z)())},[]);var Mo=le.useRef(null),Yo=le.useRef(null),Jo=le.useRef(null),ni=le.useRef(null),ri=le.useRef(null),Mi=le.useRef(!1),_i=Pe(),Xi=(0,ve.Z)(_i,3),Yi=Xi[0],ta=Xi[1],Lo=Xi[2];le.useImperativeHandle(Rt,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(jt){var Qt;return(Qt=ri.current)===null||Qt===void 0?void 0:Qt.scrollTo(jt)},nativeElement:Mo.current||Yo.current}});var co=le.useMemo(function(){var yi;if(In!=="combobox")return $r;var ci=(yi=Ct[0])===null||yi===void 0?void 0:yi.value;return typeof ci=="string"||typeof ci=="number"?String(ci):""},[$r,In,Ct]),wi=In==="combobox"&&typeof ir=="function"&&ir()||null,wo=typeof sr=="function"&&sr(),aa=(0,Me.x1)(Yo,wo==null||(Je=wo.props)===null||Je===void 0?void 0:Je.ref),Qa=le.useState(!1),Ha=(0,ve.Z)(Qa,2),da=Ha[0],fa=Ha[1];(0,tt.Z)(function(){fa(!0)},[]);var Ti=(0,Ae.Z)(!1,{defaultValue:ar,value:Qn}),ka=(0,ve.Z)(Ti,2),ol=ka[0],Ja=ka[1],la=da?ol:!1,Pl=!wn&&It;(qn||Pl&&la&&In==="combobox")&&(la=!1);var El=Pl?!1:la,$o=le.useCallback(function(yi){var ci=yi!==void 0?yi:!la;qn||(Ja(ci),la!==ci&&(fr==null||fr(ci)))},[qn,la,Ja,fr]),ai=le.useMemo(function(){return(kr||[]).some(function(yi){return[`
`,`\r
`].includes(yi)})},[kr]),Ro=le.useContext(Le)||{},Bo=Ro.maxCount,qo=Ro.rawValues,Bi=function(ci,vt,jt){if(!(Jn&&bt(Bo)&&(qo==null?void 0:qo.size)>=Bo)){var Qt=!0,gn=ci;br==null||br(null);var yo=ht(ci,kr,bt(Bo)?Bo-qo.size:void 0),Vr=jt?null:yo;return In!=="combobox"&&Vr&&(gn="",eo==null||eo(Vr),$o(!1),Qt=!1),Mr&&co!==gn&&Mr(gn,{source:vt?"typing":"effect"}),Qt}},Wa=function(ci){!ci||!ci.trim()||Mr(ci,{source:"submit"})};le.useEffect(function(){!la&&!Jn&&In!=="combobox"&&Bi("",!1,!1)},[la]),le.useEffect(function(){ol&&qn&&Ja(!1),qn&&!Mi.current&&ta(!1)},[qn]);var zi=Fe(),Qi=(0,ve.Z)(zi,2),sa=Qi[0],cl=Qi[1],xl=le.useRef(!1),Ka=function(ci){var vt=sa(),jt=ci.key,Qt=jt==="Enter";if(Qt&&(In!=="combobox"&&ci.preventDefault(),la||$o(!0)),cl(!!co),jt==="Backspace"&&!vt&&Jn&&!co&&Ct.length){for(var gn=(0,he.Z)(Ct),yo=null,Vr=gn.length-1;Vr>=0;Vr-=1){var fo=gn[Vr];if(!fo.disabled){gn.splice(Vr,1),yo=fo;break}}yo&&St(gn,{type:"remove",values:[yo]})}for(var Pr=arguments.length,Kr=new Array(Pr>1?Pr-1:0),Zo=1;Zo<Pr;Zo++)Kr[Zo-1]=arguments[Zo];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 vt=arguments.length,jt=new Array(vt>1?vt-1:0),Qt=1;Qt<vt;Qt++)jt[Qt-1]=arguments[Qt];if(la){var gn;(gn=ri.current)===null||gn===void 0||gn.onKeyUp.apply(gn,[ci].concat(jt))}ci.key==="Enter"&&(xl.current=!1),kn==null||kn.apply(void 0,[ci].concat(jt))},kl=function(ci){var vt=Ct.filter(function(jt){return jt!==ci});St(vt,{type:"remove",values:[ci]})},dl=function(){xl.current=!1},zl=le.useRef(!1),Fs=function(){ta(!0),qn||(Un&&!zl.current&&Un.apply(void 0,arguments),Mn.includes("focus")&&$o(!0)),zl.current=!0},Gl=function(){Mi.current=!0,ta(!1,function(){zl.current=!1,Mi.current=!1,$o(!1)}),!qn&&(co&&(In==="tags"?Mr(co,{source:"submit"}):In==="multiple"&&Mr("",{source:"blur"})),Yn&&Yn.apply(void 0,arguments))},Al=[];le.useEffect(function(){return function(){Al.forEach(function(yi){return clearTimeout(yi)}),Al.splice(0,Al.length)}},[]);var Ll=function(ci){var vt,jt=ci.target,Qt=(vt=Jo.current)===null||vt===void 0?void 0:vt.getPopupElement();if(Qt&&Qt.contains(jt)){var gn=setTimeout(function(){var Pr=Al.indexOf(gn);if(Pr!==-1&&Al.splice(Pr,1),Lo(),!to&&!Qt.contains(document.activeElement)){var Kr;(Kr=ni.current)===null||Kr===void 0||Kr.focus()}});Al.push(gn)}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=le.useState({}),is=(0,ve.Z)(fl,2),Xl=is[1];function bs(){Xl({})}var Ol;wo&&(Ol=function(ci){$o(ci)}),Ze(function(){var yi;return[Mo.current,(yi=Jo.current)===null||yi===void 0?void 0:yi.getPopupElement()]},El,$o,!!wo);var Ls=le.useMemo(function(){return(0,je.Z)((0,je.Z)({},Et),{},{notFoundContent:wn,open:la,triggerOpen:El,id:Bt,showSearch:ur,multiple:Jn,toggleOpen:$o})},[Et,wn,El,la,Bt,ur,Jn,$o]),as=!!Ur||rr,wl;as&&(wl=le.createElement(we,{className:Ie()("".concat(Ue,"-arrow"),(0,ce.Z)({},"".concat(Ue,"-arrow-loading"),rr)),customizeIcon:Ur,customizeIconProps:{loading:rr,searchValue:co,open:la,focused:Yi,showSearch:ur}}));var Hl=function(){var ci;Pn==null||Pn(),(ci=ni.current)===null||ci===void 0||ci.focus(),St([],{type:"clear",values:Ct}),Bi("",!1,!1)},Wl=Ne(Ue,Hl,Ct,Fr,Rr,qn,co,In),ls=Wl.allowClear,Kl=Wl.clearIcon,Yl=le.createElement(Br,{ref:ri}),qa=Ie()(Ue,Nt,(0,ce.Z)((0,ce.Z)((0,ce.Z)((0,ce.Z)((0,ce.Z)((0,ce.Z)((0,ce.Z)((0,ce.Z)((0,ce.Z)((0,ce.Z)({},"".concat(Ue,"-focused"),Yi),"".concat(Ue,"-multiple"),Jn),"".concat(Ue,"-single"),!Jn),"".concat(Ue,"-allow-clear"),Fr),"".concat(Ue,"-show-arrow"),as),"".concat(Ue,"-disabled"),qn),"".concat(Ue,"-loading"),rr),"".concat(Ue,"-open"),la),"".concat(Ue,"-customize-input"),wi),"".concat(Ue,"-show-search"),ur)),el=le.createElement(ne,{ref:Jo,disabled:qn,prefixCls:Ue,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:Ol,onPopupMouseEnter:bs},wo?le.cloneElement(wo,{ref:aa}):le.createElement(kt,(0,y.Z)({},Et,{domRef:Yo,prefixCls:Ue,inputElement:wi,ref:ni,id:Bt,prefix:or,showSearch:ur,autoClearSearchValue:hr,mode:In,activeDescendantId:jr,tagRender:Ln,values:Ct,open:la,onToggleOpen:$o,activeValue:Sr,searchValue:co,onSearch:Bi,onSearchSubmit:Wa,onRemove:kl,tokenWithEnter:ai,onInputBlur:dl}))),ji;return wo?ji=el:ji=le.createElement("div",(0,y.Z)({className:qa},pr,{ref:Mo,onMouseDown:Ll,onKeyDown:Ka,onKeyUp:Sl,onFocus:Fs,onBlur:Gl}),le.createElement(Ve,{visible:Yi&&!la,values:Ct}),el,wl,ls&&Kl),le.createElement(Xe.Provider,{value:Ls},ji)}),Lt=tn,ln=function(){return null};ln.isSelectOptGroup=!0;var $t=ln,ze=function(){return null};ze.isSelectOption=!0;var yt=ze,Ht=z(80547),en=z(2738),Ke=z(48911);function xt(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Zt=["disabled","title","children","style","className"];function dt(Et){return typeof Et=="string"||typeof Et=="number"}var At=function(Rt,Je){var Bt=ft(),Ue=Bt.prefixCls,Nt=Bt.id,Jt=Bt.open,Ln=Bt.multiple,zn=Bt.mode,pt=Bt.searchValue,Ct=Bt.toggleOpen,St=Bt.notFoundContent,It=Bt.onPopupScroll,fn=le.useContext(Le),wn=fn.maxCount,Pn=fn.flattenOptions,In=fn.onActiveValue,qn=fn.defaultActiveFirstOption,rr=fn.onSelect,ir=fn.menuItemSelectedIcon,sr=fn.rawValues,Qn=fn.fieldNames,ar=fn.virtual,fr=fn.direction,Sr=fn.listHeight,br=fn.listItemHeight,jr=fn.optionRender,$r="".concat(Ue,"-item"),hr=(0,Ht.Z)(function(){return Pn},[Jt,Pn],function(dr,Mn){return Mn[0]&&dr[1]!==Mn[1]}),Mr=le.useRef(null),eo=le.useMemo(function(){return Ln&&bt(wn)&&(sr==null?void 0:sr.size)>=wn},[Ln,wn,sr==null?void 0:sr.size]),kr=function(Mn){Mn.preventDefault()},Fr=function(Mn){var Un;(Un=Mr.current)===null||Un===void 0||Un.scrollTo(typeof Mn=="number"?{index:Mn}:Mn)},or=le.useCallback(function(dr){return zn==="combobox"?!1:sr.has(dr)},[zn,(0,he.Z)(sr).toString(),sr.size]),Ur=function(Mn){for(var Un=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Yn=hr.length,kn=0;kn<Yn;kn+=1){var mr=(Mn+kn*Un+Yn)%Yn,wr=hr[mr]||{},Vn=wr.group,Jn=wr.data;if(!Vn&&!(Jn!=null&&Jn.disabled)&&(or(Jn.value)||!eo))return mr}return-1},Rr=le.useState(function(){return Ur(0)}),Br=(0,ve.Z)(Rr,2),Cr=Br[0],so=Br[1],Ho=function(Mn){var Un=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;so(Mn);var Yn={source:Un?"keyboard":"mouse"},kn=hr[Mn];if(!kn){In(null,-1,Yn);return}In(kn.value,Mn,Yn)};(0,le.useEffect)(function(){Ho(qn!==!1?Ur(0):-1)},[hr.length,pt]);var ti=le.useCallback(function(dr){return zn==="combobox"?String(dr).toLowerCase()===pt.toLowerCase():sr.has(dr)},[zn,pt,(0,he.Z)(sr).toString(),sr.size]);(0,le.useEffect)(function(){var dr=setTimeout(function(){if(!Ln&&Jt&&sr.size===1){var Un=Array.from(sr)[0],Yn=hr.findIndex(function(kn){var mr=kn.data;return pt?String(mr.value).startsWith(pt):mr.value===Un});Yn!==-1&&(Ho(Yn),Fr(Yn))}});if(Jt){var Mn;(Mn=Mr.current)===null||Mn===void 0||Mn.scrollTo(void 0)}return function(){return clearTimeout(dr)}},[Jt,pt]);var xo=function(Mn){Mn!==void 0&&rr(Mn,{selected:!sr.has(Mn)}),Ln||Ct(!1)};if(le.useImperativeHandle(Je,function(){return{onKeyDown:function(Mn){var Un=Mn.which,Yn=Mn.ctrlKey;switch(Un){case $e.Z.N:case $e.Z.P:case $e.Z.UP:case $e.Z.DOWN:{var kn=0;if(Un===$e.Z.UP?kn=-1:Un===$e.Z.DOWN?kn=1:xt()&&Yn&&(Un===$e.Z.N?kn=1:Un===$e.Z.P&&(kn=-1)),kn!==0){var mr=Ur(Cr+kn,kn);Fr(mr),Ho(mr,!0)}break}case $e.Z.TAB:case $e.Z.ENTER:{var wr,Vn=hr[Cr];Vn&&!(Vn!=null&&(wr=Vn.data)!==null&&wr!==void 0&&wr.disabled)&&!eo?xo(Vn.value):xo(void 0),Jt&&Mn.preventDefault();break}case $e.Z.ESC:Ct(!1),Jt&&Mn.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Mn){Fr(Mn)}}}),hr.length===0)return le.createElement("div",{role:"listbox",id:"".concat(Nt,"_list"),className:"".concat($r,"-empty"),onMouseDown:kr},St);var No=Object.keys(Qn).map(function(dr){return Qn[dr]}),To=function(Mn){return Mn.label};function Xo(dr,Mn){var Un=dr.group;return{role:Un?"presentation":"option",id:"".concat(Nt,"_list_").concat(Mn)}}var ko=function(Mn){var Un=hr[Mn];if(!Un)return null;var Yn=Un.data||{},kn=Yn.value,mr=Un.group,wr=(0,ot.Z)(Yn,!0),Vn=To(Un);return Un?le.createElement("div",(0,y.Z)({"aria-label":typeof Vn=="string"&&!mr?Vn:null},wr,{key:Mn},Xo(Un,Mn),{"aria-selected":ti(kn)}),kn):null},go={role:"listbox",id:"".concat(Nt,"_list")};return le.createElement(le.Fragment,null,ar&&le.createElement("div",(0,y.Z)({},go,{style:{height:0,width:0,overflow:"hidden"}}),ko(Cr-1),ko(Cr),ko(Cr+1)),le.createElement(Ke.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,Mn){var Un=dr.group,Yn=dr.groupOption,kn=dr.data,mr=dr.label,wr=dr.value,Vn=kn.key;if(Un){var Jn,ur=(Jn=kn.title)!==null&&Jn!==void 0?Jn:dt(mr)?mr.toString():void 0;return le.createElement("div",{className:Ie()($r,"".concat($r,"-group"),kn.className),title:ur},mr!==void 0?mr:Vn)}var pr=kn.disabled,Zr=kn.title,Yr=kn.children,to=kn.style,Fo=kn.className,Mo=(0,me.Z)(kn,Zt),Yo=(0,en.Z)(Mo,No),Jo=or(wr),ni=pr||!Jo&&eo,ri="".concat($r,"-option"),Mi=Ie()($r,ri,Fo,(0,ce.Z)((0,ce.Z)((0,ce.Z)((0,ce.Z)({},"".concat(ri,"-grouped"),Yn),"".concat(ri,"-active"),Cr===Mn&&!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 Zr!==void 0&&(ta=Zr),le.createElement("div",(0,y.Z)({},(0,ot.Z)(Yo),ar?{}:Xo(dr,Mn),{"aria-selected":ti(wr),className:Mi,title:ta,onMouseMove:function(){Cr===Mn||ni||Ho(Mn)},onClick:function(){ni||xo(wr)},style:to}),le.createElement("div",{className:"".concat(ri,"-content")},typeof jr=="function"?jr(dr,{index:Mn}):Yi),le.isValidElement(ir)||Jo,Xi&&le.createElement(we,{className:"".concat($r,"-option-state"),customizeIcon:ir,customizeIconProps:{value:wr,disabled:ni,isSelected:Jo}},Jo?"\u2713":null))}))},Ut=le.forwardRef(At),pn=Ut,On=function(Et,Rt){var Je=le.useRef({values:new Map,options:new Map}),Bt=le.useMemo(function(){var Nt=Je.current,Jt=Nt.values,Ln=Nt.options,zn=Et.map(function(St){if(St.label===void 0){var It;return(0,je.Z)((0,je.Z)({},St),{},{label:(It=Jt.get(St.value))===null||It===void 0?void 0:It.label})}return St}),pt=new Map,Ct=new Map;return zn.forEach(function(St){pt.set(St.value,St),Ct.set(St.value,Rt.get(St.value)||Ln.get(St.value))}),Je.current.values=pt,Je.current.options=Ct,zn},[Et,Rt]),Ue=le.useCallback(function(Nt){return Rt.get(Nt)||Je.current.options.get(Nt)},[Rt]);return[Bt,Ue]};function mn(Et,Rt){return _e(Et).join("").toUpperCase().includes(Rt)}var Bn=function(Et,Rt,Je,Bt,Ue){return le.useMemo(function(){if(!Je||Bt===!1)return Et;var Nt=Rt.options,Jt=Rt.label,Ln=Rt.value,zn=[],pt=typeof Bt=="function",Ct=Je.toUpperCase(),St=pt?Bt:function(fn,wn){return Ue?mn(wn[Ue],Ct):wn[Nt]?mn(wn[Jt!=="children"?Jt:"label"],Ct):mn(wn[Ln],Ct)},It=pt?function(fn){return it(fn)}:function(fn){return fn};return Et.forEach(function(fn){if(fn[Nt]){var wn=St(Je,It(fn));if(wn)zn.push(fn);else{var Pn=fn[Nt].filter(function(In){return St(Je,It(In))});Pn.length&&zn.push((0,je.Z)((0,je.Z)({},fn),{},(0,ce.Z)({},Nt,Pn)))}return}St(Je,It(fn))&&zn.push(fn)}),zn},[Et,Bt,Ue,Je,Rt])},Dt=z(6551),hn=z(11592),Wt=["children","value"],an=["children"];function Vt(Et){var Rt=Et,Je=Rt.key,Bt=Rt.props,Ue=Bt.children,Nt=Bt.value,Jt=(0,me.Z)(Bt,Wt);return(0,je.Z)({key:Je,value:Nt!==void 0?Nt:Je,children:Ue},Jt)}function cn(Et){var Rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,hn.Z)(Et).map(function(Je,Bt){if(!le.isValidElement(Je)||!Je.type)return null;var Ue=Je,Nt=Ue.type.isSelectOptGroup,Jt=Ue.key,Ln=Ue.props,zn=Ln.children,pt=(0,me.Z)(Ln,an);return Rt||!Nt?Vt(Je):(0,je.Z)((0,je.Z)({key:"__RC_SELECT_GRP__".concat(Jt===null?Bt:Jt,"__"),label:Jt},pt),{},{options:cn(zn)})}).filter(function(Je){return Je})}var on=function(Rt,Je,Bt,Ue,Nt){return le.useMemo(function(){var Jt=Rt,Ln=!Rt;Ln&&(Jt=cn(Je));var zn=new Map,pt=new Map,Ct=function(fn,wn,Pn){Pn&&typeof Pn=="string"&&fn.set(wn[Pn],wn)},St=function It(fn){for(var wn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Pn=0;Pn<fn.length;Pn+=1){var In=fn[Pn];!In[Bt.options]||wn?(zn.set(In[Bt.value],In),Ct(pt,In,Bt.label),Ct(pt,In,Ue),Ct(pt,In,Nt)):It(In[Bt.options],!0)}};return St(Jt),{options:Jt,valueOptions:zn,labelOptions:pt}},[Rt,Je,Bt,Ue,Nt])},Zn=on;function _n(Et){var Rt=le.useRef();Rt.current=Et;var Je=le.useCallback(function(){return Rt.current.apply(Rt,arguments)},[]);return Je}function Nn(Et){var Rt=Et.mode,Je=Et.options,Bt=Et.children,Ue=Et.backfill,Nt=Et.allowClear,Jt=Et.placeholder,Ln=Et.getInputElement,zn=Et.showSearch,pt=Et.onSearch,Ct=Et.defaultOpen,St=Et.autoFocus,It=Et.labelInValue,fn=Et.value,wn=Et.inputValue,Pn=Et.optionLabelProp,In=isMultiple(Rt),qn=zn!==void 0?zn:In||Rt==="combobox",rr=Je||convertChildrenToData(Bt);if(warning(Rt!=="tags"||rr.every(function(ar){return!ar.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Rt==="tags"||Rt==="combobox"){var ir=rr.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(Rt!=="combobox"||!Pn,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Rt==="combobox"||!Ue,"`backfill` only works with `combobox` mode."),warning(Rt==="combobox"||!Ln,"`getInputElement` only work with `combobox` mode."),noteOnce(Rt!=="combobox"||!Ln||!Nt||!Jt,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),pt&&!qn&&Rt!=="combobox"&&Rt!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Ct||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 sr=toArray(fn);warning(!It||sr.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(!In||Array.isArray(fn),"`value` should be array when `mode` is `multiple` or `tags`")}if(Bt){var Qn=null;toNodeArray(Bt).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(jr){return!React.isValidElement(jr)||!ar.type||jr.type.isSelectOption?!0:(Qn=jr.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(wn===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function jn(Et,Rt){if(Et){var Je=function Bt(Ue){for(var Nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Jt=0;Jt<Ue.length;Jt++){var Ln=Ue[Jt];if(Ln[Rt==null?void 0:Rt.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!Nt&&Array.isArray(Ln[Rt==null?void 0:Rt.options])&&Bt(Ln[Rt==null?void 0:Rt.options],!0))break}};Je(Et)}}var Gn=null,$n=["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"],lr=["inputValue"];function nr(Et){return!Et||(0,ye.Z)(Et)!=="object"}var dn=le.forwardRef(function(Et,Rt){var Je=Et.id,Bt=Et.mode,Ue=Et.prefixCls,Nt=Ue===void 0?"rc-select":Ue,Jt=Et.backfill,Ln=Et.fieldNames,zn=Et.inputValue,pt=Et.searchValue,Ct=Et.onSearch,St=Et.autoClearSearchValue,It=St===void 0?!0:St,fn=Et.onSelect,wn=Et.onDeselect,Pn=Et.dropdownMatchSelectWidth,In=Pn===void 0?!0:Pn,qn=Et.filterOption,rr=Et.filterSort,ir=Et.optionFilterProp,sr=Et.optionLabelProp,Qn=Et.options,ar=Et.optionRender,fr=Et.children,Sr=Et.defaultActiveFirstOption,br=Et.menuItemSelectedIcon,jr=Et.virtual,$r=Et.direction,hr=Et.listHeight,Mr=hr===void 0?200:hr,eo=Et.listItemHeight,kr=eo===void 0?20:eo,Fr=Et.labelRender,or=Et.value,Ur=Et.defaultValue,Rr=Et.labelInValue,Br=Et.onChange,Cr=Et.maxCount,so=(0,me.Z)(Et,$n),Ho=(0,Dt.ZP)(Je),ti=un(Bt),xo=!!(!Qn&&fr),No=le.useMemo(function(){return qn===void 0&&Bt==="combobox"?!1:qn},[qn,Bt]),To=le.useMemo(function(){return Ge(Ln,xo)},[JSON.stringify(Ln),xo]),Xo=(0,Ae.Z)("",{value:pt!==void 0?pt:zn,postState:function(ai){return ai||""}}),ko=(0,ve.Z)(Xo,2),go=ko[0],dr=ko[1],Mn=Zn(Qn,fr,To,ir,sr),Un=Mn.valueOptions,Yn=Mn.labelOptions,kn=Mn.options,mr=le.useCallback(function($o){var ai=_e($o);return ai.map(function(Ro){var Bo,qo,Bi,Wa,zi;if(nr(Ro))Bo=Ro;else{var Qi;Bi=Ro.key,qo=Ro.label,Bo=(Qi=Ro.value)!==null&&Qi!==void 0?Qi:Bi}var sa=Un.get(Bo);if(sa){var cl;if(qo===void 0&&(qo=sa==null?void 0:sa[sr||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,sr,Un]),wr=(0,Ae.Z)(Ur,{value:or}),Vn=(0,ve.Z)(wr,2),Jn=Vn[0],ur=Vn[1],pr=le.useMemo(function(){var $o,ai=ti&&Jn===null?[]:Jn,Ro=mr(ai);return Bt==="combobox"&&ge(($o=Ro[0])===null||$o===void 0?void 0:$o.value)?[]:Ro},[Jn,mr,Bt,ti]),Zr=On(pr,Un),Yr=(0,ve.Z)(Zr,2),to=Yr[0],Fo=Yr[1],Mo=le.useMemo(function(){if(!Bt&&to.length===1){var $o=to[0];if($o.value===null&&($o.label===null||$o.label===void 0))return[]}return to.map(function(ai){var Ro;return(0,je.Z)((0,je.Z)({},ai),{},{label:(Ro=typeof Fr=="function"?Fr(ai):ai.label)!==null&&Ro!==void 0?Ro:ai.value})})},[Bt,to,Fr]),Yo=le.useMemo(function(){return new Set(to.map(function($o){return $o.value}))},[to]);le.useEffect(function(){if(Bt==="combobox"){var $o,ai=($o=to[0])===null||$o===void 0?void 0:$o.value;dr(be(ai)?String(ai):"")}},[to]);var Jo=_n(function($o,ai){var Ro=ai!=null?ai:$o;return(0,ce.Z)((0,ce.Z)({},To.value,$o),To.label,Ro)}),ni=le.useMemo(function(){if(Bt!=="tags")return kn;var $o=(0,he.Z)(kn),ai=function(Bo){return Un.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)||$o.push(Jo(Bo,Ro.label))}),$o},[Jo,kn,Un,to,Bt]),ri=Bn(ni,To,go,No,ir),Mi=le.useMemo(function(){return Bt!=="tags"||!go||ri.some(function($o){return $o[ir||"value"]===go})||ri.some(function($o){return $o[To.value]===go})?ri:[Jo(go)].concat((0,he.Z)(ri))},[Jo,ir,Bt,ri,go,To]),_i=function $o(ai){var Ro=(0,he.Z)(ai).sort(function(Bo,qo){return rr(Bo,qo,{searchValue:go})});return Ro.map(function(Bo){return Array.isArray(Bo.options)?(0,je.Z)((0,je.Z)({},Bo),{},{options:Bo.options.length>0?$o(Bo.options):Bo.options}):Bo})},Xi=le.useMemo(function(){return rr?_i(Mi):Mi},[Mi,rr,go]),Yi=le.useMemo(function(){return We(Xi,{fieldNames:To,childrenAsData:xo})},[Xi,To,xo]),ta=function(ai){var Ro=mr(ai);if(ur(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 it(Fo(Bi.value))});Br(ti?Bo:Bo[0],ti?qo:qo[0])}},Lo=le.useState(null),co=(0,ve.Z)(Lo,2),wi=co[0],wo=co[1],aa=le.useState(0),Qa=(0,ve.Z)(aa,2),Ha=Qa[0],da=Qa[1],fa=Sr!==void 0?Sr:Bt!=="combobox",Ti=le.useCallback(function($o,ai){var Ro=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Bo=Ro.source,qo=Bo===void 0?"keyboard":Bo;da(ai),Jt&&Bt==="combobox"&&$o!==null&&qo==="keyboard"&&wo(String($o))},[Jt,Bt]),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,it(dl)]};if(Ro&&fn){var Bi=qo(),Wa=(0,ve.Z)(Bi,2),zi=Wa[0],Qi=Wa[1];fn(zi,Qi)}else if(!Ro&&wn&&Bo!=="clear"){var sa=qo(),cl=(0,ve.Z)(sa,2),xl=cl[0],Ka=cl[1];wn(xl,Ka)}},ol=_n(function($o,ai){var Ro,Bo=ti?ai.selected:!0;Bo?Ro=ti?[].concat((0,he.Z)(to),[$o]):[$o]:Ro=to.filter(function(qo){return qo.value!==$o}),ta(Ro),ka($o,Bo),Bt==="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"&&(Bt==="combobox"&&ta(ai),Ct==null||Ct(ai))},Pl=function(ai){var Ro=ai;Bt!=="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=le.useMemo(function(){var $o=jr!==!1&&In!==!1;return(0,je.Z)((0,je.Z)({},Mn),{},{flattenOptions:Yi,onActiveValue:Ti,defaultActiveFirstOption:fa,onSelect:ol,menuItemSelectedIcon:br,rawValues:Yo,fieldNames:To,virtual:$o,direction:$r,listHeight:Mr,listItemHeight:kr,childrenAsData:xo,maxCount:Cr,optionRender:ar})},[Cr,Mn,Yi,Ti,fa,ol,br,Yo,To,jr,In,$r,Mr,kr,xo,ar]);return le.createElement(Le.Provider,{value:El},le.createElement(Lt,(0,y.Z)({},so,{id:Ho,prefixCls:Nt,ref:Rt,omitDomProps:lr,mode:Bt,displayValues:Mo,onDisplayValuesChange:Ja,direction:$r,searchValue:go,onSearch:la,autoClearSearchValue:It,onSearchSplit:Pl,dropdownMatchSelectWidth:In,OptionList:pn,emptyOptions:!Yi.length,activeValue:wi,activeDescendantId:"".concat(Ho,"_list_").concat(Ha)})))}),Cn=dn;Cn.Option=yt,Cn.OptGroup=$t;var Hn=Cn,Kn=Hn},22711:function(bn,zt,z){"use strict";z.r(zt),z.d(zt,{ResizableTextArea:function(){return Ce},default:function(){return mt}});var y=z(54476),he=z(20068),ce=z(33885),je=z(94480),ve=z(42978),me=z(75931),ye=z(92310),Ae=z.n(ye),pe=z(36901),le=z(66003),Re=z(30292),Ie=z(18929),tt=z(59301),He=z(76190),Me=z(29301),Ee=z(34280),we=z(16089),Ne=`
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;
`,Xe=["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"],ft={},Pe;function Fe(_e){var lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Mt=_e.getAttribute("id")||_e.getAttribute("data-reactid")||_e.getAttribute("name");if(lt&&ft[Mt])return ft[Mt];var be=window.getComputedStyle(_e),ge=be.getPropertyValue("box-sizing")||be.getPropertyValue("-moz-box-sizing")||be.getPropertyValue("-webkit-box-sizing"),Ft=parseFloat(be.getPropertyValue("padding-bottom"))+parseFloat(be.getPropertyValue("padding-top")),_t=parseFloat(be.getPropertyValue("border-bottom-width"))+parseFloat(be.getPropertyValue("border-top-width")),Tt=Xe.map(function(rt){return"".concat(rt,":").concat(be.getPropertyValue(rt))}).join(";"),xe={sizingStyle:Tt,paddingSize:Ft,borderSize:_t,boxSizing:ge};return lt&&Mt&&(ft[Mt]=xe),xe}function Ze(_e){var lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Mt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,be=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Pe||(Pe=document.createElement("textarea"),Pe.setAttribute("tab-index","-1"),Pe.setAttribute("aria-hidden","true"),Pe.setAttribute("name","hiddenTextarea"),document.body.appendChild(Pe)),_e.getAttribute("wrap")?Pe.setAttribute("wrap",_e.getAttribute("wrap")):Pe.removeAttribute("wrap");var ge=Fe(_e,lt),Ft=ge.paddingSize,_t=ge.borderSize,Tt=ge.boxSizing,xe=ge.sizingStyle;Pe.setAttribute("style","".concat(xe,";").concat(Ne)),Pe.value=_e.value||_e.placeholder||"";var rt=void 0,qe=void 0,Gt,at=Pe.scrollHeight;if(Tt==="border-box"?at+=_t:Tt==="content-box"&&(at-=Ft),Mt!==null||be!==null){Pe.value=" ";var st=Pe.scrollHeight-Ft;Mt!==null&&(rt=st*Mt,Tt==="border-box"&&(rt=rt+Ft+_t),at=Math.max(rt,at)),be!==null&&(qe=st*be,Tt==="border-box"&&(qe=qe+Ft+_t),Gt=at>qe?"":"hidden",at=Math.min(qe,at))}var nt={height:at,overflowY:Gt,resize:"none"};return rt&&(nt.minHeight=rt),qe&&(nt.maxHeight=qe),nt}var $e=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],gt=0,ot=1,Qe=2,ct=tt.forwardRef(function(_e,lt){var Mt=_e,be=Mt.prefixCls,ge=Mt.defaultValue,Ft=Mt.value,_t=Mt.autoSize,Tt=Mt.onResize,xe=Mt.className,rt=Mt.style,qe=Mt.disabled,Gt=Mt.onChange,at=Mt.onInternalAutoSize,st=(0,me.Z)(Mt,$e),nt=(0,Ie.Z)(ge,{value:Ft,postState:function(yt){return yt!=null?yt:""}}),rn=(0,ve.Z)(nt,2),kt=rn[0],ae=rn[1],re=function(yt){ae(yt.target.value),Gt==null||Gt(yt)},te=tt.useRef();tt.useImperativeHandle(lt,function(){return{textArea:te.current}});var oe=tt.useMemo(function(){return _t&&(0,He.Z)(_t)==="object"?[_t.minRows,_t.maxRows]:[]},[_t]),de=(0,ve.Z)(oe,2),ne=de[0],se=de[1],Oe=!!_t,bt=function(){try{if(document.activeElement===te.current){var yt=te.current,Ht=yt.selectionStart,en=yt.selectionEnd,Ke=yt.scrollTop;te.current.setSelectionRange(Ht,en),te.current.scrollTop=Ke}}catch(xt){}},Ge=tt.useState(Qe),We=(0,ve.Z)(Ge,2),it=We[0],ht=We[1],Pt=tt.useState(),Le=(0,ve.Z)(Pt,2),Ve=Le[0],Ot=Le[1],Yt=function(){ht(gt)};(0,Ee.Z)(function(){Oe&&Yt()},[Ft,ne,se,Oe]),(0,Ee.Z)(function(){if(it===gt)ht(ot);else if(it===ot){var ze=Ze(te.current,!1,ne,se);ht(Qe),Ot(ze)}else bt()},[it]);var un=tt.useRef(),tn=function(){we.Z.cancel(un.current)},Lt=function(yt){it===Qe&&(Tt==null||Tt(yt),_t&&(tn(),un.current=(0,we.Z)(function(){Yt()})))};tt.useEffect(function(){return tn},[]);var ln=Oe?Ve:null,$t=(0,ce.Z)((0,ce.Z)({},rt),ln);return(it===gt||it===ot)&&($t.overflowY="hidden",$t.overflowX="hidden"),tt.createElement(Me.Z,{onResize:Lt,disabled:!(_t||Tt)},tt.createElement("textarea",(0,y.Z)({},st,{ref:te,style:$t,className:Ae()(be,xe,(0,he.Z)({},"".concat(be,"-disabled"),qe)),disabled:qe,value:kt,onChange:re})))}),Ce=ct,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"],Te=tt.forwardRef(function(_e,lt){var Mt,be=_e.defaultValue,ge=_e.value,Ft=_e.onFocus,_t=_e.onBlur,Tt=_e.onChange,xe=_e.allowClear,rt=_e.maxLength,qe=_e.onCompositionStart,Gt=_e.onCompositionEnd,at=_e.suffix,st=_e.prefixCls,nt=st===void 0?"rc-textarea":st,rn=_e.showCount,kt=_e.count,ae=_e.className,re=_e.style,te=_e.disabled,oe=_e.hidden,de=_e.classNames,ne=_e.styles,se=_e.onResize,Oe=_e.onClear,bt=_e.onPressEnter,Ge=_e.readOnly,We=_e.autoSize,it=_e.onKeyDown,ht=(0,me.Z)(_e,et),Pt=(0,Ie.Z)(be,{value:ge,defaultValue:be}),Le=(0,ve.Z)(Pt,2),Ve=Le[0],Ot=Le[1],Yt=Ve==null?"":String(Ve),un=tt.useState(!1),tn=(0,ve.Z)(un,2),Lt=tn[0],ln=tn[1],$t=tt.useRef(!1),ze=tt.useState(null),yt=(0,ve.Z)(ze,2),Ht=yt[0],en=yt[1],Ke=(0,tt.useRef)(null),xt=(0,tt.useRef)(null),Zt=function(){var Cn;return(Cn=xt.current)===null||Cn===void 0?void 0:Cn.textArea},dt=function(){Zt().focus()};(0,tt.useImperativeHandle)(lt,function(){var dn;return{resizableTextArea:xt.current,focus:dt,blur:function(){Zt().blur()},nativeElement:((dn=Ke.current)===null||dn===void 0?void 0:dn.nativeElement)||Zt()}}),(0,tt.useEffect)(function(){ln(function(dn){return!te&&dn})},[te]);var At=tt.useState(null),Ut=(0,ve.Z)(At,2),pn=Ut[0],On=Ut[1];tt.useEffect(function(){if(pn){var dn;(dn=Zt()).setSelectionRange.apply(dn,(0,je.Z)(pn))}},[pn]);var mn=(0,le.Z)(kt,rn),Bn=(Mt=mn.max)!==null&&Mt!==void 0?Mt:rt,Dt=Number(Bn)>0,hn=mn.strategy(Yt),Wt=!!Bn&&hn>Bn,an=function(Cn,Hn){var Kn=Hn;!$t.current&&mn.exceedFormatter&&mn.max&&mn.strategy(Hn)>mn.max&&(Kn=mn.exceedFormatter(Hn,{max:mn.max}),Hn!==Kn&&On([Zt().selectionStart||0,Zt().selectionEnd||0])),Ot(Kn),(0,Re.rJ)(Cn.currentTarget,Cn,Tt,Kn)},Vt=function(Cn){$t.current=!0,qe==null||qe(Cn)},cn=function(Cn){$t.current=!1,an(Cn,Cn.currentTarget.value),Gt==null||Gt(Cn)},on=function(Cn){an(Cn,Cn.target.value)},Zn=function(Cn){Cn.key==="Enter"&&bt&&bt(Cn),it==null||it(Cn)},_n=function(Cn){ln(!0),Ft==null||Ft(Cn)},Nn=function(Cn){ln(!1),_t==null||_t(Cn)},jn=function(Cn){Ot(""),dt(),(0,Re.rJ)(Zt(),Cn,Tt)},Gn=at,$n;mn.show&&(mn.showFormatter?$n=mn.showFormatter({value:Yt,count:hn,maxLength:Bn}):$n="".concat(hn).concat(Dt?" / ".concat(Bn):""),Gn=tt.createElement(tt.Fragment,null,Gn,tt.createElement("span",{className:Ae()("".concat(nt,"-data-count"),de==null?void 0:de.count),style:ne==null?void 0:ne.count},$n)));var lr=function(Cn){var Hn;se==null||se(Cn),(Hn=Zt())!==null&&Hn!==void 0&&Hn.style.height&&en(!0)},nr=!We&&!rn&&!xe;return tt.createElement(pe.BaseInput,{ref:Ke,value:Yt,allowClear:xe,handleReset:jn,suffix:Gn,prefixCls:nt,classNames:(0,ce.Z)((0,ce.Z)({},de),{},{affixWrapper:Ae()(de==null?void 0:de.affixWrapper,(0,he.Z)((0,he.Z)({},"".concat(nt,"-show-count"),rn),"".concat(nt,"-textarea-allow-clear"),xe))}),disabled:te,focused:Lt,className:Ae()(ae,Wt&&"".concat(nt,"-out-of-range")),style:(0,ce.Z)((0,ce.Z)({},re),Ht&&!nr?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof $n=="string"?$n:void 0}},hidden:oe,readOnly:Ge,onClear:Oe},tt.createElement(Ce,(0,y.Z)({},ht,{autoSize:We,maxLength:rt,onKeyDown:Zn,onChange:on,onFocus:_n,onBlur:Nn,onCompositionStart:Vt,onCompositionEnd:cn,className:Ae()(de==null?void 0:de.textarea),style:(0,ce.Z)((0,ce.Z)({},ne==null?void 0:ne.textarea),{},{resize:re==null?void 0:re.resize}),disabled:te,prefixCls:nt,onResize:lr,ref:xt,readOnly:Ge})))}),ue=Te,mt=ue},639:function(bn,zt,z){"use strict";z.d(zt,{Z:function(){return ft}});var y=z(54476),he=z(20068),ce=z(33885),je=z(42978),ve=z(75931),me=z(59301),ye=z(92310),Ae=z.n(ye),pe=z(26112),le=z(30699),Re=function(Fe){for(var Ze=Fe.prefixCls,$e=Fe.level,gt=Fe.isStart,ot=Fe.isEnd,Qe="".concat(Ze,"-indent-unit"),ct=[],Ce=0;Ce<$e;Ce+=1)ct.push(me.createElement("span",{key:Ce,className:Ae()(Qe,(0,he.Z)((0,he.Z)({},"".concat(Qe,"-start"),gt[Ce]),"".concat(Qe,"-end"),ot[Ce]))}));return me.createElement("span",{"aria-hidden":"true",className:"".concat(Ze,"-indent")},ct)},Ie=me.memo(Re),tt=z(65065),He=z(34061),Me=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],Ee="open",we="close",Ne="---",Xe=function(Fe){var Ze,$e,gt,ot=Fe.eventKey,Qe=Fe.className,ct=Fe.style,Ce=Fe.dragOver,et=Fe.dragOverGapTop,Te=Fe.dragOverGapBottom,ue=Fe.isLeaf,mt=Fe.isStart,_e=Fe.isEnd,lt=Fe.expanded,Mt=Fe.selected,be=Fe.checked,ge=Fe.halfChecked,Ft=Fe.loading,_t=Fe.domRef,Tt=Fe.active,xe=Fe.data,rt=Fe.onMouseMove,qe=Fe.selectable,Gt=(0,ve.Z)(Fe,Me),at=me.useContext(le.k),st=me.useContext(le.y),nt=me.useRef(null),rn=me.useState(!1),kt=(0,je.Z)(rn,2),ae=kt[0],re=kt[1],te=!!(at.disabled||Fe.disabled||(Ze=st.nodeDisabled)!==null&&Ze!==void 0&&Ze.call(st,xe)),oe=me.useMemo(function(){return!at.checkable||Fe.checkable===!1?!1:at.checkable},[at.checkable,Fe.checkable]),de=function(hn){te||at.onNodeSelect(hn,(0,He.F)(Fe))},ne=function(hn){te||!oe||Fe.disableCheckbox||at.onNodeCheck(hn,(0,He.F)(Fe),!be)},se=me.useMemo(function(){return typeof qe=="boolean"?qe:at.selectable},[qe,at.selectable]),Oe=function(hn){at.onNodeClick(hn,(0,He.F)(Fe)),se?de(hn):ne(hn)},bt=function(hn){at.onNodeDoubleClick(hn,(0,He.F)(Fe))},Ge=function(hn){at.onNodeMouseEnter(hn,(0,He.F)(Fe))},We=function(hn){at.onNodeMouseLeave(hn,(0,He.F)(Fe))},it=function(hn){at.onNodeContextMenu(hn,(0,He.F)(Fe))},ht=me.useMemo(function(){return!!(at.draggable&&(!at.draggable.nodeDraggable||at.draggable.nodeDraggable(xe)))},[at.draggable,xe]),Pt=function(hn){hn.stopPropagation(),re(!0),at.onNodeDragStart(hn,Fe);try{hn.dataTransfer.setData("text/plain","")}catch(Wt){}},Le=function(hn){hn.preventDefault(),hn.stopPropagation(),at.onNodeDragEnter(hn,Fe)},Ve=function(hn){hn.preventDefault(),hn.stopPropagation(),at.onNodeDragOver(hn,Fe)},Ot=function(hn){hn.stopPropagation(),at.onNodeDragLeave(hn,Fe)},Yt=function(hn){hn.stopPropagation(),re(!1),at.onNodeDragEnd(hn,Fe)},un=function(hn){hn.preventDefault(),hn.stopPropagation(),re(!1),at.onNodeDrop(hn,Fe)},tn=function(hn){Ft||at.onNodeExpand(hn,(0,He.F)(Fe))},Lt=me.useMemo(function(){var Dt=(0,tt.Z)(at.keyEntities,ot)||{},hn=Dt.children;return!!(hn||[]).length},[at.keyEntities,ot]),ln=me.useMemo(function(){return ue===!1?!1:ue||!at.loadData&&!Lt||at.loadData&&Fe.loaded&&!Lt},[ue,at.loadData,Lt,Fe.loaded]);me.useEffect(function(){Ft||typeof at.loadData=="function"&&lt&&!ln&&!Fe.loaded&&at.onNodeLoad((0,He.F)(Fe))},[Ft,at.loadData,at.onNodeLoad,lt,ln,Fe]);var $t=me.useMemo(function(){var Dt;return(Dt=at.draggable)!==null&&Dt!==void 0&&Dt.icon?me.createElement("span",{className:"".concat(at.prefixCls,"-draggable-icon")},at.draggable.icon):null},[at.draggable]),ze=function(hn){var Wt=Fe.switcherIcon||at.switcherIcon;return typeof Wt=="function"?Wt((0,ce.Z)((0,ce.Z)({},Fe),{},{isLeaf:hn})):Wt},yt=function(){if(ln){var hn=ze(!0);return hn!==!1?me.createElement("span",{className:Ae()("".concat(at.prefixCls,"-switcher"),"".concat(at.prefixCls,"-switcher-noop"))},hn):null}var Wt=ze(!1);return Wt!==!1?me.createElement("span",{onClick:tn,className:Ae()("".concat(at.prefixCls,"-switcher"),"".concat(at.prefixCls,"-switcher_").concat(lt?Ee:we))},Wt):null},Ht=me.useMemo(function(){if(!oe)return null;var Dt=typeof oe!="boolean"?oe:null;return me.createElement("span",{className:Ae()("".concat(at.prefixCls,"-checkbox"),(0,he.Z)((0,he.Z)((0,he.Z)({},"".concat(at.prefixCls,"-checkbox-checked"),be),"".concat(at.prefixCls,"-checkbox-indeterminate"),!be&&ge),"".concat(at.prefixCls,"-checkbox-disabled"),te||Fe.disableCheckbox)),onClick:ne,role:"checkbox","aria-checked":ge?"mixed":be,"aria-disabled":te||Fe.disableCheckbox,"aria-label":"Select ".concat(typeof Fe.title=="string"?Fe.title:"tree node")},Dt)},[oe,be,ge,te,Fe.disableCheckbox,Fe.title]),en=me.useMemo(function(){return ln?null:lt?Ee:we},[ln,lt]),Ke=me.useMemo(function(){return me.createElement("span",{className:Ae()("".concat(at.prefixCls,"-iconEle"),"".concat(at.prefixCls,"-icon__").concat(en||"docu"),(0,he.Z)({},"".concat(at.prefixCls,"-icon_loading"),Ft))})},[at.prefixCls,en,Ft]),xt=me.useMemo(function(){var Dt=!!at.draggable,hn=!Fe.disabled&&Dt&&at.dragOverNodeKey===ot;return hn?at.dropIndicatorRender({dropPosition:at.dropPosition,dropLevelOffset:at.dropLevelOffset,indent:at.indent,prefixCls:at.prefixCls,direction:at.direction}):null},[at.dropPosition,at.dropLevelOffset,at.indent,at.prefixCls,at.direction,at.draggable,at.dragOverNodeKey,at.dropIndicatorRender]),Zt=me.useMemo(function(){var Dt=Fe.title,hn=Dt===void 0?Ne:Dt,Wt="".concat(at.prefixCls,"-node-content-wrapper"),an;if(at.showIcon){var Vt=Fe.icon||at.icon;an=Vt?me.createElement("span",{className:Ae()("".concat(at.prefixCls,"-iconEle"),"".concat(at.prefixCls,"-icon__customize"))},typeof Vt=="function"?Vt(Fe):Vt):Ke}else at.loadData&&Ft&&(an=Ke);var cn;return typeof hn=="function"?cn=hn(xe):at.titleRender?cn=at.titleRender(xe):cn=hn,me.createElement("span",{ref:nt,title:typeof hn=="string"?hn:"",className:Ae()(Wt,"".concat(Wt,"-").concat(en||"normal"),(0,he.Z)({},"".concat(at.prefixCls,"-node-selected"),!te&&(Mt||ae))),onMouseEnter:Ge,onMouseLeave:We,onContextMenu:it,onClick:Oe,onDoubleClick:bt},an,me.createElement("span",{className:"".concat(at.prefixCls,"-title")},cn),xt)},[at.prefixCls,at.showIcon,Fe,at.icon,Ke,at.titleRender,xe,en,Ge,We,it,Oe,bt]),dt=(0,pe.Z)(Gt,{aria:!0,data:!0}),At=(0,tt.Z)(at.keyEntities,ot)||{},Ut=At.level,pn=_e[_e.length-1],On=!te&&ht,mn=at.draggingNodeKey===ot,Bn=qe!==void 0?{"aria-selected":!!qe}:void 0;return me.createElement("div",(0,y.Z)({ref:_t,role:"treeitem","aria-expanded":ue?void 0:lt,className:Ae()(Qe,"".concat(at.prefixCls,"-treenode"),(gt={},(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)(gt,"".concat(at.prefixCls,"-treenode-disabled"),te),"".concat(at.prefixCls,"-treenode-switcher-").concat(lt?"open":"close"),!ue),"".concat(at.prefixCls,"-treenode-checkbox-checked"),be),"".concat(at.prefixCls,"-treenode-checkbox-indeterminate"),ge),"".concat(at.prefixCls,"-treenode-selected"),Mt),"".concat(at.prefixCls,"-treenode-loading"),Ft),"".concat(at.prefixCls,"-treenode-active"),Tt),"".concat(at.prefixCls,"-treenode-leaf-last"),pn),"".concat(at.prefixCls,"-treenode-draggable"),ht),"dragging",mn),(0,he.Z)((0,he.Z)((0,he.Z)((0,he.Z)((0,he.Z)((0,he.Z)((0,he.Z)(gt,"drop-target",at.dropTargetKey===ot),"drop-container",at.dropContainerKey===ot),"drag-over",!te&&Ce),"drag-over-gap-top",!te&&et),"drag-over-gap-bottom",!te&&Te),"filter-node",($e=at.filterTreeNode)===null||$e===void 0?void 0:$e.call(at,(0,He.F)(Fe))),"".concat(at.prefixCls,"-treenode-leaf"),ln))),style:ct,draggable:On,onDragStart:On?Pt:void 0,onDragEnter:ht?Le:void 0,onDragOver:ht?Ve:void 0,onDragLeave:ht?Ot:void 0,onDrop:ht?un:void 0,onDragEnd:ht?Yt:void 0,onMouseMove:rt},Bn,dt),me.createElement(Ie,{prefixCls:at.prefixCls,level:Ut,isStart:mt,isEnd:_e}),$t,yt(),Ht,Zt)};Xe.isTreeNode=1;var ft=Xe},30699:function(bn,zt,z){"use strict";z.d(zt,{k:function(){return he},y:function(){return ce}});var y=z(59301),he=y.createContext(null),ce=y.createContext({})},3741:function(bn,zt,z){"use strict";z.d(zt,{OF:function(){return ot.Z},y6:function(){return we.y},ZP:function(){return te}});var y=z(54476),he=z(76190),ce=z(33885),je=z(94480),ve=z(67732),me=z(83652),ye=z(31226),Ae=z(42403),pe=z(158),le=z(20068),Re=z(92310),Ie=z.n(Re),tt=z(10228),He=z(26112),Me=z(48736),Ee=z(59301),we=z(30699),Ne=function(de){var ne=de.dropPosition,se=de.dropLevelOffset,Oe=de.indent,bt={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(ne){case-1:bt.top=0,bt.left=-se*Oe;break;case 1:bt.bottom=0,bt.left=-se*Oe;break;case 0:bt.bottom=0,bt.left=Oe;break}return Ee.createElement("div",{style:bt})},Xe=Ne;function ft(oe){if(oe==null)throw new TypeError("Cannot destructure "+oe)}var Pe=z(42978),Fe=z(75931),Ze=z(34280),$e=z(48911),gt=z(77900),ot=z(639);function Qe(oe,de){var ne=Ee.useState(!1),se=(0,Pe.Z)(ne,2),Oe=se[0],bt=se[1];(0,Ze.Z)(function(){if(Oe)return oe(),function(){de()}},[Oe]),(0,Ze.Z)(function(){return bt(!0),function(){bt(!1)}},[])}var ct=Qe,Ce=z(34061),et=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Te=Ee.forwardRef(function(oe,de){var ne=oe.className,se=oe.style,Oe=oe.motion,bt=oe.motionNodes,Ge=oe.motionType,We=oe.onMotionStart,it=oe.onMotionEnd,ht=oe.active,Pt=oe.treeNodeRequiredProps,Le=(0,Fe.Z)(oe,et),Ve=Ee.useState(!0),Ot=(0,Pe.Z)(Ve,2),Yt=Ot[0],un=Ot[1],tn=Ee.useContext(we.k),Lt=tn.prefixCls,ln=bt&&Ge!=="hide";(0,Ze.Z)(function(){bt&&ln!==Yt&&un(ln)},[bt]);var $t=function(){bt&&We()},ze=Ee.useRef(!1),yt=function(){bt&&!ze.current&&(ze.current=!0,it())};ct($t,yt);var Ht=function(Ke){ln===Ke&&yt()};return bt?Ee.createElement(gt.default,(0,y.Z)({ref:de,visible:Yt},Oe,{motionAppear:Ge==="show",onVisibleChanged:Ht}),function(en,Ke){var xt=en.className,Zt=en.style;return Ee.createElement("div",{ref:Ke,className:Ie()("".concat(Lt,"-treenode-motion"),xt),style:Zt},bt.map(function(dt){var At=Object.assign({},(ft(dt.data),dt.data)),Ut=dt.title,pn=dt.key,On=dt.isStart,mn=dt.isEnd;delete At.children;var Bn=(0,Ce.H8)(pn,Pt);return Ee.createElement(ot.Z,(0,y.Z)({},At,Bn,{title:Ut,active:ht,data:dt.data,key:pn,isStart:On,isEnd:mn}))}))}):Ee.createElement(ot.Z,(0,y.Z)({domRef:de,className:ne,style:se},Le,{active:ht}))}),ue=Te;function mt(){var oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],de=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],ne=oe.length,se=de.length;if(Math.abs(ne-se)!==1)return{add:!1,key:null};function Oe(bt,Ge){var We=new Map;bt.forEach(function(ht){We.set(ht,!0)});var it=Ge.filter(function(ht){return!We.has(ht)});return it.length===1?it[0]:null}return ne<se?{add:!0,key:Oe(oe,de)}:{add:!1,key:Oe(de,oe)}}function _e(oe,de,ne){var se=oe.findIndex(function(We){return We.key===ne}),Oe=oe[se+1],bt=de.findIndex(function(We){return We.key===ne});if(Oe){var Ge=de.findIndex(function(We){return We.key===Oe.key});return de.slice(bt+1,Ge)}return de.slice(bt+1)}var lt=["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},be=function(){},ge="RC_TREE_MOTION_".concat(Math.random()),Ft={key:ge},_t={key:ge,level:0,index:0,pos:"0",node:Ft,nodes:[Ft]},Tt={parent:null,children:[],pos:_t.pos,data:Ft,title:null,key:ge,isStart:[],isEnd:[]};function xe(oe,de,ne,se){return de===!1||!ne?oe:oe.slice(0,Math.ceil(ne/se)+1)}function rt(oe){var de=oe.key,ne=oe.pos;return(0,Ce.km)(de,ne)}function qe(oe){for(var de=String(oe.data.key),ne=oe;ne.parent;)ne=ne.parent,de="".concat(ne.data.key," > ").concat(de);return de}var Gt=Ee.forwardRef(function(oe,de){var ne=oe.prefixCls,se=oe.data,Oe=oe.selectable,bt=oe.checkable,Ge=oe.expandedKeys,We=oe.selectedKeys,it=oe.checkedKeys,ht=oe.loadedKeys,Pt=oe.loadingKeys,Le=oe.halfCheckedKeys,Ve=oe.keyEntities,Ot=oe.disabled,Yt=oe.dragging,un=oe.dragOverNodeKey,tn=oe.dropPosition,Lt=oe.motion,ln=oe.height,$t=oe.itemHeight,ze=oe.virtual,yt=oe.scrollWidth,Ht=oe.focusable,en=oe.activeItem,Ke=oe.focused,xt=oe.tabIndex,Zt=oe.onKeyDown,dt=oe.onFocus,At=oe.onBlur,Ut=oe.onActiveChange,pn=oe.onListChangeStart,On=oe.onListChangeEnd,mn=(0,Fe.Z)(oe,lt),Bn=Ee.useRef(null),Dt=Ee.useRef(null);Ee.useImperativeHandle(de,function(){return{scrollTo:function(Ln){Bn.current.scrollTo(Ln)},getIndentWidth:function(){return Dt.current.offsetWidth}}});var hn=Ee.useState(Ge),Wt=(0,Pe.Z)(hn,2),an=Wt[0],Vt=Wt[1],cn=Ee.useState(se),on=(0,Pe.Z)(cn,2),Zn=on[0],_n=on[1],Nn=Ee.useState(se),jn=(0,Pe.Z)(Nn,2),Gn=jn[0],$n=jn[1],lr=Ee.useState([]),nr=(0,Pe.Z)(lr,2),dn=nr[0],Cn=nr[1],Hn=Ee.useState(null),Kn=(0,Pe.Z)(Hn,2),Et=Kn[0],Rt=Kn[1],Je=Ee.useRef(se);Je.current=se;function Bt(){var Jt=Je.current;_n(Jt),$n(Jt),Cn([]),Rt(null),On()}(0,Ze.Z)(function(){Vt(Ge);var Jt=mt(an,Ge);if(Jt.key!==null)if(Jt.add){var Ln=Zn.findIndex(function(fn){var wn=fn.key;return wn===Jt.key}),zn=xe(_e(Zn,se,Jt.key),ze,ln,$t),pt=Zn.slice();pt.splice(Ln+1,0,Tt),$n(pt),Cn(zn),Rt("show")}else{var Ct=se.findIndex(function(fn){var wn=fn.key;return wn===Jt.key}),St=xe(_e(se,Zn,Jt.key),ze,ln,$t),It=se.slice();It.splice(Ct+1,0,Tt),$n(It),Cn(St),Rt("hide")}else Zn!==se&&(_n(se),$n(se))},[Ge,se]),Ee.useEffect(function(){Yt||Bt()},[Yt]);var Ue=Lt?Gn:se,Nt={expandedKeys:Ge,selectedKeys:We,loadedKeys:ht,loadingKeys:Pt,checkedKeys:it,halfCheckedKeys:Le,dragOverNodeKey:un,dropPosition:tn,keyEntities:Ve};return Ee.createElement(Ee.Fragment,null,Ke&&en&&Ee.createElement("span",{style:Mt,"aria-live":"assertive"},qe(en)),Ee.createElement("div",null,Ee.createElement("input",{style:Mt,disabled:Ht===!1||Ot,tabIndex:Ht!==!1?xt:null,onKeyDown:Zt,onFocus:dt,onBlur:At,value:"",onChange:be,"aria-label":"for screen reader"})),Ee.createElement("div",{className:"".concat(ne,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},Ee.createElement("div",{className:"".concat(ne,"-indent")},Ee.createElement("div",{ref:Dt,className:"".concat(ne,"-indent-unit")}))),Ee.createElement($e.Z,(0,y.Z)({},mn,{data:Ue,itemKey:rt,height:ln,fullHeight:!1,virtual:ze,itemHeight:$t,scrollWidth:yt,prefixCls:"".concat(ne,"-list"),ref:Bn,role:"tree",onVisibleChange:function(Ln){Ln.every(function(zn){return rt(zn)!==ge})&&Bt()}}),function(Jt){var Ln=Jt.pos,zn=Object.assign({},(ft(Jt.data),Jt.data)),pt=Jt.title,Ct=Jt.key,St=Jt.isStart,It=Jt.isEnd,fn=(0,Ce.km)(Ct,Ln);delete zn.key,delete zn.children;var wn=(0,Ce.H8)(fn,Nt);return Ee.createElement(ue,(0,y.Z)({},zn,wn,{title:pt,active:!!en&&Ct===en.key,pos:Ln,data:Jt.data,isStart:St,isEnd:It,motion:Lt,motionNodes:Ct===ge?dn:null,motionType:Et,onMotionStart:pn,onMotionEnd:Bt,treeNodeRequiredProps:Nt,onMouseMove:function(){Ut(null)}}))}))}),at=Gt,st=z(82661),nt=z(34643),rn=z(65065),kt=10,ae=function(oe){(0,Ae.Z)(ne,oe);var de=(0,pe.Z)(ne);function ne(){var se;(0,ve.Z)(this,ne);for(var Oe=arguments.length,bt=new Array(Oe),Ge=0;Ge<Oe;Ge++)bt[Ge]=arguments[Ge];return se=de.call.apply(de,[this].concat(bt)),(0,le.Z)((0,ye.Z)(se),"destroyed",!1),(0,le.Z)((0,ye.Z)(se),"delayedDragEnterLogic",void 0),(0,le.Z)((0,ye.Z)(se),"loadingRetryTimes",{}),(0,le.Z)((0,ye.Z)(se),"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,Ce.w$)()}),(0,le.Z)((0,ye.Z)(se),"dragStartMousePosition",null),(0,le.Z)((0,ye.Z)(se),"dragNodeProps",null),(0,le.Z)((0,ye.Z)(se),"currentMouseOverDroppableNodeKey",null),(0,le.Z)((0,ye.Z)(se),"listRef",Ee.createRef()),(0,le.Z)((0,ye.Z)(se),"onNodeDragStart",function(We,it){var ht=se.state,Pt=ht.expandedKeys,Le=ht.keyEntities,Ve=se.props.onDragStart,Ot=it.eventKey;se.dragNodeProps=it,se.dragStartMousePosition={x:We.clientX,y:We.clientY};var Yt=(0,st._5)(Pt,Ot);se.setState({draggingNodeKey:Ot,dragChildrenKeys:(0,st.wA)(Ot,Le),indent:se.listRef.current.getIndentWidth()}),se.setExpandedKeys(Yt),window.addEventListener("dragend",se.onWindowDragEnd),Ve==null||Ve({event:We,node:(0,Ce.F)(it)})}),(0,le.Z)((0,ye.Z)(se),"onNodeDragEnter",function(We,it){var ht=se.state,Pt=ht.expandedKeys,Le=ht.keyEntities,Ve=ht.dragChildrenKeys,Ot=ht.flattenNodes,Yt=ht.indent,un=se.props,tn=un.onDragEnter,Lt=un.onExpand,ln=un.allowDrop,$t=un.direction,ze=it.pos,yt=it.eventKey;if(se.currentMouseOverDroppableNodeKey!==yt&&(se.currentMouseOverDroppableNodeKey=yt),!se.dragNodeProps){se.resetDragState();return}var Ht=(0,st.OM)(We,se.dragNodeProps,it,Yt,se.dragStartMousePosition,ln,Ot,Le,Pt,$t),en=Ht.dropPosition,Ke=Ht.dropLevelOffset,xt=Ht.dropTargetKey,Zt=Ht.dropContainerKey,dt=Ht.dropTargetPos,At=Ht.dropAllowed,Ut=Ht.dragOverNodeKey;if(Ve.includes(xt)||!At){se.resetDragState();return}if(se.delayedDragEnterLogic||(se.delayedDragEnterLogic={}),Object.keys(se.delayedDragEnterLogic).forEach(function(pn){clearTimeout(se.delayedDragEnterLogic[pn])}),se.dragNodeProps.eventKey!==it.eventKey&&(We.persist(),se.delayedDragEnterLogic[ze]=window.setTimeout(function(){if(se.state.draggingNodeKey!==null){var pn=(0,je.Z)(Pt),On=(0,rn.Z)(Le,it.eventKey);On&&(On.children||[]).length&&(pn=(0,st.L0)(Pt,it.eventKey)),se.props.hasOwnProperty("expandedKeys")||se.setExpandedKeys(pn),Lt==null||Lt(pn,{node:(0,Ce.F)(it),expanded:!0,nativeEvent:We.nativeEvent})}},800)),se.dragNodeProps.eventKey===xt&&Ke===0){se.resetDragState();return}se.setState({dragOverNodeKey:Ut,dropPosition:en,dropLevelOffset:Ke,dropTargetKey:xt,dropContainerKey:Zt,dropTargetPos:dt,dropAllowed:At}),tn==null||tn({event:We,node:(0,Ce.F)(it),expandedKeys:Pt})}),(0,le.Z)((0,ye.Z)(se),"onNodeDragOver",function(We,it){var ht=se.state,Pt=ht.dragChildrenKeys,Le=ht.flattenNodes,Ve=ht.keyEntities,Ot=ht.expandedKeys,Yt=ht.indent,un=se.props,tn=un.onDragOver,Lt=un.allowDrop,ln=un.direction;if(se.dragNodeProps){var $t=(0,st.OM)(We,se.dragNodeProps,it,Yt,se.dragStartMousePosition,Lt,Le,Ve,Ot,ln),ze=$t.dropPosition,yt=$t.dropLevelOffset,Ht=$t.dropTargetKey,en=$t.dropContainerKey,Ke=$t.dropTargetPos,xt=$t.dropAllowed,Zt=$t.dragOverNodeKey;Pt.includes(Ht)||!xt||(se.dragNodeProps.eventKey===Ht&&yt===0?se.state.dropPosition===null&&se.state.dropLevelOffset===null&&se.state.dropTargetKey===null&&se.state.dropContainerKey===null&&se.state.dropTargetPos===null&&se.state.dropAllowed===!1&&se.state.dragOverNodeKey===null||se.resetDragState():ze===se.state.dropPosition&&yt===se.state.dropLevelOffset&&Ht===se.state.dropTargetKey&&en===se.state.dropContainerKey&&Ke===se.state.dropTargetPos&&xt===se.state.dropAllowed&&Zt===se.state.dragOverNodeKey||se.setState({dropPosition:ze,dropLevelOffset:yt,dropTargetKey:Ht,dropContainerKey:en,dropTargetPos:Ke,dropAllowed:xt,dragOverNodeKey:Zt}),tn==null||tn({event:We,node:(0,Ce.F)(it)}))}}),(0,le.Z)((0,ye.Z)(se),"onNodeDragLeave",function(We,it){se.currentMouseOverDroppableNodeKey===it.eventKey&&!We.currentTarget.contains(We.relatedTarget)&&(se.resetDragState(),se.currentMouseOverDroppableNodeKey=null);var ht=se.props.onDragLeave;ht==null||ht({event:We,node:(0,Ce.F)(it)})}),(0,le.Z)((0,ye.Z)(se),"onWindowDragEnd",function(We){se.onNodeDragEnd(We,null,!0),window.removeEventListener("dragend",se.onWindowDragEnd)}),(0,le.Z)((0,ye.Z)(se),"onNodeDragEnd",function(We,it){var ht=se.props.onDragEnd;se.setState({dragOverNodeKey:null}),se.cleanDragState(),ht==null||ht({event:We,node:(0,Ce.F)(it)}),se.dragNodeProps=null,window.removeEventListener("dragend",se.onWindowDragEnd)}),(0,le.Z)((0,ye.Z)(se),"onNodeDrop",function(We,it){var ht,Pt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Le=se.state,Ve=Le.dragChildrenKeys,Ot=Le.dropPosition,Yt=Le.dropTargetKey,un=Le.dropTargetPos,tn=Le.dropAllowed;if(tn){var Lt=se.props.onDrop;if(se.setState({dragOverNodeKey:null}),se.cleanDragState(),Yt!==null){var ln=(0,ce.Z)((0,ce.Z)({},(0,Ce.H8)(Yt,se.getTreeNodeRequiredProps())),{},{active:((ht=se.getActiveItem())===null||ht===void 0?void 0:ht.key)===Yt,data:(0,rn.Z)(se.state.keyEntities,Yt).node}),$t=Ve.includes(Yt);(0,Me.ZP)(!$t,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var ze=(0,st.yx)(un),yt={event:We,node:(0,Ce.F)(ln),dragNode:se.dragNodeProps?(0,Ce.F)(se.dragNodeProps):null,dragNodesKeys:[se.dragNodeProps.eventKey].concat(Ve),dropToGap:Ot!==0,dropPosition:Ot+Number(ze[ze.length-1])};Pt||Lt==null||Lt(yt),se.dragNodeProps=null}}}),(0,le.Z)((0,ye.Z)(se),"cleanDragState",function(){var We=se.state.draggingNodeKey;We!==null&&se.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),se.dragStartMousePosition=null,se.currentMouseOverDroppableNodeKey=null}),(0,le.Z)((0,ye.Z)(se),"triggerExpandActionExpand",function(We,it){var ht=se.state,Pt=ht.expandedKeys,Le=ht.flattenNodes,Ve=it.expanded,Ot=it.key,Yt=it.isLeaf;if(!(Yt||We.shiftKey||We.metaKey||We.ctrlKey)){var un=Le.filter(function(Lt){return Lt.key===Ot})[0],tn=(0,Ce.F)((0,ce.Z)((0,ce.Z)({},(0,Ce.H8)(Ot,se.getTreeNodeRequiredProps())),{},{data:un.data}));se.setExpandedKeys(Ve?(0,st._5)(Pt,Ot):(0,st.L0)(Pt,Ot)),se.onNodeExpand(We,tn)}}),(0,le.Z)((0,ye.Z)(se),"onNodeClick",function(We,it){var ht=se.props,Pt=ht.onClick,Le=ht.expandAction;Le==="click"&&se.triggerExpandActionExpand(We,it),Pt==null||Pt(We,it)}),(0,le.Z)((0,ye.Z)(se),"onNodeDoubleClick",function(We,it){var ht=se.props,Pt=ht.onDoubleClick,Le=ht.expandAction;Le==="doubleClick"&&se.triggerExpandActionExpand(We,it),Pt==null||Pt(We,it)}),(0,le.Z)((0,ye.Z)(se),"onNodeSelect",function(We,it){var ht=se.state.selectedKeys,Pt=se.state,Le=Pt.keyEntities,Ve=Pt.fieldNames,Ot=se.props,Yt=Ot.onSelect,un=Ot.multiple,tn=it.selected,Lt=it[Ve.key],ln=!tn;ln?un?ht=(0,st.L0)(ht,Lt):ht=[Lt]:ht=(0,st._5)(ht,Lt);var $t=ht.map(function(ze){var yt=(0,rn.Z)(Le,ze);return yt?yt.node:null}).filter(Boolean);se.setUncontrolledState({selectedKeys:ht}),Yt==null||Yt(ht,{event:"select",selected:ln,node:it,selectedNodes:$t,nativeEvent:We.nativeEvent})}),(0,le.Z)((0,ye.Z)(se),"onNodeCheck",function(We,it,ht){var Pt=se.state,Le=Pt.keyEntities,Ve=Pt.checkedKeys,Ot=Pt.halfCheckedKeys,Yt=se.props,un=Yt.checkStrictly,tn=Yt.onCheck,Lt=it.key,ln,$t={event:"check",node:it,checked:ht,nativeEvent:We.nativeEvent};if(un){var ze=ht?(0,st.L0)(Ve,Lt):(0,st._5)(Ve,Lt),yt=(0,st._5)(Ot,Lt);ln={checked:ze,halfChecked:yt},$t.checkedNodes=ze.map(function(dt){return(0,rn.Z)(Le,dt)}).filter(Boolean).map(function(dt){return dt.node}),se.setUncontrolledState({checkedKeys:ze})}else{var Ht=(0,nt.S)([].concat((0,je.Z)(Ve),[Lt]),!0,Le),en=Ht.checkedKeys,Ke=Ht.halfCheckedKeys;if(!ht){var xt=new Set(en);xt.delete(Lt);var Zt=(0,nt.S)(Array.from(xt),{checked:!1,halfCheckedKeys:Ke},Le);en=Zt.checkedKeys,Ke=Zt.halfCheckedKeys}ln=en,$t.checkedNodes=[],$t.checkedNodesPositions=[],$t.halfCheckedKeys=Ke,en.forEach(function(dt){var At=(0,rn.Z)(Le,dt);if(At){var Ut=At.node,pn=At.pos;$t.checkedNodes.push(Ut),$t.checkedNodesPositions.push({node:Ut,pos:pn})}}),se.setUncontrolledState({checkedKeys:en},!1,{halfCheckedKeys:Ke})}tn==null||tn(ln,$t)}),(0,le.Z)((0,ye.Z)(se),"onNodeLoad",function(We){var it,ht=We.key,Pt=se.state.keyEntities,Le=(0,rn.Z)(Pt,ht);if(!(Le!=null&&(it=Le.children)!==null&&it!==void 0&&it.length)){var Ve=new Promise(function(Ot,Yt){se.setState(function(un){var tn=un.loadedKeys,Lt=tn===void 0?[]:tn,ln=un.loadingKeys,$t=ln===void 0?[]:ln,ze=se.props,yt=ze.loadData,Ht=ze.onLoad;if(!yt||Lt.includes(ht)||$t.includes(ht))return null;var en=yt(We);return en.then(function(){var Ke=se.state.loadedKeys,xt=(0,st.L0)(Ke,ht);Ht==null||Ht(xt,{event:"load",node:We}),se.setUncontrolledState({loadedKeys:xt}),se.setState(function(Zt){return{loadingKeys:(0,st._5)(Zt.loadingKeys,ht)}}),Ot()}).catch(function(Ke){if(se.setState(function(Zt){return{loadingKeys:(0,st._5)(Zt.loadingKeys,ht)}}),se.loadingRetryTimes[ht]=(se.loadingRetryTimes[ht]||0)+1,se.loadingRetryTimes[ht]>=kt){var xt=se.state.loadedKeys;(0,Me.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),se.setUncontrolledState({loadedKeys:(0,st.L0)(xt,ht)}),Ot()}Yt(Ke)}),{loadingKeys:(0,st.L0)($t,ht)}})});return Ve.catch(function(){}),Ve}}),(0,le.Z)((0,ye.Z)(se),"onNodeMouseEnter",function(We,it){var ht=se.props.onMouseEnter;ht==null||ht({event:We,node:it})}),(0,le.Z)((0,ye.Z)(se),"onNodeMouseLeave",function(We,it){var ht=se.props.onMouseLeave;ht==null||ht({event:We,node:it})}),(0,le.Z)((0,ye.Z)(se),"onNodeContextMenu",function(We,it){var ht=se.props.onRightClick;ht&&(We.preventDefault(),ht({event:We,node:it}))}),(0,le.Z)((0,ye.Z)(se),"onFocus",function(){var We=se.props.onFocus;se.setState({focused:!0});for(var it=arguments.length,ht=new Array(it),Pt=0;Pt<it;Pt++)ht[Pt]=arguments[Pt];We==null||We.apply(void 0,ht)}),(0,le.Z)((0,ye.Z)(se),"onBlur",function(){var We=se.props.onBlur;se.setState({focused:!1}),se.onActiveChange(null);for(var it=arguments.length,ht=new Array(it),Pt=0;Pt<it;Pt++)ht[Pt]=arguments[Pt];We==null||We.apply(void 0,ht)}),(0,le.Z)((0,ye.Z)(se),"getTreeNodeRequiredProps",function(){var We=se.state,it=We.expandedKeys,ht=We.selectedKeys,Pt=We.loadedKeys,Le=We.loadingKeys,Ve=We.checkedKeys,Ot=We.halfCheckedKeys,Yt=We.dragOverNodeKey,un=We.dropPosition,tn=We.keyEntities;return{expandedKeys:it||[],selectedKeys:ht||[],loadedKeys:Pt||[],loadingKeys:Le||[],checkedKeys:Ve||[],halfCheckedKeys:Ot||[],dragOverNodeKey:Yt,dropPosition:un,keyEntities:tn}}),(0,le.Z)((0,ye.Z)(se),"setExpandedKeys",function(We){var it=se.state,ht=it.treeData,Pt=it.fieldNames,Le=(0,Ce.oH)(ht,We,Pt);se.setUncontrolledState({expandedKeys:We,flattenNodes:Le},!0)}),(0,le.Z)((0,ye.Z)(se),"onNodeExpand",function(We,it){var ht=se.state.expandedKeys,Pt=se.state,Le=Pt.listChanging,Ve=Pt.fieldNames,Ot=se.props,Yt=Ot.onExpand,un=Ot.loadData,tn=it.expanded,Lt=it[Ve.key];if(!Le){var ln=ht.includes(Lt),$t=!tn;if((0,Me.ZP)(tn&&ln||!tn&&!ln,"Expand state not sync with index check"),ht=$t?(0,st.L0)(ht,Lt):(0,st._5)(ht,Lt),se.setExpandedKeys(ht),Yt==null||Yt(ht,{node:it,expanded:$t,nativeEvent:We.nativeEvent}),$t&&un){var ze=se.onNodeLoad(it);ze&&ze.then(function(){var yt=(0,Ce.oH)(se.state.treeData,ht,Ve);se.setUncontrolledState({flattenNodes:yt})}).catch(function(){var yt=se.state.expandedKeys,Ht=(0,st._5)(yt,Lt);se.setExpandedKeys(Ht)})}}}),(0,le.Z)((0,ye.Z)(se),"onListChangeStart",function(){se.setUncontrolledState({listChanging:!0})}),(0,le.Z)((0,ye.Z)(se),"onListChangeEnd",function(){setTimeout(function(){se.setUncontrolledState({listChanging:!1})})}),(0,le.Z)((0,ye.Z)(se),"onActiveChange",function(We){var it=se.state.activeKey,ht=se.props,Pt=ht.onActiveChange,Le=ht.itemScrollOffset,Ve=Le===void 0?0:Le;it!==We&&(se.setState({activeKey:We}),We!==null&&se.scrollTo({key:We,offset:Ve}),Pt==null||Pt(We))}),(0,le.Z)((0,ye.Z)(se),"getActiveItem",function(){var We=se.state,it=We.activeKey,ht=We.flattenNodes;return it===null?null:ht.find(function(Pt){var Le=Pt.key;return Le===it})||null}),(0,le.Z)((0,ye.Z)(se),"offsetActiveKey",function(We){var it=se.state,ht=it.flattenNodes,Pt=it.activeKey,Le=ht.findIndex(function(Yt){var un=Yt.key;return un===Pt});Le===-1&&We<0&&(Le=ht.length),Le=(Le+We+ht.length)%ht.length;var Ve=ht[Le];if(Ve){var Ot=Ve.key;se.onActiveChange(Ot)}else se.onActiveChange(null)}),(0,le.Z)((0,ye.Z)(se),"onKeyDown",function(We){var it=se.state,ht=it.activeKey,Pt=it.expandedKeys,Le=it.checkedKeys,Ve=it.fieldNames,Ot=se.props,Yt=Ot.onKeyDown,un=Ot.checkable,tn=Ot.selectable;switch(We.which){case tt.Z.UP:{se.offsetActiveKey(-1),We.preventDefault();break}case tt.Z.DOWN:{se.offsetActiveKey(1),We.preventDefault();break}}var Lt=se.getActiveItem();if(Lt&&Lt.data){var ln=se.getTreeNodeRequiredProps(),$t=Lt.data.isLeaf===!1||!!(Lt.data[Ve.children]||[]).length,ze=(0,Ce.F)((0,ce.Z)((0,ce.Z)({},(0,Ce.H8)(ht,ln)),{},{data:Lt.data,active:!0}));switch(We.which){case tt.Z.LEFT:{$t&&Pt.includes(ht)?se.onNodeExpand({},ze):Lt.parent&&se.onActiveChange(Lt.parent.key),We.preventDefault();break}case tt.Z.RIGHT:{$t&&!Pt.includes(ht)?se.onNodeExpand({},ze):Lt.children&&Lt.children.length&&se.onActiveChange(Lt.children[0].key),We.preventDefault();break}case tt.Z.ENTER:case tt.Z.SPACE:{un&&!ze.disabled&&ze.checkable!==!1&&!ze.disableCheckbox?se.onNodeCheck({},ze,!Le.includes(ht)):!un&&tn&&!ze.disabled&&ze.selectable!==!1&&se.onNodeSelect({},ze);break}}}Yt==null||Yt(We)}),(0,le.Z)((0,ye.Z)(se),"setUncontrolledState",function(We){var it=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ht=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!se.destroyed){var Pt=!1,Le=!0,Ve={};Object.keys(We).forEach(function(Ot){if(se.props.hasOwnProperty(Ot)){Le=!1;return}Pt=!0,Ve[Ot]=We[Ot]}),Pt&&(!it||Le)&&se.setState((0,ce.Z)((0,ce.Z)({},Ve),ht))}}),(0,le.Z)((0,ye.Z)(se),"scrollTo",function(We){se.listRef.current.scrollTo(We)}),se}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 Oe=this.props,bt=Oe.activeKey,Ge=Oe.itemScrollOffset,We=Ge===void 0?0:Ge;bt!==void 0&&bt!==this.state.activeKey&&(this.setState({activeKey:bt}),bt!==null&&this.scrollTo({key:bt,offset:We}))}},{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 Oe=this.state,bt=Oe.focused,Ge=Oe.flattenNodes,We=Oe.keyEntities,it=Oe.draggingNodeKey,ht=Oe.activeKey,Pt=Oe.dropLevelOffset,Le=Oe.dropContainerKey,Ve=Oe.dropTargetKey,Ot=Oe.dropPosition,Yt=Oe.dragOverNodeKey,un=Oe.indent,tn=this.props,Lt=tn.prefixCls,ln=tn.className,$t=tn.style,ze=tn.showLine,yt=tn.focusable,Ht=tn.tabIndex,en=Ht===void 0?0:Ht,Ke=tn.selectable,xt=tn.showIcon,Zt=tn.icon,dt=tn.switcherIcon,At=tn.draggable,Ut=tn.checkable,pn=tn.checkStrictly,On=tn.disabled,mn=tn.motion,Bn=tn.loadData,Dt=tn.filterTreeNode,hn=tn.height,Wt=tn.itemHeight,an=tn.scrollWidth,Vt=tn.virtual,cn=tn.titleRender,on=tn.dropIndicatorRender,Zn=tn.onContextMenu,_n=tn.onScroll,Nn=tn.direction,jn=tn.rootClassName,Gn=tn.rootStyle,$n=(0,He.Z)(this.props,{aria:!0,data:!0}),lr;At&&((0,he.Z)(At)==="object"?lr=At:typeof At=="function"?lr={nodeDraggable:At}:lr={});var nr={prefixCls:Lt,selectable:Ke,showIcon:xt,icon:Zt,switcherIcon:dt,draggable:lr,draggingNodeKey:it,checkable:Ut,checkStrictly:pn,disabled:On,keyEntities:We,dropLevelOffset:Pt,dropContainerKey:Le,dropTargetKey:Ve,dropPosition:Ot,dragOverNodeKey:Yt,indent:un,direction:Nn,dropIndicatorRender:on,loadData:Bn,filterTreeNode:Dt,titleRender:cn,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 Ee.createElement(we.k.Provider,{value:nr},Ee.createElement("div",{className:Ie()(Lt,ln,jn,(0,le.Z)((0,le.Z)((0,le.Z)({},"".concat(Lt,"-show-line"),ze),"".concat(Lt,"-focused"),bt),"".concat(Lt,"-active-focused"),ht!==null)),style:Gn},Ee.createElement(at,(0,y.Z)({ref:this.listRef,prefixCls:Lt,style:$t,data:Ge,disabled:On,selectable:Ke,checkable:!!Ut,motion:mn,dragging:it!==null,height:hn,itemHeight:Wt,virtual:Vt,focusable:yt,focused:bt,tabIndex:en,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Zn,onScroll:_n,scrollWidth:an},this.getTreeNodeRequiredProps(),$n))))}}],[{key:"getDerivedStateFromProps",value:function(Oe,bt){var Ge=bt.prevProps,We={prevProps:Oe};function it(en){return!Ge&&Oe.hasOwnProperty(en)||Ge&&Ge[en]!==Oe[en]}var ht,Pt=bt.fieldNames;if(it("fieldNames")&&(Pt=(0,Ce.w$)(Oe.fieldNames),We.fieldNames=Pt),it("treeData")?ht=Oe.treeData:it("children")&&((0,Me.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),ht=(0,Ce.zn)(Oe.children)),ht){We.treeData=ht;var Le=(0,Ce.I8)(ht,{fieldNames:Pt});We.keyEntities=(0,ce.Z)((0,le.Z)({},ge,_t),Le.keyEntities)}var Ve=We.keyEntities||bt.keyEntities;if(it("expandedKeys")||Ge&&it("autoExpandParent"))We.expandedKeys=Oe.autoExpandParent||!Ge&&Oe.defaultExpandParent?(0,st.r7)(Oe.expandedKeys,Ve):Oe.expandedKeys;else if(!Ge&&Oe.defaultExpandAll){var Ot=(0,ce.Z)({},Ve);delete Ot[ge];var Yt=[];Object.keys(Ot).forEach(function(en){var Ke=Ot[en];Ke.children&&Ke.children.length&&Yt.push(Ke.key)}),We.expandedKeys=Yt}else!Ge&&Oe.defaultExpandedKeys&&(We.expandedKeys=Oe.autoExpandParent||Oe.defaultExpandParent?(0,st.r7)(Oe.defaultExpandedKeys,Ve):Oe.defaultExpandedKeys);if(We.expandedKeys||delete We.expandedKeys,ht||We.expandedKeys){var un=(0,Ce.oH)(ht||bt.treeData,We.expandedKeys||bt.expandedKeys,Pt);We.flattenNodes=un}if(Oe.selectable&&(it("selectedKeys")?We.selectedKeys=(0,st.BT)(Oe.selectedKeys,Oe):!Ge&&Oe.defaultSelectedKeys&&(We.selectedKeys=(0,st.BT)(Oe.defaultSelectedKeys,Oe))),Oe.checkable){var tn;if(it("checkedKeys")?tn=(0,st.E6)(Oe.checkedKeys)||{}:!Ge&&Oe.defaultCheckedKeys?tn=(0,st.E6)(Oe.defaultCheckedKeys)||{}:ht&&(tn=(0,st.E6)(Oe.checkedKeys)||{checkedKeys:bt.checkedKeys,halfCheckedKeys:bt.halfCheckedKeys}),tn){var Lt=tn,ln=Lt.checkedKeys,$t=ln===void 0?[]:ln,ze=Lt.halfCheckedKeys,yt=ze===void 0?[]:ze;if(!Oe.checkStrictly){var Ht=(0,nt.S)($t,!0,Ve);$t=Ht.checkedKeys,yt=Ht.halfCheckedKeys}We.checkedKeys=$t,We.halfCheckedKeys=yt}}return it("loadedKeys")&&(We.loadedKeys=Oe.loadedKeys),We}}]),ne}(Ee.Component);(0,le.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:Xe,allowDrop:function(){return!0},expandAction:!1}),(0,le.Z)(ae,"TreeNode",ot.Z);var re=ae,te=re},82661:function(bn,zt,z){"use strict";z.d(zt,{BT:function(){return Ee},E6:function(){return Xe},L0:function(){return le},OM:function(){return Me},_5:function(){return pe},r7:function(){return ft},wA:function(){return Ie},yx:function(){return Re}});var y=z(94480),he=z(76190),ce=z(48736),je=z(59301),ve=z(639),me=z(65065),ye=z(34061),Ae=null;function pe(Pe,Fe){if(!Pe)return[];var Ze=Pe.slice(),$e=Ze.indexOf(Fe);return $e>=0&&Ze.splice($e,1),Ze}function le(Pe,Fe){var Ze=(Pe||[]).slice();return Ze.indexOf(Fe)===-1&&Ze.push(Fe),Ze}function Re(Pe){return Pe.split("-")}function Ie(Pe,Fe){var Ze=[],$e=(0,me.Z)(Fe,Pe);function gt(){var ot=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];ot.forEach(function(Qe){var ct=Qe.key,Ce=Qe.children;Ze.push(ct),gt(Ce)})}return gt($e.children),Ze}function tt(Pe){if(Pe.parent){var Fe=Re(Pe.pos);return Number(Fe[Fe.length-1])===Pe.parent.children.length-1}return!1}function He(Pe){var Fe=Re(Pe.pos);return Number(Fe[Fe.length-1])===0}function Me(Pe,Fe,Ze,$e,gt,ot,Qe,ct,Ce,et){var Te,ue=Pe.clientX,mt=Pe.clientY,_e=Pe.target.getBoundingClientRect(),lt=_e.top,Mt=_e.height,be=(et==="rtl"?-1:1)*(((gt==null?void 0:gt.x)||0)-ue),ge=(be-12)/$e,Ft=Ce.filter(function(te){var oe;return(oe=ct[te])===null||oe===void 0||(oe=oe.children)===null||oe===void 0?void 0:oe.length}),_t=(0,me.Z)(ct,Ze.eventKey);if(mt<lt+Mt/2){var Tt=Qe.findIndex(function(te){return te.key===_t.key}),xe=Tt<=0?0:Tt-1,rt=Qe[xe].key;_t=(0,me.Z)(ct,rt)}var qe=_t.key,Gt=_t,at=_t.key,st=0,nt=0;if(!Ft.includes(qe))for(var rn=0;rn<ge&&tt(_t);rn+=1)_t=_t.parent,nt+=1;var kt=Fe.data,ae=_t.node,re=!0;return He(_t)&&_t.level===0&&mt<lt+Mt/2&&ot({dragNode:kt,dropNode:ae,dropPosition:-1})&&_t.key===Ze.eventKey?st=-1:(Gt.children||[]).length&&Ft.includes(at)?ot({dragNode:kt,dropNode:ae,dropPosition:0})?st=0:re=!1:nt===0?ge>-1.5?ot({dragNode:kt,dropNode:ae,dropPosition:1})?st=1:re=!1:ot({dragNode:kt,dropNode:ae,dropPosition:0})?st=0:ot({dragNode:kt,dropNode:ae,dropPosition:1})?st=1:re=!1:ot({dragNode:kt,dropNode:ae,dropPosition:1})?st=1:re=!1,{dropPosition:st,dropLevelOffset:nt,dropTargetKey:_t.key,dropTargetPos:_t.pos,dragOverNodeKey:at,dropContainerKey:st===0?null:((Te=_t.parent)===null||Te===void 0?void 0:Te.key)||null,dropAllowed:re}}function Ee(Pe,Fe){if(Pe){var Ze=Fe.multiple;return Ze?Pe.slice():Pe.length?[Pe[0]]:Pe}}var we=function(Fe){return Fe};function Ne(Pe,Fe){if(!Pe)return[];var Ze=Fe||{},$e=Ze.processProps,gt=$e===void 0?we:$e,ot=Array.isArray(Pe)?Pe:[Pe];return ot.map(function(Qe){var ct=Qe.children,Ce=_objectWithoutProperties(Qe,Ae),et=Ne(ct,Fe);return React.createElement(TreeNode,_extends({key:Ce.key},gt(Ce)),et)})}function Xe(Pe){if(!Pe)return null;var Fe;if(Array.isArray(Pe))Fe={checkedKeys:Pe,halfCheckedKeys:void 0};else if((0,he.Z)(Pe)==="object")Fe={checkedKeys:Pe.checked||void 0,halfCheckedKeys:Pe.halfChecked||void 0};else return(0,ce.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return Fe}function ft(Pe,Fe){var Ze=new Set;function $e(gt){if(!Ze.has(gt)){var ot=(0,me.Z)(Fe,gt);if(ot){Ze.add(gt);var Qe=ot.parent,ct=ot.node;ct.disabled||Qe&&$e(Qe.key)}}}return(Pe||[]).forEach(function(gt){$e(gt)}),(0,y.Z)(Ze)}},34643:function(bn,zt,z){"use strict";z.d(zt,{S:function(){return ye}});var y=z(48736),he=z(65065);function ce(Ae,pe){var le=new Set;return Ae.forEach(function(Re){pe.has(Re)||le.add(Re)}),le}function je(Ae){var pe=Ae||{},le=pe.disabled,Re=pe.disableCheckbox,Ie=pe.checkable;return!!(le||Re)||Ie===!1}function ve(Ae,pe,le,Re){for(var Ie=new Set(Ae),tt=new Set,He=0;He<=le;He+=1){var Me=pe.get(He)||new Set;Me.forEach(function(Xe){var ft=Xe.key,Pe=Xe.node,Fe=Xe.children,Ze=Fe===void 0?[]:Fe;Ie.has(ft)&&!Re(Pe)&&Ze.filter(function($e){return!Re($e.node)}).forEach(function($e){Ie.add($e.key)})})}for(var Ee=new Set,we=le;we>=0;we-=1){var Ne=pe.get(we)||new Set;Ne.forEach(function(Xe){var ft=Xe.parent,Pe=Xe.node;if(!(Re(Pe)||!Xe.parent||Ee.has(Xe.parent.key))){if(Re(Xe.parent.node)){Ee.add(ft.key);return}var Fe=!0,Ze=!1;(ft.children||[]).filter(function($e){return!Re($e.node)}).forEach(function($e){var gt=$e.key,ot=Ie.has(gt);Fe&&!ot&&(Fe=!1),!Ze&&(ot||tt.has(gt))&&(Ze=!0)}),Fe&&Ie.add(ft.key),Ze&&tt.add(ft.key),Ee.add(ft.key)}})}return{checkedKeys:Array.from(Ie),halfCheckedKeys:Array.from(ce(tt,Ie))}}function me(Ae,pe,le,Re,Ie){for(var tt=new Set(Ae),He=new Set(pe),Me=0;Me<=Re;Me+=1){var Ee=le.get(Me)||new Set;Ee.forEach(function(ft){var Pe=ft.key,Fe=ft.node,Ze=ft.children,$e=Ze===void 0?[]:Ze;!tt.has(Pe)&&!He.has(Pe)&&!Ie(Fe)&&$e.filter(function(gt){return!Ie(gt.node)}).forEach(function(gt){tt.delete(gt.key)})})}He=new Set;for(var we=new Set,Ne=Re;Ne>=0;Ne-=1){var Xe=le.get(Ne)||new Set;Xe.forEach(function(ft){var Pe=ft.parent,Fe=ft.node;if(!(Ie(Fe)||!ft.parent||we.has(ft.parent.key))){if(Ie(ft.parent.node)){we.add(Pe.key);return}var Ze=!0,$e=!1;(Pe.children||[]).filter(function(gt){return!Ie(gt.node)}).forEach(function(gt){var ot=gt.key,Qe=tt.has(ot);Ze&&!Qe&&(Ze=!1),!$e&&(Qe||He.has(ot))&&($e=!0)}),Ze||tt.delete(Pe.key),$e&&He.add(Pe.key),we.add(Pe.key)}})}return{checkedKeys:Array.from(tt),halfCheckedKeys:Array.from(ce(He,tt))}}function ye(Ae,pe,le,Re){var Ie=[],tt;Re?tt=Re:tt=je;var He=new Set(Ae.filter(function(Ne){var Xe=!!(0,he.Z)(le,Ne);return Xe||Ie.push(Ne),Xe})),Me=new Map,Ee=0;Object.keys(le).forEach(function(Ne){var Xe=le[Ne],ft=Xe.level,Pe=Me.get(ft);Pe||(Pe=new Set,Me.set(ft,Pe)),Pe.add(Xe),Ee=Math.max(Ee,ft)}),(0,y.ZP)(!Ie.length,"Tree missing follow keys: ".concat(Ie.slice(0,100).map(function(Ne){return"'".concat(Ne,"'")}).join(", ")));var we;return pe===!0?we=ve(He,Me,Ee,tt):we=me(He,pe.halfCheckedKeys,Me,Ee,tt),we}},65065:function(bn,zt,z){"use strict";z.d(zt,{Z:function(){return y}});function y(he,ce){return he[ce]}},34061:function(bn,zt,z){"use strict";z.d(zt,{F:function(){return ft},H8:function(){return Xe},I8:function(){return Ne},km:function(){return Ie},oH:function(){return Ee},w$:function(){return tt},zn:function(){return Me}});var y=z(76190),he=z(94480),ce=z(33885),je=z(75931),ve=z(11592),me=z(2738),ye=z(48736),Ae=z(65065),pe=["children"];function le(Pe,Fe){return"".concat(Pe,"-").concat(Fe)}function Re(Pe){return Pe&&Pe.type&&Pe.type.isTreeNode}function Ie(Pe,Fe){return Pe!=null?Pe:Fe}function tt(Pe){var Fe=Pe||{},Ze=Fe.title,$e=Fe._title,gt=Fe.key,ot=Fe.children,Qe=Ze||"title";return{title:Qe,_title:$e||[Qe],key:gt||"key",children:ot||"children"}}function He(Pe,Fe){var Ze=new Map;function $e(gt){var ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(gt||[]).forEach(function(Qe){var ct=Qe[Fe.key],Ce=Qe[Fe.children];warning(ct!=null,"Tree node must have a certain key: [".concat(ot).concat(ct,"]"));var et=String(ct);warning(!Ze.has(et)||ct===null||ct===void 0,"Same 'key' exist in the Tree: ".concat(et)),Ze.set(et,!0),$e(Ce,"".concat(ot).concat(et," > "))})}$e(Pe)}function Me(Pe){function Fe(Ze){var $e=(0,ve.Z)(Ze);return $e.map(function(gt){if(!Re(gt))return(0,ye.ZP)(!gt,"Tree/TreeNode can only accept TreeNode as children."),null;var ot=gt.key,Qe=gt.props,ct=Qe.children,Ce=(0,je.Z)(Qe,pe),et=(0,ce.Z)({key:ot},Ce),Te=Fe(ct);return Te.length&&(et.children=Te),et}).filter(function(gt){return gt})}return Fe(Pe)}function Ee(Pe,Fe,Ze){var $e=tt(Ze),gt=$e._title,ot=$e.key,Qe=$e.children,ct=new Set(Fe===!0?[]:Fe),Ce=[];function et(Te){var ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Te.map(function(mt,_e){for(var lt=le(ue?ue.pos:"0",_e),Mt=Ie(mt[ot],lt),be,ge=0;ge<gt.length;ge+=1){var Ft=gt[ge];if(mt[Ft]!==void 0){be=mt[Ft];break}}var _t=Object.assign((0,me.Z)(mt,[].concat((0,he.Z)(gt),[ot,Qe])),{title:be,key:Mt,parent:ue,pos:lt,children:null,data:mt,isStart:[].concat((0,he.Z)(ue?ue.isStart:[]),[_e===0]),isEnd:[].concat((0,he.Z)(ue?ue.isEnd:[]),[_e===Te.length-1])});return Ce.push(_t),Fe===!0||ct.has(Mt)?_t.children=et(mt[Qe]||[],_t):_t.children=[],_t})}return et(Pe),Ce}function we(Pe,Fe,Ze){var $e={};(0,y.Z)(Ze)==="object"?$e=Ze:$e={externalGetKey:Ze},$e=$e||{};var gt=$e,ot=gt.childrenPropName,Qe=gt.externalGetKey,ct=gt.fieldNames,Ce=tt(ct),et=Ce.key,Te=Ce.children,ue=ot||Te,mt;Qe?typeof Qe=="string"?mt=function(Mt){return Mt[Qe]}:typeof Qe=="function"&&(mt=function(Mt){return Qe(Mt)}):mt=function(Mt,be){return Ie(Mt[et],be)};function _e(lt,Mt,be,ge){var Ft=lt?lt[ue]:Pe,_t=lt?le(be.pos,Mt):"0",Tt=lt?[].concat((0,he.Z)(ge),[lt]):[];if(lt){var xe=mt(lt,_t),rt={node:lt,index:Mt,pos:_t,key:xe,parentPos:be.node?be.pos:null,level:be.level+1,nodes:Tt};Fe(rt)}Ft&&Ft.forEach(function(qe,Gt){_e(qe,Gt,{node:lt,pos:_t,level:be?be.level+1:-1},Tt)})}_e(null)}function Ne(Pe){var Fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ze=Fe.initWrapper,$e=Fe.processEntity,gt=Fe.onProcessFinished,ot=Fe.externalGetKey,Qe=Fe.childrenPropName,ct=Fe.fieldNames,Ce=arguments.length>2?arguments[2]:void 0,et=ot||Ce,Te={},ue={},mt={posEntities:Te,keyEntities:ue};return Ze&&(mt=Ze(mt)||mt),we(Pe,function(_e){var lt=_e.node,Mt=_e.index,be=_e.pos,ge=_e.key,Ft=_e.parentPos,_t=_e.level,Tt=_e.nodes,xe={node:lt,nodes:Tt,index:Mt,key:ge,pos:be,level:_t},rt=Ie(ge,be);Te[be]=xe,ue[rt]=xe,xe.parent=Te[Ft],xe.parent&&(xe.parent.children=xe.parent.children||[],xe.parent.children.push(xe)),$e&&$e(xe,mt)},{externalGetKey:et,childrenPropName:Qe,fieldNames:ct}),gt&&gt(mt),mt}function Xe(Pe,Fe){var Ze=Fe.expandedKeys,$e=Fe.selectedKeys,gt=Fe.loadedKeys,ot=Fe.loadingKeys,Qe=Fe.checkedKeys,ct=Fe.halfCheckedKeys,Ce=Fe.dragOverNodeKey,et=Fe.dropPosition,Te=Fe.keyEntities,ue=(0,Ae.Z)(Te,Pe),mt={eventKey:Pe,expanded:Ze.indexOf(Pe)!==-1,selected:$e.indexOf(Pe)!==-1,loaded:gt.indexOf(Pe)!==-1,loading:ot.indexOf(Pe)!==-1,checked:Qe.indexOf(Pe)!==-1,halfChecked:ct.indexOf(Pe)!==-1,pos:String(ue?ue.pos:""),dragOver:Ce===Pe&&et===0,dragOverGapTop:Ce===Pe&&et===-1,dragOverGapBottom:Ce===Pe&&et===1};return mt}function ft(Pe){var Fe=Pe.data,Ze=Pe.expanded,$e=Pe.selected,gt=Pe.checked,ot=Pe.loaded,Qe=Pe.loading,ct=Pe.halfChecked,Ce=Pe.dragOver,et=Pe.dragOverGapTop,Te=Pe.dragOverGapBottom,ue=Pe.pos,mt=Pe.active,_e=Pe.eventKey,lt=(0,ce.Z)((0,ce.Z)({},Fe),{},{expanded:Ze,selected:$e,checked:gt,loaded:ot,loading:Qe,halfChecked:ct,dragOver:Ce,dragOverGapTop:et,dragOverGapBottom:Te,pos:ue,active:mt,key:_e});return"props"in lt||Object.defineProperty(lt,"props",{get:function(){return(0,ye.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),Pe}}),lt}},8224:function(bn,zt,z){"use strict";z.d(zt,{Z:function(){return he}});var y=z(4676);function he(ce,je,ve,me){var ye=y.unstable_batchedUpdates?function(pe){y.unstable_batchedUpdates(ve,pe)}:ve;return ce!=null&&ce.addEventListener&&ce.addEventListener(je,ye,me),{remove:function(){ce!=null&&ce.removeEventListener&&ce.removeEventListener(je,ye,me)}}}},3465:function(bn,zt,z){"use strict";z.d(zt,{G:function(){return je}});var y=z(47273),he=function(me){if((0,y.Z)()&&window.document.documentElement){var ye=Array.isArray(me)?me:[me],Ae=window.document.documentElement;return ye.some(function(pe){return pe in Ae.style})}return!1},ce=function(me,ye){if(!he(me))return!1;var Ae=document.createElement("div"),pe=Ae.style[me];return Ae.style[me]=ye,Ae.style[me]!==pe};function je(ve,me){return!Array.isArray(ve)&&me!==void 0?ce(ve,me):he(ve)}},48911:function(bn,zt,z){"use strict";z.d(zt,{Z:function(){return kt}});var y=z(54476),he=z(76190),ce=z(33885),je=z(20068),ve=z(42978),me=z(75931),ye=z(92310),Ae=z.n(ye),pe=z(29301),le=z(70425),Re=z(34280),Ie=z(59301),tt=z(4676),He=Ie.forwardRef(function(ae,re){var te=ae.height,oe=ae.offsetY,de=ae.offsetX,ne=ae.children,se=ae.prefixCls,Oe=ae.onInnerResize,bt=ae.innerProps,Ge=ae.rtl,We=ae.extra,it={},ht={display:"flex",flexDirection:"column"};return oe!==void 0&&(it={height:te,position:"relative",overflow:"hidden"},ht=(0,ce.Z)((0,ce.Z)({},ht),{},(0,je.Z)((0,je.Z)((0,je.Z)((0,je.Z)((0,je.Z)({transform:"translateY(".concat(oe,"px)")},Ge?"marginRight":"marginLeft",-de),"position","absolute"),"left",0),"right",0),"top",0))),Ie.createElement("div",{style:it},Ie.createElement(pe.Z,{onResize:function(Le){var Ve=Le.offsetHeight;Ve&&Oe&&Oe()}},Ie.createElement("div",(0,y.Z)({style:ht,className:Ae()((0,je.Z)({},"".concat(se,"-holder-inner"),se)),ref:re},bt),ne,We)))});He.displayName="Filler";var Me=He;function Ee(ae){var re=ae.children,te=ae.setRef,oe=Ie.useCallback(function(de){te(de)},[]);return Ie.cloneElement(re,{ref:oe})}function we(ae,re,te,oe,de,ne,se,Oe){var bt=Oe.getKey;return ae.slice(re,te+1).map(function(Ge,We){var it=re+We,ht=se(Ge,it,{style:{width:oe},offsetX:de}),Pt=bt(Ge);return Ie.createElement(Ee,{key:Pt,setRef:function(Ve){return ne(Ge,Ve)}},ht)})}function Ne(ae,re,te,oe){var de=te-ae,ne=re-te,se=Math.min(de,ne)*2;if(oe<=se){var Oe=Math.floor(oe/2);return oe%2?te+Oe+1:te-Oe}return de>ne?te-(oe-ne):te+(oe-de)}function Xe(ae,re,te){var oe=ae.length,de=re.length,ne,se;if(oe===0&&de===0)return null;oe<de?(ne=ae,se=re):(ne=re,se=ae);var Oe={__EMPTY_ITEM__:!0};function bt(Le){return Le!==void 0?te(Le):Oe}for(var Ge=null,We=Math.abs(oe-de)!==1,it=0;it<se.length;it+=1){var ht=bt(ne[it]),Pt=bt(se[it]);if(ht!==Pt){Ge=it,We=We||ht!==bt(se[it+1]);break}}return Ge===null?null:{index:Ge,multiple:We}}function ft(ae,re,te){var oe=Ie.useState(ae),de=(0,ve.Z)(oe,2),ne=de[0],se=de[1],Oe=Ie.useState(null),bt=(0,ve.Z)(Oe,2),Ge=bt[0],We=bt[1];return Ie.useEffect(function(){var it=Xe(ne||[],ae||[],re);(it==null?void 0:it.index)!==void 0&&(te==null||te(it.index),We(ae[it.index])),se(ae)},[ae]),[Ge]}var Pe=z(16089),Fe=(typeof navigator=="undefined"?"undefined":(0,he.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Ze=Fe,$e=function(ae,re,te,oe){var de=(0,Ie.useRef)(!1),ne=(0,Ie.useRef)(null);function se(){clearTimeout(ne.current),de.current=!0,ne.current=setTimeout(function(){de.current=!1},50)}var Oe=(0,Ie.useRef)({top:ae,bottom:re,left:te,right:oe});return Oe.current.top=ae,Oe.current.bottom=re,Oe.current.left=te,Oe.current.right=oe,function(bt,Ge){var We=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,it=bt?Ge<0&&Oe.current.left||Ge>0&&Oe.current.right:Ge<0&&Oe.current.top||Ge>0&&Oe.current.bottom;return We&&it?(clearTimeout(ne.current),de.current=!1):(!it||de.current)&&se(),!de.current&&it}};function gt(ae,re,te,oe,de,ne,se){var Oe=(0,Ie.useRef)(0),bt=(0,Ie.useRef)(null),Ge=(0,Ie.useRef)(null),We=(0,Ie.useRef)(!1),it=$e(re,te,oe,de);function ht(un,tn){if(Pe.Z.cancel(bt.current),!it(!1,tn)){var Lt=un;if(!Lt._virtualHandled)Lt._virtualHandled=!0;else return;Oe.current+=tn,Ge.current=tn,Ze||Lt.preventDefault(),bt.current=(0,Pe.Z)(function(){var ln=We.current?10:1;se(Oe.current*ln,!1),Oe.current=0})}}function Pt(un,tn){se(tn,!0),Ze||un.preventDefault()}var Le=(0,Ie.useRef)(null),Ve=(0,Ie.useRef)(null);function Ot(un){if(ae){Pe.Z.cancel(Ve.current),Ve.current=(0,Pe.Z)(function(){Le.current=null},2);var tn=un.deltaX,Lt=un.deltaY,ln=un.shiftKey,$t=tn,ze=Lt;(Le.current==="sx"||!Le.current&&ln&&Lt&&!tn)&&($t=Lt,ze=0,Le.current="sx");var yt=Math.abs($t),Ht=Math.abs(ze);Le.current===null&&(Le.current=ne&&yt>Ht?"x":"y"),Le.current==="y"?ht(un,ze):Pt(un,$t)}}function Yt(un){ae&&(We.current=un.detail===Ge.current)}return[Ot,Yt]}function ot(ae,re,te,oe){var de=Ie.useMemo(function(){return[new Map,[]]},[ae,te.id,oe]),ne=(0,ve.Z)(de,2),se=ne[0],Oe=ne[1],bt=function(We){var it=arguments.length>1&&arguments[1]!==void 0?arguments[1]:We,ht=se.get(We),Pt=se.get(it);if(ht===void 0||Pt===void 0)for(var Le=ae.length,Ve=Oe.length;Ve<Le;Ve+=1){var Ot,Yt=ae[Ve],un=re(Yt);se.set(un,Ve);var tn=(Ot=te.get(un))!==null&&Ot!==void 0?Ot:oe;if(Oe[Ve]=(Oe[Ve-1]||0)+tn,un===We&&(ht=Ve),un===it&&(Pt=Ve),ht!==void 0&&Pt!==void 0)break}return{top:Oe[ht-1]||0,bottom:Oe[Pt]}};return bt}var Qe=z(67732),ct=z(83652),Ce=function(){function ae(){(0,Qe.Z)(this,ae),(0,je.Z)(this,"maps",void 0),(0,je.Z)(this,"id",0),(0,je.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,ct.Z)(ae,[{key:"set",value:function(te,oe){this.diffRecords.set(te,this.maps[te]),this.maps[te]=oe,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=Ce;function Te(ae){var re=parseFloat(ae);return isNaN(re)?0:re}function ue(ae,re,te){var oe=Ie.useState(0),de=(0,ve.Z)(oe,2),ne=de[0],se=de[1],Oe=(0,Ie.useRef)(new Map),bt=(0,Ie.useRef)(new et),Ge=(0,Ie.useRef)(0);function We(){Ge.current+=1}function it(){var Pt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;We();var Le=function(){var Yt=!1;Oe.current.forEach(function(un,tn){if(un&&un.offsetParent){var Lt=un.offsetHeight,ln=getComputedStyle(un),$t=ln.marginTop,ze=ln.marginBottom,yt=Te($t),Ht=Te(ze),en=Lt+yt+Ht;bt.current.get(tn)!==en&&(bt.current.set(tn,en),Yt=!0)}}),Yt&&se(function(un){return un+1})};if(Pt)Le();else{Ge.current+=1;var Ve=Ge.current;Promise.resolve().then(function(){Ve===Ge.current&&Le()})}}function ht(Pt,Le){var Ve=ae(Pt),Ot=Oe.current.get(Ve);Le?(Oe.current.set(Ve,Le),it()):Oe.current.delete(Ve),!Ot!=!Le&&(Le?re==null||re(Pt):te==null||te(Pt))}return(0,Ie.useEffect)(function(){return We},[]),[ht,it,bt.current,ne]}var mt=14/15;function _e(ae,re,te){var oe=(0,Ie.useRef)(!1),de=(0,Ie.useRef)(0),ne=(0,Ie.useRef)(0),se=(0,Ie.useRef)(null),Oe=(0,Ie.useRef)(null),bt,Ge=function(Pt){if(oe.current){var Le=Math.ceil(Pt.touches[0].pageX),Ve=Math.ceil(Pt.touches[0].pageY),Ot=de.current-Le,Yt=ne.current-Ve,un=Math.abs(Ot)>Math.abs(Yt);un?de.current=Le:ne.current=Ve;var tn=te(un,un?Ot:Yt,!1,Pt);tn&&Pt.preventDefault(),clearInterval(Oe.current),tn&&(Oe.current=setInterval(function(){un?Ot*=mt:Yt*=mt;var Lt=Math.floor(un?Ot:Yt);(!te(un,Lt,!0)||Math.abs(Lt)<=.1)&&clearInterval(Oe.current)},16))}},We=function(){oe.current=!1,bt()},it=function(Pt){bt(),Pt.touches.length===1&&!oe.current&&(oe.current=!0,de.current=Math.ceil(Pt.touches[0].pageX),ne.current=Math.ceil(Pt.touches[0].pageY),se.current=Pt.target,se.current.addEventListener("touchmove",Ge,{passive:!1}),se.current.addEventListener("touchend",We,{passive:!0}))};bt=function(){se.current&&(se.current.removeEventListener("touchmove",Ge),se.current.removeEventListener("touchend",We))},(0,Re.Z)(function(){return ae&&re.current.addEventListener("touchstart",it,{passive:!0}),function(){var ht;(ht=re.current)===null||ht===void 0||ht.removeEventListener("touchstart",it),bt(),clearInterval(Oe.current)}},[ae])}function lt(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 be(ae,re,te){Ie.useEffect(function(){var oe=re.current;if(ae&&oe){var de=!1,ne,se,Oe=function(){Pe.Z.cancel(ne)},bt=function ht(){Oe(),ne=(0,Pe.Z)(function(){te(se),ht()})},Ge=function(){de=!1,Oe()},We=function(Pt){if(!(Pt.target.draggable||Pt.button!==0)){var Le=Pt;Le._virtualHandled||(Le._virtualHandled=!0,de=!0)}},it=function(Pt){if(de){var Le=Mt(Pt,!1),Ve=oe.getBoundingClientRect(),Ot=Ve.top,Yt=Ve.bottom;if(Le<=Ot){var un=Ot-Le;se=-lt(un),bt()}else if(Le>=Yt){var tn=Le-Yt;se=lt(tn),bt()}else Oe()}};return oe.addEventListener("mousedown",We),oe.ownerDocument.addEventListener("mouseup",Ge),oe.ownerDocument.addEventListener("mousemove",it),oe.ownerDocument.addEventListener("dragend",Ge),function(){oe.removeEventListener("mousedown",We),oe.ownerDocument.removeEventListener("mouseup",Ge),oe.ownerDocument.removeEventListener("mousemove",it),oe.ownerDocument.removeEventListener("dragend",Ge),Oe()}}},[ae])}var ge=10;function Ft(ae,re,te,oe,de,ne,se,Oe){var bt=Ie.useRef(),Ge=Ie.useState(null),We=(0,ve.Z)(Ge,2),it=We[0],ht=We[1];return(0,Re.Z)(function(){if(it&&it.times<ge){if(!ae.current){ht(function(mn){return(0,ce.Z)({},mn)});return}ne();var Pt=it.targetAlign,Le=it.originAlign,Ve=it.index,Ot=it.offset,Yt=ae.current.clientHeight,un=!1,tn=Pt,Lt=null;if(Yt){for(var ln=Pt||Le,$t=0,ze=0,yt=0,Ht=Math.min(re.length-1,Ve),en=0;en<=Ht;en+=1){var Ke=de(re[en]);ze=$t;var xt=te.get(Ke);yt=ze+(xt===void 0?oe:xt),$t=yt}for(var Zt=ln==="top"?Ot:Yt-Ot,dt=Ht;dt>=0;dt-=1){var At=de(re[dt]),Ut=te.get(At);if(Ut===void 0){un=!0;break}if(Zt-=Ut,Zt<=0)break}switch(ln){case"top":Lt=ze-Ot;break;case"bottom":Lt=yt-Yt+Ot;break;default:{var pn=ae.current.scrollTop,On=pn+Yt;ze<pn?tn="top":yt>On&&(tn="bottom")}}Lt!==null&&se(Lt),Lt!==it.lastTop&&(un=!0)}un&&ht((0,ce.Z)((0,ce.Z)({},it),{},{times:it.times+1,targetAlign:tn,lastTop:Lt}))}},[it,ae.current]),function(Pt){if(Pt==null){Oe();return}if(Pe.Z.cancel(bt.current),typeof Pt=="number")se(Pt);else if(Pt&&(0,he.Z)(Pt)==="object"){var Le,Ve=Pt.align;"index"in Pt?Le=Pt.index:Le=re.findIndex(function(un){return de(un)===Pt.key});var Ot=Pt.offset,Yt=Ot===void 0?0:Ot;ht({times:0,index:Le,offset:Yt,originAlign:Ve})}}}var _t=Ie.forwardRef(function(ae,re){var te=ae.prefixCls,oe=ae.rtl,de=ae.scrollOffset,ne=ae.scrollRange,se=ae.onStartMove,Oe=ae.onStopMove,bt=ae.onScroll,Ge=ae.horizontal,We=ae.spinSize,it=ae.containerSize,ht=ae.style,Pt=ae.thumbStyle,Le=ae.showScrollBar,Ve=Ie.useState(!1),Ot=(0,ve.Z)(Ve,2),Yt=Ot[0],un=Ot[1],tn=Ie.useState(null),Lt=(0,ve.Z)(tn,2),ln=Lt[0],$t=Lt[1],ze=Ie.useState(null),yt=(0,ve.Z)(ze,2),Ht=yt[0],en=yt[1],Ke=!oe,xt=Ie.useRef(),Zt=Ie.useRef(),dt=Ie.useState(Le),At=(0,ve.Z)(dt,2),Ut=At[0],pn=At[1],On=Ie.useRef(),mn=function(){Le===!0||Le===!1||(clearTimeout(On.current),pn(!0),On.current=setTimeout(function(){pn(!1)},3e3))},Bn=ne-it||0,Dt=it-We||0,hn=Ie.useMemo(function(){if(de===0||Bn===0)return 0;var jn=de/Bn;return jn*Dt},[de,Bn,Dt]),Wt=function(Gn){Gn.stopPropagation(),Gn.preventDefault()},an=Ie.useRef({top:hn,dragging:Yt,pageY:ln,startTop:Ht});an.current={top:hn,dragging:Yt,pageY:ln,startTop:Ht};var Vt=function(Gn){un(!0),$t(Mt(Gn,Ge)),en(an.current.top),se(),Gn.stopPropagation(),Gn.preventDefault()};Ie.useEffect(function(){var jn=function(nr){nr.preventDefault()},Gn=xt.current,$n=Zt.current;return Gn.addEventListener("touchstart",jn,{passive:!1}),$n.addEventListener("touchstart",Vt,{passive:!1}),function(){Gn.removeEventListener("touchstart",jn),$n.removeEventListener("touchstart",Vt)}},[]);var cn=Ie.useRef();cn.current=Bn;var on=Ie.useRef();on.current=Dt,Ie.useEffect(function(){if(Yt){var jn,Gn=function(nr){var dn=an.current,Cn=dn.dragging,Hn=dn.pageY,Kn=dn.startTop;Pe.Z.cancel(jn);var Et=xt.current.getBoundingClientRect(),Rt=it/(Ge?Et.width:Et.height);if(Cn){var Je=(Mt(nr,Ge)-Hn)*Rt,Bt=Kn;!Ke&&Ge?Bt-=Je:Bt+=Je;var Ue=cn.current,Nt=on.current,Jt=Nt?Bt/Nt:0,Ln=Math.ceil(Jt*Ue);Ln=Math.max(Ln,0),Ln=Math.min(Ln,Ue),jn=(0,Pe.Z)(function(){bt(Ln,Ge)})}},$n=function(){un(!1),Oe()};return window.addEventListener("mousemove",Gn,{passive:!0}),window.addEventListener("touchmove",Gn,{passive:!0}),window.addEventListener("mouseup",$n,{passive:!0}),window.addEventListener("touchend",$n,{passive:!0}),function(){window.removeEventListener("mousemove",Gn),window.removeEventListener("touchmove",Gn),window.removeEventListener("mouseup",$n),window.removeEventListener("touchend",$n),Pe.Z.cancel(jn)}}},[Yt]),Ie.useEffect(function(){return mn(),function(){clearTimeout(On.current)}},[de]),Ie.useImperativeHandle(re,function(){return{delayHidden:mn}});var Zn="".concat(te,"-scrollbar"),_n={position:"absolute",visibility:Ut?null:"hidden"},Nn={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return Ge?(Object.assign(_n,{height:8,left:0,right:0,bottom:0}),Object.assign(Nn,(0,je.Z)({height:"100%",width:We},Ke?"left":"right",hn))):(Object.assign(_n,(0,je.Z)({width:8,top:0,bottom:0},Ke?"right":"left",0)),Object.assign(Nn,{width:"100%",height:We,top:hn})),Ie.createElement("div",{ref:xt,className:Ae()(Zn,(0,je.Z)((0,je.Z)((0,je.Z)({},"".concat(Zn,"-horizontal"),Ge),"".concat(Zn,"-vertical"),!Ge),"".concat(Zn,"-visible"),Ut)),style:(0,ce.Z)((0,ce.Z)({},_n),ht),onMouseDown:Wt,onMouseMove:mn},Ie.createElement("div",{ref:Zt,className:Ae()("".concat(Zn,"-thumb"),(0,je.Z)({},"".concat(Zn,"-thumb-moving"),Yt)),style:(0,ce.Z)((0,ce.Z)({},Nn),Pt),onMouseDown:Vt}))}),Tt=_t,xe=20;function rt(){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,xe),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"],Gt=[],at={overflowY:"auto",overflowAnchor:"none"};function st(ae,re){var te=ae.prefixCls,oe=te===void 0?"rc-virtual-list":te,de=ae.className,ne=ae.height,se=ae.itemHeight,Oe=ae.fullHeight,bt=Oe===void 0?!0:Oe,Ge=ae.style,We=ae.data,it=ae.children,ht=ae.itemKey,Pt=ae.virtual,Le=ae.direction,Ve=ae.scrollWidth,Ot=ae.component,Yt=Ot===void 0?"div":Ot,un=ae.onScroll,tn=ae.onVirtualScroll,Lt=ae.onVisibleChange,ln=ae.innerProps,$t=ae.extraRender,ze=ae.styles,yt=ae.showScrollBar,Ht=yt===void 0?"optional":yt,en=(0,me.Z)(ae,qe),Ke=Ie.useCallback(function(Mn){return typeof ht=="function"?ht(Mn):Mn==null?void 0:Mn[ht]},[ht]),xt=ue(Ke,null,null),Zt=(0,ve.Z)(xt,4),dt=Zt[0],At=Zt[1],Ut=Zt[2],pn=Zt[3],On=!!(Pt!==!1&&ne&&se),mn=Ie.useMemo(function(){return Object.values(Ut.maps).reduce(function(Mn,Un){return Mn+Un},0)},[Ut.id,Ut.maps]),Bn=On&&We&&(Math.max(se*We.length,mn)>ne||!!Ve),Dt=Le==="rtl",hn=Ae()(oe,(0,je.Z)({},"".concat(oe,"-rtl"),Dt),de),Wt=We||Gt,an=(0,Ie.useRef)(),Vt=(0,Ie.useRef)(),cn=(0,Ie.useRef)(),on=(0,Ie.useState)(0),Zn=(0,ve.Z)(on,2),_n=Zn[0],Nn=Zn[1],jn=(0,Ie.useState)(0),Gn=(0,ve.Z)(jn,2),$n=Gn[0],lr=Gn[1],nr=(0,Ie.useState)(!1),dn=(0,ve.Z)(nr,2),Cn=dn[0],Hn=dn[1],Kn=function(){Hn(!0)},Et=function(){Hn(!1)},Rt={getKey:Ke};function Je(Mn){Nn(function(Un){var Yn;typeof Mn=="function"?Yn=Mn(Un):Yn=Mn;var kn=Sr(Yn);return an.current.scrollTop=kn,kn})}var Bt=(0,Ie.useRef)({start:0,end:Wt.length}),Ue=(0,Ie.useRef)(),Nt=ft(Wt,Ke),Jt=(0,ve.Z)(Nt,1),Ln=Jt[0];Ue.current=Ln;var zn=Ie.useMemo(function(){if(!On)return{scrollHeight:void 0,start:0,end:Wt.length-1,offset:void 0};if(!Bn){var Mn;return{scrollHeight:((Mn=Vt.current)===null||Mn===void 0?void 0:Mn.offsetHeight)||0,start:0,end:Wt.length-1,offset:void 0}}for(var Un=0,Yn,kn,mr,wr=Wt.length,Vn=0;Vn<wr;Vn+=1){var Jn=Wt[Vn],ur=Ke(Jn),pr=Ut.get(ur),Zr=Un+(pr===void 0?se:pr);Zr>=_n&&Yn===void 0&&(Yn=Vn,kn=Un),Zr>_n+ne&&mr===void 0&&(mr=Vn),Un=Zr}return Yn===void 0&&(Yn=0,kn=0,mr=Math.ceil(ne/se)),mr===void 0&&(mr=Wt.length-1),mr=Math.min(mr+1,Wt.length-1),{scrollHeight:Un,start:Yn,end:mr,offset:kn}},[Bn,On,_n,Wt,pn,ne]),pt=zn.scrollHeight,Ct=zn.start,St=zn.end,It=zn.offset;Bt.current.start=Ct,Bt.current.end=St,Ie.useLayoutEffect(function(){var Mn=Ut.getRecord();if(Mn.size===1){var Un=Array.from(Mn.keys())[0],Yn=Mn.get(Un),kn=Wt[Ct];if(kn&&Yn===void 0){var mr=Ke(kn);if(mr===Un){var wr=Ut.get(Un),Vn=wr-se;Je(function(Jn){return Jn+Vn})}}}Ut.resetRecord()},[pt]);var fn=Ie.useState({width:0,height:ne}),wn=(0,ve.Z)(fn,2),Pn=wn[0],In=wn[1],qn=function(Un){In({width:Un.offsetWidth,height:Un.offsetHeight})},rr=(0,Ie.useRef)(),ir=(0,Ie.useRef)(),sr=Ie.useMemo(function(){return rt(Pn.width,Ve)},[Pn.width,Ve]),Qn=Ie.useMemo(function(){return rt(Pn.height,pt)},[Pn.height,pt]),ar=pt-ne,fr=(0,Ie.useRef)(ar);fr.current=ar;function Sr(Mn){var Un=Mn;return Number.isNaN(fr.current)||(Un=Math.min(Un,fr.current)),Un=Math.max(Un,0),Un}var br=_n<=0,jr=_n>=ar,$r=$n<=0,hr=$n>=Ve,Mr=$e(br,jr,$r,hr),eo=function(){return{x:Dt?-$n:$n,y:_n}},kr=(0,Ie.useRef)(eo()),Fr=(0,le.zX)(function(Mn){if(tn){var Un=(0,ce.Z)((0,ce.Z)({},eo()),Mn);(kr.current.x!==Un.x||kr.current.y!==Un.y)&&(tn(Un),kr.current=Un)}});function or(Mn,Un){var Yn=Mn;Un?((0,tt.flushSync)(function(){lr(Yn)}),Fr()):Je(Yn)}function Ur(Mn){var Un=Mn.currentTarget.scrollTop;Un!==_n&&Je(Un),un==null||un(Mn),Fr()}var Rr=function(Un){var Yn=Un,kn=Ve?Ve-Pn.width:0;return Yn=Math.max(Yn,0),Yn=Math.min(Yn,kn),Yn},Br=(0,le.zX)(function(Mn,Un){Un?((0,tt.flushSync)(function(){lr(function(Yn){var kn=Yn+(Dt?-Mn:Mn);return Rr(kn)})}),Fr()):Je(function(Yn){var kn=Yn+Mn;return kn})}),Cr=gt(On,br,jr,$r,hr,!!Ve,Br),so=(0,ve.Z)(Cr,2),Ho=so[0],ti=so[1];_e(On,an,function(Mn,Un,Yn,kn){var mr=kn;return Mr(Mn,Un,Yn)?!1:!mr||!mr._virtualHandled?(mr&&(mr._virtualHandled=!0),Ho({preventDefault:function(){},deltaX:Mn?Un:0,deltaY:Mn?0:Un}),!0):!1}),be(Bn,an,function(Mn){Je(function(Un){return Un+Mn})}),(0,Re.Z)(function(){function Mn(Yn){var kn=br&&Yn.detail<0,mr=jr&&Yn.detail>0;On&&!kn&&!mr&&Yn.preventDefault()}var Un=an.current;return Un.addEventListener("wheel",Ho,{passive:!1}),Un.addEventListener("DOMMouseScroll",ti,{passive:!0}),Un.addEventListener("MozMousePixelScroll",Mn,{passive:!1}),function(){Un.removeEventListener("wheel",Ho),Un.removeEventListener("DOMMouseScroll",ti),Un.removeEventListener("MozMousePixelScroll",Mn)}},[On,br,jr]),(0,Re.Z)(function(){if(Ve){var Mn=Rr($n);lr(Mn),Fr({x:Mn})}},[Pn.width,Ve]);var xo=function(){var Un,Yn;(Un=rr.current)===null||Un===void 0||Un.delayHidden(),(Yn=ir.current)===null||Yn===void 0||Yn.delayHidden()},No=Ft(an,Wt,Ut,se,Ke,function(){return At(!0)},Je,xo);Ie.useImperativeHandle(re,function(){return{nativeElement:cn.current,getScrollInfo:eo,scrollTo:function(Un){function Yn(kn){return kn&&(0,he.Z)(kn)==="object"&&("left"in kn||"top"in kn)}Yn(Un)?(Un.left!==void 0&&lr(Rr(Un.left)),No(Un.top)):No(Un)}}}),(0,Re.Z)(function(){if(Lt){var Mn=Wt.slice(Ct,St+1);Lt(Mn,Wt)}},[Ct,St,Wt]);var To=ot(Wt,Ke,Ut,se),Xo=$t==null?void 0:$t({start:Ct,end:St,virtual:Bn,offsetX:$n,offsetY:It,rtl:Dt,getSize:To}),ko=we(Wt,Ct,St,Ve,$n,dt,it,Rt),go=null;ne&&(go=(0,ce.Z)((0,je.Z)({},bt?"height":"maxHeight",ne),at),On&&(go.overflowY="hidden",Ve&&(go.overflowX="hidden"),Cn&&(go.pointerEvents="none")));var dr={};return Dt&&(dr.dir="rtl"),Ie.createElement("div",(0,y.Z)({ref:cn,style:(0,ce.Z)((0,ce.Z)({},Ge),{},{position:"relative"}),className:hn},dr,en),Ie.createElement(pe.Z,{onResize:qn},Ie.createElement(Yt,{className:"".concat(oe,"-holder"),style:go,ref:an,onScroll:Ur,onMouseEnter:xo},Ie.createElement(Me,{prefixCls:oe,height:pt,offsetX:$n,offsetY:It,scrollWidth:Ve,onInnerResize:At,ref:Vt,innerProps:ln,rtl:Dt,extra:Xo},ko))),Bn&&pt>ne&&Ie.createElement(Tt,{ref:rr,prefixCls:oe,scrollOffset:_n,scrollRange:pt,rtl:Dt,onScroll:or,onStartMove:Kn,onStopMove:Et,spinSize:Qn,containerSize:Pn.height,style:ze==null?void 0:ze.verticalScrollBar,thumbStyle:ze==null?void 0:ze.verticalScrollBarThumb,showScrollBar:Ht}),Bn&&Ve>Pn.width&&Ie.createElement(Tt,{ref:ir,prefixCls:oe,scrollOffset:$n,scrollRange:Ve,rtl:Dt,onScroll:or,onStartMove:Kn,onStopMove:Et,spinSize:sr,containerSize:Pn.width,horizontal:!0,style:ze==null?void 0:ze.horizontalScrollBar,thumbStyle:ze==null?void 0:ze.horizontalScrollBarThumb,showScrollBar:Ht}))}var nt=Ie.forwardRef(st);nt.displayName="List";var rn=nt,kt=rn},93314:function(bn){"use strict";bn.exports="data:image/png;base64,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"},96908:function(bn){"use strict";bn.exports="data:image/png;base64,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"},57177:function(bn){"use strict";bn.exports="data:image/png;base64,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"},81378:function(bn){"use strict";bn.exports="data:image/png;base64,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"},16722:function(bn,zt,z){"use strict";z.d(zt,{Z:function(){return Ae}});const y=pe=>typeof pe=="object"&&pe!=null&&pe.nodeType===1,he=(pe,le)=>(!le||pe!=="hidden")&&pe!=="visible"&&pe!=="clip",ce=(pe,le)=>{if(pe.clientHeight<pe.scrollHeight||pe.clientWidth<pe.scrollWidth){const Re=getComputedStyle(pe,null);return he(Re.overflowY,le)||he(Re.overflowX,le)||(Ie=>{const tt=(He=>{if(!He.ownerDocument||!He.ownerDocument.defaultView)return null;try{return He.ownerDocument.defaultView.frameElement}catch(Me){return null}})(Ie);return!!tt&&(tt.clientHeight<Ie.scrollHeight||tt.clientWidth<Ie.scrollWidth)})(pe)}return!1},je=(pe,le,Re,Ie,tt,He,Me,Ee)=>He<pe&&Me>le||He>pe&&Me<le?0:He<=pe&&Ee<=Re||Me>=le&&Ee>=Re?He-pe-Ie:Me>le&&Ee<Re||He<pe&&Ee>Re?Me-le+tt:0,ve=pe=>{const le=pe.parentElement;return le==null?pe.getRootNode().host||null:le},me=(pe,le)=>{var Re,Ie,tt,He;if(typeof document=="undefined")return[];const{scrollMode:Me,block:Ee,inline:we,boundary:Ne,skipOverflowHiddenElements:Xe}=le,ft=typeof Ne=="function"?Ne:Tt=>Tt!==Ne;if(!y(pe))throw new TypeError("Invalid target");const Pe=document.scrollingElement||document.documentElement,Fe=[];let Ze=pe;for(;y(Ze)&&ft(Ze);){if(Ze=ve(Ze),Ze===Pe){Fe.push(Ze);break}Ze!=null&&Ze===document.body&&ce(Ze)&&!ce(document.documentElement)||Ze!=null&&ce(Ze,Xe)&&Fe.push(Ze)}const $e=(Ie=(Re=window.visualViewport)==null?void 0:Re.width)!=null?Ie:innerWidth,gt=(He=(tt=window.visualViewport)==null?void 0:tt.height)!=null?He:innerHeight,{scrollX:ot,scrollY:Qe}=window,{height:ct,width:Ce,top:et,right:Te,bottom:ue,left:mt}=pe.getBoundingClientRect(),{top:_e,right:lt,bottom:Mt,left:be}=(Tt=>{const xe=window.getComputedStyle(Tt);return{top:parseFloat(xe.scrollMarginTop)||0,right:parseFloat(xe.scrollMarginRight)||0,bottom:parseFloat(xe.scrollMarginBottom)||0,left:parseFloat(xe.scrollMarginLeft)||0}})(pe);let ge=Ee==="start"||Ee==="nearest"?et-_e:Ee==="end"?ue+Mt:et+ct/2-_e+Mt,Ft=we==="center"?mt+Ce/2-be+lt:we==="end"?Te+lt:mt-be;const _t=[];for(let Tt=0;Tt<Fe.length;Tt++){const xe=Fe[Tt],{height:rt,width:qe,top:Gt,right:at,bottom:st,left:nt}=xe.getBoundingClientRect();if(Me==="if-needed"&&et>=0&&mt>=0&&ue<=gt&&Te<=$e&&(xe===Pe&&!ce(xe)||et>=Gt&&ue<=st&&mt>=nt&&Te<=at))return _t;const rn=getComputedStyle(xe),kt=parseInt(rn.borderLeftWidth,10),ae=parseInt(rn.borderTopWidth,10),re=parseInt(rn.borderRightWidth,10),te=parseInt(rn.borderBottomWidth,10);let oe=0,de=0;const ne="offsetWidth"in xe?xe.offsetWidth-xe.clientWidth-kt-re:0,se="offsetHeight"in xe?xe.offsetHeight-xe.clientHeight-ae-te:0,Oe="offsetWidth"in xe?xe.offsetWidth===0?0:qe/xe.offsetWidth:0,bt="offsetHeight"in xe?xe.offsetHeight===0?0:rt/xe.offsetHeight:0;if(Pe===xe)oe=Ee==="start"?ge:Ee==="end"?ge-gt:Ee==="nearest"?je(Qe,Qe+gt,gt,ae,te,Qe+ge,Qe+ge+ct,ct):ge-gt/2,de=we==="start"?Ft:we==="center"?Ft-$e/2:we==="end"?Ft-$e:je(ot,ot+$e,$e,kt,re,ot+Ft,ot+Ft+Ce,Ce),oe=Math.max(0,oe+Qe),de=Math.max(0,de+ot);else{oe=Ee==="start"?ge-Gt-ae:Ee==="end"?ge-st+te+se:Ee==="nearest"?je(Gt,st,rt,ae,te+se,ge,ge+ct,ct):ge-(Gt+rt/2)+se/2,de=we==="start"?Ft-nt-kt:we==="center"?Ft-(nt+qe/2)+ne/2:we==="end"?Ft-at+re+ne:je(nt,at,qe,kt,re+ne,Ft,Ft+Ce,Ce);const{scrollLeft:Ge,scrollTop:We}=xe;oe=bt===0?0:Math.max(0,Math.min(We+oe/bt,xe.scrollHeight-rt/bt+se)),de=Oe===0?0:Math.max(0,Math.min(Ge+de/Oe,xe.scrollWidth-qe/Oe+ne)),ge+=We-oe,Ft+=Ge-de}_t.push({el:xe,top:oe,left:de})}return _t},ye=pe=>pe===!1?{block:"end",inline:"nearest"}:(le=>le===Object(le)&&Object.keys(le).length!==0)(pe)?pe:{block:"start",inline:"nearest"};function Ae(pe,le){if(!pe.isConnected||!(tt=>{let He=tt;for(;He&&He.parentNode;){if(He.parentNode===document)return!0;He=He.parentNode instanceof ShadowRoot?He.parentNode.host:He.parentNode}return!1})(pe))return;const Re=(tt=>{const He=window.getComputedStyle(tt);return{top:parseFloat(He.scrollMarginTop)||0,right:parseFloat(He.scrollMarginRight)||0,bottom:parseFloat(He.scrollMarginBottom)||0,left:parseFloat(He.scrollMarginLeft)||0}})(pe);if((tt=>typeof tt=="object"&&typeof tt.behavior=="function")(le))return le.behavior(me(pe,le));const Ie=typeof le=="boolean"||le==null?void 0:le.behavior;for(const{el:tt,top:He,left:Me}of me(pe,ye(le))){const Ee=He-Re.top+Re.bottom,we=Me-Re.left+Re.right;tt.scroll({top:Ee,left:we,behavior:Ie})}}}}]);