|
|
(self.webpackChunk=self.webpackChunk||[]).push([[6069],{89489:function(In,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return je}});var b=ee(60499),ze=ee(59301),fe={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"},nt=fe,Se=ee(7657),xe=function(ue,et){return ze.createElement(Se.Z,(0,b.Z)({},ue,{ref:et,icon:nt}))},Ee=ze.forwardRef(xe),je=Ee},59477:function(In,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return je}});var b=ee(60499),ze=ee(59301),fe={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"},nt=fe,Se=ee(7657),xe=function(ue,et){return ze.createElement(Se.Z,(0,b.Z)({},ue,{ref:et,icon:nt}))},Ee=ze.forwardRef(xe),je=Ee},40001:function(In,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return je}});var b=ee(60499),ze=ee(59301),fe={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"},nt=fe,Se=ee(7657),xe=function(ue,et){return ze.createElement(Se.Z,(0,b.Z)({},ue,{ref:et,icon:nt}))},Ee=ze.forwardRef(xe),je=Ee},26227:function(In,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return je}});var b=ee(60499),ze=ee(59301),fe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},nt=fe,Se=ee(7657),xe=function(ue,et){return ze.createElement(Se.Z,(0,b.Z)({},ue,{ref:et,icon:nt}))},Ee=ze.forwardRef(xe),je=Ee},49198:function(In,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return je}});var b=ee(60499),ze=ee(59301),fe={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"},nt=fe,Se=ee(7657),xe=function(ue,et){return ze.createElement(Se.Z,(0,b.Z)({},ue,{ref:et,icon:nt}))},Ee=ze.forwardRef(xe),je=Ee},41464:function(In,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return je}});var b=ee(60499),ze=ee(59301),fe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},nt=fe,Se=ee(7657),xe=function(ue,et){return ze.createElement(Se.Z,(0,b.Z)({},ue,{ref:et,icon:nt}))},Ee=ze.forwardRef(xe),je=Ee},73331:function(In,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return je}});var b=ee(60499),ze=ee(59301),fe={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"},nt=fe,Se=ee(7657),xe=function(ue,et){return ze.createElement(Se.Z,(0,b.Z)({},ue,{ref:et,icon:nt}))},Ee=ze.forwardRef(xe),je=Ee},15277:function(In,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return je}});var b=ee(60499),ze=ee(59301),fe={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"},nt=fe,Se=ee(7657),xe=function(ue,et){return ze.createElement(Se.Z,(0,b.Z)({},ue,{ref:et,icon:nt}))},Ee=ze.forwardRef(xe),je=Ee},52671:function(In,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return je}});var b=ee(60499),ze=ee(59301),fe={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"},nt=fe,Se=ee(7657),xe=function(ue,et){return ze.createElement(Se.Z,(0,b.Z)({},ue,{ref:et,icon:nt}))},Ee=ze.forwardRef(xe),je=Ee},8657:function(In,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return je}});var b=ee(60499),ze=ee(59301),fe={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"},nt=fe,Se=ee(7657),xe=function(ue,et){return ze.createElement(Se.Z,(0,b.Z)({},ue,{ref:et,icon:nt}))},Ee=ze.forwardRef(xe),je=Ee},56082:function(In,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return je}});var b=ee(60499),ze=ee(59301),fe={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"},nt=fe,Se=ee(7657),xe=function(ue,et){return ze.createElement(Se.Z,(0,b.Z)({},ue,{ref:et,icon:nt}))},Ee=ze.forwardRef(xe),je=Ee},33853:function(In,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return je}});var b=ee(60499),ze=ee(59301),fe={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"},nt=fe,Se=ee(7657),xe=function(ue,et){return ze.createElement(Se.Z,(0,b.Z)({},ue,{ref:et,icon:nt}))},Ee=ze.forwardRef(xe),je=Ee},15075:function(In,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return je}});var b=ee(60499),ze=ee(59301),fe={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"},nt=fe,Se=ee(7657),xe=function(ue,et){return ze.createElement(Se.Z,(0,b.Z)({},ue,{ref:et,icon:nt}))},Ee=ze.forwardRef(xe),je=Ee},43531:function(In,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return je}});var b=ee(60499),ze=ee(59301),fe={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"},nt=fe,Se=ee(7657),xe=function(ue,et){return ze.createElement(Se.Z,(0,b.Z)({},ue,{ref:et,icon:nt}))},Ee=ze.forwardRef(xe),je=Ee},61485:function(In,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return je}});var b=ee(60499),ze=ee(59301),fe={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"},nt=fe,Se=ee(7657),xe=function(ue,et){return ze.createElement(Se.Z,(0,b.Z)({},ue,{ref:et,icon:nt}))},Ee=ze.forwardRef(xe),je=Ee},47472:function(In,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return je}});var b=ee(60499),ze=ee(59301),fe={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"},nt=fe,Se=ee(7657),xe=function(ue,et){return ze.createElement(Se.Z,(0,b.Z)({},ue,{ref:et,icon:nt}))},Ee=ze.forwardRef(xe),je=Ee},87395:function(In,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return je}});var b=ee(60499),ze=ee(59301),fe={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"},nt=fe,Se=ee(7657),xe=function(ue,et){return ze.createElement(Se.Z,(0,b.Z)({},ue,{ref:et,icon:nt}))},Ee=ze.forwardRef(xe),je=Ee},88319:function(){"use strict"},94896:function(){"use strict"},74501:function(In,Qt){"use strict";Qt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},42168:function(In,Qt){"use strict";Qt.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",rateInput:"rateInput___yMSFt",operationWrapper:"operationWrapper___sHATq",add:"add___jcwUR",remove:"remove___nbhui"}},39049:function(In,Qt){"use strict";Qt.Z={flex_box_center:"flex_box_center___cFjD5",flex_space_between:"flex_space_between___WX1ma",flex_box_vertical_center:"flex_box_vertical_center___iyMsP",flex_box_center_end:"flex_box_center_end___LFV4U",flex_box_column:"flex_box_column___GujFO",Onerow:"Onerow___QKU3O",MultiLine:"MultiLine___ZOVUQ",LessonsList:"LessonsList___lfvK6",LessonsListItem:"LessonsListItem___Opl7o",LessonsListItemImg:"LessonsListItemImg___rvVXp",imgUpLoad:"imgUpLoad___wax6e"}},84915: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 In={},Qt="5.0",ee={},b=null,ze=!1,fe=!1,nt=null,Se=!1,xe=null,Ee=null,je=0;je<arguments.length;je++){var Ie=arguments[je];if(Ie!==null)switch(typeof Ie){case"number":Qt=Ie.toFixed(1);break;case"string":Ie.match(new RegExp("^[0-9]\\.[0-9]+$"))?Qt=Ie:nt=Ie;break;case"object":typeof Ie.is3D!="undefined"?b=Ie:ee=Ie;break;case"boolean":ze=Ie,fe=!0;break}}b===null&&(b={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},ee.material_id!==void 0&&!fe&&(ze=!0)),nt!==null&&ee.id===void 0&&(ee.id=nt);var ue="",et="",Te=!1,At=null,lt=null,it=null,We=!1,ke=null,ot=null,yt=null,Nt=null,Fe=null;ee.height!==void 0&&(ee.height=Math.round(ee.height)),ee.width!==void 0&&(ee.width=Math.round(ee.width));var Me=function(ge){return parseFloat(ge)>4?parseFloat(ge):5};In.setHTML5Codebase=function(ge,Ke){Ee=ge,Lt(ge,Ke)},In.setJavaCodebase=In.setJavaCodebaseVersion=In.isCompiledInstalled=In.setPreCompiledScriptPath=In.setPreCompiledResourcePath=function(){},In.setHTML5CodebaseVersion=function(ge,Ke){var tt=parseFloat(ge);if(tt!==NaN&&tt<5){console.log("The GeoGebra HTML5 codebase version "+tt+" is deprecated. Using version latest instead.");return}xe=ge,pe(ge,Ke)},In.getHTML5CodebaseVersion=function(){return lt},In.getParameters=function(){return ee},In.setFontsCSSURL=function(ge){Nt=ge},In.setGiacJSURL=function(ge){},In.setJNLPFile=function(ge){ue=ge},In.setJNLPBaseDir=function(ge){},In.inject=function(){function ge(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Ke="auto",tt=ee.id,Wt,qe=!1,Rt=0;Rt<arguments.length;Rt++){var Qe=arguments[Rt];typeof Qe=="string"?(Qe=Qe.toLowerCase(),Qe.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Ke=Qe:tt=arguments[Rt]):typeof Qe=="boolean"?qe=Qe:Qe instanceof HTMLElement&&(Wt=Qe)}tn();function tn(){if(!Se){setTimeout(tn,200);return}Ke=Yt(Ke);var gt=Wt||document.getElementById(tt);if(!gt){console.log("possibly bug on ajax loading? ");return}if(In.removeExistingApplet(gt,!1),ee.width===void 0&>.clientWidth&&(ee.width=gt.clientWidth),ee.height===void 0&>.clientHeight&&(ee.height=gt.clientHeight),!(ee.width&&ee.height)&&Ke==="html5"&&(delete ee.width,delete ee.height),At=Ke,Ke==="screenshot")_e(gt,ee);else{var ae=!1;ee.hasOwnProperty("playButton")&&ee.playButton||ee.hasOwnProperty("clickToLoad")&&ee.clickToLoad?ae=!0:ee.hasOwnProperty("playButtonAutoDecide")&&ee.playButtonAutoDecide&&(ae=(!Xe()||ge())&&Je()),ae?(At="screenshot",Et(gt,ee,qe,Ke)):at(gt,ee,qe)}}};function Xe(){try{return window.self!==window.top}catch(ge){return!0}}function Je(){return ee.hasOwnProperty("screenshotGenerator")&&ee.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}In.getViews=function(){return b},In.isJavaInstalled=function(){return!1};var $t=function(ge){var Ke=function(Rt){var Qe=JSON.parse(Rt),tn=function(ne){return ne.type=="G"||ne.type=="E"},gt=Qe.elements?Qe.elements.filter(tn)[0]:Qe;if(!gt||!gt.url){tt();return}ee.fileName=gt.url,ct(gt.settings||{}),b.is3D=!0;var ae="https://www.geogebra.org/images/";In.setPreviewImage(ke||gt.previewUrl,ae+"GeoGebra_loading.png",ae+"applet_play.png"),ge()},tt=function(){ee.onError&&ee.onError(),en("Error: Fetching material (id "+ee.material_id+") failed.",ee)},Wt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",qe="/materials/"+ee.material_id+"?scope=basic";Ye("https://"+Wt+"/api/proxy.php?path="+encodeURIComponent(qe),Ke,tt)};function ct(ge){var Ke=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(tt){ge[tt]=!!ge[tt]}),Ke.forEach(function(tt){ee[tt]===void 0&&ge[tt]!==void 0&&(ee[tt]=ge[tt])}),ee.showToolBarHelp===void 0&&(ee.showToolBarHelp=ee.showToolBar)}function Ye(ge,Ke,tt){var Wt=new XMLHttpRequest;Wt.open("GET",ge),Wt.onload=function(){Ke(Wt.responseText)},Wt.onerror=tt,Wt.send()}In.isHTML5Installed=function(){return!0},In.getLoadedAppletType=function(){return At},In.setPreviewImage=function(ge,Ke,tt){ke=ge,ot=Ke,yt=tt},In.removeExistingApplet=function(ge,Ke){var tt;typeof ge=="string"&&(ge=document.getElementById(ge)),At=null;var Wt=null;for(tt=0;tt<ge.childNodes.length;tt++){var qe=ge.childNodes[tt],Rt=qe.className;Rt==="applet_screenshot"?Ke?(qe.style.display="block",At="screenshot"):qe.style.display="none":Rt!=="applet_scaler prerender"&&(ge.removeChild(qe),Wt=Rt&&Rt.indexOf("appletParameters")!=-1?qe.id:null,tt--)}var Qe=ee.id!==void 0?ee.id:Wt,tn=window[Qe];tn&&typeof tn.getBase64=="function"&&(tn.remove(),window[Qe]=null)},In.refreshHitPoints=function(){if(Me(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var ge=In.getAppletObject();return ge&&typeof ge.recalculateEnvironments=="function"?(ge.recalculateEnvironments(),!0):!1},In.startAnimation=function(){var ge=In.getAppletObject();return ge&&typeof ge.startAnimation=="function"?(ge.startAnimation(),!0):!1},In.stopAnimation=function(){var ge=In.getAppletObject();return ge&&typeof ge.stopAnimation=="function"?(ge.stopAnimation(),!0):!1},In.getAppletObject=function(){var ge=ee.id!==void 0?ee.id:"ggbApplet";return window[ge]},In.resize=function(){};var rt=function(ge,Ke,tt){var Wt=document.createElement("param");Wt.setAttribute("name",Ke),Wt.setAttribute("value",tt),ge.appendChild(Wt)},Ce=function(ge){return ge&&ge!=="false"},at=function(ge,Ke,tt){Me(lt)<=4.2&&(tt=!0);var Wt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==lt||ggbHTML5LoadedCodebaseIsWebSimple&&!We)&&(Wt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var qe=document.createElement("div");qe.classList.add("appletParameters","notranslate");var Rt=Ke.width,Qe=Ke.height;if(Ke.disableAutoScale=Ke.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Ke.disableAutoScale,Ke.width!==void 0)if(Me(lt)<=4.4)Ce(Ke.showToolBar)&&(Ke.height-=7),Ce(Ke.showAlgebraInput)&&(Ke.height-=37),Ke.width<605&&Ce(Ke.showToolBar)&&(Ke.width=605,Rt=605);else{var tn=100;(Ce(Ke.showToolBar)||Ce(Ke.showMenuBar))&&(Ke.hasOwnProperty("customToolBar")&&(Ke.customToolbar=Ke.customToolBar),tn=Ce(Ke.showMenuBar)?245:155),Rt<tn&&(Ke.width=tn,Rt=tn)}qe.style.border="none",qe.style.display="inline-block";for(var gt in Ke)Ke.hasOwnProperty(gt)&>!=="appletOnLoad"&&qe.setAttribute("data-param-"+gt,Ke[gt]);Nt&&qe.setAttribute("data-param-fontscssurl",Nt),In.resize=function(){GGBAppletUtils.responsiveResize(ge,Ke)},window.addEventListener("resize",function(Ge){In.resize()});var ae=typeof Ke.appletOnLoad=="function"?Ke.appletOnLoad:function(){};if(!tt&&Ke.width!==void 0){Ke.hasOwnProperty("showSplash")||qe.setAttribute("data-param-showSplash","false");var ne=ge.querySelector(".applet_scaler.prerender"),te=ne!==null;if(te)var oe=ne.querySelector(".ggb_preview");else{var oe=st(Rt,Qe,Ke.borderColor,!1);ne=document.createElement("div"),ne.className="applet_scaler",ne.style.position="relative",ne.style.display="block",ne.style.width=Rt+"px",ne.style.height=Qe+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(ne,"66%"),Me(lt)>=5?(Ke.appletOnLoad=function(Ge){var pt=ge.querySelector(".ggb_preview");pt&&pt.parentNode.removeChild(pt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(ne),window.GGBT_wsf_view&&$(window).trigger("resize"),ae(Ge)},te||ne.appendChild(oe)):qe.appendChild(oe),ne.appendChild(qe),te||ge.appendChild(ne),setTimeout(function(){In.resize()},1)}else{var ce=document.createElement("div");ce.className="applet_scaler",ce.style.position="relative",ce.style.display="block",ce.appendChild(qe),ge.appendChild(ce),Ke.appletOnLoad=function(Ge){In.resize(),ae(Ge)}}function re(Ge,pt){pt&&typeof pt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Ge,pt.appletOnLoad):renderGGBElement(Ge),en("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",pt)}function le(Ge,pt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Ge,params:pt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(we){re(we.article,we.params)}),html5AppletsToProcess=null)},Me(lt)<5&&(Ge.className+=" geogebraweb")):re(Ge,pt)}if(Wt){scriptLoadStarted=!0;for(var be=0;be<qe.childNodes.length;be++){var ht=qe.childNodes[be].tagName;ht==="TABLE"&&(qe.removeChild(qe.childNodes[be]),be--)}if(ggbHTML5LoadedScript!==null){var Le=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Le!=null&&Le.parentNode.removeChild(Le)}var Ne=document.createElement("script"),Ve=function(){le(qe,Ke)};Ne.src=et+it,ggbHTML5LoadedCodebaseIsWebSimple=We,ggbHTML5LoadedCodebaseVersion=lt,ggbHTML5LoadedScript=Ne.src,en("GeoGebra HTML5 codebase loaded: '"+et+"'.",Ke),!Ee&&(!xe||xe=="5.0")?(We?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Ve()):et.requirejs?__webpack_require__.e(4510).then(function(){var Ge=[__webpack_require__(4510)];Ve.apply(null,Ge)}.bind(this)).catch(__webpack_require__.oe):(Ne.onload=Ve,ge.appendChild(Ne))}else le(qe,Ke);Ke.height=Qe,Ke.width=Rt},_e=function(ge,Ke,tt){var Wt=st(Ke.width,Ke.height,Ke.borderColor,tt),qe=document.createElement("div");qe.style.position="relative",qe.style.display="block",qe.style.width=Ke.width+"px",qe.style.height=Ke.height+"px",qe.className="applet_screenshot applet_scaler"+(tt?" applet_screenshot_play":""),qe.appendChild(Wt);var Rt=GGBAppletUtils.getScale(Ke,ge,tt);tt?(ge.appendChild(He()),window.GGBT_wsf_view||(ge.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(qe,"66%"),ge.appendChild(qe),Rt!==1&&!isNaN(Rt)&&(GGBAppletUtils.scaleElement(qe,Rt),qe.style.width=Ke.width+"px",qe.style.height=Ke.height+"px",qe.parentNode.style.width=Ke.width*Rt+"px",qe.parentNode.style.height=Ke.height*Rt+"px"),In.resize=function(){de(ge,Wt,qe,tt)},window.addEventListener("resize",function(Qe){In.resize()}),In.resize()};function de(ge,Ke,tt,Wt){if(ge.contains(Ke)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ge.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(ge)}var qe=GGBAppletUtils.getScale(ee,ge,Wt);tt.parentNode!==null&&(!isNaN(qe)&&qe!==1?(GGBAppletUtils.scaleElement(tt,qe),tt.parentNode.style.width=ee.width*qe+"px",tt.parentNode.style.height=ee.height*qe+"px"):(GGBAppletUtils.scaleElement(tt,1),tt.parentNode.style.width=ee.width+"px",tt.parentNode.style.height=ee.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(ge),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}In.onExitFullscreen=function(ge,Ke){Ke.appendChild(ge)};var Et=function(ge,Ke,tt,Wt){_e(ge,Ke,!0);for(var qe=function(){var tn=[];for(Qe=0;Qe<ge.childNodes.length;Qe++)tn.push(ge.childNodes[Qe]);if(window.GGBT_wsf_view){var gt=window.GGBT_wsf_view.renderFullScreen(ge,Ke.id),ae=document.getElementById("fullscreencontainer"),ne=jQuery(ge).find(".fullscreencontent");ne.length>0?(gt.remove(),ne.attr("id","fullscreencontent").show(),jQuery(ae).append(ne),window.dispatchEvent(new Event("resize"))):at(gt,Ke,!1),window.GGBT_wsf_view.launchFullScreen(ae)}else At=Wt,at(ge,Ke,!1);if(!window.GGBT_wsf_view)for(Qe=0;Qe<tn.length;Qe++)ge.removeChild(tn[Qe])},Rt=ge.getElementsByClassName("ggb_preview_play"),Qe=0;Qe<Rt.length;Qe++)Rt[Qe].addEventListener("click",qe,!1),Rt[Qe].addEventListener("ontouchstart",qe,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(ge),Je()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},He=function(){var ge=document.createElement("div");if(ge.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Ke='.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");}',tt=document.createElement("style");tt.styleSheet?tt.styleSheet.cssText=Ke:tt.appendChild(document.createTextNode(Ke)),document.getElementsByTagName("head")[0].appendChild(tt)}return ge},st=function(ge,Ke,tt,Wt){var qe=document.createElement("div");qe.className="ggb_preview",qe.style.position="absolute",qe.style.zIndex="90",qe.style.width=ge-2+"px",qe.style.height=Ke-2+"px",qe.style.top="0px",qe.style.left="0px",qe.style.overflow="hidden",qe.style.backgroundColor="white";var Rt="lightgrey";tt!==void 0&&(tt==="none"?Rt="transparent":Rt=tt),qe.style.border="1px solid "+Rt;var Qe=document.createElement("img");if(Qe.style.position="relative",Qe.style.zIndex="1000",Qe.style.top="-1px",Qe.style.left="-1px",ke!==null&&Qe.setAttribute("src",ke),Qe.style.opacity=.7,ot!==null){var tn,gt,ae;if(!Wt){tn=document.createElement("img"),tn.style.position="absolute",tn.style.zIndex="1001",tn.style.opacity=1,Qe.style.opacity=.3,gt=360,gt>ge/4*3&&(gt=ge/4*3),ae=gt/5.8,tn.setAttribute("src",ot),tn.setAttribute("width",gt),tn.setAttribute("height",ae);var ne=(ge-gt)/2,te=(Ke-ae)/2;tn.style.left=ne+"px",tn.style.top=te+"px",qe.appendChild(tn)}}return qe.appendChild(Qe),qe},Yt=function(ge){return ge=ge.toLowerCase(),ge==="html5"||ge==="screenshot"?ge:"html5"},Oe=["web","webSimple","web3d","tablet","tablet3d","phone"],pe=function(ge,Ke){if(lt=ge,Ke){Lt(lt,!0);return}var tt=!ze;if(tt){var Wt=Me(lt);!isNaN(Wt)&&Wt<4.4&&(tt=!1)}var qe,Rt;window.location.protocol.substr(0,4)==="http"?qe=window.location.protocol:qe="http:";var Qe=lt.indexOf("//");Qe>0?Rt=lt:Qe===0?Rt=qe+lt:Rt="https://www.geogebra.org/apps/5.2.814.0/";for(var tn in Oe)if(lt.slice(Oe[tn].length*-1)===Oe[tn]||lt.slice((Oe[tn].length+1)*-1)===Oe[tn]+"/"){Lt(Rt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&tt&&!b.is3D&&!b.AV&&!b.SV&&!b.CV&&!b.EV2&&!b.CP&&!b.PC&&!b.DA&&!b.FI&&!b.PV&&!Ce(ee.showToolBar)&&!Ce(ee.showMenuBar)&&!Ce(ee.showAlgebraInput)&&!Ce(ee.enableRightClick)&&(!ee.appName||ee.appName=="classic")?Rt+="webSimple/":Rt+="web3d/",Lt(Rt,!1)},Lt=function(ge,Ke){if(ge.requirejs){et=ge;return}ge.slice(-1)!=="/"&&(ge+="/"),et=ge,Ke===null&&(Ke=ge.indexOf("http")===-1),Te=Ke,it="web.nocache.js",We=!1;var tt=et.split("/");tt.length>1&&(!Ke&&tt[tt.length-2]==="webSimple"?(it="webSimple.nocache.js",We=!0):Oe.indexOf(tt[tt.length-2])>=0&&(it=tt[tt.length-2]+".nocache.js")),tt=ge.split("/"),lt=tt[tt.length-3],lt.substr(0,4)==="test"?lt=lt.substr(4,1)+"."+lt.substr(5,1):(lt.substr(0,3)==="war"||lt.substr(0,4)==="beta")&&(lt="5.0");var Wt=parseFloat(lt);Wt!==NaN&&Wt<5&&ge.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Wt+" is deprecated. Using version latest instead."),pe("5.0",Ke))},en=function(ge,Ke){window.console&&window.console.log&&(!Ke||typeof Ke.showLogging=="undefined"||Ke.showLogging&&Ke.showLogging!=="false")&&console.log(ge)};ee.material_id!==void 0?$t(Ot):Ot();function Ot(){var ge=Qt;xe!==null?ge=xe:parseFloat(ge)<5&&(ge="5.0"),pe(ge,!1),Ee!==null&&Lt(Ee,Te),Se=!0}return In},GGBAppletUtils=function(){"use strict";function In(){return window.GGBT_wsf_edit!==void 0}function Qt(Se,xe){xe!=1?(Se.style.transformOrigin="0% 0% 0px",Se.style.webkitTransformOrigin="0% 0% 0px",Se.style.transform="scale("+xe+","+xe+")",Se.style.webkitTransform="scale("+xe+","+xe+")",Se.style.maxWidth="initial",Se.querySelector(".ggb_preview")!==null&&(Se.querySelector(".ggb_preview").style.maxWidth="initial"),Se.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Se.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Se.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Se.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Se.style.transform="none",Se.style.webkitTransform="none")}function ee(Se,xe,Ee,je,Ie,ue){var et=null;if(ue!=null&&ue!="")for(var Te=Se.parentNode;Te!=null;)if((" "+Te.className+" ").indexOf(" "+ue+" ")>-1){et=Te;break}else Te=Te.parentNode;var At=0,lt=0,it=0,We=0,ke=0,ot=0,yt=0;if(et)At=et.offsetWidth,lt=Math.max(je?et.offsetWidth:0,et.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(At=Math.min(window.innerWidth,document.documentElement.clientWidth),lt=Math.min(window.innerHeight,document.documentElement.clientHeight),it=At):(At=window.innerWidth,lt=window.innerHeight,it=window.innerWidth),Se){var Nt=Se.getBoundingClientRect();Nt.left>0&&Nt.left<=At&&(Ie===void 0||!Ie)&&(document.dir==="rtl"?(ke=At-Nt.width-Nt.left,ot=it<=480?10:30):(ot=Nt.left,ke=it<=480?10:30),We=ot+ke)}if(Se&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var Fe=Se.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(We=40,yt=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(We=0,yt=40)}}return Se&&((Ee===void 0||!Ee)&&xe>0&&xe+We<At?At=xe:At-=We,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ee===void 0||!Ee)&&(lt-=yt)),{width:At,height:lt}}function b(Se,xe,Ee,je,Ie){if(Se.isScreenshoGenerator)return 1;var ue=je!==void 0&&je,et=Se.noScaleMargin!=null&&Se.noScaleMargin,Te=function(Fe){return Fe&&Fe!=="false"},At=Te(Se.autoHeight),lt=ee(xe,Se.width,Ee,At,ue&&window.GGBT_wsf_view||et,Ie),it=parseInt(lt.width),We=Se.width,ke=Se.height;if(We===void 0){var ot=xe.querySelector(".appletParameters");ot&&(We=ot.offsetWidth,ke=ot.offsetHeight)}var yt=it/We,Nt=ue?1:lt.height/ke;return Ee!==void 0&&!Ee&&(yt=Math.min(1,yt),Nt=Math.min(1,Nt)),Math.min(yt,Nt)}function ze(Se,xe,Ee){var je=1,Ie,ue=!1;if(Se.hasOwnProperty("allowUpscale")&&(ue=Se.allowUpscale),Se.hasOwnProperty("scale")&&(je=parseFloat(Se.scale),(isNaN(je)||je===null||je===0)&&(je=1),je>1&&(ue=!0)),xe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ue=!0),!(Se.hasOwnProperty("disableAutoScale")&&Se.disableAutoScale))Ie=b(Se,xe,ue,Ee,Se.scaleContainerClass);else return je;return ue&&(!Se.hasOwnProperty("scale")||je===1)?Ie:Math.min(je,Ie)}function fe(Se){var xe=Math.min(window.innerWidth,document.documentElement.clientWidth),Ee=Math.min(window.innerHeight,document.documentElement.clientHeight),je=Se.getBoundingClientRect(),Ie=(xe-je.width)/2,ue=(Ee-je.height)/2;ue<0&&(ue=0),Se.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ie<40?Se.style.left="40px":Se.style.left=Ie+"px",Se.style.top=ue+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ue<40?Se.style.top="40px":Se.style.top=ue+"px",Se.style.left=Ie+"px")}function nt(Se,xe){var Ee=Se.querySelector(".appletParameters");if(Ee){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(xe.id!==Ee.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Se)}if(Ee.parentElement&&/fullscreen/.test(Ee.parentElement.className))return;var je=ze(xe,Se);In()&&Ee.setAttribute("data-param-scale",je);for(var Ie=null,ue=0;ue<Se.childNodes.length;ue++)if(Se.childNodes[ue].className!==void 0&&Se.childNodes[ue].className.match(/^applet_scaler/)){Ie=Se.childNodes[ue];break}if(Ie!==null&&Ie.querySelector(".noscale")!==null)return;var et=xe.id!==void 0?xe.id:"ggbApplet",Te=window[et];(Te==null||!Te.recalculateEnvironments)&&Ie!==null&&!Ie.className.match(/fullscreen/)&&(Ie.parentNode.style.transform="",!isNaN(je)&&je!==1?(Ie.parentNode.style.width=xe.width*je+"px",Ie.parentNode.style.height=xe.height*je+"px",Qt(Ie,je)):(Qt(Ie,1),Ie.parentNode.style.width=xe.width+"px",Ie.parentNode.style.height=xe.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&fe(Se),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(Ee).parents(".content-added-content"))}}return{responsiveResize:nt,isFlexibleWorksheetEditor:In,positionCenter:fe,getScale:ze,scaleElement:Qt}}();__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 In=n.location.search;return In.indexOf(J)!=-1||In.indexOf(K)!=-1}function q(In,Qt){}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(In){var Qt=s[L].bindings;s[L].bindings=function(){for(var ee=Qt?Qt():{},b=In[webModule.__softPermutationId],ze=O;ze<b.length;ze++){var fe=b[ze];ee[fe[O]]=fe[P]}return ee}};var t;function u(){return v(),t}function v(){if(!t){var In=o.createElement(Q);if(In.id=L,In.style.cssText=R+S,In.tabIndex=-1,o.body.appendChild(In),t=In.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Qt=document.compatMode==U?V:W;t.write(Qt+X),t.close()}}}function w(In){function Qt(b){function ze(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var fe=ze();if(fe){b();return}function nt(){if(!fe){if(!ze())return;fe=!0,b(),o.removeEventListener&&o.removeEventListener(Z,nt,!1),Se&&clearInterval(Se)}}o.addEventListener&&o.addEventListener(Z,nt,!1);var Se=setInterval(function(){nt()},$)}function ee(b){var ze=u(),fe=ze.body,nt=ze.createElement(_);nt.language=ab,nt.crossOrigin=W,nt.src=b,webModule.__errFn&&(nt.onerror=function(){webModule.__errFn(L,new Error(bb+b))}),fe.appendChild(nt)}Qt(function(){ee(In)})}webModule.__startLoadingFragment=function(In){return C(In)},webModule.__installRunAsyncCode=function(In){var Qt=u(),ee=Qt.body,b=Qt.createElement(_);b.language=ab,b.text=In,ee.appendChild(b),ee.removeChild(b)};function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(gb),k;if(j){if(j=j.replace(hb,W),j.indexOf(ib)>=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(In){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(In){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(In){var Qt=c[In];return Qt==null?null:Qt},r=d,webModule.__errFn=e}function B(){function In(Se){var xe=Se.lastIndexOf(rb);xe==-1&&(xe=Se.length);var Ee=Se.indexOf(sb);Ee==-1&&(Ee=Se.length);var je=Se.lastIndexOf(tb,Math.min(Ee,xe));return je>=O?Se.substring(O,je+P):W}function Qt(Se){if(!Se.match(/^\w+:\/\//)){var xe=o.createElement(ub);xe.src=Se+vb,Se=In(xe.src)}return Se}function ee(){var Se=__gwt_getMetaProperty(wb);return Se!=null?Se:W}function b(){for(var Se=o.getElementsByTagName(_),xe=O;xe<Se.length;++xe)if(Se[xe].src.indexOf(xb)!=-1)return In(Se[xe].src);return W}function ze(){var Se=o.getElementsByTagName(yb);return Se.length>O?Se[Se.length-P].href:W}function fe(){var Se=o.location;return Se.href==Se.protocol+zb+Se.host+Se.pathname+Se.search+Se.hash}var nt=ee();return nt==W&&(nt=b()),nt==W&&(nt=ze()),nt==W&&fe()&&(nt=In(o.location.href)),nt=Qt(nt),nt}function C(In){return In.match(/^\//)||In.match(/^[a-zA-Z]+:\/\//)?In:webModule.__moduleBase+In}function D(){var In=[],Qt=O,ee=[],b=[];function ze(Se){var xe=b[Se](),Ee=ee[Se];if(xe in Ee)return xe;var je=[];for(var Ie in Ee)je[Ee[Ie]]=Ie;throw r&&r(Se,je,xe),null}if(__gwt_isKnownPropertyValue=function(Se,xe){return xe in ee[Se]},webModule.__getPropMap=function(){var Se={};for(var xe in ee)ee.hasOwnProperty(xe)&&(Se[xe]=ze(xe));return Se},webModule.__computePropValue=ze,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var fe;try{fe=Cb;var nt=fe.indexOf(Db);nt!=-1&&(Qt=parseInt(fe.substring(nt+P),$),fe=fe.substring(O,nt))}catch(Se){}return webModule.__softPermutationId=Qt,C(fe+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})()},23216:function(In,Qt,ee){"use strict";ee.d(Qt,{Ax:function(){return nt},Ds:function(){return Se},KI:function(){return Ee},SI:function(){return fe},f1:function(){return ze}});var b=ee(14185);function ze(je){let Ie=!0;if(je.length>0){for(let ue=0;ue<je.length;ue++)if(je[ue].compile_success==0||!je[ue].compile_success){Ie=!1;break}}else Ie=!1;return Ie}function fe(je,Ie=""){let ue=[];for(let et=0;et<je.length;et++){let Te=je[et],At=Ie?`${Ie}/${Te.name}`:`${Te.name}`;ue.push({title:Te.name,type:Te.type,isLeaf:Te.type!=="tree",key:At})}return ue}function nt(je,Ie,ue){for(let et=0;et<je.length;et++){let Te=je[et];if(Te.key===Ie){Te.children=ue;break}Te.children&&nt(Te.children,Ie,ue)}return je}function Se(je,Ie,ue){let et;return function(){let Te=this,At=arguments,lt=function(){et=null,ue||je.apply(Te,At)},it=ue&&!et;clearTimeout(et),et=setTimeout(lt,Ie),it&&je.apply(Te,At)}}const xe=!0,Ee=b.Z.API_SERVER},40254:function(In,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return et}});var b=ee(59301),ze={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},fe=ee(92310),nt=ee.n(fe),Se=ee(29787),xe=ee(2859),Ee=ee(49317),je=ee(76406),Ie=(Te,At,lt)=>new Promise((it,We)=>{var ke=Nt=>{try{yt(lt.next(Nt))}catch(Fe){We(Fe)}},ot=Nt=>{try{yt(lt.throw(Nt))}catch(Fe){We(Fe)}},yt=Nt=>Nt.done?it(Nt.value):Promise.resolve(Nt.value).then(ke,ot);yt((lt=lt.apply(Te,At)).next())}),et=({data:Te,className:At,fullWidth:lt,style:it={},onClose:We,onOk:ke,showFullTools:ot,noAssociationId:yt})=>{const Nt=(0,b.useRef)(null),Fe=(0,b.useRef)(null),Me=(0,b.useRef)(null),Xe=(0,b.useRef)(null),[Je,$t]=(0,b.useState)(!1),[ct,Ye]=(0,b.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,b.useEffect)(()=>(Me.current||(Me.current=document.createElement("style"),document.head.appendChild(Me.current)),Te!=null&&Te.visible?(document.body.setAttribute("data-custom","y-hidden"),Me.current.innerHTML=" html { overflow-y: hidden; }",Te!=null&&Te.src&&rt()):(document.body.removeAttribute("data-custom"),Me.current&&(document.head.removeChild(Me.current),Me.current=null)),()=>{document.body.removeAttribute("data-custom"),Me.current&&(document.head.removeChild(Me.current),Me.current=null)}),[Te==null?void 0:Te.visible]);const rt=()=>Ie(void 0,null,function*(){$t(!0),Ye("\u6B63\u5728\u52A0\u8F7D\u4E2D");const de=yield(0,je.ZJ)(Te==null?void 0:Te.src);Nt.current.src="",Nt.current.src=de,Nt.current.onload=function(){_e()},$t(!1),Ye("")}),Ce=de=>Ie(void 0,null,function*(){$t(!0),Ye("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Et=yield(0,Ee.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Te.title,file:de.dataUrl}});Et!=null&&Et.id&&!yt?(yield(0,Ee.ZP)(`/api/attachments/${Te.id}/add_subitem.json`,{method:"post",body:{subitem_id:Et==null?void 0:Et.id,settings:JSON.stringify(de.state)}})).status===0&&ke():Et!=null&&Et.id&&ke(Et),$t(!1),Ye("")}),at=()=>{const de=document.querySelector('a[href="https://markerjs.com/"]');de&&de.parentNode&&(de.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"\u9009\u62E9"},{name:'[data-action="delete"]',title:"\u5220\u9664\u5143\u7D20"},{name:'[data-action="undo"]',title:"\u64A4\u9500"},{name:'[data-type-name="FrameMarker"]',title:"\u77E9\u5F62"},{name:'[data-type-name="FreehandMarker"]',title:"\u753B\u7EBF"},{name:'[data-type-name="ArrowMarker"]',title:"\u7BAD\u5934"},{name:'[data-type-name="TextMarker"]',title:"\u6587\u672C"},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:"\u4FDD\u5B58"},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(He=>{const st=document.querySelector(He.name);st&&st.setAttribute("title",He.title)})},_e=()=>{Fe.current=new xe.hP(Nt.current),Fe.current.targetRoot=Xe.current,Fe.current.addEventListener("render",Ce),Fe.current.addEventListener("beforeclose",We),ot&&(Fe.current.availableMarkerTypes=Fe.current.ALL_MARKER_TYPES,Fe.current.uiStyleSettings.redoButtonVisible=!0,Fe.current.uiStyleSettings.notesButtonVisible=!0,Fe.current.uiStyleSettings.zoomButtonVisible=!0,Fe.current.uiStyleSettings.zoomOutButtonVisible=!0,Fe.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=Fe.current.uiStyleSettings,Fe.current.show(),Te!=null&&Te.snapshotData&&Fe.current.restoreState(Te.snapshotData),setTimeout(()=>{window.scrollTo(0,0),at()},300)};return b.createElement(b.Fragment,null,(Te==null?void 0:Te.visible)&&b.createElement(Se.Z,{spinning:Je,tip:ct,style:{position:"absolute",width:"100vw"}},b.createElement("div",{ref:Xe,className:nt()(ze.imageDimensions,At,lt?ze.fullWidth:""),style:it},b.createElement("img",{className:ze.img,ref:Nt}))))}},9057:function(In,Qt,ee){"use strict";var b=ee(59301),ze=ee(77019),fe=ee(5269),nt=ee(31691),Se=ee(7939),xe=ee(35883),Ee=ee(74501),je=ee(48136),Ie=ee(59301);const ue=(0,b.forwardRef)(({callback:et,showSaveButton:Te,value:At=""},lt)=>{const it=(0,b.useRef)(),We=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],ke=[{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}`}]}]}],ot=Fe=>{it.current.setValue(it.current.getValue()+" "+Fe.value+" ")},yt=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Ie.createElement(ze.Z,{className:Ee.Z.lists,gutter:[10,10]},We.map((Fe,Me)=>Ie.createElement(fe.Z,{flex:"110px",className:Ee.Z.item},Ie.createElement("div",null,Ie.createElement(xe.Z,{value:`$$${Fe.value}$$`}),Fe.name),Ie.createElement("div",{className:Ee.Z.children},Fe.children.map((Xe,Je)=>Ie.createElement("div",{key:Je},Ie.createElement("h1",null,Xe.name),Ie.createElement(ze.Z,{gutter:[10,10]},Xe.data.map(($t,ct)=>Ie.createElement(fe.Z,{key:ct,onClick:()=>ot($t),className:Ee.Z.diamond},Ie.createElement(xe.Z,{value:"`$$"+$t.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Ie.createElement(ze.Z,{className:Ee.Z.lists,gutter:[10,10]},ke.map((Fe,Me)=>Ie.createElement(fe.Z,{flex:"110px",className:Ee.Z.item},Ie.createElement("div",null,Ie.createElement(xe.Z,{value:"`$$"+Fe.value+"$$`"}),Fe.name),Ie.createElement("div",{className:Ee.Z.children},Fe.children.map((Xe,Je)=>Ie.createElement("div",{key:Je},Xe.name&&Ie.createElement("h1",null,Xe.name),Ie.createElement(ze.Z,{gutter:[10,10]},Xe.data.map(($t,ct)=>Ie.createElement(fe.Z,{key:ct,onClick:()=>ot($t),className:Ee.Z.diamond},Ie.createElement(xe.Z,{value:"`$$"+$t.value+"$$`"}))))))))))}],Nt=()=>{var Fe=document.createElement("div");Fe.innerHTML=it.current.getValue();var Me=Fe.innerText;return et&&et(Me),Me};return(0,b.useImperativeHandle)(lt,()=>({getData:Nt})),Ie.createElement("div",{className:Ee.Z.mathWrap},Ie.createElement(nt.default,{defaultActiveKey:"1",items:yt}),Ie.createElement("math-field",{locale:"zh_cn",className:Ee.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:it,style:{width:800,marginTop:30,fontSize:18}},At||""),Te&&Ie.createElement("div",{className:Ee.Z.button},Ie.createElement(Se.ZP,{size:"large",onClick:Nt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Qt.Z=ue},90736:function(In,Qt,ee){"use strict";var b=ee(59301),ze=ee(4977),fe=ee(7939),nt=Object.defineProperty,Se=Object.defineProperties,xe=Object.getOwnPropertyDescriptors,Ee=Object.getOwnPropertySymbols,je=Object.prototype.hasOwnProperty,Ie=Object.prototype.propertyIsEnumerable,ue=(lt,it,We)=>it in lt?nt(lt,it,{enumerable:!0,configurable:!0,writable:!0,value:We}):lt[it]=We,et=(lt,it)=>{for(var We in it||(it={}))je.call(it,We)&&ue(lt,We,it[We]);if(Ee)for(var We of Ee(it))Ie.call(it,We)&&ue(lt,We,it[We]);return lt},Te=(lt,it)=>Se(lt,xe(it));const At=({img:lt,buttonProps:it={},styles:We={},customText:ke,ButtonText:ot,ButtonClick:yt,Buttonclass:Nt,ButtonTwo:Fe,imgStyles:Me,loading:Xe=!1,className:Je=""})=>b.createElement("section",{className:`tc animated fadeIn ${Je}`,style:et({color:"#999",margin:"100px auto",visibility:Xe?"hidden":"visible"},We)},b.createElement("img",{src:lt||ze,style:Te(et({},Me),{pointerEvents:"none",userSelect:"none"})}),b.createElement("p",{className:"mt20 font14"},ke||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),ot&&b.createElement(fe.ZP,et({className:Nt,onClick:yt},it),ot),Fe&&Fe);Qt.Z=At},86974:function(In,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Nt}});var b=ee(59301),ze={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",showClose:"showClose___edZQA",embed:"embed___hvpEJ"},fe=ee(7939),nt=ee(70557),Se=ee(34728),xe=ee(25399),Ee=ee(76406),je=ee(84849),Ie=ee(90736),ue=ee(14185),et=ee(52078),Te=ee(59301),At=Object.defineProperty,lt=Object.getOwnPropertySymbols,it=Object.prototype.hasOwnProperty,We=Object.prototype.propertyIsEnumerable,ke=(Fe,Me,Xe)=>Me in Fe?At(Fe,Me,{enumerable:!0,configurable:!0,writable:!0,value:Xe}):Fe[Me]=Xe,ot=(Fe,Me)=>{for(var Xe in Me||(Me={}))it.call(Me,Xe)&&ke(Fe,Xe,Me[Xe]);if(lt)for(var Xe of lt(Me))We.call(Me,Xe)&&ke(Fe,Xe,Me[Xe]);return Fe},yt=(Fe,Me,Xe)=>new Promise((Je,$t)=>{var ct=Ce=>{try{rt(Xe.next(Ce))}catch(at){$t(at)}},Ye=Ce=>{try{rt(Xe.throw(Ce))}catch(at){$t(at)}},rt=Ce=>Ce.done?Je(Ce.value):Promise.resolve(Ce.value).then(ct,Ye);rt((Xe=Xe.apply(Fe,Me)).next())}),Nt=({editOffice:Fe="view",data:Me,issaver:Xe,onSaver:Je,theme:$t,type:ct,filename:Ye,monacoEditor:rt,className:Ce,style:at,close:_e,onClose:de,hasMask:Et,disabledDownload:He,onImgDimensions:st,showNodata:Yt,recordInfo:Oe})=>{const[pe,Lt]=(0,b.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[en,Ot]=(0,b.useState)(""),[ge,Ke]=(0,b.useState)(),tt=window.ENV==="build"?"/react/build":"",Wt=location.host.startsWith("localhost")?ue.Z.PROXY_SERVER:ue.Z.API_SERVER,Rt=10*(1024*1024),Qe=(0,b.useRef)();Me!=null&&Me.startsWith("/api")&&ct!=="txt"&&(Me=ue.Z.API_SERVER+Me);const tn=ce=>ce.substring(ce.lastIndexOf("/")+1).split(".").pop();Ye&&rt&&(rt.filename=Ye),(0,b.useEffect)(()=>{var ce,re;const le=(re=(ce=document.cookie)==null?void 0:ce.replace(/\s/g,""))==null?void 0:re.split(";");le==null||le.map(be=>{let ht=be.split("=");ht[0]==="_educoder_session"&&Ot(ht[1])})},[]),(0,b.useEffect)(()=>{ct==="office"&&(Me.indexOf("bigfilescdn.")>-1||Me.indexOf("bigfiles1")>-1?Ke({url:Me,fileType:tn(Me),model:Me.indexOf("model=edit")?"edit":"view"}):Me.indexOf("coze")>-1?Ke({url:Me,fileType:"doc",model:"view"}):ae())},[ct,Me]);function gt(ce){return yt(this,null,function*(){ce.data.type==="pdfdata"&&(Je(ce.data.data),window.removeEventListener("message",gt,!1)),console.log("mess---:",ce.data)})}const ae=()=>yt(void 0,null,function*(){console.log("data:",Me);let ce=Me;Me.startsWith("http")||(ce=location.origin+ce);let re=new URL(ce).pathname.split("/").pop();const le=yield(0,je.gJ)({attachment_id:re});le.url=Wt+le.url,Ke(le)}),ne=()=>{if(Me.startsWith("http")||Me.startsWith("blob:")){te();return}(0,Ee.Sv)(Ye||"educoder",Me,Ye)},te=()=>{Oe&&(0,et.fc)({id:Oe==null?void 0:Oe.id,watch_type:1,course_id:Oe==null?void 0:Oe.course_id}),(0,Ee.Nd)(Ye||"educoder",decodeURIComponent(Me))};(0,b.useEffect)(()=>(window.addEventListener("message",oe),()=>{window.removeEventListener("message",oe)}),[]);const oe=ce=>{var re;((re=ce==null?void 0:ce.data)==null?void 0:re.type)==="closePop"&&de()};return Te.createElement("div",{style:ot({},at||{}),className:`${Et&&ze.bgBlack} ${ct?ze.wrp:"hide"}`},!!ct&&_e&&Te.createElement("div",{id:"closePop",className:ze.close,ref:Qe},!!st&&Te.createElement(xe.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>Qe.current},Te.createElement("span",{onClick:()=>{de(),st()}},Te.createElement("i",{className:"icon-yulanpizhu"}))),!He&&window.parent===window&&Te.createElement(xe.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>Qe.current},Te.createElement("span",{onClick:te},Te.createElement("i",{className:"icon-quxiaozhiding"}))),Xe&&Te.createElement(xe.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>Qe.current},Te.createElement("span",{className:"",onClick:()=>{const ce=document.getElementById("pdfiframe");window.addEventListener("message",gt,!1),setTimeout(()=>{ce.contentWindow.postMessage("getData","*")},300)}},Te.createElement("i",{className:"icon-baocun"}))),Te.createElement(xe.Z,{title:"\u5173\u95ED",getPopupContainer:()=>Qe.current},Te.createElement("span",{className:"",onClick:()=>{de()}},Te.createElement("i",{className:"icon-guanbi1"})))),Te.createElement("div",{className:`${ze[Ce]} ${Ce} ${ze.monaco} ${ct==="txt"?"show":"hide"}`},ct==="txt"&&Te.createElement(Te.Fragment,null,Te.createElement(Se.ZP,ot({},rt)))),ct==="audio"&&Te.createElement("audio",{controls:!0,src:`${(Me==null?void 0:Me.indexOf("http://"))>-1||(Me==null?void 0:Me.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${Me}`,autoPlay:!0}),ct==="video"&&Te.createElement(Te.Fragment,null,(Me==null?void 0:Me.indexOf("http"))>-1?Te.createElement("video",{controls:!0,src:`${Me}`,autoPlay:!0}):Te.createElement("video",{controls:!0,src:`data:video/mp4;base64,${Me}`,autoPlay:!0})),ct==="office"&&ge&&Te.createElement("iframe",{src:`${tt}/office.html?key=${ge.key}&url=${btoa(ge.url)}&callbackUrl=${Wt+(ge.callbackUrl||"")}&fileType=${ge.fileType}&title=${ge.title||""}&model=${Fe}&officeServer=${ue.Z.ONLYOFFICE}&disabledDownload=${!!He}`}),ct==="html"&&Te.createElement("iframe",{src:Me+"&disposition=inline"}),ct==="pdf"&&Te.createElement("iframe",{id:"pdfiframe",src:`${tt}/js/pdf/index.html?filename=${Ye||"educoder.pdf"}&url=${encodeURIComponent(Me)}&disabledDownload=${!!He}&model=${Fe}`}),ct==="image"&&Te.createElement("img",{src:`${(Me==null?void 0:Me.indexOf("http://"))>-1||(Me==null?void 0:Me.indexOf("https://"))>-1?"":"data:image/png;base64,"}${Me}`}),(ct==="other"||ct==="download")&&Te.createElement(Te.Fragment,null,Yt?Te.createElement(Ie.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:Te.createElement(fe.ZP,{icon:Te.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:ne,disabled:He},"\u4E0B\u8F7D")}):Te.createElement(fe.ZP,{type:"primary",size:"middle",onClick:ne,disabled:He},Te.createElement(nt.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")),ct==="flowChart"&&Te.createElement("div",{className:"embed"},Te.createElement("iframe",{src:`/drawio/src/main/webapp/viewer.html?id=${Me||""}&gapi=0&od=0&db=0&gh=0&gl=0`,width:"100%",height:"100%",frameBorder:"0"})))}},78130:function(In,Qt,ee){"use strict";ee.d(Qt,{h:function(){return it},x:function(){return We}});var b=ee(39116),ze=ee(42168),fe=ee(35883),nt=ee(59301),Se=Object.defineProperty,xe=Object.defineProperties,Ee=Object.getOwnPropertyDescriptors,je=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable,et=(ke,ot,yt)=>ot in ke?Se(ke,ot,{enumerable:!0,configurable:!0,writable:!0,value:yt}):ke[ot]=yt,Te=(ke,ot)=>{for(var yt in ot||(ot={}))Ie.call(ot,yt)&&et(ke,yt,ot[yt]);if(je)for(var yt of je(ot))ue.call(ot,yt)&&et(ke,yt,ot[yt]);return ke},At=(ke,ot)=>xe(ke,Ee(ot)),lt=(ke,ot)=>{var yt={};for(var Nt in ke)Ie.call(ke,Nt)&&ot.indexOf(Nt)<0&&(yt[Nt]=ke[Nt]);if(ke!=null&&je)for(var Nt of je(ke))ot.indexOf(Nt)<0&&ue.call(ke,Nt)&&(yt[Nt]=ke[Nt]);return yt};const it=ke=>{var ot=ke,{value:yt,onChange:Nt,scrollId:Fe}=ot,Me=lt(ot,["value","onChange","scrollId"]);return nt.createElement("div",{id:Fe||""},nt.createElement(b.Z,At(Te({},Me),{defaultValue:yt,onChange:(Xe,Je)=>{Je!=null&&Je.length?Nt(Xe,Je):Nt(Xe)}})))},We=({value:ke,onChange:ot,placeholder:yt,height:Nt=140,isEdit:Fe,miniToolbar:Me,watch:Xe=!0})=>Fe?nt.createElement(b.Z,{watch:Xe,isFocus:!0,height:Nt||void 0,placeholder:yt,defaultValue:ke,onChange:ot,miniToolbar:Me}):nt.createElement("div",{style:{cursor:"pointer"}},ke?nt.createElement(fe.Z,{className:ze.Z.inputBorder,value:ke}):nt.createElement("div",{className:`${ze.Z.inputBorder} ${ze.Z.placeholder} inputBorderError`},yt))},35883:function(In,Qt,ee){"use strict";ee.d(Qt,{z:function(){return rt},Z:function(){return Ce}});var b=ee(59301),ze=ee(46214),fe=ee(20047),nt=ee(64018),Se=ee(16471),xe=ee(14185),Ee=ee(76406),je=ee(15342),Ie=ee(44104),ue=ee(7939),et=ee(1012),Te=ee(86974),At=ee(59301),it=({html:at})=>{const _e=(0,b.useRef)(null),de=(0,b.useRef)(null),Et=`.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,b.useEffect)(()=>{const He=_e.current.attachShadow({mode:"open"});de.current=document.createElement("div"),de.current.className="markdown-body",de.current.innerHTML=at,He.appendChild(de.current);const st=document.createElement("style");return st.textContent=Et,He.appendChild(st),()=>{He.innerHTML=""}},[]),(0,b.useEffect)(()=>{de.current&&(de.current.innerHTML=at)},[at]),At.createElement("div",{ref:_e})};function We(at){const _e=["onabort","onanimationend","onanimationiteration","onanimationstart","onauxclick","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextmenu","oncopy","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitionend","onvolumechange","onwaiting","onwheel"],de=new RegExp(`\\b(${_e.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi"),Et=/<meta\s+http-equiv\s*=\s*["']?refresh["']?[^>]*>/gi;return at.replace(de,"").replace(Et,"").trim()}var ke={mdBody:"mdBody___raKXb",button:"button___Ch5Pc",previewFlowChart:"previewFlowChart___vY1dq"},ot=Object.defineProperty,yt=Object.getOwnPropertySymbols,Nt=Object.prototype.hasOwnProperty,Fe=Object.prototype.propertyIsEnumerable,Me=(at,_e,de)=>_e in at?ot(at,_e,{enumerable:!0,configurable:!0,writable:!0,value:de}):at[_e]=de,Xe=(at,_e)=>{for(var de in _e||(_e={}))Nt.call(_e,de)&&Me(at,de,_e[de]);if(yt)for(var de of yt(_e))Fe.call(_e,de)&&Me(at,de,_e[de]);return at};const Je="@\u2581\u2581@",$t="@\u2581@",ct=/<pre[^>]*>/g;function Ye(at){let _e=document.createElement("div");return _e.innerHTML=at,_e.childNodes.length===0?"":_e.childNodes[0].nodeValue}const rt=(at,_e)=>{at=at||"";const de=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Et=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,He=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,st=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return _e?at.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(de,(Yt,Oe,pe,Lt,en,Ot,ge)=>{const Ke=Oe||Lt||Ot,tt=pe||en||ge||"?";return xe.Z.API_SERVER+"/api/attachments/"+Ke+tt+"&t="+(0,Ee.Jn)(Ke,Date.now())+(Yt.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(at=at.replace(st,(Yt,Oe,pe,Lt,en,Ot,ge)=>{const Ke=Oe||Lt||Ot,tt=pe||en||ge||"?";return xe.Z.API_SERVER+"/attachments/download/"+Ke+tt+"&t="+(0,Ee.Jn)(Ke,Date.now())+(Yt.indexOf(")")>-1?")":"&")}).replace(de,(Yt,Oe,pe,Lt,en,Ot,ge)=>{const Ke=Oe||Lt||Ot,tt=pe||en||ge||"?";return xe.Z.API_SERVER+"/api/attachments/"+Ke+tt+"&t="+(0,Ee.Jn)(Ke,Date.now())+(Yt.indexOf(")")>-1?")":"&")}).replace(Et,(Yt,Oe,pe,Lt,en)=>{const Ot=Oe||Lt,ge=pe||en||"";return'"'+xe.Z.API_SERVER+"/api/attachments/"+Ot+ge+Ot+ge+"&t="+(0,Ee.Jn)(Ot,Date.now())}).replace(He,(Yt,Oe,pe,Lt,en)=>{const Ot=Oe||Lt,ge=pe||en||"";return"("+xe.Z.API_SERVER+"/files/uploads/"+Ot+ge+Ot+ge+"&t="+(0,Ee.Jn)(Ot,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,`
|
|
|
`),at)};var Ce=({value:at="",edit:_e=!1,className:de,showTextOnly:Et,showLines:He,style:st={},stylesPrev:Yt={},highlightKeywords:Oe,showProgramFill:pe,isProgramFill:Lt,disabledFill:en=!1,programFillValue:Ot,openEditor:ge=()=>{},onFillChange:Ke=qe=>{},onFillBlur:tt=()=>{},onFillFocus:Wt=()=>{}})=>{let qe=We(String(at||""));const Rt=(0,b.useRef)(),Qe=(0,b.useRef)(),[tn,gt]=(0,b.useState)(""),[ae,ne]=(0,b.useState)("office"),[te,oe]=(0,b.useState)([]),ce=(0,b.useRef)("a"+(0,et.Z)()),re={},le=St=>/<style[\s\S]*?>/i.test(St||""),be=(St,an,_t)=>{const $e=document.createElement(St===$t?"input":"textarea");$e.style.width="100%",$e.style.height=St===$t?"40px":"151px",$e.rows=5,$e.spellcheck=!1,$e.name="edu-program-fill",$e.placeholder="\u8BF7\u8F93\u5165",$e.dataset.id=an;const mt=Object.keys(re).length;return re[mt]=$e,`<span class="edu-program-fill-wrap ${St===$t?"":"show"}" style="width:${St===$t?"600px":"100%"}" title=${_t||""}><span>${$e.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function ht(St){return St=St.replace(/!\[.*?\]\(.*?\)/g,""),St=St.replace(/\[.*?\]\(.*?\)/g,""),St=St.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),St=St.replace(/<embed.*?>/g,""),St=St.replace(/<img.*?>/g,""),St=St.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),St=St.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),St=St.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),St=St.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),St}const Le=St=>!Et&&le(qe)?St:St.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(an,_t){let $e=_t.replace(/(\n|\r)/g,"").split("}"),mt=[];return $e.map(jt=>{jt!=""&&mt.push(`.${ce.current} ${jt}`)}),`<style>${mt.join("}")}</style>`}),Ne=(0,b.useMemo)(()=>{(0,fe.Iy)();try{const $e=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,mt=/\"\/api\/attachments\/|\"\/attachments\/download\//g,jt=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Jt=/\(\/attachments\/download\//g;qe=qe.replace(Jt,"("+xe.Z.API_SERVER+"/attachments/download/").replace($e,"("+xe.Z.API_SERVER+"/api/attachments/").replace(mt,'"'+xe.Z.API_SERVER+"/api/attachments/").replace(jt,'"'+xe.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,`
|
|
|
`),Rt.current.style.display="none"}catch($e){}if(pe){let $e=-1;return qe=qe.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(mt,jt,Jt){var Be;return++$e,be(mt,$e,(Be=Ot==null?void 0:Ot[$e])==null?void 0:Be.value.replaceAll("<","<").replaceAll(">",">"))}),`<pre style="background:#fff;padding:4px">${Le(qe||"")}</pre>`}let St=Le(qe);St=(0,fe.ZP)(St);const an=(0,fe.ez)();qe.match(/\[TOC\]/)&&(St=St.replace("<p>[TOC]</p>",(0,fe.Qv)()),(0,fe.Iy)()),St=St.replace(/(__special_katext_id_\d+__)/g,($e,mt)=>{const{type:jt,expression:Jt}=an[mt];return(0,je.renderToString)(Ye(Jt)||"",{displayMode:jt==="block",throwOnError:!1,output:"html"})}),St=St.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,fe.AL)();const _t=document.createElement("div");if(_t.innerHTML=St,Et)return _t.innerText;if(Oe){const $e=Oe.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return we(_t,$e),_t.innerHTML}return setTimeout(()=>Tt(),500),_t.innerHTML},[qe,Oe]);(0,b.useEffect)(()=>{De.current&&De.current.querySelectorAll(["input","textarea"]).forEach(an=>{an.oninput=Ve,an.onblur=Ge,an.onfocus=pt})},[te]),(0,b.useEffect)(()=>{var St,an,_t,$e,mt;if(Ot!=null&&Ot.length)try{const jt=De.current.querySelectorAll(".edu-program-fill-score"),Jt=De.current.querySelectorAll('[name="edu-program-fill"]');for(const[Be,ft]of Jt.entries())ft.value=((St=Ot==null?void 0:Ot[Be])==null?void 0:St.value)||"",((an=Ot==null?void 0:Ot[Be])==null?void 0:an.type)==="warning"?ft.className="program-fill-warning":((_t=Ot==null?void 0:Ot[Be])==null?void 0:_t.type)==="success"?ft.className="program-fill-success":ft.className="";for(const[Be,ft]of jt.entries())ft.innerHTML=($e=Ot==null?void 0:Ot[Be])!=null&&$e.score?`${(mt=Ot==null?void 0:Ot[Be])==null?void 0:mt.score}\u5206`:"";oe(Ot)}catch(jt){console.log(jt,"error")}},[Ot]);const Ve=St=>{te[St.target.dataset.id]=te[St.target.dataset.id]||{},te[St.target.dataset.id].value=St.target.value,oe([...te]),Ke(te,St.target.dataset.id)},Ge=St=>{te[St.target.dataset.id]=te[St.target.dataset.id]||{},te[St.target.dataset.id].value=St.target.value,oe([...te]),tt(te,St.target.dataset.id)},pt=St=>{te[St.target.dataset.id]=te[St.target.dataset.id]||{},te[St.target.dataset.id].value=St.target.value,oe([...te]),Wt(te,St.target.dataset.id)};function we(St,an){return St.childNodes.forEach(_t=>{var $e;if(_t.childNodes.length>0)we(_t,an);else if(_t.nodeName!=="IMG")if(_t.innerHTML)_t.innerHTML=($e=_t.innerHTML)==null?void 0:$e.replace(new RegExp(an,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const mt=document.createElement("span");mt.innerHTML=_t.textContent.replace(new RegExp(an,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),_t.replaceWith(mt)}})}const De=(0,b.useRef)();fe.jb.WebkitLineClamp=He,He&&(st=Xe(Xe({},st),fe.jb));function Zt(St){let an=St.target;if(an.tagName.toUpperCase()==="A"){let _t=an.getAttribute("href");if(_t.indexOf("office")>-1)St.preventDefault(),gt(_t),ne("office");else if(_t.indexOf("application/pdf")>-1)St.preventDefault(),gt(_t),ne("pdf");else if(_t.indexOf("text/html")>-1)St.preventDefault(),gt(_t),ne("html");else if(_t.startsWith("#")){St.preventDefault();let $e=document.getElementById(_t.replace("#",""));$e&&$e.scrollIntoView(!0)}}}const Tt=()=>{var St;const an=(St=De.current)==null?void 0:St.querySelectorAll("video");an==null||an.forEach(_t=>{if(_t.oncontextmenu=()=>!1,_t.src.indexOf(".m3u8")>-1&&!_t.canPlayType("application/vnd.apple.mpegurl")){if(Se.ZP.isSupported()){var $e=new Se.ZP;$e.loadSource(_t.src),$e.attachMedia(_t)}}})};(0,b.useEffect)(()=>{if(De.current&&Ne&&Ne.match(ct)&&window.PR.prettyPrint(),De.current)return De.current.addEventListener("click",Zt),()=>{var St;(St=De.current)==null||St.removeEventListener("click",Zt),(0,fe.AL)(),(0,fe.Iy)()}},[Ne,De.current,Zt]);const nn=St=>{St.target.nodeName==="IMG"&&St.target.className.indexOf("draw-flowchart")>-1?(Rt.current.style.zIndex=1,Rt.current.style.display="flex",Rt.current.style.width=St.target.clientWidth+"px",Rt.current.style.height=St.target.clientHeight+"px",Rt.current.style.top=St.target.offsetTop+"px",Rt.current.style.left=St.target.offsetLeft+"px",St.target.id&&(Qe.current=St.target.id)):Rt.current.style.display="none"},Ut=()=>{Rt.current.style.display="none"};return(0,b.useEffect)(()=>{var St;const an=_t=>{_t.preventDefault(),_t.clipboardData.setData("text",window.getSelection().toString())};return(St=De.current)==null||St.addEventListener("copy",an),()=>{var _t;(_t=De.current)==null||_t.removeEventListener("copy",an)}},[De.current]),b.createElement("div",{style:{position:"relative"},onMouseLeave:Ut},Et&&b.createElement("div",{ref:De,className:`${ke.mdBody} `},Ne),!Et&&!le(Ne)&&b.createElement("div",{ref:De,style:Xe({},st),onMouseOver:nn,className:`${de||""} ${en?"disabled-fill":""} markdown-body ${ke.mdBody} ${ce.current}`,dangerouslySetInnerHTML:{__html:Ne}}),!Et&&le(Ne)&&b.createElement(it,{html:Ne}),b.createElement("div",{ref:Rt,className:`${ke.button} ${_e?"":ke.previewFlowChart}`},b.createElement(Ie.Z,null,b.createElement(ue.ZP,{onClick:()=>{_e?ge(Qe.current):(gt(Qe.current),ne("flowChart"))}},_e?"\u7F16\u8F91":"\u9884\u89C8"))),b.createElement(Te.Z,{close:!0,data:tn,type:tn!=null&&tn.length?ae:"",style:Xe({},Yt),onClose:()=>gt("")}))}},28267:function(In,Qt,ee){"use strict";ee.d(Qt,{h:function(){return Fe}});var b=ee(59301),ze=ee(82326),fe=ee(28284),nt=ee(7939),Se=ee(89780),xe=ee.n(Se),Ee=ee(88319),je=ee(94896),Ie=Object.defineProperty,ue=Object.defineProperties,et=Object.getOwnPropertyDescriptors,Te=Object.getOwnPropertySymbols,At=Object.prototype.hasOwnProperty,lt=Object.prototype.propertyIsEnumerable,it=(Me,Xe,Je)=>Xe in Me?Ie(Me,Xe,{enumerable:!0,configurable:!0,writable:!0,value:Je}):Me[Xe]=Je,We=(Me,Xe)=>{for(var Je in Xe||(Xe={}))At.call(Xe,Je)&&it(Me,Je,Xe[Je]);if(Te)for(var Je of Te(Xe))lt.call(Xe,Je)&&it(Me,Je,Xe[Je]);return Me},ke=(Me,Xe)=>ue(Me,et(Xe));const ot=ze.default.Option,yt={labelCol:{span:4},wrapperCol:{span:20}},Nt={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"]};Qt.Z=({callback:Me,onCancel:Xe})=>{const[Je,$t]=(0,b.useState)("python");function ct(rt){$t(Nt[rt][1])}function Ye(rt){Me(rt)}return b.createElement(fe.default,ke(We({},yt),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Ye,style:{width:500}}),b.createElement(fe.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},b.createElement(ze.default,{getPopupContainer:rt=>rt.parentNode,onChange:ct},Object.keys(Nt).map(rt=>b.createElement(ot,{key:rt,value:rt},Nt[rt][0])))),b.createElement(fe.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},b.createElement(Fe,{mode:Je})),b.createElement("div",{className:"flex-container flex-end"},b.createElement(nt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),b.createElement(nt.ZP,{type:"ghost",onClick:Xe},"\u53D6\u6D88")))};function Fe({value:Me,onChange:Xe,mode:Je,options:$t={}}){const ct=(0,b.useRef)(),[Ye,rt]=(0,b.useState)();return(0,b.useEffect)(()=>{if(Ye){let Ce=function(at){const _e=at.getValue();Xe&&Xe(_e)};return Ye.on("change",Ce),()=>{Ye.off("change",Ce)}}},[Ye,Xe]),(0,b.useEffect)(()=>{Ye&&Ye.setOption("mode",Je)},[Ye,Je]),(0,b.useEffect)(()=>{Ye&&(Me!==Ye.getValue()||Me==="")&&setTimeout(()=>{Ye.setValue(Me||"")},300)},[Ye,Me]),(0,b.useEffect)(()=>{if(ct.current&&!Ye){const Ce=xe().fromTextArea(ct.current,We({mode:Je,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},$t));rt(Ce)}},[ct.current,Ye]),b.createElement("div",{className:"my-codemirror-container"},b.createElement("textarea",{ref:ct}))}},39116:function(In,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return on}});var b=ee(59301),ze=ee(44283),fe=ee(89780),nt=ee.n(fe),Se=ee(76374),xe=ee(88319),Ee=ee(6313),je=ee(25717),Ie=ee(99498),ue=ee(25419),et=ee(67549),Te=ee(35883),At=({value:Xt="",className:vn,showTextOnly:pn,showLines:wn,style:$n={}})=>{const xn=(0,b.useMemo)(()=>"",[Xt]);return b.createElement(b.Fragment,null,b.createElement("div",{dangerouslySetInnerHTML:{__html:xn}}))},lt=Object.defineProperty,it=Object.defineProperties,We=Object.getOwnPropertyDescriptors,ke=Object.getOwnPropertySymbols,ot=Object.prototype.hasOwnProperty,yt=Object.prototype.propertyIsEnumerable,Nt=(Xt,vn,pn)=>vn in Xt?lt(Xt,vn,{enumerable:!0,configurable:!0,writable:!0,value:pn}):Xt[vn]=pn,Fe=(Xt,vn)=>{for(var pn in vn||(vn={}))ot.call(vn,pn)&&Nt(Xt,pn,vn[pn]);if(ke)for(var pn of ke(vn))yt.call(vn,pn)&&Nt(Xt,pn,vn[pn]);return Xt},Me=(Xt,vn)=>it(Xt,We(vn));let Xe=[{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 Je({onActionCallback:Xt,title:vn,icon:pn,actionName:wn,className:$n="",children:xn}){function hn(){Xt(wn)}return b.createElement("a",{title:vn,className:$n,onClick:hn},b.createElement("i",{className:`${pn}`}),xn)}var $t=({watch:Xt,showNullButton:vn,showNullProgramButton:pn,onActionCallback:wn,fullScreen:$n,insertTemp:xn,hidetoolBar:hn,extraUse:Zn})=>{const Wn=[...Xe,{title:`${Xt?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Xt?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return b.createElement("ul",{className:"markdown-toolbar-container"},!hn&&Wn.map((ir,tr)=>b.createElement("li",{key:tr},ir.actionName?b.createElement(Je,Me(Fe({},ir),{onActionCallback:wn})):b.createElement("span",{className:"v-line"}))),vn?b.createElement("li",null,b.createElement(Je,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:wn},b.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,pn?b.createElement(b.Fragment,null,b.createElement("li",null,b.createElement(Je,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:wn},b.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u5355\u884C\u586B\u7A7A\u9879"))),b.createElement("li",null,b.createElement(Je,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:wn},b.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u591A\u884C\u586B\u7A7A\u9879")))):null,xn&&b.createElement("li",null,b.createElement(Je,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${xn}`,onActionCallback:wn},b.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Zn&&b.createElement("li",null,Zn),b.createElement("li",{className:"btn-full-screen"},b.createElement(Je,{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:wn})))},ct=ee(88487),Ye=ee(28284),rt=ee(37568),Ce=ee(7939),at=Object.defineProperty,_e=Object.defineProperties,de=Object.getOwnPropertyDescriptors,Et=Object.getOwnPropertySymbols,He=Object.prototype.hasOwnProperty,st=Object.prototype.propertyIsEnumerable,Yt=(Xt,vn,pn)=>vn in Xt?at(Xt,vn,{enumerable:!0,configurable:!0,writable:!0,value:pn}):Xt[vn]=pn,Oe=(Xt,vn)=>{for(var pn in vn||(vn={}))He.call(vn,pn)&&Yt(Xt,pn,vn[pn]);if(Et)for(var pn of Et(vn))st.call(vn,pn)&&Yt(Xt,pn,vn[pn]);return Xt},pe=(Xt,vn)=>_e(Xt,de(vn));const Lt={labelCol:{span:4},wrapperCol:{span:20}};var en=({callback:Xt,onCancel:vn})=>{function pn(wn){Xt(wn)}return b.createElement(Ye.default,pe(Oe({},Lt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:pn,style:{width:500}}),b.createElement(Ye.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},b.createElement(rt.default,null)),b.createElement(Ye.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},b.createElement(rt.default,null)),b.createElement("div",{className:"flex-container flex-end"},b.createElement(Ce.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),b.createElement(Ce.ZP,{type:"ghost",onClick:vn},"\u53D6\u6D88")))},Ot=ee(28267),ge=ee(53332),Ke=ee(62957),tt=ee(77019),Wt=ee(40254),qe=ee(59301),Rt=({callback:Xt,onCancel:vn})=>{const pn=document.createElement("canvas"),wn=pn.getContext("2d");pn.width=1e3,pn.height=800,wn.fillStyle="#ffffff",wn.fillRect(0,0,pn.width,pn.height);const $n=pn.toDataURL("image/png");return qe.createElement(Ke.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},qe.createElement(tt.Z,{style:{height:"100vh"}},qe.createElement(Wt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:$n,visible:!0,title:String(Date.now())},onOk:xn=>{Xt({src:xn.url})},onClose:vn})))},Qe=ee(36207),tn=ee(5269),gt=ee(6767),ae={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re",drawerWrap:"drawerWrap___MfDw8"},ne=ee(59301),oe=(0,b.forwardRef)(({onCancel:Xt,editImgId:vn,callback:pn},wn)=>{let $n=(0,b.useRef)(),xn=(0,b.useRef)(),hn=(0,b.useRef)(),Zn=(0,b.useRef)(!1);const Wn=(0,b.useRef)(!1);console.log("ref:",wn);const[ir,tr]=(0,b.useState)(0),[sn,yn]=(0,b.useState)("100vh");return(0,b.useEffect)(()=>{tr(1)},[]),(0,b.useImperativeHandle)(wn,()=>({setHeight:yn})),ne.createElement("div",{ref:Wn,className:"body-overflow-initial"},ne.createElement(Qe.Z,{width:"100vw",height:sn,footer:null,closable:!0,placement:"bottom",open:!!ir,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${ae.drawerWrap}`,onClose:()=>{window.saveDrawData(zn=>{pn({src:`/api/attachments/${zn}`,id:zn})})},title:ne.createElement(tt.Z,{align:"middle"},ne.createElement(tn.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),ne.createElement(tn.Z,{onClick:()=>{yn(sn==="60px"?"100vh":"60px")}},ne.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),ne.createElement(tn.Z,{onClick:()=>{window.saveDrawData(zn=>{if(zn===null){gt.ZP.warning({content:"\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7ED8\u5236\u6D41\u7A0B\u56FE",key:"saveFlowChart"});return}gt.ZP.success({content:"\u4FDD\u5B58\u6210\u529F",key:"saveFlowChart",style:{zIndex:999999999}}),pn({src:`/api/attachments/${zn}`,id:zn,disabledClose:!0})})}},ne.createElement(Ce.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},ne.createElement("iframe",{src:`/drawio/src/main/webapp/?id=${vn||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:xn})))}),ce=ee(14185),re=ee(47889),le=ee(4875);const be=re.ZP.Group,ht={margin:"0 8px"};var Le=({callback:Xt,onCancel:vn})=>{function pn(wn){Xt(wn)}return b.createElement(Ye.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:pn},b.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},b.createElement("span",{style:ht},"\u5355\u5143\u683C\u6570\uFF1A"),b.createElement("span",{style:ht},"\u884C\u6570"),b.createElement(Ye.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},b.createElement(le.Z,null)),b.createElement("span",{style:ht},"\u5217\u6570"),b.createElement(Ye.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},b.createElement(le.Z,null))),b.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},b.createElement("span",{style:ht},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),b.createElement(Ye.default.Item,{name:"align"},b.createElement(be,null,b.createElement(re.ZP,{value:"default"},b.createElement("i",{className:"fa fa-align-justify"})),b.createElement(re.ZP,{value:"left"},b.createElement("i",{className:"fa fa-align-left"})),b.createElement(re.ZP,{value:"center"},b.createElement("i",{className:"fa fa-align-center"})),b.createElement(re.ZP,{value:"right"},b.createElement("i",{className:"fa fa-align-right"}))))),b.createElement("div",{className:"flex-container flex-end"},b.createElement(Ce.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),b.createElement(Ce.ZP,{type:"ghost",onClick:vn},"\u53D6\u6D88")))},Ne=ee(58755),Ve=ee(84915),Ge=ee.n(Ve),we=(0,b.forwardRef)(({use3d:Xt,width:vn,height:pn,callback:wn,showSaveButton:$n},xn)=>{const hn=(0,b.useRef)(),Zn=(0,b.useRef)(),[Wn,ir]=(0,b.useState)(!1),tr=(0,b.useRef)({id:hn,appName:"graphing",width:vn||1e3,height:pn||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,b.useEffect)(()=>{Zn.current=new(Ge())(tr.current,!0),window.onload=function(){Zn.current.inject("applet_container")}},[]);const sn=()=>{var yn=window.ggbApplet.getPNGBase64(1,!0,72);return wn&&wn(yn),yn};return(0,b.useEffect)(()=>{tr.current.appName=Wn?"3D":"graphing",Zn.current.inject("applet_container")},[Wn]),(0,b.useEffect)(()=>{ir(Xt)},[Xt]),(0,b.useImperativeHandle)(xn,()=>({getImgData:sn})),b.createElement(b.Fragment,null,b.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:hn}),b.createElement(tt.Z,{align:"middle"},b.createElement(tn.Z,{flex:1},b.createElement(Ne.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Wn,onChange:yn=>ir(yn)})),b.createElement(tn.Z,null,b.createElement(Ce.ZP,{size:"large",onClick:sn,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),De=ee(9057);const Zt="link",Tt="upload-image",nn="add-flowchart",Ut="draw-image",St="add-flowchart",an="code-block",_t="add-table",$e="------------",mt={default:$e,left:`:${$e}`,center:`:${$e}:`,right:`${$e}:`};var jt=ee(79006),Jt=ee(76406);function Be(){}let ft=0;const Dt=1e4,Vt="\u2581",un="@\u2581\u2581@",En="@\u2581@",Mn=`
|
|
|
**\u6A21\u677F\u6807\u9898**
|
|
|
\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`,Fn=["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 gn(Xt){return/^\d+$/.test(Xt)?`${Xt}px`:Xt}const dn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",zt={[dn+"-B"]:"bold",[dn+"-I"]:"italic"},rn={[Zt]:"\u6DFB\u52A0\u94FE\u63A5",[an]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Tt]:"\u6DFB\u52A0\u56FE\u7247",[Ut]:"\u6DFB\u52A0\u753B\u56FE",[nn]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[_t]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var on=({defaultValue:Xt="",onChange:vn,width:pn="100%",height:wn=400,miniToolbar:$n=!1,isFocus:xn=!1,watch:hn,insertTemp:Zn,mode:Wn="markdown",id:ir="markdown-editor-id",showResizeBar:tr=!1,noStorage:sn=!1,showNullButton:yn=!1,showNullProgramButton:zn=!1,hidetoolBar:Hn=!1,fullScreen:ut=!1,onBlur:Pt,onCMBeforeChange:Re,onFullScreen:vt,className:Ze="",disablePaste:bt=!1,disabled:Pe=!1,disabledFill:It=!1,placeholder:Bt="",values:Kt="",extraUse:Ct,onAddBlank:xt})=>{const[wt,Ft]=(0,b.useState)(null),[Tn,On]=(0,b.useState)(Xt),[An,er]=(0,b.useState)(hn),[sr,fr]=(0,b.useState)(ut),[Qn,Xn]=(0,b.useState)(""),[Jn,ur]=(0,b.useState)(0),[Er,Cr]=(0,b.useState)(wn),[wr,Yn]=(0,b.useState)(!1),[yr,mr]=(0,b.useState)(0),[_r,Yr]=(0,b.useState)(0),Vr=(0,b.useRef)(),Ur=(0,b.useRef)(),oi=(0,b.useRef)(),Zr=(0,b.useRef)(),Jr=(0,b.useRef)(),Or=(0,b.useRef)(),ti=(0,ze.useDispatch)();(0,b.useEffect)(()=>{const jn=window.scrollY||window.pageYOffset;On(Kt),wt==null||wt.setValue(Kt),window.scrollTo(0,jn)},[Kt]),(0,b.useEffect)(()=>{vt==null||vt(sr)},[sr]),(0,b.useEffect)(()=>{if(Vr.current){let jn=function(Gn,nr){var Qr;if(bt){nr.preventDefault();return}const Ei=nr.clipboardData;if(Ei){const pi=Ei.types.toString(),Ni=Ei.items;if(pi==="Files"||Ei.types.indexOf("Files")>-1){if(nr.preventDefault(),Wn=="stex")return;try{let Ii=Ni[1];((Qr=Ni[0])==null?void 0:Qr.kind)==="file"&&(Ii=Ni[0]);const Pi=Ii.getAsFile(),$i=Pi.name.split(".").pop();(0,ge.I)(Pi,Ai=>{var ki,lo,xo;Ai.id?((ki=Pi==null?void 0:Pi.type)==null?void 0:ki.indexOf("image"))>-1?Ln.replaceSelection(`<img width="100%" src="/api/attachments/${Ai.id}?type=${Ai.content_type})" alt="" />`):((lo=Pi==null?void 0:Pi.type)==null?void 0:lo.indexOf("video"))>-1?Ln.replaceSelection(`<video width="100%" controls src="/api/attachments/${Ai.id}"></video>`):((xo=Pi==null?void 0:Pi.type)==null?void 0:xo.indexOf("pdf"))>-1?Ln.replaceSelection(`<a href="/api/attachments/${Ai.id}?type=${Pi.type}&disposition=inline" target="_blank">${Pi.name}</a>`):Fn.includes($i)?Ln.replaceSelection(`<a href="/api/attachments/${Ai.id}?type=office&disposition=inline" target="_blank">${Pi.name}</a>`):Ln.replaceSelection(`[${Pi.name}](/api/attachments/${Ai.id}?type=${Ai.content_type})`):(Ai==null?void 0:Ai.status)===401&&(document.location.href="/user/login")})}catch(Ii){gt.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Ln=nt().fromTextArea(Vr.current,{mode:Wn,lineNumbers:!$n,lineWrapping:!0,value:Xt,autoCloseTags:!0,autoCloseBrackets:!0});return Ln.on("keyup",function(Gn,nr){nr.keyCode===8&&(Gn.getValue()==""?Ln.setOption("placeholder",Bt):Ln.setOption("placeholder",null))}),Ln.on("keydown",function(Gn,nr){if(nr.keyCode===8){var Qr=Fi(Gn);Qr&&nr.preventDefault()}}),xn&&Ln.focus(),Ln.on("paste",jn),Pe&&Ln.on("beforeChange",function(Gn,nr){(nr.origin==="paste"||nr.origin==="+input")&&nr.cancel()}),Ft(Ln),()=>{Ln.off("paste",jn)}}},[]);const ci=(0,b.useCallback)(()=>{if(Ur.current)try{}catch(jn){console.log(jn,"---- to set md editor body height")}},[Er,Ur,sr]);(0,b.useEffect)(()=>{function jn(){let Ln=new Se.Z(Gn=>{for(let nr of Gn)(nr.target.offsetHeight>0||nr.target.offsetWidth>0)&&(ci(),wt.setSize("100%","100%"),wt.refresh())});return Ln.observe(Vr.current.parentElement),Ln}if(wt){const Ln=jn();return()=>{var Gn,nr;(Gn=Vr.current)!=null&&Gn.parentElement&&Ln.unobserve((nr=Vr.current)==null?void 0:nr.parentElement)}}},[wt,ci]),(0,b.useEffect)(()=>{if(wt){let jn=[];for(const[Ln,Gn]of Object.entries(zt)){let nr={[Ln]:()=>{vi(Gn)}};jn.push(nr),wt.addKeyMap(nr)}return()=>{for(let Ln of jn)wt.removeKeyMap(Ln)}}},[wt]),(0,b.useEffect)(()=>{ut!==sr&&fr(ut)},[ut]),(0,jt.Z)(()=>{if(!sn&&Jn>0){let jn=new Date().getTime(),Ln=window.sessionStorage.getItem(ir);jn>=Jn+Dt&&(!Ln||Ln!==Tn)&&(window.sessionStorage.setItem(ir,Tn),Yn(!0))}},Dt),(0,b.useEffect)(()=>{er(hn)},[wt,hn]),(0,b.useEffect)(()=>{wt&&xn&&wt.focus()},[wt,xn]),(0,b.useEffect)(()=>{if(An&&wt){let jn=function(Gn){let nr=Gn.target;if(Zr.current){let Qr=nr.scrollTop/nr.scrollHeight;Zr.current.scrollTop=Zr.current.scrollHeight*Qr}};const Ln=wt.getScrollerElement();return Ln.addEventListener("scroll",jn),()=>{Ln.removeEventListener("scroll",jn)}}},[wt,An]),(0,b.useEffect)(()=>{if(wt&&Re){let jn=function(Ln,Gn){Re(Ln,Gn)};return wt.on("beforeChange",jn),()=>{wt.off("beforeChange",jn)}}},[wt,Re]),(0,b.useEffect)(()=>{if(wt&&Pt){let jn=function(){Pt(wt.getValue())};return wt.on("blur",jn),()=>{wt.off("blur",jn)}}},[wt,Pt]);function Fi(jn,Ln){var Gn=jn.getDoc(),nr=Gn.getCursor(),Qr=Gn.getLine(nr.line),Ei=Qr.charAt(nr.ch-1),pi=Qr.lastIndexOf("@\u2581@",nr.ch),Ni=Qr.lastIndexOf("@\u2581\u2581@",nr.ch),Ii=pi>Ni?pi:Ni,Pi=pi>Ni?3:4;if(un.indexOf(Ei)===-1)return null;if(console.log("change1:",Ln,jn,Qr,nr,Ii,pi,Ni,Ei),Ii>=0&&nr.ch-Ii<5){var $i=Ii+Pi;return Gn.replaceRange("",{line:nr.line,ch:Ii},{line:nr.line,ch:$i}),{line:nr.line,ch:$i}}return null}(0,b.useEffect)(()=>{if(wt){let jn=function(Ln,Gn){const nr=Ln.getValue();On(nr),ur(new Date().getTime()),Ln.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),vn&&(zn?vn(nr,Kn(nr)):vn(nr))};return wt.on("change",jn),()=>{wt.off("change",jn)}}},[wt,vn]),(0,b.useEffect)(()=>{if(wt)if(Xt==null)wt.setValue(""),On("");else{const jn=window.scrollY||window.pageYOffset;Xt!==wt.getValue()&&(wt.setValue(Xt),On(Xt),wt.setCursor(Pe?1:wt.lineCount(),0),window.scrollTo(0,jn))}},[wt,Xt]);const vi=(0,b.useCallback)(jn=>{const Ln=wt.getCursor(),Gn=wt.getSelection();let nr=Gn.split(`
|
|
|
`);switch(jn){case"bold":return wt.replaceSelection("**"+Gn+"**"),Gn===""&&wt.setCursor(Ln.line,Ln.ch+2),wt.focus();case"italic":return wt.replaceSelection("*"+Gn+"*"),Gn===""&&wt.setCursor(Ln.line,Ln.ch+1),wt.focus();case"code":return wt.replaceSelection("`"+Gn+"`"),Gn===""&&wt.setCursor(Ln.line,Ln.ch+1),wt.focus();case"inline-latex":return(0,Jt.Ye)(ti)?void 0:(Xn("inline-latex"),wt.focus());case"latex":return wt.replaceSelection("```latex\n"+Gn+"\n```"),wt.setCursor(Ln.line+1,Gn.length+1),wt.focus();case"line-break":return wt.replaceSelection(`<br/>
|
|
|
`),wt.focus();case"list-ul":return Gn===""?wt.replaceSelection("- "+Gn):wt.replaceSelection(nr.map(Qr=>Qr===""?"":`- ${Qr}`).join(`
|
|
|
`)),wt.focus();case"list-ol":return Gn===""?wt.replaceSelection("1. "+Gn):wt.replaceSelection(nr.map((Qr,Ei)=>Qr===""?"":`${Ei+1}. ${Qr}`).join(`
|
|
|
`)),wt.focus();case"add-null-ch":xt==null||xt();return;case"add-signal":return Gn===""&&wt.setCursor(Ln.line,Ln.ch),wt.replaceSelection(En),wt.focus();case"add-multiple":return Gn===""&&wt.setCursor(Ln.line,Ln.ch),wt.replaceSelection(un),wt.focus();case"inster-template-1":return Gn===""&&wt.setCursor(Ln.line,Ln.ch),wt.replaceSelection(Mn),wt.focus();case"eraser":return wt.setValue(""),wt.focus();case"trigger-watch":return er(!An),wt.focus();case"trigger-full-screen":return fr(!sr),wt.focus();case Zt:Xn(Zt);return;case an:Xn(an);return;case Tt:Xn(Tt);return;case Ut:Xn(Ut);return;case"maths-latex":if((0,Jt.Ye)(ti))return;Xn("maths-latex");return;case nn:Jr.current="",sessionStorage.removeItem("file_id"),Xn(nn);return;case _t:Xn(_t);return;default:throw new Error}},[wt,An,sr]),xi=(0,b.useCallback)((jn,Ln)=>{var Gn,nr,Qr,Ei,pi,Ni;jn!=null&&jn.disabledClose||Xn("");const{src:Ii,alt:Pi,id:$i}=jn||{};switch(Qn){case Zt:const{title:Do,link:To}=jn;return wt.replaceSelection(`[${Do}](${To})`),wt.focus();case an:const{language:Co,content:qr}=jn;return wt.replaceSelection(["```"+Co,qr,"```"].join(`
|
|
|
`)),wt.focus();case"maths-latex":for(var Ai=atob(jn),ki=new Uint8Array(Ai.length),lo=0;lo<Ai.length;lo++)ki[lo]=Ai.charCodeAt(lo);var xo=new Blob([ki],{type:"image/png"});return(0,ge.I)(xo,gi=>{gi.id?wt.replaceSelection(``):(gi==null?void 0:gi.status)===401&&(document.location.href="/user/login")}),wt.focus();case"inline-latex":return(0,Jt.Ye)(ti)?void 0:(wt.replaceSelection("`$$"+jn+"$$`"),wt.focus());case St:return $i?(wt.getValue().indexOf(Ii)===-1?wt.replaceSelection(`<center><img id="${$i}" width="80%" src="${Ii}" class="draw-flowchart" alt="${Pi||""}" /></center>`):document.getElementById($i).src=ce.Z.API_SERVER+Ii+"?t="+Date.now(),wt.focus()):void 0;case Tt:case Ut:const Hr=Ln,Ji=(Qr=(nr=(Gn=Hr==null?void 0:Hr.name)==null?void 0:Gn.split("."))==null?void 0:nr.pop)==null?void 0:Qr.call(nr);return((Ei=Hr==null?void 0:Hr.type)==null?void 0:Ei.indexOf("image"))>-1||!(Hr!=null&&Hr.type)?Hr!=null&&Hr.align||Hr!=null&&Hr.width?wt.replaceSelection(`<p style="text-align:${Hr.align||"initial"}"><img width="${Hr.width?Hr.width+"%":"initial"}" src="${Ii}" alt="${Pi||""}" /></p>`):wt.replaceSelection(`<img width="100%" src="${Ii}" alt="${Pi||""}" />`):((pi=Hr==null?void 0:Hr.type)==null?void 0:pi.indexOf("video"))>-1?wt.replaceSelection(`<video width="100%" controls src="${Ii}"></video>`):((Ni=Hr==null?void 0:Hr.type)==null?void 0:Ni.indexOf("pdf"))>-1?wt.replaceSelection(`<a href="${Ii}?type=${Hr.type}&disposition=inline" target="_blank">${Hr.name}</a>`):Fn.includes(Ji)?wt.replaceSelection(`<a href="${Ii}?type=office&disposition=inline" target="_blank">${Hr.name}</a>`):wt.replaceSelection(`[${Hr.name}](${Ii})`),wt.focus();case _t:const{row:qi,col:ai,align:Wi}=jn;let Yi=`
|
|
|
`;for(let gi=0;gi<qi;gi++){let Zi=[],Mi=[];for(let Zo=0;Zo<ai;Zo++)gi===1&&Mi.push(mt[Wi]),Zi.push(" ");gi===1&&(Yi+=`| ${Mi.join(" | ")} |
|
|
|
`),Yi+=`| ${Zi.join(ai===1?"":" | ")} |
|
|
|
`}return wt.replaceSelection(Yi+`
|
|
|
`),wt.focus();default:throw new Error}},[wt,Qn]),hi=(0,b.useMemo)(()=>{switch(Qn){case Zt:return b.createElement(en,{callback:xi,onCancel:bi});case an:return b.createElement(Ot.Z,{callback:xi,onCancel:bi});case Tt:return b.createElement(ge.Z,{callback:xi,onCancel:bi});case nn:return b.createElement(oe,{editImgId:Jr.current,callback:xi,onCancel:bi});case _t:return b.createElement(Le,{callback:xi,onCancel:bi});case"maths-latex":return b.createElement(we,{showSaveButton:!0,callback:xi});case"inline-latex":return b.createElement(De.Z,{showSaveButton:!0,callback:xi});default:return null}},[Qn]);function bi(){Xn("")}(0,b.useEffect)(()=>{if(oi.current){let jn=function(pi){Qr=!0,Ei=pi.pageY},Ln=function(){Qr=!1},Gn=function(pi){if(Qr){let Ni=pi.pageY-Ei;Ni<0&&(Ni=0),Ni>300&&(Ni=300);let Ii=wn+Ni+"px";Cr(Ii)}},nr=oi.current,Qr=!1,Ei=0;return nr.addEventListener("mousedown",jn),document.addEventListener("mousemove",Gn),document.addEventListener("mouseup",Ln),()=>{nr.removeEventListener("mousedown",jn),document.removeEventListener("mousemove",Gn),document.removeEventListener("mouseup",Ln)}}},[wt,oi]),(0,b.useEffect)(()=>{Cr(wn)},[wn]);const Rr=gn(pn),Lr=gn(Er),cr={width:Rr,height:Lr},Nn=(0,b.useMemo)(()=>{if(Jn){let jn=new Date(Jn),Ln=jn.getHours(),Gn=jn.getMinutes(),nr=jn.getSeconds();return Ln=Ln<10?"0"+Ln:Ln,Gn=Gn<10?"0"+Gn:Gn,nr=nr<10?"0"+nr:nr,`${Ln}:${Gn}:${nr}`}return 0},[Jn]),Kn=jn=>{const Ln=[];if(zn){let Gn=-1;jn=jn.replace(/(@▁▁@|@▁@)/g,function(nr,Qr,Ei){Ln.push({multiLine:nr!==En})})}return Ln};function Vn(){window.sessionStorage.removeItem(ir),Yn(!1),ur(0)}function Bn(){Yn(!1),ur(0),wt.setValue(window.sessionStorage.getItem(ir))}(0,b.useEffect)(()=>{rn[Qn]&&Qn!==Ut&&Qn!==nn&&setTimeout(()=>{const jn=document.getElementsByClassName("markdown-popup-form")[0],Ln=window.innerWidth/2-jn.offsetWidth/2,Gn=window.innerHeight/2-jn.offsetHeight/2;mr(Ln),Yr(Gn)},0)},[Qn]);const lr=jn=>{jn.preventDefault();const Ln=jn.clientX-yr,Gn=jn.clientY-_r;document.body.onmousemove=nr=>{let Qr=nr.clientX-Ln,Ei=nr.clientY-Gn;const pi=document.getElementsByClassName("markdown-popup-form")[0],Ni=window.innerWidth-pi.offsetWidth,Ii=window.innerHeight-pi.offsetHeight;Qr=Math.max(0,Math.min(Qr,Ni)),Ei=Math.max(0,Math.min(Ei,Ii)),br(nr.clientX,nr.clientY,Ln,Gn)&&(mr(Qr),Yr(Ei))},document.body.onmouseup=function(){document.body.onmousemove=null}},br=(jn,Ln,Gn,nr)=>{const Qr=document.body.clientHeight,Ei=document.body.clientWidth;return jn<20&&Gn>jn||jn>Ei-20&&Gn<jn||Ln<20&&nr>Ln||Ln>Qr-20&&nr<Ln?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return b.createElement(b.Fragment,null,b.createElement("div",{className:"markdown-editor-wrapper",ref:Ur},b.createElement("div",{className:`markdown-editor-container ${Ze} ${An?"on-preview":""} ${$n?"mini":""} ${sr?"full-screen":""}`,style:cr},b.createElement($t,{insertTemp:Zn,watch:An,fullScreen:sr,showNullButton:yn,showNullProgramButton:zn,onActionCallback:vi,hidetoolBar:Hn,extraUse:Ct}),b.createElement("div",{className:"markdown-editor-body"},b.createElement("div",{className:"codemirror-container"},b.createElement("textarea",{ref:Vr,placeholder:Bt})),An?b.createElement("div",{ref:Zr,className:"preview-container"},Wn==="stex"&&b.createElement(At,{value:Tn}),Wn!=="stex"&&b.createElement(Te.Z,{edit:!0,disabledFill:It,showProgramFill:zn,value:Tn,openEditor:jn=>{var Ln;Jr.current=jn,(Ln=Or.current)==null||Ln.setHeight("100vh"),setTimeout(()=>{Xn("add-flowchart")},150)}})):null))),tr?b.createElement("a",{ref:oi,className:"editor-resize"}):null,Qn===Ut&&b.createElement(Rt,{callback:xi,onCancel:bi}),Qn===nn&&b.createElement(oe,{ref:Or,editImgId:Jr.current,callback:xi,onCancel:bi}),b.createElement(ct.Z,null,rn[Qn]&&Qn!==Ut&&Qn!==nn?b.createElement(Ke.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:yr,top:_r},title:b.createElement("div",{style:{cursor:"move"},onMouseDown:lr},rn[Qn]),open:!0,onCancel:bi,footer:null,destroyOnClose:!0,width:Qn===nn?"1200px":null,height:Qn===nn?"80vh":null,className:"markdown-popup-form"},hi):null))}},53332:function(In,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Xe},I:function(){return $t}});var b=ee(28284),ze=ee(6767),fe=ee(37568),nt=ee(44104),Se=ee(4875),xe=ee(47889),Ee=ee(7939),je=ee(23216),Ie=ee(59301),ue=ee(59301),et=Object.defineProperty,Te=Object.defineProperties,At=Object.getOwnPropertyDescriptors,lt=Object.getOwnPropertySymbols,it=Object.prototype.hasOwnProperty,We=Object.prototype.propertyIsEnumerable,ke=(ct,Ye,rt)=>Ye in ct?et(ct,Ye,{enumerable:!0,configurable:!0,writable:!0,value:rt}):ct[Ye]=rt,ot=(ct,Ye)=>{for(var rt in Ye||(Ye={}))it.call(Ye,rt)&&ke(ct,rt,Ye[rt]);if(lt)for(var rt of lt(Ye))We.call(Ye,rt)&&ke(ct,rt,Ye[rt]);return ct},yt=(ct,Ye)=>Te(ct,At(Ye));const{useForm:Nt}=b.default,Fe={width:280,marginRight:10},Me={labelCol:{span:5},wrapperCol:{span:19}};var Xe=({callback:ct,onCancel:Ye})=>{const[rt]=Nt();let Ce=(0,Ie.useRef)();function at(Et){Ce.current.width=rt.getFieldValue("width"),Ce.current.align=rt.getFieldValue("align"),ct(Et,Ce.current)}function _e(Et,He){if(Et.status===-1){ze.ZP.error(Et.message);return}rt.setFieldsValue({src:`/api/attachments/${Et.id}`,type:He.type})}function de(Et){let He=Et.target.files[0];Ce.current=He,$t(He,_e)}return ue.createElement(b.default,yt(ot({form:rt},Me),{className:"upload-image-panel",onFinish:at,style:{width:470,overflow:"hidden"}}),ue.createElement(b.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},ue.createElement("div",{className:"flex-container"},ue.createElement(b.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},ue.createElement(fe.default,{style:Fe})),ue.createElement(Je,{onFileChange:de}))),ue.createElement(b.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},ue.createElement(fe.default,{style:{width:264}})),ue.createElement(b.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},ue.createElement(nt.Z,null,ue.createElement(b.default.Item,{name:"width",style:{margin:0}},ue.createElement(Se.Z,{style:{width:264}})),ue.createElement("span",{className:"ml8"},"%"))),ue.createElement(b.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},ue.createElement(xe.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"}]})),ue.createElement("aside",null,ue.createElement(b.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},ue.createElement(Ee.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ue.createElement(Ee.ZP,{type:"default",onClick:Ye},"\u53D6\u6D88"))))};function Je({onFileChange:ct}){return ue.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",ue.createElement("input",{type:"file",onChange:ct}))}function $t(ct,Ye){if(!ct)throw new String("\u6CA1\u6709\u6587\u4EF6");let rt=new FormData;rt.append("editormd-image-file",ct),rt.append("file_param_name","editormd-image-file"),rt.append("byxhr","true");var Ce=new window.XMLHttpRequest;Ce.withCredentials=!0,Ce.addEventListener("load",function(at){Ye(JSON.parse(at.target.responseText),ct)},!1),Ce.addEventListener("error",function(at){console.error(at)},!1),Ce.open("POST",`${je.KI}/api/attachments.json`),Ce.send(rt)}},88487:function(In,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return fe}});var b=ee(59301),ze=ee(4676);class fe extends b.Component{constructor(Se){super(Se);const xe=window.document;this.node=xe.createElement("div"),xe.body.appendChild(this.node)}render(){const{children:Se}=this.props;return(0,ze.createPortal)(Se,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},34728:function(In,Qt,ee){"use strict";ee.d(Qt,{SV:function(){return Rt},ZP:function(){return qe}});var b=ee(59301),ze=ee(76374);const fe={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"]},nt={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"]},Se={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(`
|
|
|
`)}]},xe={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(`
|
|
|
`)}]},Ee={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 je=ee(53184),Ie=ee.n(je),ue=(Qe,tn,gt)=>new Promise((ae,ne)=>{var te=re=>{try{ce(gt.next(re))}catch(le){ne(le)}},oe=re=>{try{ce(gt.throw(re))}catch(le){ne(le)}},ce=re=>re.done?ae(re.value):Promise.resolve(re.value).then(te,oe);ce((gt=gt.apply(Qe,tn)).next())});const et={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"]}},Te=(Qe,tn,gt,ae)=>{const ne=tn.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:gt.lineNumber,endColumn:gt.column});return Array.from(new Set(ne.match(/\b\w{2,}\b/g)||[])).map(oe=>({label:oe,kind:Qe.languages.CompletionItemKind.Text,insertText:oe,range:ae}))},At=(Qe,tn,gt,ae)=>{Qe.languages.registerCompletionItemProvider(tn,{provideCompletionItems(ne,te){const oe=ne.getWordUntilPosition(te),ce={startLineNumber:te.lineNumber,endLineNumber:te.lineNumber,startColumn:oe.startColumn,endColumn:oe.endColumn},re=ne.getLineContent(te.lineNumber).substring(oe.startColumn-2,oe.endColumn);return{suggestions:[...Te(Qe,ne,te,ce),...gt.map(be=>({label:be,kind:Qe.languages.CompletionItemKind.Keyword,documentation:be,insertText:be,insertTextRules:Qe.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ce})),...ae.map(be=>({label:be.label,kind:Qe.languages.CompletionItemKind.Snippet,documentation:be.content,insertText:re.startsWith("#")?be.content.replace(/#/,""):be.content,insertTextRules:Qe.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ce}))]}}})};var lt=Qe=>{et.languages.forEach(tn=>{Qe.languages.registerDocumentFormattingEditProvider(tn,{provideDocumentFormattingEdits(gt){return ue(this,null,function*(){const ae=Ie()(gt.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:gt.getFullModelRange(),text:ae}]})}})}),At(Qe,"java",nt.keywords,nt.quickKey),At(Qe,"cpp",Se.keywords,Se.quickKey),At(Qe,"c",fe.keywords,[]),At(Qe,"python",xe.keywords,xe.quickKey),At(Qe,"scala",Ee.keywords,Ee.quickKey)};const it="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var We=Object.defineProperty,ke=(Qe,tn,gt)=>tn in Qe?We(Qe,tn,{enumerable:!0,configurable:!0,writable:!0,value:gt}):Qe[tn]=gt,ot=(Qe,tn,gt)=>ke(Qe,typeof tn!="symbol"?tn+"":tn,gt);const yt=class Hc{constructor(tn,gt,ae){this.placeholder=tn,this.editor=gt,this.monaco=ae,gt.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return Hc.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)}};ot(yt,"ID","editor.widget.placeholderHint");var Fe=yt,Me=ee(96236),Xe=ee(6767),Je=ee(25399),$t=ee(78267),ct=ee(33156),Ye=ee(56102),rt=Object.defineProperty,Ce=Object.defineProperties,at=Object.getOwnPropertyDescriptors,_e=Object.getOwnPropertySymbols,de=Object.prototype.hasOwnProperty,Et=Object.prototype.propertyIsEnumerable,He=(Qe,tn,gt)=>tn in Qe?rt(Qe,tn,{enumerable:!0,configurable:!0,writable:!0,value:gt}):Qe[tn]=gt,st=(Qe,tn)=>{for(var gt in tn||(tn={}))de.call(tn,gt)&&He(Qe,gt,tn[gt]);if(_e)for(var gt of _e(tn))Et.call(tn,gt)&&He(Qe,gt,tn[gt]);return Qe},Yt=(Qe,tn)=>Ce(Qe,at(tn)),Oe=(Qe,tn)=>{var gt={};for(var ae in Qe)de.call(Qe,ae)&&tn.indexOf(ae)<0&&(gt[ae]=Qe[ae]);if(Qe!=null&&_e)for(var ae of _e(Qe))tn.indexOf(ae)<0&&Et.call(Qe,ae)&&(gt[ae]=Qe[ae]);return gt},pe=(Qe,tn,gt)=>new Promise((ae,ne)=>{var te=re=>{try{ce(gt.next(re))}catch(le){ne(le)}},oe=re=>{try{ce(gt.throw(re))}catch(le){ne(le)}},ce=re=>re.done?ae(re.value):Promise.resolve(re.value).then(te,oe);ce((gt=gt.apply(Qe,tn)).next())});function Lt(Qe){return/^\d+$/.test(Qe)?`${Qe}px`:Qe}function en(){}let Ot=!1;const ge={"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 Ke(Qe=[]){let tn=Qe;if(Array.isArray(Qe)){for(let gt=0;gt<Qe.length;gt++){let ae=ge[Qe[gt]];if(ae)return ae}return tn[0]}return ge[tn]||tn}let tt=null;const Wt=()=>pe(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(Qe){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",Qe)}});var qe=Qe=>{var tn=Qe,{width:gt="100%",height:ae="100%",value:ne,language:te="javascript",style:oe={},options:ce={},overrideServices:re={},theme:le="vs-dark",onEditBlur:be,isCopy:ht=!1,onSave:Le,autoHeight:Ne=!1,forbidCopy:Ve=!1,forbidCopyTips:Ge,onChange:pt=en,editorDidMount:we=en,onFocus:De=en,onBreakPoint:Zt=en,breakPointValue:Tt=[],filename:nn="educoder.txt",errorLine:Ut,errorContent:St="",highlightLine:an,openBreakPoint:_t=!1,placeholder:$e="",showMiniMap:mt=!0}=tn,jt=Oe(tn,["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 Jt=(0,b.useRef)(),Be=(0,b.useRef)({}),ft=(0,b.useRef)(),Dt=(0,b.useRef)(),Vt=(0,b.useRef)([]),un=(0,b.useRef)(!1),En=(0,b.useRef)(),Mn=(0,b.useRef)(),Fn=(0,b.useRef)(!1),[gn,kn]=(0,b.useState)(!1);function dn(){let sn;return Jt.current&&(sn=new ze.Z(yn=>{for(let zn of yn)(zn.target.offsetHeight>0||zn.target.offsetWidth>0)&&Be.current.instance.layout()}),sn.observe(Jt.current)),sn}function zt(){Xe.ZP.warning({content:decodeURIComponent(Ge||it),key:"monaco-editor-tip"})}const rn=()=>{let sn=Be.current.instance;if(ne!=null&&sn&&gn){const yn=sn.getModel();yn&&ne!==yn.getValue()&&(Ot=!0,yn.setValue(ne),sn.layout(),Ot=!1)}};(0,b.useEffect)(()=>{const sn=ct.Z.subscribe("formatDocument",yn=>{var zn;let Hn=Be.current.instance;(zn=Hn==null?void 0:Hn.getAction)==null||zn.call(Hn,"editor.action.formatDocument").run()});return window.updateMonacoValue=yn=>{pt(yn)},sn},[]),(0,b.useEffect)(()=>{var sn;let yn=Be.current.instance;Dt.current&&clearTimeout(Dt.current),Dt.current=setTimeout(()=>{rn()},500),ne&&(ne!=null&&ne.length)&&((sn=yn==null?void 0:yn.updateOptions)==null||sn.call(yn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(ne.split(/\r\n|\r|\n/g).length))+3,5)}))},[ne,gn,Be.current]),(0,b.useEffect)(()=>{if(Ut&&Be.current&&Be.current.instance){let yn=Be.current.instance;yn.changeViewZones(function(zn){var Hn=document.createElement("div");Hn.style.padding="10px 20px",Hn.style.width="calc(100% - 20px)",Hn.className="my-error-line-wrp",Hn.innerHTML=St,zn.addZone({afterLineNumber:Ut||11,heightInLines:3,domNode:Hn})});var sn={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}};yn.addOverlayWidget(sn),yn.revealPositionInCenter({lineNumber:20,column:1})}},[Ut,Be.current,gn]);const on=(sn="",yn)=>{if(!sn||sn.trim()==="")return!0;const Hn=Be.current.instance.getModel().getLineTokens(yn);let ut=!1;for(let Pt=0;Pt<2;Pt++)Hn.getStandardTokenType(Pt)===1&&(ut=!0);return ut};(0,b.useEffect)(()=>{var sn;const yn=(sn=Be.current)==null?void 0:sn.instance;if(yn&&gn&&Ve){const zn=yn.onDidBlurEditorWidget(()=>{Fn.current=!1}),Hn=yn.onDidFocusEditorText(()=>{Fn.current=!0});return()=>{zn.dispose(),Hn.dispose()}}},[Be.current,gn,Ve]),(0,b.useEffect)(()=>{var sn;if((sn=Be.current)!=null&&sn.instance&&gn&&_t){let yn=Be.current.instance,zn=yn.getModel();if(!zn)return;(()=>{var Ct;let xt=[],wt=[];const Ft=zn.getAllDecorations();for(let On of Ft)On.options.className==="highlighted-line"&&(xt.push((Ct=On==null?void 0:On.range)==null?void 0:Ct.startLineNumber),wt.push(On==null?void 0:On.id));if(an===xt[0])return;zn.deltaDecorations(wt,[]);const Tn=zn.getLineCount();an&&an<=Tn&&(yn.deltaDecorations([],[{range:new tt.Range(an,1,an,zn.getLineMaxColumn(an)),options:{isWholeLine:!0,className:"highlighted-line"}}]),yn.revealLineInCenter(an))})();const ut=(Ct=!1)=>{var xt;let wt=[],Ft=[];const Tn=zn.getAllDecorations();for(let On of Tn)On.options.linesDecorationsClassName==="breakpoints-select"&&(wt.push((xt=On==null?void 0:On.range)==null?void 0:xt.startLineNumber),Ft.push(On==null?void 0:On.id));if(Ct)return{lines:wt,ids:Ft};Zt(wt)},Pt=Ct=>pe(void 0,null,function*(){let xt={range:new tt.Range(Ct,1,Ct,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield zn.deltaDecorations([],[xt]),ut()}),Re=Ct=>pe(void 0,null,function*(){let xt=[];const wt=yn.getLineDecorations(Ct);for(let Ft of wt)Ft.options.linesDecorationsClassName==="breakpoints-select"&&xt.push(Ft.id);yield zn.deltaDecorations(xt,[]),ut()}),vt=Ct=>{let xt=yn.getLineDecorations(Ct);for(let wt of xt)if(wt.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,$t.isEqual)(Tt,ut(!0).lines)){zn.deltaDecorations(ut(!0).ids,[]);const Ct=Tt.map(xt=>({range:new tt.Range(xt,1,xt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));zn.deltaDecorations([],Ct)}const Ze=yn.onDidChangeModelContent(Ct=>{let xt=yn.getPosition();if(xt){let wt=xt.lineNumber;clearTimeout(Mn.current),Mn.current=setTimeout(()=>{on(zn.getLineContent(wt),wt)?Re(wt):vt(wt)?(Re(wt),Pt(wt)):ut()},100)}}),bt=yn.onMouseDown(Ct=>{var xt,wt,Ft;if(Ct.target.detail&&((Ft=(wt=(xt=Ct.target)==null?void 0:xt.element)==null?void 0:wt.className)!=null&&Ft.includes("line-numbers"))){let Tn=Ct.target.position.lineNumber;if(on(zn.getLineContent(Tn),Tn))return;vt(Tn)?Re(Tn):Pt(Tn)}}),Pe=Ct=>{let xt={range:new tt.Range(Ct,1,Ct,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Vt.current=yn.deltaDecorations(Vt.current,[xt])},It=()=>{Vt.current=yn.deltaDecorations(Vt.current,[])},Bt=yn.onMouseMove(Ct=>{var xt,wt,Ft;if(It(),Ct.target.detail&&((Ft=(wt=(xt=Ct.target)==null?void 0:xt.element)==null?void 0:wt.className)!=null&&Ft.includes("line-numbers"))){let Tn=Ct.target.position.lineNumber;if(on(zn.getLineContent(Tn),Tn))return;Pe(Tn)}}),Kt=yn.onMouseLeave(()=>{It()});return()=>{Ze.dispose(),bt.dispose(),Bt.dispose(),Kt.dispose()}}},[Be.current,gn,Tt,an,_t,te]),(0,b.useEffect)(()=>{var sn;(sn=Be.current)!=null&&sn.instance&&_t&&Be.current.instance.setPosition({lineNumber:0,column:0})},[an]);function Xt(){let sn=Be.current.instance;if(sn){const yn=sn.getSelection(),zn=Be.current.pastePos||{},Hn=new tt.Range(zn.startLineNumber||yn.endLineNumber,zn.startColumn||yn.endColumn,zn.endLineNumber||yn.endLineNumber,zn.endColumn||yn.endColumn);setTimeout(()=>{sn.executeEdits("",[{range:Hn,text:""}])},300)}}function vn(sn){(window.navigator.platform.match("Mac")?sn.metaKey:sn.ctrlKey)&&sn.keyCode==83&&(sn.preventDefault(),Le())}const pn=()=>{if(Ne&&Be.current.instance){const sn=Be.current.instance.getContentHeight();ir(sn<ae?ae:sn)}else ir(ae)};function wn(sn){var yn=document.createEvent("MouseEvents");yn.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),sn.dispatchEvent(yn)}const $n=sn=>{if(!Fn.current)return;const{keyCode:yn,ctrlKey:zn,metaKey:Hn,target:ut,type:Pt}=sn;return(Pt==="paste"||(yn===67||yn===86)&&(Hn||zn))&&ut.nodeName==="TEXTAREA"&&(zt(),sn.preventDefault()),!1};function xn(sn,yn){var zn=window.URL||window.webkitURL||window,Hn=new Blob([yn]),ut=document.createElementNS("http://www.w3.org/1999/xhtml","a");ut.href=zn.createObjectURL(Hn),ut.download=sn,wn(ut)}(0,b.useEffect)(()=>{pn()},[pn]),(0,b.useEffect)(()=>{Jt.current&&!gn&&Promise.all([ee.e(8909),ee.e(5977)]).then(ee.bind(ee,71448)).then(sn=>{try{tt=sn,Be.current.instance=tt.editor.create(Jt.current,{value:ne,language:Ke(te),theme:le,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:mt||!1}},re);const yn=Be.current.instance;let ut=[...Me.BH._menuItems].find(Ze=>Ze[0]._debugName=="EditorContext")[1],Pt=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Re=(Ze,bt)=>{var Pe,It;let Bt=Ze._first;do bt.includes((It=(Pe=Bt.element)==null?void 0:Pe.command)==null?void 0:It.id)&&Ze._remove(Bt);while(Bt=Bt.next)};if(we(yn,tt),setTimeout(()=>{pn(),Be.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{xn(nn||"educoder.txt",yn.getValue())}})},500),Be.current.subscription=yn.onDidChangeModelContent(Ze=>{un.current?clearTimeout(En.current):(pn(),pt(yn.getValue(),Ze)),En.current=setTimeout(()=>{un.current=!1},500)}),window.Monaco||lt(tt,Ke(te)),Ve&&(Re(ut,Pt),Jt.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",$n),window.removeEventListener("paste",$n),window.addEventListener("keydown",$n),window.addEventListener("paste",$n)),window.Monaco=tt,be&&yn.onDidBlurEditorWidget(()=>{be(yn.getValue())}),De&&yn.onDidFocusEditorText(()=>{Ve&&Wt(),De(yn.getValue())}),Ve){Wt();try{yn.onDidPaste(Ze=>{const bt=yn.getSelection(),Pe=Be.current.pastePos||{},It=new tt.Range(Pe.startLineNumber||bt.endLineNumber,Pe.startColumn||bt.endColumn,Pe.endLineNumber||bt.endLineNumber,Pe.endColumn||bt.endColumn);yn.executeEdits("",[{range:Ze.range,text:""}])})}catch(Ze){}}let vt=dn();return $e&&typeof $e=="string"&&new Fe($e,yn,tt),kn(!0),()=>{const Ze=Be.current.instance;Ze.dispose();const bt=Ze.getModel();bt&&bt.dispose(),Be.current.subscription&&Be.current.subscription.dispose(),vt.unobserve(Jt.current)}}catch(yn){}})},[]),(0,b.useEffect)(()=>{if(Be.current.instance&&gn)return document.addEventListener("keydown",vn,!1),()=>{document.removeEventListener("keydown",vn)}},[Le,gn]),(0,b.useEffect)(()=>{let sn=Be.current.instance;if(sn&&gn){let yn=Ke(te);tt.editor.setModelLanguage(sn.getModel(),yn)}},[te,gn]),(0,b.useEffect)(()=>{Be.current.instance&&gn&&tt.editor.setTheme(le)},[le,gn]),(0,b.useEffect)(()=>{let sn=Be.current.instance;ft.current=ce,sn&&gn&&(sn.updateOptions(st({},ce)),setTimeout(()=>{sn.getModel().updateOptions(st({},ce))},200))},[JSON.stringify(ce),gn]),(0,b.useEffect)(()=>{let sn=Be.current.instance;sn&&gn&&sn.layout()},[gt,ae,gn]);const[hn,Zn]=(0,b.useState)(Lt(gt)),[Wn,ir]=(0,b.useState)(Lt(ae)),tr=Yt(st({},oe),{width:hn,height:Wn,position:"relative"});return b.createElement("div",{className:"my-monaco-editor",ref:Jt,style:tr,onFocus:()=>{Ve&&Wt()}},ht&&b.createElement(Ye.CopyToClipboard,{text:ne,onCopy:()=>Xe.ZP.success("\u590D\u5236\u6210\u529F")},b.createElement(Je.Z,{title:"\u590D\u5236\u4EE3\u7801"},b.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},b.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function Rt({width:Qe="100%",height:tn="100%",original:gt,modified:ae,language:ne,options:te={}}){const oe=(0,b.useRef)(),[ce,re]=(0,b.useState)(null);function le(Ne){let Ve;return oe.current&&(Ve=new ze.Z(Ge=>{for(let pt of Ge)(pt.target.offsetHeight>0||pt.target.offsetWidth>0)&&Ne.layout()}),Ve.observe(oe.current)),Ve}(0,b.useEffect)(()=>(oe.current&&Promise.all([ee.e(8909),ee.e(9404)]).then(ee.bind(ee,2550)).then(Ne=>{tt=Ne;const Ve=tt.editor.createDiffEditor(oe.current,Yt(st({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}));re(Ve);let Ge=le(Ve);return()=>{Ve.dispose();const pt=Ve.getModel();pt&&pt.dispose(),Ge.unobserve(oe.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,b.useEffect)(()=>{ce&&ce.setModel({original:tt.editor.createModel(gt,ne),modified:tt.editor.createModel(ae,ne)})},[gt,ae,ne,ce]);const be=Lt(Qe),ht=Lt(tn),Le={width:be,height:ht};return b.createElement("div",{className:"my-diff-editor",ref:oe,style:Le})}},54077:function(In,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return et}});var b={flex_box_center:"flex_box_center___AQ53o",flex_space_between:"flex_space_between___i2aIa",flex_box_vertical_center:"flex_box_vertical_center___sPEKB",flex_box_center_end:"flex_box_center_end___GhSSH",flex_box_column:"flex_box_column___R9_Hb",list:"list___jb2Ay",wrap:"wrap___VsQDr",lockWrap:"lockWrap___g1k1T",li:"li___IxCLC",cover:"cover___Mu8wr",img:"img___IpFLA",movebq:"movebq___mF7wt",bq:"bq___Bil0T",sign:"sign___DXJ4d",name:"name___l7FoJ",e:"e___pXQUG",unit:"unit___wCIFR",tags:"tags___w_Mil",tag1:"tag1___dxm7r",tag2:"tag2___llZkf",wrapisCurrent:"wrapisCurrent___qIfQT",tagsDom:"tagsDom___COQg7",hiddenbq:"hiddenbq___TqlUF"},ze=ee(29787),fe=ee(25399),nt=ee(89787),Se=ee(92310),xe=ee.n(Se),Ee=ee(76406),je=ee(90736),Ie=ee(59301),et=({className:Te,dataSource:At=[],col:lt=4,right:it,bottom:We=23,precision:ke=0,wrapWidth:ot=1200,trackEventItems:yt,loading:Nt,onRemove:Fe=()=>{},isCurrent:Me=!0,showProgress:Xe=!1,showAlias:Je=!1,category:$t="notDisplay",hiddenClick:ct=()=>{}})=>{const Ye=Math.floor((ot-(lt-1)*it)/lt),rt=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png",ptclass:"sprite-70",swclass:"sprite-68"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png",ptclass:"sprite-60",swclass:"sprite-65"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png",ptclass:"sprite-58",swclass:"sprite-63"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png",ptclass:"sprite-62",swclass:"sprite-67"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png",ptclass:"sprite-61",swclass:"sprite-66"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png",ptclass:"sprite-59",swclass:"sprite-64"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png",ptclass:"sprite-71",swclass:"sprite-69"}];return Ie.createElement(ze.Z,{spinning:Nt},Ie.createElement("div",{className:xe()(b.list,Te)},!!(At!=null&&At.length)&&(At==null?void 0:At.map((Ce,at)=>{var _e,de,Et,He,st,Yt,Oe;const{name:pe,id:Lt,identifier:en,featured:Ot,school_name:ge,image_url:Ke,excellent:tt,is_plan:Wt}=Ce;return Ie.createElement("div",{key:Lt,className:Me&&Xe?b.wrapisCurrent:b.wrap,style:{width:Ye,marginRight:(1+at)%lt===0?0:it+ke,marginBottom:We}},Ie.createElement("a",{className:b.li,onClick:qe=>{qe.preventDefault(),qe.stopPropagation(),yt&&(0,Ee.L9)([yt]),(0,Ee.xg)(`/paths/${en}`)}},Ie.createElement("div",{className:b.img},Ie.createElement("img",{className:b.cover,src:`${Ke}`}),(_e=Ce==null?void 0:Ce.subject_tags)==null?void 0:_e.map((qe,Rt)=>{var Qe,tn;if(Rt===0){const ae=(Qe=rt.find(ne=>ne.name==qe))==null?void 0:Qe.swclass;return Ie.createElement("span",{className:`sprite ${ae} ${b.sign}`,style:{left:"-4px"}})}const gt=(tn=rt.find(ae=>ae.name==qe))==null?void 0:tn.ptclass;return Ie.createElement("span",{className:`sprite ${gt} ${b.sign}`,style:{left:`${48+52*(Rt-1)+2*Rt}px`}})}),Ie.createElement("div",{className:b.tagsDom},Ie.createElement("div",{className:"flex flex-wrap item-center",style:{gap:"0 6px"}},(Ce==null?void 0:Ce.excellent)&&Ie.createElement("div",{className:b.bq},"\u5F00\u653E\u8BFE\u7A0B"),((de=Ce==null?void 0:Ce.custom_tags)==null?void 0:de.length)>0&&(Ce==null?void 0:Ce.custom_tags.map((qe,Rt)=>{var Qe;return Ie.createElement(fe.Z,{title:qe==null?void 0:qe.tag_name,key:Rt},Ie.createElement("div",{className:"font12 rounded-2px c-white flex item-center",style:{height:22,padding:"0 6px",maxWidth:((Qe=Ce==null?void 0:Ce.custom_tags)==null?void 0:Qe.length)>2?"60px":"71px",background:"rgba(48, 97, 208, .6)",border:"1px solid #8FAFF8"}},Ie.createElement("span",{className:"multi-llipsis1e"},qe==null?void 0:qe.tag_name)))})))),$t=="hide"&&(Ce==null?void 0:Ce.studying)&&Me&&Ie.createElement("div",{className:`${b.movebq} user-path-items`,onClick:qe=>{qe.stopPropagation(),Fe(Ce)}},Ie.createElement("i",{className:"iconfont icon-yichu1 font12"}),Ie.createElement("span",null,"\u79FB\u9664")),!["notDisplay","collect","payed"].includes($t)&&Me&&Ie.createElement("div",{className:`${b.hiddenbq} user-path-items`,onClick:qe=>{qe.stopPropagation(),ct(Ce)}},Ie.createElement("i",{className:`iconfont ${$t=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),Ie.createElement("span",null,$t=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF"))),Ie.createElement("div",{className:b.name},Ie.createElement(fe.Z,{title:Je&&(Ce!=null&&Ce.excellent_alias_name)?Ie.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${pe}`,Ie.createElement("br",null),Ie.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Ce==null?void 0:Ce.excellent_alias_name}`)):pe},Ie.createElement("span",{className:b.e},Je&&(Ce==null?void 0:Ce.excellent_alias_name)||pe))),Me&&Xe&&((Et=Ce==null?void 0:Ce.progress)==null?void 0:Et.all_score)!=0&&Ie.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},Ie.createElement(nt.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((He=Ce==null?void 0:Ce.progress)==null?void 0:He.my_score)/((st=Ce==null?void 0:Ce.progress)==null?void 0:st.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(Yt=Ce==null?void 0:Ce.progress)==null?void 0:Yt.my_score,"/",(Oe=Ce==null?void 0:Ce.progress)==null?void 0:Oe.all_score),(!Me||!Xe)&&Ie.createElement(fe.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${ge}`},Ie.createElement("div",{className:b.unit},Ie.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),ge)),(!Me||!Xe)&&Ie.createElement("div",{className:b.tags},Ie.createElement("div",null,Ie.createElement(fe.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},Ie.createElement("span",null,Ie.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),Ie.createElement("span",null,Ce.stages_count))),Ie.createElement(fe.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Ie.createElement("span",null,Ie.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),Ie.createElement("span",null,Ce.members_count)))))))})),!At.length&&Ie.createElement(je.Z,null)))}},70467:function(In,Qt,ee){"use strict";ee.d(Qt,{jL:function(){return nt},w9:function(){return pe},QD:function(){return Tt},cQ:function(){return at.Z},op:function(){return Ve},O5:function(){return dn},_b:function(){return $e},t7:function(){return ke},Gi:function(){return tt},YG:function(){return ge},qp:function(){return ue},vr:function(){return St},qE:function(){return we},Je:function(){return Nt},wb:function(){return Ce},cq:function(){return gt},tp:function(){return At}});var b=ee(59301),ze={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"},nt=({dataSource:zt=[],img:rn,imgWidth:on=346,title:Xt,sunTitle:vn,bannerExtraContent:pn})=>b.createElement("div",{className:ze.banner},b.createElement("div",{className:ze.content},b.createElement("aside",null,b.createElement("p",null,b.createElement("b",null,Xt),b.createElement("span",null,vn)),zt.length>0&&b.createElement("div",{className:ze.btns},zt.map((wn,$n)=>b.createElement("div",{key:$n,onClick:wn.click},wn.name,wn.sign?b.createElement("span",{className:"sprite sprite-33"}):null))),pn),rn&&b.createElement("img",{style:{marginTop:33,marginRight:38},src:rn,width:on}))),Se={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"},xe=ee(92310),Ee=ee.n(xe),je=ee(78267),ue=({dataSource:zt=[],value:rn,onChange:on,onTitleChange:Xt,className:vn,title:pn,titleWidth:wn=41,style:$n={},fontColor:xn="#6A7283",showCount:hn})=>{const[Zn,Wn]=(0,b.useState)(1),[ir,tr]=(0,b.useState)(!1),sn=(0,b.useRef)(null),yn=(0,b.useRef)(null);return(0,b.useEffect)(()=>{var zn;zt.length!==0&&(((zn=sn==null?void 0:sn.current)==null?void 0:zn.clientHeight)>97?Wn(1):Wn(0)),zt.length===0&&Wn(0),tr(!1)},[zt]),b.createElement("div",{className:Ee()(Se.row,vn,"fadeIn","animated"),style:$n},b.createElement("div",{onClick:(0,je.throttle)(()=>Xt==null?void 0:Xt(),2e3),style:{width:wn,marginTop:ir?12:4},className:`${Se.title} ${Xt?"current":""}`},pn),b.createElement("div",{className:ir?`${Se.tagsWrap} ${Se.tagsBorderWrap}`:Se.tagsWrap},b.createElement("div",{className:Se.bar,ref:yn,style:Zn>0?{height:Zn===1?97:"auto",overflow:Zn===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},b.createElement("div",{className:Se.tag,ref:sn},zt==null?void 0:zt.map(zn=>b.createElement("span",{onClick:()=>on(zn.id),key:zn.id,style:{color:xn},className:rn===zn.id?Se.active:""},b.createElement("span",{title:zn.name,className:Se.name},zn.name),!!hn&&b.createElement("span",{className:Se.num},zn.count))))),!!Zn&&b.createElement(b.Fragment,null,Zn===1?b.createElement("div",{onClick:()=>{var zn;Wn(2),((zn=sn==null?void 0:sn.current)==null?void 0:zn.clientHeight)>245?tr(!0):tr(!1)},className:Se.action},"\u5C55\u5F00",b.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):b.createElement("div",{onClick:()=>{yn.current.scrollTop=0,Wn(1),tr(!1)},className:Se.action},"\u6536\u8D77",b.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},et={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"},At=({dataSource:zt=[],value:rn,onChange:on,className:Xt,style:vn={}})=>b.createElement("div",{style:vn,className:Ee()(et.tabs,Xt)},zt.map(pn=>b.createElement("span",{onClick:()=>on(pn.id),className:rn===pn.id?et.active:"",key:pn.id},pn.name))),lt={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"},it=ee(37568),ke=({dataSource:zt=[],value:rn="",onChange:on,onInputChange:Xt=()=>{},className:vn,style:pn={},placeholder:wn,allowClear:$n=!1})=>{var xn;const[hn,Zn]=(0,b.useState)(""),[Wn,ir]=(0,b.useState)("");(0,b.useEffect)(()=>{var yn;let zn=rn;(yn=JSON.stringify(rn))!=null&&yn.includes("{")&&(Zn(rn.id),zn=rn.value||"");try{ir(decodeURIComponent(zn||""))}catch(Hn){ir(decodeURIComponent(zn||""))}},[rn]);const tr=()=>{on(encodeURIComponent(Wn),hn||null)},sn=yn=>{yn!==hn&&(Zn(yn),on(encodeURIComponent(Wn),yn))};return b.createElement("div",{className:Ee()(lt.input,vn),style:pn},!!zt.length&&b.createElement("div",{className:lt.dropdown},b.createElement("div",{className:lt.text},(xn=zt.find(yn=>yn.id===hn))==null?void 0:xn.name,b.createElement("i",{className:"iconfont icon-zhankai4"}),b.createElement("b",{className:lt.b1}),b.createElement("b",{className:lt.b2})),b.createElement("div",{className:lt.menu},zt.map((yn,zn)=>b.createElement("div",{key:zn,onClick:()=>sn(yn.id)},yn.name)))),b.createElement(it.default,{onPressEnter:tr,value:Wn,onChange:yn=>{ir(yn.target.value),Xt(encodeURIComponent(yn.target.value),hn||null)},placeholder:wn,variant:"borderless",allowClear:$n,onClear:()=>on("",hn||null)}),b.createElement("i",{onClick:tr,className:"iconfont icon-sousuo9 font14 current"}))},ot={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"},Nt=({value:zt,onChange:rn,className:on,total:Xt,pageSize:vn,style:pn={}})=>{const wn=zt<2,$n=zt>=Math.ceil(Xt/vn);return Xt<=vn?b.createElement(b.Fragment,null):b.createElement("div",{className:Ee()(ot.quickPager,on),style:pn},b.createElement("div",{onClick:()=>{wn||rn(zt-1,"prev")},className:wn?ot.disabled:""},"\u4E0A\u4E00\u9875"),b.createElement("div",{onClick:()=>{$n||rn(zt+1,"next")},className:$n?ot.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"},Me=ee(29787),Xe=ee(25399),Je=ee(63139),$t=ee(14185),ct=ee(76406),Ye=ee(90736),Ce=({className:zt,dataSource:rn=[],col:on=4,right:Xt,bottom:vn=23,precision:pn=0,wrapWidth:wn=1200,trackEventItems:$n,loading:xn})=>{const hn=Math.floor((wn-(on-1)*Xt)/on);return b.createElement(Me.Z,{spinning:xn},b.createElement("div",{className:Ee()(Fe.list,zt)},!!rn.length&&rn.map((Zn,Wn)=>{const{name:ir,id:tr,identifier:sn,power:yn,cover_image_id:zn,pic:Hn}=Zn;return b.createElement("div",{className:Fe.wrap,key:tr,style:{width:hn,marginRight:(1+Wn)%on===0?0:Xt+pn,marginBottom:vn}},b.createElement("a",{target:"_blank",href:`/shixuns/${sn}/challenges`,className:Fe.li,onClick:ut=>{ut.preventDefault(),$n&&(0,ct.L9)([$n]),yn&&(0,ct.xg)(`/shixuns/${sn}/challenges`)}},b.createElement("div",{className:Fe.img},b.createElement("img",{className:Fe.cover,src:`${Hn}`}),Zn.is_jupyter&&b.createElement("span",{className:`sprite sprite-43 ${Fe.sign}`}),Zn.is_jupyter_lab&&b.createElement("span",{className:`sprite sprite-42 ${Fe.sign}`}),Zn.is_unity_3d&&b.createElement("span",{className:`sprite sprite-44 ${Fe.sign}`})),b.createElement("div",{className:Fe.name},b.createElement(Xe.Z,{title:ir||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},b.createElement("span",{className:Fe.e},ir||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),b.createElement("div",{className:Fe.tags},b.createElement(Xe.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},b.createElement("span",null,b.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),b.createElement("span",null,Zn.challenges_count))),!!Zn.myshixuns_count&&b.createElement(Xe.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},b.createElement("span",null,b.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),b.createElement("span",null,Zn.myshixuns_count))),b.createElement(Xe.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},b.createElement("span",null,b.createElement("span",null,Zn.level))),b.createElement("div",{className:Fe.rate},b.createElement(Je.Z,{allowHalf:!0,disabled:!0,defaultValue:Zn.score_info}),b.createElement("span",null,"\xA0",Zn.score_info?`${Zn.score_info}\u5206`:"5\u5206")))),!yn&&b.createElement("div",{className:Fe.lockWrap},b.createElement("img",{src:`${$t.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),b.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!rn.length&&b.createElement(Ye.Z,null)))},at=ee(54077),_e={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",hidden:"hidden___NniIi",wrap:"wrap___pKgcW",btnsTop:"btnsTop___Lrm6T",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},de=ee(62957),Et=ee(96599),He="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3AzNxXKFTv9MAfB/AuZo60M7Fe30tEZQA/UqBvx+POvUQ02+s+O2l/1QGcy5Xe6Cn1SXj8YYAHO5nU8j9DM1D0b8rzvpFMRp9a/v4X73HVAJwplN9GHj7P4NtW0wK1OxYCPcAKX0rHI4+0+2wv7l9xgHPFyrs9j78A5l/sxQRXrE2ix5SiLyZj7v+s2BgArBjA+XzpzR7oq8x880ouQK/7JqKnFfiziUT0iV731aj9ZQeYmYez+fJXiOguZl72/ldkkYmYmb+eSkT+lIjOLOcYlm2BBcx8sfoJz+O/BHhkOSe5evqiaaXoTxIx55tExMsxrmUBOJ/njVVUvgvmW5djUqu+D6JHHbgfTSRostdj7TnAuWLlDq/K37pwqXYxCGlaOfRbyZh7Xy9B7hnAzOzmCpUvA/jDC2WvbReogE3/TTLufo6IKu0+38r9PQE4n+f1VVS+B+ZbWhnEBX8P0Q4H7gcTCZqyvRbWARZHQLlavp8ZG20P9rXcHhEmI07kdtsODasA5/OlX6gy/dfF/bbTV5GmHeL3JBLRxzttof45awCLRYo9vpuZE7YGdyG2Q0R5UvQBWxYwKwBn8pWPEPg7IlhdiKDYnrMIXAz6WDrh/mu3bXcNcEC5P7wIbrdQzH9eQCZF7+2WkrsCWPZcD/TgRbZsF1zTmrBrBX5HN3tyxwD7YTOVRy8KVL0Bd65Vmo667q2dStcdASx6rofyjouqUK/B9dsXFUohcksnenLbAMtemy1UfnrRiLE84NZ6IdqRirtvbdfi1TbA2Xz5r5j5j5Z5ehe705RMf51KRP64ncVoC2BxHLDH9/batlz2gJPnFc7PArNVgvjViABH6Zhm/ZErQoxkH7AmxYhHlsX71s7aWr9XbNek6M52HBQtA6xdflx5pldCVaEMHDuvcK5A8AjI5oB8EShXgEoZKFeBSgVQCohEgKjr/4z3AUP9gCIg7jLWpBn9fa9lsMXa5d7UqquxJYCFYrOFyk964c8V4F44oVCsEs5lgfNZIJcHPMFIk27wU0sbof/V0UcyBgz2AyMDQDQCbBzwXrtAEz2airu/3ErQQEsA5wqVT3qe93WbPKfqAS+eUsiWCWdmgJPTQLVaB2gjw6oB3U9B0azbsGz5XV6KsWFg01pAzGqXjniIua89ilZK3ZWMu99ohklTgP0YqsqLNlnz+SJh7ymF8xkf2JKEkFu+BOx1Y8CGNcBAH2P9gGe5h5VujqZTCfeKZjFeTQHO5EpfA/ApW9N5ZYYweU5h6jhwPlfHcpux5Ha/BxCLAldfBqSijMtHX2sg4x/SyejvLIXNkgAHoa07bEnNe48rnCkQDr8CFBokehh2q1ntIizYsOVG3y/g6AH7dl3gykuAvj4gAkahSihUCCVP9nryJfNgj1dguIrQ5wKJCCMZZaSjjOGEh6jV9LbuSUb2YAW+ZamQ3CUBzubLT9mKW95zTOFkhnDoqC8NL8clL0oqSYgnCSoCVIM92580axAjji+BuyqQ4RgQOq8wUKrK/0jv83Ilo8BQzMO6VBUDseWYQfM+JO46lYi8cbE7FwVYZxxUvf9u3kXzOyZnCIfPKuw/FAhSgcxTz3GbyFQLpOh6Ics877qE9AAQiZEGSyJUI6JGOT5VxlxocEWvdgTcAGQBUtQwWRTDTQTkYhXIlQnZElD2fMBjDmMizdjYX0VkhSlbOepXF/M6LQpwJl/ebiOd5FyR8PxxhQNHgGKP8+9EL04PKU2tAr5LjIQLJB0DJmswDbACpuP41KuBFYDlEwBsKFdz72ClZqvA2SJpI4yALc+PJ6rYPCDSevOXvSd3EG1PJyK/1KjthgBLIhg8frjbwYgq9MRhB5PHgXOZha01k5nq9d4FalEgowk4/UMKTp/fR59iJBX0nqkBo8ASpsGVPdYHVD7yuwY8uLcGcrAyNZCljbopZErAqQKhWPGB3pD2cEl/RUyK3S5d+88renujhLeGI8nmyv9rI8vv+aMKh6cJk8eC8Tbjye1Oi4BEkpDo91lxVDFSjghS/lVjuQZgMXc6DDdgxRrYEAWbl0GDHwC6FMBmuLkycKJAKFUJMQe4YriCwdjy6t6S1ZhKRn6l0TY37386Pxd4st21rr9fWNnTkw72HeyNnit7Z/+YAsn+CUbaBWJ68wzADbFZQ8GaJSuex6INy9ZCVmDvNkBLW2Y/DrPpxdbmTBGYLhCYCBvSVWzury4rNSvgTfX5yQsoOJMr/T2AJXWrVsDfeUThldOEoydbubu9e9wIYWBUFtJnxwPOHPuct28KyHWs1yHWVCsgCgULwAZkDXBA3ealaAdgmYWoXlNZ0vtzfx9wzUhZ97NM19fSyeinw33NA1jKJmTzlePdZtaL40Cod8+BQGq2OLtIFBgcVVrlSTiMtDPXeHgy+ndDgYFkrPfZEBUb9cgA7H8X7M/B3m0o17QXNLvkjGRsx/OkJW+R2q8erWjW3fuLZlIJdyJcTmIewPl85QNV9r7X7UD2nVTYd4wweXTplpoZNuqf7osB6WEFD4xBw5IbdFG/b8rfMlENoKZQn01rISvYg42qNPcSzLFneRH0FWL/razR6QLh7KxvNLl2tLwsUrZD6oOJhHu3Gd88gLP5skRH3tnK4Je6Z/tBBwenGkvOnbYtHqL+Nb5DeFgMFK2wPSNBB9gYdu2zaNZg14QsvZfPl6r1ixH+NFCfms3nfBk4lSdEXcK1Y2X0tTLuZo0u8T0R3ZtKRN67AGApVZQrVI52W81GDANPHnGw64XA5RcaTODsWbSswGJCthguhsYJHjNGWwXXEJ0BSChYfjdsGKzB05Qb/M/swWGVSb8MwbMycNNGeG9uhse5EnC6qLShRUAWga5Xl1T/ScbddabEU42CbbkEX55W2DtFONAg87WZltToBZAFHV4rbBkYiDASLSzOPLYUAtgA6APFvkFD2HQAvBikjSQt1C036BdAKDt4EbSEbQwjIQNIM8BEXz5fJu3Zunqkt7basCuxthbZfOm7zPjNZgNt9v3OSYWXpgjHpxf655sB3Kjt0XEhLyDpMvrrBZVGqmadXlDbPo3QFLJUacOJYuhce+NXDu4z0nRY0hbDiTgu6oWxZmsi30sXIniJk0NUKDGK9Ooiwr+kEtGPhsQGCZEpH7NRQc7sv9PnlgzA0HNrZslKpgnxftKq0FCHZkAjYEl/AkxNWBKngo4aYWxdR7h8Qr5f3AJVKDF2H/FNnZHASSHgmz26FbCkv6kcoQrCVaMVpHsUiCAV+VLJyNoawEHtxz2tDLLZPT894OClI37oTTeXcoHRCaUdBbLvLrH2S3YzT481+CrA84CKJ2oc49feRHA1T176+vlBT8eGxSJ+PJgxc7ZjmRQ9+WiOEHMJ142WemYIibqRqyVYXs8qkyv9HoCvNptgK98/+rKD3S8CxVIrdy9+z8ioguoDBiOMePO1X9hQ6JkwFcuNQkns+UaJSpnx4V8iOC28QY+/6KFSBeIxaJVHuxoDo0k7sz1bIpwrETalq5hI9oxVfzadjP6dD3C+/B9gfn87g1zs3u2HHDz9/CIGjmY8OWhUjBlD4wpR8lWijq6wcyD4XW/ZQTBfqeJHbM5WGB9/W2sA/2yvp6k+0Qckoj6rNlaxdsYoe/8reV/6u3GsBKcdFtBqR0T/kU5EPqABzuZLLzPjklafXeq+n73s4JkXgFIXFDw2IdIMMBbh1vTdRgOqM0roNQwiN8TLpcEtC6dhfPK25gCLivbALtZUm4wDcQFYjCQdbh/ioDg1q3TwwIaUfSomwqFUInqpVOiK5QqVnK16yz854OCFg/LSLBSi6nFopBaJnXlkgtBHjCEb9WVDDgPDmiVao6zBBUR4+sztPsAvHmU89KwvOMn+KuDJfhuLsLZ7y/8kPFc+ArDEZndCwWYdROAShnLjmjKUZSqWetfJuJuk7Cxfx5XyszaoV9rQQtYkMD3TWYsjYwQ3ThgV6u1k7w11G1aRTJy1sEfJnBAOU5DPLOOzd/gA//wA49+3+/ZoAU8C9hIxRqoPSCeAlAG3zwc+2uEebIaYKQPTswqbByoYj9t3L5IbuZ5s2Z/NoB9/WWH/FOHY6QZ6cIM45nAQnbQxsVHpSIzRaGcvSPgpAViANTZvEazEEWDYswB8+QTjnTdKGA7hbJbx7YeBM1mgT8CNCqjsAxuHTpOR/Ve+kxfA2LE7JT6zF8vLcs2wfeOH2KUpVyh/3vP4i90vp9/CnuMKe15pbMlqxqJF700PkdYPJSKjkyvs9dEB8SEjhuy9IgUbAeuWrcC1m+aziVKF8cOngJdPCKA8n3KjQFxYdjRwMYZiuToZqzxzukjIVwnXj5T1S2PzUoq+QNl86dvM+JithjNFwtOTCk8+17zFeqF6fK2CijLWRHyvTzeX5gwBBUs7QrkSzSl6rLDW224A1gws3snOA4xnXvapt541a0NHKOynm3FKQN+JosLGlIeJpKR22LuI8B3K5sr3M/id9pr19+Fn9/sJZK3mFkn/Gy5ROjpj1IJwpfdcAVhin4U1e6ISARMDwLbrhAqbv0FHzzCeeInR5wCpuL/v9sneKy9gyG/czdrJMEVlSrmErcN2UzwI9GPK5MuP2U7mfmZS4YVX/Bjo8LWUGizS85p1hGSdE7+txTP6bqAOCRVrlajqS83XbwbecJnOs2252fwsQ6hZ2pFMRtl/ayG3gamy5cYWufFkUYLwCTeNWbZsEe2gbK70LAPXdTvI8PPTeYKA/OTu4L9GQFzCXzgwAKSGFIYc7spnKtgZdUgAFvelsOZrNwE3X946sOH5VD3Gjn2sbdkxAdmCgBVuX9yJ58oKVw1XkLSY50zAc7IHWzNyhAf96AEH+yehpelWrjVjhGiSMBZlcR51fIUBFoFKqFcMGrddD1w63hnAMpgn93uQUCRRmbQU3aWKFJ5gvgKcLilc2l/FSMye0UOMHZTJlU/bzBw0Az+dIzx3TGHHLn8PbHZt2KSgHMZ4N+qRsVYFrFnSUWXfFYPGO28ELptYCHClyrjnCeCJF32Hxi1XAnfcLFLy/Hu37w0ADqxYhoprHqpmE1zie9HLjxUUxpNVLWzZu2iasvnyLDN3s6yLjuexgw4OHAUOmbjoJUa++RKlY5bFc9TxFQZY2HPZ/+RngXe/Hrh87UKAv79DTJDzA99Fwn7PG+ff+8huD/kS0C/6cNwXtsRUaSNiUnawyRxhKAZcNmBPHyaiUk8Bzs4SnplSePw5P5uwfgsOC12XvE7BdRgjXfDnmr3ZWKvEHBkAfMfrgS3rFgL8Z//M+gUQsIxrUSTmP//Q/Hsf2OXp+/qTvtokurCoSyaeuuOXMnjwlRwhFSVcMWRPktYA94pFmwnvO6EgyWdPPOdLtDUvf92KXHKZ7z3qxLEvL4oSyVli8uTEQckOrPgClrxYuSLjzpsJV6xfCPBf/AvrPVrAMi+gWKw+5/thatf9z3g4XwAGk0DaOBsCn7D2NNZnQrSJ+NG8H30pgpa9S7Po3ghZ4UE+dUjh+DnCzr3zSy6E77lsi9KpJ+0ArM2QoRIe2lsURGr4rkDfW5QtAu97E+HKBgDf97RIyHMAS5ti4br9pvkA3/e0h5k8MBAALGZM0Yd1THUQ01XLoOhAljteJN3ONRbjtbSQ1Qs1qf4NFIqS/fjISWDfoSDZuq6myqVbFGLi/zXSQJ3tPaxpSfvakCFxVAFXEEuV1nsFYDFJGndghZErAO+/hXDVhsZC1oPPAruP+C/LdZuBt1+3UMj6wROM0xnGQMKn4Hk26SDHycRxmQS2dijxaIEQUaQzIWxdWk2ylSbabFCirkim4akZ4NmXfBDCe/DlW5SOvdJOBpNxv0ijJiPfUKuxVA0lgY0jvgAkL4BsCcb+fOm4sNcOSCsYw6GTrL1P2gccfKTfmTxr27b8XwcAhCxcbdhTMCUsOgJcPWSRRRM9JqbKHzH49mYA2fheFuSpIw7OFYCn9wRhPQHKW7YqXdhsIsicr0VfBB2HKdgYMgyI8vKsHwLeek17Viobc2Jm7J1iZIq+AaRmp24zlMcXsoArLAJMoPutOxtaWbTnjymcLRB27YcOr5Vr6xWkY5Q3JedaMKCaMknyjfEQyXeyzwqFFivAnW/ojkJbGfdi92SLjJ0HWbsXta06FAjQChXLnCbzhOE+xusG7TkctLPBtruw1YU6lSHsP62QLQC7DwJrxhWqirFloI5FByjXtuTQPlsTpMrAb79t+anXzFWo+Me7WEd6yN4sTgmTEtMKwBL8d7ygsDZZxXqLhg7tLrTt8G8VYHPfoWmF4znC0TMKmSrwun5PmwH9sjfBj9CebGpVihnSWKlyReBTv9KhA7ndAS9y/z1PeugPoj5MOE+rEZe5ih/ZIUaOIYuJ49rhbztkp5P1kr10+wEXB2cIG/s9DPbNVa+rUYnZi4N4ZpGShTVLPctMAfjM7Z0BfOgE4+cHgfN5YP0ocOtVrbkS6+f5b9s9DKUCCTtg1SbdpdmazJT8tJZrR+xmIOqQHdtBd80ms9j3UtTkP3dHMBpnbOpnQ8C1MoXmOSMxi+QqUq2w+Ewe+My72gf4wV2Me570JV/tpPB8gH7/DmDNYHsS93d/4gNcs3QFOnIrtmrRgUWWuGmNPQm6FnQnC7ccxo5WgL/72QgqHuPGCV4ArBG05Kdmz2UgN+sDfDYL/O672wN4aprxt/fMpaEIECacdt0w8Ad3tgfwPz3kYbQfWk/WwQFBWG0zgEWNFwl6oA/YMmgT4CBsVhY+ky/fDebfaAWEXt7zyAEHR2YUbpjwEHfnDCI1cg4iNLQLMGDPYj48m2kfYKHeR3b7QpGoNgZg8TzJnv4XH5bvWgf5Hx/0MNLvmzLDADdzRuSrUqlH6XoeaxIWPUnhwHebqSvdvABTM8CDByLYMMDYPNA4jNQYLjQQs5J240dBtsuif/A4Y9+UgMFatRGAhTMUSqT39N/eBmwYaR3gbz7oYTQNDKR8Z4REf7TibZJojlmPcMOo9bzhudQVm8ln3QAsz37vWVez5zdvDAEc+tUALM53EbBmAoA//c72WPR9TzFePsma2kR/FR1cABbqPZ8nfPhWYP1wewCPpIHBNgAWs6qwZynWstWigUPWcV7ymd6HLaWPdgvwzikHe04oXD/uYbjBIXnzKLgInAsAvqtNNen+ZxiTp1mrNkJtYkcWwU24grT5628mrG0DYM2iDcChPXgpFi2hOjNlhcstq0cL0kcDQctKAni3AIv/9vu7I7rK683rF7LpBQAXgDMZ4BPvaI+CJc/o2FnW3iHRW8UTJHu7ULAIbe+5mTAx1DoFf+thD8MCcEjIMtV7Gq2JCXqX6gLXj5XbCgRstsYNE8BtlXBo1nkr3+84pPDSGQc3rfMwUkfFJq9XVCRh0YaCP/QWQryFUFjTv0RonJzxU1I0BSs/+kMoeCbruwvHW1SVJL/p7sdYAyxStE5Oa6ImCfWeLYlwVcF4wm7aSsMSDraKsLQCYLN7ciXgnr0RXQfrzZt4XtEWDXCdFC37sGQoXLe5dYr72R4PJ87DZ9GBkGUo+FweeMd1tGRgfHgOzx1mPH+E9f4rAGtX4hIAy94r3iOXCNePlawmni1ahMVn03bKKDUDsJXv/++4g+eOKlw55mHT4NwT2oMU6MEiaIkeLFQsku8Nl0jUhqScNAf68X0eTmXmwm8MixbOIJXof/kawmj/0u3kZhn7p4Bdh31hTbPn4IURgBfLPJR0lUyZsGWwiuG4RdXIP1upcRklWcKVtkuHgfc8xg/3RFGsspaoE0G2gzZ0BA59baoUVSnvmxoF5GyBtIVL9nJxRsglViqxb+uEMskUjPvClXwkPEe8P1pNEs9UYB0TKpb2MtKelA4O0l5M6SVxKMjeLWqWBOJJW8LujbNBUk8bxWsVKuJYIKTlqAGL0Rtm7ZYshGarlGErFNrKPScyhAdecrXA9cYNfhlgk60gYMii66C6or93SuSGRD4KSKUKaVYuFK9LFjoCJOv9Viq362zBIM9Xx2OJqTJg/aYt+SltSx+Vqm9OlMu0pdNLg7YkXlpKOwi7X6x+R1lYc9Yv43PDSFn7j+1eTUoZSme2ipHaGviuowq7TzgYTTJuWucLI8Yebfbi2QBUne8rlBscpCXgGoAFZDE8SByVpj5x64XSQOV7aVf2YT8x3P+ISVTUJ+nLpLqatvTBXAElS1smrSVc+9Ksg6mwU2afNY9YZs26H6X+Ph13PxNe+wWbjK1ywrYAFl/rAy9FcSoHbB5kbBllDZpJKtPpoKGUUJGEBSShNh35EQiopui3T30+0Pr0tKDAmc4hDgQ4kw1hgJW/dX9BrrGpVGteGOEAus0glMcUSgvXddHFSSukzZGXWXTqh9e5pXLCWtiyVBDcFsiywD960UVmlnDNuIe16YCKg2o5RjfWe7MAEQBsYrfmFSM1Vd5DZYRN8W8twAVCnGlT/5T4MX34g++gNtXwxN+rSz0EFfG0V6pW8HRu9lKUVFyCUuXuqhH75Rq0nNFqQXDNpi2V9LcFsLQjqtOPX3Qhhca3jjHWpX1nhA7eC1ixYd36b3koFCigIx39lai5B8Phrvr2IGHcsHbNBYLgwHDYkC6FGDows1Yhvu5QD2nTgCv7vtTFsl2Lo7bG7ZT01yBbOpTDJsiZWeDhgxEtSIlDQth1GBQTqFeLugx1HsSm+1uVsOPQWQ4B7r7TKngpwjU9arFhcxWF5yrBm1LFQQeGLcvzx/KEfIV0wtq1wz0sDE70WDoReUujtV5U0bN5rI5NkCUT75EDEQjYw3HGNeNz0nWAT8jP2KDnYMZm4o1ipswLop9eysgUqsUVbsdUs9NV36OMa0Z7w5bN7Do6VkfvxRYPxrIJsuzJ2w9HcCLrn4N07bicUGazh87bkvpXx3JySAhhPCkCVaV3bNk3bHR2MJZM0fbRdp0vW+Mnxeu055QDqTa1cRDYNMAd17TsdmyyX5+UksEl2eMJW4aqGLPpwG/EjLo92k7vxZYPp+x2Ieufl1NOdr7i4lxRLEuMSwcYo6mFZxzZ7te0J3vtzKwvTMk5iAMxxpXDlR4YMRrOoLvDKX3J0v7xsrYXW3Rl8T7tOen4xUIjrIWwsYSd/N1G4xXVSYA9UyRUPKkeC1w+WMVo74qL1g3D0vGy0upqciUu9XJIwN6+0w4OTit9rI2rWLsb1yQZ6b7OSxKbPkVHlvMLZ2ZJq23i55LDpzcNVrE26fV0r62ft7UDogMq7tkR77apWdqrMuPwjMLhGQdydqI2TijW8dZyVKzYjyWoT2zBi1URFtYrOrcOrq+I98ePwxbmLwYNOdlsfdrDaHx5D7/S62X7iHdf4OKNVa4804t6Hr0A2bQpOvPRjIOTOYWzRd/VOFel3a9ma8yYNcNJrQSir0zJ/RHJXY5D25BFOhYz5cpcNO2Qe1MiQQ1OxVg4ouaO09AzuWLlDvb4XlsHRi/3AklJ4POzCjkpyD0rjgmlvUQV5uBsYXHC+6BHHKF01npsqo+RtFCcrdv5yoHQpOjOZMy9r9W22gJYGs3my3/FzH/UagcX77O3AkT016lE5I/babFtgJnZzRYqP7VdHa+dQV+Q9xLtSMXdtxJRW+kPbQMc7MfrPZR3MGPjBbnYyzxpIkwqRG5JJGiq3a47Alg68YPlK4++2oSudhdo5e+n6ajr3ionqHQylo4B9im59Ase6EFmbhCi3slwLj4TXgEiyivwOxKJ6OOdrkxXAEun4nVij+VQS+sRRp1O6rXwnOy1pOi9yZj7P93Mp2uApfNMvvIRAn/nIsjdQDH3rIDLoI+lE+6/dtuiFYBDlHz3RXbdHSTClknRB7qlXDMKawCbPbnK9F8XBa9OQRYrFb+nmz23vmerABvpulwt339RhWoPZFGFIk7k9k6l5cV6sw6w0ZOrqHzvojGkRZCJdjhwP9iJntush54ALJ2KwJUrVL4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",st=ee(59301),Yt=(zt,rn,on)=>new Promise((Xt,vn)=>{var pn=xn=>{try{$n(on.next(xn))}catch(hn){vn(hn)}},wn=xn=>{try{$n(on.throw(xn))}catch(hn){vn(hn)}},$n=xn=>xn.done?Xt(xn.value):Promise.resolve(xn.value).then(pn,wn);$n((on=on.apply(zt,rn)).next())}),pe=({className:zt,dataSource:rn=[],col:on=4,right:Xt,bottom:vn=23,precision:pn=0,wrapWidth:wn=1200,trackEventItems:$n,loading:xn,category:hn,hiddenClick:Zn,handleVery:Wn=()=>!0,isCurrent:ir})=>{const[tr,sn]=de.default.useModal(),yn=Math.floor((wn-(on-1)*Xt)/on),zn=Hn=>Yt(void 0,null,function*(){tr.confirm({title:"\u7F6E\u9876",width:500,content:st.createElement("div",null,"\u60A8\u786E\u5B9A\u8981\u5C06",st.createElement("span",{className:"c-blue"},"\u201C",Hn.name,"\u201D"),"\u8BFE\u5802\u7F6E\u9876\u5417\uFF1F"),okText:"\u786E\u8BA4\u7F6E\u9876",centered:!0,cancelText:"\u53D6\u6D88"})});return st.createElement(Me.Z,{spinning:xn},sn,st.createElement("div",{className:Ee()(_e.list,zt)},!!rn.length&&rn.map((Hn,ut)=>{const{subject_identifier:Pt,id:Re,identifier:vt,power:Ze}=Hn,bt=Hn.is_public!=0&&Hn.is_public;return st.createElement("div",{className:_e.wrap,key:Re,style:{width:yn,marginRight:(1+ut)%on===0?0:Xt+pn,marginBottom:vn}},Hn.homepage_show&&st.createElement("div",{className:_e.btnsTop},st.createElement(Et.default,{color:"red"},"\u7F6E\u9876")),st.createElement("a",{className:_e.li,onClick:Pe=>{Pe.preventDefault(),Wn(Hn==null?void 0:Hn.first_category_url)&&($n&&(0,ct.L9)([$n]),(0,ct.xg)(Hn.first_category_url))}},st.createElement("div",{className:_e.top},st.createElement(Xe.Z,{title:Hn.name},st.createElement("div",{className:_e.name},Hn.name)),st.createElement("img",{className:_e.img,src:$t.Z.IMG_SERVER+"/images/"+Hn.avatar_url}),st.createElement("div",{className:_e.text,title:Hn.creator},Hn.creator),Pt&&st.createElement("div",{className:_e.btns},st.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),st.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),bt&&st.createElement("div",{className:_e.sign},"\u516C\u5F00"),ir&&st.createElement("div",{className:_e.hidden,onClick:Pe=>{Pe.stopPropagation(),Zn(Hn)}},st.createElement("i",{className:`iconfont ${hn=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),hn=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF")),st.createElement("div",{className:_e.bottom},Hn.visits>0&&st.createElement(Xe.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},st.createElement("span",null,st.createElement("i",{className:"iconfont icon-liulanyan"}),st.createElement("span",null,Hn.visits))),Hn.course_members_count>0&&st.createElement(Xe.Z,{title:"\u6210\u5458",placement:"bottom"},st.createElement("span",null,st.createElement("i",{className:"iconfont icon-chengyuan"}),Hn.course_members_count)),Hn.tasks_count>0&&st.createElement(Xe.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},st.createElement("span",null,st.createElement("i",{className:"iconfont icon-zuoye"}),Hn.tasks_count)),Hn.is_end?st.createElement("div",{style:{color:"#6B758B"}}):st.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!Hn.is_accessible&&st.createElement("div",{className:_e.lockWrap},st.createElement("img",{src:`${$t.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),st.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!rn.length&&st.createElement(Ye.Z,null)))},Lt={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"},en=ee(44283),ge=({dataSource:zt=[],value:rn,onChange:on,className:Xt,style:vn={},tabBarExtraContent:pn})=>b.createElement("div",{className:Ee()(Lt.tabs,Xt),style:vn},b.createElement("div",{className:Lt.tabsWrap},zt.map((wn,$n)=>!(wn!=null&&wn.hide)&&b.createElement("aside",{className:Lt.tab,onClick:()=>{on(wn.id),wn.link&&en.history.push(wn.link)},key:$n},b.createElement("div",{className:rn===wn.id?Lt.active:""},wn.name),(wn==null?void 0:wn.resetCount)==null&&(wn==null?void 0:wn.total)!==void 0&&b.createElement("span",null,"\uFF08",wn==null?void 0:wn.total,"\uFF09"),(wn==null?void 0:wn.resetCount)!==void 0&&(wn==null?void 0:wn.total)!==void 0&&b.createElement(Xe.Z,{title:(wn==null?void 0:wn.tip)!=null?wn==null?void 0:wn.tip:""},b.createElement("span",{style:{color:"#9096A3"}},"\uFF08",b.createElement("span",{style:{color:"#000"}},wn==null?void 0:wn.resetCount),"/",b.createElement("span",null,wn==null?void 0:wn.total),"\uFF09"))))),b.createElement("div",{className:Lt.tabBar},pn)),tt=({className:zt,style:rn={},children:on})=>b.createElement("div",{className:Ee()(zt),style:rn},on),Wt={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"},qe=ee(75727),Rt=ee(93041);const Qe=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var gt=({sortValue:zt,dropValue:rn,className:on,onSort:Xt,onDrop:vn,dataSource:pn=Qe})=>{var wn;return b.createElement("div",{className:Ee()(Wt.orderWrap,on)},b.createElement(qe.Z,{dropdownRender:()=>b.createElement(Rt.default,null,pn.map(($n,xn)=>b.createElement(Rt.default.Item,{key:xn,onClick:()=>vn($n.id)},$n.name)))},b.createElement("span",{className:Wt.orderTextWrap},(wn=pn.find($n=>rn===$n.id))==null?void 0:wn.name)),b.createElement("span",{className:Wt.orderIconWrap},b.createElement("span",{className:Wt.orderAsc},b.createElement("i",{className:zt==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Wt.cursorPointer} ${Wt.active}`:`iconfont icon-sanjiaoxing-up font12 ${Wt.cursorPointer}`,onClick:()=>Xt(zt==="asc"?"desc":"asc")})),b.createElement("span",{className:Wt.orderDesc},b.createElement("i",{className:zt==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Wt.cursorPointer} ${Wt.active}`:`iconfont icon-sanjiaoxing-down font12 ${Wt.cursorPointer}`,onClick:()=>Xt(zt==="asc"?"desc":"asc")}))))},ae={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v"},ne=ee(7939),te=Object.defineProperty,oe=Object.getOwnPropertySymbols,ce=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable,le=(zt,rn,on)=>rn in zt?te(zt,rn,{enumerable:!0,configurable:!0,writable:!0,value:on}):zt[rn]=on,be=(zt,rn)=>{for(var on in rn||(rn={}))ce.call(rn,on)&&le(zt,on,rn[on]);if(oe)for(var on of oe(rn))re.call(rn,on)&&le(zt,on,rn[on]);return zt},ht=(zt,rn)=>{var on={};for(var Xt in zt)ce.call(zt,Xt)&&rn.indexOf(Xt)<0&&(on[Xt]=zt[Xt]);if(zt!=null&&oe)for(var Xt of oe(zt))rn.indexOf(Xt)<0&&re.call(zt,Xt)&&(on[Xt]=zt[Xt]);return on},Le=(zt,rn,on)=>new Promise((Xt,vn)=>{var pn=xn=>{try{$n(on.next(xn))}catch(hn){vn(hn)}},wn=xn=>{try{$n(on.throw(xn))}catch(hn){vn(hn)}},$n=xn=>xn.done?Xt(xn.value):Promise.resolve(xn.value).then(pn,wn);$n((on=on.apply(zt,rn)).next())}),Ve=zt=>{var rn=zt,{className:on,style:Xt,children:vn,loading:pn=!1,openLoading:wn,onClick:$n=()=>{},size:xn="middle",shape:hn="round"}=rn,Zn=ht(rn,["className","style","children","loading","openLoading","onClick","size","shape"]);const[Wn,ir]=(0,b.useState)(!1);return b.createElement(ne.ZP,be({onClick:(0,je.throttle)(tr=>Le(void 0,null,function*(){wn&&ir(!0);try{yield $n(tr)}catch(sn){console.log("error",sn)}wn&&ir(!1)}),2e3,{leading:!0,trailing:!1}),className:Ee()(ae.btn,ae[`${xn}-${hn}`],on),style:Xt,size:xn,shape:hn,loading:Wn||pn},Zn),vn)},Ge={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"},we=({className:zt,style:rn,children:on=null,onClick:Xt,title:vn})=>b.createElement("div",{className:Ee()(Ge.head,zt),style:rn},b.createElement("span",{className:"primary-hover",onClick:Xt},b.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),b.createElement("b",{title:vn},vn),b.createElement("div",{className:Ge.node},on)),De={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"},Tt=({confirmShow:zt=!0,confirmTitle:rn,confirmClick:on,cancelShow:Xt=!0,cancelTitle:vn,cancelClick:pn,className:wn,style:$n,confirmLoading:xn=!1})=>b.createElement("div",{className:Ee()(De.btns,wn),style:$n},zt&&b.createElement(ne.ZP,{loading:xn,onClick:on,type:"primary",className:De.confirm},rn),Xt&&b.createElement(ne.ZP,{onClick:pn,className:De.cancel},vn)),nn={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},St=({className:zt,style:rn={},LeftContent:on,children:Xt,RightContent:vn})=>b.createElement("div",{className:Ee()(nn.fixedBottom,zt),style:rn},b.createElement("div",{className:nn.wrap},b.createElement("div",{className:nn.left},on),b.createElement("div",{className:nn.center},Xt),b.createElement("div",{className:nn.right},vn))),an={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"},$e=({className:zt,style:rn={},dataSource:on=[]})=>b.createElement("div",{className:Ee()(an.crumbs,zt),style:rn},on.map((Xt,vn)=>vn<on.length-1?b.createElement(b.Fragment,{key:vn},Xt.path||Xt.onClick?b.createElement("span",{className:an.hover,onClick:Xt!=null&&Xt.onClick?Xt.onClick:()=>en.history.push(Xt.path)},Xt.name):b.createElement("span",null,Xt.name),b.createElement("span",null,"\xA0",">","\xA0")):b.createElement("span",{key:vn,style:{color:"#5F6368"}},Xt.name))),mt=ee(11938),jt=Object.defineProperty,Jt=Object.defineProperties,Be=Object.getOwnPropertyDescriptors,ft=Object.getOwnPropertySymbols,Dt=Object.prototype.hasOwnProperty,Vt=Object.prototype.propertyIsEnumerable,un=(zt,rn,on)=>rn in zt?jt(zt,rn,{enumerable:!0,configurable:!0,writable:!0,value:on}):zt[rn]=on,En=(zt,rn)=>{for(var on in rn||(rn={}))Dt.call(rn,on)&&un(zt,on,rn[on]);if(ft)for(var on of ft(rn))Vt.call(rn,on)&&un(zt,on,rn[on]);return zt},Mn=(zt,rn)=>Jt(zt,Be(rn)),Fn=(zt,rn)=>{var on={};for(var Xt in zt)Dt.call(zt,Xt)&&rn.indexOf(Xt)<0&&(on[Xt]=zt[Xt]);if(zt!=null&&ft)for(var Xt of ft(zt))rn.indexOf(Xt)<0&&Vt.call(zt,Xt)&&(on[Xt]=zt[Xt]);return on};const{Countdown:gn}=mt.default;var dn=zt=>{var rn=zt,{onChange:on}=rn,Xt=Fn(rn,["onChange"]);const[vn,pn]=(0,b.useState)(null);(0,b.useEffect)(()=>{typeof vn=="number"&&vn>=0&&on(vn)},[vn]);const wn=$n=>{const xn=Math.floor($n/1e3);pn(xn)};return b.createElement(gn,Mn(En({},Xt),{onChange:wn}))}},79006:function(In,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return ze}});var b=ee(59301);function ze(fe,nt){const Se=(0,b.useRef)();(0,b.useEffect)(()=>{Se.current=fe}),(0,b.useEffect)(()=>{function xe(){Se.current()}if(nt!==null){let Ee=setInterval(xe,nt);return()=>clearInterval(Ee)}},[nt])}},74706:function(In,Qt,ee){"use strict";var b=ee(59301),ze=ee(6767),fe=ee(94968),nt=ee(62957),Se=ee(29787),xe=ee(28284),Ee=ee(37568),je=ee(82326),Ie=ee(77019),ue=ee(5269),et=ee(39049),Te=ee(14185),At=ee(19248),lt=ee(78130),it=ee(70467),We=ee(49317),ke=Object.defineProperty,ot=Object.getOwnPropertySymbols,yt=Object.prototype.hasOwnProperty,Nt=Object.prototype.propertyIsEnumerable,Fe=(ct,Ye,rt)=>Ye in ct?ke(ct,Ye,{enumerable:!0,configurable:!0,writable:!0,value:rt}):ct[Ye]=rt,Me=(ct,Ye)=>{for(var rt in Ye||(Ye={}))yt.call(Ye,rt)&&Fe(ct,rt,Ye[rt]);if(ot)for(var rt of ot(Ye))Nt.call(Ye,rt)&&Fe(ct,rt,Ye[rt]);return ct},Xe=(ct,Ye)=>{var rt={};for(var Ce in ct)yt.call(ct,Ce)&&Ye.indexOf(Ce)<0&&(rt[Ce]=ct[Ce]);if(ct!=null&&ot)for(var Ce of ot(ct))Ye.indexOf(Ce)<0&&Nt.call(ct,Ce)&&(rt[Ce]=ct[Ce]);return rt},Je=(ct,Ye,rt)=>new Promise((Ce,at)=>{var _e=He=>{try{Et(rt.next(He))}catch(st){at(st)}},de=He=>{try{Et(rt.throw(He))}catch(st){at(st)}},Et=He=>He.done?Ce(He.value):Promise.resolve(He.value).then(_e,de);Et((rt=rt.apply(ct,Ye)).next())});const $t=ct=>{var Ye=ct,{handleFinish:rt,form:Ce,dispatch:at}=Ye,_e=Xe(Ye,["handleFinish","form","dispatch"]),de,Et;const[He,st]=(0,b.useState)([]),[Yt,Oe]=(0,b.useState)([]),pe=(0,b.useRef)(null),Lt=(0,b.useRef)(1),[en,Ot]=(0,b.useState)(!1),[ge,Ke]=(0,b.useState)(!1),[tt,Wt]=(0,b.useState)([]),qe={fileList:He,maxCount:1,accept:"image/*",withCredentials:!0,beforeUpload:gt=>{const ae=gt.size/1024/1024;return ae>2||ae==0?(ze.ZP.error(`${gt.name} \u56FE\u7247\u65E0\u6CD5\u4E0A\u4F20\u3002${ae==0?"\u6587\u4EF6\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A":"\u8D85\u8FC7\u56FE\u7247\u5927\u5C0F\u9650\u5236(2MB)"}`),fe.default.LIST_IGNORE):!0},onRemove:gt=>{st([])},onChange:gt=>{var ae,ne,te;Ce.setFieldsValue({cover_id:""}),["uploading","done","removed"].includes(gt.file.status)&&(st(gt.fileList),Ce.setFieldsValue({cover_id:(te=(ne=(ae=gt.fileList)==null?void 0:ae[0])==null?void 0:ne.response)==null?void 0:te.id}))},action:`${Te.Z.API_SERVER}/api/attachments.json`},Rt=()=>{var gt,ae;return b.createElement("div",{className:et.Z.imgUpLoad},b.createElement("img",{src:Te.Z.API_SERVER+"/api/attachments/"+((ae=(gt=He==null?void 0:He[0])==null?void 0:gt.response)==null?void 0:ae.id),alt:"avatar",style:{width:"100%"}}),b.createElement("div",null,b.createElement(At.Z,{onClick:()=>{st([]),Ce.setFieldsValue({cover_id:""})},style:{fontSize:"16px",color:"red"}})))},Qe=()=>Je(void 0,null,function*(){var gt,ae;Ot(!0);const ne=yield(0,We.ZP)("/api/schools/search.json",{method:"get",params:{display_aliases:!0,per_page:9999}});Wt(ne==null?void 0:ne.schools),Oe(ne==null?void 0:ne.schools),Ce.setFieldsValue({school_id:((ae=(gt=ne==null?void 0:ne.schools)==null?void 0:gt.find(te=>te.id==parseInt(Ce.getFieldValue("school_id"))))==null?void 0:ae.name)||Ce.getFieldValue("school_id")}),Ot(!1)}),tn=(gt,ae=500)=>{Ke(!0),clearTimeout(pe.current),pe.current=setTimeout(()=>Je(void 0,null,function*(){Lt.current+=1;const ne=Lt.current,te=yield at({type:"account/getSchoolOption",payload:{display_aliases:!0,keyword:gt}});te.status===0&&Lt.current===ne&&(Wt(te==null?void 0:te.schools),Ke(!1))}),ae)};return(0,b.useEffect)(()=>{_e.open?(Ce.getFieldValue("cover_id")&&Ce.getFieldValue("cover")&&st([{response:Ce.getFieldValue("cover")}]),Qe()):st([])},[_e.open]),b.createElement(nt.default,Me({},_e),b.createElement(Se.Z,{spinning:en},b.createElement(xe.default,{form:Ce,size:"large",initialValues:{},layout:"vertical",onFinish:gt=>{rt(gt)}},b.createElement(xe.default.Item,{htmlFor:null,name:"name",label:"\u597D\u8BFE\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u597D\u8BFE\u540D\u79F0"}]},b.createElement(Ee.default,{placeholder:"\u8BF7\u8F93\u5165\u597D\u8BFE\u540D\u79F0",maxLength:60,showCount:!0})),b.createElement(xe.default.Item,{htmlFor:null,name:"creator",label:"\u521B\u5EFA\u8005",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u521B\u5EFA\u8005"}]},b.createElement(Ee.default,{placeholder:"\u8BF7\u8F93\u5165\u521B\u5EFA\u8005",maxLength:60,showCount:!0})),b.createElement(xe.default.Item,{htmlFor:null,name:"school_id",label:"\u6240\u5C5E\u5355\u4F4D"},b.createElement(je.default,{showSearch:!0,filterOption:!1,onSearch:gt=>{tn(gt)},loading:ge,size:"large",style:{width:"100%"}},tt.map(gt=>b.createElement(je.default.Option,{value:gt.id,key:gt.id},gt.name)))),b.createElement(xe.default.Item,{htmlFor:null,name:"desc",label:"\u7B80\u4ECB",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u597D\u8BFE\u7B80\u4ECB"}]},b.createElement(lt.h,{placeholder:"\u8BF7\u8F93\u5165\u597D\u8BFE\u7B80\u4ECB",scrollId:"",watch:!0,height:192})),b.createElement(xe.default.Item,{name:"cover_id",label:"\u5C01\u9762\u56FE\u7247",rules:[{required:!0,message:"\u8BF7\u4E0A\u4F20\u597D\u8BFE\u56FE\u7247"}]},b.createElement("div",{className:et.Z.upload},(Et=(de=He==null?void 0:He[0])==null?void 0:de.response)!=null&&Et.id?Rt():b.createElement(fe.default,Me({},qe),b.createElement(Ie.Z,{wrap:!1,align:"middle"},b.createElement(it.op,{style:{borderRadius:"2px"},icon:b.createElement("i",{className:"iconfont icon-shangchuan3"})},"\u56FE\u7247\u4E0A\u4F20"),b.createElement(ue.Z,{style:{marginLeft:"16px",color:"#5F6367"},onClick:gt=>{gt.preventDefault(),gt.stopPropagation()}},"\u8BF7\u9009\u62E9jpg\u3001png\u683C\u5F0F\uFF0C\u5EFA\u8BAE\u5C3A\u5BF8282*212\u50CF\u7D20"))))),b.createElement(xe.default.Item,{htmlFor:null,name:"lesson_url",label:"\u8BFE\u7A0B\u94FE\u63A5",rules:[{type:"url",message:"\u8D44\u6E90\u94FE\u63A5\u683C\u5F0F\u4E0D\u6B63\u786E"}]},b.createElement(Ee.default,{placeholder:"\u8BF7\u8F93\u5165\u8BFE\u7A0B\u94FE\u63A5",maxLength:150})))))};Qt.Z=$t},13699:function(In,Qt,ee){"use strict";ee.r(Qt),ee.d(Qt,{default:function(){return en}});var b=ee(59301),ze=ee(44283),fe=ee(28284),nt=ee(25399),Se=ee(7939),xe=ee(6767),Ee=ee(94968),je=ee(29787),Ie=ee(62957),ue=ee(77019),et=ee(5269),Te=ee(70858),At=ee(31709),lt=ee(37568),it=ee(70467),We=ee(90736),ke={flex_box_center:"flex_box_center___Q28K2",flex_space_between:"flex_space_between___XKhJD",flex_box_vertical_center:"flex_box_vertical_center___G6xvN",flex_box_center_end:"flex_box_center_end___OpS9Y",flex_box_column:"flex_box_column___Jx7wj",Onerow:"Onerow___iGZyH",MultiLine:"MultiLine___zus_s",LessonsList:"LessonsList___d2liG",LessonsListItem:"LessonsListItem___CaSaY",LessonsListItemImg:"LessonsListItemImg___LCyOb",imgUpLoad:"imgUpLoad___gXVAl",LessonDetail:"LessonDetail___z2veM"},ot=ee(49317),yt=ee(14185),Nt=ee(76406),Fe=ee(66649),Me=ee.n(Fe),Xe=ee(35883),Je=ee(74706),$t=ee(16713),ct=ee(86974),Ye=ee(15267),rt=Object.defineProperty,Ce=Object.defineProperties,at=Object.getOwnPropertyDescriptors,_e=Object.getOwnPropertySymbols,de=Object.prototype.hasOwnProperty,Et=Object.prototype.propertyIsEnumerable,He=(Ot,ge,Ke)=>ge in Ot?rt(Ot,ge,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Ot[ge]=Ke,st=(Ot,ge)=>{for(var Ke in ge||(ge={}))de.call(ge,Ke)&&He(Ot,Ke,ge[Ke]);if(_e)for(var Ke of _e(ge))Et.call(ge,Ke)&&He(Ot,Ke,ge[Ke]);return Ot},Yt=(Ot,ge)=>Ce(Ot,at(ge)),Oe=(Ot,ge)=>{var Ke={};for(var tt in Ot)de.call(Ot,tt)&&ge.indexOf(tt)<0&&(Ke[tt]=Ot[tt]);if(Ot!=null&&_e)for(var tt of _e(Ot))ge.indexOf(tt)<0&&Et.call(Ot,tt)&&(Ke[tt]=Ot[tt]);return Ke},pe=(Ot,ge,Ke)=>new Promise((tt,Wt)=>{var qe=tn=>{try{Qe(Ke.next(tn))}catch(gt){Wt(gt)}},Rt=tn=>{try{Qe(Ke.throw(tn))}catch(gt){Wt(gt)}},Qe=tn=>tn.done?tt(tn.value):Promise.resolve(tn.value).then(qe,Rt);Qe((Ke=Ke.apply(Ot,ge)).next())});const Lt=Ot=>{var ge=Ot,{classroomList:Ke,globalSetting:tt,user:Wt,virtualSpaces:qe,loading:Rt,dispatch:Qe}=ge,tn=Oe(ge,["classroomList","globalSetting","user","virtualSpaces","loading","dispatch"]),gt,ae,ne,te,oe,ce,re,le,be,ht,Le,Ne;const[Ve]=fe.default.useForm(),[Ge]=fe.default.useForm(),[pt]=fe.default.useForm(),we=(0,b.useRef)(),[De,Zt]=(0,b.useState)({content:"",type:""}),{LessonDetail:Tt,LessonResList:nn}=qe,{virtual_spacesId:Ut,id:St,fileid:an}=(0,ze.useParams)(),[_t]=(0,ze.useSearchParams)(),[$e,mt]=(0,b.useState)(!!_t.get("isViewFile")||!1),[jt,Jt]=(0,b.useState)(!1),[Be,ft]=(0,b.useState)(!1),[Dt,Vt]=(0,b.useState)(!1),[un,En]=(0,b.useState)(!1),[Mn,Fn]=(0,b.useState)({}),gn=(0,b.useRef)(null),[kn,dn]=(0,b.useState)(!1),[zt,rn]=(0,b.useState)({virtual_classroom_id:Ut,virtual_spacesId:Ut,id:St,resType:1,resource_type:1,page:1,limit:20}),on=[{title:"\u540D\u79F0",dataIndex:"name",ellipsis:!0,render:(xn,hn)=>{var Zn,Wn,ir;return b.createElement(nt.Z,{placement:"topLeft",title:xn||((Zn=hn==null?void 0:hn.attachment)==null?void 0:Zn.title)},b.createElement(b.Fragment,null,b.createElement($t.Z,{fileName:xn||((Wn=hn==null?void 0:hn.attachment)==null?void 0:Wn.title)}),xn||((ir=hn==null?void 0:hn.attachment)==null?void 0:ir.title)||"--"))}},{title:"\u4E0A\u4F20\u65E5\u671F",dataIndex:"updated_at",ellipsis:!0,width:150,render:xn=>Me()(xn).format("YYYY-MM-DD HH:mm")},{title:"\u7C7B\u578B",dataIndex:"resource_type",ellipsis:!0,width:80,render:(xn,hn)=>{var Zn;return(xn==2?"\u5916\u94FE":(Zn=hn==null?void 0:hn.attachment)==null?void 0:Zn.show_file_type)||"\u672A\u77E5\u6587\u4EF6"}},{title:"\u64CD\u4F5C",dataIndex:"keyword",align:"right",ellipsis:!0,width:200,render:(xn,hn)=>b.createElement(b.Fragment,null,b.createElement(Se.ZP,{style:{padding:"4px 10px"},type:"link",onClick:()=>{if(zt.resource_type==2){window.open(hn==null?void 0:hn.url);return}window.open(`/${Nt.AS}/${Ut}/lesson/${St}/detail/${hn==null?void 0:hn.attachment_id}?isViewFile=true&recordid=${hn.id}&leftMenuId=${window.localStorage.getItem("vtrsModuleId")}`)}},"\u67E5\u770B"),zt.resource_type==1&&b.createElement(it.op,{openLoading:!0,type:"link",style:{padding:"4px 10px"},onClick:()=>pe(void 0,null,function*(){var Zn,Wn,ir,tr,sn,yn,zn;if(["pdf","txt","image"].includes((Zn=hn==null?void 0:hn.attachment)==null?void 0:Zn.file_type)){yield $n(`${yt.Z.API_SERVER}${(ir=(Wn=hn==null?void 0:hn.attachment)==null?void 0:Wn.url)==null?void 0:ir.replace("disposition=inline","")}`,(tr=hn==null?void 0:hn.attachment)==null?void 0:tr.title);return}(0,Nt.Nd)((sn=hn==null?void 0:hn.attachment)==null?void 0:sn.title,`${yt.Z.API_SERVER}${(zn=(yn=hn==null?void 0:hn.attachment)==null?void 0:yn.url)==null?void 0:zn.replace("disposition=inline","")}`)})},"\u4E0B\u8F7D"),b.createElement(Se.ZP,{style:{padding:"4px 10px"},type:"link",onClick:()=>pe(void 0,null,function*(){const Zn=yield(0,ot.ZP)(`/api/virtual_classrooms/${Ut}/good_lessons/${St}/delete_resources.json`,{method:"delete",body:{lesson_resource_id:hn.id}});(Zn==null?void 0:Zn.status)==0&&(xe.ZP.success("\u5220\u9664\u6210\u529F"),pn())})},"\u5220\u9664"))}],Xt={multiple:!0,maxCount:10,withCredentials:!0,beforeUpload:xn=>{const hn=xn.size/1024/1024;return hn>500||hn==0?(xe.ZP.error(`${xn.name} \u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002${hn==0?"\u6587\u4EF6\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A":"\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(500MB)"}`),Ee.default.LIST_IGNORE):!0},action:`${yt.Z.API_SERVER}/api/attachments.json`},vn=()=>{Qe({type:"virtualSpaces/getGoodLessonsDetail",payload:{virtual_spacesId:Ut,id:St,virtual_classroom_id:Ut}})},pn=()=>{window.scrollTo(0,0),Qe({type:"virtualSpaces/getLessonResourcesList",payload:Yt(st({},zt),{virtual_spacesId:Ut,id:St})})},wn=xn=>pe(void 0,null,function*(){const hn=yield(0,ot.ZP)(`/api/attachments/${xn}/detail.json`,{method:"get"});if((hn==null?void 0:hn.status)!==-1){if(hn.file_type==="txt"){const Zn=yield(0,ot.ZP)(hn.url,{method:"get",headers:{"Content-Type":"application/xml"},credentials:"omit"});we.current=Zn}Zt({type:hn.file_type,content:hn.url+"&nocredentials=true"})}Fn(st({recordid:Number(_t.get("recordid"))},hn))}),$n=(xn,hn="")=>pe(void 0,null,function*(){var Zn,Wn,ir;const tr=yield fetch(xn,{method:"get"}),sn=yield tr.blob(),yn=decodeURIComponent((ir=(Wn=/filename[^;=\n]*=((['"]).*?\2|[^;\n]*)/.exec((Zn=tr==null?void 0:tr.headers)==null?void 0:Zn.get("Content-Disposition")))==null?void 0:Wn[1])==null?void 0:ir.replace(/['"]/g,""));(0,Nt.Nd)(hn||yn,window.URL.createObjectURL(sn))});return(0,b.useEffect)(()=>{!Dt&&pn()},[zt]),(0,b.useEffect)(()=>{$e?wn(an):Ut&&St&&vn()},[$e]),(0,b.useEffect)(()=>{var xn;((xn=gn==null?void 0:gn.current)==null?void 0:xn.clientHeight)>84?dn(!0):dn(!1)},[Tt]),b.createElement(je.Z,{spinning:!!Rt["virtualSpaces/getLessonResourcesList"]||!!Rt["virtualSpaces/getGoodLessonsDetail"]},b.createElement("div",{className:"ml40 mr40"},b.createElement(it.qE,{title:$e?Mn==null?void 0:Mn.title:(gt=Tt==null?void 0:Tt.data)==null?void 0:gt.name,onClick:()=>{if($e){ze.history.push(`/${Nt.AS}/${Ut}/lesson/${St}/detail?leftMenuId=${window.localStorage.getItem("vtrsModuleId")}`);return}ze.history.push(`/${Nt.AS}/${Ut}/lesson?leftMenuId=${window.localStorage.getItem("vtrsModuleId")}`)}},$e&&b.createElement(b.Fragment,null,b.createElement(it.op,{openLoading:!0,className:"primary-hover",type:"link",icon:b.createElement("i",{className:"iconfont icon-xiazai4 font14"}),onClick:()=>pe(void 0,null,function*(){var xn,hn;if(["pdf","txt","image"].includes(Mn==null?void 0:Mn.file_type)){yield $n(`${yt.Z.API_SERVER}${(xn=Mn==null?void 0:Mn.url)==null?void 0:xn.replace("disposition=inline","")}`,Mn==null?void 0:Mn.title);return}(0,Nt.Nd)(Mn==null?void 0:Mn.title,`${yt.Z.API_SERVER}${(hn=Mn==null?void 0:Mn.url)==null?void 0:hn.replace("disposition=inline","")}`)})},"\u4E0B\u8F7D"),b.createElement(Se.ZP,{className:"delete-hover",type:"link",icon:b.createElement("i",{className:"iconfont icon-piliangshanchubeifen font14"}),onClick:()=>pe(void 0,null,function*(){const xn=yield(0,ot.ZP)(`/api/virtual_classrooms/${Ut}/good_lessons/${St}/delete_resources.json`,{method:"delete",body:{lesson_resource_id:Mn==null?void 0:Mn.recordid}});(xn==null?void 0:xn.status)==0&&(xe.ZP.success("\u5220\u9664\u6210\u529F"),ze.history.push(`/${Nt.AS}/${Ut}/lesson/${St}/detail?leftMenuId=${window.localStorage.getItem("vtrsModuleId")}`))})},"\u5220\u9664")),!$e&&b.createElement(b.Fragment,null,b.createElement(Se.ZP,{className:"primary-hover",type:"link",icon:b.createElement("i",{className:"iconfont icon-bianji7 font14"}),onClick:()=>{ft(!0),pt.setFieldsValue(Tt==null?void 0:Tt.data)}},"\u7F16\u8F91"),b.createElement(Se.ZP,{className:"delete-hover",type:"link",icon:b.createElement("i",{className:"iconfont icon-piliangshanchubeifen font14"}),onClick:()=>{const xn=Ie.default.confirm({icon:null,centered:!0,maskClosable:!0,width:374,title:"\u63D0\u793A",content:"\u786E\u5B9A\u5220\u9664\u8BE5\u597D\u8BFE\uFF1F",onOk:()=>pe(void 0,null,function*(){const hn=yield(0,ot.ZP)(`/api/virtual_classrooms/${Ut}/good_lessons/${St}.json`,{method:"delete"});(hn==null?void 0:hn.status)==0&&(xe.ZP.success("\u5220\u9664\u6210\u529F"),xn.destroy(),ze.history.push(`/${Nt.AS}/${Ut}/lesson?leftMenuId=${window.localStorage.getItem("vtrsModuleId")}`))}),onCancel:()=>xn.destroy()})}},"\u5220\u9664"))),$e&&b.createElement("div",{style:{position:"relative",height:1e3,margin:"25px 0"}},b.createElement(ct.Z,{data:De==null?void 0:De.content,type:De==null?void 0:De.type,disabledDownload:!(0,Ye.bg)(),style:{position:"absolute",zIndex:1,alignItems:"flex-start"},monacoEditor:{value:we.current,language:"txt",onChange:()=>{},options:{readOnly:!0,fontSize:14,minimap:{enabled:!1}}},onClose:()=>{Zt({content:"",type:""}),ze.history.push(`/${Nt.AS}/${Ut}/lesson/${St}/detail?leftMenuId=${window.localStorage.getItem("vtrsModuleId")}`)}})),!$e&&b.createElement(b.Fragment,null,b.createElement("div",{className:ke.LessonDetail},b.createElement(ue.Z,{align:"middle",wrap:!1,justify:"space-between",style:{height:104}},b.createElement(ue.Z,null,b.createElement(et.Z,null,b.createElement("img",{width:166,height:104,src:`${yt.Z.API_SERVER}${(ne=(ae=Tt==null?void 0:Tt.data)==null?void 0:ae.cover)==null?void 0:ne.url}`})),b.createElement(ue.Z,{className:"ml20",style:{flexDirection:"column",flex:1}},b.createElement("div",{className:"font16",style:{fontWeight:500,lineHeight:"26px"}},(te=Tt==null?void 0:Tt.data)==null?void 0:te.name),b.createElement("div",{className:"mt20",style:{lineHeight:"22px",color:"#333"}},(oe=Tt==null?void 0:Tt.data)==null?void 0:oe.creator),b.createElement("div",{className:"mt10",style:{lineHeight:"22px",color:"#333"}},(ce=Tt==null?void 0:Tt.data)==null?void 0:ce.school_name))),b.createElement(et.Z,null,((re=Tt==null?void 0:Tt.data)==null?void 0:re.lesson_url)&&b.createElement(it.op,{onClick:()=>{var xn;window.open((xn=Tt==null?void 0:Tt.data)==null?void 0:xn.lesson_url)}},"\u8FDB\u5165\u8BFE\u7A0B"))),b.createElement("div",{ref:gn},b.createElement(Xe.Z,{className:`mt20 font14 ${!jt&&ke.MultiLine}`,style:{WebkitLineClamp:4},value:(le=Tt==null?void 0:Tt.data)==null?void 0:le.desc})),kn&&b.createElement("a",{style:{float:"right",display:"inline-block"},onClick:()=>Jt(!jt)},jt?"\u6536\u8D77":"\u5C55\u5F00")),b.createElement(it.YG,{className:"mt20",value:zt.resource_type,onChange:xn=>rn(Yt(st({},zt),{resource_type:xn})),tabBarExtraContent:b.createElement(b.Fragment,null,b.createElement(Se.ZP,{type:"link",icon:b.createElement("i",{className:"iconfont icon-shangchuan3 font14"}),onClick:()=>{En(!0),rn(Yt(st({},zt),{resource_type:1}))}},"\u4E0A\u4F20\u8D44\u6E90"),b.createElement(Se.ZP,{type:"link",icon:b.createElement("i",{className:"iconfont icon-lianjie2 font14"}),onClick:()=>{Vt(!0),rn(Yt(st({},zt),{resource_type:2}))}},"\u6DFB\u52A0\u5916\u94FE")),dataSource:[{id:1,name:"\u8D44\u6E90"},{id:2,name:"\u5916\u94FE\u8D44\u6E90"}]}),b.createElement(Te.default,{className:"mt20",columns:on,dataSource:((be=nn==null?void 0:nn.data)==null?void 0:be.list)||[],locale:{emptyText:b.createElement(We.Z,null)},pagination:!1}),((ht=nn==null?void 0:nn.data)==null?void 0:ht.count)!=0&&b.createElement(ue.Z,{className:"mt20 mb20",wrap:!1,align:"middle",justify:"space-between"},b.createElement(et.Z,null,"\u5171\xA0",b.createElement("span",{style:{color:"#165DFF"}},((Le=nn==null?void 0:nn.data)==null?void 0:Le.count)||0),"\xA0\u6761\u6570\u636E"),b.createElement(et.Z,null,b.createElement(At.Z,{showSizeChanger:!1,showQuickJumper:!0,current:zt.page,pageSize:zt.limit,onChange:(xn,hn)=>rn(Yt(st({},zt),{page:xn,limit:hn})),total:((Ne=nn==null?void 0:nn.data)==null?void 0:Ne.count)||0})))),b.createElement(Je.Z,{title:"\u7F16\u8F91\u597D\u8BFE",form:pt,width:1200,open:Be,centered:!0,destroyOnClose:!0,dispatch:Qe,onCancel:()=>ft(!1),confirmLoading:Rt["virtualSpaces/putGoodLessonsDetail"],onOk:()=>pt.submit(),handleFinish:xn=>pe(void 0,null,function*(){const hn=yield Qe({type:"virtualSpaces/putGoodLessonsDetail",payload:st({virtual_spacesId:Ut,id:St},xn)});(hn==null?void 0:hn.status)==0&&(xe.ZP.success("\u4FEE\u6539\u6210\u529F"),ft(!1),vn())})}),b.createElement(Ie.default,{title:"\u6DFB\u52A0\u5916\u94FE\u8D44\u6E90",width:800,open:Dt,destroyOnClose:!0,onCancel:()=>{Vt(!1),Ve.resetFields()},confirmLoading:Rt["virtualSpaces/postAddLessonRes"],onOk:()=>Ve.submit()},b.createElement(fe.default,{form:Ve,initialValues:{},colon:!1,onFinish:xn=>pe(void 0,null,function*(){const hn=yield Qe({type:"virtualSpaces/postAddLessonRes",payload:Yt(st(st({},xn),zt),{virtual_module_id:window.localStorage.getItem("vtrsModuleId")})});(hn==null?void 0:hn.status)==0&&(xe.ZP.success("\u6DFB\u52A0\u6210\u529F"),Vt(!1),Ve.resetFields(),pn())})},b.createElement(fe.default.Item,{htmlFor:null,name:"name",label:"\u8D44\u6E90\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8D44\u6E90\u540D\u79F0"}]},b.createElement(lt.default,{placeholder:"\u8BF7\u8F93\u5165\u8D44\u6E90\u540D\u79F0",maxLength:60})),b.createElement(fe.default.Item,{htmlFor:null,name:"url",label:"\u8D44\u6E90\u94FE\u63A5",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u8D44\u6E90"},{type:"url",message:"\u8D44\u6E90\u94FE\u63A5\u683C\u5F0F\u4E0D\u6B63\u786E"}]},b.createElement(lt.default,{placeholder:"\u8BF7\u8F93\u5165\u94FE\u63A5\u8D44\u6E90",maxLength:150})))),b.createElement(Ie.default,{title:"\u4E0A\u4F20\u8D44\u6E90",width:665,open:un,destroyOnClose:!0,onCancel:()=>{En(!1),Ge.resetFields()},confirmLoading:Rt["virtualSpaces/postAddLessonRes"],onOk:()=>Ge.submit()},b.createElement(fe.default,{form:Ge,initialValues:{},layout:"vertical",onFinish:xn=>pe(void 0,null,function*(){var hn;xn.attachment_ids=((hn=xn==null?void 0:xn.attachment_ids)==null?void 0:hn.map(Wn=>{var ir;return(ir=Wn==null?void 0:Wn.response)==null?void 0:ir.id}))||[];const Zn=yield Qe({type:"virtualSpaces/postAddLessonRes",payload:Yt(st(st({},xn),zt),{virtual_module_id:window.localStorage.getItem("vtrsModuleId")})});(Zn==null?void 0:Zn.status)==0&&(xe.ZP.success("\u6DFB\u52A0\u6210\u529F"),En(!1),Ge.resetFields(),pn())})},b.createElement(fe.default.Item,{htmlFor:null,name:"attachment_ids",valuePropName:"fileList",rules:[{required:!0,message:"\u8BF7\u4E0A\u4F20\u56FE\u7247"}],getValueFromEvent:xn=>Array.isArray(xn)?xn:xn==null?void 0:xn.fileList},b.createElement(Ee.default,st({},Xt),b.createElement(it.op,{style:{borderRadius:"2px"},icon:b.createElement("i",{className:"iconfont icon-shangchuan3"})},"\u4E0A\u4F20\u6587\u4EF6"))),b.createElement("div",{className:"font12",style:{color:"#6B758B",lineHeight:"20px"}},b.createElement("div",null,"\u6CE8\u610F\uFF1A"),b.createElement("div",null,"1\u3001\u4E0A\u4F20\u6587\u4EF6\uFF0C\u5373\u8868\u60A8\u5DF2\u540C\u610F",b.createElement(ze.Link,{target:"_blank",to:"/users/mmipb3zhj/videos/protocol"},"\u4E0A\u4F20\u5185\u5BB9\u534F\u8BAE"),"\uFF0C\u4E0D\u5F97\u4E0A\u4F20\u672A\u7ECF\u4ED6\u4EBA\u6388\u6743\u7684\u4F5C\u54C1\uFF1B"),b.createElement("div",null,"2\u3001\u4E0D\u652F\u6301\u65AD\u70B9\u7EED\u4F20\uFF0C\u5355\u54E5\u6587\u4EF6\u5927\u5C0F\u8BF7\u52FF\u8D85\u8FC7500M"),b.createElement("div",null,"3\u3001\u4E00\u6B21\u6700\u591A\u4E0A\u4F2010\u4E2A\u6587\u4EF6"))))))};var en=(0,ze.connect)(({loading:Ot,globalSetting:ge,virtualSpaces:Ke,user:tt})=>({globalSetting:ge,loading:Ot.effects,virtualSpaces:Ke,user:tt}))(Lt)},16713:function(In,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Nt}});var b=ee(59301),ze="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAAAXNSR0IArs4c6QAAAzZJREFUaEPt2W1IE3EcB/Dv3dzUPTTbfFi5RuiCkjJ6AEt8oLRAKQl9EfSiICL0RS+KXkT4IoogEExMcBQRvYogyZKIwDcmlPUiZxYI2YO4czG3qTn35G4XNyhEc9vd5u5mt3dj/7v7f37f3/9ud0cwDCPDOvoQEkjkaUoJiTwg/H8J5Vu+XqHBXAID3Rqk45IR5L2HtUXX6swIJWP/MRPSW8Z9YCBPxsFW28fVgwWOyQBZ2lGmciZ6nNig7vGkVC7aRO/XmTDlCXnHZoPlnRU5nxJBiQbEItx+OjTsCDXdqdK84IsSFYhF+GkmPGRbuNxRrevkgxIdiEXQDMEMUR5LW8XGC1xRogSxCIIgmPd2b//NA9o6LijRgv4gRp2BMbVBs/eiEcF4YKIHsYjx2eA0RZO7b+9TOmKh0gLEIuwLtPezO1jZVakdiYYSBShW1Zf8bnW1mPevJxBcLeYMCbS0AvoU/PXh0HJSQiuKJSX0j/7RZ5Fw+cNcOmvVsYKdFAxKGa6X56LGpEROpgzzwTAGKS9a3zgx8Yv/HYkgoGKtHP1NRmzIXPnIzxcK43gvheHpAK/EBAGxmD35WXD6aNx454LV4ccOnQKtZXoYNXJ8n1tE2aMJ0Ax3U8pBm1UZGD29NTLTxj4KAzbf31mX6BQYPGmKfK95Mgkrj5RSDtqVq4ClxoD5II36XgrhZSlMnCuCWk7ifP9P9HzxcI4o5aBoM6wqzMbThsLIkCM9k/jg4L6ORAHarlOg0axGc2kOVHISww4/antsnNNhNxAcdGiLEo/rN0FGEhEA5QnhxHMK3+YW0xPUVpmHszu1CNIMuj/Ooss6A3cCF1nBE2qvzsOZEi1e/VjAqZd2Xqks3UhwkFGdAXYNsS3Gt81EBVKQQEWhEkN2H7whHlfSZZkKntDd2gI0bdNgwOZFY99U+rfcg6MGNBSr8XbKh2PPqPQHaeQEDptUeG3zYiaQ+C2E4C2XcCRiW0MSKEYFpJZbXiDpIUmyF03STwopeGkcdw0ILLqazdnRxsd8WL/Gr/XjtoCAWwai3dFcfCshUPxHFMfImAmJY5rxz0ICxV8rYUZKCQlT9/iP+htQKA9TYDw82QAAAABJRU5ErkJggg==",fe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAAAXNSR0IArs4c6QAAA+NJREFUaEPtmnlIFFEcx7/jrlnZoVYWlrFZ2F3qtrVBm0FlF2UF0fGPEXRZqWV22KEWJf1hIkX0TwRBZUSHFXZIoV2moFJRYmaY7uZupmbrrsceL97Clh3rzNZMs9W8f99v3vt+3vc7w8x7wxBCZPiHGiMBebibkkMebhD+T4fmXVsVbycklgDD+XRIEzQlb58qYR6fY7I6RGFshGTwOalzrKXD58NkMV9PDF+/hK/xWYHm5Kys4NuZzkC+8h7Qt9afSQrfuIYPKFagqJyVVj4m+tkY1CEKRJvOrM/cFbE56Xfn8hggMAx516Lfv1O5Kf13oDwHCAABsWtb6uKSJ8Wd/FUojwKiEATEWmvUr96j2pL9K1AeB0QhbMTeoTXpl+ydFHfbXSiPBKIQFrvVXNdqmLNHGV/oDpSoQAsUsxDg09el3g5iaTa0GGYkqxKec4USFWhCwGhMHDCmS62ttvYP70mjeu+4LdVcoEQF8mbkmDV0Ovp39+9Sq9naqmtob1AlKxPes0GJCkTFyYgXQv2GYUCPfujm5e1Sb0NbU/URzb4RHg/kFGi1WmC3dv1Skr/8qvyvAWITSvvvRJ+XgH5YKCFfTrm40rlGcuhnKyY55G6O3KiXIidFzo248FEqRU6KHB85cmMMQSM3PUiNIN+ByK7M+SJpzegVeNFYgSJDGTaNX42bb+/hzaeabyQP6hmIrWFrEdwrCG22duRrH+PsqyuwERsrmqBAckaGTE0aTpdfQGn9c6gHRmB5aDS2PzzgEJc6ORGXq3LxrKH8G6GH1Dvx4F0RbtXko7vMBwsUM3FP+whN7c3iAtHZqUPpU3cjveQ4todvwK7Hh/GhrdEhzBVQluYALr6+gYd1xawA3xcI6pBzsqihkdgWtg6pRRl4Yij9osEV0Cj/EYgdHwNfeU8U6ApxvTqPkzt/7PNht3Kz42tTZzIgo+zr/qArICexoncwIgerQTdKkh4dxFujltUxwR1aqJgNZeAEpBUfxUF1Egp0T5BXe7/LyH2vOmbUMrRYTLhUlSsuUKhfCHZExCL+/n6YrGb06dYbWZo0pBRnoMaoQ8rkbSjSl6Hy4xuH0OYOo+P+ovfQnZoClNQ/Qy9vXySGb8Cxp6fwsqlSXKCZQ6ah2qhFVfPX3aWxAaGO+OXrCqEKDHNEytno45s+9fx9+mJxyFwo+gTTsyHcrX2Aknpu226CR451SXkukID+i3c5IY8k3UkkA1Tdjj4/ku0a1p1TIQ+N2cR17pcxTOLNReey2K5hBaIDCHWszyaO9lNnvBjmBBcYR7308xKXZRWxRnJIxMXnNLXkEKdlErHoM3lAaVMM4OYsAAAAAElFTkSuQmCC",nt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAAAXNSR0IArs4c6QAABQBJREFUaEPtmmtoU2cYx//POc3pRVtte7K7G92YK1QHY/tQkbmi4hA/TOZyUp0oirWguNEJo8gu/bbJ3JVNhjJRmmKTbNBNd0FWkF2g0IGMUf0wGH5wF0napkubmEvfZ7xpUtqs5sT05LKZ8y3nvJfn9/yf93ne9yXEzCr+Rw+VgUpczbJCJS4Qbk+FAnv2rIiHw29CiCcB3GmRStfV6urN9WfOjFg0XmIYU4USMJOTlxhYbsXERBRjYBTMdxHRmKJpWxpcrmErxs4KyG8YZ5nZYdWEIJqsqq5+PBIKXWDgAflb0bStjS7XRSvmMFXIZxi/g9mqMIMEsHs8y8c7O++dHh+/wMyPgOiGYrO1N/b1nV8slDmQwxFf7CTz+ieB5Lupjg49HAh8zcBjBMRRUbFbP3vWvZj5igokDZ84cKAu6vefA/NaIhIgOqi73SdzhSo6UMLwnp5q38jIZwA2yZ+KonQ3ut3HcoEqDaAZKJvv8mUXmLclod5odLtfvVWo0gGSlp84ofgGB09CiN0JEEU5bne7X7gVqMIDASG711uXychRp/NdIcShRF1RFJe+YcNe7N8vsgErBhDU2tr7G06d+sMEqkcI8UoCimhAX7NmB7q6omZQRQEiVT2s9/e/b2ac3+nsYiHeSkJ9qzc1PYujR0OZ+hUFCECIqqq26L2932cBtRfMHzOzko0jigUkw0jWnE8J+JEBXyYwlpmPeRup6st6f/87paiQmTALfi8DLeQWn9V7uZy0melUVuj2VIhokpgT6ZaJFGKuZKIVYH4o5RAiGgfzULJNBYAaeXQn4EGZfuc6jgAG8E26M5noPjCvntc2H1mOiC7rHs+j8ixDQqg1uh6UxW58585N8WjUC+YlIPrB7vG0hTo775gGYrXNzVOyygc7O+sjgcARMB9kZi1ZMGO6x1MtjxEVsVjinXxCwWA7pqffKxiQzzB+BXPTzGqln211dc/Eg8HnWIhjKSC/YURSN7MEXCNF6a3S9Q9uTEy0cDQqT6uKvGOQQD6H46vU8eFmeSMvSSGl0DwguTFW1UOsab9wOHxxIaDZcAQu6S0t6/xXrvSwEIdLEkh6X1u6dH0sFNokhPgwE5AEkwc4rqwc5HB4OAXkdzp7wbxuVh3mJek3TXlVaHTXrpUqs0Y2W3DZ5s3XAgMDrfFYbICZ682ACPhcX7Vqh39k5G8AQoZcepiNOZ27p4X4pGBraLS9/W0W4h4AVWB+mIHm2cmTSWHuGkrLbOd1r3erzzAmCNAkkN/pdEGIp+aMUcPMywoGlL6G5nnYDEhVX7fV1vZGA4HfZteQYXwJ5qczbSTyGnK5AiWSSlNT6+jVq91CiCP/KSCfYfyZyOrMEQB/QVG+qLTbj0cmJlYjEpFp21aSWe5fYZIMuXnvvV51/Ny5lfFo9HkS4qX0wlrMOjTNgJ8Ae/o2Zs7WR17Ij82pPTYw1zNAC64RousE1KcgC1pYMy3afH/LS1LIt9EFz3JlIAs9YFXITQGotNCunIdSFOXFRrf7o4xhafbHC7/DMcTAEzlbYWFH0rT1el/fd4sD2r7dyfF4n4V25TQUEQ3rGzeuNbvjNr1olLP72tu7SYjXzOpETpZm04loSKup2bns9OmrZs2zApKDjHV03I1wuJXjcbvZoFZ9F0RRVVVHGvbt+wltbfLuwfTJGsh0pBJpUAYqESFuakZZobJCBfbAP/nAgWJ1139AAAAAAElFTkSuQmCC",Se="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAAAXNSR0IArs4c6QAAA19JREFUaEPtmltIFFEYx/+zs17WVVtZRUMhykLoKSjBBytKUCRCyKDIILpQUFHkiqT1YFJo5S1BQ4JKSPOlhwwLLH0oC0sK0iBEVqxcWW+r6bb3mRMzJm24Ojs6244187acb77z/33/bw+Hc4YihND4hx5KAZK5m4pDMjcI/6dDpsxN5wnDngZIspQOadKznuuv3M6WMqegQ3MwTKWUk87n0u7NA6Wi2nTnSnOkyi8INJyR3C+1M95AdEwsmMnxppj8q0ekgPIDaINHiol85eAc4oC4h5001+ryy/JXOpdsgCiKIsz4cInOcOPaSqBkAzQHQVj3qOmCvvBm3XKhZAbEN5+HHfl6TFdU3bwcKBkC8UwuxjySG1NU+UwslDyBuObzuGzEbMrWXap5LQYqqEARWfuhjk9cVC9xOWbU4+ad2uLqPn+hggoUsnkrNNvSl9RKnPaJ8LGRtLDLtUP+QAUViKhDoM3cB3VswpJaWbvVFGqZSI0orh4TggoqEL9Qq2iEpmwBHbcWqrCwRfUyE2NDcRWNG2UPNC+QeFiwLFlS77pXX9SrBkhIKDee1DGoAC0o1HBG4Dan/rjiHaM45KtiikNi+0hEvNJySsuJaBcpQpWWU1pOij4SkSOgLRd54CS/9ScMw0ty9fVguqEMcDkRfaIQmrRdICwLEAJHdydm7lcjPG03oo/OnVSpIiLB2qz8+FTFRbgHPgmiBRRIX9oA66O7cH58C0obhRhDGdzGz5htqkNc1UNM15Xyv1U6PfQl9bA+aYa94zEvmouPv/MU5kPbBSH+2tbHG4ibVJORg/DUHZgqN/wBxI1F5Z0BFRqGmXtV8gayd3fC3d8LOjYB0ccLMNvSAHtnKw9kbX0Az7dBqJPWY82pIljKDXD1vpM3EFd1xjIO4rTD8b4Ljq52XjAHxHy3gNhtIDYr7G9ewPnh9+HNqmg5717ngCzXC8CMmnz+RxSgX2UJ6Cqn3XMQjp6XYMZGFrgQmXsMP9paQBw236sYrUb04bOYaayRzyonSolEwQF1SCKNotIoQL43p4G7khRlDyhjUocxRegdwZPTQF4aC4nzHqdo2pDYPnBL6B1BIC5BoK71hcTNjVNGilbV+wPDRysfL/lX1qBFKQ4FrfR+Tqw45Gehghb2EzV0UlPSsDHCAAAAAElFTkSuQmCC",xe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAAAXNSR0IArs4c6QAAA0hJREFUaEPtmctLVFEcxz+30dDRXDiSWaDLSAUN0jAhTPFNJhIuotVI+cAHZJLgZhYFToSizsbX/QtEbaOtQkJDDYygRYtoISgqbbTwgQ43DrdhMB/3OjN3ulP3LM895/f7fc73d55XUhTFxj9UJAvI5GpaCplcIP5jhZ48ucTWVheKcg9FuRwWpSRpFUl6jcPxHLd7XY9PfQq1tFxne3saRUnSYzTkbSTpO3Z7OQMDH7VsawO5XBdYXv4MXNEyZvD3FVJTM3G5fpzmRxvo0aNneL0vDA5Wn3mbrYvhYXdwQE7nO+CWPo+Gt3qPLN8OFugnEGN4qPoc7CLL8cECHejzFaZWshxlAR0aAafTUsjQ5DMs5WpqoKAAenuhsBDy8/0csgznz8PDh/66mRmYn4f2doiOVuu/foWREejoAIdDrdvfh+lpmJw8flwMAxoagqgo2NqC7m548AAyM9UgvF7o74erV6Giwh/Y+DisrUFDA5w7p9YvLcHEBHR2QlycH6q+PsxAQgVfWV+Hnh5oaoK0NLV2dxdevoTiYsjL87cdHYXYWHUAfOXtW1hcPKye0/kXgYTrb99gcFBNn6TfR77NTXC71dRLT1cDPDiAvj7IyICyMn/QY2OwsaGqJ0lQVxdmoOPdGV9r2BwSk9k3D4zACHvKWUBnlNF0Cq2swNSUuueUlkJKytmITAcklue5ORVCzDWxCVdVQUKCPjDTAYklfGHhcPAxMVBZCSUl/tPCSXgRAeQLPjERamshN/dktSIKyIfR2grZ2cdDRSRQWxtkZf0DQOJkLVIuJyfCU04cSu/ehaKiCFwUxGl8dlZVwGaDO3fUZTv+1DcOv2Kmm0NiY33zRr3oiWU6OVnf/uNrZTqgs4V/tLUFpI6J9lPwSa8+4iTgexsIVo0/+4tL4OPHYb7gVVdDeXnoocQjiZh74p3huGLYBS/Uqui1ZwH9OVLWy6ne3AmwXQhSbhW4GKD7UHfbQJZP/b+rvWzX1Y2hKNWhjiwge5I0yejo/dP6agM1Nl5jb++DCX567WK338Dj+RIckOjd3JzFzs4r4CaKYg9odAPtJEnbwAKxsU/xeD5pmdFWSMuCyb5bQCYT5Eg4lkKWQmEegV/wVtNEQlRZ7wAAAABJRU5ErkJggg==",Ee="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAAAXNSR0IArs4c6QAABDNJREFUaEPtmXtsU1Ucx7+37bq1rGu7Rxndypjr6CozhkV8hKAs6AwJ8ZEAMkMQHxlEosPgI4qvf1hEo4n/EFEhOkXDNhSJkYfRkQyZJgQxwKJbtznLykbtXLvbduvjHnOuNlD3uC3cS69w75+9v/s738/5fs/JvacMIUSNa+hiFCCZu6k4JHODcP05dBRg6ttcW+KENBCCG8R0aFuN5ecGu3GRmD0FHSpucz0f50iTmIMmerXXzYUnFDtdZ521UKz+gkCWlh4XAeaJNeClfShQtSkbX7nZjvttubVijCEIVNTSExNjoKl6JIDovb2/j+1/aJ5h5ZWOJRsgAKS5179rXYVx45VAyQkIcQLyca9/+2N248uXCyUrIAoxwRHyUR/77Aa74d3LgZIdEIVgoxzZ3Rt49Okq06fpQskSiEL4JuJcc3/ggWeqzN+kA5VRoP1LS7DYop9W7/lwLNbcN1b7wgJzZ6pQGQV6ymHCqzcXzai1j41G9vwxUfPKjbm/pgKVUSC9Cti3tBS3FOpm1Nrlj4RazgWdry8wDwpBZRSIistmgA12IxYV6mDQTv/xfMI7fqGxOt8qe6CEQBKNg8TJjHp965ya/w2QkFB637u6UgGaNFFSvpym4sqlNYpDU82Y4lC6OUqjXomcErk04iJGqRI5JXJi5CiNHpJGrqHShPryPBACeMJRdHrD+KDHjwh38QXTkqPG1psK+LM3WnfcG8b2sz4EYxdrSvUavFhdAKcxG3FC0D4UwltdPkS5yaSSAjUvnoP3ukd5kVadhoermzMLK9rdvBhjlgrf3mPDttM+HHCzUDPAE5UmPGgzYPn3blDuEr0GX9eWYuspLw4OBpGlYrDZacZgKIY9/YFJRFcNKDFy08IiDLBR7OwZxUvVBfzPTWd8ScLev70YBwdZfOlmsePW2Tg5Mo4PXf6UgnfVgZZYdFhfYcTjnUPYd1cJ3ukawQ/ecJLYh8vz4MjT4rVf/sSPy8tQ3+FBPxuVJ9CyYj1WlRmw8adhfL7Eip3dozg6HEoS+0iFEXTd0Ch23DuXh+8OROQJtOuOYnw3FMJn/QE0Vpl54c+d9CaJbb3Tyq89WvdmTRFGIhze+E8sp6OTPHJHPEGc+mscVl0W1pQboFUxWHvsPK8nR83g0DIbv17aBsb4Bd8w34R8rRrrj/9TY9aqcPhuG1oHxvDFvzWbnfk44QtPua4kBbqvNBcrywygG7AnFOO37QPn2KTJ1akZbHKYcVthDj3i5bfk3S4//0ziytWosMlh4g9JxuMcDnuC+KRv8g5H6yUFSin0IhcpQNfFu5ylxfUbAakQOT1pt2PA9F5YbXcIPSh4cjq71dXIEfK2UCOp76sYZsvwKrvgf0aCQFQohSIET2bCKeoMw2BHKjBUa0pAUs++mP0VIDFnU4peikNSzKqYPa85h/4GTP+NU24sRsEAAAAASUVORK5CYII=",je="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAAAXNSR0IArs4c6QAABIRJREFUaEPtml1oHFUUx//nzswmaZNso0lTNNAUTGtb8UFb44v9MEQs1NYiQoqiRh/0RRCsCtqCFqFBSrX4JggRqk3yUB+qUCSE2hTMhxELokJiWo2xTZs1SROyn3OP7G52dtmd7M7O7qy7uvM4c885/9/93537MUvMrOA/dFEZqMjdLDtU5Abhf+7QWGcLdP/rYPkIGHeBVBXKmrhpodv2DCT8oXtm5+Syd1Srv/tt7Onz2ksEqw6NCYycegNSHgO4MlaMt74Hcm8xavPkGdDNr2xpCd28gdDfsxCatkCu6jbt6cEf7SSyNuRGDh+F5HeTC/B9J0HVTcZt+VsfxK1zdnQgBhQOJkUJiNo1u7SD332fbbLMQD907kTAOwhATQHafhJUkwA00Qsx+2W2GiLtE4EiUEIJKuvce9UDl4aySZgZaLijF4ynzJLyti5QbXPcofHPITzns6lvtE0GWnEqqFS729VDly5bTWoB6PA0mBvNEgaXq0Bag/FIVGmgjfsAiMg98s8Af/Za0mIGFIVSQ0rdHY+r+wcuWklkBSgA5qjCDJdctxfi3peNVqz7QaPPZwqLPNfnPAjOXDdtS4qqK+76feqB/oFMyTIDDXWEMiWJPZfuPRBbX7EFxIEAAtfGwZJNywnN5XNtaG5C27n5dHqKBigsUi4uIHjjL7Cum2pW3XUX1EOD+50DqmgAXPVGfn3ZBzQ9CaLoCOXFKSiePqsGR9tJCfb7TKFIiCv06PkHHQPi7V2gmvhbjid7wFfPhFEiNUnVQBXGPJwdmFlrwjJae2odBMrfPGSZ9uGelPkwMTan3xDncWItCiC55ThE3WZDi/y1G2L+gmVttho66ZB+2wvJa1d0MZSGFtDmF42JFb7roIkPbeleNchJoOSiucxDlqnLQMldVaCVQlE6pAfXguvbAKKovqVpqKGstzTp2Qo55CJKQuGl38p6TCiAsLSutWwQCg5kXZq9lo4C3bkLvPFZQE04KInJDC6Brn4KzI/aE75alJNAvO0EqHbTqoJ59gpo4kQJASUtfVLmJc/PEOPHy0Bpe8DRIZfgEMv4xpZEdEEsS9EhaNUIXXwJFJwzOpZd66G2dYMXJktvyPHSFMTvp1NGiWw5Ft7ilR4QpA/0y9EkIALf/xHY6yktILnpCETjDvD8T9EzuNhGorIpcuYtpwYgpj8pnbdcyOsCGtsBLbYnStDuXwDd6odSZX6CY5vSybdcbO3GLFP0RU5+1LTbf3tMjgPZk2U/Kmeg4Y4gGCv7Afs68haZM9BQR/jAOX4inzdlNhIRzaL17IZ0kVaOscIffJ6wUT7/IURfo/XswdyARp7bDQ70/+vDjsAQle3Y2Z32s0pmh8LdMfxMF1g/kv8uzyKjEKfw0BdvZoqwBnStW8PMN++D5WsACv3fIB1CnMb6x95B8wvB/ADFsox2PgDpfQug3WCOf3bIVMXO8/ALAPwtlIoPsOOzMasprDlklm3iYxU1fgdmTgCLFSHc86rlD22J8uwDWe2yArcrAxW4w7MuV3Yo6y4rcMA/JZNzUzMJvf0AAAAASUVORK5CYII=",Ie=Object.defineProperty,ue=Object.defineProperties,et=Object.getOwnPropertyDescriptors,Te=Object.getOwnPropertySymbols,At=Object.prototype.hasOwnProperty,lt=Object.prototype.propertyIsEnumerable,it=(Fe,Me,Xe)=>Me in Fe?Ie(Fe,Me,{enumerable:!0,configurable:!0,writable:!0,value:Xe}):Fe[Me]=Xe,We=(Fe,Me)=>{for(var Xe in Me||(Me={}))At.call(Me,Xe)&&it(Fe,Xe,Me[Xe]);if(Te)for(var Xe of Te(Me))lt.call(Me,Xe)&&it(Fe,Xe,Me[Xe]);return Fe},ke=(Fe,Me)=>ue(Fe,et(Me)),ot=(Fe,Me)=>{var Xe={};for(var Je in Fe)At.call(Fe,Je)&&Me.indexOf(Je)<0&&(Xe[Je]=Fe[Je]);if(Fe!=null&&Te)for(var Je of Te(Fe))Me.indexOf(Je)<0&<.call(Fe,Je)&&(Xe[Je]=Fe[Je]);return Xe},Nt=Fe=>{var Me=Fe,{fileName:Xe,width:Je=26}=Me,$t=ot(Me,["fileName","width"]);const ct=()=>{switch(Xe.split(".").pop().toLowerCase()){case"mp4":case"ram":case"avi":case"wmv":case"mov":case"mkv":case"flv":case"webm":case"m4v":case"rmvb":case"ts":case"vob":case"f4v":case"ogv":case"swf":case"asf":case"mpg":case"mpeg":case"3gp":case"3g2":case"m2ts":case"mts":return xe;case"zip":case"rar":case"7z":case"gz":case"tar":case"tgz":case"xz":case"z":return je;case"doc":case"docx":return Ee;case"ppt":case"pptx":return Se;case"xls":case"xlsx":return fe;case"pdf":return nt;default:return ze}};return b.createElement("img",ke(We({},$t),{width:Je,src:ct()}))}},20047:function(In,Qt,ee){"use strict";ee.d(Qt,{AL:function(){return Fe},Iy:function(){return et},Qv:function(){return lt},ez:function(){return Nt},jb:function(){return Te}});var b=ee(32834),ze=ee.n(b),fe=ee(11690),nt=ee.n(fe);let Se=1;function xe(ct,Ye){const rt=ct.match(/^(\s+)(?:```)/);if(rt===null)return Ye;const Ce=rt[1];return Ye.split(`
|
|
|
`).map(at=>{const _e=at.match(/^\s+/);if(_e===null)return at;const[de]=_e;return de.length>=Ce.length?at.slice(Ce.length):at}).join(`
|
|
|
`)}let Ee=[],je=["<ul>"];const Ie=new(ze()).Renderer,ue=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function et(){Ee.length=0,je=["<ul>"]}const Te={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function At(ct,Ye,rt,Ce){if(Ye>=ct.length||ct[Ye].level<=rt)return Ye;var at=ct[Ye];Ce.push("<li><a href='#"+Se+at.anchor+"'>"+at.text+"</a>"),Ye++;var _e=[];return Ye=At(ct,Ye,at.level,_e),_e.length>0&&(Ce.push("<ul>"),_e.forEach(function(de){Ce.push(de)}),Ce.push("</ul>")),Ce.push("</li>"),Ye=At(ct,Ye,rt,Ce),Ye}function lt(){return At(Ee,0,0,je),je.push("</ul>"),je.join("")}const it={heading(ct){const Ye=ue.exec(ct);if(Se+=1,Ye)return{type:"heading",raw:Ye[0],depth:Ye[1].length,text:Ye[2]}},fences(ct){const Ye=this.rules.block.fences.exec(ct);if(Ye){const rt=Ye[0];let Ce=xe(rt,Ye[3]||"");const at=Ye[2]?Ye[2].trim():Ye[2];if(["latex","katex","math"].indexOf(at)>=0){const _e=ot(),de=Ce;Ce=_e,yt[_e]={type:"block",expression:de}}return{type:"code",raw:rt,lang:at,text:Ce}}}},We=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let ke=0;const ot=()=>`__special_katext_id_${ke++}__`;let yt={};function Nt(){return yt}function Fe(){ke=0,yt={}}function Me(ct){return ct=ct.replace(We,(Ye,rt)=>{const Ce=ot();return yt[Ce]={type:"inline",expression:rt},Ce}),ct}const Xe=Ie.listitem;Ie.listitem=function(ct){return Xe(Me(ct))};const Je=Ie.paragraph;Ie.paragraph=function(ct){return Je(Me(ct))};const $t=Ie.tablecell;Ie.tablecell=function(ct,Ye){return $t(Me(ct),Ye)},Ie.code=function(ct,Ye,rt){const Ce=(Ye||"").match(/\S*/)[0];return Ce?["latex","katex","math"].indexOf(Ce)>=0?`<p class='editormd-tex'>${ct}</p>`:`<pre class="prettyprint linenums"><code class="language-${Ye}">${rt?ct:(0,fe.escape)(ct,!0)}</code></pre>
|
|
|
`:'<pre class="prettyprint linenums"><code>'+(rt?ct:(0,fe.escape)(ct,!0))+"</code></pre>"},Ie.heading=function(ct,Ye,rt){let Ce=this.options.headerPrefix+rt.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return Ee.push({anchor:Ce,level:Ye,text:ct}),"<h"+Ye+' id="'+Se+Ce+'">'+ct+"</h"+Ye+">"},ze().setOptions({silent:!0,gfm:!0,pedantic:!1}),ze().use({tokenizer:it,renderer:Ie}),Qt.ZP=ze()},9981:function(In,Qt){"use strict";const ee=function(){const b=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let ze=1;ze<arguments.length;ze++){const fe=ze<0||arguments.length<=ze?void 0:arguments[ze];fe&&Object.keys(fe).forEach(nt=>{const Se=fe[nt];Se!==void 0&&(b[nt]=Se)})}return b};Qt.Z=ee},86013:function(In,Qt,ee){"use strict";var b=ee(59301),ze=ee(19248);const fe=nt=>{let Se;return typeof nt=="object"&&(nt!=null&&nt.clearIcon)?Se=nt:nt&&(Se={clearIcon:b.createElement(ze.Z,null)}),Se};Qt.Z=fe},97224:function(In,Qt,ee){"use strict";ee.d(Qt,{F:function(){return b}});function b(fe){return fe!=null&&fe===fe.window}const ze=fe=>{var nt,Se;if(typeof window=="undefined")return 0;let xe=0;return b(fe)?xe=fe.pageYOffset:fe instanceof Document?xe=fe.documentElement.scrollTop:(fe instanceof HTMLElement||fe)&&(xe=fe.scrollTop),fe&&!b(fe)&&typeof xe!="number"&&(xe=(Se=((nt=fe.ownerDocument)!==null&&nt!==void 0?nt:fe).documentElement)===null||Se===void 0?void 0:Se.scrollTop),xe};Qt.Z=ze},83010:function(In,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return nt}});var b=ee(16089);function ze(Se,xe,Ee,je){const Ie=Ee-xe;return Se/=je/2,Se<1?Ie/2*Se*Se*Se+xe:Ie/2*((Se-=2)*Se*Se+2)+xe}var fe=ee(97224);function nt(Se){let xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:Ee=()=>window,callback:je,duration:Ie=450}=xe,ue=Ee(),et=(0,fe.Z)(ue),Te=Date.now(),At=()=>{const it=Date.now()-Te,We=ze(it>Ie?Ie:it,et,Se,Ie);(0,fe.F)(ue)?ue.scrollTo(window.pageXOffset,We):ue instanceof Document||ue.constructor.name==="HTMLDocument"?ue.documentElement.scrollTop=We:ue.scrollTop=We,it<Ie?(0,b.Z)(At):typeof je=="function"&&je()};(0,b.Z)(At)}},62673:function(In,Qt,ee){"use strict";ee.d(Qt,{default:function(){return ct}});var b=ee(59301),ze=ee(92310),fe=ee.n(ze),nt=ee(16632),Se=ee(8654),xe=ee(12919),Ee=ee(63872),je=ee(48755),Ie=ee(2171),ue=ee(83397),et=ee(56553),At=b.createContext(null),lt=ee(36170),it=ee(74632),We=function(Ye,rt){var Ce={};for(var at in Ye)Object.prototype.hasOwnProperty.call(Ye,at)&&rt.indexOf(at)<0&&(Ce[at]=Ye[at]);if(Ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _e=0,at=Object.getOwnPropertySymbols(Ye);_e<at.length;_e++)rt.indexOf(at[_e])<0&&Object.prototype.propertyIsEnumerable.call(Ye,at[_e])&&(Ce[at[_e]]=Ye[at[_e]]);return Ce};const ke=(Ye,rt)=>{var Ce;const{prefixCls:at,className:_e,rootClassName:de,children:Et,indeterminate:He=!1,style:st,onMouseEnter:Yt,onMouseLeave:Oe,skipGroup:pe=!1,disabled:Lt}=Ye,en=We(Ye,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:Ot,direction:ge,checkbox:Ke}=b.useContext(je.E_),tt=b.useContext(At),{isFormItemInput:Wt}=b.useContext(et.aM),qe=b.useContext(Ie.Z),Rt=(Ce=(tt==null?void 0:tt.disabled)||Lt)!==null&&Ce!==void 0?Ce:qe,Qe=b.useRef(en.value),tn=b.useRef(null),gt=(0,Se.sQ)(rt,tn);b.useEffect(()=>{tt==null||tt.registerValue(en.value)},[]),b.useEffect(()=>{if(!pe)return en.value!==Qe.current&&(tt==null||tt.cancelValue(Qe.current),tt==null||tt.registerValue(en.value),Qe.current=en.value),()=>tt==null?void 0:tt.cancelValue(en.value)},[en.value]),b.useEffect(()=>{var Ne;!((Ne=tn.current)===null||Ne===void 0)&&Ne.input&&(tn.current.input.indeterminate=He)},[He]);const ae=Ot("checkbox",at),ne=(0,ue.Z)(ae),[te,oe,ce]=(0,lt.ZP)(ae,ne),re=Object.assign({},en);tt&&!pe&&(re.onChange=function(){en.onChange&&en.onChange.apply(en,arguments),tt.toggleOption&&tt.toggleOption({label:Et,value:en.value})},re.name=tt.name,re.checked=tt.value.includes(en.value));const le=fe()(`${ae}-wrapper`,{[`${ae}-rtl`]:ge==="rtl",[`${ae}-wrapper-checked`]:re.checked,[`${ae}-wrapper-disabled`]:Rt,[`${ae}-wrapper-in-form-item`]:Wt},Ke==null?void 0:Ke.className,_e,de,ce,ne,oe),be=fe()({[`${ae}-indeterminate`]:He},Ee.A,oe),[ht,Le]=(0,it.Z)(re.onClick);return te(b.createElement(xe.Z,{component:"Checkbox",disabled:Rt},b.createElement("label",{className:le,style:Object.assign(Object.assign({},Ke==null?void 0:Ke.style),st),onMouseEnter:Yt,onMouseLeave:Oe,onClick:ht},b.createElement(nt.Z,Object.assign({},re,{onClick:Le,prefixCls:ae,className:be,disabled:Rt,ref:gt})),Et!==void 0&&b.createElement("span",{className:`${ae}-label`},Et))))};var yt=b.forwardRef(ke),Nt=ee(77654),Fe=ee(2738),Me=function(Ye,rt){var Ce={};for(var at in Ye)Object.prototype.hasOwnProperty.call(Ye,at)&&rt.indexOf(at)<0&&(Ce[at]=Ye[at]);if(Ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _e=0,at=Object.getOwnPropertySymbols(Ye);_e<at.length;_e++)rt.indexOf(at[_e])<0&&Object.prototype.propertyIsEnumerable.call(Ye,at[_e])&&(Ce[at[_e]]=Ye[at[_e]]);return Ce},Je=b.forwardRef((Ye,rt)=>{const{defaultValue:Ce,children:at,options:_e=[],prefixCls:de,className:Et,rootClassName:He,style:st,onChange:Yt}=Ye,Oe=Me(Ye,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:pe,direction:Lt}=b.useContext(je.E_),[en,Ot]=b.useState(Oe.value||Ce||[]),[ge,Ke]=b.useState([]);b.useEffect(()=>{"value"in Oe&&Ot(Oe.value||[])},[Oe.value]);const tt=b.useMemo(()=>_e.map(be=>typeof be=="string"||typeof be=="number"?{label:be,value:be}:be),[_e]),Wt=be=>{Ke(ht=>ht.filter(Le=>Le!==be))},qe=be=>{Ke(ht=>[].concat((0,Nt.Z)(ht),[be]))},Rt=be=>{const ht=en.indexOf(be.value),Le=(0,Nt.Z)(en);ht===-1?Le.push(be.value):Le.splice(ht,1),"value"in Oe||Ot(Le),Yt==null||Yt(Le.filter(Ne=>ge.includes(Ne)).sort((Ne,Ve)=>{const Ge=tt.findIndex(we=>we.value===Ne),pt=tt.findIndex(we=>we.value===Ve);return Ge-pt}))},Qe=pe("checkbox",de),tn=`${Qe}-group`,gt=(0,ue.Z)(Qe),[ae,ne,te]=(0,lt.ZP)(Qe,gt),oe=(0,Fe.Z)(Oe,["value","disabled"]),ce=_e.length?tt.map(be=>b.createElement(yt,{prefixCls:Qe,key:be.value.toString(),disabled:"disabled"in be?be.disabled:Oe.disabled,value:be.value,checked:en.includes(be.value),onChange:be.onChange,className:`${tn}-item`,style:be.style,title:be.title,id:be.id,required:be.required},be.label)):at,re={toggleOption:Rt,value:en,disabled:Oe.disabled,name:Oe.name,registerValue:qe,cancelValue:Wt},le=fe()(tn,{[`${tn}-rtl`]:Lt==="rtl"},Et,He,te,gt,ne);return ae(b.createElement("div",Object.assign({className:le,style:st},oe,{ref:rt}),b.createElement(At.Provider,{value:re},ce)))});const $t=yt;$t.Group=Je,$t.__ANT_CHECKBOX=!0;var ct=$t},36170:function(In,Qt,ee){"use strict";ee.d(Qt,{C2:function(){return xe}});var b=ee(36237),ze=ee(63356),fe=ee(51636),nt=ee(16931);const Se=Ee=>{const{checkboxCls:je}=Ee,Ie=`${je}-wrapper`;return[{[`${je}-group`]:Object.assign(Object.assign({},(0,ze.Wf)(Ee)),{display:"inline-flex",flexWrap:"wrap",columnGap:Ee.marginXS,[`> ${Ee.antCls}-row`]:{flex:1}}),[Ie]:Object.assign(Object.assign({},(0,ze.Wf)(Ee)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${Ie}`]:{marginInlineStart:0},[`&${Ie}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[je]:Object.assign(Object.assign({},(0,ze.Wf)(Ee)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Ee.borderRadiusSM,alignSelf:"center",[`${je}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${je}-inner`]:Object.assign({},(0,ze.oN)(Ee))},[`${je}-inner`]:{boxSizing:"border-box",display:"block",width:Ee.checkboxSize,height:Ee.checkboxSize,direction:"ltr",backgroundColor:Ee.colorBgContainer,border:`${(0,b.unit)(Ee.lineWidth)} ${Ee.lineType} ${Ee.colorBorder}`,borderRadius:Ee.borderRadiusSM,borderCollapse:"separate",transition:`all ${Ee.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:Ee.calc(Ee.checkboxSize).div(14).mul(5).equal(),height:Ee.calc(Ee.checkboxSize).div(14).mul(8).equal(),border:`${(0,b.unit)(Ee.lineWidthBold)} solid ${Ee.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${Ee.motionDurationFast} ${Ee.motionEaseInBack}, opacity ${Ee.motionDurationFast}`}},"& + span":{paddingInlineStart:Ee.paddingXS,paddingInlineEnd:Ee.paddingXS}})},{[`
|
|
|
${Ie}:not(${Ie}-disabled),
|
|
|
${je}:not(${je}-disabled)
|
|
|
`]:{[`&:hover ${je}-inner`]:{borderColor:Ee.colorPrimary}},[`${Ie}:not(${Ie}-disabled)`]:{[`&:hover ${je}-checked:not(${je}-disabled) ${je}-inner`]:{backgroundColor:Ee.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${je}-checked:not(${je}-disabled):after`]:{borderColor:Ee.colorPrimaryHover}}},{[`${je}-checked`]:{[`${je}-inner`]:{backgroundColor:Ee.colorPrimary,borderColor:Ee.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${Ee.motionDurationMid} ${Ee.motionEaseOutBack} ${Ee.motionDurationFast}`}}},[`
|
|
|
${Ie}-checked:not(${Ie}-disabled),
|
|
|
${je}-checked:not(${je}-disabled)
|
|
|
`]:{[`&:hover ${je}-inner`]:{backgroundColor:Ee.colorPrimaryHover,borderColor:"transparent"}}},{[je]:{"&-indeterminate":{[`${je}-inner`]:{backgroundColor:`${Ee.colorBgContainer} !important`,borderColor:`${Ee.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:Ee.calc(Ee.fontSizeLG).div(2).equal(),height:Ee.calc(Ee.fontSizeLG).div(2).equal(),backgroundColor:Ee.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${je}-inner`]:{backgroundColor:`${Ee.colorBgContainer} !important`,borderColor:`${Ee.colorPrimary} !important`}}}},{[`${Ie}-disabled`]:{cursor:"not-allowed"},[`${je}-disabled`]:{[`&, ${je}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${je}-inner`]:{background:Ee.colorBgContainerDisabled,borderColor:Ee.colorBorder,"&:after":{borderColor:Ee.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Ee.colorTextDisabled},[`&${je}-indeterminate ${je}-inner::after`]:{background:Ee.colorTextDisabled}}}]};function xe(Ee,je){const Ie=(0,fe.mergeToken)(je,{checkboxCls:`.${Ee}`,checkboxSize:je.controlInteractiveSize});return[Se(Ie)]}Qt.ZP=(0,nt.I$)("Checkbox",(Ee,je)=>{let{prefixCls:Ie}=je;return[xe(Ie,Ee)]})},38406:function(In,Qt,ee){"use strict";var b=ee(59301),ze=ee(48755),fe=ee(584);const nt=Se=>{const{componentName:xe}=Se,{getPrefixCls:Ee}=(0,b.useContext)(ze.E_),je=Ee("empty");switch(xe){case"Table":case"List":return b.createElement(fe.Z,{image:fe.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return b.createElement(fe.Z,{image:fe.Z.PRESENTED_IMAGE_SIMPLE,className:`${je}-small`});case"Table.filter":return null;default:return b.createElement(fe.Z,null)}};Qt.Z=nt},36207:function(In,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return ht}});var b=ee(59301),ze=ee(92310),fe=ee.n(ze),nt=ee(85899),Se=ee(72190),xe=ee(43403),Ee=ee(34280),je=b.createContext(null),Ie=b.createContext({}),ue=je,et=ee(18642),Te=ee(60499),At=ee(77900),lt=ee(10228),it=ee(26112),We=ee(42244),ke=ee(8654),ot=["prefixCls","className","containerRef"],yt=function(Ne){var Ve=Ne.prefixCls,Ge=Ne.className,pt=Ne.containerRef,we=(0,We.Z)(Ne,ot),De=b.useContext(Ie),Zt=De.panel,Tt=(0,ke.x1)(Zt,pt);return b.createElement("div",(0,Te.Z)({className:fe()("".concat(Ve,"-content"),Ge),role:"dialog",ref:Tt},(0,it.Z)(Ne,{aria:!0}),{"aria-modal":"true"},we))},Nt=yt,Fe=ee(48736);function Me(Le){return typeof Le=="string"&&String(Number(Le))===Le?((0,Fe.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(Le)):Le}function Xe(Le){warning(!("wrapperClassName"in Le),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!Le.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var Je={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function $t(Le,Ne){var Ve,Ge,pt,we=Le.prefixCls,De=Le.open,Zt=Le.placement,Tt=Le.inline,nn=Le.push,Ut=Le.forceRender,St=Le.autoFocus,an=Le.keyboard,_t=Le.classNames,$e=Le.rootClassName,mt=Le.rootStyle,jt=Le.zIndex,Jt=Le.className,Be=Le.id,ft=Le.style,Dt=Le.motion,Vt=Le.width,un=Le.height,En=Le.children,Mn=Le.mask,Fn=Le.maskClosable,gn=Le.maskMotion,kn=Le.maskClassName,dn=Le.maskStyle,zt=Le.afterOpenChange,rn=Le.onClose,on=Le.onMouseEnter,Xt=Le.onMouseOver,vn=Le.onMouseLeave,pn=Le.onClick,wn=Le.onKeyDown,$n=Le.onKeyUp,xn=Le.styles,hn=Le.drawerRender,Zn=b.useRef(),Wn=b.useRef(),ir=b.useRef();b.useImperativeHandle(Ne,function(){return Zn.current});var tr=function(xt){var wt=xt.keyCode,Ft=xt.shiftKey;switch(wt){case lt.Z.TAB:{if(wt===lt.Z.TAB){if(!Ft&&document.activeElement===ir.current){var Tn;(Tn=Wn.current)===null||Tn===void 0||Tn.focus({preventScroll:!0})}else if(Ft&&document.activeElement===Wn.current){var On;(On=ir.current)===null||On===void 0||On.focus({preventScroll:!0})}}break}case lt.Z.ESC:{rn&&an&&(xt.stopPropagation(),rn(xt));break}}};b.useEffect(function(){if(De&&St){var Ct;(Ct=Zn.current)===null||Ct===void 0||Ct.focus({preventScroll:!0})}},[De]);var sn=b.useState(!1),yn=(0,Se.Z)(sn,2),zn=yn[0],Hn=yn[1],ut=b.useContext(ue),Pt;typeof nn=="boolean"?Pt=nn?{}:{distance:0}:Pt=nn||{};var Re=(Ve=(Ge=(pt=Pt)===null||pt===void 0?void 0:pt.distance)!==null&&Ge!==void 0?Ge:ut==null?void 0:ut.pushDistance)!==null&&Ve!==void 0?Ve:180,vt=b.useMemo(function(){return{pushDistance:Re,push:function(){Hn(!0)},pull:function(){Hn(!1)}}},[Re]);b.useEffect(function(){if(De){var Ct;ut==null||(Ct=ut.push)===null||Ct===void 0||Ct.call(ut)}else{var xt;ut==null||(xt=ut.pull)===null||xt===void 0||xt.call(ut)}},[De]),b.useEffect(function(){return function(){var Ct;ut==null||(Ct=ut.pull)===null||Ct===void 0||Ct.call(ut)}},[]);var Ze=Mn&&b.createElement(At.default,(0,Te.Z)({key:"mask"},gn,{visible:De}),function(Ct,xt){var wt=Ct.className,Ft=Ct.style;return b.createElement("div",{className:fe()("".concat(we,"-mask"),wt,_t==null?void 0:_t.mask,kn),style:(0,nt.Z)((0,nt.Z)((0,nt.Z)({},Ft),dn),xn==null?void 0:xn.mask),onClick:Fn&&De?rn:void 0,ref:xt})}),bt=typeof Dt=="function"?Dt(Zt):Dt,Pe={};if(zn&&Re)switch(Zt){case"top":Pe.transform="translateY(".concat(Re,"px)");break;case"bottom":Pe.transform="translateY(".concat(-Re,"px)");break;case"left":Pe.transform="translateX(".concat(Re,"px)");break;default:Pe.transform="translateX(".concat(-Re,"px)");break}Zt==="left"||Zt==="right"?Pe.width=Me(Vt):Pe.height=Me(un);var It={onMouseEnter:on,onMouseOver:Xt,onMouseLeave:vn,onClick:pn,onKeyDown:wn,onKeyUp:$n},Bt=b.createElement(At.default,(0,Te.Z)({key:"panel"},bt,{visible:De,forceRender:Ut,onVisibleChanged:function(xt){zt==null||zt(xt)},removeOnLeave:!1,leavedClassName:"".concat(we,"-content-wrapper-hidden")}),function(Ct,xt){var wt=Ct.className,Ft=Ct.style,Tn=b.createElement(Nt,(0,Te.Z)({id:Be,containerRef:xt,prefixCls:we,className:fe()(Jt,_t==null?void 0:_t.content),style:(0,nt.Z)((0,nt.Z)({},ft),xn==null?void 0:xn.content)},(0,it.Z)(Le,{aria:!0}),It),En);return b.createElement("div",(0,Te.Z)({className:fe()("".concat(we,"-content-wrapper"),_t==null?void 0:_t.wrapper,wt),style:(0,nt.Z)((0,nt.Z)((0,nt.Z)({},Pe),Ft),xn==null?void 0:xn.wrapper)},(0,it.Z)(Le,{data:!0})),hn?hn(Tn):Tn)}),Kt=(0,nt.Z)({},mt);return jt&&(Kt.zIndex=jt),b.createElement(ue.Provider,{value:vt},b.createElement("div",{className:fe()(we,"".concat(we,"-").concat(Zt),$e,(0,et.Z)((0,et.Z)({},"".concat(we,"-open"),De),"".concat(we,"-inline"),Tt)),style:Kt,tabIndex:-1,ref:Zn,onKeyDown:tr},Ze,b.createElement("div",{tabIndex:0,ref:Wn,style:Je,"aria-hidden":"true","data-sentinel":"start"}),Bt,b.createElement("div",{tabIndex:0,ref:ir,style:Je,"aria-hidden":"true","data-sentinel":"end"})))}var ct=b.forwardRef($t),Ye=ct,rt=function(Ne){var Ve=Ne.open,Ge=Ve===void 0?!1:Ve,pt=Ne.prefixCls,we=pt===void 0?"rc-drawer":pt,De=Ne.placement,Zt=De===void 0?"right":De,Tt=Ne.autoFocus,nn=Tt===void 0?!0:Tt,Ut=Ne.keyboard,St=Ut===void 0?!0:Ut,an=Ne.width,_t=an===void 0?378:an,$e=Ne.mask,mt=$e===void 0?!0:$e,jt=Ne.maskClosable,Jt=jt===void 0?!0:jt,Be=Ne.getContainer,ft=Ne.forceRender,Dt=Ne.afterOpenChange,Vt=Ne.destroyOnClose,un=Ne.onMouseEnter,En=Ne.onMouseOver,Mn=Ne.onMouseLeave,Fn=Ne.onClick,gn=Ne.onKeyDown,kn=Ne.onKeyUp,dn=Ne.panelRef,zt=b.useState(!1),rn=(0,Se.Z)(zt,2),on=rn[0],Xt=rn[1],vn=b.useState(!1),pn=(0,Se.Z)(vn,2),wn=pn[0],$n=pn[1];(0,Ee.Z)(function(){$n(!0)},[]);var xn=wn?Ge:!1,hn=b.useRef(),Zn=b.useRef();(0,Ee.Z)(function(){xn&&(Zn.current=document.activeElement)},[xn]);var Wn=function(zn){var Hn;if(Xt(zn),Dt==null||Dt(zn),!zn&&Zn.current&&!((Hn=hn.current)!==null&&Hn!==void 0&&Hn.contains(Zn.current))){var ut;(ut=Zn.current)===null||ut===void 0||ut.focus({preventScroll:!0})}},ir=b.useMemo(function(){return{panel:dn}},[dn]);if(!ft&&!on&&!xn&&Vt)return null;var tr={onMouseEnter:un,onMouseOver:En,onMouseLeave:Mn,onClick:Fn,onKeyDown:gn,onKeyUp:kn},sn=(0,nt.Z)((0,nt.Z)({},Ne),{},{open:xn,prefixCls:we,placement:Zt,autoFocus:nn,keyboard:St,width:_t,mask:mt,maskClosable:Jt,inline:Be===!1,afterOpenChange:Wn,ref:hn},tr);return b.createElement(Ie.Provider,{value:ir},b.createElement(xe.Z,{open:xn||ft||on,autoDestroy:!1,getContainer:Be,autoLock:mt&&(xn||on)},b.createElement(Ye,sn)))},Ce=rt,at=Ce,_e=ee(62487),de=ee(75030),Et=ee(86641),He=ee(55743),st=ee(48755),Yt=ee(91190),Oe=ee(78776),pe=ee(458),en=Le=>{var Ne,Ve;const{prefixCls:Ge,title:pt,footer:we,extra:De,loading:Zt,onClose:Tt,headerStyle:nn,bodyStyle:Ut,footerStyle:St,children:an,classNames:_t,styles:$e}=Le,mt=(0,st.dj)("drawer"),jt=b.useCallback(Vt=>b.createElement("button",{type:"button",onClick:Tt,"aria-label":"Close",className:`${Ge}-close`},Vt),[Tt]),[Jt,Be]=(0,Oe.Z)((0,Oe.w)(Le),(0,Oe.w)(mt),{closable:!0,closeIconRender:jt}),ft=b.useMemo(()=>{var Vt,un;return!pt&&!Jt?null:b.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(Vt=mt.styles)===null||Vt===void 0?void 0:Vt.header),nn),$e==null?void 0:$e.header),className:fe()(`${Ge}-header`,{[`${Ge}-header-close-only`]:Jt&&!pt&&!De},(un=mt.classNames)===null||un===void 0?void 0:un.header,_t==null?void 0:_t.header)},b.createElement("div",{className:`${Ge}-header-title`},Be,pt&&b.createElement("div",{className:`${Ge}-title`},pt)),De&&b.createElement("div",{className:`${Ge}-extra`},De))},[Jt,Be,De,nn,Ge,pt]),Dt=b.useMemo(()=>{var Vt,un;if(!we)return null;const En=`${Ge}-footer`;return b.createElement("div",{className:fe()(En,(Vt=mt.classNames)===null||Vt===void 0?void 0:Vt.footer,_t==null?void 0:_t.footer),style:Object.assign(Object.assign(Object.assign({},(un=mt.styles)===null||un===void 0?void 0:un.footer),St),$e==null?void 0:$e.footer)},we)},[we,St,Ge]);return b.createElement(b.Fragment,null,ft,b.createElement("div",{className:fe()(`${Ge}-body`,_t==null?void 0:_t.body,(Ne=mt.classNames)===null||Ne===void 0?void 0:Ne.body),style:Object.assign(Object.assign(Object.assign({},(Ve=mt.styles)===null||Ve===void 0?void 0:Ve.body),Ut),$e==null?void 0:$e.body)},Zt?b.createElement(pe.Z,{active:!0,title:!1,paragraph:{rows:5},className:`${Ge}-body-skeleton`}):an),Dt)},Ot=ee(36237),ge=ee(63356),Ke=ee(16931),tt=ee(51636);const Wt=Le=>{const Ne="100%";return{left:`translateX(-${Ne})`,right:`translateX(${Ne})`,top:`translateY(-${Ne})`,bottom:`translateY(${Ne})`}[Le]},qe=(Le,Ne)=>({"&-enter, &-appear":Object.assign(Object.assign({},Le),{"&-active":Ne}),"&-leave":Object.assign(Object.assign({},Ne),{"&-active":Le})}),Rt=(Le,Ne)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${Ne}`}}},qe({opacity:Le},{opacity:1})),Qe=(Le,Ne)=>[Rt(.7,Ne),qe({transform:Wt(Le)},{transform:"none"})];var gt=Le=>{const{componentCls:Ne,motionDurationSlow:Ve}=Le;return{[Ne]:{[`${Ne}-mask-motion`]:Rt(0,Ve),[`${Ne}-panel-motion`]:["left","right","top","bottom"].reduce((Ge,pt)=>Object.assign(Object.assign({},Ge),{[`&-${pt}`]:Qe(pt,Ve)}),{})}}};const ae=Le=>{const{borderRadiusSM:Ne,componentCls:Ve,zIndexPopup:Ge,colorBgMask:pt,colorBgElevated:we,motionDurationSlow:De,motionDurationMid:Zt,paddingXS:Tt,padding:nn,paddingLG:Ut,fontSizeLG:St,lineHeightLG:an,lineWidth:_t,lineType:$e,colorSplit:mt,marginXS:jt,colorIcon:Jt,colorIconHover:Be,colorBgTextHover:ft,colorBgTextActive:Dt,colorText:Vt,fontWeightStrong:un,footerPaddingBlock:En,footerPaddingInline:Mn,calc:Fn}=Le,gn=`${Ve}-content-wrapper`;return{[Ve]:{position:"fixed",inset:0,zIndex:Ge,pointerEvents:"none",color:Vt,"&-pure":{position:"relative",background:we,display:"flex",flexDirection:"column",[`&${Ve}-left`]:{boxShadow:Le.boxShadowDrawerLeft},[`&${Ve}-right`]:{boxShadow:Le.boxShadowDrawerRight},[`&${Ve}-top`]:{boxShadow:Le.boxShadowDrawerUp},[`&${Ve}-bottom`]:{boxShadow:Le.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${Ve}-mask`]:{position:"absolute",inset:0,zIndex:Ge,background:pt,pointerEvents:"auto"},[gn]:{position:"absolute",zIndex:Ge,maxWidth:"100vw",transition:`all ${De}`,"&-hidden":{display:"none"}},[`&-left > ${gn}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:Le.boxShadowDrawerLeft},[`&-right > ${gn}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:Le.boxShadowDrawerRight},[`&-top > ${gn}`]:{top:0,insetInline:0,boxShadow:Le.boxShadowDrawerUp},[`&-bottom > ${gn}`]:{bottom:0,insetInline:0,boxShadow:Le.boxShadowDrawerDown},[`${Ve}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:we,pointerEvents:"auto"},[`${Ve}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${(0,Ot.unit)(nn)} ${(0,Ot.unit)(Ut)}`,fontSize:St,lineHeight:an,borderBottom:`${(0,Ot.unit)(_t)} ${$e} ${mt}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${Ve}-extra`]:{flex:"none"},[`${Ve}-close`]:Object.assign({display:"inline-flex",width:Fn(St).add(Tt).equal(),height:Fn(St).add(Tt).equal(),borderRadius:Ne,justifyContent:"center",alignItems:"center",marginInlineEnd:jt,color:Jt,fontWeight:un,fontSize:St,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${Zt}`,textRendering:"auto","&:hover":{color:Be,backgroundColor:ft,textDecoration:"none"},"&:active":{backgroundColor:Dt}},(0,ge.Qy)(Le)),[`${Ve}-title`]:{flex:1,margin:0,fontWeight:Le.fontWeightStrong,fontSize:St,lineHeight:an},[`${Ve}-body`]:{flex:1,minWidth:0,minHeight:0,padding:Ut,overflow:"auto",[`${Ve}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${Ve}-footer`]:{flexShrink:0,padding:`${(0,Ot.unit)(En)} ${(0,Ot.unit)(Mn)}`,borderTop:`${(0,Ot.unit)(_t)} ${$e} ${mt}`},"&-rtl":{direction:"rtl"}}}},ne=Le=>({zIndexPopup:Le.zIndexPopupBase,footerPaddingBlock:Le.paddingXS,footerPaddingInline:Le.padding});var te=(0,Ke.I$)("Drawer",Le=>{const Ne=(0,tt.mergeToken)(Le,{});return[ae(Ne),gt(Ne)]},ne),oe=function(Le,Ne){var Ve={};for(var Ge in Le)Object.prototype.hasOwnProperty.call(Le,Ge)&&Ne.indexOf(Ge)<0&&(Ve[Ge]=Le[Ge]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pt=0,Ge=Object.getOwnPropertySymbols(Le);pt<Ge.length;pt++)Ne.indexOf(Ge[pt])<0&&Object.prototype.propertyIsEnumerable.call(Le,Ge[pt])&&(Ve[Ge[pt]]=Le[Ge[pt]]);return Ve};const ce=null,re={distance:180},le=Le=>{var Ne;const{rootClassName:Ve,width:Ge,height:pt,size:we="default",mask:De=!0,push:Zt=re,open:Tt,afterOpenChange:nn,onClose:Ut,prefixCls:St,getContainer:an,style:_t,className:$e,visible:mt,afterVisibleChange:jt,maskStyle:Jt,drawerStyle:Be,contentWrapperStyle:ft}=Le,Dt=oe(Le,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:Vt,getPrefixCls:un,direction:En,className:Mn,style:Fn,classNames:gn,styles:kn}=(0,st.dj)("drawer"),dn=un("drawer",St),[zt,rn,on]=te(dn),Xt=an===void 0&&Vt?()=>Vt(document.body):an,vn=fe()({"no-mask":!De,[`${dn}-rtl`]:En==="rtl"},Ve,rn,on),pn=b.useMemo(()=>Ge!=null?Ge:we==="large"?736:378,[Ge,we]),wn=b.useMemo(()=>pt!=null?pt:we==="large"?736:378,[pt,we]),$n={motionName:(0,Et.m)(dn,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},xn=sn=>({motionName:(0,Et.m)(dn,`panel-motion-${sn}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),hn=(0,Yt.H)(),[Zn,Wn]=(0,de.Cn)("Drawer",Dt.zIndex),{classNames:ir={},styles:tr={}}=Dt;return zt(b.createElement(_e.Z,{form:!0,space:!0},b.createElement(He.Z.Provider,{value:Wn},b.createElement(at,Object.assign({prefixCls:dn,onClose:Ut,maskMotion:$n,motion:xn},Dt,{classNames:{mask:fe()(ir.mask,gn.mask),content:fe()(ir.content,gn.content),wrapper:fe()(ir.wrapper,gn.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},tr.mask),Jt),kn.mask),content:Object.assign(Object.assign(Object.assign({},tr.content),Be),kn.content),wrapper:Object.assign(Object.assign(Object.assign({},tr.wrapper),ft),kn.wrapper)},open:Tt!=null?Tt:mt,mask:De,push:Zt,width:pn,height:wn,style:Object.assign(Object.assign({},Fn),_t),className:fe()(Mn,$e),rootClassName:vn,getContainer:Xt,afterOpenChange:nn!=null?nn:jt,panelRef:hn,zIndex:Zn}),b.createElement(en,Object.assign({prefixCls:dn},Dt,{onClose:Ut}))))))},be=Le=>{const{prefixCls:Ne,style:Ve,className:Ge,placement:pt="right"}=Le,we=oe(Le,["prefixCls","style","className","placement"]),{getPrefixCls:De}=b.useContext(st.E_),Zt=De("drawer",Ne),[Tt,nn,Ut]=te(Zt),St=fe()(Zt,`${Zt}-pure`,`${Zt}-${pt}`,nn,Ut,Ge);return Tt(b.createElement("div",{className:St,style:Ve},b.createElement(en,Object.assign({prefixCls:Zt},we))))};le._InternalPanelDoNotUseOrYouWillBeFired=be;var ht=le},19563:function(In,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Ot}});var b=ee(59301),ze=ee(33853),fe=ee(38819),nt=ee(92310),Se=ee.n(nt),xe=ee(96478),Ee=ee(6089),je=ee(18929),Ie=ee(2738),ue=ee(75030),Te=ge=>typeof ge!="object"&&typeof ge!="function"||ge===null,At=ee(52838),lt=ee(45915),it=ee(22703),We=ee(32383),ke=ee(55743),ot=ee(48755),yt=ee(83397),Nt=ee(93041),Fe=ee(78857),Me=ee(57700),Xe=ee(36237),Je=ee(63356),$t=ee(46e3),ct=ee(93873),Ye=ee(34925),rt=ee(37645),Ce=ee(36305),at=ee(16931),_e=ee(51636),Et=ge=>{const{componentCls:Ke,menuCls:tt,colorError:Wt,colorTextLightSolid:qe}=ge,Rt=`${tt}-item`;return{[`${Ke}, ${Ke}-menu-submenu`]:{[`${tt} ${Rt}`]:{[`&${Rt}-danger:not(${Rt}-disabled)`]:{color:Wt,"&:hover":{color:qe,backgroundColor:Wt}}}}}};const He=ge=>{const{componentCls:Ke,menuCls:tt,zIndexPopup:Wt,dropdownArrowDistance:qe,sizePopupArrow:Rt,antCls:Qe,iconCls:tn,motionDurationMid:gt,paddingBlock:ae,fontSize:ne,dropdownEdgeChildPadding:te,colorTextDisabled:oe,fontSizeIcon:ce,controlPaddingHorizontal:re,colorBgElevated:le}=ge;return[{[Ke]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:Wt,display:"block","&::before":{position:"absolute",insetBlock:ge.calc(Rt).div(2).sub(qe).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${Qe}-btn`]:{[`& > ${tn}-down, & > ${Qe}-btn-icon > ${tn}-down`]:{fontSize:ce}},[`${Ke}-wrap`]:{position:"relative",[`${Qe}-btn > ${tn}-down`]:{fontSize:ce},[`${tn}-down::before`]:{transition:`transform ${gt}`}},[`${Ke}-wrap-open`]:{[`${tn}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${Qe}-slide-down-enter${Qe}-slide-down-enter-active${Ke}-placement-bottomLeft,
|
|
|
&${Qe}-slide-down-appear${Qe}-slide-down-appear-active${Ke}-placement-bottomLeft,
|
|
|
&${Qe}-slide-down-enter${Qe}-slide-down-enter-active${Ke}-placement-bottom,
|
|
|
&${Qe}-slide-down-appear${Qe}-slide-down-appear-active${Ke}-placement-bottom,
|
|
|
&${Qe}-slide-down-enter${Qe}-slide-down-enter-active${Ke}-placement-bottomRight,
|
|
|
&${Qe}-slide-down-appear${Qe}-slide-down-appear-active${Ke}-placement-bottomRight`]:{animationName:$t.fJ},[`&${Qe}-slide-up-enter${Qe}-slide-up-enter-active${Ke}-placement-topLeft,
|
|
|
&${Qe}-slide-up-appear${Qe}-slide-up-appear-active${Ke}-placement-topLeft,
|
|
|
&${Qe}-slide-up-enter${Qe}-slide-up-enter-active${Ke}-placement-top,
|
|
|
&${Qe}-slide-up-appear${Qe}-slide-up-appear-active${Ke}-placement-top,
|
|
|
&${Qe}-slide-up-enter${Qe}-slide-up-enter-active${Ke}-placement-topRight,
|
|
|
&${Qe}-slide-up-appear${Qe}-slide-up-appear-active${Ke}-placement-topRight`]:{animationName:$t.Qt},[`&${Qe}-slide-down-leave${Qe}-slide-down-leave-active${Ke}-placement-bottomLeft,
|
|
|
&${Qe}-slide-down-leave${Qe}-slide-down-leave-active${Ke}-placement-bottom,
|
|
|
&${Qe}-slide-down-leave${Qe}-slide-down-leave-active${Ke}-placement-bottomRight`]:{animationName:$t.Uw},[`&${Qe}-slide-up-leave${Qe}-slide-up-leave-active${Ke}-placement-topLeft,
|
|
|
&${Qe}-slide-up-leave${Qe}-slide-up-leave-active${Ke}-placement-top,
|
|
|
&${Qe}-slide-up-leave${Qe}-slide-up-leave-active${Ke}-placement-topRight`]:{animationName:$t.ly}}},(0,rt.ZP)(ge,le,{arrowPlacement:{top:!0,bottom:!0}}),{[`${Ke} ${tt}`]:{position:"relative",margin:0},[`${tt}-submenu-popup`]:{position:"absolute",zIndex:Wt,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Ke}, ${Ke}-menu-submenu`]:Object.assign(Object.assign({},(0,Je.Wf)(ge)),{[tt]:Object.assign(Object.assign({padding:te,listStyleType:"none",backgroundColor:le,backgroundClip:"padding-box",borderRadius:ge.borderRadiusLG,outline:"none",boxShadow:ge.boxShadowSecondary},(0,Je.Qy)(ge)),{"&:empty":{padding:0,boxShadow:"none"},[`${tt}-item-group-title`]:{padding:`${(0,Xe.unit)(ae)} ${(0,Xe.unit)(re)}`,color:ge.colorTextDescription,transition:`all ${gt}`},[`${tt}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${tt}-item-icon`]:{minWidth:ne,marginInlineEnd:ge.marginXS,fontSize:ge.fontSizeSM},[`${tt}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${gt}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${tt}-item-extra`]:{paddingInlineStart:ge.padding,marginInlineStart:"auto",fontSize:ge.fontSizeSM,color:ge.colorTextDescription}},[`${tt}-item, ${tt}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${(0,Xe.unit)(ae)} ${(0,Xe.unit)(re)}`,color:ge.colorText,fontWeight:"normal",fontSize:ne,lineHeight:ge.lineHeight,cursor:"pointer",transition:`all ${gt}`,borderRadius:ge.borderRadiusSM,"&:hover, &-active":{backgroundColor:ge.controlItemBgHover}},(0,Je.Qy)(ge)),{"&-selected":{color:ge.colorPrimary,backgroundColor:ge.controlItemBgActive,"&:hover, &-active":{backgroundColor:ge.controlItemBgActiveHover}},"&-disabled":{color:oe,cursor:"not-allowed","&:hover":{color:oe,backgroundColor:le,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${(0,Xe.unit)(ge.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:ge.colorSplit},[`${Ke}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:ge.paddingXS,[`${Ke}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:ge.colorTextDescription,fontSize:ce,fontStyle:"normal"}}}),[`${tt}-item-group-list`]:{margin:`0 ${(0,Xe.unit)(ge.marginXS)}`,padding:0,listStyle:"none"},[`${tt}-submenu-title`]:{paddingInlineEnd:ge.calc(re).add(ge.fontSizeSM).equal()},[`${tt}-submenu-vertical`]:{position:"relative"},[`${tt}-submenu${tt}-submenu-disabled ${Ke}-menu-submenu-title`]:{[`&, ${Ke}-menu-submenu-arrow-icon`]:{color:oe,backgroundColor:le,cursor:"not-allowed"}},[`${tt}-submenu-selected ${Ke}-menu-submenu-title`]:{color:ge.colorPrimary}})})},[(0,$t.oN)(ge,"slide-up"),(0,$t.oN)(ge,"slide-down"),(0,ct.Fm)(ge,"move-up"),(0,ct.Fm)(ge,"move-down"),(0,Ye._y)(ge,"zoom-big")]]},st=ge=>Object.assign(Object.assign({zIndexPopup:ge.zIndexPopupBase+50,paddingBlock:(ge.controlHeight-ge.fontSize*ge.lineHeight)/2},(0,rt.wZ)({contentRadius:ge.borderRadiusLG,limitVerticalRadius:!0})),(0,Ce.w)(ge));var Yt=(0,at.I$)("Dropdown",ge=>{const{marginXXS:Ke,sizePopupArrow:tt,paddingXXS:Wt,componentCls:qe}=ge,Rt=(0,_e.mergeToken)(ge,{menuCls:`${qe}-menu`,dropdownArrowDistance:ge.calc(tt).div(2).add(Ke).equal(),dropdownEdgeChildPadding:Wt});return[He(Rt),Et(Rt)]},st,{resetStyle:!1});const Oe=null,pe=ge=>{var Ke;const{menu:tt,arrow:Wt,prefixCls:qe,children:Rt,trigger:Qe,disabled:tn,dropdownRender:gt,getPopupContainer:ae,overlayClassName:ne,rootClassName:te,overlayStyle:oe,open:ce,onOpenChange:re,visible:le,onVisibleChange:be,mouseEnterDelay:ht=.15,mouseLeaveDelay:Le=.1,autoAdjustOverflow:Ne=!0,placement:Ve="",overlay:Ge,transitionName:pt}=ge,{getPopupContainer:we,getPrefixCls:De,direction:Zt,dropdown:Tt}=b.useContext(ot.E_),nn=(0,We.ln)("Dropdown"),Ut=b.useMemo(()=>{const Xt=De();return pt!==void 0?pt:Ve.includes("top")?`${Xt}-slide-down`:`${Xt}-slide-up`},[De,Ve,pt]),St=b.useMemo(()=>Ve?Ve.includes("Center")?Ve.slice(0,Ve.indexOf("Center")):Ve:Zt==="rtl"?"bottomRight":"bottomLeft",[Ve,Zt]),an=De("dropdown",qe),_t=(0,yt.Z)(an),[$e,mt,jt]=Yt(an,_t),[,Jt]=(0,Me.ZP)(),Be=b.Children.only(Te(Rt)?b.createElement("span",null,Rt):Rt),ft=(0,it.Tm)(Be,{className:Se()(`${an}-trigger`,{[`${an}-rtl`]:Zt==="rtl"},Be.props.className),disabled:(Ke=Be.props.disabled)!==null&&Ke!==void 0?Ke:tn}),Dt=tn?[]:Qe,Vt=!!(Dt!=null&&Dt.includes("contextMenu")),[un,En]=(0,je.Z)(!1,{value:ce!=null?ce:le}),Mn=(0,Ee.Z)(Xt=>{re==null||re(Xt,{source:"trigger"}),be==null||be(Xt),En(Xt)}),Fn=Se()(ne,te,mt,jt,_t,Tt==null?void 0:Tt.className,{[`${an}-rtl`]:Zt==="rtl"}),gn=(0,At.Z)({arrowPointAtCenter:typeof Wt=="object"&&Wt.pointAtCenter,autoAdjustOverflow:Ne,offset:Jt.marginXXS,arrowWidth:Wt?Jt.sizePopupArrow:0,borderRadius:Jt.borderRadius}),kn=b.useCallback(()=>{tt!=null&&tt.selectable&&(tt!=null&&tt.multiple)||(re==null||re(!1,{source:"menu"}),En(!1))},[tt==null?void 0:tt.selectable,tt==null?void 0:tt.multiple]),dn=()=>{let Xt;return tt!=null&&tt.items?Xt=b.createElement(Nt.default,Object.assign({},tt)):typeof Ge=="function"?Xt=Ge():Xt=Ge,gt&&(Xt=gt(Xt)),Xt=b.Children.only(typeof Xt=="string"?b.createElement("span",null,Xt):Xt),b.createElement(Fe.J,{prefixCls:`${an}-menu`,rootClassName:Se()(jt,_t),expandIcon:b.createElement("span",{className:`${an}-menu-submenu-arrow`},Zt==="rtl"?b.createElement(ze.Z,{className:`${an}-menu-submenu-arrow-icon`}):b.createElement(fe.Z,{className:`${an}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:kn,validator:vn=>{let{mode:pn}=vn}},Xt)},[zt,rn]=(0,ue.Cn)("Dropdown",oe==null?void 0:oe.zIndex);let on=b.createElement(xe.Z,Object.assign({alignPoint:Vt},(0,Ie.Z)(ge,["rootClassName"]),{mouseEnterDelay:ht,mouseLeaveDelay:Le,visible:un,builtinPlacements:gn,arrow:!!Wt,overlayClassName:Fn,prefixCls:an,getPopupContainer:ae||we,transitionName:Ut,trigger:Dt,overlay:dn,placement:St,onVisibleChange:Mn,overlayStyle:Object.assign(Object.assign(Object.assign({},Tt==null?void 0:Tt.style),oe),{zIndex:zt})}),ft);return zt&&(on=b.createElement(ke.Z.Provider,{value:rn},on)),$e(on)},Lt=(0,lt.Z)(pe,"align",void 0,"dropdown",ge=>ge),en=ge=>b.createElement(Lt,Object.assign({},ge),b.createElement("span",null));pe._InternalPanelDoNotUseOrYouWillBeFired=en;var Ot=pe},75727:function(In,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return lt}});var b=ee(19563),ze=ee(59301),fe=ee(18785),nt=ee(92310),Se=ee.n(nt),xe=ee(7939),Ee=ee(48755),je=ee(44104),Ie=ee(70045),ue=function(it,We){var ke={};for(var ot in it)Object.prototype.hasOwnProperty.call(it,ot)&&We.indexOf(ot)<0&&(ke[ot]=it[ot]);if(it!=null&&typeof Object.getOwnPropertySymbols=="function")for(var yt=0,ot=Object.getOwnPropertySymbols(it);yt<ot.length;yt++)We.indexOf(ot[yt])<0&&Object.prototype.propertyIsEnumerable.call(it,ot[yt])&&(ke[ot[yt]]=it[ot[yt]]);return ke};const et=it=>{const{getPopupContainer:We,getPrefixCls:ke,direction:ot}=ze.useContext(Ee.E_),{prefixCls:yt,type:Nt="default",danger:Fe,disabled:Me,loading:Xe,onClick:Je,htmlType:$t,children:ct,className:Ye,menu:rt,arrow:Ce,autoFocus:at,overlay:_e,trigger:de,align:Et,open:He,onOpenChange:st,placement:Yt,getPopupContainer:Oe,href:pe,icon:Lt=ze.createElement(fe.Z,null),title:en,buttonsRender:Ot=ht=>ht,mouseEnterDelay:ge,mouseLeaveDelay:Ke,overlayClassName:tt,overlayStyle:Wt,destroyPopupOnHide:qe,dropdownRender:Rt}=it,Qe=ue(it,["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"]),tn=ke("dropdown",yt),gt=`${tn}-button`,ae={menu:rt,arrow:Ce,autoFocus:at,align:Et,disabled:Me,trigger:Me?[]:de,onOpenChange:st,getPopupContainer:Oe||We,mouseEnterDelay:ge,mouseLeaveDelay:Ke,overlayClassName:tt,overlayStyle:Wt,destroyPopupOnHide:qe,dropdownRender:Rt},{compactSize:ne,compactItemClassnames:te}=(0,Ie.ri)(tn,ot),oe=Se()(gt,te,Ye);"overlay"in it&&(ae.overlay=_e),"open"in it&&(ae.open=He),"placement"in it?ae.placement=Yt:ae.placement=ot==="rtl"?"bottomLeft":"bottomRight";const ce=ze.createElement(xe.ZP,{type:Nt,danger:Fe,disabled:Me,loading:Xe,onClick:Je,htmlType:$t,href:pe,title:en},ct),re=ze.createElement(xe.ZP,{type:Nt,danger:Fe,icon:Lt}),[le,be]=Ot([ce,re]);return ze.createElement(je.Z.Compact,Object.assign({className:oe,size:ne,block:!0},Qe),le,ze.createElement(b.Z,Object.assign({},ae),be))};et.__ANT_BUTTON=!0;var Te=et;const At=b.Z;At.Button=Te;var lt=At},584:function(In,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Nt}});var b=ee(59301),ze=ee(92310),fe=ee.n(ze),nt=ee(9017),Se=ee(17835),xe=ee(57700),je=()=>{const[,Fe]=(0,xe.ZP)(),[Me]=(0,nt.Z)("Empty"),Je=new Se.FastColor(Fe.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return b.createElement("svg",{style:Je,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},b.createElement("title",null,(Me==null?void 0:Me.description)||"Empty"),b.createElement("g",{fill:"none",fillRule:"evenodd"},b.createElement("g",{transform:"translate(24 31.67)"},b.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),b.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"}),b.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)"}),b.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"}),b.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"})),b.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"}),b.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},b.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),b.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},ue=()=>{const[,Fe]=(0,xe.ZP)(),[Me]=(0,nt.Z)("Empty"),{colorFill:Xe,colorFillTertiary:Je,colorFillQuaternary:$t,colorBgContainer:ct}=Fe,{borderColor:Ye,shadowColor:rt,contentColor:Ce}=(0,b.useMemo)(()=>({borderColor:new Se.FastColor(Xe).onBackground(ct).toHexString(),shadowColor:new Se.FastColor(Je).onBackground(ct).toHexString(),contentColor:new Se.FastColor($t).onBackground(ct).toHexString()}),[Xe,Je,$t,ct]);return b.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},b.createElement("title",null,(Me==null?void 0:Me.description)||"Empty"),b.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},b.createElement("ellipse",{fill:rt,cx:"32",cy:"33",rx:"32",ry:"7"}),b.createElement("g",{fillRule:"nonzero",stroke:Ye},b.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"}),b.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}))))},et=ee(16931),Te=ee(51636);const At=Fe=>{const{componentCls:Me,margin:Xe,marginXS:Je,marginXL:$t,fontSize:ct,lineHeight:Ye}=Fe;return{[Me]:{marginInline:Je,fontSize:ct,lineHeight:Ye,textAlign:"center",[`${Me}-image`]:{height:Fe.emptyImgHeight,marginBottom:Je,opacity:Fe.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${Me}-description`]:{color:Fe.colorTextDescription},[`${Me}-footer`]:{marginTop:Xe},"&-normal":{marginBlock:$t,color:Fe.colorTextDescription,[`${Me}-description`]:{color:Fe.colorTextDescription},[`${Me}-image`]:{height:Fe.emptyImgHeightMD}},"&-small":{marginBlock:Je,color:Fe.colorTextDescription,[`${Me}-image`]:{height:Fe.emptyImgHeightSM}}}}};var lt=(0,et.I$)("Empty",Fe=>{const{componentCls:Me,controlHeightLG:Xe,calc:Je}=Fe,$t=(0,Te.mergeToken)(Fe,{emptyImgCls:`${Me}-img`,emptyImgHeight:Je(Xe).mul(2.5).equal(),emptyImgHeightMD:Xe,emptyImgHeightSM:Je(Xe).mul(.875).equal()});return[At($t)]}),it=ee(48755),We=function(Fe,Me){var Xe={};for(var Je in Fe)Object.prototype.hasOwnProperty.call(Fe,Je)&&Me.indexOf(Je)<0&&(Xe[Je]=Fe[Je]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $t=0,Je=Object.getOwnPropertySymbols(Fe);$t<Je.length;$t++)Me.indexOf(Je[$t])<0&&Object.prototype.propertyIsEnumerable.call(Fe,Je[$t])&&(Xe[Je[$t]]=Fe[Je[$t]]);return Xe};const ke=b.createElement(je,null),ot=b.createElement(ue,null),yt=Fe=>{const{className:Me,rootClassName:Xe,prefixCls:Je,image:$t=ke,description:ct,children:Ye,imageStyle:rt,style:Ce,classNames:at,styles:_e}=Fe,de=We(Fe,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:Et,direction:He,className:st,style:Yt,classNames:Oe,styles:pe}=(0,it.dj)("empty"),Lt=Et("empty",Je),[en,Ot,ge]=lt(Lt),[Ke]=(0,nt.Z)("Empty"),tt=typeof ct!="undefined"?ct:Ke==null?void 0:Ke.description,Wt=typeof tt=="string"?tt:"empty";let qe=null;return typeof $t=="string"?qe=b.createElement("img",{alt:Wt,src:$t}):qe=$t,en(b.createElement("div",Object.assign({className:fe()(Ot,ge,Lt,st,{[`${Lt}-normal`]:$t===ot,[`${Lt}-rtl`]:He==="rtl"},Me,Xe,Oe.root,at==null?void 0:at.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},pe.root),Yt),_e==null?void 0:_e.root),Ce)},de),b.createElement("div",{className:fe()(`${Lt}-image`,Oe.image,at==null?void 0:at.image),style:Object.assign(Object.assign(Object.assign({},rt),pe.image),_e==null?void 0:_e.image)},qe),tt&&b.createElement("div",{className:fe()(`${Lt}-description`,Oe.description,at==null?void 0:at.description),style:Object.assign(Object.assign({},pe.description),_e==null?void 0:_e.description)},tt),Ye&&b.createElement("div",{className:fe()(`${Lt}-footer`,Oe.footer,at==null?void 0:at.footer),style:Object.assign(Object.assign({},pe.footer),_e==null?void 0:_e.footer)},Ye)))};yt.PRESENTED_IMAGE_DEFAULT=ke,yt.PRESENTED_IMAGE_SIMPLE=ot;var Nt=yt},28284:function(In,Qt,ee){"use strict";ee.d(Qt,{default:function(){return Pt}});var b=ee(56553),ze=ee(77654),fe=ee(59301),nt=ee(92310),Se=ee.n(nt),xe=ee(77900),Ee=ee(86641),je=ee(83397);function Ie(Re){const[vt,Ze]=fe.useState(Re);return fe.useEffect(()=>{const bt=setTimeout(()=>{Ze(Re)},Re.length?0:10);return()=>{clearTimeout(bt)}},[Re]),vt}var ue=ee(36237),et=ee(63356),Te=ee(34925),At=ee(34961),lt=ee(51636),it=ee(16931),ke=Re=>{const{componentCls:vt}=Re,Ze=`${vt}-show-help`,bt=`${vt}-show-help-item`;return{[Ze]:{transition:`opacity ${Re.motionDurationFast} ${Re.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[bt]:{overflow:"hidden",transition:`height ${Re.motionDurationFast} ${Re.motionEaseInOut},
|
|
|
opacity ${Re.motionDurationFast} ${Re.motionEaseInOut},
|
|
|
transform ${Re.motionDurationFast} ${Re.motionEaseInOut} !important`,[`&${bt}-appear, &${bt}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${bt}-leave-active`]:{transform:"translateY(-5px)"}}}}};const ot=Re=>({legend:{display:"block",width:"100%",marginBottom:Re.marginLG,padding:0,color:Re.colorTextDescription,fontSize:Re.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${(0,ue.unit)(Re.lineWidth)} ${Re.lineType} ${Re.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,ue.unit)(Re.controlOutlineWidth)} ${Re.controlOutline}`},output:{display:"block",paddingTop:15,color:Re.colorText,fontSize:Re.fontSize,lineHeight:Re.lineHeight}}),yt=(Re,vt)=>{const{formItemCls:Ze}=Re;return{[Ze]:{[`${Ze}-label > label`]:{height:vt},[`${Ze}-control-input`]:{minHeight:vt}}}},Nt=Re=>{const{componentCls:vt}=Re;return{[Re.componentCls]:Object.assign(Object.assign(Object.assign({},(0,et.Wf)(Re)),ot(Re)),{[`${vt}-text`]:{display:"inline-block",paddingInlineEnd:Re.paddingSM},"&-small":Object.assign({},yt(Re,Re.controlHeightSM)),"&-large":Object.assign({},yt(Re,Re.controlHeightLG))})}},Fe=Re=>{const{formItemCls:vt,iconCls:Ze,rootPrefixCls:bt,antCls:Pe,labelRequiredMarkColor:It,labelColor:Bt,labelFontSize:Kt,labelHeight:Ct,labelColonMarginInlineStart:xt,labelColonMarginInlineEnd:wt,itemMarginBottom:Ft}=Re;return{[vt]:Object.assign(Object.assign({},(0,et.Wf)(Re)),{marginBottom:Ft,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
|
&-hidden${Pe}-row`]:{display:"none"},"&-has-warning":{[`${vt}-split`]:{color:Re.colorError}},"&-has-error":{[`${vt}-split`]:{color:Re.colorWarning}},[`${vt}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:Re.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:Ct,color:Bt,fontSize:Kt,[`> ${Ze}`]:{fontSize:Re.fontSize,verticalAlign:"top"},[`&${vt}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:Re.marginXXS,color:It,fontSize:Re.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${vt}-required-mark-hidden, &${vt}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${vt}-optional`]:{display:"inline-block",marginInlineStart:Re.marginXXS,color:Re.colorTextDescription,[`&${vt}-required-mark-hidden`]:{display:"none"}},[`${vt}-tooltip`]:{color:Re.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:Re.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:xt,marginInlineEnd:wt},[`&${vt}-no-colon::after`]:{content:'"\\a0"'}}},[`${vt}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${bt}-col-'"]):not([class*="' ${bt}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:Re.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[vt]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:Re.colorTextDescription,fontSize:Re.fontSize,lineHeight:Re.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:Re.controlHeightSM,transition:`color ${Re.motionDurationMid} ${Re.motionEaseOut}`},"&-explain":{"&-error":{color:Re.colorError},"&-warning":{color:Re.colorWarning}}},[`&-with-help ${vt}-explain`]:{height:"auto",opacity:1},[`${vt}-feedback-icon`]:{fontSize:Re.fontSize,textAlign:"center",visibility:"visible",animationName:Te.kr,animationDuration:Re.motionDurationMid,animationTimingFunction:Re.motionEaseOutBack,pointerEvents:"none","&-success":{color:Re.colorSuccess},"&-error":{color:Re.colorError},"&-warning":{color:Re.colorWarning},"&-validating":{color:Re.colorPrimary}}})}},Me=(Re,vt)=>{const{formItemCls:Ze}=Re;return{[`${vt}-horizontal`]:{[`${Ze}-label`]:{flexGrow:0},[`${Ze}-control`]:{flex:"1 1 0",minWidth:0},[`${Ze}-label[class$='-24'], ${Ze}-label[class*='-24 ']`]:{[`& + ${Ze}-control`]:{minWidth:"unset"}}}}},Xe=Re=>{const{componentCls:vt,formItemCls:Ze,inlineItemMarginBottom:bt}=Re;return{[`${vt}-inline`]:{display:"flex",flexWrap:"wrap",[Ze]:{flex:"none",marginInlineEnd:Re.margin,marginBottom:bt,"&-row":{flexWrap:"nowrap"},[`> ${Ze}-label,
|
|
|
> ${Ze}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${Ze}-label`]:{flex:"none"},[`${vt}-text`]:{display:"inline-block"},[`${Ze}-has-feedback`]:{display:"inline-block"}}}}},Je=Re=>({padding:Re.verticalLabelPadding,margin:Re.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),$t=Re=>{const{componentCls:vt,formItemCls:Ze,rootPrefixCls:bt}=Re;return{[`${Ze} ${Ze}-label`]:Je(Re),[`${vt}:not(${vt}-inline)`]:{[Ze]:{flexWrap:"wrap",[`${Ze}-label, ${Ze}-control`]:{[`&:not([class*=" ${bt}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},ct=Re=>{const{componentCls:vt,formItemCls:Ze,antCls:bt}=Re;return{[`${vt}-vertical`]:{[`${Ze}:not(${Ze}-horizontal)`]:{[`${Ze}-row`]:{flexDirection:"column"},[`${Ze}-label > label`]:{height:"auto"},[`${Ze}-control`]:{width:"100%"},[`${Ze}-label,
|
|
|
${bt}-col-24${Ze}-label,
|
|
|
${bt}-col-xl-24${Ze}-label`]:Je(Re)}},[`@media (max-width: ${(0,ue.unit)(Re.screenXSMax)})`]:[$t(Re),{[vt]:{[`${Ze}:not(${Ze}-horizontal)`]:{[`${bt}-col-xs-24${Ze}-label`]:Je(Re)}}}],[`@media (max-width: ${(0,ue.unit)(Re.screenSMMax)})`]:{[vt]:{[`${Ze}:not(${Ze}-horizontal)`]:{[`${bt}-col-sm-24${Ze}-label`]:Je(Re)}}},[`@media (max-width: ${(0,ue.unit)(Re.screenMDMax)})`]:{[vt]:{[`${Ze}:not(${Ze}-horizontal)`]:{[`${bt}-col-md-24${Ze}-label`]:Je(Re)}}},[`@media (max-width: ${(0,ue.unit)(Re.screenLGMax)})`]:{[vt]:{[`${Ze}:not(${Ze}-horizontal)`]:{[`${bt}-col-lg-24${Ze}-label`]:Je(Re)}}}}},Ye=Re=>{const{formItemCls:vt,antCls:Ze}=Re;return{[`${vt}-vertical`]:{[`${vt}-row`]:{flexDirection:"column"},[`${vt}-label > label`]:{height:"auto"},[`${vt}-control`]:{width:"100%"}},[`${vt}-vertical ${vt}-label,
|
|
|
${Ze}-col-24${vt}-label,
|
|
|
${Ze}-col-xl-24${vt}-label`]:Je(Re),[`@media (max-width: ${(0,ue.unit)(Re.screenXSMax)})`]:[$t(Re),{[vt]:{[`${Ze}-col-xs-24${vt}-label`]:Je(Re)}}],[`@media (max-width: ${(0,ue.unit)(Re.screenSMMax)})`]:{[vt]:{[`${Ze}-col-sm-24${vt}-label`]:Je(Re)}},[`@media (max-width: ${(0,ue.unit)(Re.screenMDMax)})`]:{[vt]:{[`${Ze}-col-md-24${vt}-label`]:Je(Re)}},[`@media (max-width: ${(0,ue.unit)(Re.screenLGMax)})`]:{[vt]:{[`${Ze}-col-lg-24${vt}-label`]:Je(Re)}}}},rt=Re=>({labelRequiredMarkColor:Re.colorError,labelColor:Re.colorTextHeading,labelFontSize:Re.fontSize,labelHeight:Re.controlHeight,labelColonMarginInlineStart:Re.marginXXS/2,labelColonMarginInlineEnd:Re.marginXS,itemMarginBottom:Re.marginLG,verticalLabelPadding:`0 0 ${Re.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),Ce=(Re,vt)=>(0,lt.mergeToken)(Re,{formItemCls:`${Re.componentCls}-item`,rootPrefixCls:vt});var at=(0,it.I$)("Form",(Re,vt)=>{let{rootPrefixCls:Ze}=vt;const bt=Ce(Re,Ze);return[Nt(bt),Fe(bt),ke(bt),Me(bt,bt.componentCls),Me(bt,bt.formItemCls),Xe(bt),ct(bt),Ye(bt),(0,At.Z)(bt),Te.kr]},rt,{order:-1e3});const _e=[];function de(Re,vt,Ze){let bt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof Re=="string"?Re:`${vt}-${bt}`,error:Re,errorStatus:Ze}}var He=Re=>{let{help:vt,helpStatus:Ze,errors:bt=_e,warnings:Pe=_e,className:It,fieldId:Bt,onVisibleChanged:Kt}=Re;const{prefixCls:Ct}=fe.useContext(b.Rk),xt=`${Ct}-item-explain`,wt=(0,je.Z)(Ct),[Ft,Tn,On]=at(Ct,wt),An=fe.useMemo(()=>(0,Ee.Z)(Ct),[Ct]),er=Ie(bt),sr=Ie(Pe),fr=fe.useMemo(()=>vt!=null?[de(vt,"help",Ze)]:[].concat((0,ze.Z)(er.map((Jn,ur)=>de(Jn,"error","error",ur))),(0,ze.Z)(sr.map((Jn,ur)=>de(Jn,"warning","warning",ur)))),[vt,Ze,er,sr]),Qn=fe.useMemo(()=>{const Jn={};return fr.forEach(ur=>{let{key:Er}=ur;Jn[Er]=(Jn[Er]||0)+1}),fr.map((ur,Er)=>Object.assign(Object.assign({},ur),{key:Jn[ur.key]>1?`${ur.key}-fallback-${Er}`:ur.key}))},[fr]),Xn={};return Bt&&(Xn.id=`${Bt}_help`),Ft(fe.createElement(xe.default,{motionDeadline:An.motionDeadline,motionName:`${Ct}-show-help`,visible:!!Qn.length,onVisibleChanged:Kt},Jn=>{const{className:ur,style:Er}=Jn;return fe.createElement("div",Object.assign({},Xn,{className:Se()(xt,ur,On,wt,It,Tn),style:Er}),fe.createElement(xe.CSSMotionList,Object.assign({keys:Qn},(0,Ee.Z)(Ct),{motionName:`${Ct}-show-help-item`,component:!1}),Cr=>{const{key:wr,error:Yn,errorStatus:yr,className:mr,style:_r}=Cr;return fe.createElement("div",{key:wr,className:Se()(mr,{[`${xt}-${yr}`]:yr}),style:_r},Yn)}))}))},st=ee(69180),Yt=ee(48755),Oe=ee(2171),pe=ee(31756),Lt=ee(23069),en=ee(76846),Ot=ee(16722);const ge=["parentNode"],Ke="form_item";function tt(Re){return Re===void 0||Re===!1?[]:Array.isArray(Re)?Re:[Re]}function Wt(Re,vt){if(!Re.length)return;const Ze=Re.join("_");return vt?`${vt}_${Ze}`:ge.includes(Ze)?`${Ke}_${Ze}`:Ze}function qe(Re,vt,Ze,bt,Pe,It){let Bt=bt;return It!==void 0?Bt=It:Ze.validating?Bt="validating":Re.length?Bt="error":vt.length?Bt="warning":(Ze.touched||Pe&&Ze.validated)&&(Bt="success"),Bt}var Rt=function(Re,vt){var Ze={};for(var bt in Re)Object.prototype.hasOwnProperty.call(Re,bt)&&vt.indexOf(bt)<0&&(Ze[bt]=Re[bt]);if(Re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,bt=Object.getOwnPropertySymbols(Re);Pe<bt.length;Pe++)vt.indexOf(bt[Pe])<0&&Object.prototype.propertyIsEnumerable.call(Re,bt[Pe])&&(Ze[bt[Pe]]=Re[bt[Pe]]);return Ze};function Qe(Re){return tt(Re).join("_")}function tn(Re,vt){const Ze=vt.getFieldInstance(Re),bt=(0,en.bn)(Ze);if(bt)return bt;const Pe=Wt(tt(Re),vt.__INTERNAL__.name);if(Pe)return document.getElementById(Pe)}function gt(Re){const[vt]=(0,st.useForm)(),Ze=fe.useRef({}),bt=fe.useMemo(()=>Re!=null?Re:Object.assign(Object.assign({},vt),{__INTERNAL__:{itemRef:Pe=>It=>{const Bt=Qe(Pe);It?Ze.current[Bt]=It:delete Ze.current[Bt]}},scrollToField:function(Pe){let It=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{focus:Bt}=It,Kt=Rt(It,["focus"]),Ct=tn(Pe,bt);Ct&&((0,Ot.Z)(Ct,Object.assign({scrollMode:"if-needed",block:"nearest"},Kt)),Bt&&bt.focusField(Pe))},focusField:Pe=>{var It,Bt;const Kt=bt.getFieldInstance(Pe);typeof(Kt==null?void 0:Kt.focus)=="function"?Kt.focus():(Bt=(It=tn(Pe,bt))===null||It===void 0?void 0:It.focus)===null||Bt===void 0||Bt.call(It)},getFieldInstance:Pe=>{const It=Qe(Pe);return Ze.current[It]}}),[Re,vt]);return[bt]}var ae=ee(98350),ne=function(Re,vt){var Ze={};for(var bt in Re)Object.prototype.hasOwnProperty.call(Re,bt)&&vt.indexOf(bt)<0&&(Ze[bt]=Re[bt]);if(Re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,bt=Object.getOwnPropertySymbols(Re);Pe<bt.length;Pe++)vt.indexOf(bt[Pe])<0&&Object.prototype.propertyIsEnumerable.call(Re,bt[Pe])&&(Ze[bt[Pe]]=Re[bt[Pe]]);return Ze};const te=(Re,vt)=>{const Ze=fe.useContext(Oe.Z),{getPrefixCls:bt,direction:Pe,requiredMark:It,colon:Bt,scrollToFirstError:Kt,className:Ct,style:xt}=(0,Yt.dj)("form"),{prefixCls:wt,className:Ft,rootClassName:Tn,size:On,disabled:An=Ze,form:er,colon:sr,labelAlign:fr,labelWrap:Qn,labelCol:Xn,wrapperCol:Jn,hideRequiredMark:ur,layout:Er="horizontal",scrollToFirstError:Cr,requiredMark:wr,onFinishFailed:Yn,name:yr,style:mr,feedbackIcons:_r,variant:Yr}=Re,Vr=ne(Re,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),Ur=(0,pe.Z)(On),oi=fe.useContext(ae.Z),Zr=fe.useMemo(()=>wr!==void 0?wr:ur?!1:It!==void 0?It:!0,[ur,wr,It]),Jr=sr!=null?sr:Bt,Or=bt("form",wt),ti=(0,je.Z)(Or),[ci,Fi,vi]=at(Or,ti),xi=Se()(Or,`${Or}-${Er}`,{[`${Or}-hide-required-mark`]:Zr===!1,[`${Or}-rtl`]:Pe==="rtl",[`${Or}-${Ur}`]:Ur},vi,ti,Fi,Ct,Ft,Tn),[hi]=gt(er),{__INTERNAL__:bi}=hi;bi.name=yr;const Rr=fe.useMemo(()=>({name:yr,labelAlign:fr,labelCol:Xn,labelWrap:Qn,wrapperCol:Jn,vertical:Er==="vertical",colon:Jr,requiredMark:Zr,itemRef:bi.itemRef,form:hi,feedbackIcons:_r}),[yr,fr,Xn,Jn,Er,Jr,Zr,hi,_r]),Lr=fe.useRef(null);fe.useImperativeHandle(vt,()=>{var Kn;return Object.assign(Object.assign({},hi),{nativeElement:(Kn=Lr.current)===null||Kn===void 0?void 0:Kn.nativeElement})});const cr=(Kn,Vn)=>{if(Kn){let Bn={block:"nearest"};typeof Kn=="object"&&(Bn=Object.assign(Object.assign({},Bn),Kn)),hi.scrollToField(Vn,Bn)}},Nn=Kn=>{if(Yn==null||Yn(Kn),Kn.errorFields.length){const Vn=Kn.errorFields[0].name;if(Cr!==void 0){cr(Cr,Vn);return}Kt!==void 0&&cr(Kt,Vn)}};return ci(fe.createElement(b.pg.Provider,{value:Yr},fe.createElement(Oe.n,{disabled:An},fe.createElement(Lt.Z.Provider,{value:Ur},fe.createElement(b.RV,{validateMessages:oi},fe.createElement(b.q3.Provider,{value:Rr},fe.createElement(st.default,Object.assign({id:yr},Vr,{name:yr,onFinishFailed:Nn,form:hi,ref:Lr,style:Object.assign(Object.assign({},xt),mr),className:xi}))))))))};var ce=fe.forwardRef(te),re=ee(41799),le=ee(8654),be=ee(22703),ht=ee(32383),Le=ee(11592);function Ne(Re){if(typeof Re=="function")return Re;const vt=(0,Le.Z)(Re);return vt.length<=1?vt[0]:vt}const Ve=()=>{const{status:Re,errors:vt=[],warnings:Ze=[]}=fe.useContext(b.aM);return{status:Re,errors:vt,warnings:Ze}};Ve.Context=b.aM;var Ge=Ve,pt=ee(16089);function we(Re){const[vt,Ze]=fe.useState(Re),bt=fe.useRef(null),Pe=fe.useRef([]),It=fe.useRef(!1);fe.useEffect(()=>(It.current=!1,()=>{It.current=!0,pt.Z.cancel(bt.current),bt.current=null}),[]);function Bt(Kt){It.current||(bt.current===null&&(Pe.current=[],bt.current=(0,pt.Z)(()=>{bt.current=null,Ze(Ct=>{let xt=Ct;return Pe.current.forEach(wt=>{xt=wt(xt)}),xt})})),Pe.current.push(Kt))}return[vt,Bt]}function De(){const{itemRef:Re}=fe.useContext(b.q3),vt=fe.useRef({});function Ze(bt,Pe){const It=Pe&&typeof Pe=="object"&&(0,le.C4)(Pe),Bt=bt.join("_");return(vt.current.name!==Bt||vt.current.originRef!==It)&&(vt.current.name=Bt,vt.current.originRef=It,vt.current.ref=(0,le.sQ)(Re(bt),It)),vt.current.ref}return Ze}var Zt=ee(29194),Tt=ee(34280),nn=ee(2738),Ut=ee(65970),St=ee(70425),an=ee(5472);const _t=Re=>{const{formItemCls:vt}=Re;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${vt}-control`]:{display:"flex"}}}};var $e=(0,it.bk)(["Form","item-item"],(Re,vt)=>{let{rootPrefixCls:Ze}=vt;const bt=Ce(Re,Ze);return[_t(bt)]}),mt=function(Re,vt){var Ze={};for(var bt in Re)Object.prototype.hasOwnProperty.call(Re,bt)&&vt.indexOf(bt)<0&&(Ze[bt]=Re[bt]);if(Re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,bt=Object.getOwnPropertySymbols(Re);Pe<bt.length;Pe++)vt.indexOf(bt[Pe])<0&&Object.prototype.propertyIsEnumerable.call(Re,bt[Pe])&&(Ze[bt[Pe]]=Re[bt[Pe]]);return Ze};const jt=24;var Be=Re=>{const{prefixCls:vt,status:Ze,labelCol:bt,wrapperCol:Pe,children:It,errors:Bt,warnings:Kt,_internalItemRender:Ct,extra:xt,help:wt,fieldId:Ft,marginBottom:Tn,onErrorVisibleChanged:On,label:An}=Re,er=`${vt}-item`,sr=fe.useContext(b.q3),fr=fe.useMemo(()=>{let Vr=Object.assign({},Pe||sr.wrapperCol||{});return An===null&&!bt&&!Pe&&sr.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(oi=>{const Zr=oi?[oi]:[],Jr=(0,St.U2)(sr.labelCol,Zr),Or=typeof Jr=="object"?Jr:{},ti=(0,St.U2)(Vr,Zr),ci=typeof ti=="object"?ti:{};"span"in Or&&!("offset"in ci)&&Or.span<jt&&(Vr=(0,St.t8)(Vr,[].concat(Zr,["offset"]),Or.span))}),Vr},[Pe,sr]),Qn=Se()(`${er}-control`,fr.className),Xn=fe.useMemo(()=>{const{labelCol:Vr,wrapperCol:Ur}=sr;return mt(sr,["labelCol","wrapperCol"])},[sr]),Jn=fe.useRef(null),[ur,Er]=fe.useState(0);(0,Tt.Z)(()=>{xt&&Jn.current?Er(Jn.current.clientHeight):Er(0)},[xt]);const Cr=fe.createElement("div",{className:`${er}-control-input`},fe.createElement("div",{className:`${er}-control-input-content`},It)),wr=fe.useMemo(()=>({prefixCls:vt,status:Ze}),[vt,Ze]),Yn=Tn!==null||Bt.length||Kt.length?fe.createElement(b.Rk.Provider,{value:wr},fe.createElement(He,{fieldId:Ft,errors:Bt,warnings:Kt,help:wt,helpStatus:Ze,className:`${er}-explain-connected`,onVisibleChanged:On})):null,yr={};Ft&&(yr.id=`${Ft}_extra`);const mr=xt?fe.createElement("div",Object.assign({},yr,{className:`${er}-extra`,ref:Jn}),xt):null,_r=Yn||mr?fe.createElement("div",{className:`${er}-additional`,style:Tn?{minHeight:Tn+ur}:{}},Yn,mr):null,Yr=Ct&&Ct.mark==="pro_table_render"&&Ct.render?Ct.render(Re,{input:Cr,errorList:Yn,extra:mr}):fe.createElement(fe.Fragment,null,Cr,_r);return fe.createElement(b.q3.Provider,{value:Xn},fe.createElement(an.Z,Object.assign({},fr,{className:Qn}),Yr),fe.createElement($e,{prefixCls:vt}))},ft=ee(61485),Dt=ee(9017),Vt=ee(85981),un=ee(25399),En=function(Re,vt){var Ze={};for(var bt in Re)Object.prototype.hasOwnProperty.call(Re,bt)&&vt.indexOf(bt)<0&&(Ze[bt]=Re[bt]);if(Re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,bt=Object.getOwnPropertySymbols(Re);Pe<bt.length;Pe++)vt.indexOf(bt[Pe])<0&&Object.prototype.propertyIsEnumerable.call(Re,bt[Pe])&&(Ze[bt[Pe]]=Re[bt[Pe]]);return Ze};function Mn(Re){return Re?typeof Re=="object"&&!fe.isValidElement(Re)?Re:{title:Re}:null}var gn=Re=>{let{prefixCls:vt,label:Ze,htmlFor:bt,labelCol:Pe,labelAlign:It,colon:Bt,required:Kt,requiredMark:Ct,tooltip:xt,vertical:wt}=Re;var Ft;const[Tn]=(0,Dt.Z)("Form"),{labelAlign:On,labelCol:An,labelWrap:er,colon:sr}=fe.useContext(b.q3);if(!Ze)return null;const fr=Pe||An||{},Qn=It||On,Xn=`${vt}-item-label`,Jn=Se()(Xn,Qn==="left"&&`${Xn}-left`,fr.className,{[`${Xn}-wrap`]:!!er});let ur=Ze;const Er=Bt===!0||sr!==!1&&Bt!==!1;Er&&!wt&&typeof Ze=="string"&&Ze.trim()&&(ur=Ze.replace(/[:|:]\s*$/,""));const wr=Mn(xt);if(wr){const{icon:Vr=fe.createElement(ft.Z,null)}=wr,Ur=En(wr,["icon"]),oi=fe.createElement(un.Z,Object.assign({},Ur),fe.cloneElement(Vr,{className:`${vt}-item-tooltip`,title:"",onClick:Zr=>{Zr.preventDefault()},tabIndex:null}));ur=fe.createElement(fe.Fragment,null,ur,oi)}const Yn=Ct==="optional",yr=typeof Ct=="function",mr=Ct===!1;yr?ur=Ct(ur,{required:!!Kt}):Yn&&!Kt&&(ur=fe.createElement(fe.Fragment,null,ur,fe.createElement("span",{className:`${vt}-item-optional`,title:""},(Tn==null?void 0:Tn.optional)||((Ft=Vt.Z.Form)===null||Ft===void 0?void 0:Ft.optional))));let _r;mr?_r="hidden":(Yn||yr)&&(_r="optional");const Yr=Se()({[`${vt}-item-required`]:Kt,[`${vt}-item-required-mark-${_r}`]:_r,[`${vt}-item-no-colon`]:!Er});return fe.createElement(an.Z,Object.assign({},fr,{className:Jn}),fe.createElement("label",{htmlFor:bt,className:Yr,title:typeof Ze=="string"?Ze:""},ur))},kn=ee(29679),dn=ee(19248),zt=ee(96512),rn=ee(58617);const on={success:kn.Z,warning:zt.Z,error:dn.Z,validating:rn.Z};function Xt(Re){let{children:vt,errors:Ze,warnings:bt,hasFeedback:Pe,validateStatus:It,prefixCls:Bt,meta:Kt,noStyle:Ct}=Re;const xt=`${Bt}-item`,{feedbackIcons:wt}=fe.useContext(b.q3),Ft=qe(Ze,bt,Kt,null,!!Pe,It),{isFormItemInput:Tn,status:On,hasFeedback:An,feedbackIcon:er}=fe.useContext(b.aM),sr=fe.useMemo(()=>{var fr;let Qn;if(Pe){const Jn=Pe!==!0&&Pe.icons||wt,ur=Ft&&((fr=Jn==null?void 0:Jn({status:Ft,errors:Ze,warnings:bt}))===null||fr===void 0?void 0:fr[Ft]),Er=Ft&&on[Ft];Qn=ur!==!1&&Er?fe.createElement("span",{className:Se()(`${xt}-feedback-icon`,`${xt}-feedback-icon-${Ft}`)},ur||fe.createElement(Er,null)):null}const Xn={status:Ft||"",errors:Ze,warnings:bt,hasFeedback:!!Pe,feedbackIcon:Qn,isFormItemInput:!0};return Ct&&(Xn.status=(Ft!=null?Ft:On)||"",Xn.isFormItemInput=Tn,Xn.hasFeedback=!!(Pe!=null?Pe:An),Xn.feedbackIcon=Pe!==void 0?Xn.feedbackIcon:er),Xn},[Ft,Pe,Ct,Tn,On]);return fe.createElement(b.aM.Provider,{value:sr},vt)}var vn=function(Re,vt){var Ze={};for(var bt in Re)Object.prototype.hasOwnProperty.call(Re,bt)&&vt.indexOf(bt)<0&&(Ze[bt]=Re[bt]);if(Re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,bt=Object.getOwnPropertySymbols(Re);Pe<bt.length;Pe++)vt.indexOf(bt[Pe])<0&&Object.prototype.propertyIsEnumerable.call(Re,bt[Pe])&&(Ze[bt[Pe]]=Re[bt[Pe]]);return Ze};function pn(Re){const{prefixCls:vt,className:Ze,rootClassName:bt,style:Pe,help:It,errors:Bt,warnings:Kt,validateStatus:Ct,meta:xt,hasFeedback:wt,hidden:Ft,children:Tn,fieldId:On,required:An,isRequired:er,onSubItemMetaChange:sr,layout:fr}=Re,Qn=vn(Re,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout"]),Xn=`${vt}-item`,{requiredMark:Jn,vertical:ur}=fe.useContext(b.q3),Er=ur||fr==="vertical",Cr=fe.useRef(null),wr=Ie(Bt),Yn=Ie(Kt),yr=It!=null,mr=!!(yr||Bt.length||Kt.length),_r=!!Cr.current&&(0,Zt.Z)(Cr.current),[Yr,Vr]=fe.useState(null);(0,Tt.Z)(()=>{if(mr&&Cr.current){const Or=getComputedStyle(Cr.current);Vr(parseInt(Or.marginBottom,10))}},[mr,_r]);const Ur=Or=>{Or||Vr(null)},Zr=function(){let Or=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const ti=Or?wr:xt.errors,ci=Or?Yn:xt.warnings;return qe(ti,ci,xt,"",!!wt,Ct)}(),Jr=Se()(Xn,Ze,bt,{[`${Xn}-with-help`]:yr||wr.length||Yn.length,[`${Xn}-has-feedback`]:Zr&&wt,[`${Xn}-has-success`]:Zr==="success",[`${Xn}-has-warning`]:Zr==="warning",[`${Xn}-has-error`]:Zr==="error",[`${Xn}-is-validating`]:Zr==="validating",[`${Xn}-hidden`]:Ft,[`${Xn}-${fr}`]:fr});return fe.createElement("div",{className:Jr,style:Pe,ref:Cr},fe.createElement(Ut.Z,Object.assign({className:`${Xn}-row`},(0,nn.Z)(Qn,["_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"])),fe.createElement(gn,Object.assign({htmlFor:On},Re,{requiredMark:Jn,required:An!=null?An:er,prefixCls:vt,vertical:Er})),fe.createElement(Be,Object.assign({},Re,xt,{errors:wr,warnings:Yn,prefixCls:vt,status:Zr,help:It,marginBottom:Yr,onErrorVisibleChanged:Ur}),fe.createElement(b.qI.Provider,{value:sr},fe.createElement(Xt,{prefixCls:vt,meta:xt,errors:xt.errors,warnings:xt.warnings,hasFeedback:wt,validateStatus:Zr},Tn)))),!!Yr&&fe.createElement("div",{className:`${Xn}-margin-offset`,style:{marginBottom:-Yr}}))}const wn="__SPLIT__",$n=null;function xn(Re,vt){const Ze=Object.keys(Re),bt=Object.keys(vt);return Ze.length===bt.length&&Ze.every(Pe=>{const It=Re[Pe],Bt=vt[Pe];return It===Bt||typeof It=="function"||typeof Bt=="function"})}const hn=fe.memo(Re=>{let{children:vt}=Re;return vt},(Re,vt)=>xn(Re.control,vt.control)&&Re.update===vt.update&&Re.childProps.length===vt.childProps.length&&Re.childProps.every((Ze,bt)=>Ze===vt.childProps[bt]));function Zn(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Wn(Re){const{name:vt,noStyle:Ze,className:bt,dependencies:Pe,prefixCls:It,shouldUpdate:Bt,rules:Kt,children:Ct,required:xt,label:wt,messageVariables:Ft,trigger:Tn="onChange",validateTrigger:On,hidden:An,help:er,layout:sr}=Re,{getPrefixCls:fr}=fe.useContext(Yt.E_),{name:Qn}=fe.useContext(b.q3),Xn=Ne(Ct),Jn=typeof Xn=="function",ur=fe.useContext(b.qI),{validateTrigger:Er}=fe.useContext(st.FieldContext),Cr=On!==void 0?On:Er,wr=vt!=null,Yn=fr("form",It),yr=(0,je.Z)(Yn),[mr,_r,Yr]=at(Yn,yr),Vr=(0,ht.ln)("Form.Item"),Ur=fe.useContext(st.ListContext),oi=fe.useRef(null),[Zr,Jr]=we({}),[Or,ti]=(0,re.Z)(()=>Zn()),ci=Lr=>{const cr=Ur==null?void 0:Ur.getKey(Lr.name);if(ti(Lr.destroy?Zn():Lr,!0),Ze&&er!==!1&&ur){let Nn=Lr.name;if(Lr.destroy)Nn=oi.current||Nn;else if(cr!==void 0){const[Kn,Vn]=cr;Nn=[Kn].concat((0,ze.Z)(Vn)),oi.current=Nn}ur(Lr,Nn)}},Fi=(Lr,cr)=>{Jr(Nn=>{const Kn=Object.assign({},Nn),Bn=[].concat((0,ze.Z)(Lr.name.slice(0,-1)),(0,ze.Z)(cr)).join(wn);return Lr.destroy?delete Kn[Bn]:Kn[Bn]=Lr,Kn})},[vi,xi]=fe.useMemo(()=>{const Lr=(0,ze.Z)(Or.errors),cr=(0,ze.Z)(Or.warnings);return Object.values(Zr).forEach(Nn=>{Lr.push.apply(Lr,(0,ze.Z)(Nn.errors||[])),cr.push.apply(cr,(0,ze.Z)(Nn.warnings||[]))}),[Lr,cr]},[Zr,Or.errors,Or.warnings]),hi=De();function bi(Lr,cr,Nn){return Ze&&!An?fe.createElement(Xt,{prefixCls:Yn,hasFeedback:Re.hasFeedback,validateStatus:Re.validateStatus,meta:Or,errors:vi,warnings:xi,noStyle:!0},Lr):fe.createElement(pn,Object.assign({key:"row"},Re,{className:Se()(bt,Yr,yr,_r),prefixCls:Yn,fieldId:cr,isRequired:Nn,errors:vi,warnings:xi,meta:Or,onSubItemMetaChange:Fi,layout:sr}),Lr)}if(!wr&&!Jn&&!Pe)return mr(bi(Xn));let Rr={};return typeof wt=="string"?Rr.label=wt:vt&&(Rr.label=String(vt)),Ft&&(Rr=Object.assign(Object.assign({},Rr),Ft)),mr(fe.createElement(st.Field,Object.assign({},Re,{messageVariables:Rr,trigger:Tn,validateTrigger:Cr,onMetaChange:ci}),(Lr,cr,Nn)=>{const Kn=tt(vt).length&&cr?cr.name:[],Vn=Wt(Kn,Qn),Bn=xt!==void 0?xt:!!(Kt!=null&&Kt.some(jn=>{if(jn&&typeof jn=="object"&&jn.required&&!jn.warningOnly)return!0;if(typeof jn=="function"){const Ln=jn(Nn);return(Ln==null?void 0:Ln.required)&&!(Ln!=null&&Ln.warningOnly)}return!1})),lr=Object.assign({},Lr);let br=null;if(Array.isArray(Xn)&&wr)br=Xn;else if(!(Jn&&(!(Bt||Pe)||wr))){if(!(Pe&&!Jn&&!wr))if(fe.isValidElement(Xn)){const jn=Object.assign(Object.assign({},Xn.props),lr);if(jn.id||(jn.id=Vn),er||vi.length>0||xi.length>0||Re.extra){const nr=[];(er||vi.length>0)&&nr.push(`${Vn}_help`),Re.extra&&nr.push(`${Vn}_extra`),jn["aria-describedby"]=nr.join(" ")}vi.length>0&&(jn["aria-invalid"]="true"),Bn&&(jn["aria-required"]="true"),(0,le.Yr)(Xn)&&(jn.ref=hi(Kn,Xn)),new Set([].concat((0,ze.Z)(tt(Tn)),(0,ze.Z)(tt(Cr)))).forEach(nr=>{jn[nr]=function(){for(var Qr,Ei,pi,Ni,Ii,Pi=arguments.length,$i=new Array(Pi),Ai=0;Ai<Pi;Ai++)$i[Ai]=arguments[Ai];(pi=lr[nr])===null||pi===void 0||(Qr=pi).call.apply(Qr,[lr].concat($i)),(Ii=(Ni=Xn.props)[nr])===null||Ii===void 0||(Ei=Ii).call.apply(Ei,[Ni].concat($i))}});const Gn=[jn["aria-required"],jn["aria-invalid"],jn["aria-describedby"]];br=fe.createElement(hn,{control:lr,update:Xn,childProps:Gn},(0,be.Tm)(Xn,jn))}else Jn&&(Bt||Pe)&&!wr?br=Xn(Nn):br=Xn}return bi(br,Vn,Bn)}))}const ir=Wn;ir.useStatus=Ge;var tr=ir,sn=function(Re,vt){var Ze={};for(var bt in Re)Object.prototype.hasOwnProperty.call(Re,bt)&&vt.indexOf(bt)<0&&(Ze[bt]=Re[bt]);if(Re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,bt=Object.getOwnPropertySymbols(Re);Pe<bt.length;Pe++)vt.indexOf(bt[Pe])<0&&Object.prototype.propertyIsEnumerable.call(Re,bt[Pe])&&(Ze[bt[Pe]]=Re[bt[Pe]]);return Ze},zn=Re=>{var{prefixCls:vt,children:Ze}=Re,bt=sn(Re,["prefixCls","children"]);const{getPrefixCls:Pe}=fe.useContext(Yt.E_),It=Pe("form",vt),Bt=fe.useMemo(()=>({prefixCls:It,status:"error"}),[It]);return fe.createElement(st.List,Object.assign({},bt),(Kt,Ct,xt)=>fe.createElement(b.Rk.Provider,{value:Bt},Ze(Kt.map(wt=>Object.assign(Object.assign({},wt),{fieldKey:wt.key})),Ct,{errors:xt.errors,warnings:xt.warnings})))};function Hn(){const{form:Re}=fe.useContext(b.q3);return Re}const ut=ce;ut.Item=tr,ut.List=zn,ut.ErrorList=He,ut.useForm=gt,ut.useFormInstance=Hn,ut.useWatch=st.useWatch,ut.Provider=b.RV,ut.create=()=>{};var Pt=ut},4875:function(In,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Jt}});var b=ee(59301),ze=ee(84105),fe=ee(87395),nt=ee(92310),Se=ee.n(nt),xe=ee(60499),Ee=ee(18642),je=ee(43749),Ie=ee(72190),ue=ee(42244),et=ee(38705),Te=ee(17212);function At(){return typeof BigInt=="function"}function lt(Be){return!Be&&Be!==0&&!Number.isNaN(Be)||!String(Be).trim()}function it(Be){var ft=Be.trim(),Dt=ft.startsWith("-");Dt&&(ft=ft.slice(1)),ft=ft.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),ft.startsWith(".")&&(ft="0".concat(ft));var Vt=ft||"0",un=Vt.split("."),En=un[0]||"0",Mn=un[1]||"0";En==="0"&&Mn==="0"&&(Dt=!1);var Fn=Dt?"-":"";return{negative:Dt,negativeStr:Fn,trimStr:Vt,integerStr:En,decimalStr:Mn,fullStr:"".concat(Fn).concat(Vt)}}function We(Be){var ft=String(Be);return!Number.isNaN(Number(ft))&&ft.includes("e")}function ke(Be){var ft=String(Be);if(We(Be)){var Dt=Number(ft.slice(ft.indexOf("e-")+2)),Vt=ft.match(/\.(\d+)/);return Vt!=null&&Vt[1]&&(Dt+=Vt[1].length),Dt}return ft.includes(".")&&yt(ft)?ft.length-ft.indexOf(".")-1:0}function ot(Be){var ft=String(Be);if(We(Be)){if(Be>Number.MAX_SAFE_INTEGER)return String(At()?BigInt(Be).toString():Number.MAX_SAFE_INTEGER);if(Be<Number.MIN_SAFE_INTEGER)return String(At()?BigInt(Be).toString():Number.MIN_SAFE_INTEGER);ft=Be.toFixed(ke(ft))}return it(ft).fullStr}function yt(Be){return typeof Be=="number"?!Number.isNaN(Be):Be?/^\s*-?\d+(\.\d+)?\s*$/.test(Be)||/^\s*-?\d+\.\s*$/.test(Be)||/^\s*-?\.\d+\s*$/.test(Be):!1}var Nt=function(){function Be(ft){if((0,et.Z)(this,Be),(0,Ee.Z)(this,"origin",""),(0,Ee.Z)(this,"negative",void 0),(0,Ee.Z)(this,"integer",void 0),(0,Ee.Z)(this,"decimal",void 0),(0,Ee.Z)(this,"decimalLen",void 0),(0,Ee.Z)(this,"empty",void 0),(0,Ee.Z)(this,"nan",void 0),lt(ft)){this.empty=!0;return}if(this.origin=String(ft),ft==="-"||Number.isNaN(ft)){this.nan=!0;return}var Dt=ft;if(We(Dt)&&(Dt=Number(Dt)),Dt=typeof Dt=="string"?Dt:ot(Dt),yt(Dt)){var Vt=it(Dt);this.negative=Vt.negative;var un=Vt.trimStr.split(".");this.integer=BigInt(un[0]);var En=un[1]||"0";this.decimal=BigInt(En),this.decimalLen=En.length}else this.nan=!0}return(0,Te.Z)(Be,[{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(Dt){var Vt="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(Dt,"0"));return BigInt(Vt)}},{key:"negate",value:function(){var Dt=new Be(this.toString());return Dt.negative=!Dt.negative,Dt}},{key:"cal",value:function(Dt,Vt,un){var En=Math.max(this.getDecimalStr().length,Dt.getDecimalStr().length),Mn=this.alignDecimal(En),Fn=Dt.alignDecimal(En),gn=Vt(Mn,Fn).toString(),kn=un(En),dn=it(gn),zt=dn.negativeStr,rn=dn.trimStr,on="".concat(zt).concat(rn.padStart(kn+1,"0"));return new Be("".concat(on.slice(0,-kn),".").concat(on.slice(-kn)))}},{key:"add",value:function(Dt){if(this.isInvalidate())return new Be(Dt);var Vt=new Be(Dt);return Vt.isInvalidate()?this:this.cal(Vt,function(un,En){return un+En},function(un){return un})}},{key:"multi",value:function(Dt){var Vt=new Be(Dt);return this.isInvalidate()||Vt.isInvalidate()?new Be(NaN):this.cal(Vt,function(un,En){return un*En},function(un){return un*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(Dt){return this.toString()===(Dt==null?void 0:Dt.toString())}},{key:"lessEquals",value:function(Dt){return this.add(Dt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var Dt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return Dt?this.isInvalidate()?"":it("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),Be}(),Fe=function(){function Be(ft){if((0,et.Z)(this,Be),(0,Ee.Z)(this,"origin",""),(0,Ee.Z)(this,"number",void 0),(0,Ee.Z)(this,"empty",void 0),lt(ft)){this.empty=!0;return}this.origin=String(ft),this.number=Number(ft)}return(0,Te.Z)(Be,[{key:"negate",value:function(){return new Be(-this.toNumber())}},{key:"add",value:function(Dt){if(this.isInvalidate())return new Be(Dt);var Vt=Number(Dt);if(Number.isNaN(Vt))return this;var un=this.number+Vt;if(un>Number.MAX_SAFE_INTEGER)return new Be(Number.MAX_SAFE_INTEGER);if(un<Number.MIN_SAFE_INTEGER)return new Be(Number.MIN_SAFE_INTEGER);var En=Math.max(ke(this.number),ke(Vt));return new Be(un.toFixed(En))}},{key:"multi",value:function(Dt){var Vt=Number(Dt);if(this.isInvalidate()||Number.isNaN(Vt))return new Be(NaN);var un=this.number*Vt;if(un>Number.MAX_SAFE_INTEGER)return new Be(Number.MAX_SAFE_INTEGER);if(un<Number.MIN_SAFE_INTEGER)return new Be(Number.MIN_SAFE_INTEGER);var En=Math.max(ke(this.number),ke(Vt));return new Be(un.toFixed(En))}},{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(Dt){return this.toNumber()===(Dt==null?void 0:Dt.toNumber())}},{key:"lessEquals",value:function(Dt){return this.add(Dt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var Dt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return Dt?this.isInvalidate()?"":ot(this.number):this.origin}}]),Be}();function Me(Be){return At()?new Nt(Be):new Fe(Be)}function Xe(Be,ft,Dt){var Vt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(Be==="")return"";var un=it(Be),En=un.negativeStr,Mn=un.integerStr,Fn=un.decimalStr,gn="".concat(ft).concat(Fn),kn="".concat(En).concat(Mn);if(Dt>=0){var dn=Number(Fn[Dt]);if(dn>=5&&!Vt){var zt=Me(Be).add("".concat(En,"0.").concat("0".repeat(Dt)).concat(10-dn));return Xe(zt.toString(),ft,Dt,Vt)}return Dt===0?kn:"".concat(kn).concat(ft).concat(Fn.padEnd(Dt,"0").slice(0,Dt))}return gn===".0"?kn:"".concat(kn).concat(gn)}var Je=Me,$t=ee(36901),ct=ee(34280);function Ye(Be,ft){return typeof Proxy!="undefined"&&Be?new Proxy(Be,{get:function(Vt,un){if(ft[un])return ft[un];var En=Vt[un];return typeof En=="function"?En.bind(Vt):En}}):Be}var rt=ee(8654),Ce=ee(48736);function at(Be,ft){var Dt=(0,b.useRef)(null);function Vt(){try{var En=Be.selectionStart,Mn=Be.selectionEnd,Fn=Be.value,gn=Fn.substring(0,En),kn=Fn.substring(Mn);Dt.current={start:En,end:Mn,value:Fn,beforeTxt:gn,afterTxt:kn}}catch(dn){}}function un(){if(Be&&Dt.current&&ft)try{var En=Be.value,Mn=Dt.current,Fn=Mn.beforeTxt,gn=Mn.afterTxt,kn=Mn.start,dn=En.length;if(En.startsWith(Fn))dn=Fn.length;else if(En.endsWith(gn))dn=En.length-Dt.current.afterTxt.length;else{var zt=Fn[kn-1],rn=En.indexOf(zt,kn-1);rn!==-1&&(dn=rn+1)}Be.setSelectionRange(dn,dn)}catch(on){(0,Ce.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(on.message))}}return[Vt,un]}var _e=ee(49658),de=function(){var ft=(0,b.useState)(!1),Dt=(0,Ie.Z)(ft,2),Vt=Dt[0],un=Dt[1];return(0,ct.Z)(function(){un((0,_e.Z)())},[]),Vt},Et=de,He=ee(16089),st=200,Yt=600;function Oe(Be){var ft=Be.prefixCls,Dt=Be.upNode,Vt=Be.downNode,un=Be.upDisabled,En=Be.downDisabled,Mn=Be.onStep,Fn=b.useRef(),gn=b.useRef([]),kn=b.useRef();kn.current=Mn;var dn=function(){clearTimeout(Fn.current)},zt=function(xn,hn){xn.preventDefault(),dn(),kn.current(hn);function Zn(){kn.current(hn),Fn.current=setTimeout(Zn,st)}Fn.current=setTimeout(Zn,Yt)};b.useEffect(function(){return function(){dn(),gn.current.forEach(function($n){return He.Z.cancel($n)})}},[]);var rn=Et();if(rn)return null;var on="".concat(ft,"-handler"),Xt=Se()(on,"".concat(on,"-up"),(0,Ee.Z)({},"".concat(on,"-up-disabled"),un)),vn=Se()(on,"".concat(on,"-down"),(0,Ee.Z)({},"".concat(on,"-down-disabled"),En)),pn=function(){return gn.current.push((0,He.Z)(dn))},wn={unselectable:"on",role:"button",onMouseUp:pn,onMouseLeave:pn};return b.createElement("div",{className:"".concat(on,"-wrap")},b.createElement("span",(0,xe.Z)({},wn,{onMouseDown:function(xn){zt(xn,!0)},"aria-label":"Increase Value","aria-disabled":un,className:Xt}),Dt||b.createElement("span",{unselectable:"on",className:"".concat(ft,"-handler-up-inner")})),b.createElement("span",(0,xe.Z)({},wn,{onMouseDown:function(xn){zt(xn,!1)},"aria-label":"Decrease Value","aria-disabled":En,className:vn}),Vt||b.createElement("span",{unselectable:"on",className:"".concat(ft,"-handler-down-inner")})))}function pe(Be){var ft=typeof Be=="number"?ot(Be):it(Be).fullStr,Dt=ft.includes(".");return Dt?it(ft.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:Be+"0"}var Lt=ee(30292),en=function(){var Be=(0,b.useRef)(0),ft=function(){He.Z.cancel(Be.current)};return(0,b.useEffect)(function(){return ft},[]),function(Dt){ft(),Be.current=(0,He.Z)(function(){Dt()})}},Ot=["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"],ge=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],Ke=function(ft,Dt){return ft||Dt.isEmpty()?Dt.toString():Dt.toNumber()},tt=function(ft){var Dt=Je(ft);return Dt.isInvalidate()?null:Dt},Wt=b.forwardRef(function(Be,ft){var Dt=Be.prefixCls,Vt=Be.className,un=Be.style,En=Be.min,Mn=Be.max,Fn=Be.step,gn=Fn===void 0?1:Fn,kn=Be.defaultValue,dn=Be.value,zt=Be.disabled,rn=Be.readOnly,on=Be.upHandler,Xt=Be.downHandler,vn=Be.keyboard,pn=Be.changeOnWheel,wn=pn===void 0?!1:pn,$n=Be.controls,xn=$n===void 0?!0:$n,hn=Be.classNames,Zn=Be.stringMode,Wn=Be.parser,ir=Be.formatter,tr=Be.precision,sn=Be.decimalSeparator,yn=Be.onChange,zn=Be.onInput,Hn=Be.onPressEnter,ut=Be.onStep,Pt=Be.changeOnBlur,Re=Pt===void 0?!0:Pt,vt=Be.domRef,Ze=(0,ue.Z)(Be,Ot),bt="".concat(Dt,"-input"),Pe=b.useRef(null),It=b.useState(!1),Bt=(0,Ie.Z)(It,2),Kt=Bt[0],Ct=Bt[1],xt=b.useRef(!1),wt=b.useRef(!1),Ft=b.useRef(!1),Tn=b.useState(function(){return Je(dn!=null?dn:kn)}),On=(0,Ie.Z)(Tn,2),An=On[0],er=On[1];function sr(Vn){dn===void 0&&er(Vn)}var fr=b.useCallback(function(Vn,Bn){if(!Bn)return tr>=0?tr:Math.max(ke(Vn),ke(gn))},[tr,gn]),Qn=b.useCallback(function(Vn){var Bn=String(Vn);if(Wn)return Wn(Bn);var lr=Bn;return sn&&(lr=lr.replace(sn,".")),lr.replace(/[^\w.-]+/g,"")},[Wn,sn]),Xn=b.useRef(""),Jn=b.useCallback(function(Vn,Bn){if(ir)return ir(Vn,{userTyping:Bn,input:String(Xn.current)});var lr=typeof Vn=="number"?ot(Vn):Vn;if(!Bn){var br=fr(lr,Bn);if(yt(lr)&&(sn||br>=0)){var jn=sn||".";lr=Xe(lr,jn,br)}}return lr},[ir,fr,sn]),ur=b.useState(function(){var Vn=kn!=null?kn:dn;return An.isInvalidate()&&["string","number"].includes((0,je.Z)(Vn))?Number.isNaN(Vn)?"":Vn:Jn(An.toString(),!1)}),Er=(0,Ie.Z)(ur,2),Cr=Er[0],wr=Er[1];Xn.current=Cr;function Yn(Vn,Bn){wr(Jn(Vn.isInvalidate()?Vn.toString(!1):Vn.toString(!Bn),Bn))}var yr=b.useMemo(function(){return tt(Mn)},[Mn,tr]),mr=b.useMemo(function(){return tt(En)},[En,tr]),_r=b.useMemo(function(){return!yr||!An||An.isInvalidate()?!1:yr.lessEquals(An)},[yr,An]),Yr=b.useMemo(function(){return!mr||!An||An.isInvalidate()?!1:An.lessEquals(mr)},[mr,An]),Vr=at(Pe.current,Kt),Ur=(0,Ie.Z)(Vr,2),oi=Ur[0],Zr=Ur[1],Jr=function(Bn){return yr&&!Bn.lessEquals(yr)?yr:mr&&!mr.lessEquals(Bn)?mr:null},Or=function(Bn){return!Jr(Bn)},ti=function(Bn,lr){var br=Bn,jn=Or(br)||br.isEmpty();if(!br.isEmpty()&&!lr&&(br=Jr(br)||br,jn=!0),!rn&&!zt&&jn){var Ln=br.toString(),Gn=fr(Ln,lr);return Gn>=0&&(br=Je(Xe(Ln,".",Gn)),Or(br)||(br=Je(Xe(Ln,".",Gn,!0)))),br.equals(An)||(sr(br),yn==null||yn(br.isEmpty()?null:Ke(Zn,br)),dn===void 0&&Yn(br,lr)),br}return An},ci=en(),Fi=function Vn(Bn){if(oi(),Xn.current=Bn,wr(Bn),!wt.current){var lr=Qn(Bn),br=Je(lr);br.isNaN()||ti(br,!0)}zn==null||zn(Bn),ci(function(){var jn=Bn;Wn||(jn=Bn.replace(/。/g,".")),jn!==Bn&&Vn(jn)})},vi=function(){wt.current=!0},xi=function(){wt.current=!1,Fi(Pe.current.value)},hi=function(Bn){Fi(Bn.target.value)},bi=function(Bn){var lr;if(!(Bn&&_r||!Bn&&Yr)){xt.current=!1;var br=Je(Ft.current?pe(gn):gn);Bn||(br=br.negate());var jn=(An||Je(0)).add(br.toString()),Ln=ti(jn,!1);ut==null||ut(Ke(Zn,Ln),{offset:Ft.current?pe(gn):gn,type:Bn?"up":"down"}),(lr=Pe.current)===null||lr===void 0||lr.focus()}},Rr=function(Bn){var lr=Je(Qn(Cr)),br;lr.isNaN()?br=ti(An,Bn):br=ti(lr,Bn),dn!==void 0?Yn(An,!1):br.isNaN()||Yn(br,!1)},Lr=function(){xt.current=!0},cr=function(Bn){var lr=Bn.key,br=Bn.shiftKey;xt.current=!0,Ft.current=br,lr==="Enter"&&(wt.current||(xt.current=!1),Rr(!1),Hn==null||Hn(Bn)),vn!==!1&&!wt.current&&["Up","ArrowUp","Down","ArrowDown"].includes(lr)&&(bi(lr==="Up"||lr==="ArrowUp"),Bn.preventDefault())},Nn=function(){xt.current=!1,Ft.current=!1};b.useEffect(function(){if(wn&&Kt){var Vn=function(br){bi(br.deltaY<0),br.preventDefault()},Bn=Pe.current;if(Bn)return Bn.addEventListener("wheel",Vn,{passive:!1}),function(){return Bn.removeEventListener("wheel",Vn)}}});var Kn=function(){Re&&Rr(!1),Ct(!1),xt.current=!1};return(0,ct.o)(function(){An.isInvalidate()||Yn(An,!1)},[tr,ir]),(0,ct.o)(function(){var Vn=Je(dn);er(Vn);var Bn=Je(Qn(Cr));(!Vn.equals(Bn)||!xt.current||ir)&&Yn(Vn,xt.current)},[dn]),(0,ct.o)(function(){ir&&Zr()},[Cr]),b.createElement("div",{ref:vt,className:Se()(Dt,Vt,(0,Ee.Z)((0,Ee.Z)((0,Ee.Z)((0,Ee.Z)((0,Ee.Z)({},"".concat(Dt,"-focused"),Kt),"".concat(Dt,"-disabled"),zt),"".concat(Dt,"-readonly"),rn),"".concat(Dt,"-not-a-number"),An.isNaN()),"".concat(Dt,"-out-of-range"),!An.isInvalidate()&&!Or(An))),style:un,onFocus:function(){Ct(!0)},onBlur:Kn,onKeyDown:cr,onKeyUp:Nn,onCompositionStart:vi,onCompositionEnd:xi,onBeforeInput:Lr},xn&&b.createElement(Oe,{prefixCls:Dt,upNode:on,downNode:Xt,upDisabled:_r,downDisabled:Yr,onStep:bi}),b.createElement("div",{className:"".concat(bt,"-wrap")},b.createElement("input",(0,xe.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":En,"aria-valuemax":Mn,"aria-valuenow":An.isInvalidate()?null:An.toString(),step:gn},Ze,{ref:(0,rt.sQ)(Pe,ft),className:bt,value:Cr,onChange:hi,disabled:zt,readOnly:rn}))))}),qe=b.forwardRef(function(Be,ft){var Dt=Be.disabled,Vt=Be.style,un=Be.prefixCls,En=un===void 0?"rc-input-number":un,Mn=Be.value,Fn=Be.prefix,gn=Be.suffix,kn=Be.addonBefore,dn=Be.addonAfter,zt=Be.className,rn=Be.classNames,on=(0,ue.Z)(Be,ge),Xt=b.useRef(null),vn=b.useRef(null),pn=b.useRef(null),wn=function(xn){pn.current&&(0,Lt.nH)(pn.current,xn)};return b.useImperativeHandle(ft,function(){return Ye(pn.current,{focus:wn,nativeElement:Xt.current.nativeElement||vn.current})}),b.createElement($t.BaseInput,{className:zt,triggerFocus:wn,prefixCls:En,value:Mn,disabled:Dt,style:Vt,prefix:Fn,suffix:gn,addonAfter:dn,addonBefore:kn,classNames:rn,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:Xt},b.createElement(Wt,(0,xe.Z)({prefixCls:En,disabled:Dt,ref:pn,domRef:vn,className:rn==null?void 0:rn.input},on)))}),Rt=qe,Qe=Rt,tn=ee(62487),gt=ee(82855),ae=ee(48755),ne=ee(60840),te=ee(2171),oe=ee(83397),ce=ee(31756),re=ee(56553),le=ee(24971),be=ee(70045),ht=ee(36237),Le=ee(53075),Ne=ee(64910),Ve=ee(39082),Ge=ee(63356),pt=ee(56119),we=ee(16931),De=ee(51636),Zt=ee(17835);const Tt=Be=>{var ft;const Dt=(ft=Be.handleVisible)!==null&&ft!==void 0?ft:"auto",Vt=Be.controlHeightSM-Be.lineWidth*2;return Object.assign(Object.assign({},(0,Ne.T)(Be)),{controlWidth:90,handleWidth:Vt,handleFontSize:Be.fontSize/2,handleVisible:Dt,handleActiveBg:Be.colorFillAlter,handleBg:Be.colorBgContainer,filledHandleBg:new Zt.FastColor(Be.colorFillSecondary).onBackground(Be.colorBgContainer).toHexString(),handleHoverColor:Be.colorPrimary,handleBorderColor:Be.colorBorder,handleOpacity:Dt===!0?1:0,handleVisibleWidth:Dt===!0?Vt:0})},nn=(Be,ft)=>{let{componentCls:Dt,borderRadiusSM:Vt,borderRadiusLG:un}=Be;const En=ft==="lg"?un:Vt;return{[`&-${ft}`]:{[`${Dt}-handler-wrap`]:{borderStartEndRadius:En,borderEndEndRadius:En},[`${Dt}-handler-up`]:{borderStartEndRadius:En},[`${Dt}-handler-down`]:{borderEndEndRadius:En}}}},Ut=Be=>{const{componentCls:ft,lineWidth:Dt,lineType:Vt,borderRadius:un,inputFontSizeSM:En,inputFontSizeLG:Mn,controlHeightLG:Fn,controlHeightSM:gn,colorError:kn,paddingInlineSM:dn,paddingBlockSM:zt,paddingBlockLG:rn,paddingInlineLG:on,colorTextDescription:Xt,motionDurationMid:vn,handleHoverColor:pn,handleOpacity:wn,paddingInline:$n,paddingBlock:xn,handleBg:hn,handleActiveBg:Zn,colorTextDisabled:Wn,borderRadiusSM:ir,borderRadiusLG:tr,controlWidth:sn,handleBorderColor:yn,filledHandleBg:zn,lineHeightLG:Hn,calc:ut}=Be;return[{[ft]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ge.Wf)(Be)),(0,Le.ik)(Be)),{display:"inline-block",width:sn,margin:0,padding:0,borderRadius:un}),(0,Ve.qG)(Be,{[`${ft}-handler-wrap`]:{background:hn,[`${ft}-handler-down`]:{borderBlockStart:`${(0,ht.unit)(Dt)} ${Vt} ${yn}`}}})),(0,Ve.H8)(Be,{[`${ft}-handler-wrap`]:{background:zn,[`${ft}-handler-down`]:{borderBlockStart:`${(0,ht.unit)(Dt)} ${Vt} ${yn}`}},"&:focus-within":{[`${ft}-handler-wrap`]:{background:hn}}})),(0,Ve.vc)(Be,{[`${ft}-handler-wrap`]:{background:hn,[`${ft}-handler-down`]:{borderBlockStart:`${(0,ht.unit)(Dt)} ${Vt} ${yn}`}}})),(0,Ve.Mu)(Be)),{"&-rtl":{direction:"rtl",[`${ft}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:Mn,lineHeight:Hn,borderRadius:tr,[`input${ft}-input`]:{height:ut(Fn).sub(ut(Dt).mul(2)).equal(),padding:`${(0,ht.unit)(rn)} ${(0,ht.unit)(on)}`}},"&-sm":{padding:0,fontSize:En,borderRadius:ir,[`input${ft}-input`]:{height:ut(gn).sub(ut(Dt).mul(2)).equal(),padding:`${(0,ht.unit)(zt)} ${(0,ht.unit)(dn)}`}},"&-out-of-range":{[`${ft}-input-wrap`]:{input:{color:kn}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,Ge.Wf)(Be)),(0,Le.s7)(Be)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${ft}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${ft}-group-addon`]:{borderRadius:tr,fontSize:Be.fontSizeLG}},"&-sm":{[`${ft}-group-addon`]:{borderRadius:ir}}},(0,Ve.ir)(Be)),(0,Ve.S5)(Be)),{[`&:not(${ft}-compact-first-item):not(${ft}-compact-last-item)${ft}-compact-item`]:{[`${ft}, ${ft}-group-addon`]:{borderRadius:0}},[`&:not(${ft}-compact-last-item)${ft}-compact-first-item`]:{[`${ft}, ${ft}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${ft}-compact-first-item)${ft}-compact-last-item`]:{[`${ft}, ${ft}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${ft}-input`]:{cursor:"not-allowed"},[ft]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ge.Wf)(Be)),{width:"100%",padding:`${(0,ht.unit)(xn)} ${(0,ht.unit)($n)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:un,outline:0,transition:`all ${vn} linear`,appearance:"textfield",fontSize:"inherit"}),(0,Le.nz)(Be.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${ft}-handler-wrap, &-focused ${ft}-handler-wrap`]:{width:Be.handleWidth,opacity:1}})},{[ft]:Object.assign(Object.assign(Object.assign({[`${ft}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:Be.handleVisibleWidth,opacity:wn,height:"100%",borderStartStartRadius:0,borderStartEndRadius:un,borderEndEndRadius:un,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${vn}`,overflow:"hidden",[`${ft}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
|
|
|
${ft}-handler-up-inner,
|
|
|
${ft}-handler-down-inner
|
|
|
`]:{marginInlineEnd:0,fontSize:Be.handleFontSize}}},[`${ft}-handler`]:{height:"50%",overflow:"hidden",color:Xt,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${(0,ht.unit)(Dt)} ${Vt} ${yn}`,transition:`all ${vn} linear`,"&:active":{background:Zn},"&:hover":{height:"60%",[`
|
|
|
${ft}-handler-up-inner,
|
|
|
${ft}-handler-down-inner
|
|
|
`]:{color:pn}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,Ge.Ro)()),{color:Xt,transition:`all ${vn} linear`,userSelect:"none"})},[`${ft}-handler-up`]:{borderStartEndRadius:un},[`${ft}-handler-down`]:{borderEndEndRadius:un}},nn(Be,"lg")),nn(Be,"sm")),{"&-disabled, &-readonly":{[`${ft}-handler-wrap`]:{display:"none"},[`${ft}-input`]:{color:"inherit"}},[`
|
|
|
${ft}-handler-up-disabled,
|
|
|
${ft}-handler-down-disabled
|
|
|
`]:{cursor:"not-allowed"},[`
|
|
|
${ft}-handler-up-disabled:hover &-handler-up-inner,
|
|
|
${ft}-handler-down-disabled:hover &-handler-down-inner
|
|
|
`]:{color:Wn}})}]},St=Be=>{const{componentCls:ft,paddingBlock:Dt,paddingInline:Vt,inputAffixPadding:un,controlWidth:En,borderRadiusLG:Mn,borderRadiusSM:Fn,paddingInlineLG:gn,paddingInlineSM:kn,paddingBlockLG:dn,paddingBlockSM:zt,motionDurationMid:rn}=Be;return{[`${ft}-affix-wrapper`]:Object.assign(Object.assign({[`input${ft}-input`]:{padding:`${(0,ht.unit)(Dt)} 0`}},(0,Le.ik)(Be)),{position:"relative",display:"inline-flex",alignItems:"center",width:En,padding:0,paddingInlineStart:Vt,"&-lg":{borderRadius:Mn,paddingInlineStart:gn,[`input${ft}-input`]:{padding:`${(0,ht.unit)(dn)} 0`}},"&-sm":{borderRadius:Fn,paddingInlineStart:kn,[`input${ft}-input`]:{padding:`${(0,ht.unit)(zt)} 0`}},[`&:not(${ft}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${ft}-disabled`]:{background:"transparent"},[`> div${ft}`]:{width:"100%",border:"none",outline:"none",[`&${ft}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${ft}-handler-wrap`]:{zIndex:2},[ft]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:un},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:Vt,marginInlineStart:un,transition:`margin ${rn}`}},[`&:hover ${ft}-handler-wrap, &-focused ${ft}-handler-wrap`]:{width:Be.handleWidth,opacity:1},[`&:not(${ft}-affix-wrapper-without-controls):hover ${ft}-suffix`]:{marginInlineEnd:Be.calc(Be.handleWidth).add(Vt).equal()}})}};var an=(0,we.I$)("InputNumber",Be=>{const ft=(0,De.mergeToken)(Be,(0,Ne.e)(Be));return[Ut(ft),St(ft),(0,pt.c)(ft)]},Tt,{unitless:{handleOpacity:!0}}),_t=function(Be,ft){var Dt={};for(var Vt in Be)Object.prototype.hasOwnProperty.call(Be,Vt)&&ft.indexOf(Vt)<0&&(Dt[Vt]=Be[Vt]);if(Be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var un=0,Vt=Object.getOwnPropertySymbols(Be);un<Vt.length;un++)ft.indexOf(Vt[un])<0&&Object.prototype.propertyIsEnumerable.call(Be,Vt[un])&&(Dt[Vt[un]]=Be[Vt[un]]);return Dt};const $e=b.forwardRef((Be,ft)=>{const{getPrefixCls:Dt,direction:Vt}=b.useContext(ae.E_),un=b.useRef(null);b.useImperativeHandle(ft,()=>un.current);const{className:En,rootClassName:Mn,size:Fn,disabled:gn,prefixCls:kn,addonBefore:dn,addonAfter:zt,prefix:rn,suffix:on,bordered:Xt,readOnly:vn,status:pn,controls:wn,variant:$n}=Be,xn=_t(Be,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),hn=Dt("input-number",kn),Zn=(0,oe.Z)(hn),[Wn,ir,tr]=an(hn,Zn),{compactSize:sn,compactItemClassnames:yn}=(0,be.ri)(hn,Vt);let zn=b.createElement(fe.Z,{className:`${hn}-handler-up-inner`}),Hn=b.createElement(ze.Z,{className:`${hn}-handler-down-inner`});const ut=typeof wn=="boolean"?wn:void 0;typeof wn=="object"&&(zn=typeof wn.upIcon=="undefined"?zn:b.createElement("span",{className:`${hn}-handler-up-inner`},wn.upIcon),Hn=typeof wn.downIcon=="undefined"?Hn:b.createElement("span",{className:`${hn}-handler-down-inner`},wn.downIcon));const{hasFeedback:Pt,status:Re,isFormItemInput:vt,feedbackIcon:Ze}=b.useContext(re.aM),bt=(0,gt.F)(Re,pn),Pe=(0,ce.Z)(On=>{var An;return(An=Fn!=null?Fn:sn)!==null&&An!==void 0?An:On}),It=b.useContext(te.Z),Bt=gn!=null?gn:It,[Kt,Ct]=(0,le.Z)("inputNumber",$n,Xt),xt=Pt&&b.createElement(b.Fragment,null,Ze),wt=Se()({[`${hn}-lg`]:Pe==="large",[`${hn}-sm`]:Pe==="small",[`${hn}-rtl`]:Vt==="rtl",[`${hn}-in-form-item`]:vt},ir),Ft=`${hn}-group`,Tn=b.createElement(Qe,Object.assign({ref:un,disabled:Bt,className:Se()(tr,Zn,En,Mn,yn),upHandler:zn,downHandler:Hn,prefixCls:hn,readOnly:vn,controls:ut,prefix:rn,suffix:xt||on,addonBefore:dn&&b.createElement(tn.Z,{form:!0,space:!0},dn),addonAfter:zt&&b.createElement(tn.Z,{form:!0,space:!0},zt),classNames:{input:wt,variant:Se()({[`${hn}-${Kt}`]:Ct},(0,gt.Z)(hn,bt,Pt)),affixWrapper:Se()({[`${hn}-affix-wrapper-sm`]:Pe==="small",[`${hn}-affix-wrapper-lg`]:Pe==="large",[`${hn}-affix-wrapper-rtl`]:Vt==="rtl",[`${hn}-affix-wrapper-without-controls`]:wn===!1||Bt},ir),wrapper:Se()({[`${Ft}-rtl`]:Vt==="rtl"},ir),groupWrapper:Se()({[`${hn}-group-wrapper-sm`]:Pe==="small",[`${hn}-group-wrapper-lg`]:Pe==="large",[`${hn}-group-wrapper-rtl`]:Vt==="rtl",[`${hn}-group-wrapper-${Kt}`]:Ct},(0,gt.Z)(`${hn}-group-wrapper`,bt,Pt),ir)}},xn));return Wn(Tn)}),mt=$e,jt=Be=>b.createElement(ne.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},b.createElement($e,Object.assign({},Be)));mt._InternalPanelDoNotUseOrYouWillBeFired=jt;var Jt=mt},49397:function(In,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Fe}});var b=ee(59301),ze=ee(92310),fe=ee.n(ze),nt=ee(36901),Se=ee(8654),xe=ee(62487),Ee=ee(86013),je=ee(82855),Ie=ee(48755),ue=ee(2171),et=ee(83397),Te=ee(31756),At=ee(56553),lt=ee(24971),it=ee(70045),We=ee(23826),ke=ee(53075);function ot(Me){return!!(Me.prefix||Me.suffix||Me.allowClear||Me.showCount)}var yt=function(Me,Xe){var Je={};for(var $t in Me)Object.prototype.hasOwnProperty.call(Me,$t)&&Xe.indexOf($t)<0&&(Je[$t]=Me[$t]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,$t=Object.getOwnPropertySymbols(Me);ct<$t.length;ct++)Xe.indexOf($t[ct])<0&&Object.prototype.propertyIsEnumerable.call(Me,$t[ct])&&(Je[$t[ct]]=Me[$t[ct]]);return Je},Fe=(0,b.forwardRef)((Me,Xe)=>{const{prefixCls:Je,bordered:$t=!0,status:ct,size:Ye,disabled:rt,onBlur:Ce,onFocus:at,suffix:_e,allowClear:de,addonAfter:Et,addonBefore:He,className:st,style:Yt,styles:Oe,rootClassName:pe,onChange:Lt,classNames:en,variant:Ot}=Me,ge=yt(Me,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:Ke,direction:tt,allowClear:Wt,autoComplete:qe,className:Rt,style:Qe,classNames:tn,styles:gt}=(0,Ie.dj)("input"),ae=Ke("input",Je),ne=(0,b.useRef)(null),te=(0,et.Z)(ae),[oe,ce,re]=(0,ke.TI)(ae,pe),[le]=(0,ke.ZP)(ae,te),{compactSize:be,compactItemClassnames:ht}=(0,it.ri)(ae,tt),Le=(0,Te.Z)(Jt=>{var Be;return(Be=Ye!=null?Ye:be)!==null&&Be!==void 0?Be:Jt}),Ne=b.useContext(ue.Z),Ve=rt!=null?rt:Ne,{status:Ge,hasFeedback:pt,feedbackIcon:we}=(0,b.useContext)(At.aM),De=(0,je.F)(Ge,ct),Zt=ot(Me)||!!pt,Tt=(0,b.useRef)(Zt),nn=(0,We.Z)(ne,!0),Ut=Jt=>{nn(),Ce==null||Ce(Jt)},St=Jt=>{nn(),at==null||at(Jt)},an=Jt=>{nn(),Lt==null||Lt(Jt)},_t=(pt||_e)&&b.createElement(b.Fragment,null,_e,pt&&we),$e=(0,Ee.Z)(de!=null?de:Wt),[mt,jt]=(0,lt.Z)("input",Ot,$t);return oe(le(b.createElement(nt.default,Object.assign({ref:(0,Se.sQ)(Xe,ne),prefixCls:ae,autoComplete:qe},ge,{disabled:Ve,onBlur:Ut,onFocus:St,style:Object.assign(Object.assign({},Qe),Yt),styles:Object.assign(Object.assign({},gt),Oe),suffix:_t,allowClear:$e,className:fe()(st,pe,re,te,ht,Rt),onChange:an,addonBefore:He&&b.createElement(xe.Z,{form:!0,space:!0},He),addonAfter:Et&&b.createElement(xe.Z,{form:!0,space:!0},Et),classNames:Object.assign(Object.assign(Object.assign({},en),tn),{input:fe()({[`${ae}-sm`]:Le==="small",[`${ae}-lg`]:Le==="large",[`${ae}-rtl`]:tt==="rtl"},en==null?void 0:en.input,tn.input,ce),variant:fe()({[`${ae}-${mt}`]:jt},(0,je.Z)(ae,De)),affixWrapper:fe()({[`${ae}-affix-wrapper-sm`]:Le==="small",[`${ae}-affix-wrapper-lg`]:Le==="large",[`${ae}-affix-wrapper-rtl`]:tt==="rtl"},ce),wrapper:fe()({[`${ae}-group-rtl`]:tt==="rtl"},ce),groupWrapper:fe()({[`${ae}-group-wrapper-sm`]:Le==="small",[`${ae}-group-wrapper-lg`]:Le==="large",[`${ae}-group-wrapper-rtl`]:tt==="rtl",[`${ae}-group-wrapper-${mt}`]:jt},(0,je.Z)(`${ae}-group-wrapper`,De,pt),ce)})}))))})},79809:function(In,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Xe}});var b=ee(59301),ze=ee(92310),fe=ee.n(ze),nt=ee(22711),Se=ee(86013),xe=ee(82855),Ee=ee(48755),je=ee(2171),Ie=ee(83397),ue=ee(31756),et=ee(56553),Te=ee(24971),At=ee(70045),lt=ee(30292),it=ee(53075),We=ee(16931),ke=ee(51636),ot=ee(64910);const yt=Je=>{const{componentCls:$t,paddingLG:ct}=Je,Ye=`${$t}-textarea`;return{[`textarea${$t}`]:{maxWidth:"100%",height:"auto",minHeight:Je.controlHeight,lineHeight:Je.lineHeight,verticalAlign:"bottom",transition:`all ${Je.motionDurationSlow}`,resize:"vertical",[`&${$t}-mouse-active`]:{transition:`all ${Je.motionDurationSlow}, height 0s, width 0s`}},[`${$t}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[Ye]:{position:"relative","&-show-count":{[`> ${$t}`]:{height:"100%"},[`${$t}-data-count`]:{position:"absolute",bottom:Je.calc(Je.fontSize).mul(Je.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:Je.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
|
|
|
&-allow-clear > ${$t},
|
|
|
&-affix-wrapper${Ye}-has-feedback ${$t}
|
|
|
`]:{paddingInlineEnd:ct},[`&-affix-wrapper${$t}-affix-wrapper`]:{padding:0,[`> textarea${$t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:Je.calc(Je.controlHeight).sub(Je.calc(Je.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${$t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${$t}-clear-icon`]:{position:"absolute",insetInlineEnd:Je.paddingInline,insetBlockStart:Je.paddingXS},[`${Ye}-suffix`]:{position:"absolute",top:0,insetInlineEnd:Je.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${$t}-affix-wrapper-sm`]:{[`${$t}-suffix`]:{[`${$t}-clear-icon`]:{insetInlineEnd:Je.paddingInlineSM}}}}}};var Nt=(0,We.I$)(["Input","TextArea"],Je=>{const $t=(0,ke.mergeToken)(Je,(0,ot.e)(Je));return[yt($t)]},ot.T,{resetFont:!1}),Fe=function(Je,$t){var ct={};for(var Ye in Je)Object.prototype.hasOwnProperty.call(Je,Ye)&&$t.indexOf(Ye)<0&&(ct[Ye]=Je[Ye]);if(Je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,Ye=Object.getOwnPropertySymbols(Je);rt<Ye.length;rt++)$t.indexOf(Ye[rt])<0&&Object.prototype.propertyIsEnumerable.call(Je,Ye[rt])&&(ct[Ye[rt]]=Je[Ye[rt]]);return ct},Xe=(0,b.forwardRef)((Je,$t)=>{var ct;const{prefixCls:Ye,bordered:rt=!0,size:Ce,disabled:at,status:_e,allowClear:de,classNames:Et,rootClassName:He,className:st,style:Yt,styles:Oe,variant:pe,showCount:Lt,onMouseDown:en,onResize:Ot}=Je,ge=Fe(Je,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:Ke,direction:tt,allowClear:Wt,autoComplete:qe,className:Rt,style:Qe,classNames:tn,styles:gt}=(0,Ee.dj)("textArea"),ae=b.useContext(je.Z),ne=at!=null?at:ae,{status:te,hasFeedback:oe,feedbackIcon:ce}=b.useContext(et.aM),re=(0,xe.F)(te,_e),le=b.useRef(null);b.useImperativeHandle($t,()=>{var jt;return{resizableTextArea:(jt=le.current)===null||jt===void 0?void 0:jt.resizableTextArea,focus:Jt=>{var Be,ft;(0,lt.nH)((ft=(Be=le.current)===null||Be===void 0?void 0:Be.resizableTextArea)===null||ft===void 0?void 0:ft.textArea,Jt)},blur:()=>{var Jt;return(Jt=le.current)===null||Jt===void 0?void 0:Jt.blur()}}});const be=Ke("input",Ye),ht=(0,Ie.Z)(be),[Le,Ne,Ve]=(0,it.TI)(be,He),[Ge]=Nt(be,ht),{compactSize:pt,compactItemClassnames:we}=(0,At.ri)(be,tt),De=(0,ue.Z)(jt=>{var Jt;return(Jt=Ce!=null?Ce:pt)!==null&&Jt!==void 0?Jt:jt}),[Zt,Tt]=(0,Te.Z)("textArea",pe,rt),nn=(0,Se.Z)(de!=null?de:Wt),[Ut,St]=b.useState(!1),[an,_t]=b.useState(!1),$e=jt=>{St(!0),en==null||en(jt);const Jt=()=>{St(!1),document.removeEventListener("mouseup",Jt)};document.addEventListener("mouseup",Jt)},mt=jt=>{var Jt,Be;if(Ot==null||Ot(jt),Ut&&typeof getComputedStyle=="function"){const ft=(Be=(Jt=le.current)===null||Jt===void 0?void 0:Jt.nativeElement)===null||Be===void 0?void 0:Be.querySelector("textarea");ft&&getComputedStyle(ft).resize==="both"&&_t(!0)}};return Le(Ge(b.createElement(nt.default,Object.assign({autoComplete:qe},ge,{style:Object.assign(Object.assign({},Qe),Yt),styles:Object.assign(Object.assign({},gt),Oe),disabled:ne,allowClear:nn,className:fe()(Ve,ht,st,He,we,Rt,an&&`${be}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},Et),tn),{textarea:fe()({[`${be}-sm`]:De==="small",[`${be}-lg`]:De==="large"},Ne,Et==null?void 0:Et.textarea,tn.textarea,Ut&&`${be}-mouse-active`),variant:fe()({[`${be}-${Zt}`]:Tt},(0,xe.Z)(be,re)),affixWrapper:fe()(`${be}-textarea-affix-wrapper`,{[`${be}-affix-wrapper-rtl`]:tt==="rtl",[`${be}-affix-wrapper-sm`]:De==="small",[`${be}-affix-wrapper-lg`]:De==="large",[`${be}-textarea-show-count`]:Lt||((ct=Je.count)===null||ct===void 0?void 0:ct.show)},Ne)}),prefixCls:be,suffix:oe&&b.createElement("span",{className:`${be}-textarea-suffix`},ce),showCount:Lt,ref:le,onResize:mt,onMouseDown:$e}))))})},23826:function(In,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return ze}});var b=ee(59301);function ze(fe,nt){const Se=(0,b.useRef)([]),xe=()=>{Se.current.push(setTimeout(()=>{var Ee,je,Ie,ue;!((Ee=fe.current)===null||Ee===void 0)&&Ee.input&&((je=fe.current)===null||je===void 0?void 0:je.input.getAttribute("type"))==="password"&&(!((Ie=fe.current)===null||Ie===void 0)&&Ie.input.hasAttribute("value"))&&((ue=fe.current)===null||ue===void 0||ue.input.removeAttribute("value"))}))};return(0,b.useEffect)(()=>(nt&&xe(),()=>Se.current.forEach(Ee=>{Ee&&clearTimeout(Ee)})),[]),xe}},37568:function(In,Qt,ee){"use strict";ee.d(Qt,{default:function(){return tn}});var b=ee(59301),ze=ee(92310),fe=ee.n(ze),nt=ee(48755),Se=ee(56553),xe=ee(53075),je=gt=>{const{getPrefixCls:ae,direction:ne}=(0,b.useContext)(nt.E_),{prefixCls:te,className:oe}=gt,ce=ae("input-group",te),re=ae("input"),[le,be,ht]=(0,xe.ZP)(re),Le=fe()(ce,ht,{[`${ce}-lg`]:gt.size==="large",[`${ce}-sm`]:gt.size==="small",[`${ce}-compact`]:gt.compact,[`${ce}-rtl`]:ne==="rtl"},be,oe),Ne=(0,b.useContext)(Se.aM),Ve=(0,b.useMemo)(()=>Object.assign(Object.assign({},Ne),{isFormItemInput:!1}),[Ne]);return le(b.createElement("span",{className:Le,style:gt.style,onMouseEnter:gt.onMouseEnter,onMouseLeave:gt.onMouseLeave,onFocus:gt.onFocus,onBlur:gt.onBlur},b.createElement(Se.aM.Provider,{value:Ve},gt.children)))},Ie=ee(49397),ue=ee(77654),et=ee(6089),Te=ee(26112),At=ee(82855),lt=ee(31756),it=ee(16931),We=ee(51636),ke=ee(64910);const ot=gt=>{const{componentCls:ae,paddingXS:ne}=gt;return{[ae]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:ne,"&-rtl":{direction:"rtl"},[`${ae}-input`]:{textAlign:"center",paddingInline:gt.paddingXXS},[`&${ae}-sm ${ae}-input`]:{paddingInline:gt.calc(gt.paddingXXS).div(2).equal()},[`&${ae}-lg ${ae}-input`]:{paddingInline:gt.paddingXS}}}};var yt=(0,it.I$)(["Input","OTP"],gt=>{const ae=(0,We.mergeToken)(gt,(0,ke.e)(gt));return[ot(ae)]},ke.T),Nt=ee(16089),Fe=function(gt,ae){var ne={};for(var te in gt)Object.prototype.hasOwnProperty.call(gt,te)&&ae.indexOf(te)<0&&(ne[te]=gt[te]);if(gt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,te=Object.getOwnPropertySymbols(gt);oe<te.length;oe++)ae.indexOf(te[oe])<0&&Object.prototype.propertyIsEnumerable.call(gt,te[oe])&&(ne[te[oe]]=gt[te[oe]]);return ne},Xe=b.forwardRef((gt,ae)=>{const{value:ne,onChange:te,onActiveChange:oe,index:ce,mask:re}=gt,le=Fe(gt,["value","onChange","onActiveChange","index","mask"]),be=ne&&typeof re=="string"?re:ne,ht=pt=>{te(ce,pt.target.value)},Le=b.useRef(null);b.useImperativeHandle(ae,()=>Le.current);const Ne=()=>{(0,Nt.Z)(()=>{var pt;const we=(pt=Le.current)===null||pt===void 0?void 0:pt.input;document.activeElement===we&&we&&we.select()})},Ve=pt=>{const{key:we,ctrlKey:De,metaKey:Zt}=pt;we==="ArrowLeft"?oe(ce-1):we==="ArrowRight"?oe(ce+1):we==="z"&&(De||Zt)&&pt.preventDefault(),Ne()},Ge=pt=>{pt.key==="Backspace"&&!ne&&oe(ce-1),Ne()};return b.createElement(Ie.Z,Object.assign({type:re===!0?"password":"text"},le,{ref:Le,value:be,onInput:ht,onFocus:Ne,onKeyDown:Ve,onKeyUp:Ge,onMouseDown:Ne,onMouseUp:Ne}))}),Je=function(gt,ae){var ne={};for(var te in gt)Object.prototype.hasOwnProperty.call(gt,te)&&ae.indexOf(te)<0&&(ne[te]=gt[te]);if(gt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,te=Object.getOwnPropertySymbols(gt);oe<te.length;oe++)ae.indexOf(te[oe])<0&&Object.prototype.propertyIsEnumerable.call(gt,te[oe])&&(ne[te[oe]]=gt[te[oe]]);return ne};function $t(gt){return(gt||"").split("")}const ct=gt=>{const{index:ae,prefixCls:ne,separator:te}=gt,oe=typeof te=="function"?te(ae):te;return oe?b.createElement("span",{className:`${ne}-separator`},oe):null};var rt=b.forwardRef((gt,ae)=>{const{prefixCls:ne,length:te=6,size:oe,defaultValue:ce,value:re,onChange:le,formatter:be,separator:ht,variant:Le,disabled:Ne,status:Ve,autoFocus:Ge,mask:pt,type:we,onInput:De,inputMode:Zt}=gt,Tt=Je(gt,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:nn,direction:Ut}=b.useContext(nt.E_),St=nn("otp",ne),an=(0,Te.Z)(Tt,{aria:!0,data:!0,attr:!0}),[_t,$e,mt]=yt(St),jt=(0,lt.Z)(rn=>oe!=null?oe:rn),Jt=b.useContext(Se.aM),Be=(0,At.F)(Jt.status,Ve),ft=b.useMemo(()=>Object.assign(Object.assign({},Jt),{status:Be,hasFeedback:!1,feedbackIcon:null}),[Jt,Be]),Dt=b.useRef(null),Vt=b.useRef({});b.useImperativeHandle(ae,()=>({focus:()=>{var rn;(rn=Vt.current[0])===null||rn===void 0||rn.focus()},blur:()=>{var rn;for(let on=0;on<te;on+=1)(rn=Vt.current[on])===null||rn===void 0||rn.blur()},nativeElement:Dt.current}));const un=rn=>be?be(rn):rn,[En,Mn]=b.useState(()=>$t(un(ce||"")));b.useEffect(()=>{re!==void 0&&Mn($t(re))},[re]);const Fn=(0,et.Z)(rn=>{Mn(rn),De&&De(rn),le&&rn.length===te&&rn.every(on=>on)&&rn.some((on,Xt)=>En[Xt]!==on)&&le(rn.join(""))}),gn=(0,et.Z)((rn,on)=>{let Xt=(0,ue.Z)(En);for(let pn=0;pn<rn;pn+=1)Xt[pn]||(Xt[pn]="");on.length<=1?Xt[rn]=on:Xt=Xt.slice(0,rn).concat($t(on)),Xt=Xt.slice(0,te);for(let pn=Xt.length-1;pn>=0&&!Xt[pn];pn-=1)Xt.pop();const vn=un(Xt.map(pn=>pn||" ").join(""));return Xt=$t(vn).map((pn,wn)=>pn===" "&&!Xt[wn]?Xt[wn]:pn),Xt}),kn=(rn,on)=>{var Xt;const vn=gn(rn,on),pn=Math.min(rn+on.length,te-1);pn!==rn&&vn[rn]!==void 0&&((Xt=Vt.current[pn])===null||Xt===void 0||Xt.focus()),Fn(vn)},dn=rn=>{var on;(on=Vt.current[rn])===null||on===void 0||on.focus()},zt={variant:Le,disabled:Ne,status:Be,mask:pt,type:we,inputMode:Zt};return _t(b.createElement("div",Object.assign({},an,{ref:Dt,className:fe()(St,{[`${St}-sm`]:jt==="small",[`${St}-lg`]:jt==="large",[`${St}-rtl`]:Ut==="rtl"},mt,$e)}),b.createElement(Se.aM.Provider,{value:ft},Array.from({length:te}).map((rn,on)=>{const Xt=`otp-${on}`,vn=En[on]||"";return b.createElement(b.Fragment,{key:Xt},b.createElement(Xe,Object.assign({ref:pn=>{Vt.current[on]=pn},index:on,size:jt,htmlSize:1,className:`${St}-input`,onChange:kn,value:vn,onActiveChange:dn,autoFocus:on===0&&Ge},zt)),on<te-1&&b.createElement(ct,{separator:ht,index:on,prefixCls:St}))}))))}),Ce=ee(73331),at=ee(15277),_e=ee(2738),de=ee(8654),Et=ee(2171),He=ee(23826),st=function(gt,ae){var ne={};for(var te in gt)Object.prototype.hasOwnProperty.call(gt,te)&&ae.indexOf(te)<0&&(ne[te]=gt[te]);if(gt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,te=Object.getOwnPropertySymbols(gt);oe<te.length;oe++)ae.indexOf(te[oe])<0&&Object.prototype.propertyIsEnumerable.call(gt,te[oe])&&(ne[te[oe]]=gt[te[oe]]);return ne};const Yt=gt=>gt?b.createElement(at.Z,null):b.createElement(Ce.Z,null),Oe={click:"onClick",hover:"onMouseOver"};var Lt=b.forwardRef((gt,ae)=>{const{disabled:ne,action:te="click",visibilityToggle:oe=!0,iconRender:ce=Yt}=gt,re=b.useContext(Et.Z),le=ne!=null?ne:re,be=typeof oe=="object"&&oe.visible!==void 0,[ht,Le]=(0,b.useState)(()=>be?oe.visible:!1),Ne=(0,b.useRef)(null);b.useEffect(()=>{be&&Le(oe.visible)},[be,oe]);const Ve=(0,He.Z)(Ne),Ge=()=>{var jt;if(le)return;ht&&Ve();const Jt=!ht;Le(Jt),typeof oe=="object"&&((jt=oe.onVisibleChange)===null||jt===void 0||jt.call(oe,Jt))},pt=jt=>{const Jt=Oe[te]||"",Be=ce(ht),ft={[Jt]:Ge,className:`${jt}-icon`,key:"passwordIcon",onMouseDown:Dt=>{Dt.preventDefault()},onMouseUp:Dt=>{Dt.preventDefault()}};return b.cloneElement(b.isValidElement(Be)?Be:b.createElement("span",null,Be),ft)},{className:we,prefixCls:De,inputPrefixCls:Zt,size:Tt}=gt,nn=st(gt,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:Ut}=b.useContext(nt.E_),St=Ut("input",Zt),an=Ut("input-password",De),_t=oe&&pt(an),$e=fe()(an,we,{[`${an}-${Tt}`]:!!Tt}),mt=Object.assign(Object.assign({},(0,_e.Z)(nn,["suffix","iconRender","visibilityToggle"])),{type:ht?"text":"password",className:$e,prefixCls:St,suffix:_t});return Tt&&(mt.size=Tt),b.createElement(Ie.Z,Object.assign({ref:(0,de.sQ)(ae,Ne)},mt))}),en=ee(47472),Ot=ee(22703),ge=ee(7939),Ke=ee(70045),tt=function(gt,ae){var ne={};for(var te in gt)Object.prototype.hasOwnProperty.call(gt,te)&&ae.indexOf(te)<0&&(ne[te]=gt[te]);if(gt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,te=Object.getOwnPropertySymbols(gt);oe<te.length;oe++)ae.indexOf(te[oe])<0&&Object.prototype.propertyIsEnumerable.call(gt,te[oe])&&(ne[te[oe]]=gt[te[oe]]);return ne},qe=b.forwardRef((gt,ae)=>{const{prefixCls:ne,inputPrefixCls:te,className:oe,size:ce,suffix:re,enterButton:le=!1,addonAfter:be,loading:ht,disabled:Le,onSearch:Ne,onChange:Ve,onCompositionStart:Ge,onCompositionEnd:pt}=gt,we=tt(gt,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:De,direction:Zt}=b.useContext(nt.E_),Tt=b.useRef(!1),nn=De("input-search",ne),Ut=De("input",te),{compactSize:St}=(0,Ke.ri)(nn,Zt),an=(0,lt.Z)(kn=>{var dn;return(dn=ce!=null?ce:St)!==null&&dn!==void 0?dn:kn}),_t=b.useRef(null),$e=kn=>{kn!=null&&kn.target&&kn.type==="click"&&Ne&&Ne(kn.target.value,kn,{source:"clear"}),Ve==null||Ve(kn)},mt=kn=>{var dn;document.activeElement===((dn=_t.current)===null||dn===void 0?void 0:dn.input)&&kn.preventDefault()},jt=kn=>{var dn,zt;Ne&&Ne((zt=(dn=_t.current)===null||dn===void 0?void 0:dn.input)===null||zt===void 0?void 0:zt.value,kn,{source:"input"})},Jt=kn=>{Tt.current||ht||jt(kn)},Be=typeof le=="boolean"?b.createElement(en.Z,null):null,ft=`${nn}-button`;let Dt;const Vt=le||{},un=Vt.type&&Vt.type.__ANT_BUTTON===!0;un||Vt.type==="button"?Dt=(0,Ot.Tm)(Vt,Object.assign({onMouseDown:mt,onClick:kn=>{var dn,zt;(zt=(dn=Vt==null?void 0:Vt.props)===null||dn===void 0?void 0:dn.onClick)===null||zt===void 0||zt.call(dn,kn),jt(kn)},key:"enterButton"},un?{className:ft,size:an}:{})):Dt=b.createElement(ge.ZP,{className:ft,type:le?"primary":void 0,size:an,disabled:Le,key:"enterButton",onMouseDown:mt,onClick:jt,loading:ht,icon:Be},le),be&&(Dt=[Dt,(0,Ot.Tm)(be,{key:"addonAfter"})]);const En=fe()(nn,{[`${nn}-rtl`]:Zt==="rtl",[`${nn}-${an}`]:!!an,[`${nn}-with-button`]:!!le},oe),Mn=Object.assign(Object.assign({},we),{className:En,prefixCls:Ut,type:"search"}),Fn=kn=>{Tt.current=!0,Ge==null||Ge(kn)},gn=kn=>{Tt.current=!1,pt==null||pt(kn)};return b.createElement(Ie.Z,Object.assign({ref:(0,de.sQ)(_t,ae),onPressEnter:Jt},Mn,{size:an,onCompositionStart:Fn,onCompositionEnd:gn,addonAfter:Dt,suffix:re,onChange:$e,disabled:Le}))}),Rt=ee(79809);const Qe=Ie.Z;Qe.Group=je,Qe.Search=qe,Qe.TextArea=Rt.Z,Qe.Password=Lt,Qe.OTP=rt;var tn=Qe},24303:function(In,Qt,ee){"use strict";ee.d(Qt,{D:function(){return Je},Z:function(){return Ye}});var b=ee(59301),ze=ee(60499),fe={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"},nt=fe,Se=ee(7657),xe=function(Ce,at){return b.createElement(Se.Z,(0,ze.Z)({},Ce,{ref:at,icon:nt}))},Ee=b.forwardRef(xe),je=Ee,Ie=ee(33853),ue=ee(38819),et=ee(92310),Te=ee.n(et),At=ee(2738),lt=ee(48755),it=ee(6989),We=ee(36237),ke=ee(48923),ot=ee(16931);const yt=rt=>{const{componentCls:Ce,siderBg:at,motionDurationMid:_e,motionDurationSlow:de,antCls:Et,triggerHeight:He,triggerColor:st,triggerBg:Yt,headerHeight:Oe,zeroTriggerWidth:pe,zeroTriggerHeight:Lt,borderRadiusLG:en,lightSiderBg:Ot,lightTriggerColor:ge,lightTriggerBg:Ke,bodyBg:tt}=rt;return{[Ce]:{position:"relative",minWidth:0,background:at,transition:`all ${_e}, background 0s`,"&-has-trigger":{paddingBottom:He},"&-right":{order:1},[`${Ce}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${Et}-menu${Et}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${Ce}-children`]:{overflow:"hidden"},[`${Ce}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:He,color:st,lineHeight:(0,We.unit)(He),textAlign:"center",background:Yt,cursor:"pointer",transition:`all ${_e}`},[`${Ce}-zero-width-trigger`]:{position:"absolute",top:Oe,insetInlineEnd:rt.calc(pe).mul(-1).equal(),zIndex:1,width:pe,height:Lt,color:st,fontSize:rt.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:at,borderRadius:`0 ${(0,We.unit)(en)} ${(0,We.unit)(en)} 0`,cursor:"pointer",transition:`background ${de} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${de}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:rt.calc(pe).mul(-1).equal(),borderRadius:`${(0,We.unit)(en)} 0 0 ${(0,We.unit)(en)}`}},"&-light":{background:Ot,[`${Ce}-trigger`]:{color:ge,background:Ke},[`${Ce}-zero-width-trigger`]:{color:ge,background:Ke,border:`1px solid ${tt}`,borderInlineStart:0}}}}};var Nt=(0,ot.I$)(["Layout","Sider"],rt=>[yt(rt)],ke.eh,{deprecatedTokens:ke.jn}),Fe=function(rt,Ce){var at={};for(var _e in rt)Object.prototype.hasOwnProperty.call(rt,_e)&&Ce.indexOf(_e)<0&&(at[_e]=rt[_e]);if(rt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var de=0,_e=Object.getOwnPropertySymbols(rt);de<_e.length;de++)Ce.indexOf(_e[de])<0&&Object.prototype.propertyIsEnumerable.call(rt,_e[de])&&(at[_e[de]]=rt[_e[de]]);return at};const Me={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},Xe=rt=>!Number.isNaN(Number.parseFloat(rt))&&isFinite(rt),Je=b.createContext({}),$t=(()=>{let rt=0;return function(){let Ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return rt+=1,`${Ce}${rt}`}})();var Ye=b.forwardRef((rt,Ce)=>{const{prefixCls:at,className:_e,trigger:de,children:Et,defaultCollapsed:He=!1,theme:st="dark",style:Yt={},collapsible:Oe=!1,reverseArrow:pe=!1,width:Lt=200,collapsedWidth:en=80,zeroWidthTriggerStyle:Ot,breakpoint:ge,onCollapse:Ke,onBreakpoint:tt}=rt,Wt=Fe(rt,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:qe}=(0,b.useContext)(it.V),[Rt,Qe]=(0,b.useState)("collapsed"in rt?rt.collapsed:He),[tn,gt]=(0,b.useState)(!1);(0,b.useEffect)(()=>{"collapsed"in rt&&Qe(rt.collapsed)},[rt.collapsed]);const ae=(an,_t)=>{"collapsed"in rt||Qe(an),Ke==null||Ke(an,_t)},{getPrefixCls:ne,direction:te}=(0,b.useContext)(lt.E_),oe=ne("layout-sider",at),[ce,re,le]=Nt(oe),be=(0,b.useRef)(null);be.current=an=>{gt(an.matches),tt==null||tt(an.matches),Rt!==an.matches&&ae(an.matches,"responsive")},(0,b.useEffect)(()=>{function an($e){return be.current($e)}let _t;if(typeof window!="undefined"){const{matchMedia:$e}=window;if($e&&ge&&ge in Me){_t=$e(`screen and (max-width: ${Me[ge]})`);try{_t.addEventListener("change",an)}catch(mt){_t.addListener(an)}an(_t)}}return()=>{try{_t==null||_t.removeEventListener("change",an)}catch($e){_t==null||_t.removeListener(an)}}},[ge]),(0,b.useEffect)(()=>{const an=$t("ant-sider-");return qe.addSider(an),()=>qe.removeSider(an)},[]);const ht=()=>{ae(!Rt,"clickTrigger")},Le=(0,At.Z)(Wt,["collapsed"]),Ne=Rt?en:Lt,Ve=Xe(Ne)?`${Ne}px`:String(Ne),Ge=parseFloat(String(en||0))===0?b.createElement("span",{onClick:ht,className:Te()(`${oe}-zero-width-trigger`,`${oe}-zero-width-trigger-${pe?"right":"left"}`),style:Ot},de||b.createElement(je,null)):null,pt=te==="rtl"==!pe,Zt={expanded:pt?b.createElement(ue.Z,null):b.createElement(Ie.Z,null),collapsed:pt?b.createElement(Ie.Z,null):b.createElement(ue.Z,null)}[Rt?"collapsed":"expanded"],Tt=de!==null?Ge||b.createElement("div",{className:`${oe}-trigger`,onClick:ht,style:{width:Ve}},de||Zt):null,nn=Object.assign(Object.assign({},Yt),{flex:`0 0 ${Ve}`,maxWidth:Ve,minWidth:Ve,width:Ve}),Ut=Te()(oe,`${oe}-${st}`,{[`${oe}-collapsed`]:!!Rt,[`${oe}-has-trigger`]:Oe&&de!==null&&!Ge,[`${oe}-below`]:!!tn,[`${oe}-zero-width`]:parseFloat(Ve)===0},_e,re,le),St=b.useMemo(()=>({siderCollapsed:Rt}),[Rt]);return ce(b.createElement(Je.Provider,{value:St},b.createElement("aside",Object.assign({className:Ut},Le,{style:nn,ref:Ce}),b.createElement("div",{className:`${oe}-children`},Et),Oe||tn&&Ge?Tt:null)))})},6989:function(In,Qt,ee){"use strict";ee.d(Qt,{V:function(){return ze}});var b=ee(59301);const ze=b.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}})},48923:function(In,Qt,ee){"use strict";ee.d(Qt,{eh:function(){return nt},jn:function(){return Se}});var b=ee(36237),ze=ee(16931);const fe=xe=>{const{antCls:Ee,componentCls:je,colorText:Ie,footerBg:ue,headerHeight:et,headerPadding:Te,headerColor:At,footerPadding:lt,fontSize:it,bodyBg:We,headerBg:ke}=xe;return{[je]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:We,"&, *":{boxSizing:"border-box"},[`&${je}-has-sider`]:{flexDirection:"row",[`> ${je}, > ${je}-content`]:{width:0}},[`${je}-header, &${je}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${je}-header`]:{height:et,padding:Te,color:At,lineHeight:(0,b.unit)(et),background:ke,[`${Ee}-menu`]:{lineHeight:"inherit"}},[`${je}-footer`]:{padding:lt,color:Ie,fontSize:it,background:ue},[`${je}-content`]:{flex:"auto",color:Ie,minHeight:0}}},nt=xe=>{const{colorBgLayout:Ee,controlHeight:je,controlHeightLG:Ie,colorText:ue,controlHeightSM:et,marginXXS:Te,colorTextLightSolid:At,colorBgContainer:lt}=xe,it=Ie*1.25;return{colorBgHeader:"#001529",colorBgBody:Ee,colorBgTrigger:"#002140",bodyBg:Ee,headerBg:"#001529",headerHeight:je*2,headerPadding:`0 ${it}px`,headerColor:ue,footerPadding:`${et}px ${it}px`,footerBg:Ee,siderBg:"#001529",triggerHeight:Ie+Te*2,triggerBg:"#002140",triggerColor:At,zeroTriggerWidth:Ie,zeroTriggerHeight:Ie,lightSiderBg:lt,lightTriggerBg:lt,lightTriggerColor:ue}},Se=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];Qt.ZP=(0,ze.I$)("Layout",xe=>[fe(xe)],nt,{deprecatedTokens:Se})},78857:function(In,Qt,ee){"use strict";ee.d(Qt,{J:function(){return xe}});var b=ee(59301),ze=ee(8654),fe=ee(62487),nt=function(Ee,je){var Ie={};for(var ue in Ee)Object.prototype.hasOwnProperty.call(Ee,ue)&&je.indexOf(ue)<0&&(Ie[ue]=Ee[ue]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var et=0,ue=Object.getOwnPropertySymbols(Ee);et<ue.length;et++)je.indexOf(ue[et])<0&&Object.prototype.propertyIsEnumerable.call(Ee,ue[et])&&(Ie[ue[et]]=Ee[ue[et]]);return Ie};const Se=b.createContext(null),xe=b.forwardRef((Ee,je)=>{const{children:Ie}=Ee,ue=nt(Ee,["children"]),et=b.useContext(Se),Te=b.useMemo(()=>Object.assign(Object.assign({},et),ue),[et,ue.prefixCls,ue.mode,ue.selectable,ue.rootClassName]),At=(0,ze.t4)(Ie),lt=(0,ze.x1)(je,At?(0,ze.C4)(Ie):null);return b.createElement(Se.Provider,{value:Te},b.createElement(fe.Z,{space:!0},At?b.cloneElement(Ie,{ref:lt}):Ie))});Qt.Z=Se},93041:function(In,Qt,ee){"use strict";ee.d(Qt,{default:function(){return ce}});var b=ee(59301),ze=ee(28321),fe=ee(24303),nt=ee(18785),Se=ee(92310),xe=ee.n(Se),Ee=ee(6089),je=ee(2738),Ie=ee(86641),ue=ee(22703),et=ee(48755),Te=ee(83397),lt=(0,b.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),it=function(re,le){var be={};for(var ht in re)Object.prototype.hasOwnProperty.call(re,ht)&&le.indexOf(ht)<0&&(be[ht]=re[ht]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,ht=Object.getOwnPropertySymbols(re);Le<ht.length;Le++)le.indexOf(ht[Le])<0&&Object.prototype.propertyIsEnumerable.call(re,ht[Le])&&(be[ht[Le]]=re[ht[Le]]);return be},ke=re=>{const{prefixCls:le,className:be,dashed:ht}=re,Le=it(re,["prefixCls","className","dashed"]),{getPrefixCls:Ne}=b.useContext(et.E_),Ve=Ne("menu",le),Ge=xe()({[`${Ve}-item-divider-dashed`]:!!ht},be);return b.createElement(ze.iz,Object.assign({className:Ge},Le))},ot=ee(11592),yt=ee(25399),Fe=re=>{var le;const{className:be,children:ht,icon:Le,title:Ne,danger:Ve,extra:Ge}=re,{prefixCls:pt,firstLevel:we,direction:De,disableMenuItemTitleTooltip:Zt,inlineCollapsed:Tt}=b.useContext(lt),nn=mt=>{const jt=ht==null?void 0:ht[0],Jt=b.createElement("span",{className:xe()(`${pt}-title-content`,{[`${pt}-title-content-with-extra`]:!!Ge||Ge===0})},ht);return(!Le||b.isValidElement(ht)&&ht.type==="span")&&ht&&mt&&we&&typeof jt=="string"?b.createElement("div",{className:`${pt}-inline-collapsed-noicon`},jt.charAt(0)):Jt},{siderCollapsed:Ut}=b.useContext(fe.D);let St=Ne;typeof Ne=="undefined"?St=we?ht:"":Ne===!1&&(St="");const an={title:St};!Ut&&!Tt&&(an.title=null,an.open=!1);const _t=(0,ot.Z)(ht).length;let $e=b.createElement(ze.ck,Object.assign({},(0,je.Z)(re,["title","icon","danger"]),{className:xe()({[`${pt}-item-danger`]:Ve,[`${pt}-item-only-child`]:(Le?_t+1:_t)===1},be),title:typeof Ne=="string"?Ne:void 0}),(0,ue.Tm)(Le,{className:xe()(b.isValidElement(Le)?(le=Le.props)===null||le===void 0?void 0:le.className:"",`${pt}-item-icon`)}),nn(Tt));return Zt||($e=b.createElement(yt.Z,Object.assign({},an,{placement:De==="rtl"?"left":"right",classNames:{root:`${pt}-inline-collapsed-tooltip`}}),$e)),$e},Me=ee(78857),Xe=ee(36237),Je=ee(17835),$t=ee(63356),ct=ee(34961),Ye=ee(46e3),rt=ee(34925),Ce=ee(16931),at=ee(51636),de=re=>{const{componentCls:le,motionDurationSlow:be,horizontalLineHeight:ht,colorSplit:Le,lineWidth:Ne,lineType:Ve,itemPaddingInline:Ge}=re;return{[`${le}-horizontal`]:{lineHeight:ht,border:0,borderBottom:`${(0,Xe.unit)(Ne)} ${Ve} ${Le}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${le}-item, ${le}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Ge},[`> ${le}-item:hover,
|
|
|
> ${le}-item-active,
|
|
|
> ${le}-submenu ${le}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${le}-item, ${le}-submenu-title`]:{transition:[`border-color ${be}`,`background ${be}`].join(",")},[`${le}-submenu-arrow`]:{display:"none"}}}},He=re=>{let{componentCls:le,menuArrowOffset:be,calc:ht}=re;return{[`${le}-rtl`]:{direction:"rtl"},[`${le}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${le}-rtl${le}-vertical,
|
|
|
${le}-submenu-rtl ${le}-vertical`]:{[`${le}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${(0,Xe.unit)(ht(be).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${(0,Xe.unit)(be)})`}}}}};const st=re=>Object.assign({},(0,$t.oN)(re));var Oe=(re,le)=>{const{componentCls:be,itemColor:ht,itemSelectedColor:Le,subMenuItemSelectedColor:Ne,groupTitleColor:Ve,itemBg:Ge,subMenuItemBg:pt,itemSelectedBg:we,activeBarHeight:De,activeBarWidth:Zt,activeBarBorderWidth:Tt,motionDurationSlow:nn,motionEaseInOut:Ut,motionEaseOut:St,itemPaddingInline:an,motionDurationMid:_t,itemHoverColor:$e,lineType:mt,colorSplit:jt,itemDisabledColor:Jt,dangerItemColor:Be,dangerItemHoverColor:ft,dangerItemSelectedColor:Dt,dangerItemActiveBg:Vt,dangerItemSelectedBg:un,popupBg:En,itemHoverBg:Mn,itemActiveBg:Fn,menuSubMenuBg:gn,horizontalItemSelectedColor:kn,horizontalItemSelectedBg:dn,horizontalItemBorderRadius:zt,horizontalItemHoverBg:rn}=re;return{[`${be}-${le}, ${be}-${le} > ${be}`]:{color:ht,background:Ge,[`&${be}-root:focus-visible`]:Object.assign({},st(re)),[`${be}-item`]:{"&-group-title, &-extra":{color:Ve}},[`${be}-submenu-selected > ${be}-submenu-title`]:{color:Ne},[`${be}-item, ${be}-submenu-title`]:{color:ht,[`&:not(${be}-item-disabled):focus-visible`]:Object.assign({},st(re))},[`${be}-item-disabled, ${be}-submenu-disabled`]:{color:`${Jt} !important`},[`${be}-item:not(${be}-item-selected):not(${be}-submenu-selected)`]:{[`&:hover, > ${be}-submenu-title:hover`]:{color:$e}},[`&:not(${be}-horizontal)`]:{[`${be}-item:not(${be}-item-selected)`]:{"&:hover":{backgroundColor:Mn},"&:active":{backgroundColor:Fn}},[`${be}-submenu-title`]:{"&:hover":{backgroundColor:Mn},"&:active":{backgroundColor:Fn}}},[`${be}-item-danger`]:{color:Be,[`&${be}-item:hover`]:{[`&:not(${be}-item-selected):not(${be}-submenu-selected)`]:{color:ft}},[`&${be}-item:active`]:{background:Vt}},[`${be}-item a`]:{"&, &:hover":{color:"inherit"}},[`${be}-item-selected`]:{color:Le,[`&${be}-item-danger`]:{color:Dt},"a, a:hover":{color:"inherit"}},[`& ${be}-item-selected`]:{backgroundColor:we,[`&${be}-item-danger`]:{backgroundColor:un}},[`&${be}-submenu > ${be}`]:{backgroundColor:gn},[`&${be}-popup > ${be}`]:{backgroundColor:En},[`&${be}-submenu-popup > ${be}`]:{backgroundColor:En},[`&${be}-horizontal`]:Object.assign(Object.assign({},le==="dark"?{borderBottom:0}:{}),{[`> ${be}-item, > ${be}-submenu`]:{top:Tt,marginTop:re.calc(Tt).mul(-1).equal(),marginBottom:0,borderRadius:zt,"&::after":{position:"absolute",insetInline:an,bottom:0,borderBottom:`${(0,Xe.unit)(De)} solid transparent`,transition:`border-color ${nn} ${Ut}`,content:'""'},"&:hover, &-active, &-open":{background:rn,"&::after":{borderBottomWidth:De,borderBottomColor:kn}},"&-selected":{color:kn,backgroundColor:dn,"&:hover":{backgroundColor:dn},"&::after":{borderBottomWidth:De,borderBottomColor:kn}}}}),[`&${be}-root`]:{[`&${be}-inline, &${be}-vertical`]:{borderInlineEnd:`${(0,Xe.unit)(Tt)} ${mt} ${jt}`}},[`&${be}-inline`]:{[`${be}-sub${be}-inline`]:{background:pt},[`${be}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${(0,Xe.unit)(Zt)} solid ${Le}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${_t} ${St}`,`opacity ${_t} ${St}`].join(","),content:'""'},[`&${be}-item-danger`]:{"&::after":{borderInlineEndColor:Dt}}},[`${be}-selected, ${be}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${_t} ${Ut}`,`opacity ${_t} ${Ut}`].join(",")}}}}}};const pe=re=>{const{componentCls:le,itemHeight:be,itemMarginInline:ht,padding:Le,menuArrowSize:Ne,marginXS:Ve,itemMarginBlock:Ge,itemWidth:pt,itemPaddingInline:we}=re,De=re.calc(Ne).add(Le).add(Ve).equal();return{[`${le}-item`]:{position:"relative",overflow:"hidden"},[`${le}-item, ${le}-submenu-title`]:{height:be,lineHeight:(0,Xe.unit)(be),paddingInline:we,overflow:"hidden",textOverflow:"ellipsis",marginInline:ht,marginBlock:Ge,width:pt},[`> ${le}-item,
|
|
|
> ${le}-submenu > ${le}-submenu-title`]:{height:be,lineHeight:(0,Xe.unit)(be)},[`${le}-item-group-list ${le}-submenu-title,
|
|
|
${le}-submenu-title`]:{paddingInlineEnd:De}}};var en=re=>{const{componentCls:le,iconCls:be,itemHeight:ht,colorTextLightSolid:Le,dropdownWidth:Ne,controlHeightLG:Ve,motionEaseOut:Ge,paddingXL:pt,itemMarginInline:we,fontSizeLG:De,motionDurationFast:Zt,motionDurationSlow:Tt,paddingXS:nn,boxShadowSecondary:Ut,collapsedWidth:St,collapsedIconSize:an}=re,_t={height:ht,lineHeight:(0,Xe.unit)(ht),listStylePosition:"inside",listStyleType:"disc"};return[{[le]:{"&-inline, &-vertical":Object.assign({[`&${le}-root`]:{boxShadow:"none"}},pe(re))},[`${le}-submenu-popup`]:{[`${le}-vertical`]:Object.assign(Object.assign({},pe(re)),{boxShadow:Ut})}},{[`${le}-submenu-popup ${le}-vertical${le}-sub`]:{minWidth:Ne,maxHeight:`calc(100vh - ${(0,Xe.unit)(re.calc(Ve).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${le}-inline`]:{width:"100%",[`&${le}-root`]:{[`${le}-item, ${le}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Tt}`,`background ${Tt}`,`padding ${Zt} ${Ge}`].join(","),[`> ${le}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${le}-sub${le}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${le}-submenu > ${le}-submenu-title`]:_t,[`& ${le}-item-group-title`]:{paddingInlineStart:pt}},[`${le}-item`]:_t}},{[`${le}-inline-collapsed`]:{width:St,[`&${le}-root`]:{[`${le}-item, ${le}-submenu ${le}-submenu-title`]:{[`> ${le}-inline-collapsed-noicon`]:{fontSize:De,textAlign:"center"}}},[`> ${le}-item,
|
|
|
> ${le}-item-group > ${le}-item-group-list > ${le}-item,
|
|
|
> ${le}-item-group > ${le}-item-group-list > ${le}-submenu > ${le}-submenu-title,
|
|
|
> ${le}-submenu > ${le}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${(0,Xe.unit)(re.calc(an).div(2).equal())} - ${(0,Xe.unit)(we)})`,textOverflow:"clip",[`
|
|
|
${le}-submenu-arrow,
|
|
|
${le}-submenu-expand-icon
|
|
|
`]:{opacity:0},[`${le}-item-icon, ${be}`]:{margin:0,fontSize:an,lineHeight:(0,Xe.unit)(ht),"+ span":{display:"inline-block",opacity:0}}},[`${le}-item-icon, ${be}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${le}-item-icon, ${be}`]:{display:"none"},"a, a:hover":{color:Le}},[`${le}-item-group-title`]:Object.assign(Object.assign({},$t.vS),{paddingInline:nn})}}]};const Ot=re=>{const{componentCls:le,motionDurationSlow:be,motionDurationMid:ht,motionEaseInOut:Le,motionEaseOut:Ne,iconCls:Ve,iconSize:Ge,iconMarginInlineEnd:pt}=re;return{[`${le}-item, ${le}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${be}`,`background ${be}`,`padding calc(${be} + 0.1s) ${Le}`].join(","),[`${le}-item-icon, ${Ve}`]:{minWidth:Ge,fontSize:Ge,transition:[`font-size ${ht} ${Ne}`,`margin ${be} ${Le}`,`color ${be}`].join(","),"+ span":{marginInlineStart:pt,opacity:1,transition:[`opacity ${be} ${Le}`,`margin ${be}`,`color ${be}`].join(",")}},[`${le}-item-icon`]:Object.assign({},(0,$t.Ro)()),[`&${le}-item-only-child`]:{[`> ${Ve}, > ${le}-item-icon`]:{marginInlineEnd:0}}},[`${le}-item-disabled, ${le}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${le}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},ge=re=>{const{componentCls:le,motionDurationSlow:be,motionEaseInOut:ht,borderRadius:Le,menuArrowSize:Ne,menuArrowOffset:Ve}=re;return{[`${le}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:re.margin,width:Ne,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${be} ${ht}, opacity ${be}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:re.calc(Ne).mul(.6).equal(),height:re.calc(Ne).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:Le,transition:[`background ${be} ${ht}`,`transform ${be} ${ht}`,`top ${be} ${ht}`,`color ${be} ${ht}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${(0,Xe.unit)(re.calc(Ve).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${(0,Xe.unit)(Ve)})`}}}}},Ke=re=>{const{antCls:le,componentCls:be,fontSize:ht,motionDurationSlow:Le,motionDurationMid:Ne,motionEaseInOut:Ve,paddingXS:Ge,padding:pt,colorSplit:we,lineWidth:De,zIndexPopup:Zt,borderRadiusLG:Tt,subMenuItemBorderRadius:nn,menuArrowSize:Ut,menuArrowOffset:St,lineType:an,groupTitleLineHeight:_t,groupTitleFontSize:$e}=re;return[{"":{[be]:Object.assign(Object.assign({},(0,$t.dF)()),{"&-hidden":{display:"none"}})},[`${be}-submenu-hidden`]:{display:"none"}},{[be]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,$t.Wf)(re)),(0,$t.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:ht,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Le} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${be}-item`]:{flex:"none"}},[`${be}-item, ${be}-submenu, ${be}-submenu-title`]:{borderRadius:re.itemBorderRadius},[`${be}-item-group-title`]:{padding:`${(0,Xe.unit)(Ge)} ${(0,Xe.unit)(pt)}`,fontSize:$e,lineHeight:_t,transition:`all ${Le}`},[`&-horizontal ${be}-submenu`]:{transition:[`border-color ${Le} ${Ve}`,`background ${Le} ${Ve}`].join(",")},[`${be}-submenu, ${be}-submenu-inline`]:{transition:[`border-color ${Le} ${Ve}`,`background ${Le} ${Ve}`,`padding ${Ne} ${Ve}`].join(",")},[`${be}-submenu ${be}-sub`]:{cursor:"initial",transition:[`background ${Le} ${Ve}`,`padding ${Le} ${Ve}`].join(",")},[`${be}-title-content`]:{transition:`color ${Le}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${le}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${be}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:re.padding}},[`${be}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${be}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:we,borderStyle:an,borderWidth:0,borderTopWidth:De,marginBlock:De,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Ot(re)),{[`${be}-item-group`]:{[`${be}-item-group-list`]:{margin:0,padding:0,[`${be}-item, ${be}-submenu-title`]:{paddingInline:`${(0,Xe.unit)(re.calc(ht).mul(2).equal())} ${(0,Xe.unit)(pt)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Zt,borderRadius:Tt,boxShadow:"none",transformOrigin:"0 0",[`&${be}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${be}`]:Object.assign(Object.assign(Object.assign({borderRadius:Tt},Ot(re)),ge(re)),{[`${be}-item, ${be}-submenu > ${be}-submenu-title`]:{borderRadius:nn},[`${be}-submenu-title::after`]:{transition:`transform ${Le} ${Ve}`}})},"\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:re.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:re.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:re.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:re.paddingXS}}}),ge(re)),{[`&-inline-collapsed ${be}-submenu-arrow,
|
|
|
&-inline ${be}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${(0,Xe.unit)(St)})`},"&::after":{transform:`rotate(45deg) translateX(${(0,Xe.unit)(re.calc(St).mul(-1).equal())})`}},[`${be}-submenu-open${be}-submenu-inline > ${be}-submenu-title > ${be}-submenu-arrow`]:{transform:`translateY(${(0,Xe.unit)(re.calc(Ut).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${(0,Xe.unit)(re.calc(St).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${(0,Xe.unit)(St)})`}}})},{[`${le}-layout-header`]:{[be]:{lineHeight:"inherit"}}}]},tt=re=>{var le,be,ht;const{colorPrimary:Le,colorError:Ne,colorTextDisabled:Ve,colorErrorBg:Ge,colorText:pt,colorTextDescription:we,colorBgContainer:De,colorFillAlter:Zt,colorFillContent:Tt,lineWidth:nn,lineWidthBold:Ut,controlItemBgActive:St,colorBgTextHover:an,controlHeightLG:_t,lineHeight:$e,colorBgElevated:mt,marginXXS:jt,padding:Jt,fontSize:Be,controlHeightSM:ft,fontSizeLG:Dt,colorTextLightSolid:Vt,colorErrorHover:un}=re,En=(le=re.activeBarWidth)!==null&&le!==void 0?le:0,Mn=(be=re.activeBarBorderWidth)!==null&&be!==void 0?be:nn,Fn=(ht=re.itemMarginInline)!==null&&ht!==void 0?ht:re.marginXXS,gn=new Je.FastColor(Vt).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:re.zIndexPopupBase+50,radiusItem:re.borderRadiusLG,itemBorderRadius:re.borderRadiusLG,radiusSubMenuItem:re.borderRadiusSM,subMenuItemBorderRadius:re.borderRadiusSM,colorItemText:pt,itemColor:pt,colorItemTextHover:pt,itemHoverColor:pt,colorItemTextHoverHorizontal:Le,horizontalItemHoverColor:Le,colorGroupTitle:we,groupTitleColor:we,colorItemTextSelected:Le,itemSelectedColor:Le,subMenuItemSelectedColor:Le,colorItemTextSelectedHorizontal:Le,horizontalItemSelectedColor:Le,colorItemBg:De,itemBg:De,colorItemBgHover:an,itemHoverBg:an,colorItemBgActive:Tt,itemActiveBg:St,colorSubItemBg:Zt,subMenuItemBg:Zt,colorItemBgSelected:St,itemSelectedBg:St,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:En,colorActiveBarHeight:Ut,activeBarHeight:Ut,colorActiveBarBorderSize:nn,activeBarBorderWidth:Mn,colorItemTextDisabled:Ve,itemDisabledColor:Ve,colorDangerItemText:Ne,dangerItemColor:Ne,colorDangerItemTextHover:Ne,dangerItemHoverColor:Ne,colorDangerItemTextSelected:Ne,dangerItemSelectedColor:Ne,colorDangerItemBgActive:Ge,dangerItemActiveBg:Ge,colorDangerItemBgSelected:Ge,dangerItemSelectedBg:Ge,itemMarginInline:Fn,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:_t,groupTitleLineHeight:$e,collapsedWidth:_t*2,popupBg:mt,itemMarginBlock:jt,itemPaddingInline:Jt,horizontalLineHeight:`${_t*1.15}px`,iconSize:Be,iconMarginInlineEnd:ft-Be,collapsedIconSize:Dt,groupTitleFontSize:Be,darkItemDisabledColor:new Je.FastColor(Vt).setA(.25).toRgbString(),darkItemColor:gn,darkDangerItemColor:Ne,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Vt,darkItemSelectedBg:Le,darkDangerItemSelectedBg:Ne,darkItemHoverBg:"transparent",darkGroupTitleColor:gn,darkItemHoverColor:Vt,darkDangerItemHoverColor:un,darkDangerItemSelectedColor:Vt,darkDangerItemActiveBg:Ne,itemWidth:En?`calc(100% + ${Mn}px)`:`calc(100% - ${Fn*2}px)`}};var Wt=function(re){let le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:re,be=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return(0,Ce.I$)("Menu",Le=>{const{colorBgElevated:Ne,controlHeightLG:Ve,fontSize:Ge,darkItemColor:pt,darkDangerItemColor:we,darkItemBg:De,darkSubMenuItemBg:Zt,darkItemSelectedColor:Tt,darkItemSelectedBg:nn,darkDangerItemSelectedBg:Ut,darkItemHoverBg:St,darkGroupTitleColor:an,darkItemHoverColor:_t,darkItemDisabledColor:$e,darkDangerItemHoverColor:mt,darkDangerItemSelectedColor:jt,darkDangerItemActiveBg:Jt,popupBg:Be,darkPopupBg:ft}=Le,Dt=Le.calc(Ge).div(7).mul(5).equal(),Vt=(0,at.mergeToken)(Le,{menuArrowSize:Dt,menuHorizontalHeight:Le.calc(Ve).mul(1.15).equal(),menuArrowOffset:Le.calc(Dt).mul(.25).equal(),menuSubMenuBg:Ne,calc:Le.calc,popupBg:Be}),un=(0,at.mergeToken)(Vt,{itemColor:pt,itemHoverColor:_t,groupTitleColor:an,itemSelectedColor:Tt,subMenuItemSelectedColor:Tt,itemBg:De,popupBg:ft,subMenuItemBg:Zt,itemActiveBg:"transparent",itemSelectedBg:nn,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:St,itemDisabledColor:$e,dangerItemColor:we,dangerItemHoverColor:mt,dangerItemSelectedColor:jt,dangerItemActiveBg:Jt,dangerItemSelectedBg:Ut,menuSubMenuBg:Zt,horizontalItemSelectedColor:Tt,horizontalItemSelectedBg:nn});return[Ke(Vt),de(Vt),en(Vt),Oe(Vt,"light"),Oe(un,"dark"),He(Vt),(0,ct.Z)(Vt),(0,Ye.oN)(Vt,"slide-up"),(0,Ye.oN)(Vt,"slide-down"),(0,rt._y)(Vt,"zoom-big")]},tt,{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:be,unitless:{groupTitleLineHeight:!0}})(re,le)},qe=ee(75030),Qe=re=>{var le;const{popupClassName:be,icon:ht,title:Le,theme:Ne}=re,Ve=b.useContext(lt),{prefixCls:Ge,inlineCollapsed:pt,theme:we}=Ve,De=(0,ze.Xl)();let Zt;if(!ht)Zt=pt&&!De.length&&Le&&typeof Le=="string"?b.createElement("div",{className:`${Ge}-inline-collapsed-noicon`},Le.charAt(0)):b.createElement("span",{className:`${Ge}-title-content`},Le);else{const Ut=b.isValidElement(Le)&&Le.type==="span";Zt=b.createElement(b.Fragment,null,(0,ue.Tm)(ht,{className:xe()(b.isValidElement(ht)?(le=ht.props)===null||le===void 0?void 0:le.className:"",`${Ge}-item-icon`)}),Ut?Le:b.createElement("span",{className:`${Ge}-title-content`},Le))}const Tt=b.useMemo(()=>Object.assign(Object.assign({},Ve),{firstLevel:!1}),[Ve]),[nn]=(0,qe.Cn)("Menu");return b.createElement(lt.Provider,{value:Tt},b.createElement(ze.Wd,Object.assign({},(0,je.Z)(re,["icon"]),{title:Zt,popupClassName:xe()(Ge,be,`${Ge}-${Ne||we}`),popupStyle:Object.assign({zIndex:nn},re.popupStyle)})))},tn=function(re,le){var be={};for(var ht in re)Object.prototype.hasOwnProperty.call(re,ht)&&le.indexOf(ht)<0&&(be[ht]=re[ht]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,ht=Object.getOwnPropertySymbols(re);Le<ht.length;Le++)le.indexOf(ht[Le])<0&&Object.prototype.propertyIsEnumerable.call(re,ht[Le])&&(be[ht[Le]]=re[ht[Le]]);return be};function gt(re){return re===null||re===!1}const ae={item:Fe,submenu:Qe,divider:ke};var te=(0,b.forwardRef)((re,le)=>{var be;const ht=b.useContext(Me.Z),Le=ht||{},{getPrefixCls:Ne,getPopupContainer:Ve,direction:Ge,menu:pt}=b.useContext(et.E_),we=Ne(),{prefixCls:De,className:Zt,style:Tt,theme:nn="light",expandIcon:Ut,_internalDisableMenuItemTitleTooltip:St,inlineCollapsed:an,siderCollapsed:_t,rootClassName:$e,mode:mt,selectable:jt,onClick:Jt,overflowedIndicatorPopupClassName:Be}=re,ft=tn(re,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Dt=(0,je.Z)(ft,["collapsedWidth"]);(be=Le.validator)===null||be===void 0||be.call(Le,{mode:mt});const Vt=(0,Ee.Z)(function(){var pn;Jt==null||Jt.apply(void 0,arguments),(pn=Le.onClick)===null||pn===void 0||pn.call(Le)}),un=Le.mode||mt,En=jt!=null?jt:Le.selectable,Mn=an!=null?an:_t,Fn={horizontal:{motionName:`${we}-slide-up`},inline:(0,Ie.Z)(we),other:{motionName:`${we}-zoom-big`}},gn=Ne("menu",De||Le.prefixCls),kn=(0,Te.Z)(gn),[dn,zt,rn]=Wt(gn,kn,!ht),on=xe()(`${gn}-${nn}`,pt==null?void 0:pt.className,Zt),Xt=b.useMemo(()=>{var pn,wn;if(typeof Ut=="function"||gt(Ut))return Ut||null;if(typeof Le.expandIcon=="function"||gt(Le.expandIcon))return Le.expandIcon||null;if(typeof(pt==null?void 0:pt.expandIcon)=="function"||gt(pt==null?void 0:pt.expandIcon))return(pt==null?void 0:pt.expandIcon)||null;const $n=(pn=Ut!=null?Ut:Le==null?void 0:Le.expandIcon)!==null&&pn!==void 0?pn:pt==null?void 0:pt.expandIcon;return(0,ue.Tm)($n,{className:xe()(`${gn}-submenu-expand-icon`,b.isValidElement($n)?(wn=$n.props)===null||wn===void 0?void 0:wn.className:void 0)})},[Ut,Le==null?void 0:Le.expandIcon,pt==null?void 0:pt.expandIcon,gn]),vn=b.useMemo(()=>({prefixCls:gn,inlineCollapsed:Mn||!1,direction:Ge,firstLevel:!0,theme:nn,mode:un,disableMenuItemTitleTooltip:St}),[gn,Mn,Ge,St,nn]);return dn(b.createElement(Me.Z.Provider,{value:null},b.createElement(lt.Provider,{value:vn},b.createElement(ze.ZP,Object.assign({getPopupContainer:Ve,overflowedIndicator:b.createElement(nt.Z,null),overflowedIndicatorPopupClassName:xe()(gn,`${gn}-${nn}`,Be),mode:un,selectable:En,onClick:Vt},Dt,{inlineCollapsed:Mn,style:Object.assign(Object.assign({},pt==null?void 0:pt.style),Tt),className:on,prefixCls:gn,direction:Ge,defaultMotions:Fn,expandIcon:Xt,ref:le,rootClassName:xe()($e,zt,Le.rootClassName,rn,kn),_internalComponents:ae})))))});const oe=(0,b.forwardRef)((re,le)=>{const be=(0,b.useRef)(null),ht=b.useContext(fe.D);return(0,b.useImperativeHandle)(le,()=>({menu:be.current,focus:Le=>{var Ne;(Ne=be.current)===null||Ne===void 0||Ne.focus(Le)}})),b.createElement(te,Object.assign({ref:be},re,ht))});oe.Item=Fe,oe.SubMenu=Qe,oe.Divider=ke,oe.ItemGroup=ze.BW;var ce=oe},31709:function(In,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return pt}});var b=ee(59301),ze=ee(60499),fe={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"},nt=fe,Se=ee(7657),xe=function(De,Zt){return b.createElement(Se.Z,(0,ze.Z)({},De,{ref:Zt,icon:nt}))},Ee=b.forwardRef(xe),je=Ee,Ie=ee(49198),ue=ee(33853),et=ee(38819),Te=ee(92310),At=ee.n(Te),lt=ee(18642),it=ee(43749),We=ee(85899),ke=ee(72190),ot=ee(18929),yt=ee(10228),Nt=ee(26112),Fe=ee(48736),Me=ee(17119),Xe=[10,20,50,100],Je=function(De){var Zt=De.pageSizeOptions,Tt=Zt===void 0?Xe:Zt,nn=De.locale,Ut=De.changeSize,St=De.pageSize,an=De.goButton,_t=De.quickGo,$e=De.rootPrefixCls,mt=De.disabled,jt=De.buildOptionText,Jt=De.showSizeChanger,Be=De.sizeChangerRender,ft=b.useState(""),Dt=(0,ke.Z)(ft,2),Vt=Dt[0],un=Dt[1],En=function(){return!Vt||Number.isNaN(Vt)?void 0:Number(Vt)},Mn=typeof jt=="function"?jt:function(vn){return"".concat(vn," ").concat(nn.items_per_page)},Fn=function(pn){un(pn.target.value)},gn=function(pn){an||Vt===""||(un(""),!(pn.relatedTarget&&(pn.relatedTarget.className.indexOf("".concat($e,"-item-link"))>=0||pn.relatedTarget.className.indexOf("".concat($e,"-item"))>=0))&&(_t==null||_t(En())))},kn=function(pn){Vt!==""&&(pn.keyCode===yt.Z.ENTER||pn.type==="click")&&(un(""),_t==null||_t(En()))},dn=function(){return Tt.some(function(pn){return pn.toString()===St.toString()})?Tt:Tt.concat([St]).sort(function(pn,wn){var $n=Number.isNaN(Number(pn))?0:Number(pn),xn=Number.isNaN(Number(wn))?0:Number(wn);return $n-xn})},zt="".concat($e,"-options");if(!Jt&&!_t)return null;var rn=null,on=null,Xt=null;return Jt&&Be&&(rn=Be({disabled:mt,size:St,onSizeChange:function(pn){Ut==null||Ut(Number(pn))},"aria-label":nn.page_size,className:"".concat(zt,"-size-changer"),options:dn().map(function(vn){return{label:Mn(vn),value:vn}})})),_t&&(an&&(Xt=typeof an=="boolean"?b.createElement("button",{type:"button",onClick:kn,onKeyUp:kn,disabled:mt,className:"".concat(zt,"-quick-jumper-button")},nn.jump_to_confirm):b.createElement("span",{onClick:kn,onKeyUp:kn},an)),on=b.createElement("div",{className:"".concat(zt,"-quick-jumper")},nn.jump_to,b.createElement("input",{disabled:mt,type:"text",value:Vt,onChange:Fn,onKeyUp:kn,onBlur:gn,"aria-label":nn.page}),nn.page,Xt)),b.createElement("li",{className:zt},rn,on)},$t=Je,ct=function(De){var Zt=De.rootPrefixCls,Tt=De.page,nn=De.active,Ut=De.className,St=De.showTitle,an=De.onClick,_t=De.onKeyPress,$e=De.itemRender,mt="".concat(Zt,"-item"),jt=At()(mt,"".concat(mt,"-").concat(Tt),(0,lt.Z)((0,lt.Z)({},"".concat(mt,"-active"),nn),"".concat(mt,"-disabled"),!Tt),Ut),Jt=function(){an(Tt)},Be=function(Vt){_t(Vt,an,Tt)},ft=$e(Tt,"page",b.createElement("a",{rel:"nofollow"},Tt));return ft?b.createElement("li",{title:St?String(Tt):null,className:jt,onClick:Jt,onKeyDown:Be,tabIndex:0},ft):null},Ye=ct,rt=function(De,Zt,Tt){return Tt};function Ce(){}function at(we){var De=Number(we);return typeof De=="number"&&!Number.isNaN(De)&&isFinite(De)&&Math.floor(De)===De}function _e(we,De,Zt){var Tt=typeof we=="undefined"?De:we;return Math.floor((Zt-1)/Tt)+1}var de=function(De){var Zt=De.prefixCls,Tt=Zt===void 0?"rc-pagination":Zt,nn=De.selectPrefixCls,Ut=nn===void 0?"rc-select":nn,St=De.className,an=De.current,_t=De.defaultCurrent,$e=_t===void 0?1:_t,mt=De.total,jt=mt===void 0?0:mt,Jt=De.pageSize,Be=De.defaultPageSize,ft=Be===void 0?10:Be,Dt=De.onChange,Vt=Dt===void 0?Ce:Dt,un=De.hideOnSinglePage,En=De.align,Mn=De.showPrevNextJumpers,Fn=Mn===void 0?!0:Mn,gn=De.showQuickJumper,kn=De.showLessItems,dn=De.showTitle,zt=dn===void 0?!0:dn,rn=De.onShowSizeChange,on=rn===void 0?Ce:rn,Xt=De.locale,vn=Xt===void 0?Me.Z:Xt,pn=De.style,wn=De.totalBoundaryShowSizeChanger,$n=wn===void 0?50:wn,xn=De.disabled,hn=De.simple,Zn=De.showTotal,Wn=De.showSizeChanger,ir=Wn===void 0?jt>$n:Wn,tr=De.sizeChangerRender,sn=De.pageSizeOptions,yn=De.itemRender,zn=yn===void 0?rt:yn,Hn=De.jumpPrevIcon,ut=De.jumpNextIcon,Pt=De.prevIcon,Re=De.nextIcon,vt=b.useRef(null),Ze=(0,ot.Z)(10,{value:Jt,defaultValue:ft}),bt=(0,ke.Z)(Ze,2),Pe=bt[0],It=bt[1],Bt=(0,ot.Z)(1,{value:an,defaultValue:$e,postState:function(Hr){return Math.max(1,Math.min(Hr,_e(void 0,Pe,jt)))}}),Kt=(0,ke.Z)(Bt,2),Ct=Kt[0],xt=Kt[1],wt=b.useState(Ct),Ft=(0,ke.Z)(wt,2),Tn=Ft[0],On=Ft[1];(0,b.useEffect)(function(){On(Ct)},[Ct]);var An=Vt!==Ce,er="current"in De,sr=Math.max(1,Ct-(kn?3:5)),fr=Math.min(_e(void 0,Pe,jt),Ct+(kn?3:5));function Qn(qr,Hr){var Ji=qr||b.createElement("button",{type:"button","aria-label":Hr,className:"".concat(Tt,"-item-link")});return typeof qr=="function"&&(Ji=b.createElement(qr,(0,We.Z)({},De))),Ji}function Xn(qr){var Hr=qr.target.value,Ji=_e(void 0,Pe,jt),qi;return Hr===""?qi=Hr:Number.isNaN(Number(Hr))?qi=Tn:Hr>=Ji?qi=Ji:qi=Number(Hr),qi}function Jn(qr){return at(qr)&&qr!==Ct&&at(jt)&&jt>0}var ur=jt>Pe?gn:!1;function Er(qr){(qr.keyCode===yt.Z.UP||qr.keyCode===yt.Z.DOWN)&&qr.preventDefault()}function Cr(qr){var Hr=Xn(qr);switch(Hr!==Tn&&On(Hr),qr.keyCode){case yt.Z.ENTER:yr(Hr);break;case yt.Z.UP:yr(Hr-1);break;case yt.Z.DOWN:yr(Hr+1);break;default:break}}function wr(qr){yr(Xn(qr))}function Yn(qr){var Hr=_e(qr,Pe,jt),Ji=Ct>Hr&&Hr!==0?Hr:Ct;It(qr),On(Ji),on==null||on(Ct,qr),xt(Ji),Vt==null||Vt(Ji,qr)}function yr(qr){if(Jn(qr)&&!xn){var Hr=_e(void 0,Pe,jt),Ji=qr;return qr>Hr?Ji=Hr:qr<1&&(Ji=1),Ji!==Tn&&On(Ji),xt(Ji),Vt==null||Vt(Ji,Pe),Ji}return Ct}var mr=Ct>1,_r=Ct<_e(void 0,Pe,jt);function Yr(){mr&&yr(Ct-1)}function Vr(){_r&&yr(Ct+1)}function Ur(){yr(sr)}function oi(){yr(fr)}function Zr(qr,Hr){if(qr.key==="Enter"||qr.charCode===yt.Z.ENTER||qr.keyCode===yt.Z.ENTER){for(var Ji=arguments.length,qi=new Array(Ji>2?Ji-2:0),ai=2;ai<Ji;ai++)qi[ai-2]=arguments[ai];Hr.apply(void 0,qi)}}function Jr(qr){Zr(qr,Yr)}function Or(qr){Zr(qr,Vr)}function ti(qr){Zr(qr,Ur)}function ci(qr){Zr(qr,oi)}function Fi(qr){var Hr=zn(qr,"prev",Qn(Pt,"prev page"));return b.isValidElement(Hr)?b.cloneElement(Hr,{disabled:!mr}):Hr}function vi(qr){var Hr=zn(qr,"next",Qn(Re,"next page"));return b.isValidElement(Hr)?b.cloneElement(Hr,{disabled:!_r}):Hr}function xi(qr){(qr.type==="click"||qr.keyCode===yt.Z.ENTER)&&yr(Tn)}var hi=null,bi=(0,Nt.Z)(De,{aria:!0,data:!0}),Rr=Zn&&b.createElement("li",{className:"".concat(Tt,"-total-text")},Zn(jt,[jt===0?0:(Ct-1)*Pe+1,Ct*Pe>jt?jt:Ct*Pe])),Lr=null,cr=_e(void 0,Pe,jt);if(un&&jt<=Pe)return null;var Nn=[],Kn={rootPrefixCls:Tt,onClick:yr,onKeyPress:Zr,showTitle:zt,itemRender:zn,page:-1},Vn=Ct-1>0?Ct-1:0,Bn=Ct+1<cr?Ct+1:cr,lr=gn&&gn.goButton,br=(0,it.Z)(hn)==="object"?hn.readOnly:!hn,jn=lr,Ln=null;hn&&(lr&&(typeof lr=="boolean"?jn=b.createElement("button",{type:"button",onClick:xi,onKeyUp:xi},vn.jump_to_confirm):jn=b.createElement("span",{onClick:xi,onKeyUp:xi},lr),jn=b.createElement("li",{title:zt?"".concat(vn.jump_to).concat(Ct,"/").concat(cr):null,className:"".concat(Tt,"-simple-pager")},jn)),Ln=b.createElement("li",{title:zt?"".concat(Ct,"/").concat(cr):null,className:"".concat(Tt,"-simple-pager")},br?Tn:b.createElement("input",{type:"text","aria-label":vn.jump_to,value:Tn,disabled:xn,onKeyDown:Er,onKeyUp:Cr,onChange:Cr,onBlur:wr,size:3}),b.createElement("span",{className:"".concat(Tt,"-slash")},"/"),cr));var Gn=kn?1:2;if(cr<=3+Gn*2){cr||Nn.push(b.createElement(Ye,(0,ze.Z)({},Kn,{key:"noPager",page:1,className:"".concat(Tt,"-item-disabled")})));for(var nr=1;nr<=cr;nr+=1)Nn.push(b.createElement(Ye,(0,ze.Z)({},Kn,{key:nr,page:nr,active:Ct===nr})))}else{var Qr=kn?vn.prev_3:vn.prev_5,Ei=kn?vn.next_3:vn.next_5,pi=zn(sr,"jump-prev",Qn(Hn,"prev page")),Ni=zn(fr,"jump-next",Qn(ut,"next page"));Fn&&(hi=pi?b.createElement("li",{title:zt?Qr:null,key:"prev",onClick:Ur,tabIndex:0,onKeyDown:ti,className:At()("".concat(Tt,"-jump-prev"),(0,lt.Z)({},"".concat(Tt,"-jump-prev-custom-icon"),!!Hn))},pi):null,Lr=Ni?b.createElement("li",{title:zt?Ei:null,key:"next",onClick:oi,tabIndex:0,onKeyDown:ci,className:At()("".concat(Tt,"-jump-next"),(0,lt.Z)({},"".concat(Tt,"-jump-next-custom-icon"),!!ut))},Ni):null);var Ii=Math.max(1,Ct-Gn),Pi=Math.min(Ct+Gn,cr);Ct-1<=Gn&&(Pi=1+Gn*2),cr-Ct<=Gn&&(Ii=cr-Gn*2);for(var $i=Ii;$i<=Pi;$i+=1)Nn.push(b.createElement(Ye,(0,ze.Z)({},Kn,{key:$i,page:$i,active:Ct===$i})));if(Ct-1>=Gn*2&&Ct!==3&&(Nn[0]=b.cloneElement(Nn[0],{className:At()("".concat(Tt,"-item-after-jump-prev"),Nn[0].props.className)}),Nn.unshift(hi)),cr-Ct>=Gn*2&&Ct!==cr-2){var Ai=Nn[Nn.length-1];Nn[Nn.length-1]=b.cloneElement(Ai,{className:At()("".concat(Tt,"-item-before-jump-next"),Ai.props.className)}),Nn.push(Lr)}Ii!==1&&Nn.unshift(b.createElement(Ye,(0,ze.Z)({},Kn,{key:1,page:1}))),Pi!==cr&&Nn.push(b.createElement(Ye,(0,ze.Z)({},Kn,{key:cr,page:cr})))}var ki=Fi(Vn);if(ki){var lo=!mr||!cr;ki=b.createElement("li",{title:zt?vn.prev_page:null,onClick:Yr,tabIndex:lo?null:0,onKeyDown:Jr,className:At()("".concat(Tt,"-prev"),(0,lt.Z)({},"".concat(Tt,"-disabled"),lo)),"aria-disabled":lo},ki)}var xo=vi(Bn);if(xo){var Do,To;hn?(Do=!_r,To=mr?0:null):(Do=!_r||!cr,To=Do?null:0),xo=b.createElement("li",{title:zt?vn.next_page:null,onClick:Vr,tabIndex:To,onKeyDown:Or,className:At()("".concat(Tt,"-next"),(0,lt.Z)({},"".concat(Tt,"-disabled"),Do)),"aria-disabled":Do},xo)}var Co=At()(Tt,St,(0,lt.Z)((0,lt.Z)((0,lt.Z)((0,lt.Z)((0,lt.Z)({},"".concat(Tt,"-start"),En==="start"),"".concat(Tt,"-center"),En==="center"),"".concat(Tt,"-end"),En==="end"),"".concat(Tt,"-simple"),hn),"".concat(Tt,"-disabled"),xn));return b.createElement("ul",(0,ze.Z)({className:Co,style:pn,ref:vt},bi),Rr,ki,hn?Ln:Nn,xo,b.createElement($t,{locale:vn,rootPrefixCls:Tt,disabled:xn,selectPrefixCls:Ut,changeSize:Yn,pageSize:Pe,pageSizeOptions:sn,quickGo:ur?yr:null,goButton:jn,showSizeChanger:ir,sizeChangerRender:tr}))},Et=de,He=ee(61852),st=ee(48755),Yt=ee(31756),Oe=ee(13783),pe=ee(9017),Lt=ee(82326),en=ee(57700),Ot=ee(36237),ge=ee(53075),Ke=ee(64910),tt=ee(39082),Wt=ee(63356),qe=ee(51636),Rt=ee(16931);const Qe=we=>{const{componentCls:De}=we;return{[`${De}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${De}-item-link`]:{color:we.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${De}-item-link`]:{color:we.colorTextDisabled,cursor:"not-allowed"}}},[`&${De}-disabled`]:{cursor:"not-allowed",[`${De}-item`]:{cursor:"not-allowed",backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"},a:{color:we.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:we.colorBorder,backgroundColor:we.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:we.itemActiveBgDisabled},a:{color:we.itemActiveColorDisabled}}},[`${De}-item-link`]:{color:we.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${De}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${De}-simple-pager`]:{color:we.colorTextDisabled},[`${De}-jump-prev, ${De}-jump-next`]:{[`${De}-item-link-icon`]:{opacity:0},[`${De}-item-ellipsis`]:{opacity:1}}},[`&${De}-simple`]:{[`${De}-prev, ${De}-next`]:{[`&${De}-disabled ${De}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},tn=we=>{const{componentCls:De}=we;return{[`&${De}-mini ${De}-total-text, &${De}-mini ${De}-simple-pager`]:{height:we.itemSizeSM,lineHeight:(0,Ot.unit)(we.itemSizeSM)},[`&${De}-mini ${De}-item`]:{minWidth:we.itemSizeSM,height:we.itemSizeSM,margin:0,lineHeight:(0,Ot.unit)(we.calc(we.itemSizeSM).sub(2).equal())},[`&${De}-mini ${De}-prev, &${De}-mini ${De}-next`]:{minWidth:we.itemSizeSM,height:we.itemSizeSM,margin:0,lineHeight:(0,Ot.unit)(we.itemSizeSM)},[`&${De}-mini:not(${De}-disabled)`]:{[`${De}-prev, ${De}-next`]:{[`&:hover ${De}-item-link`]:{backgroundColor:we.colorBgTextHover},[`&:active ${De}-item-link`]:{backgroundColor:we.colorBgTextActive},[`&${De}-disabled:hover ${De}-item-link`]:{backgroundColor:"transparent"}}},[`
|
|
|
&${De}-mini ${De}-prev ${De}-item-link,
|
|
|
&${De}-mini ${De}-next ${De}-item-link
|
|
|
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:we.itemSizeSM,lineHeight:(0,Ot.unit)(we.itemSizeSM)}},[`&${De}-mini ${De}-jump-prev, &${De}-mini ${De}-jump-next`]:{height:we.itemSizeSM,marginInlineEnd:0,lineHeight:(0,Ot.unit)(we.itemSizeSM)},[`&${De}-mini ${De}-options`]:{marginInlineStart:we.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:we.miniOptionsSizeChangerTop},"&-quick-jumper":{height:we.itemSizeSM,lineHeight:(0,Ot.unit)(we.itemSizeSM),input:Object.assign(Object.assign({},(0,ge.x0)(we)),{width:we.paginationMiniQuickJumperInputWidth,height:we.controlHeightSM})}}}},gt=we=>{const{componentCls:De}=we;return{[`
|
|
|
&${De}-simple ${De}-prev,
|
|
|
&${De}-simple ${De}-next
|
|
|
`]:{height:we.itemSizeSM,lineHeight:(0,Ot.unit)(we.itemSizeSM),verticalAlign:"top",[`${De}-item-link`]:{height:we.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:we.colorBgTextHover},"&:active":{backgroundColor:we.colorBgTextActive},"&::after":{height:we.itemSizeSM,lineHeight:(0,Ot.unit)(we.itemSizeSM)}}},[`&${De}-simple ${De}-simple-pager`]:{display:"inline-block",height:we.itemSizeSM,marginInlineEnd:we.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${(0,Ot.unit)(we.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:we.itemInputBg,border:`${(0,Ot.unit)(we.lineWidth)} ${we.lineType} ${we.colorBorder}`,borderRadius:we.borderRadius,outline:"none",transition:`border-color ${we.motionDurationMid}`,color:"inherit","&:hover":{borderColor:we.colorPrimary},"&:focus":{borderColor:we.colorPrimaryHover,boxShadow:`${(0,Ot.unit)(we.inputOutlineOffset)} 0 ${(0,Ot.unit)(we.controlOutlineWidth)} ${we.controlOutline}`},"&[disabled]":{color:we.colorTextDisabled,backgroundColor:we.colorBgContainerDisabled,borderColor:we.colorBorder,cursor:"not-allowed"}}}}},ae=we=>{const{componentCls:De}=we;return{[`${De}-jump-prev, ${De}-jump-next`]:{outline:0,[`${De}-item-container`]:{position:"relative",[`${De}-item-link-icon`]:{color:we.colorPrimary,fontSize:we.fontSizeSM,opacity:0,transition:`all ${we.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${De}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:we.colorTextDisabled,letterSpacing:we.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:we.paginationEllipsisTextIndent,opacity:1,transition:`all ${we.motionDurationMid}`}},"&:hover":{[`${De}-item-link-icon`]:{opacity:1},[`${De}-item-ellipsis`]:{opacity:0}}},[`
|
|
|
${De}-prev,
|
|
|
${De}-jump-prev,
|
|
|
${De}-jump-next
|
|
|
`]:{marginInlineEnd:we.marginXS},[`
|
|
|
${De}-prev,
|
|
|
${De}-next,
|
|
|
${De}-jump-prev,
|
|
|
${De}-jump-next
|
|
|
`]:{display:"inline-block",minWidth:we.itemSize,height:we.itemSize,color:we.colorText,fontFamily:we.fontFamily,lineHeight:(0,Ot.unit)(we.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:we.borderRadius,cursor:"pointer",transition:`all ${we.motionDurationMid}`},[`${De}-prev, ${De}-next`]:{outline:0,button:{color:we.colorText,cursor:"pointer",userSelect:"none"},[`${De}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:we.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${(0,Ot.unit)(we.lineWidth)} ${we.lineType} transparent`,borderRadius:we.borderRadius,outline:"none",transition:`all ${we.motionDurationMid}`},[`&:hover ${De}-item-link`]:{backgroundColor:we.colorBgTextHover},[`&:active ${De}-item-link`]:{backgroundColor:we.colorBgTextActive},[`&${De}-disabled:hover`]:{[`${De}-item-link`]:{backgroundColor:"transparent"}}},[`${De}-slash`]:{marginInlineEnd:we.paginationSlashMarginInlineEnd,marginInlineStart:we.paginationSlashMarginInlineStart},[`${De}-options`]:{display:"inline-block",marginInlineStart:we.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:we.controlHeight,marginInlineStart:we.marginXS,lineHeight:(0,Ot.unit)(we.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},(0,ge.ik)(we)),(0,tt.$U)(we,{borderColor:we.colorBorder,hoverBorderColor:we.colorPrimaryHover,activeBorderColor:we.colorPrimary,activeShadow:we.activeShadow})),{"&[disabled]":Object.assign({},(0,tt.Xy)(we)),width:we.calc(we.controlHeightLG).mul(1.25).equal(),height:we.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:we.marginXS,marginInlineEnd:we.marginXS})}}}},ne=we=>{const{componentCls:De}=we;return{[`${De}-item`]:{display:"inline-block",minWidth:we.itemSize,height:we.itemSize,marginInlineEnd:we.marginXS,fontFamily:we.fontFamily,lineHeight:(0,Ot.unit)(we.calc(we.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:we.itemBg,border:`${(0,Ot.unit)(we.lineWidth)} ${we.lineType} transparent`,borderRadius:we.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${(0,Ot.unit)(we.paginationItemPaddingInline)}`,color:we.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${De}-item-active)`]:{"&:hover":{transition:`all ${we.motionDurationMid}`,backgroundColor:we.colorBgTextHover},"&:active":{backgroundColor:we.colorBgTextActive}},"&-active":{fontWeight:we.fontWeightStrong,backgroundColor:we.itemActiveBg,borderColor:we.colorPrimary,a:{color:we.colorPrimary},"&:hover":{borderColor:we.colorPrimaryHover},"&:hover a":{color:we.colorPrimaryHover}}}}},te=we=>{const{componentCls:De}=we;return{[De]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Wt.Wf)(we)),{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:'""'},[`${De}-total-text`]:{display:"inline-block",height:we.itemSize,marginInlineEnd:we.marginXS,lineHeight:(0,Ot.unit)(we.calc(we.itemSize).sub(2).equal()),verticalAlign:"middle"}}),ne(we)),ae(we)),gt(we)),tn(we)),Qe(we)),{[`@media only screen and (max-width: ${we.screenLG}px)`]:{[`${De}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${we.screenSM}px)`]:{[`${De}-options`]:{display:"none"}}}),[`&${we.componentCls}-rtl`]:{direction:"rtl"}}},oe=we=>{const{componentCls:De}=we;return{[`${De}:not(${De}-disabled)`]:{[`${De}-item`]:Object.assign({},(0,Wt.Qy)(we)),[`${De}-jump-prev, ${De}-jump-next`]:{"&:focus-visible":Object.assign({[`${De}-item-link-icon`]:{opacity:1},[`${De}-item-ellipsis`]:{opacity:0}},(0,Wt.oN)(we))},[`${De}-prev, ${De}-next`]:{[`&:focus-visible ${De}-item-link`]:Object.assign({},(0,Wt.oN)(we))}}}},ce=we=>Object.assign({itemBg:we.colorBgContainer,itemSize:we.controlHeight,itemSizeSM:we.controlHeightSM,itemActiveBg:we.colorBgContainer,itemLinkBg:we.colorBgContainer,itemActiveColorDisabled:we.colorTextDisabled,itemActiveBgDisabled:we.controlItemBgActiveDisabled,itemInputBg:we.colorBgContainer,miniOptionsSizeChangerTop:0},(0,Ke.T)(we)),re=we=>(0,qe.mergeToken)(we,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:we.calc(we.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:we.calc(we.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:we.calc(we.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:we.calc(we.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:we.marginSM,paginationSlashMarginInlineEnd:we.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,Ke.e)(we));var le=(0,Rt.I$)("Pagination",we=>{const De=re(we);return[te(De),oe(De)]},ce);const be=we=>{const{componentCls:De}=we;return{[`${De}${De}-bordered${De}-disabled:not(${De}-mini)`]:{"&, &:hover":{[`${De}-item-link`]:{borderColor:we.colorBorder}},"&:focus-visible":{[`${De}-item-link`]:{borderColor:we.colorBorder}},[`${De}-item, ${De}-item-link`]:{backgroundColor:we.colorBgContainerDisabled,borderColor:we.colorBorder,[`&:hover:not(${De}-item-active)`]:{backgroundColor:we.colorBgContainerDisabled,borderColor:we.colorBorder,a:{color:we.colorTextDisabled}},[`&${De}-item-active`]:{backgroundColor:we.itemActiveBgDisabled}},[`${De}-prev, ${De}-next`]:{"&:hover button":{backgroundColor:we.colorBgContainerDisabled,borderColor:we.colorBorder,color:we.colorTextDisabled},[`${De}-item-link`]:{backgroundColor:we.colorBgContainerDisabled,borderColor:we.colorBorder}}},[`${De}${De}-bordered:not(${De}-mini)`]:{[`${De}-prev, ${De}-next`]:{"&:hover button":{borderColor:we.colorPrimaryHover,backgroundColor:we.itemBg},[`${De}-item-link`]:{backgroundColor:we.itemLinkBg,borderColor:we.colorBorder},[`&:hover ${De}-item-link`]:{borderColor:we.colorPrimary,backgroundColor:we.itemBg,color:we.colorPrimary},[`&${De}-disabled`]:{[`${De}-item-link`]:{borderColor:we.colorBorder,color:we.colorTextDisabled}}},[`${De}-item`]:{backgroundColor:we.itemBg,border:`${(0,Ot.unit)(we.lineWidth)} ${we.lineType} ${we.colorBorder}`,[`&:hover:not(${De}-item-active)`]:{borderColor:we.colorPrimary,backgroundColor:we.itemBg,a:{color:we.colorPrimary}},"&-active":{borderColor:we.colorPrimary}}}}};var ht=(0,Rt.bk)(["Pagination","bordered"],we=>{const De=re(we);return[be(De)]},ce);function Le(we){return(0,b.useMemo)(()=>typeof we=="boolean"?[we,{}]:we&&typeof we=="object"?[!0,we]:[void 0,void 0],[we])}var Ne=function(we,De){var Zt={};for(var Tt in we)Object.prototype.hasOwnProperty.call(we,Tt)&&De.indexOf(Tt)<0&&(Zt[Tt]=we[Tt]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nn=0,Tt=Object.getOwnPropertySymbols(we);nn<Tt.length;nn++)De.indexOf(Tt[nn])<0&&Object.prototype.propertyIsEnumerable.call(we,Tt[nn])&&(Zt[Tt[nn]]=we[Tt[nn]]);return Zt},Ge=we=>{const{align:De,prefixCls:Zt,selectPrefixCls:Tt,className:nn,rootClassName:Ut,style:St,size:an,locale:_t,responsive:$e,showSizeChanger:mt,selectComponentClass:jt,pageSizeOptions:Jt}=we,Be=Ne(we,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:ft}=(0,Oe.Z)($e),[,Dt]=(0,en.ZP)(),{getPrefixCls:Vt,direction:un,showSizeChanger:En,className:Mn,style:Fn}=(0,st.dj)("pagination"),gn=Vt("pagination",Zt),[kn,dn,zt]=le(gn),rn=(0,Yt.Z)(an),on=rn==="small"||!!(ft&&!rn&&$e),[Xt]=(0,pe.Z)("Pagination",He.Z),vn=Object.assign(Object.assign({},Xt),_t),[pn,wn]=Le(mt),[$n,xn]=Le(En),hn=pn!=null?pn:$n,Zn=wn!=null?wn:xn,Wn=jt||Lt.default,ir=b.useMemo(()=>Jt?Jt.map(ut=>Number(ut)):void 0,[Jt]),tr=ut=>{var Pt;const{disabled:Re,size:vt,onSizeChange:Ze,"aria-label":bt,className:Pe,options:It}=ut,{className:Bt,onChange:Kt}=Zn||{},Ct=(Pt=It.find(xt=>String(xt.value)===String(vt)))===null||Pt===void 0?void 0:Pt.value;return b.createElement(Wn,Object.assign({disabled:Re,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:xt=>xt.parentNode,"aria-label":bt,options:It},Zn,{value:Ct,onChange:(xt,wt)=>{Ze==null||Ze(xt),Kt==null||Kt(xt,wt)},size:on?"small":"middle",className:At()(Pe,Bt)}))},sn=b.useMemo(()=>{const ut=b.createElement("span",{className:`${gn}-item-ellipsis`},"\u2022\u2022\u2022"),Pt=b.createElement("button",{className:`${gn}-item-link`,type:"button",tabIndex:-1},un==="rtl"?b.createElement(et.Z,null):b.createElement(ue.Z,null)),Re=b.createElement("button",{className:`${gn}-item-link`,type:"button",tabIndex:-1},un==="rtl"?b.createElement(ue.Z,null):b.createElement(et.Z,null)),vt=b.createElement("a",{className:`${gn}-item-link`},b.createElement("div",{className:`${gn}-item-container`},un==="rtl"?b.createElement(Ie.Z,{className:`${gn}-item-link-icon`}):b.createElement(je,{className:`${gn}-item-link-icon`}),ut)),Ze=b.createElement("a",{className:`${gn}-item-link`},b.createElement("div",{className:`${gn}-item-container`},un==="rtl"?b.createElement(je,{className:`${gn}-item-link-icon`}):b.createElement(Ie.Z,{className:`${gn}-item-link-icon`}),ut));return{prevIcon:Pt,nextIcon:Re,jumpPrevIcon:vt,jumpNextIcon:Ze}},[un,gn]),yn=Vt("select",Tt),zn=At()({[`${gn}-${De}`]:!!De,[`${gn}-mini`]:on,[`${gn}-rtl`]:un==="rtl",[`${gn}-bordered`]:Dt.wireframe},Mn,nn,Ut,dn,zt),Hn=Object.assign(Object.assign({},Fn),St);return kn(b.createElement(b.Fragment,null,Dt.wireframe&&b.createElement(ht,{prefixCls:gn}),b.createElement(Et,Object.assign({},sn,Be,{style:Hn,prefixCls:gn,selectPrefixCls:yn,className:zn,locale:vn,pageSizeOptions:ir,showSizeChanger:hn,sizeChangerRender:tr}))))},pt=Ge},89787:function(In,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return _t}});var b=ee(59301),ze=ee(17835),fe=ee(29679),nt=ee(40001),Se=ee(19248),xe=ee(99267),Ee=ee(92310),je=ee.n(Ee),Ie=ee(2738),ue=ee(48755),et=ee(60499),Te=ee(85899),At=ee(42244),lt={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},it=function(){var mt=(0,b.useRef)([]),jt=(0,b.useRef)(null);return(0,b.useEffect)(function(){var Jt=Date.now(),Be=!1;mt.current.forEach(function(ft){if(ft){Be=!0;var Dt=ft.style;Dt.transitionDuration=".3s, .3s, .3s, .06s",jt.current&&Jt-jt.current<100&&(Dt.transitionDuration="0s, 0s")}}),Be&&(jt.current=Date.now())}),mt.current},We=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],ke=function(mt){var jt=(0,Te.Z)((0,Te.Z)({},lt),mt),Jt=jt.className,Be=jt.percent,ft=jt.prefixCls,Dt=jt.strokeColor,Vt=jt.strokeLinecap,un=jt.strokeWidth,En=jt.style,Mn=jt.trailColor,Fn=jt.trailWidth,gn=jt.transition,kn=(0,At.Z)(jt,We);delete kn.gapPosition;var dn=Array.isArray(Be)?Be:[Be],zt=Array.isArray(Dt)?Dt:[Dt],rn=it(),on=un/2,Xt=100-un/2,vn="M ".concat(Vt==="round"?on:0,",").concat(on,`
|
|
|
L `).concat(Vt==="round"?Xt:100,",").concat(on),pn="0 0 100 ".concat(un),wn=0;return b.createElement("svg",(0,et.Z)({className:je()("".concat(ft,"-line"),Jt),viewBox:pn,preserveAspectRatio:"none",style:En},kn),b.createElement("path",{className:"".concat(ft,"-line-trail"),d:vn,strokeLinecap:Vt,stroke:Mn,strokeWidth:Fn||un,fillOpacity:"0"}),dn.map(function($n,xn){var hn=1;switch(Vt){case"round":hn=1-un/100;break;case"square":hn=1-un/2/100;break;default:hn=1;break}var Zn={strokeDasharray:"".concat($n*hn,"px, 100px"),strokeDashoffset:"-".concat(wn,"px"),transition:gn||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Wn=zt[xn]||zt[zt.length-1];return wn+=$n,b.createElement("path",{key:xn,className:"".concat(ft,"-line-path"),d:vn,strokeLinecap:Vt,stroke:Wn,strokeWidth:un,fillOpacity:"0",ref:function(tr){rn[xn]=tr},style:Zn})}))},ot=ke,yt=ee(43749),Nt=ee(72190),Fe=ee(47273),Me=0,Xe=(0,Fe.Z)();function Je(){var $e;return Xe?($e=Me,Me+=1):$e="TEST_OR_SSR",$e}var $t=function($e){var mt=b.useState(),jt=(0,Nt.Z)(mt,2),Jt=jt[0],Be=jt[1];return b.useEffect(function(){Be("rc_progress_".concat(Je()))},[]),$e||Jt},ct=function(mt){var jt=mt.bg,Jt=mt.children;return b.createElement("div",{style:{width:"100%",height:"100%",background:jt}},Jt)};function Ye($e,mt){return Object.keys($e).map(function(jt){var Jt=parseFloat(jt),Be="".concat(Math.floor(Jt*mt),"%");return"".concat($e[jt]," ").concat(Be)})}var rt=b.forwardRef(function($e,mt){var jt=$e.prefixCls,Jt=$e.color,Be=$e.gradientId,ft=$e.radius,Dt=$e.style,Vt=$e.ptg,un=$e.strokeLinecap,En=$e.strokeWidth,Mn=$e.size,Fn=$e.gapDegree,gn=Jt&&(0,yt.Z)(Jt)==="object",kn=gn?"#FFF":void 0,dn=Mn/2,zt=b.createElement("circle",{className:"".concat(jt,"-circle-path"),r:ft,cx:dn,cy:dn,stroke:kn,strokeLinecap:un,strokeWidth:En,opacity:Vt===0?0:1,style:Dt,ref:mt});if(!gn)return zt;var rn="".concat(Be,"-conic"),on=Fn?"".concat(180+Fn/2,"deg"):"0deg",Xt=Ye(Jt,(360-Fn)/360),vn=Ye(Jt,1),pn="conic-gradient(from ".concat(on,", ").concat(Xt.join(", "),")"),wn="linear-gradient(to ".concat(Fn?"bottom":"top",", ").concat(vn.join(", "),")");return b.createElement(b.Fragment,null,b.createElement("mask",{id:rn},zt),b.createElement("foreignObject",{x:0,y:0,width:Mn,height:Mn,mask:"url(#".concat(rn,")")},b.createElement(ct,{bg:wn},b.createElement(ct,{bg:pn}))))}),Ce=rt,at=100,_e=function(mt,jt,Jt,Be,ft,Dt,Vt,un,En,Mn){var Fn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,gn=Jt/100*360*((360-Dt)/360),kn=Dt===0?0:{bottom:0,top:180,left:90,right:-90}[Vt],dn=(100-Be)/100*jt;En==="round"&&Be!==100&&(dn+=Mn/2,dn>=jt&&(dn=jt-.01));var zt=at/2;return{stroke:typeof un=="string"?un:void 0,strokeDasharray:"".concat(jt,"px ").concat(mt),strokeDashoffset:dn+Fn,transform:"rotate(".concat(ft+gn+kn,"deg)"),transformOrigin:"".concat(zt,"px ").concat(zt,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},de=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Et($e){var mt=$e!=null?$e:[];return Array.isArray(mt)?mt:[mt]}var He=function(mt){var jt=(0,Te.Z)((0,Te.Z)({},lt),mt),Jt=jt.id,Be=jt.prefixCls,ft=jt.steps,Dt=jt.strokeWidth,Vt=jt.trailWidth,un=jt.gapDegree,En=un===void 0?0:un,Mn=jt.gapPosition,Fn=jt.trailColor,gn=jt.strokeLinecap,kn=jt.style,dn=jt.className,zt=jt.strokeColor,rn=jt.percent,on=(0,At.Z)(jt,de),Xt=at/2,vn=$t(Jt),pn="".concat(vn,"-gradient"),wn=Xt-Dt/2,$n=Math.PI*2*wn,xn=En>0?90+En/2:-90,hn=$n*((360-En)/360),Zn=(0,yt.Z)(ft)==="object"?ft:{count:ft,gap:2},Wn=Zn.count,ir=Zn.gap,tr=Et(rn),sn=Et(zt),yn=sn.find(function(Ze){return Ze&&(0,yt.Z)(Ze)==="object"}),zn=yn&&(0,yt.Z)(yn)==="object",Hn=zn?"butt":gn,ut=_e($n,hn,0,100,xn,En,Mn,Fn,Hn,Dt),Pt=it(),Re=function(){var bt=0;return tr.map(function(Pe,It){var Bt=sn[It]||sn[sn.length-1],Kt=_e($n,hn,bt,Pe,xn,En,Mn,Bt,Hn,Dt);return bt+=Pe,b.createElement(Ce,{key:It,color:Bt,ptg:Pe,radius:wn,prefixCls:Be,gradientId:pn,style:Kt,strokeLinecap:Hn,strokeWidth:Dt,gapDegree:En,ref:function(xt){Pt[It]=xt},size:at})}).reverse()},vt=function(){var bt=Math.round(Wn*(tr[0]/100)),Pe=100/Wn,It=0;return new Array(Wn).fill(null).map(function(Bt,Kt){var Ct=Kt<=bt-1?sn[0]:Fn,xt=Ct&&(0,yt.Z)(Ct)==="object"?"url(#".concat(pn,")"):void 0,wt=_e($n,hn,It,Pe,xn,En,Mn,Ct,"butt",Dt,ir);return It+=(hn-wt.strokeDashoffset+ir)*100/hn,b.createElement("circle",{key:Kt,className:"".concat(Be,"-circle-path"),r:wn,cx:Xt,cy:Xt,stroke:xt,strokeWidth:Dt,opacity:1,style:wt,ref:function(Tn){Pt[Kt]=Tn}})})};return b.createElement("svg",(0,et.Z)({className:je()("".concat(Be,"-circle"),dn),viewBox:"0 0 ".concat(at," ").concat(at),style:kn,id:Jt,role:"presentation"},on),!Wn&&b.createElement("circle",{className:"".concat(Be,"-circle-trail"),r:wn,cx:Xt,cy:Xt,stroke:Fn,strokeLinecap:Hn,strokeWidth:Vt||Dt,style:ut}),Wn?vt():Re())},st=He,Yt={Line:ot,Circle:st},Oe=ee(25399),pe=ee(68361);function Lt($e){return!$e||$e<0?0:$e>100?100:$e}function en($e){let{success:mt,successPercent:jt}=$e,Jt=jt;return mt&&"progress"in mt&&(Jt=mt.progress),mt&&"percent"in mt&&(Jt=mt.percent),Jt}const Ot=$e=>{let{percent:mt,success:jt,successPercent:Jt}=$e;const Be=Lt(en({success:jt,successPercent:Jt}));return[Be,Lt(Lt(mt)-Be)]},ge=$e=>{let{success:mt={},strokeColor:jt}=$e;const{strokeColor:Jt}=mt;return[Jt||pe.presetPrimaryColors.green,jt||null]},Ke=($e,mt,jt)=>{var Jt,Be,ft,Dt;let Vt=-1,un=-1;if(mt==="step"){const En=jt.steps,Mn=jt.strokeWidth;typeof $e=="string"||typeof $e=="undefined"?(Vt=$e==="small"?2:14,un=Mn!=null?Mn:8):typeof $e=="number"?[Vt,un]=[$e,$e]:[Vt=14,un=8]=Array.isArray($e)?$e:[$e.width,$e.height],Vt*=En}else if(mt==="line"){const En=jt==null?void 0:jt.strokeWidth;typeof $e=="string"||typeof $e=="undefined"?un=En||($e==="small"?6:8):typeof $e=="number"?[Vt,un]=[$e,$e]:[Vt=-1,un=8]=Array.isArray($e)?$e:[$e.width,$e.height]}else(mt==="circle"||mt==="dashboard")&&(typeof $e=="string"||typeof $e=="undefined"?[Vt,un]=$e==="small"?[60,60]:[120,120]:typeof $e=="number"?[Vt,un]=[$e,$e]:Array.isArray($e)&&(Vt=(Be=(Jt=$e[0])!==null&&Jt!==void 0?Jt:$e[1])!==null&&Be!==void 0?Be:120,un=(Dt=(ft=$e[0])!==null&&ft!==void 0?ft:$e[1])!==null&&Dt!==void 0?Dt:120));return[Vt,un]},tt=3,Wt=$e=>tt/$e*100;var Rt=$e=>{const{prefixCls:mt,trailColor:jt=null,strokeLinecap:Jt="round",gapPosition:Be,gapDegree:ft,width:Dt=120,type:Vt,children:un,success:En,size:Mn=Dt,steps:Fn}=$e,[gn,kn]=Ke(Mn,"circle");let{strokeWidth:dn}=$e;dn===void 0&&(dn=Math.max(Wt(gn),6));const zt={width:gn,height:kn,fontSize:gn*.15+6},rn=b.useMemo(()=>{if(ft||ft===0)return ft;if(Vt==="dashboard")return 75},[ft,Vt]),on=Ot($e),Xt=Be||Vt==="dashboard"&&"bottom"||void 0,vn=Object.prototype.toString.call($e.strokeColor)==="[object Object]",pn=ge({success:En,strokeColor:$e.strokeColor}),wn=je()(`${mt}-inner`,{[`${mt}-circle-gradient`]:vn}),$n=b.createElement(st,{steps:Fn,percent:Fn?on[1]:on,strokeWidth:dn,trailWidth:dn,strokeColor:Fn?pn[1]:pn,strokeLinecap:Jt,trailColor:jt,prefixCls:mt,gapDegree:rn,gapPosition:Xt}),xn=gn<=20,hn=b.createElement("div",{className:wn,style:zt},$n,!xn&&un);return xn?b.createElement(Oe.Z,{title:un},hn):hn},Qe=ee(36237),tn=ee(63356),gt=ee(16931),ae=ee(51636);const ne="--progress-line-stroke-color",te="--progress-percent",oe=$e=>{const mt=$e?"100%":"-100%";return new Qe.Keyframes(`antProgress${$e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${mt}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${mt}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},ce=$e=>{const{componentCls:mt,iconCls:jt}=$e;return{[mt]:Object.assign(Object.assign({},(0,tn.Wf)($e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:$e.fontSize},[`${mt}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${mt}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:$e.remainingColor,borderRadius:$e.lineBorderRadius},[`${mt}-inner:not(${mt}-circle-gradient)`]:{[`${mt}-circle-path`]:{stroke:$e.defaultColor}},[`${mt}-success-bg, ${mt}-bg`]:{position:"relative",background:$e.defaultColor,borderRadius:$e.lineBorderRadius,transition:`all ${$e.motionDurationSlow} ${$e.motionEaseInOutCirc}`},[`${mt}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${mt}-text`]:{width:"max-content",marginInlineStart:0,marginTop:$e.marginXXS}},[`${mt}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${ne})`]},height:"100%",width:`calc(1 / var(${te}) * 100%)`,display:"block"},[`&${mt}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${mt}-text-inner`]:{color:$e.colorWhite,[`&${mt}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${mt}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:$e.colorSuccess},[`${mt}-text`]:{display:"inline-block",marginInlineStart:$e.marginXS,color:$e.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[jt]:{fontSize:$e.fontSize},[`&${mt}-text-outer`]:{width:"max-content"},[`&${mt}-text-outer${mt}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:$e.marginXS}},[`${mt}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${(0,Qe.unit)($e.paddingXXS)}`,[`&${mt}-text-start`]:{justifyContent:"start"},[`&${mt}-text-end`]:{justifyContent:"end"}},[`&${mt}-status-active`]:{[`${mt}-bg::before`]:{position:"absolute",inset:0,backgroundColor:$e.colorBgContainer,borderRadius:$e.lineBorderRadius,opacity:0,animationName:oe(),animationDuration:$e.progressActiveMotionDuration,animationTimingFunction:$e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${mt}-rtl${mt}-status-active`]:{[`${mt}-bg::before`]:{animationName:oe(!0)}},[`&${mt}-status-exception`]:{[`${mt}-bg`]:{backgroundColor:$e.colorError},[`${mt}-text`]:{color:$e.colorError}},[`&${mt}-status-exception ${mt}-inner:not(${mt}-circle-gradient)`]:{[`${mt}-circle-path`]:{stroke:$e.colorError}},[`&${mt}-status-success`]:{[`${mt}-bg`]:{backgroundColor:$e.colorSuccess},[`${mt}-text`]:{color:$e.colorSuccess}},[`&${mt}-status-success ${mt}-inner:not(${mt}-circle-gradient)`]:{[`${mt}-circle-path`]:{stroke:$e.colorSuccess}}})}},re=$e=>{const{componentCls:mt,iconCls:jt}=$e;return{[mt]:{[`${mt}-circle-trail`]:{stroke:$e.remainingColor},[`&${mt}-circle ${mt}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${mt}-circle ${mt}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:$e.circleTextColor,fontSize:$e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[jt]:{fontSize:$e.circleIconFontSize}},[`${mt}-circle&-status-exception`]:{[`${mt}-text`]:{color:$e.colorError}},[`${mt}-circle&-status-success`]:{[`${mt}-text`]:{color:$e.colorSuccess}}},[`${mt}-inline-circle`]:{lineHeight:1,[`${mt}-inner`]:{verticalAlign:"bottom"}}}},le=$e=>{const{componentCls:mt}=$e;return{[mt]:{[`${mt}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:$e.progressStepMinWidth,marginInlineEnd:$e.progressStepMarginInlineEnd,backgroundColor:$e.remainingColor,transition:`all ${$e.motionDurationSlow}`,"&-active":{backgroundColor:$e.defaultColor}}}}}},be=$e=>{const{componentCls:mt,iconCls:jt}=$e;return{[mt]:{[`${mt}-small&-line, ${mt}-small&-line ${mt}-text ${jt}`]:{fontSize:$e.fontSizeSM}}}},ht=$e=>({circleTextColor:$e.colorText,defaultColor:$e.colorInfo,remainingColor:$e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${$e.fontSize/$e.fontSizeSM}em`});var Le=(0,gt.I$)("Progress",$e=>{const mt=$e.calc($e.marginXXS).div(2).equal(),jt=(0,ae.mergeToken)($e,{progressStepMarginInlineEnd:mt,progressStepMinWidth:mt,progressActiveMotionDuration:"2.4s"});return[ce(jt),re(jt),le(jt),be(jt)]},ht),Ne=function($e,mt){var jt={};for(var Jt in $e)Object.prototype.hasOwnProperty.call($e,Jt)&&mt.indexOf(Jt)<0&&(jt[Jt]=$e[Jt]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Be=0,Jt=Object.getOwnPropertySymbols($e);Be<Jt.length;Be++)mt.indexOf(Jt[Be])<0&&Object.prototype.propertyIsEnumerable.call($e,Jt[Be])&&(jt[Jt[Be]]=$e[Jt[Be]]);return jt};const Ve=$e=>{let mt=[];return Object.keys($e).forEach(jt=>{const Jt=parseFloat(jt.replace(/%/g,""));Number.isNaN(Jt)||mt.push({key:Jt,value:$e[jt]})}),mt=mt.sort((jt,Jt)=>jt.key-Jt.key),mt.map(jt=>{let{key:Jt,value:Be}=jt;return`${Be} ${Jt}%`}).join(", ")},Ge=($e,mt)=>{const{from:jt=pe.presetPrimaryColors.blue,to:Jt=pe.presetPrimaryColors.blue,direction:Be=mt==="rtl"?"to left":"to right"}=$e,ft=Ne($e,["from","to","direction"]);if(Object.keys(ft).length!==0){const Vt=Ve(ft),un=`linear-gradient(${Be}, ${Vt})`;return{background:un,[ne]:un}}const Dt=`linear-gradient(${Be}, ${jt}, ${Jt})`;return{background:Dt,[ne]:Dt}};var we=$e=>{const{prefixCls:mt,direction:jt,percent:Jt,size:Be,strokeWidth:ft,strokeColor:Dt,strokeLinecap:Vt="round",children:un,trailColor:En=null,percentPosition:Mn,success:Fn}=$e,{align:gn,type:kn}=Mn,dn=Dt&&typeof Dt!="string"?Ge(Dt,jt):{[ne]:Dt,background:Dt},zt=Vt==="square"||Vt==="butt"?0:void 0,rn=Be!=null?Be:[-1,ft||(Be==="small"?6:8)],[on,Xt]=Ke(rn,"line",{strokeWidth:ft}),vn={backgroundColor:En||void 0,borderRadius:zt},pn=Object.assign(Object.assign({width:`${Lt(Jt)}%`,height:Xt,borderRadius:zt},dn),{[te]:Lt(Jt)/100}),wn=en($e),$n={width:`${Lt(wn)}%`,height:Xt,borderRadius:zt,backgroundColor:Fn==null?void 0:Fn.strokeColor},xn={width:on<0?"100%":on},hn=b.createElement("div",{className:`${mt}-inner`,style:vn},b.createElement("div",{className:je()(`${mt}-bg`,`${mt}-bg-${kn}`),style:pn},kn==="inner"&&un),wn!==void 0&&b.createElement("div",{className:`${mt}-success-bg`,style:$n})),Zn=kn==="outer"&&gn==="start",Wn=kn==="outer"&&gn==="end";return kn==="outer"&&gn==="center"?b.createElement("div",{className:`${mt}-layout-bottom`},hn,un):b.createElement("div",{className:`${mt}-outer`,style:xn},Zn&&un,hn,Wn&&un)},Zt=$e=>{const{size:mt,steps:jt,rounding:Jt=Math.round,percent:Be=0,strokeWidth:ft=8,strokeColor:Dt,trailColor:Vt=null,prefixCls:un,children:En}=$e,Mn=Jt(jt*(Be/100)),Fn=mt==="small"?2:14,gn=mt!=null?mt:[Fn,ft],[kn,dn]=Ke(gn,"step",{steps:jt,strokeWidth:ft}),zt=kn/jt,rn=Array.from({length:jt});for(let on=0;on<jt;on++){const Xt=Array.isArray(Dt)?Dt[on]:Dt;rn[on]=b.createElement("div",{key:on,className:je()(`${un}-steps-item`,{[`${un}-steps-item-active`]:on<=Mn-1}),style:{backgroundColor:on<=Mn-1?Xt:Vt,width:zt,height:dn}})}return b.createElement("div",{className:`${un}-steps-outer`},rn,En)},Tt=function($e,mt){var jt={};for(var Jt in $e)Object.prototype.hasOwnProperty.call($e,Jt)&&mt.indexOf(Jt)<0&&(jt[Jt]=$e[Jt]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Be=0,Jt=Object.getOwnPropertySymbols($e);Be<Jt.length;Be++)mt.indexOf(Jt[Be])<0&&Object.prototype.propertyIsEnumerable.call($e,Jt[Be])&&(jt[Jt[Be]]=$e[Jt[Be]]);return jt};const nn=null,Ut=["normal","exception","active","success"];var an=b.forwardRef(($e,mt)=>{const{prefixCls:jt,className:Jt,rootClassName:Be,steps:ft,strokeColor:Dt,percent:Vt=0,size:un="default",showInfo:En=!0,type:Mn="line",status:Fn,format:gn,style:kn,percentPosition:dn={}}=$e,zt=Tt($e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:rn="end",type:on="outer"}=dn,Xt=Array.isArray(Dt)?Dt[0]:Dt,vn=typeof Dt=="string"||Array.isArray(Dt)?Dt:void 0,pn=b.useMemo(()=>{if(Xt){const Re=typeof Xt=="string"?Xt:Object.values(Xt)[0];return new ze.FastColor(Re).isLight()}return!1},[Dt]),wn=b.useMemo(()=>{var Re,vt;const Ze=en($e);return parseInt(Ze!==void 0?(Re=Ze!=null?Ze:0)===null||Re===void 0?void 0:Re.toString():(vt=Vt!=null?Vt:0)===null||vt===void 0?void 0:vt.toString(),10)},[Vt,$e.success,$e.successPercent]),$n=b.useMemo(()=>!Ut.includes(Fn)&&wn>=100?"success":Fn||"normal",[Fn,wn]),{getPrefixCls:xn,direction:hn,progress:Zn}=b.useContext(ue.E_),Wn=xn("progress",jt),[ir,tr,sn]=Le(Wn),yn=Mn==="line",zn=yn&&!ft,Hn=b.useMemo(()=>{if(!En)return null;const Re=en($e);let vt;const Ze=gn||(Pe=>`${Pe}%`),bt=yn&&pn&&on==="inner";return on==="inner"||gn||$n!=="exception"&&$n!=="success"?vt=Ze(Lt(Vt),Lt(Re)):$n==="exception"?vt=yn?b.createElement(Se.Z,null):b.createElement(xe.Z,null):$n==="success"&&(vt=yn?b.createElement(fe.Z,null):b.createElement(nt.Z,null)),b.createElement("span",{className:je()(`${Wn}-text`,{[`${Wn}-text-bright`]:bt,[`${Wn}-text-${rn}`]:zn,[`${Wn}-text-${on}`]:zn}),title:typeof vt=="string"?vt:void 0},vt)},[En,Vt,wn,$n,Mn,Wn,gn]);let ut;Mn==="line"?ut=ft?b.createElement(Zt,Object.assign({},$e,{strokeColor:vn,prefixCls:Wn,steps:typeof ft=="object"?ft.count:ft}),Hn):b.createElement(we,Object.assign({},$e,{strokeColor:Xt,prefixCls:Wn,direction:hn,percentPosition:{align:rn,type:on}}),Hn):(Mn==="circle"||Mn==="dashboard")&&(ut=b.createElement(Rt,Object.assign({},$e,{strokeColor:Xt,prefixCls:Wn,progressStatus:$n}),Hn));const Pt=je()(Wn,`${Wn}-status-${$n}`,{[`${Wn}-${Mn==="dashboard"&&"circle"||Mn}`]:Mn!=="line",[`${Wn}-inline-circle`]:Mn==="circle"&&Ke(un,"circle")[0]<=20,[`${Wn}-line`]:zn,[`${Wn}-line-align-${rn}`]:zn,[`${Wn}-line-position-${on}`]:zn,[`${Wn}-steps`]:ft,[`${Wn}-show-info`]:En,[`${Wn}-${un}`]:typeof un=="string",[`${Wn}-rtl`]:hn==="rtl"},Zn==null?void 0:Zn.className,Jt,Be,tr,sn);return ir(b.createElement("div",Object.assign({ref:mt,style:Object.assign(Object.assign({},Zn==null?void 0:Zn.style),kn),className:Pt,role:"progressbar","aria-valuenow":wn,"aria-valuemin":0,"aria-valuemax":100},(0,Ie.Z)(zt,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),ut))}),_t=an},63139:function(In,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Ot}});var b=ee(59301),ze=ee(60499),fe={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"},nt=fe,Se=ee(7657),xe=function(Ke,tt){return b.createElement(Se.Z,(0,ze.Z)({},Ke,{ref:tt,icon:nt}))},Ee=b.forwardRef(xe),je=Ee,Ie=ee(92310),ue=ee.n(Ie),et=ee(18642),Te=ee(72190),At=ee(42244),lt=ee(18929),it=ee(10228),We=ee(26112);function ke(ge,Ke){var tt=ge.disabled,Wt=ge.prefixCls,qe=ge.character,Rt=ge.characterRender,Qe=ge.index,tn=ge.count,gt=ge.value,ae=ge.allowHalf,ne=ge.focused,te=ge.onHover,oe=ge.onClick,ce=function(Ge){te(Ge,Qe)},re=function(Ge){oe(Ge,Qe)},le=function(Ge){Ge.keyCode===it.Z.ENTER&&oe(Ge,Qe)},be=Qe+1,ht=new Set([Wt]);gt===0&&Qe===0&&ne?ht.add("".concat(Wt,"-focused")):ae&>+.5>=be&><be?(ht.add("".concat(Wt,"-half")),ht.add("".concat(Wt,"-active")),ne&&ht.add("".concat(Wt,"-focused"))):(be<=gt?ht.add("".concat(Wt,"-full")):ht.add("".concat(Wt,"-zero")),be===gt&&ne&&ht.add("".concat(Wt,"-focused")));var Le=typeof qe=="function"?qe(ge):qe,Ne=b.createElement("li",{className:ue()(Array.from(ht)),ref:Ke},b.createElement("div",{onClick:tt?null:re,onKeyDown:tt?null:le,onMouseMove:tt?null:ce,role:"radio","aria-checked":gt>Qe?"true":"false","aria-posinset":Qe+1,"aria-setsize":tn,tabIndex:tt?-1:0},b.createElement("div",{className:"".concat(Wt,"-first")},Le),b.createElement("div",{className:"".concat(Wt,"-second")},Le)));return Rt&&(Ne=Rt(Ne,ge)),Ne}var ot=b.forwardRef(ke);function yt(){var ge=b.useRef({});function Ke(Wt){return ge.current[Wt]}function tt(Wt){return function(qe){ge.current[Wt]=qe}}return[Ke,tt]}function Nt(ge){var Ke=ge.pageXOffset,tt="scrollLeft";if(typeof Ke!="number"){var Wt=ge.document;Ke=Wt.documentElement[tt],typeof Ke!="number"&&(Ke=Wt.body[tt])}return Ke}function Fe(ge){var Ke,tt,Wt=ge.ownerDocument,qe=Wt.body,Rt=Wt&&Wt.documentElement,Qe=ge.getBoundingClientRect();return Ke=Qe.left,tt=Qe.top,Ke-=Rt.clientLeft||qe.clientLeft||0,tt-=Rt.clientTop||qe.clientTop||0,{left:Ke,top:tt}}function Me(ge){var Ke=Fe(ge),tt=ge.ownerDocument,Wt=tt.defaultView||tt.parentWindow;return Ke.left+=Nt(Wt),Ke.left}var Xe=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function Je(ge,Ke){var tt=ge.prefixCls,Wt=tt===void 0?"rc-rate":tt,qe=ge.className,Rt=ge.defaultValue,Qe=ge.value,tn=ge.count,gt=tn===void 0?5:tn,ae=ge.allowHalf,ne=ae===void 0?!1:ae,te=ge.allowClear,oe=te===void 0?!0:te,ce=ge.keyboard,re=ce===void 0?!0:ce,le=ge.character,be=le===void 0?"\u2605":le,ht=ge.characterRender,Le=ge.disabled,Ne=ge.direction,Ve=Ne===void 0?"ltr":Ne,Ge=ge.tabIndex,pt=Ge===void 0?0:Ge,we=ge.autoFocus,De=ge.onHoverChange,Zt=ge.onChange,Tt=ge.onFocus,nn=ge.onBlur,Ut=ge.onKeyDown,St=ge.onMouseLeave,an=(0,At.Z)(ge,Xe),_t=yt(),$e=(0,Te.Z)(_t,2),mt=$e[0],jt=$e[1],Jt=b.useRef(null),Be=function(){if(!Le){var Hn;(Hn=Jt.current)===null||Hn===void 0||Hn.focus()}};b.useImperativeHandle(Ke,function(){return{focus:Be,blur:function(){if(!Le){var Hn;(Hn=Jt.current)===null||Hn===void 0||Hn.blur()}}}});var ft=(0,lt.Z)(Rt||0,{value:Qe}),Dt=(0,Te.Z)(ft,2),Vt=Dt[0],un=Dt[1],En=(0,lt.Z)(null),Mn=(0,Te.Z)(En,2),Fn=Mn[0],gn=Mn[1],kn=function(Hn,ut){var Pt=Ve==="rtl",Re=Hn+1;if(ne){var vt=mt(Hn),Ze=Me(vt),bt=vt.clientWidth;(Pt&&ut-Ze>bt/2||!Pt&&ut-Ze<bt/2)&&(Re-=.5)}return Re},dn=function(Hn){un(Hn),Zt==null||Zt(Hn)},zt=b.useState(!1),rn=(0,Te.Z)(zt,2),on=rn[0],Xt=rn[1],vn=function(){Xt(!0),Tt==null||Tt()},pn=function(){Xt(!1),nn==null||nn()},wn=b.useState(null),$n=(0,Te.Z)(wn,2),xn=$n[0],hn=$n[1],Zn=function(Hn,ut){var Pt=kn(ut,Hn.pageX);Pt!==Fn&&(hn(Pt),gn(null)),De==null||De(Pt)},Wn=function(Hn){Le||(hn(null),gn(null),De==null||De(void 0)),Hn&&(St==null||St(Hn))},ir=function(Hn,ut){var Pt=kn(ut,Hn.pageX),Re=!1;oe&&(Re=Pt===Vt),Wn(),dn(Re?0:Pt),gn(Re?Pt:null)},tr=function(Hn){var ut=Hn.keyCode,Pt=Ve==="rtl",Re=ne?.5:1;re&&(ut===it.Z.RIGHT&&Vt<gt&&!Pt?(dn(Vt+Re),Hn.preventDefault()):ut===it.Z.LEFT&&Vt>0&&!Pt||ut===it.Z.RIGHT&&Vt>0&&Pt?(dn(Vt-Re),Hn.preventDefault()):ut===it.Z.LEFT&&Vt<gt&&Pt&&(dn(Vt+Re),Hn.preventDefault())),Ut==null||Ut(Hn)};b.useEffect(function(){we&&!Le&&Be()},[]);var sn=new Array(gt).fill(0).map(function(zn,Hn){return b.createElement(ot,{ref:jt(Hn),index:Hn,count:gt,disabled:Le,prefixCls:"".concat(Wt,"-star"),allowHalf:ne,value:xn===null?Vt:xn,onClick:ir,onHover:Zn,key:zn||Hn,character:be,characterRender:ht,focused:on})}),yn=ue()(Wt,qe,(0,et.Z)((0,et.Z)({},"".concat(Wt,"-disabled"),Le),"".concat(Wt,"-rtl"),Ve==="rtl"));return b.createElement("ul",(0,ze.Z)({className:yn,onMouseLeave:Wn,tabIndex:Le?-1:pt,onFocus:Le?null:vn,onBlur:Le?null:pn,onKeyDown:Le?null:tr,ref:Jt},(0,We.Z)(an,{aria:!0,data:!0,attr:!0})),sn)}var $t=b.forwardRef(Je),ct=$t,Ye=ee(48755),rt=ee(25399),Ce=ee(36237),at=ee(63356),_e=ee(16931),de=ee(51636);const Et=ge=>{const{componentCls:Ke}=ge;return{[`${Ke}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:ge.marginXS},"> div":{transition:`all ${ge.motionDurationMid}, outline 0s`,"&:hover":{transform:ge.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${(0,Ce.unit)(ge.lineWidth)} dashed ${ge.starColor}`,transform:ge.starHoverScale}},"&-first, &-second":{color:ge.starBg,transition:`all ${ge.motionDurationMid}`,userSelect:"none"},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${Ke}-star-first, &-half ${Ke}-star-second`]:{opacity:1},[`&-half ${Ke}-star-first, &-full ${Ke}-star-second`]:{color:"inherit"}}}},He=ge=>({[`&-rtl${ge.componentCls}`]:{direction:"rtl"}}),st=ge=>{const{componentCls:Ke}=ge;return{[Ke]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,at.Wf)(ge)),{display:"inline-block",margin:0,padding:0,color:ge.starColor,fontSize:ge.starSize,lineHeight:1,listStyle:"none",outline:"none",[`&-disabled${Ke} ${Ke}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),Et(ge)),He(ge))}},Yt=ge=>({starColor:ge.yellow6,starSize:ge.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:ge.colorFillContent});var Oe=(0,_e.I$)("Rate",ge=>{const Ke=(0,de.mergeToken)(ge,{});return[st(Ke)]},Yt),pe=ee(2171),Lt=function(ge,Ke){var tt={};for(var Wt in ge)Object.prototype.hasOwnProperty.call(ge,Wt)&&Ke.indexOf(Wt)<0&&(tt[Wt]=ge[Wt]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qe=0,Wt=Object.getOwnPropertySymbols(ge);qe<Wt.length;qe++)Ke.indexOf(Wt[qe])<0&&Object.prototype.propertyIsEnumerable.call(ge,Wt[qe])&&(tt[Wt[qe]]=ge[Wt[qe]]);return tt},Ot=b.forwardRef((ge,Ke)=>{const{prefixCls:tt,className:Wt,rootClassName:qe,style:Rt,tooltips:Qe,character:tn=b.createElement(je,null),disabled:gt}=ge,ae=Lt(ge,["prefixCls","className","rootClassName","style","tooltips","character","disabled"]),ne=(Ge,pt)=>{let{index:we}=pt;return Qe?b.createElement(rt.Z,{title:Qe[we]},Ge):Ge},{getPrefixCls:te,direction:oe,rate:ce}=b.useContext(Ye.E_),re=te("rate",tt),[le,be,ht]=Oe(re),Le=Object.assign(Object.assign({},ce==null?void 0:ce.style),Rt),Ne=b.useContext(pe.Z),Ve=gt!=null?gt:Ne;return le(b.createElement(ct,Object.assign({ref:Ke,character:tn,characterRender:ne,disabled:Ve},ae,{className:ue()(Wt,qe,be,ht,ce==null?void 0:ce.className),style:Le,prefixCls:re,direction:oe})))})},82326:function(In,Qt,ee){"use strict";var b=ee(59301),ze=ee(92310),fe=ee.n(ze),nt=ee(37463),Se=ee(2738),xe=ee(75030),Ee=ee(86641),je=ee(45915),Ie=ee(82855),ue=ee(48755),et=ee(38406),Te=ee(2171),At=ee(83397),lt=ee(31756),it=ee(56553),We=ee(24971),ke=ee(70045),ot=ee(57700),yt=ee(1722),Nt=ee(90376),Fe=ee(68525),Me=ee(90005),Xe=function(rt,Ce){var at={};for(var _e in rt)Object.prototype.hasOwnProperty.call(rt,_e)&&Ce.indexOf(_e)<0&&(at[_e]=rt[_e]);if(rt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var de=0,_e=Object.getOwnPropertySymbols(rt);de<_e.length;de++)Ce.indexOf(_e[de])<0&&Object.prototype.propertyIsEnumerable.call(rt,_e[de])&&(at[_e[de]]=rt[_e[de]]);return at};const Je="SECRET_COMBOBOX_MODE_DO_NOT_USE",$t=(rt,Ce)=>{var at;const{prefixCls:_e,bordered:de,className:Et,rootClassName:He,getPopupContainer:st,popupClassName:Yt,dropdownClassName:Oe,listHeight:pe=256,placement:Lt,listItemHeight:en,size:Ot,disabled:ge,notFoundContent:Ke,status:tt,builtinPlacements:Wt,dropdownMatchSelectWidth:qe,popupMatchSelectWidth:Rt,direction:Qe,style:tn,allowClear:gt,variant:ae,dropdownStyle:ne,transitionName:te,tagRender:oe,maxCount:ce,prefix:re}=rt,le=Xe(rt,["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:be,getPrefixCls:ht,renderEmpty:Le,direction:Ne,virtual:Ve,popupMatchSelectWidth:Ge,popupOverflow:pt}=b.useContext(ue.E_),we=(0,ue.dj)("select"),[,De]=(0,ot.ZP)(),Zt=en!=null?en:De==null?void 0:De.controlHeight,Tt=ht("select",_e),nn=ht(),Ut=Qe!=null?Qe:Ne,{compactSize:St,compactItemClassnames:an}=(0,ke.ri)(Tt,Ut),[_t,$e]=(0,We.Z)("select",ae,de),mt=(0,At.Z)(Tt),[jt,Jt,Be]=(0,Nt.Z)(Tt,mt),ft=b.useMemo(()=>{const{mode:tr}=rt;if(tr!=="combobox")return tr===Je?"combobox":tr},[rt.mode]),Dt=ft==="multiple"||ft==="tags",Vt=(0,Me.Z)(rt.suffixIcon,rt.showArrow),un=(at=Rt!=null?Rt:qe)!==null&&at!==void 0?at:Ge,{status:En,hasFeedback:Mn,isFormItemInput:Fn,feedbackIcon:gn}=b.useContext(it.aM),kn=(0,Ie.F)(En,tt);let dn;Ke!==void 0?dn=Ke:ft==="combobox"?dn=null:dn=(Le==null?void 0:Le("Select"))||b.createElement(et.Z,{componentName:"Select"});const{suffixIcon:zt,itemIcon:rn,removeIcon:on,clearIcon:Xt}=(0,Fe.Z)(Object.assign(Object.assign({},le),{multiple:Dt,hasFeedback:Mn,feedbackIcon:gn,showSuffixIcon:Vt,prefixCls:Tt,componentName:"Select"})),vn=gt===!0?{clearIcon:Xt}:gt,pn=(0,Se.Z)(le,["suffixIcon","itemIcon"]),wn=fe()(Yt||Oe,{[`${Tt}-dropdown-${Ut}`]:Ut==="rtl"},He,Be,mt,Jt),$n=(0,lt.Z)(tr=>{var sn;return(sn=Ot!=null?Ot:St)!==null&&sn!==void 0?sn:tr}),xn=b.useContext(Te.Z),hn=ge!=null?ge:xn,Zn=fe()({[`${Tt}-lg`]:$n==="large",[`${Tt}-sm`]:$n==="small",[`${Tt}-rtl`]:Ut==="rtl",[`${Tt}-${_t}`]:$e,[`${Tt}-in-form-item`]:Fn},(0,Ie.Z)(Tt,kn,Mn),an,we.className,Et,He,Be,mt,Jt),Wn=b.useMemo(()=>Lt!==void 0?Lt:Ut==="rtl"?"bottomRight":"bottomLeft",[Lt,Ut]),[ir]=(0,xe.Cn)("SelectLike",ne==null?void 0:ne.zIndex);return jt(b.createElement(nt.ZP,Object.assign({ref:Ce,virtual:Ve,showSearch:we.showSearch},pn,{style:Object.assign(Object.assign({},we.style),tn),dropdownMatchSelectWidth:un,transitionName:(0,Ee.m)(nn,"slide-up",te),builtinPlacements:(0,yt.Z)(Wt,pt),listHeight:pe,listItemHeight:Zt,mode:ft,prefixCls:Tt,placement:Wn,direction:Ut,prefix:re,suffixIcon:zt,menuItemSelectedIcon:rn,removeIcon:on,allowClear:vn,notFoundContent:dn,className:Zn,getPopupContainer:st||be,dropdownClassName:wn,disabled:hn,dropdownStyle:Object.assign(Object.assign({},ne),{zIndex:ir}),maxCount:Dt?ce:void 0,tagRender:Dt?oe:void 0})))},ct=b.forwardRef($t),Ye=(0,je.Z)(ct,"dropdownAlign");ct.SECRET_COMBOBOX_MODE_DO_NOT_USE=Je,ct.Option=nt.Wx,ct.OptGroup=nt.Xo,ct._InternalPanelDoNotUseOrYouWillBeFired=Ye,Qt.default=ct},1722:function(In,Qt){"use strict";const ee=ze=>{const nt={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:ze==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},nt),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},nt),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},nt),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},nt),{points:["br","tr"],offset:[0,-4]})}};function b(ze,fe){return ze||ee(fe)}Qt.Z=b},90376:function(In,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return _e}});var b=ee(63356),ze=ee(56119),fe=ee(16931),nt=ee(51636),Se=ee(46e3),xe=ee(93873);const Ee=de=>{const{optionHeight:Et,optionFontSize:He,optionLineHeight:st,optionPadding:Yt}=de;return{position:"relative",display:"block",minHeight:Et,padding:Yt,color:de.colorText,fontWeight:"normal",fontSize:He,lineHeight:st,boxSizing:"border-box"}};var Ie=de=>{const{antCls:Et,componentCls:He}=de,st=`${He}-item`,Yt=`&${Et}-slide-up-enter${Et}-slide-up-enter-active`,Oe=`&${Et}-slide-up-appear${Et}-slide-up-appear-active`,pe=`&${Et}-slide-up-leave${Et}-slide-up-leave-active`,Lt=`${He}-dropdown-placement-`,en=`${st}-option-selected`;return[{[`${He}-dropdown`]:Object.assign(Object.assign({},(0,b.Wf)(de)),{position:"absolute",top:-9999,zIndex:de.zIndexPopup,boxSizing:"border-box",padding:de.paddingXXS,overflow:"hidden",fontSize:de.fontSize,fontVariant:"initial",backgroundColor:de.colorBgElevated,borderRadius:de.borderRadiusLG,outline:"none",boxShadow:de.boxShadowSecondary,[`
|
|
|
${Yt}${Lt}bottomLeft,
|
|
|
${Oe}${Lt}bottomLeft
|
|
|
`]:{animationName:Se.fJ},[`
|
|
|
${Yt}${Lt}topLeft,
|
|
|
${Oe}${Lt}topLeft,
|
|
|
${Yt}${Lt}topRight,
|
|
|
${Oe}${Lt}topRight
|
|
|
`]:{animationName:Se.Qt},[`${pe}${Lt}bottomLeft`]:{animationName:Se.Uw},[`
|
|
|
${pe}${Lt}topLeft,
|
|
|
${pe}${Lt}topRight
|
|
|
`]:{animationName:Se.ly},"&-hidden":{display:"none"},[st]:Object.assign(Object.assign({},Ee(de)),{cursor:"pointer",transition:`background ${de.motionDurationSlow} ease`,borderRadius:de.borderRadiusSM,"&-group":{color:de.colorTextDescription,fontSize:de.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},b.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${st}-option-disabled)`]:{backgroundColor:de.optionActiveBg},[`&-selected:not(${st}-option-disabled)`]:{color:de.optionSelectedColor,fontWeight:de.optionSelectedFontWeight,backgroundColor:de.optionSelectedBg,[`${st}-option-state`]:{color:de.colorPrimary}},"&-disabled":{[`&${st}-option-selected`]:{backgroundColor:de.colorBgContainerDisabled},color:de.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:de.calc(de.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},Ee(de)),{color:de.colorTextDisabled})}),[`${en}:has(+ ${en})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${en}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},(0,Se.oN)(de,"slide-up"),(0,Se.oN)(de,"slide-down"),(0,xe.Fm)(de,"move-up"),(0,xe.Fm)(de,"move-down")]},ue=ee(26743),et=ee(36237);function Te(de,Et){const{componentCls:He,inputPaddingHorizontalBase:st,borderRadius:Yt}=de,Oe=de.calc(de.controlHeight).sub(de.calc(de.lineWidth).mul(2)).equal(),pe=Et?`${He}-${Et}`:"";return{[`${He}-single${pe}`]:{fontSize:de.fontSize,height:de.controlHeight,[`${He}-selector`]:Object.assign(Object.assign({},(0,b.Wf)(de,!0)),{display:"flex",borderRadius:Yt,flex:"1 1 auto",[`${He}-selection-wrap:after`]:{lineHeight:(0,et.unit)(Oe)},[`${He}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
|
|
|
${He}-selection-item,
|
|
|
${He}-selection-placeholder
|
|
|
`]:{display:"block",padding:0,lineHeight:(0,et.unit)(Oe),transition:`all ${de.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${He}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${He}-selection-item:empty:after`,`${He}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
|
|
&${He}-show-arrow ${He}-selection-item,
|
|
|
&${He}-show-arrow ${He}-selection-search,
|
|
|
&${He}-show-arrow ${He}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:de.showArrowPaddingInlineEnd},[`&${He}-open ${He}-selection-item`]:{color:de.colorTextPlaceholder},[`&:not(${He}-customize-input)`]:{[`${He}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${(0,et.unit)(st)}`,[`${He}-selection-search-input`]:{height:Oe,fontSize:de.fontSize},"&:after":{lineHeight:(0,et.unit)(Oe)}}},[`&${He}-customize-input`]:{[`${He}-selector`]:{"&:after":{display:"none"},[`${He}-selection-search`]:{position:"static",width:"100%"},[`${He}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${(0,et.unit)(st)}`,"&:after":{display:"none"}}}}}}}function At(de){const{componentCls:Et}=de,He=de.calc(de.controlPaddingHorizontalSM).sub(de.lineWidth).equal();return[Te(de),Te((0,nt.mergeToken)(de,{controlHeight:de.controlHeightSM,borderRadius:de.borderRadiusSM}),"sm"),{[`${Et}-single${Et}-sm`]:{[`&:not(${Et}-customize-input)`]:{[`${Et}-selector`]:{padding:`0 ${(0,et.unit)(He)}`},[`&${Et}-show-arrow ${Et}-selection-search`]:{insetInlineEnd:de.calc(He).add(de.calc(de.fontSize).mul(1.5)).equal()},[`
|
|
|
&${Et}-show-arrow ${Et}-selection-item,
|
|
|
&${Et}-show-arrow ${Et}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:de.calc(de.fontSize).mul(1.5).equal()}}}},Te((0,nt.mergeToken)(de,{controlHeight:de.singleItemHeightLG,fontSize:de.fontSizeLG,borderRadius:de.borderRadiusLG}),"lg")]}const lt=de=>{const{fontSize:Et,lineHeight:He,lineWidth:st,controlHeight:Yt,controlHeightSM:Oe,controlHeightLG:pe,paddingXXS:Lt,controlPaddingHorizontal:en,zIndexPopupBase:Ot,colorText:ge,fontWeightStrong:Ke,controlItemBgActive:tt,controlItemBgHover:Wt,colorBgContainer:qe,colorFillSecondary:Rt,colorBgContainerDisabled:Qe,colorTextDisabled:tn,colorPrimaryHover:gt,colorPrimary:ae,controlOutline:ne}=de,te=Lt*2,oe=st*2,ce=Math.min(Yt-te,Yt-oe),re=Math.min(Oe-te,Oe-oe),le=Math.min(pe-te,pe-oe);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(Lt/2),zIndexPopup:Ot+50,optionSelectedColor:ge,optionSelectedFontWeight:Ke,optionSelectedBg:tt,optionActiveBg:Wt,optionPadding:`${(Yt-Et*He)/2}px ${en}px`,optionFontSize:Et,optionLineHeight:He,optionHeight:Yt,selectorBg:qe,clearBg:qe,singleItemHeightLG:pe,multipleItemBg:Rt,multipleItemBorderColor:"transparent",multipleItemHeight:ce,multipleItemHeightSM:re,multipleItemHeightLG:le,multipleSelectorBgDisabled:Qe,multipleItemColorDisabled:tn,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(de.fontSize*1.25),hoverBorderColor:gt,activeBorderColor:ae,activeOutlineColor:ne,selectAffixPadding:Lt}},it=(de,Et)=>{const{componentCls:He,antCls:st,controlOutlineWidth:Yt}=de;return{[`&:not(${He}-customize-input) ${He}-selector`]:{border:`${(0,et.unit)(de.lineWidth)} ${de.lineType} ${Et.borderColor}`,background:de.selectorBg},[`&:not(${He}-disabled):not(${He}-customize-input):not(${st}-pagination-size-changer)`]:{[`&:hover ${He}-selector`]:{borderColor:Et.hoverBorderHover},[`${He}-focused& ${He}-selector`]:{borderColor:Et.activeBorderColor,boxShadow:`0 0 0 ${(0,et.unit)(Yt)} ${Et.activeOutlineColor}`,outline:0},[`${He}-prefix`]:{color:Et.color}}}},We=(de,Et)=>({[`&${de.componentCls}-status-${Et.status}`]:Object.assign({},it(de,Et))}),ke=de=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},it(de,{borderColor:de.colorBorder,hoverBorderHover:de.hoverBorderColor,activeBorderColor:de.activeBorderColor,activeOutlineColor:de.activeOutlineColor,color:de.colorText})),We(de,{status:"error",borderColor:de.colorError,hoverBorderHover:de.colorErrorHover,activeBorderColor:de.colorError,activeOutlineColor:de.colorErrorOutline,color:de.colorError})),We(de,{status:"warning",borderColor:de.colorWarning,hoverBorderHover:de.colorWarningHover,activeBorderColor:de.colorWarning,activeOutlineColor:de.colorWarningOutline,color:de.colorWarning})),{[`&${de.componentCls}-disabled`]:{[`&:not(${de.componentCls}-customize-input) ${de.componentCls}-selector`]:{background:de.colorBgContainerDisabled,color:de.colorTextDisabled}},[`&${de.componentCls}-multiple ${de.componentCls}-selection-item`]:{background:de.multipleItemBg,border:`${(0,et.unit)(de.lineWidth)} ${de.lineType} ${de.multipleItemBorderColor}`}})}),ot=(de,Et)=>{const{componentCls:He,antCls:st}=de;return{[`&:not(${He}-customize-input) ${He}-selector`]:{background:Et.bg,border:`${(0,et.unit)(de.lineWidth)} ${de.lineType} transparent`,color:Et.color},[`&:not(${He}-disabled):not(${He}-customize-input):not(${st}-pagination-size-changer)`]:{[`&:hover ${He}-selector`]:{background:Et.hoverBg},[`${He}-focused& ${He}-selector`]:{background:de.selectorBg,borderColor:Et.activeBorderColor,outline:0}}}},yt=(de,Et)=>({[`&${de.componentCls}-status-${Et.status}`]:Object.assign({},ot(de,Et))}),Nt=de=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},ot(de,{bg:de.colorFillTertiary,hoverBg:de.colorFillSecondary,activeBorderColor:de.activeBorderColor,color:de.colorText})),yt(de,{status:"error",bg:de.colorErrorBg,hoverBg:de.colorErrorBgHover,activeBorderColor:de.colorError,color:de.colorError})),yt(de,{status:"warning",bg:de.colorWarningBg,hoverBg:de.colorWarningBgHover,activeBorderColor:de.colorWarning,color:de.colorWarning})),{[`&${de.componentCls}-disabled`]:{[`&:not(${de.componentCls}-customize-input) ${de.componentCls}-selector`]:{borderColor:de.colorBorder,background:de.colorBgContainerDisabled,color:de.colorTextDisabled}},[`&${de.componentCls}-multiple ${de.componentCls}-selection-item`]:{background:de.colorBgContainer,border:`${(0,et.unit)(de.lineWidth)} ${de.lineType} ${de.colorSplit}`}})}),Fe=de=>({"&-borderless":{[`${de.componentCls}-selector`]:{background:"transparent",border:`${(0,et.unit)(de.lineWidth)} ${de.lineType} transparent`},[`&${de.componentCls}-disabled`]:{[`&:not(${de.componentCls}-customize-input) ${de.componentCls}-selector`]:{color:de.colorTextDisabled}},[`&${de.componentCls}-multiple ${de.componentCls}-selection-item`]:{background:de.multipleItemBg,border:`${(0,et.unit)(de.lineWidth)} ${de.lineType} ${de.multipleItemBorderColor}`},[`&${de.componentCls}-status-error`]:{[`${de.componentCls}-prefix, ${de.componentCls}-selection-item`]:{color:de.colorError}},[`&${de.componentCls}-status-warning`]:{[`${de.componentCls}-prefix, ${de.componentCls}-selection-item`]:{color:de.colorWarning}}}}),Me=(de,Et)=>{const{componentCls:He,antCls:st}=de;return{[`&:not(${He}-customize-input) ${He}-selector`]:{borderWidth:`0 0 ${(0,et.unit)(de.lineWidth)} 0`,borderStyle:`none none ${de.lineType} none`,borderColor:Et.borderColor,background:de.selectorBg,borderRadius:0},[`&:not(${He}-disabled):not(${He}-customize-input):not(${st}-pagination-size-changer)`]:{[`&:hover ${He}-selector`]:{borderColor:Et.hoverBorderHover},[`${He}-focused& ${He}-selector`]:{borderColor:Et.activeBorderColor,outline:0},[`${He}-prefix`]:{color:Et.color}}}},Xe=(de,Et)=>({[`&${de.componentCls}-status-${Et.status}`]:Object.assign({},Me(de,Et))}),Je=de=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},Me(de,{borderColor:de.colorBorder,hoverBorderHover:de.hoverBorderColor,activeBorderColor:de.activeBorderColor,activeOutlineColor:de.activeOutlineColor,color:de.colorText})),Xe(de,{status:"error",borderColor:de.colorError,hoverBorderHover:de.colorErrorHover,activeBorderColor:de.colorError,activeOutlineColor:de.colorErrorOutline,color:de.colorError})),Xe(de,{status:"warning",borderColor:de.colorWarning,hoverBorderHover:de.colorWarningHover,activeBorderColor:de.colorWarning,activeOutlineColor:de.colorWarningOutline,color:de.colorWarning})),{[`&${de.componentCls}-disabled`]:{[`&:not(${de.componentCls}-customize-input) ${de.componentCls}-selector`]:{color:de.colorTextDisabled}},[`&${de.componentCls}-multiple ${de.componentCls}-selection-item`]:{background:de.multipleItemBg,border:`${(0,et.unit)(de.lineWidth)} ${de.lineType} ${de.multipleItemBorderColor}`}})});var ct=de=>({[de.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},ke(de)),Nt(de)),Fe(de)),Je(de))});const Ye=de=>{const{componentCls:Et}=de;return{position:"relative",transition:`all ${de.motionDurationMid} ${de.motionEaseInOut}`,input:{cursor:"pointer"},[`${Et}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${Et}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},rt=de=>{const{componentCls:Et}=de;return{[`${Et}-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=de=>{const{antCls:Et,componentCls:He,inputPaddingHorizontalBase:st,iconCls:Yt}=de;return{[He]:Object.assign(Object.assign({},(0,b.Wf)(de)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${He}-customize-input) ${He}-selector`]:Object.assign(Object.assign({},Ye(de)),rt(de)),[`${He}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},b.vS),{[`> ${Et}-typography`]:{display:"inline"}}),[`${He}-selection-placeholder`]:Object.assign(Object.assign({},b.vS),{flex:1,color:de.colorTextPlaceholder,pointerEvents:"none"}),[`${He}-arrow`]:Object.assign(Object.assign({},(0,b.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:st,height:de.fontSizeIcon,marginTop:de.calc(de.fontSizeIcon).mul(-1).div(2).equal(),color:de.colorTextQuaternary,fontSize:de.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${de.motionDurationSlow} ease`,[Yt]:{verticalAlign:"top",transition:`transform ${de.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${He}-suffix)`]:{pointerEvents:"auto"}},[`${He}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${He}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${He}-prefix`]:{flex:"none",marginInlineEnd:de.selectAffixPadding},[`${He}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:st,zIndex:1,display:"inline-block",width:de.fontSizeIcon,height:de.fontSizeIcon,marginTop:de.calc(de.fontSizeIcon).mul(-1).div(2).equal(),color:de.colorTextQuaternary,fontSize:de.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${de.motionDurationMid} ease, opacity ${de.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:de.colorTextTertiary}},[`&:hover ${He}-clear`]:{opacity:1,background:de.colorBgBase,borderRadius:"50%"}}),[`${He}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${He}-has-feedback`]:{[`${He}-clear`]:{insetInlineEnd:de.calc(st).add(de.fontSize).add(de.paddingXS).equal()}}}}}},at=de=>{const{componentCls:Et}=de;return[{[Et]:{[`&${Et}-in-form-item`]:{width:"100%"}}},Ce(de),At(de),(0,ue.ZP)(de),Ie(de),{[`${Et}-rtl`]:{direction:"rtl"}},(0,ze.c)(de,{borderElCls:`${Et}-selector`,focusElCls:`${Et}-focused`})]};var _e=(0,fe.I$)("Select",(de,Et)=>{let{rootPrefixCls:He}=Et;const st=(0,nt.mergeToken)(de,{rootPrefixCls:He,inputPaddingHorizontalBase:de.calc(de.paddingSM).sub(1).equal(),multipleSelectItemHeight:de.multipleItemHeight,selectHeight:de.controlHeight});return[at(st),ct(st)]},lt,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}})},26743:function(In,Qt,ee){"use strict";ee.d(Qt,{_z:function(){return xe},gp:function(){return nt}});var b=ee(36237),ze=ee(63356),fe=ee(51636);const nt=ue=>{const{multipleSelectItemHeight:et,paddingXXS:Te,lineWidth:At,INTERNAL_FIXED_ITEM_MARGIN:lt}=ue,it=ue.max(ue.calc(Te).sub(At).equal(),0),We=ue.max(ue.calc(it).sub(lt).equal(),0);return{basePadding:it,containerPadding:We,itemHeight:(0,b.unit)(et),itemLineHeight:(0,b.unit)(ue.calc(et).sub(ue.calc(ue.lineWidth).mul(2)).equal())}},Se=ue=>{const{multipleSelectItemHeight:et,selectHeight:Te,lineWidth:At}=ue;return ue.calc(Te).sub(et).div(2).sub(At).equal()},xe=ue=>{const{componentCls:et,iconCls:Te,borderRadiusSM:At,motionDurationSlow:lt,paddingXS:it,multipleItemColorDisabled:We,multipleItemBorderColorDisabled:ke,colorIcon:ot,colorIconHover:yt,INTERNAL_FIXED_ITEM_MARGIN:Nt}=ue;return{[`${et}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${et}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:Nt,borderRadius:At,cursor:"default",transition:`font-size ${lt}, line-height ${lt}, height ${lt}`,marginInlineEnd:ue.calc(Nt).mul(2).equal(),paddingInlineStart:it,paddingInlineEnd:ue.calc(it).div(2).equal(),[`${et}-disabled&`]:{color:We,borderColor:ke,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:ue.calc(it).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,ze.Ro)()),{display:"inline-flex",alignItems:"center",color:ot,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${Te}`]:{verticalAlign:"-0.2em"},"&:hover":{color:yt}})}}}},Ee=(ue,et)=>{const{componentCls:Te,INTERNAL_FIXED_ITEM_MARGIN:At}=ue,lt=`${Te}-selection-overflow`,it=ue.multipleSelectItemHeight,We=Se(ue),ke=et?`${Te}-${et}`:"",ot=nt(ue);return{[`${Te}-multiple${ke}`]:Object.assign(Object.assign({},xe(ue)),{[`${Te}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:ot.basePadding,paddingBlock:ot.containerPadding,borderRadius:ue.borderRadius,[`${Te}-disabled&`]:{background:ue.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${(0,b.unit)(At)} 0`,lineHeight:(0,b.unit)(it),visibility:"hidden",content:'"\\a0"'}},[`${Te}-selection-item`]:{height:ot.itemHeight,lineHeight:(0,b.unit)(ot.itemLineHeight)},[`${Te}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:(0,b.unit)(it),marginBlock:At}},[`${Te}-prefix`]:{marginInlineStart:ue.calc(ue.inputPaddingHorizontalBase).sub(ot.basePadding).equal()},[`${lt}-item + ${lt}-item,
|
|
|
${Te}-prefix + ${Te}-selection-wrap
|
|
|
`]:{[`${Te}-selection-search`]:{marginInlineStart:0},[`${Te}-selection-placeholder`]:{insetInlineStart:0}},[`${lt}-item-suffix`]:{minHeight:ot.itemHeight,marginBlock:At},[`${Te}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:ue.calc(ue.inputPaddingHorizontalBase).sub(We).equal(),"\n &-input,\n &-mirror\n ":{height:it,fontFamily:ue.fontFamily,lineHeight:(0,b.unit)(it),transition:`all ${ue.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${Te}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:ue.calc(ue.inputPaddingHorizontalBase).sub(ot.basePadding).equal(),insetInlineEnd:ue.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${ue.motionDurationSlow}`}})}};function je(ue,et){const{componentCls:Te}=ue,At=et?`${Te}-${et}`:"",lt={[`${Te}-multiple${At}`]:{fontSize:ue.fontSize,[`${Te}-selector`]:{[`${Te}-show-search&`]:{cursor:"text"}},[`
|
|
|
&${Te}-show-arrow ${Te}-selector,
|
|
|
&${Te}-allow-clear ${Te}-selector
|
|
|
`]:{paddingInlineEnd:ue.calc(ue.fontSizeIcon).add(ue.controlPaddingHorizontal).equal()}}};return[Ee(ue,et),lt]}const Ie=ue=>{const{componentCls:et}=ue,Te=(0,fe.mergeToken)(ue,{selectHeight:ue.controlHeightSM,multipleSelectItemHeight:ue.multipleItemHeightSM,borderRadius:ue.borderRadiusSM,borderRadiusSM:ue.borderRadiusXS}),At=(0,fe.mergeToken)(ue,{fontSize:ue.fontSizeLG,selectHeight:ue.controlHeightLG,multipleSelectItemHeight:ue.multipleItemHeightLG,borderRadius:ue.borderRadiusLG,borderRadiusSM:ue.borderRadius});return[je(ue),je(Te,"sm"),{[`${et}-multiple${et}-sm`]:{[`${et}-selection-placeholder`]:{insetInline:ue.calc(ue.controlPaddingHorizontalSM).sub(ue.lineWidth).equal()},[`${et}-selection-search`]:{marginInlineStart:2}}},je(At,"lg")]};Qt.ZP=Ie},68525:function(In,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return je}});var b=ee(59301),ze=ee(40001),fe=ee(19248),nt=ee(99267),Se=ee(84105),xe=ee(58617),Ee=ee(47472);function je(Ie){let{suffixIcon:ue,clearIcon:et,menuItemSelectedIcon:Te,removeIcon:At,loading:lt,multiple:it,hasFeedback:We,prefixCls:ke,showSuffixIcon:ot,feedbackIcon:yt,showArrow:Nt,componentName:Fe}=Ie;const Me=et!=null?et:b.createElement(fe.Z,null),Xe=Ye=>ue===null&&!We&&!Nt?null:b.createElement(b.Fragment,null,ot!==!1&&Ye,We&&yt);let Je=null;if(ue!==void 0)Je=Xe(ue);else if(lt)Je=Xe(b.createElement(xe.Z,{spin:!0}));else{const Ye=`${ke}-suffix`;Je=rt=>{let{open:Ce,showSearch:at}=rt;return Xe(Ce&&at?b.createElement(Ee.Z,{className:Ye}):b.createElement(Se.Z,{className:Ye}))}}let $t=null;Te!==void 0?$t=Te:it?$t=b.createElement(ze.Z,null):$t=null;let ct=null;return At!==void 0?ct=At:ct=b.createElement(nt.Z,null),{clearIcon:Me,suffixIcon:Je,itemIcon:$t,removeIcon:ct}}},90005:function(In,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return b}});function b(ze,fe){return fe!==void 0?fe:ze!==null}},11938:function(In,Qt,ee){"use strict";ee.d(Qt,{default:function(){return rt}});var b=ee(59301),ze=ee(40192),fe=ee(22703),nt=ee(92310),Se=ee.n(nt),xe=ee(26112),Ee=ee(48755),je=ee(458),ue=Ce=>{const{value:at,formatter:_e,precision:de,decimalSeparator:Et,groupSeparator:He="",prefixCls:st}=Ce;let Yt;if(typeof _e=="function")Yt=_e(at);else{const Oe=String(at),pe=Oe.match(/^(-?)(\d*)(\.(\d+))?$/);if(!pe||Oe==="-")Yt=Oe;else{const Lt=pe[1];let en=pe[2]||"0",Ot=pe[4]||"";en=en.replace(/\B(?=(\d{3})+(?!\d))/g,He),typeof de=="number"&&(Ot=Ot.padEnd(de,"0").slice(0,de>0?de:0)),Ot&&(Ot=`${Et}${Ot}`),Yt=[b.createElement("span",{key:"int",className:`${st}-content-value-int`},Lt,en),Ot&&b.createElement("span",{key:"decimal",className:`${st}-content-value-decimal`},Ot)]}}return b.createElement("span",{className:`${st}-content-value`},Yt)},et=ee(63356),Te=ee(16931),At=ee(51636);const lt=Ce=>{const{componentCls:at,marginXXS:_e,padding:de,colorTextDescription:Et,titleFontSize:He,colorTextHeading:st,contentFontSize:Yt,fontFamily:Oe}=Ce;return{[at]:Object.assign(Object.assign({},(0,et.Wf)(Ce)),{[`${at}-title`]:{marginBottom:_e,color:Et,fontSize:He},[`${at}-skeleton`]:{paddingTop:de},[`${at}-content`]:{color:st,fontSize:Yt,fontFamily:Oe,[`${at}-content-value`]:{display:"inline-block",direction:"ltr"},[`${at}-content-prefix, ${at}-content-suffix`]:{display:"inline-block"},[`${at}-content-prefix`]:{marginInlineEnd:_e},[`${at}-content-suffix`]:{marginInlineStart:_e}}})}},it=Ce=>{const{fontSizeHeading3:at,fontSize:_e}=Ce;return{titleFontSize:_e,contentFontSize:at}};var We=(0,Te.I$)("Statistic",Ce=>{const at=(0,At.mergeToken)(Ce,{});return[lt(at)]},it),ke=function(Ce,at){var _e={};for(var de in Ce)Object.prototype.hasOwnProperty.call(Ce,de)&&at.indexOf(de)<0&&(_e[de]=Ce[de]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Et=0,de=Object.getOwnPropertySymbols(Ce);Et<de.length;Et++)at.indexOf(de[Et])<0&&Object.prototype.propertyIsEnumerable.call(Ce,de[Et])&&(_e[de[Et]]=Ce[de[Et]]);return _e},yt=Ce=>{const{prefixCls:at,className:_e,rootClassName:de,style:Et,valueStyle:He,value:st=0,title:Yt,valueRender:Oe,prefix:pe,suffix:Lt,loading:en=!1,formatter:Ot,precision:ge,decimalSeparator:Ke=".",groupSeparator:tt=",",onMouseEnter:Wt,onMouseLeave:qe}=Ce,Rt=ke(Ce,["prefixCls","className","rootClassName","style","valueStyle","value","title","valueRender","prefix","suffix","loading","formatter","precision","decimalSeparator","groupSeparator","onMouseEnter","onMouseLeave"]),{getPrefixCls:Qe,direction:tn,className:gt,style:ae}=(0,Ee.dj)("statistic"),ne=Qe("statistic",at),[te,oe,ce]=We(ne),re=b.createElement(ue,{decimalSeparator:Ke,groupSeparator:tt,prefixCls:ne,formatter:Ot,precision:ge,value:st}),le=Se()(ne,{[`${ne}-rtl`]:tn==="rtl"},gt,_e,de,oe,ce),be=(0,xe.Z)(Rt,{aria:!0,data:!0});return te(b.createElement("div",Object.assign({},be,{className:le,style:Object.assign(Object.assign({},ae),Et),onMouseEnter:Wt,onMouseLeave:qe}),Yt&&b.createElement("div",{className:`${ne}-title`},Yt),b.createElement(je.Z,{paragraph:!1,loading:en,className:`${ne}-skeleton`},b.createElement("div",{style:He,className:`${ne}-content`},pe&&b.createElement("span",{className:`${ne}-content-prefix`},pe),Oe?Oe(re):re,Lt&&b.createElement("span",{className:`${ne}-content-suffix`},Lt)))))};const Nt=[["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 Fe(Ce,at){let _e=Ce;const de=/\[[^\]]*]/g,Et=(at.match(de)||[]).map(Oe=>Oe.slice(1,-1)),He=at.replace(de,"[]"),st=Nt.reduce((Oe,pe)=>{let[Lt,en]=pe;if(Oe.includes(Lt)){const Ot=Math.floor(_e/en);return _e-=Ot*en,Oe.replace(new RegExp(`${Lt}+`,"g"),ge=>{const Ke=ge.length;return Ot.toString().padStart(Ke,"0")})}return Oe},He);let Yt=0;return st.replace(de,()=>{const Oe=Et[Yt];return Yt+=1,Oe})}function Me(Ce,at){const{format:_e=""}=at,de=new Date(Ce).getTime(),Et=Date.now(),He=Math.max(de-Et,0);return Fe(He,_e)}var Xe=function(Ce,at){var _e={};for(var de in Ce)Object.prototype.hasOwnProperty.call(Ce,de)&&at.indexOf(de)<0&&(_e[de]=Ce[de]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Et=0,de=Object.getOwnPropertySymbols(Ce);Et<de.length;Et++)at.indexOf(de[Et])<0&&Object.prototype.propertyIsEnumerable.call(Ce,de[Et])&&(_e[de[Et]]=Ce[de[Et]]);return _e};const Je=1e3/30;function $t(Ce){return new Date(Ce).getTime()}const ct=Ce=>{const{value:at,format:_e="HH:mm:ss",onChange:de,onFinish:Et}=Ce,He=Xe(Ce,["value","format","onChange","onFinish"]),st=(0,ze.Z)(),Yt=b.useRef(null),Oe=()=>{Et==null||Et(),Yt.current&&(clearInterval(Yt.current),Yt.current=null)},pe=()=>{const Ot=$t(at);Ot>=Date.now()&&(Yt.current=setInterval(()=>{st(),de==null||de(Ot-Date.now()),Ot<Date.now()&&Oe()},Je))};b.useEffect(()=>(pe(),()=>{Yt.current&&(clearInterval(Yt.current),Yt.current=null)}),[at]);const Lt=(Ot,ge)=>Me(Ot,Object.assign(Object.assign({},ge),{format:_e})),en=Ot=>(0,fe.Tm)(Ot,{title:void 0});return b.createElement(yt,Object.assign({},He,{value:at,valueRender:en,formatter:Lt}))};var Ye=b.memo(ct);yt.Countdown=Ye;var rt=yt},58755:function(In,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Et}});var b=ee(59301),ze=ee(58617),fe=ee(92310),nt=ee.n(fe),Se=ee(60499),xe=ee(18642),Ee=ee(72190),je=ee(42244),Ie=ee(18929),ue=ee(10228),et=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Te=b.forwardRef(function(He,st){var Yt,Oe=He.prefixCls,pe=Oe===void 0?"rc-switch":Oe,Lt=He.className,en=He.checked,Ot=He.defaultChecked,ge=He.disabled,Ke=He.loadingIcon,tt=He.checkedChildren,Wt=He.unCheckedChildren,qe=He.onClick,Rt=He.onChange,Qe=He.onKeyDown,tn=(0,je.Z)(He,et),gt=(0,Ie.Z)(!1,{value:en,defaultValue:Ot}),ae=(0,Ee.Z)(gt,2),ne=ae[0],te=ae[1];function oe(be,ht){var Le=ne;return ge||(Le=be,te(Le),Rt==null||Rt(Le,ht)),Le}function ce(be){be.which===ue.Z.LEFT?oe(!1,be):be.which===ue.Z.RIGHT&&oe(!0,be),Qe==null||Qe(be)}function re(be){var ht=oe(!ne,be);qe==null||qe(ht,be)}var le=nt()(pe,Lt,(Yt={},(0,xe.Z)(Yt,"".concat(pe,"-checked"),ne),(0,xe.Z)(Yt,"".concat(pe,"-disabled"),ge),Yt));return b.createElement("button",(0,Se.Z)({},tn,{type:"button",role:"switch","aria-checked":ne,disabled:ge,className:le,ref:st,onKeyDown:ce,onClick:re}),Ke,b.createElement("span",{className:"".concat(pe,"-inner")},b.createElement("span",{className:"".concat(pe,"-inner-checked")},tt),b.createElement("span",{className:"".concat(pe,"-inner-unchecked")},Wt)))});Te.displayName="Switch";var At=Te,lt=ee(12919),it=ee(48755),We=ee(2171),ke=ee(31756),ot=ee(36237),yt=ee(17835),Nt=ee(63356),Fe=ee(16931),Me=ee(51636);const Xe=He=>{const{componentCls:st,trackHeightSM:Yt,trackPadding:Oe,trackMinWidthSM:pe,innerMinMarginSM:Lt,innerMaxMarginSM:en,handleSizeSM:Ot,calc:ge}=He,Ke=`${st}-inner`,tt=(0,ot.unit)(ge(Ot).add(ge(Oe).mul(2)).equal()),Wt=(0,ot.unit)(ge(en).mul(2).equal());return{[st]:{[`&${st}-small`]:{minWidth:pe,height:Yt,lineHeight:(0,ot.unit)(Yt),[`${st}-inner`]:{paddingInlineStart:en,paddingInlineEnd:Lt,[`${Ke}-checked, ${Ke}-unchecked`]:{minHeight:Yt},[`${Ke}-checked`]:{marginInlineStart:`calc(-100% + ${tt} - ${Wt})`,marginInlineEnd:`calc(100% - ${tt} + ${Wt})`},[`${Ke}-unchecked`]:{marginTop:ge(Yt).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${st}-handle`]:{width:Ot,height:Ot},[`${st}-loading-icon`]:{top:ge(ge(Ot).sub(He.switchLoadingIconSize)).div(2).equal(),fontSize:He.switchLoadingIconSize},[`&${st}-checked`]:{[`${st}-inner`]:{paddingInlineStart:Lt,paddingInlineEnd:en,[`${Ke}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Ke}-unchecked`]:{marginInlineStart:`calc(100% - ${tt} + ${Wt})`,marginInlineEnd:`calc(-100% + ${tt} - ${Wt})`}},[`${st}-handle`]:{insetInlineStart:`calc(100% - ${(0,ot.unit)(ge(Ot).add(Oe).equal())})`}},[`&:not(${st}-disabled):active`]:{[`&:not(${st}-checked) ${Ke}`]:{[`${Ke}-unchecked`]:{marginInlineStart:ge(He.marginXXS).div(2).equal(),marginInlineEnd:ge(He.marginXXS).mul(-1).div(2).equal()}},[`&${st}-checked ${Ke}`]:{[`${Ke}-checked`]:{marginInlineStart:ge(He.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:ge(He.marginXXS).div(2).equal()}}}}}}},Je=He=>{const{componentCls:st,handleSize:Yt,calc:Oe}=He;return{[st]:{[`${st}-loading-icon${He.iconCls}`]:{position:"relative",top:Oe(Oe(Yt).sub(He.fontSize)).div(2).equal(),color:He.switchLoadingIconColor,verticalAlign:"top"},[`&${st}-checked ${st}-loading-icon`]:{color:He.switchColor}}}},$t=He=>{const{componentCls:st,trackPadding:Yt,handleBg:Oe,handleShadow:pe,handleSize:Lt,calc:en}=He,Ot=`${st}-handle`;return{[st]:{[Ot]:{position:"absolute",top:Yt,insetInlineStart:Yt,width:Lt,height:Lt,transition:`all ${He.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:Oe,borderRadius:en(Lt).div(2).equal(),boxShadow:pe,transition:`all ${He.switchDuration} ease-in-out`,content:'""'}},[`&${st}-checked ${Ot}`]:{insetInlineStart:`calc(100% - ${(0,ot.unit)(en(Lt).add(Yt).equal())})`},[`&:not(${st}-disabled):active`]:{[`${Ot}::before`]:{insetInlineEnd:He.switchHandleActiveInset,insetInlineStart:0},[`&${st}-checked ${Ot}::before`]:{insetInlineEnd:0,insetInlineStart:He.switchHandleActiveInset}}}}},ct=He=>{const{componentCls:st,trackHeight:Yt,trackPadding:Oe,innerMinMargin:pe,innerMaxMargin:Lt,handleSize:en,calc:Ot}=He,ge=`${st}-inner`,Ke=(0,ot.unit)(Ot(en).add(Ot(Oe).mul(2)).equal()),tt=(0,ot.unit)(Ot(Lt).mul(2).equal());return{[st]:{[ge]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:Lt,paddingInlineEnd:pe,transition:`padding-inline-start ${He.switchDuration} ease-in-out, padding-inline-end ${He.switchDuration} ease-in-out`,[`${ge}-checked, ${ge}-unchecked`]:{display:"block",color:He.colorTextLightSolid,fontSize:He.fontSizeSM,transition:`margin-inline-start ${He.switchDuration} ease-in-out, margin-inline-end ${He.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:Yt},[`${ge}-checked`]:{marginInlineStart:`calc(-100% + ${Ke} - ${tt})`,marginInlineEnd:`calc(100% - ${Ke} + ${tt})`},[`${ge}-unchecked`]:{marginTop:Ot(Yt).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${st}-checked ${ge}`]:{paddingInlineStart:pe,paddingInlineEnd:Lt,[`${ge}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${ge}-unchecked`]:{marginInlineStart:`calc(100% - ${Ke} + ${tt})`,marginInlineEnd:`calc(-100% + ${Ke} - ${tt})`}},[`&:not(${st}-disabled):active`]:{[`&:not(${st}-checked) ${ge}`]:{[`${ge}-unchecked`]:{marginInlineStart:Ot(Oe).mul(2).equal(),marginInlineEnd:Ot(Oe).mul(-1).mul(2).equal()}},[`&${st}-checked ${ge}`]:{[`${ge}-checked`]:{marginInlineStart:Ot(Oe).mul(-1).mul(2).equal(),marginInlineEnd:Ot(Oe).mul(2).equal()}}}}}},Ye=He=>{const{componentCls:st,trackHeight:Yt,trackMinWidth:Oe}=He;return{[st]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Nt.Wf)(He)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:Oe,height:Yt,lineHeight:(0,ot.unit)(Yt),verticalAlign:"middle",background:He.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${He.motionDurationMid}`,userSelect:"none",[`&:hover:not(${st}-disabled)`]:{background:He.colorTextTertiary}}),(0,Nt.Qy)(He)),{[`&${st}-checked`]:{background:He.switchColor,[`&:hover:not(${st}-disabled)`]:{background:He.colorPrimaryHover}},[`&${st}-loading, &${st}-disabled`]:{cursor:"not-allowed",opacity:He.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${st}-rtl`]:{direction:"rtl"}})}},rt=He=>{const{fontSize:st,lineHeight:Yt,controlHeight:Oe,colorWhite:pe}=He,Lt=st*Yt,en=Oe/2,Ot=2,ge=Lt-Ot*2,Ke=en-Ot*2;return{trackHeight:Lt,trackHeightSM:en,trackMinWidth:ge*2+Ot*4,trackMinWidthSM:Ke*2+Ot*2,trackPadding:Ot,handleBg:pe,handleSize:ge,handleSizeSM:Ke,handleShadow:`0 2px 4px 0 ${new yt.FastColor("#00230b").setA(.2).toRgbString()}`,innerMinMargin:ge/2,innerMaxMargin:ge+Ot+Ot*2,innerMinMarginSM:Ke/2,innerMaxMarginSM:Ke+Ot+Ot*2}};var Ce=(0,Fe.I$)("Switch",He=>{const st=(0,Me.mergeToken)(He,{switchDuration:He.motionDurationMid,switchColor:He.colorPrimary,switchDisabledOpacity:He.opacityLoading,switchLoadingIconSize:He.calc(He.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${He.opacityLoading})`,switchHandleActiveInset:"-30%"});return[Ye(st),ct(st),$t(st),Je(st),Xe(st)]},rt),at=function(He,st){var Yt={};for(var Oe in He)Object.prototype.hasOwnProperty.call(He,Oe)&&st.indexOf(Oe)<0&&(Yt[Oe]=He[Oe]);if(He!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pe=0,Oe=Object.getOwnPropertySymbols(He);pe<Oe.length;pe++)st.indexOf(Oe[pe])<0&&Object.prototype.propertyIsEnumerable.call(He,Oe[pe])&&(Yt[Oe[pe]]=He[Oe[pe]]);return Yt};const de=b.forwardRef((He,st)=>{const{prefixCls:Yt,size:Oe,disabled:pe,loading:Lt,className:en,rootClassName:Ot,style:ge,checked:Ke,value:tt,defaultChecked:Wt,defaultValue:qe,onChange:Rt}=He,Qe=at(He,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[tn,gt]=(0,Ie.Z)(!1,{value:Ke!=null?Ke:tt,defaultValue:Wt!=null?Wt:qe}),{getPrefixCls:ae,direction:ne,switch:te}=b.useContext(it.E_),oe=b.useContext(We.Z),ce=(pe!=null?pe:oe)||Lt,re=ae("switch",Yt),le=b.createElement("div",{className:`${re}-handle`},Lt&&b.createElement(ze.Z,{className:`${re}-loading-icon`})),[be,ht,Le]=Ce(re),Ne=(0,ke.Z)(Oe),Ve=nt()(te==null?void 0:te.className,{[`${re}-small`]:Ne==="small",[`${re}-loading`]:Lt,[`${re}-rtl`]:ne==="rtl"},en,Ot,ht,Le),Ge=Object.assign(Object.assign({},te==null?void 0:te.style),ge),pt=function(){gt(arguments.length<=0?void 0:arguments[0]),Rt==null||Rt.apply(void 0,arguments)};return be(b.createElement(lt.Z,{component:"Switch"},b.createElement(At,Object.assign({},Qe,{checked:tn,onChange:pt,prefixCls:re,className:Ve,style:Ge,disabled:ce,ref:st,loadingIcon:le}))))});de.__ANT_SWITCH=!0;var Et=de},70858:function(In,Qt,ee){"use strict";ee.d(Qt,{default:function(){return mc}});var b=ee(59301),ze={},fe="rc-table-internal-hook",nt=ee(72190),Se=ee(6089),xe=ee(34280),Ee=ee(13697),je=ee(4676);function Ie(ve){var me=b.createContext(void 0),Ue=function(Mt){var Ht=Mt.value,ln=Mt.children,qt=b.useRef(Ht);qt.current=Ht;var fn=b.useState(function(){return{getValue:function(){return qt.current},listeners:new Set}}),cn=(0,nt.Z)(fn,1),Rn=cn[0];return(0,xe.Z)(function(){(0,je.unstable_batchedUpdates)(function(){Rn.listeners.forEach(function(Dn){Dn(Ht)})})},[Ht]),b.createElement(me.Provider,{value:Rn},ln)};return{Context:me,Provider:Ue,defaultValue:ve}}function ue(ve,me){var Ue=(0,Se.Z)(typeof me=="function"?me:function(Dn){if(me===void 0)return Dn;if(!Array.isArray(me))return Dn[me];var Pn={};return me.forEach(function(Cn){Pn[Cn]=Dn[Cn]}),Pn}),dt=b.useContext(ve==null?void 0:ve.Context),Mt=dt||{},Ht=Mt.listeners,ln=Mt.getValue,qt=b.useRef();qt.current=Ue(dt?ln():ve==null?void 0:ve.defaultValue);var fn=b.useState({}),cn=(0,nt.Z)(fn,2),Rn=cn[1];return(0,xe.Z)(function(){if(!dt)return;function Dn(Pn){var Cn=Ue(Pn);(0,Ee.Z)(qt.current,Cn,!0)||Rn({})}return Ht.add(Dn),function(){Ht.delete(Dn)}},[dt]),qt.current}var et=ee(60499),Te=ee(8654);function At(){var ve=b.createContext(null);function me(){return b.useContext(ve)}function Ue(Mt,Ht){var ln=(0,Te.Yr)(Mt),qt=function(cn,Rn){var Dn=ln?{ref:Rn}:{},Pn=b.useRef(0),Cn=b.useRef(cn),bn=me();return bn!==null?b.createElement(Mt,(0,et.Z)({},cn,Dn)):((!Ht||Ht(Cn.current,cn))&&(Pn.current+=1),Cn.current=cn,b.createElement(ve.Provider,{value:Pn.current},b.createElement(Mt,(0,et.Z)({},cn,Dn))))};return ln?b.forwardRef(qt):qt}function dt(Mt,Ht){var ln=(0,Te.Yr)(Mt),qt=function(cn,Rn){var Dn=ln?{ref:Rn}:{};return me(),b.createElement(Mt,(0,et.Z)({},cn,Dn))};return ln?b.memo(b.forwardRef(qt),Ht):b.memo(qt,Ht)}return{makeImmutable:Ue,responseImmutable:dt,useImmutableMark:me}}var lt=At(),it=lt.makeImmutable,We=lt.responseImmutable,ke=lt.useImmutableMark,ot=At(),yt=ot.makeImmutable,Nt=ot.responseImmutable,Fe=ot.useImmutableMark,Me=Ie(),Xe=Me;function Je(ve,me){var Ue=React.useRef(0);Ue.current+=1;var dt=React.useRef(ve),Mt=[];Object.keys(ve||{}).map(function(ln){var qt;(ve==null?void 0:ve[ln])!==((qt=dt.current)===null||qt===void 0?void 0:qt[ln])&&Mt.push(ln)}),dt.current=ve;var Ht=React.useRef([]);return Mt.length&&(Ht.current=Mt),React.useDebugValue(Ue.current),React.useDebugValue(Ht.current.join(", ")),me&&console.log("".concat(me,":"),Ue.current,Ht.current),Ue.current}var $t=null,ct=null,Ye=ee(43749),rt=ee(85899),Ce=ee(18642),at=ee(92310),_e=ee.n(at),de=ee(80547),Et=ee(97938),He=ee(48736),st=b.createContext({renderWithProps:!1}),Yt=st,Oe="RC_TABLE_KEY";function pe(ve){return ve==null?[]:Array.isArray(ve)?ve:[ve]}function Lt(ve){var me=[],Ue={};return ve.forEach(function(dt){for(var Mt=dt||{},Ht=Mt.key,ln=Mt.dataIndex,qt=Ht||pe(ln).join("-")||Oe;Ue[qt];)qt="".concat(qt,"_next");Ue[qt]=!0,me.push(qt)}),me}function en(ve){return ve!=null}function Ot(ve){return typeof ve=="number"&&!Number.isNaN(ve)}function ge(ve){return ve&&(0,Ye.Z)(ve)==="object"&&!Array.isArray(ve)&&!b.isValidElement(ve)}function Ke(ve,me,Ue,dt,Mt,Ht){var ln=b.useContext(Yt),qt=Fe(),fn=(0,de.Z)(function(){if(en(dt))return[dt];var cn=me==null||me===""?[]:Array.isArray(me)?me:[me],Rn=(0,Et.Z)(ve,cn),Dn=Rn,Pn=void 0;if(Mt){var Cn=Mt(Rn,ve,Ue);ge(Cn)?(Dn=Cn.children,Pn=Cn.props,ln.renderWithProps=!0):Dn=Cn}return[Dn,Pn]},[qt,ve,dt,me,Mt,Ue],function(cn,Rn){if(Ht){var Dn=(0,nt.Z)(cn,2),Pn=Dn[1],Cn=(0,nt.Z)(Rn,2),bn=Cn[1];return Ht(bn,Pn)}return ln.renderWithProps?!0:!(0,Ee.Z)(cn,Rn,!0)});return fn}function tt(ve,me,Ue,dt){var Mt=ve+me-1;return ve<=dt&&Mt>=Ue}function Wt(ve,me){return ue(Xe,function(Ue){var dt=tt(ve,me||1,Ue.hoverStartRow,Ue.hoverEndRow);return[dt,Ue.onHover]})}var qe=ee(70425),Rt=function(me){var Ue=me.ellipsis,dt=me.rowType,Mt=me.children,Ht,ln=Ue===!0?{showTitle:!0}:Ue;return ln&&(ln.showTitle||dt==="header")&&(typeof Mt=="string"||typeof Mt=="number"?Ht=Mt.toString():b.isValidElement(Mt)&&typeof Mt.props.children=="string"&&(Ht=Mt.props.children)),Ht};function Qe(ve){var me,Ue,dt,Mt,Ht,ln,qt,fn,cn=ve.component,Rn=ve.children,Dn=ve.ellipsis,Pn=ve.scope,Cn=ve.prefixCls,bn=ve.className,rr=ve.align,_n=ve.record,or=ve.render,dr=ve.dataIndex,ar=ve.renderIndex,vr=ve.shouldCellUpdate,Sr=ve.index,Nr=ve.rowType,Dr=ve.colSpan,mi=ve.rowSpan,Gr=ve.fixLeft,zr=ve.fixRight,ii=ve.firstFixLeft,Ar=ve.lastFixLeft,kr=ve.firstFixRight,gr=ve.lastFixRight,hr=ve.appendNode,Mr=ve.additionalProps,Br=Mr===void 0?{}:Mr,Xr=ve.isSticky,xr="".concat(Cn,"-cell"),wi=ue(Xe,["supportSticky","allColumnsFixedLeft","rowHoverable"]),Oi=wi.supportSticky,yo=wi.allColumnsFixedLeft,fo=wi.rowHoverable,ro=Ke(_n,dr,ar,Rn,or,vr),ho=(0,nt.Z)(ro,2),So=ho[0],Di=ho[1],Ti={},wo=typeof Gr=="number"&&Oi,ko=typeof zr=="number"&&Oi;wo&&(Ti.position="sticky",Ti.left=Gr),ko&&(Ti.position="sticky",Ti.right=zr);var jr=(me=(Ue=(dt=Di==null?void 0:Di.colSpan)!==null&&dt!==void 0?dt:Br.colSpan)!==null&&Ue!==void 0?Ue:Dr)!==null&&me!==void 0?me:1,di=(Mt=(Ht=(ln=Di==null?void 0:Di.rowSpan)!==null&&ln!==void 0?ln:Br.rowSpan)!==null&&Ht!==void 0?Ht:mi)!==null&&Mt!==void 0?Mt:1,$r=Wt(Sr,di),Tr=(0,nt.Z)($r,2),Bi=Tr[0],Vi=Tr[1],co=(0,qe.zX)(function(eo){var Qi;_n&&Vi(Sr,Sr+di-1),Br==null||(Qi=Br.onMouseEnter)===null||Qi===void 0||Qi.call(Br,eo)}),to=(0,qe.zX)(function(eo){var Qi;_n&&Vi(-1,-1),Br==null||(Qi=Br.onMouseLeave)===null||Qi===void 0||Qi.call(Br,eo)});if(jr===0||di===0)return null;var Eo=(qt=Br.title)!==null&&qt!==void 0?qt:Rt({rowType:Nr,ellipsis:Dn,children:So}),Ro=_e()(xr,bn,(fn={},(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)(fn,"".concat(xr,"-fix-left"),wo&&Oi),"".concat(xr,"-fix-left-first"),ii&&Oi),"".concat(xr,"-fix-left-last"),Ar&&Oi),"".concat(xr,"-fix-left-all"),Ar&&yo&&Oi),"".concat(xr,"-fix-right"),ko&&Oi),"".concat(xr,"-fix-right-first"),kr&&Oi),"".concat(xr,"-fix-right-last"),gr&&Oi),"".concat(xr,"-ellipsis"),Dn),"".concat(xr,"-with-append"),hr),"".concat(xr,"-fix-sticky"),(wo||ko)&&Xr&&Oi),(0,Ce.Z)(fn,"".concat(xr,"-row-hover"),!Di&&Bi)),Br.className,Di==null?void 0:Di.className),Kr={};rr&&(Kr.textAlign=rr);var ei=(0,rt.Z)((0,rt.Z)((0,rt.Z)((0,rt.Z)({},Di==null?void 0:Di.style),Ti),Kr),Br.style),Gi=So;return(0,Ye.Z)(Gi)==="object"&&!Array.isArray(Gi)&&!b.isValidElement(Gi)&&(Gi=null),Dn&&(Ar||kr)&&(Gi=b.createElement("span",{className:"".concat(xr,"-content")},Gi)),b.createElement(cn,(0,et.Z)({},Di,Br,{className:Ro,style:ei,title:Eo,scope:Pn,onMouseEnter:fo?co:void 0,onMouseLeave:fo?to:void 0,colSpan:jr!==1?jr:null,rowSpan:di!==1?di:null}),hr,Gi)}var tn=b.memo(Qe);function gt(ve,me,Ue,dt,Mt){var Ht=Ue[ve]||{},ln=Ue[me]||{},qt,fn;Ht.fixed==="left"?qt=dt.left[Mt==="rtl"?me:ve]:ln.fixed==="right"&&(fn=dt.right[Mt==="rtl"?ve:me]);var cn=!1,Rn=!1,Dn=!1,Pn=!1,Cn=Ue[me+1],bn=Ue[ve-1],rr=Cn&&!Cn.fixed||bn&&!bn.fixed||Ue.every(function(vr){return vr.fixed==="left"});if(Mt==="rtl"){if(qt!==void 0){var _n=bn&&bn.fixed==="left";Pn=!_n&&rr}else if(fn!==void 0){var or=Cn&&Cn.fixed==="right";Dn=!or&&rr}}else if(qt!==void 0){var dr=Cn&&Cn.fixed==="left";cn=!dr&&rr}else if(fn!==void 0){var ar=bn&&bn.fixed==="right";Rn=!ar&&rr}return{fixLeft:qt,fixRight:fn,lastFixLeft:cn,firstFixRight:Rn,lastFixRight:Dn,firstFixLeft:Pn,isSticky:dt.isSticky}}var ae=b.createContext({}),ne=ae;function te(ve){var me=ve.className,Ue=ve.index,dt=ve.children,Mt=ve.colSpan,Ht=Mt===void 0?1:Mt,ln=ve.rowSpan,qt=ve.align,fn=ue(Xe,["prefixCls","direction"]),cn=fn.prefixCls,Rn=fn.direction,Dn=b.useContext(ne),Pn=Dn.scrollColumnIndex,Cn=Dn.stickyOffsets,bn=Dn.flattenColumns,rr=Ue+Ht-1,_n=rr+1===Pn?Ht+1:Ht,or=gt(Ue,Ue+_n-1,bn,Cn,Rn);return b.createElement(tn,(0,et.Z)({className:me,index:Ue,component:"td",prefixCls:cn,record:null,dataIndex:null,align:qt,colSpan:_n,rowSpan:ln,render:function(){return dt}},or))}var oe=ee(42244),ce=["children"];function re(ve){var me=ve.children,Ue=(0,oe.Z)(ve,ce);return b.createElement("tr",Ue,me)}function le(ve){var me=ve.children;return me}le.Row=re,le.Cell=te;var be=le;function ht(ve){var me=ve.children,Ue=ve.stickyOffsets,dt=ve.flattenColumns,Mt=ue(Xe,"prefixCls"),Ht=dt.length-1,ln=dt[Ht],qt=b.useMemo(function(){return{stickyOffsets:Ue,flattenColumns:dt,scrollColumnIndex:ln!=null&&ln.scrollbar?Ht:null}},[ln,dt,Ht,Ue]);return b.createElement(ne.Provider,{value:qt},b.createElement("tfoot",{className:"".concat(Mt,"-summary")},me))}var Le=Nt(ht),Ne=be,Ve=ee(29301),Ge=ee(24514),pt=ee(75152),we=ee(26112);function De(ve,me,Ue,dt,Mt,Ht,ln){ve.push({record:me,indent:Ue,index:ln});var qt=Ht(me),fn=Mt==null?void 0:Mt.has(qt);if(me&&Array.isArray(me[dt])&&fn)for(var cn=0;cn<me[dt].length;cn+=1)De(ve,me[dt][cn],Ue+1,dt,Mt,Ht,cn)}function Zt(ve,me,Ue,dt){var Mt=b.useMemo(function(){if(Ue!=null&&Ue.size){for(var Ht=[],ln=0;ln<(ve==null?void 0:ve.length);ln+=1){var qt=ve[ln];De(Ht,qt,0,me,Ue,dt,ln)}return Ht}return ve==null?void 0:ve.map(function(fn,cn){return{record:fn,indent:0,index:cn}})},[ve,me,Ue,dt]);return Mt}function Tt(ve,me,Ue,dt){var Mt=ue(Xe,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),Ht=Mt.flattenColumns,ln=Mt.expandableType,qt=Mt.expandedKeys,fn=Mt.childrenColumnName,cn=Mt.onTriggerExpand,Rn=Mt.rowExpandable,Dn=Mt.onRow,Pn=Mt.expandRowByClick,Cn=Mt.rowClassName,bn=ln==="nest",rr=ln==="row"&&(!Rn||Rn(ve)),_n=rr||bn,or=qt&&qt.has(me),dr=fn&&ve&&ve[fn],ar=(0,qe.zX)(cn),vr=Dn==null?void 0:Dn(ve,Ue),Sr=vr==null?void 0:vr.onClick,Nr=function(zr){Pn&&_n&&cn(ve,zr);for(var ii=arguments.length,Ar=new Array(ii>1?ii-1:0),kr=1;kr<ii;kr++)Ar[kr-1]=arguments[kr];Sr==null||Sr.apply(void 0,[zr].concat(Ar))},Dr;typeof Cn=="string"?Dr=Cn:typeof Cn=="function"&&(Dr=Cn(ve,Ue,dt));var mi=Lt(Ht);return(0,rt.Z)((0,rt.Z)({},Mt),{},{columnsKey:mi,nestExpandable:bn,expanded:or,hasNestChildren:dr,record:ve,onTriggerExpand:ar,rowSupportExpand:rr,expandable:_n,rowProps:(0,rt.Z)((0,rt.Z)({},vr),{},{className:_e()(Dr,vr==null?void 0:vr.className),onClick:Nr})})}function nn(ve){var me=ve.prefixCls,Ue=ve.children,dt=ve.component,Mt=ve.cellComponent,Ht=ve.className,ln=ve.expanded,qt=ve.colSpan,fn=ve.isEmpty,cn=ue(Xe,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),Rn=cn.scrollbarSize,Dn=cn.fixHeader,Pn=cn.fixColumn,Cn=cn.componentWidth,bn=cn.horizonScroll,rr=Ue;return(fn?bn&&Cn:Pn)&&(rr=b.createElement("div",{style:{width:Cn-(Dn&&!fn?Rn:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(me,"-expanded-row-fixed")},rr)),b.createElement(dt,{className:Ht,style:{display:ln?null:"none"}},b.createElement(tn,{component:Mt,prefixCls:me,colSpan:qt},rr))}var Ut=nn;function St(ve){var me=ve.prefixCls,Ue=ve.record,dt=ve.onExpand,Mt=ve.expanded,Ht=ve.expandable,ln="".concat(me,"-row-expand-icon");if(!Ht)return b.createElement("span",{className:_e()(ln,"".concat(me,"-row-spaced"))});var qt=function(cn){dt(Ue,cn),cn.stopPropagation()};return b.createElement("span",{className:_e()(ln,(0,Ce.Z)((0,Ce.Z)({},"".concat(me,"-row-expanded"),Mt),"".concat(me,"-row-collapsed"),!Mt)),onClick:qt})}function an(ve,me,Ue){var dt=[];function Mt(Ht){(Ht||[]).forEach(function(ln,qt){dt.push(me(ln,qt)),Mt(ln[Ue])})}return Mt(ve),dt}function _t(ve,me,Ue,dt){return typeof ve=="string"?ve:typeof ve=="function"?ve(me,Ue,dt):""}function $e(ve,me,Ue,dt,Mt){var Ht=ve.record,ln=ve.prefixCls,qt=ve.columnsKey,fn=ve.fixedInfoList,cn=ve.expandIconColumnIndex,Rn=ve.nestExpandable,Dn=ve.indentSize,Pn=ve.expandIcon,Cn=ve.expanded,bn=ve.hasNestChildren,rr=ve.onTriggerExpand,_n=qt[Ue],or=fn[Ue],dr;Ue===(cn||0)&&Rn&&(dr=b.createElement(b.Fragment,null,b.createElement("span",{style:{paddingLeft:"".concat(Dn*dt,"px")},className:"".concat(ln,"-row-indent indent-level-").concat(dt)}),Pn({prefixCls:ln,expanded:Cn,expandable:bn,record:Ht,onExpand:rr})));var ar;return me.onCell&&(ar=me.onCell(Ht,Mt)),{key:_n,fixedInfo:or,appendCellNode:dr,additionalCellProps:ar||{}}}function mt(ve){var me=ve.className,Ue=ve.style,dt=ve.record,Mt=ve.index,Ht=ve.renderIndex,ln=ve.rowKey,qt=ve.indent,fn=qt===void 0?0:qt,cn=ve.rowComponent,Rn=ve.cellComponent,Dn=ve.scopeCellComponent,Pn=Tt(dt,ln,Mt,fn),Cn=Pn.prefixCls,bn=Pn.flattenColumns,rr=Pn.expandedRowClassName,_n=Pn.expandedRowRender,or=Pn.rowProps,dr=Pn.expanded,ar=Pn.rowSupportExpand,vr=b.useRef(!1);vr.current||(vr.current=dr);var Sr=_t(rr,dt,Mt,fn),Nr=b.createElement(cn,(0,et.Z)({},or,{"data-row-key":ln,className:_e()(me,"".concat(Cn,"-row"),"".concat(Cn,"-row-level-").concat(fn),or==null?void 0:or.className,(0,Ce.Z)({},Sr,fn>=1)),style:(0,rt.Z)((0,rt.Z)({},Ue),or==null?void 0:or.style)}),bn.map(function(Gr,zr){var ii=Gr.render,Ar=Gr.dataIndex,kr=Gr.className,gr=$e(Pn,Gr,zr,fn,Mt),hr=gr.key,Mr=gr.fixedInfo,Br=gr.appendCellNode,Xr=gr.additionalCellProps;return b.createElement(tn,(0,et.Z)({className:kr,ellipsis:Gr.ellipsis,align:Gr.align,scope:Gr.rowScope,component:Gr.rowScope?Dn:Rn,prefixCls:Cn,key:hr,record:dt,index:Mt,renderIndex:Ht,dataIndex:Ar,render:ii,shouldCellUpdate:Gr.shouldCellUpdate},Mr,{appendNode:Br,additionalProps:Xr}))})),Dr;if(ar&&(vr.current||dr)){var mi=_n(dt,Mt,fn+1,dr);Dr=b.createElement(Ut,{expanded:dr,className:_e()("".concat(Cn,"-expanded-row"),"".concat(Cn,"-expanded-row-level-").concat(fn+1),Sr),prefixCls:Cn,component:cn,cellComponent:Rn,colSpan:bn.length,isEmpty:!1},mi)}return b.createElement(b.Fragment,null,Nr,Dr)}var jt=Nt(mt);function Jt(ve){var me=ve.columnKey,Ue=ve.onColumnResize,dt=b.useRef();return(0,xe.Z)(function(){dt.current&&Ue(me,dt.current.offsetWidth)},[]),b.createElement(Ve.Z,{data:me},b.createElement("td",{ref:dt,style:{padding:0,border:0,height:0}},b.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}var Be=ee(29194);function ft(ve){var me=ve.prefixCls,Ue=ve.columnsKey,dt=ve.onColumnResize,Mt=b.useRef(null);return b.createElement("tr",{"aria-hidden":"true",className:"".concat(me,"-measure-row"),style:{height:0,fontSize:0},ref:Mt},b.createElement(Ve.Z.Collection,{onBatchResize:function(ln){(0,Be.Z)(Mt.current)&&ln.forEach(function(qt){var fn=qt.data,cn=qt.size;dt(fn,cn.offsetWidth)})}},Ue.map(function(Ht){return b.createElement(Jt,{key:Ht,columnKey:Ht,onColumnResize:dt})})))}function Dt(ve){var me=ve.data,Ue=ve.measureColumnWidth,dt=ue(Xe,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),Mt=dt.prefixCls,Ht=dt.getComponent,ln=dt.onColumnResize,qt=dt.flattenColumns,fn=dt.getRowKey,cn=dt.expandedKeys,Rn=dt.childrenColumnName,Dn=dt.emptyNode,Pn=Zt(me,Rn,cn,fn),Cn=b.useRef({renderWithProps:!1}),bn=Ht(["body","wrapper"],"tbody"),rr=Ht(["body","row"],"tr"),_n=Ht(["body","cell"],"td"),or=Ht(["body","cell"],"th"),dr;me.length?dr=Pn.map(function(vr,Sr){var Nr=vr.record,Dr=vr.indent,mi=vr.index,Gr=fn(Nr,Sr);return b.createElement(jt,{key:Gr,rowKey:Gr,record:Nr,index:Sr,renderIndex:mi,rowComponent:rr,cellComponent:_n,scopeCellComponent:or,indent:Dr})}):dr=b.createElement(Ut,{expanded:!0,className:"".concat(Mt,"-placeholder"),prefixCls:Mt,component:rr,cellComponent:_n,colSpan:qt.length,isEmpty:!0},Dn);var ar=Lt(qt);return b.createElement(Yt.Provider,{value:Cn.current},b.createElement(bn,{className:"".concat(Mt,"-tbody")},Ue&&b.createElement(ft,{prefixCls:Mt,columnsKey:ar,onColumnResize:ln}),dr))}var Vt=Nt(Dt),un=["expandable"],En="RC_TABLE_INTERNAL_COL_DEFINE";function Mn(ve){var me=ve.expandable,Ue=(0,oe.Z)(ve,un),dt;return"expandable"in ve?dt=(0,rt.Z)((0,rt.Z)({},Ue),me):dt=Ue,dt.showExpandColumn===!1&&(dt.expandIconColumnIndex=-1),dt}var Fn=["columnType"];function gn(ve){for(var me=ve.colWidths,Ue=ve.columns,dt=ve.columCount,Mt=ue(Xe,["tableLayout"]),Ht=Mt.tableLayout,ln=[],qt=dt||Ue.length,fn=!1,cn=qt-1;cn>=0;cn-=1){var Rn=me[cn],Dn=Ue&&Ue[cn],Pn=void 0,Cn=void 0;if(Dn&&(Pn=Dn[En],Ht==="auto"&&(Cn=Dn.minWidth)),Rn||Cn||Pn||fn){var bn=Pn||{},rr=bn.columnType,_n=(0,oe.Z)(bn,Fn);ln.unshift(b.createElement("col",(0,et.Z)({key:cn,style:{width:Rn,minWidth:Cn}},_n))),fn=!0}}return b.createElement("colgroup",null,ln)}var kn=gn,dn=ee(77654),zt=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function rn(ve,me){return(0,b.useMemo)(function(){for(var Ue=[],dt=0;dt<me;dt+=1){var Mt=ve[dt];if(Mt!==void 0)Ue[dt]=Mt;else return null}return Ue},[ve.join("_"),me])}var on=b.forwardRef(function(ve,me){var Ue=ve.className,dt=ve.noData,Mt=ve.columns,Ht=ve.flattenColumns,ln=ve.colWidths,qt=ve.columCount,fn=ve.stickyOffsets,cn=ve.direction,Rn=ve.fixHeader,Dn=ve.stickyTopOffset,Pn=ve.stickyBottomOffset,Cn=ve.stickyClassName,bn=ve.onScroll,rr=ve.maxContentScroll,_n=ve.children,or=(0,oe.Z)(ve,zt),dr=ue(Xe,["prefixCls","scrollbarSize","isSticky","getComponent"]),ar=dr.prefixCls,vr=dr.scrollbarSize,Sr=dr.isSticky,Nr=dr.getComponent,Dr=Nr(["header","table"],"table"),mi=Sr&&!Rn?0:vr,Gr=b.useRef(null),zr=b.useCallback(function(Xr){(0,Te.mH)(me,Xr),(0,Te.mH)(Gr,Xr)},[]);b.useEffect(function(){var Xr;function xr(wi){var Oi=wi,yo=Oi.currentTarget,fo=Oi.deltaX;fo&&(bn({currentTarget:yo,scrollLeft:yo.scrollLeft+fo}),wi.preventDefault())}return(Xr=Gr.current)===null||Xr===void 0||Xr.addEventListener("wheel",xr,{passive:!1}),function(){var wi;(wi=Gr.current)===null||wi===void 0||wi.removeEventListener("wheel",xr)}},[]);var ii=b.useMemo(function(){return Ht.every(function(Xr){return Xr.width})},[Ht]),Ar=Ht[Ht.length-1],kr={fixed:Ar?Ar.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(ar,"-cell-scrollbar")}}},gr=(0,b.useMemo)(function(){return mi?[].concat((0,dn.Z)(Mt),[kr]):Mt},[mi,Mt]),hr=(0,b.useMemo)(function(){return mi?[].concat((0,dn.Z)(Ht),[kr]):Ht},[mi,Ht]),Mr=(0,b.useMemo)(function(){var Xr=fn.right,xr=fn.left;return(0,rt.Z)((0,rt.Z)({},fn),{},{left:cn==="rtl"?[].concat((0,dn.Z)(xr.map(function(wi){return wi+mi})),[0]):xr,right:cn==="rtl"?Xr:[].concat((0,dn.Z)(Xr.map(function(wi){return wi+mi})),[0]),isSticky:Sr})},[mi,fn,Sr]),Br=rn(ln,qt);return b.createElement("div",{style:(0,rt.Z)({overflow:"hidden"},Sr?{top:Dn,bottom:Pn}:{}),ref:zr,className:_e()(Ue,(0,Ce.Z)({},Cn,!!Cn))},b.createElement(Dr,{style:{tableLayout:"fixed",visibility:dt||Br?null:"hidden"}},(!dt||!rr||ii)&&b.createElement(kn,{colWidths:Br?[].concat((0,dn.Z)(Br),[mi]):[],columCount:qt+1,columns:hr}),_n((0,rt.Z)((0,rt.Z)({},or),{},{stickyOffsets:Mr,columns:gr,flattenColumns:hr}))))}),Xt=b.memo(on),vn=function(me){var Ue=me.cells,dt=me.stickyOffsets,Mt=me.flattenColumns,Ht=me.rowComponent,ln=me.cellComponent,qt=me.onHeaderRow,fn=me.index,cn=ue(Xe,["prefixCls","direction"]),Rn=cn.prefixCls,Dn=cn.direction,Pn;qt&&(Pn=qt(Ue.map(function(bn){return bn.column}),fn));var Cn=Lt(Ue.map(function(bn){return bn.column}));return b.createElement(Ht,Pn,Ue.map(function(bn,rr){var _n=bn.column,or=gt(bn.colStart,bn.colEnd,Mt,dt,Dn),dr;return _n&&_n.onHeaderCell&&(dr=bn.column.onHeaderCell(_n)),b.createElement(tn,(0,et.Z)({},bn,{scope:_n.title?bn.colSpan>1?"colgroup":"col":null,ellipsis:_n.ellipsis,align:_n.align,component:ln,prefixCls:Rn,key:Cn[rr]},or,{additionalProps:dr,rowType:"header"}))}))},pn=vn;function wn(ve){var me=[];function Ue(ln,qt){var fn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;me[fn]=me[fn]||[];var cn=qt,Rn=ln.filter(Boolean).map(function(Dn){var Pn={key:Dn.key,className:Dn.className||"",children:Dn.title,column:Dn,colStart:cn},Cn=1,bn=Dn.children;return bn&&bn.length>0&&(Cn=Ue(bn,cn,fn+1).reduce(function(rr,_n){return rr+_n},0),Pn.hasSubColumns=!0),"colSpan"in Dn&&(Cn=Dn.colSpan),"rowSpan"in Dn&&(Pn.rowSpan=Dn.rowSpan),Pn.colSpan=Cn,Pn.colEnd=Pn.colStart+Cn-1,me[fn].push(Pn),cn+=Cn,Cn});return Rn}Ue(ve,0);for(var dt=me.length,Mt=function(qt){me[qt].forEach(function(fn){!("rowSpan"in fn)&&!fn.hasSubColumns&&(fn.rowSpan=dt-qt)})},Ht=0;Ht<dt;Ht+=1)Mt(Ht);return me}var $n=function(me){var Ue=me.stickyOffsets,dt=me.columns,Mt=me.flattenColumns,Ht=me.onHeaderRow,ln=ue(Xe,["prefixCls","getComponent"]),qt=ln.prefixCls,fn=ln.getComponent,cn=b.useMemo(function(){return wn(dt)},[dt]),Rn=fn(["header","wrapper"],"thead"),Dn=fn(["header","row"],"tr"),Pn=fn(["header","cell"],"th");return b.createElement(Rn,{className:"".concat(qt,"-thead")},cn.map(function(Cn,bn){var rr=b.createElement(pn,{key:bn,flattenColumns:Mt,cells:Cn,stickyOffsets:Ue,rowComponent:Dn,cellComponent:Pn,onHeaderRow:Ht,index:bn});return rr}))},xn=Nt($n),hn=ee(11592);function Zn(ve){var me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof me=="number"?me:me.endsWith("%")?ve*parseFloat(me)/100:null}function Wn(ve,me,Ue){return b.useMemo(function(){if(me&&me>0){var dt=0,Mt=0;ve.forEach(function(Pn){var Cn=Zn(me,Pn.width);Cn?dt+=Cn:Mt+=1});var Ht=Math.max(me,Ue),ln=Math.max(Ht-dt,Mt),qt=Mt,fn=ln/Mt,cn=0,Rn=ve.map(function(Pn){var Cn=(0,rt.Z)({},Pn),bn=Zn(me,Cn.width);if(bn)Cn.width=bn;else{var rr=Math.floor(fn);Cn.width=qt===1?ln:rr,ln-=rr,qt-=1}return cn+=Cn.width,Cn});if(cn<Ht){var Dn=Ht/cn;ln=Ht,Rn.forEach(function(Pn,Cn){var bn=Math.floor(Pn.width*Dn);Pn.width=Cn===Rn.length-1?ln:bn,ln-=bn})}return[Rn,Math.max(cn,Ht)]}return[ve,me]},[ve,me,Ue])}var ir=["children"],tr=["fixed"];function sn(ve){return(0,hn.Z)(ve).filter(function(me){return b.isValidElement(me)}).map(function(me){var Ue=me.key,dt=me.props,Mt=dt.children,Ht=(0,oe.Z)(dt,ir),ln=(0,rt.Z)({key:Ue},Ht);return Mt&&(ln.children=sn(Mt)),ln})}function yn(ve){return ve.filter(function(me){return me&&(0,Ye.Z)(me)==="object"&&!me.hidden}).map(function(me){var Ue=me.children;return Ue&&Ue.length>0?(0,rt.Z)((0,rt.Z)({},me),{},{children:yn(Ue)}):me})}function zn(ve){var me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return ve.filter(function(Ue){return Ue&&(0,Ye.Z)(Ue)==="object"}).reduce(function(Ue,dt,Mt){var Ht=dt.fixed,ln=Ht===!0?"left":Ht,qt="".concat(me,"-").concat(Mt),fn=dt.children;return fn&&fn.length>0?[].concat((0,dn.Z)(Ue),(0,dn.Z)(zn(fn,qt).map(function(cn){return(0,rt.Z)({fixed:ln},cn)}))):[].concat((0,dn.Z)(Ue),[(0,rt.Z)((0,rt.Z)({key:qt},dt),{},{fixed:ln})])},[])}function Hn(ve){return ve.map(function(me){var Ue=me.fixed,dt=(0,oe.Z)(me,tr),Mt=Ue;return Ue==="left"?Mt="right":Ue==="right"&&(Mt="left"),(0,rt.Z)({fixed:Mt},dt)})}function ut(ve,me){var Ue=ve.prefixCls,dt=ve.columns,Mt=ve.children,Ht=ve.expandable,ln=ve.expandedKeys,qt=ve.columnTitle,fn=ve.getRowKey,cn=ve.onTriggerExpand,Rn=ve.expandIcon,Dn=ve.rowExpandable,Pn=ve.expandIconColumnIndex,Cn=ve.direction,bn=ve.expandRowByClick,rr=ve.columnWidth,_n=ve.fixed,or=ve.scrollWidth,dr=ve.clientWidth,ar=b.useMemo(function(){var Ar=dt||sn(Mt)||[];return yn(Ar.slice())},[dt,Mt]),vr=b.useMemo(function(){if(Ht){var Ar=ar.slice();if(!Ar.includes(ze)){var kr=Pn||0;kr>=0&&(kr||_n==="left"||!_n)&&Ar.splice(kr,0,ze),_n==="right"&&Ar.splice(ar.length,0,ze)}var gr=Ar.indexOf(ze);Ar=Ar.filter(function(Xr,xr){return Xr!==ze||xr===gr});var hr=ar[gr],Mr;_n?Mr=_n:Mr=hr?hr.fixed:null;var Br=(0,Ce.Z)((0,Ce.Z)((0,Ce.Z)((0,Ce.Z)((0,Ce.Z)((0,Ce.Z)({},En,{className:"".concat(Ue,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",qt),"fixed",Mr),"className","".concat(Ue,"-row-expand-icon-cell")),"width",rr),"render",function(xr,wi,Oi){var yo=fn(wi,Oi),fo=ln.has(yo),ro=Dn?Dn(wi):!0,ho=Rn({prefixCls:Ue,expanded:fo,expandable:ro,record:wi,onExpand:cn});return bn?b.createElement("span",{onClick:function(Di){return Di.stopPropagation()}},ho):ho});return Ar.map(function(Xr){return Xr===ze?Br:Xr})}return ar.filter(function(Xr){return Xr!==ze})},[Ht,ar,fn,ln,Rn,Cn]),Sr=b.useMemo(function(){var Ar=vr;return me&&(Ar=me(Ar)),Ar.length||(Ar=[{render:function(){return null}}]),Ar},[me,vr,Cn]),Nr=b.useMemo(function(){return Cn==="rtl"?Hn(zn(Sr)):zn(Sr)},[Sr,Cn,or]),Dr=b.useMemo(function(){for(var Ar=-1,kr=Nr.length-1;kr>=0;kr-=1){var gr=Nr[kr].fixed;if(gr==="left"||gr===!0){Ar=kr;break}}if(Ar>=0)for(var hr=0;hr<=Ar;hr+=1){var Mr=Nr[hr].fixed;if(Mr!=="left"&&Mr!==!0)return!0}var Br=Nr.findIndex(function(wi){var Oi=wi.fixed;return Oi==="right"});if(Br>=0)for(var Xr=Br;Xr<Nr.length;Xr+=1){var xr=Nr[Xr].fixed;if(xr!=="right")return!0}return!1},[Nr]),mi=Wn(Nr,or,dr),Gr=(0,nt.Z)(mi,2),zr=Gr[0],ii=Gr[1];return[Sr,zr,ii,Dr]}var Pt=ut;function Re(ve,me,Ue){var dt=Mn(ve),Mt=dt.expandIcon,Ht=dt.expandedRowKeys,ln=dt.defaultExpandedRowKeys,qt=dt.defaultExpandAllRows,fn=dt.expandedRowRender,cn=dt.onExpand,Rn=dt.onExpandedRowsChange,Dn=dt.childrenColumnName,Pn=Mt||St,Cn=Dn||"children",bn=b.useMemo(function(){return fn?"row":ve.expandable&&ve.internalHooks===fe&&ve.expandable.__PARENT_RENDER_ICON__||me.some(function(Sr){return Sr&&(0,Ye.Z)(Sr)==="object"&&Sr[Cn]})?"nest":!1},[!!fn,me]),rr=b.useState(function(){return ln||(qt?an(me,Ue,Cn):[])}),_n=(0,nt.Z)(rr,2),or=_n[0],dr=_n[1],ar=b.useMemo(function(){return new Set(Ht||or||[])},[Ht,or]),vr=b.useCallback(function(Sr){var Nr=Ue(Sr,me.indexOf(Sr)),Dr,mi=ar.has(Nr);mi?(ar.delete(Nr),Dr=(0,dn.Z)(ar)):Dr=[].concat((0,dn.Z)(ar),[Nr]),dr(Dr),cn&&cn(!mi,Sr),Rn&&Rn(Dr)},[Ue,ar,me,cn,Rn]);return[dt,bn,ar,Pn,Cn,vr]}function vt(ve,me,Ue){var dt=ve.map(function(Mt,Ht){return gt(Ht,Ht,ve,me,Ue)});return(0,de.Z)(function(){return dt},[dt],function(Mt,Ht){return!(0,Ee.Z)(Mt,Ht)})}function Ze(ve){var me=(0,b.useRef)(ve),Ue=(0,b.useState)({}),dt=(0,nt.Z)(Ue,2),Mt=dt[1],Ht=(0,b.useRef)(null),ln=(0,b.useRef)([]);function qt(fn){ln.current.push(fn);var cn=Promise.resolve();Ht.current=cn,cn.then(function(){if(Ht.current===cn){var Rn=ln.current,Dn=me.current;ln.current=[],Rn.forEach(function(Pn){me.current=Pn(me.current)}),Ht.current=null,Dn!==me.current&&Mt({})}})}return(0,b.useEffect)(function(){return function(){Ht.current=null}},[]),[me.current,qt]}function bt(ve){var me=(0,b.useRef)(ve||null),Ue=(0,b.useRef)();function dt(){window.clearTimeout(Ue.current)}function Mt(ln){me.current=ln,dt(),Ue.current=window.setTimeout(function(){me.current=null,Ue.current=void 0},100)}function Ht(){return me.current}return(0,b.useEffect)(function(){return dt},[]),[Mt,Ht]}function Pe(){var ve=b.useState(-1),me=(0,nt.Z)(ve,2),Ue=me[0],dt=me[1],Mt=b.useState(-1),Ht=(0,nt.Z)(Mt,2),ln=Ht[0],qt=Ht[1],fn=b.useCallback(function(cn,Rn){dt(cn),qt(Rn)},[]);return[Ue,ln,fn]}var It=ee(47273),Bt=(0,It.Z)()?window:null;function Kt(ve,me){var Ue=(0,Ye.Z)(ve)==="object"?ve:{},dt=Ue.offsetHeader,Mt=dt===void 0?0:dt,Ht=Ue.offsetSummary,ln=Ht===void 0?0:Ht,qt=Ue.offsetScroll,fn=qt===void 0?0:qt,cn=Ue.getContainer,Rn=cn===void 0?function(){return Bt}:cn,Dn=Rn()||Bt,Pn=!!ve;return b.useMemo(function(){return{isSticky:Pn,stickyClassName:Pn?"".concat(me,"-sticky-holder"):"",offsetHeader:Mt,offsetSummary:ln,offsetScroll:fn,container:Dn}},[Pn,fn,Mt,ln,me,Dn])}function Ct(ve,me,Ue){var dt=(0,b.useMemo)(function(){var Mt=me.length,Ht=function(cn,Rn,Dn){for(var Pn=[],Cn=0,bn=cn;bn!==Rn;bn+=Dn)Pn.push(Cn),me[bn].fixed&&(Cn+=ve[bn]||0);return Pn},ln=Ht(0,Mt,1),qt=Ht(Mt-1,-1,-1).reverse();return Ue==="rtl"?{left:qt,right:ln}:{left:ln,right:qt}},[ve,me,Ue]);return dt}var xt=Ct;function wt(ve){var me=ve.className,Ue=ve.children;return b.createElement("div",{className:me},Ue)}var Ft=wt,Tn=ee(8224),On=ee(16089),An=ee(76846);function er(ve){var me=(0,An.bn)(ve),Ue=me.getBoundingClientRect(),dt=document.documentElement;return{left:Ue.left+(window.pageXOffset||dt.scrollLeft)-(dt.clientLeft||document.body.clientLeft||0),top:Ue.top+(window.pageYOffset||dt.scrollTop)-(dt.clientTop||document.body.clientTop||0)}}var sr=function(me,Ue){var dt,Mt,Ht=me.scrollBodyRef,ln=me.onScroll,qt=me.offsetScroll,fn=me.container,cn=me.direction,Rn=ue(Xe,"prefixCls"),Dn=((dt=Ht.current)===null||dt===void 0?void 0:dt.scrollWidth)||0,Pn=((Mt=Ht.current)===null||Mt===void 0?void 0:Mt.clientWidth)||0,Cn=Dn&&Pn*(Pn/Dn),bn=b.useRef(),rr=Ze({scrollLeft:0,isHiddenScrollBar:!0}),_n=(0,nt.Z)(rr,2),or=_n[0],dr=_n[1],ar=b.useRef({delta:0,x:0}),vr=b.useState(!1),Sr=(0,nt.Z)(vr,2),Nr=Sr[0],Dr=Sr[1],mi=b.useRef(null);b.useEffect(function(){return function(){On.Z.cancel(mi.current)}},[]);var Gr=function(){Dr(!1)},zr=function(hr){hr.persist(),ar.current.delta=hr.pageX-or.scrollLeft,ar.current.x=0,Dr(!0),hr.preventDefault()},ii=function(hr){var Mr,Br=hr||((Mr=window)===null||Mr===void 0?void 0:Mr.event),Xr=Br.buttons;if(!Nr||Xr===0){Nr&&Dr(!1);return}var xr=ar.current.x+hr.pageX-ar.current.x-ar.current.delta,wi=cn==="rtl";xr=Math.max(wi?Cn-Pn:0,Math.min(wi?0:Pn-Cn,xr));var Oi=!wi||Math.abs(xr)+Math.abs(Cn)<Pn;Oi&&(ln({scrollLeft:xr/Pn*(Dn+2)}),ar.current.x=hr.pageX)},Ar=function(){On.Z.cancel(mi.current),mi.current=(0,On.Z)(function(){if(Ht.current){var hr=er(Ht.current).top,Mr=hr+Ht.current.offsetHeight,Br=fn===window?document.documentElement.scrollTop+window.innerHeight:er(fn).top+fn.clientHeight;Mr-(0,pt.Z)()<=Br||hr>=Br-qt?dr(function(Xr){return(0,rt.Z)((0,rt.Z)({},Xr),{},{isHiddenScrollBar:!0})}):dr(function(Xr){return(0,rt.Z)((0,rt.Z)({},Xr),{},{isHiddenScrollBar:!1})})}})},kr=function(hr){dr(function(Mr){return(0,rt.Z)((0,rt.Z)({},Mr),{},{scrollLeft:hr/Dn*Pn||0})})};return b.useImperativeHandle(Ue,function(){return{setScrollLeft:kr,checkScrollBarVisible:Ar}}),b.useEffect(function(){var gr=(0,Tn.Z)(document.body,"mouseup",Gr,!1),hr=(0,Tn.Z)(document.body,"mousemove",ii,!1);return Ar(),function(){gr.remove(),hr.remove()}},[Cn,Nr]),b.useEffect(function(){if(Ht.current){for(var gr=[],hr=(0,An.bn)(Ht.current);hr;)gr.push(hr),hr=hr.parentElement;return gr.forEach(function(Mr){return Mr.addEventListener("scroll",Ar,!1)}),window.addEventListener("resize",Ar,!1),window.addEventListener("scroll",Ar,!1),fn.addEventListener("scroll",Ar,!1),function(){gr.forEach(function(Mr){return Mr.removeEventListener("scroll",Ar)}),window.removeEventListener("resize",Ar),window.removeEventListener("scroll",Ar),fn.removeEventListener("scroll",Ar)}}},[fn]),b.useEffect(function(){or.isHiddenScrollBar||dr(function(gr){var hr=Ht.current;return hr?(0,rt.Z)((0,rt.Z)({},gr),{},{scrollLeft:hr.scrollLeft/hr.scrollWidth*hr.clientWidth}):gr})},[or.isHiddenScrollBar]),Dn<=Pn||!Cn||or.isHiddenScrollBar?null:b.createElement("div",{style:{height:(0,pt.Z)(),width:Pn,bottom:qt},className:"".concat(Rn,"-sticky-scroll")},b.createElement("div",{onMouseDown:zr,ref:bn,className:_e()("".concat(Rn,"-sticky-scroll-bar"),(0,Ce.Z)({},"".concat(Rn,"-sticky-scroll-bar-active"),Nr)),style:{width:"".concat(Cn,"px"),transform:"translate3d(".concat(or.scrollLeft,"px, 0, 0)")}}))},fr=b.forwardRef(sr);function Qn(ve){return null}var Xn=Qn;function Jn(ve){return null}var ur=Jn,Er="rc-table",Cr=[],wr={};function Yn(){return"No Data"}function yr(ve,me){var Ue=(0,rt.Z)({rowKey:"key",prefixCls:Er,emptyText:Yn},ve),dt=Ue.prefixCls,Mt=Ue.className,Ht=Ue.rowClassName,ln=Ue.style,qt=Ue.data,fn=Ue.rowKey,cn=Ue.scroll,Rn=Ue.tableLayout,Dn=Ue.direction,Pn=Ue.title,Cn=Ue.footer,bn=Ue.summary,rr=Ue.caption,_n=Ue.id,or=Ue.showHeader,dr=Ue.components,ar=Ue.emptyText,vr=Ue.onRow,Sr=Ue.onHeaderRow,Nr=Ue.onScroll,Dr=Ue.internalHooks,mi=Ue.transformColumns,Gr=Ue.internalRefs,zr=Ue.tailor,ii=Ue.getContainerWidth,Ar=Ue.sticky,kr=Ue.rowHoverable,gr=kr===void 0?!0:kr,hr=qt||Cr,Mr=!!hr.length,Br=Dr===fe,Xr=b.useCallback(function(ji,Ui){return(0,Et.Z)(dr,ji)||Ui},[dr]),xr=b.useMemo(function(){return typeof fn=="function"?fn:function(ji){var Ui=ji&&ji[fn];return Ui}},[fn]),wi=Xr(["body"]),Oi=Pe(),yo=(0,nt.Z)(Oi,3),fo=yo[0],ro=yo[1],ho=yo[2],So=Re(Ue,hr,xr),Di=(0,nt.Z)(So,6),Ti=Di[0],wo=Di[1],ko=Di[2],jr=Di[3],di=Di[4],$r=Di[5],Tr=cn==null?void 0:cn.x,Bi=b.useState(0),Vi=(0,nt.Z)(Bi,2),co=Vi[0],to=Vi[1],Eo=Pt((0,rt.Z)((0,rt.Z)((0,rt.Z)({},Ue),Ti),{},{expandable:!!Ti.expandedRowRender,columnTitle:Ti.columnTitle,expandedKeys:ko,getRowKey:xr,onTriggerExpand:$r,expandIcon:jr,expandIconColumnIndex:Ti.expandIconColumnIndex,direction:Dn,scrollWidth:Br&&zr&&typeof Tr=="number"?Tr:null,clientWidth:co}),Br?mi:null),Ro=(0,nt.Z)(Eo,4),Kr=Ro[0],ei=Ro[1],Gi=Ro[2],eo=Ro[3],Qi=Gi!=null?Gi:Tr,zo=b.useMemo(function(){return{columns:Kr,flattenColumns:ei}},[Kr,ei]),Io=b.useRef(),va=b.useRef(),po=b.useRef(),zi=b.useRef();b.useImperativeHandle(me,function(){return{nativeElement:Io.current,scrollTo:function(Ui){var ta;if(po.current instanceof HTMLElement){var Ia=Ui.index,na=Ui.top,Ml=Ui.key;if(Ot(na)){var sl;(sl=po.current)===null||sl===void 0||sl.scrollTo({top:na})}else{var Ja,Nl=Ml!=null?Ml:xr(hr[Ia]);(Ja=po.current.querySelector('[data-row-key="'.concat(Nl,'"]')))===null||Ja===void 0||Ja.scrollIntoView()}}else(ta=po.current)!==null&&ta!==void 0&&ta.scrollTo&&po.current.scrollTo(Ui)}}});var no=b.useRef(),io=b.useState(!1),Fo=(0,nt.Z)(io,2),bo=Fo[0],Hi=Fo[1],mo=b.useState(!1),Xi=(0,nt.Z)(mo,2),Jo=Xi[0],Lo=Xi[1],ua=b.useState(new Map),ga=(0,nt.Z)(ua,2),Ua=ga[0],oo=ga[1],Wl=Lt(ei),da=Wl.map(function(ji){return Ua.get(ji)}),ka=b.useMemo(function(){return da},[da.join("_")]),wa=xt(ka,ei,Dn),ya=cn&&en(cn.y),ao=cn&&en(Qi)||!!Ti.fixed,Ea=ao&&ei.some(function(ji){var Ui=ji.fixed;return Ui}),al=b.useRef(),Ga=Kt(Ar,dt),Xa=Ga.isSticky,is=Ga.offsetHeader,os=Ga.offsetSummary,as=Ga.offsetScroll,ls=Ga.stickyClassName,Is=Ga.container,yi=b.useMemo(function(){return bn==null?void 0:bn(hr)},[bn,hr]),Li=(ya||Xa)&&b.isValidElement(yi)&&yi.type===be&&yi.props.fixed,vo,Po,Uo;ya&&(Po={overflowY:Mr?"scroll":"auto",maxHeight:cn.y}),ao&&(vo={overflowX:"auto"},ya||(Po={overflowY:"hidden"}),Uo={width:Qi===!0?"auto":Qi,minWidth:"100%"});var Ho=b.useCallback(function(ji,Ui){oo(function(ta){if(ta.get(ji)!==Ui){var Ia=new Map(ta);return Ia.set(ji,Ui),Ia}return ta})},[]),$a=bt(null),ea=(0,nt.Z)($a,2),Dl=ea[0],Ps=ea[1];function Kl(ji,Ui){Ui&&(typeof Ui=="function"?Ui(ji):Ui.scrollLeft!==ji&&(Ui.scrollLeft=ji,Ui.scrollLeft!==ji&&setTimeout(function(){Ui.scrollLeft=ji},0)))}var vl=(0,Se.Z)(function(ji){var Ui=ji.currentTarget,ta=ji.scrollLeft,Ia=Dn==="rtl",na=typeof ta=="number"?ta:Ui.scrollLeft,Ml=Ui||wr;if(!Ps()||Ps()===Ml){var sl;Dl(Ml),Kl(na,va.current),Kl(na,po.current),Kl(na,no.current),Kl(na,(sl=al.current)===null||sl===void 0?void 0:sl.setScrollLeft)}var Ja=Ui||va.current;if(Ja){var Nl=Br&&zr&&typeof Qi=="number"?Qi:Ja.scrollWidth,$s=Ja.clientWidth;if(Nl===$s){Hi(!1),Lo(!1);return}Ia?(Hi(-na<Nl-$s),Lo(-na>0)):(Hi(na>0),Lo(na<Nl-$s))}}),ss=(0,Se.Z)(function(ji){vl(ji),Nr==null||Nr(ji)}),gl=function(){if(ao&&po.current){var Ui;vl({currentTarget:(0,An.bn)(po.current),scrollLeft:(Ui=po.current)===null||Ui===void 0?void 0:Ui.scrollLeft})}else Hi(!1),Lo(!1)},Os=function(Ui){var ta,Ia=Ui.width;(ta=al.current)===null||ta===void 0||ta.checkScrollBarVisible();var na=Io.current?Io.current.offsetWidth:Ia;Br&&ii&&Io.current&&(na=ii(Io.current,na)||na),na!==co&&(gl(),to(na))},cs=b.useRef(!1);b.useEffect(function(){cs.current&&gl()},[ao,qt,Kr.length]),b.useEffect(function(){cs.current=!0},[]);var Ds=b.useState(0),Qs=(0,nt.Z)(Ds,2),ll=Qs[0],Ts=Qs[1],vc=b.useState(!0),Ms=(0,nt.Z)(vc,2),_l=Ms[0],gc=Ms[1];(0,xe.Z)(function(){(!zr||!Br)&&(po.current instanceof Element?Ts((0,pt.o)(po.current).width):Ts((0,pt.o)(zi.current).width)),gc((0,Ge.G)("position","sticky"))},[]),b.useEffect(function(){Br&&Gr&&(Gr.body.current=po.current)});var yc=b.useCallback(function(ji){return b.createElement(b.Fragment,null,b.createElement(xn,ji),Li==="top"&&b.createElement(Le,ji,yi))},[Li,yi]),Vl=b.useCallback(function(ji){return b.createElement(Le,ji,yi)},[yi]),Ns=Xr(["table"],"table"),Ul=b.useMemo(function(){return Rn||(Ea?Qi==="max-content"?"auto":"fixed":ya||Xa||ei.some(function(ji){var Ui=ji.ellipsis;return Ui})?"fixed":"auto")},[ya,Ea,ei,Rn,Xa]),As,Gl={colWidths:ka,columCount:ei.length,stickyOffsets:wa,onHeaderRow:Sr,fixHeader:ya,scroll:cn},ks=b.useMemo(function(){return Mr?null:typeof ar=="function"?ar():ar},[Mr,ar]),Js=b.createElement(Vt,{data:hr,measureColumnWidth:ya||ao||Xa}),Ls=b.createElement(kn,{colWidths:ei.map(function(ji){var Ui=ji.width;return Ui}),columns:ei}),Bs=rr!=null?b.createElement("caption",{className:"".concat(dt,"-caption")},rr):void 0,bc=(0,we.Z)(Ue,{data:!0}),us=(0,we.Z)(Ue,{aria:!0});if(ya||Xa){var yl;typeof wi=="function"?(yl=wi(hr,{scrollbarSize:ll,ref:po,onScroll:vl}),Gl.colWidths=ei.map(function(ji,Ui){var ta=ji.width,Ia=Ui===ei.length-1?ta-ll:ta;return typeof Ia=="number"&&!Number.isNaN(Ia)?Ia:0})):yl=b.createElement("div",{style:(0,rt.Z)((0,rt.Z)({},vo),Po),onScroll:ss,ref:po,className:_e()("".concat(dt,"-body"))},b.createElement(Ns,(0,et.Z)({style:(0,rt.Z)((0,rt.Z)({},Uo),{},{tableLayout:Ul})},us),Bs,Ls,Js,!Li&&yi&&b.createElement(Le,{stickyOffsets:wa,flattenColumns:ei},yi)));var Tl=(0,rt.Z)((0,rt.Z)((0,rt.Z)({noData:!hr.length,maxContentScroll:ao&&Qi==="max-content"},Gl),zo),{},{direction:Dn,stickyClassName:ls,onScroll:vl});As=b.createElement(b.Fragment,null,or!==!1&&b.createElement(Xt,(0,et.Z)({},Tl,{stickyTopOffset:is,className:"".concat(dt,"-header"),ref:va}),yc),yl,Li&&Li!=="top"&&b.createElement(Xt,(0,et.Z)({},Tl,{stickyBottomOffset:os,className:"".concat(dt,"-summary"),ref:no}),Vl),Xa&&po.current&&po.current instanceof Element&&b.createElement(fr,{ref:al,offsetScroll:as,scrollBodyRef:po,onScroll:vl,container:Is,direction:Dn}))}else As=b.createElement("div",{style:(0,rt.Z)((0,rt.Z)({},vo),Po),className:_e()("".concat(dt,"-content")),onScroll:vl,ref:po},b.createElement(Ns,(0,et.Z)({style:(0,rt.Z)((0,rt.Z)({},Uo),{},{tableLayout:Ul})},us),Bs,Ls,or!==!1&&b.createElement(xn,(0,et.Z)({},Gl,zo)),Js,yi&&b.createElement(Le,{stickyOffsets:wa,flattenColumns:ei},yi)));var Rs=b.createElement("div",(0,et.Z)({className:_e()(dt,Mt,(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(dt,"-rtl"),Dn==="rtl"),"".concat(dt,"-ping-left"),bo),"".concat(dt,"-ping-right"),Jo),"".concat(dt,"-layout-fixed"),Rn==="fixed"),"".concat(dt,"-fixed-header"),ya),"".concat(dt,"-fixed-column"),Ea),"".concat(dt,"-fixed-column-gapped"),Ea&&eo),"".concat(dt,"-scroll-horizontal"),ao),"".concat(dt,"-has-fix-left"),ei[0]&&ei[0].fixed),"".concat(dt,"-has-fix-right"),ei[ei.length-1]&&ei[ei.length-1].fixed==="right")),style:ln,id:_n,ref:Io},bc),Pn&&b.createElement(Ft,{className:"".concat(dt,"-title")},Pn(hr)),b.createElement("div",{ref:zi,className:"".concat(dt,"-container")},As),Cn&&b.createElement(Ft,{className:"".concat(dt,"-footer")},Cn(hr)));ao&&(Rs=b.createElement(Ve.Z,{onResize:Os},Rs));var Fs=vt(ei,wa,Dn),xc=b.useMemo(function(){return{scrollX:Qi,prefixCls:dt,getComponent:Xr,scrollbarSize:ll,direction:Dn,fixedInfoList:Fs,isSticky:Xa,supportSticky:_l,componentWidth:co,fixHeader:ya,fixColumn:Ea,horizonScroll:ao,tableLayout:Ul,rowClassName:Ht,expandedRowClassName:Ti.expandedRowClassName,expandIcon:jr,expandableType:wo,expandRowByClick:Ti.expandRowByClick,expandedRowRender:Ti.expandedRowRender,onTriggerExpand:$r,expandIconColumnIndex:Ti.expandIconColumnIndex,indentSize:Ti.indentSize,allColumnsFixedLeft:ei.every(function(ji){return ji.fixed==="left"}),emptyNode:ks,columns:Kr,flattenColumns:ei,onColumnResize:Ho,hoverStartRow:fo,hoverEndRow:ro,onHover:ho,rowExpandable:Ti.rowExpandable,onRow:vr,getRowKey:xr,expandedKeys:ko,childrenColumnName:di,rowHoverable:gr}},[Qi,dt,Xr,ll,Dn,Fs,Xa,_l,co,ya,Ea,ao,Ul,Ht,Ti.expandedRowClassName,jr,wo,Ti.expandRowByClick,Ti.expandedRowRender,$r,Ti.expandIconColumnIndex,Ti.indentSize,ks,Kr,ei,Ho,fo,ro,ho,Ti.rowExpandable,vr,xr,ko,di,gr]);return b.createElement(Xe.Provider,{value:xc},Rs)}var mr=b.forwardRef(yr);function _r(ve){return yt(mr,ve)}var Yr=_r();Yr.EXPAND_COLUMN=ze,Yr.INTERNAL_HOOKS=fe,Yr.Column=Xn,Yr.ColumnGroup=ur,Yr.Summary=Ne;var Vr=Yr,Ur=ee(48911),oi=Ie(null),Zr=Ie(null);function Jr(ve,me,Ue){var dt=me||1;return Ue[ve+dt]-(Ue[ve]||0)}function Or(ve){var me=ve.rowInfo,Ue=ve.column,dt=ve.colIndex,Mt=ve.indent,Ht=ve.index,ln=ve.component,qt=ve.renderIndex,fn=ve.record,cn=ve.style,Rn=ve.className,Dn=ve.inverse,Pn=ve.getHeight,Cn=Ue.render,bn=Ue.dataIndex,rr=Ue.className,_n=Ue.width,or=ue(Zr,["columnsOffset"]),dr=or.columnsOffset,ar=$e(me,Ue,dt,Mt,Ht),vr=ar.key,Sr=ar.fixedInfo,Nr=ar.appendCellNode,Dr=ar.additionalCellProps,mi=Dr.style,Gr=Dr.colSpan,zr=Gr===void 0?1:Gr,ii=Dr.rowSpan,Ar=ii===void 0?1:ii,kr=dt-1,gr=Jr(kr,zr,dr),hr=zr>1?_n-gr:0,Mr=(0,rt.Z)((0,rt.Z)((0,rt.Z)({},mi),cn),{},{flex:"0 0 ".concat(gr,"px"),width:"".concat(gr,"px"),marginRight:hr,pointerEvents:"auto"}),Br=b.useMemo(function(){return Dn?Ar<=1:zr===0||Ar===0||Ar>1},[Ar,zr,Dn]);Br?Mr.visibility="hidden":Dn&&(Mr.height=Pn==null?void 0:Pn(Ar));var Xr=Br?function(){return null}:Cn,xr={};return(Ar===0||zr===0)&&(xr.rowSpan=1,xr.colSpan=1),b.createElement(tn,(0,et.Z)({className:_e()(rr,Rn),ellipsis:Ue.ellipsis,align:Ue.align,scope:Ue.rowScope,component:ln,prefixCls:me.prefixCls,key:vr,record:fn,index:Ht,renderIndex:qt,dataIndex:bn,render:Xr,shouldCellUpdate:Ue.shouldCellUpdate},Sr,{appendNode:Nr,additionalProps:(0,rt.Z)((0,rt.Z)({},Dr),{},{style:Mr},xr)}))}var ti=Or,ci=["data","index","className","rowKey","style","extra","getHeight"],Fi=b.forwardRef(function(ve,me){var Ue=ve.data,dt=ve.index,Mt=ve.className,Ht=ve.rowKey,ln=ve.style,qt=ve.extra,fn=ve.getHeight,cn=(0,oe.Z)(ve,ci),Rn=Ue.record,Dn=Ue.indent,Pn=Ue.index,Cn=ue(Xe,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),bn=Cn.scrollX,rr=Cn.flattenColumns,_n=Cn.prefixCls,or=Cn.fixColumn,dr=Cn.componentWidth,ar=ue(oi,["getComponent"]),vr=ar.getComponent,Sr=Tt(Rn,Ht,dt,Dn),Nr=vr(["body","row"],"div"),Dr=vr(["body","cell"],"div"),mi=Sr.rowSupportExpand,Gr=Sr.expanded,zr=Sr.rowProps,ii=Sr.expandedRowRender,Ar=Sr.expandedRowClassName,kr;if(mi&&Gr){var gr=ii(Rn,dt,Dn+1,Gr),hr=_t(Ar,Rn,dt,Dn),Mr={};or&&(Mr={style:(0,Ce.Z)({},"--virtual-width","".concat(dr,"px"))});var Br="".concat(_n,"-expanded-row-cell");kr=b.createElement(Nr,{className:_e()("".concat(_n,"-expanded-row"),"".concat(_n,"-expanded-row-level-").concat(Dn+1),hr)},b.createElement(tn,{component:Dr,prefixCls:_n,className:_e()(Br,(0,Ce.Z)({},"".concat(Br,"-fixed"),or)),additionalProps:Mr},gr))}var Xr=(0,rt.Z)((0,rt.Z)({},ln),{},{width:bn});qt&&(Xr.position="absolute",Xr.pointerEvents="none");var xr=b.createElement(Nr,(0,et.Z)({},zr,cn,{"data-row-key":Ht,ref:mi?null:me,className:_e()(Mt,"".concat(_n,"-row"),zr==null?void 0:zr.className,(0,Ce.Z)({},"".concat(_n,"-row-extra"),qt)),style:(0,rt.Z)((0,rt.Z)({},Xr),zr==null?void 0:zr.style)}),rr.map(function(wi,Oi){return b.createElement(ti,{key:Oi,component:Dr,rowInfo:Sr,column:wi,colIndex:Oi,indent:Dn,index:dt,renderIndex:Pn,record:Rn,inverse:qt,getHeight:fn})}));return mi?b.createElement("div",{ref:me},xr,kr):xr}),vi=Nt(Fi),xi=vi,hi=b.forwardRef(function(ve,me){var Ue=ve.data,dt=ve.onScroll,Mt=ue(Xe,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),Ht=Mt.flattenColumns,ln=Mt.onColumnResize,qt=Mt.getRowKey,fn=Mt.expandedKeys,cn=Mt.prefixCls,Rn=Mt.childrenColumnName,Dn=Mt.scrollX,Pn=Mt.direction,Cn=ue(oi),bn=Cn.sticky,rr=Cn.scrollY,_n=Cn.listItemHeight,or=Cn.getComponent,dr=Cn.onScroll,ar=b.useRef(),vr=Zt(Ue,Rn,fn,qt),Sr=b.useMemo(function(){var kr=0;return Ht.map(function(gr){var hr=gr.width,Mr=gr.key;return kr+=hr,[Mr,hr,kr]})},[Ht]),Nr=b.useMemo(function(){return Sr.map(function(kr){return kr[2]})},[Sr]);b.useEffect(function(){Sr.forEach(function(kr){var gr=(0,nt.Z)(kr,2),hr=gr[0],Mr=gr[1];ln(hr,Mr)})},[Sr]),b.useImperativeHandle(me,function(){var kr,gr={scrollTo:function(Mr){var Br;(Br=ar.current)===null||Br===void 0||Br.scrollTo(Mr)},nativeElement:(kr=ar.current)===null||kr===void 0?void 0:kr.nativeElement};return Object.defineProperty(gr,"scrollLeft",{get:function(){var Mr;return((Mr=ar.current)===null||Mr===void 0?void 0:Mr.getScrollInfo().x)||0},set:function(Mr){var Br;(Br=ar.current)===null||Br===void 0||Br.scrollTo({left:Mr})}}),gr});var Dr=function(gr,hr){var Mr,Br=(Mr=vr[hr])===null||Mr===void 0?void 0:Mr.record,Xr=gr.onCell;if(Xr){var xr,wi=Xr(Br,hr);return(xr=wi==null?void 0:wi.rowSpan)!==null&&xr!==void 0?xr:1}return 1},mi=function(gr){var hr=gr.start,Mr=gr.end,Br=gr.getSize,Xr=gr.offsetY;if(Mr<0)return null;for(var xr=Ht.filter(function(jr){return Dr(jr,hr)===0}),wi=hr,Oi=function(di){if(xr=xr.filter(function($r){return Dr($r,di)===0}),!xr.length)return wi=di,1},yo=hr;yo>=0&&!Oi(yo);yo-=1);for(var fo=Ht.filter(function(jr){return Dr(jr,Mr)!==1}),ro=Mr,ho=function(di){if(fo=fo.filter(function($r){return Dr($r,di)!==1}),!fo.length)return ro=Math.max(di-1,Mr),1},So=Mr;So<vr.length&&!ho(So);So+=1);for(var Di=[],Ti=function(di){var $r=vr[di];if(!$r)return 1;Ht.some(function(Tr){return Dr(Tr,di)>1})&&Di.push(di)},wo=wi;wo<=ro;wo+=1)Ti(wo);var ko=Di.map(function(jr){var di=vr[jr],$r=qt(di.record,jr),Tr=function(co){var to=jr+co-1,Eo=qt(vr[to].record,to),Ro=Br($r,Eo);return Ro.bottom-Ro.top},Bi=Br($r);return b.createElement(xi,{key:jr,data:di,rowKey:$r,index:jr,style:{top:-Xr+Bi.top},extra:!0,getHeight:Tr})});return ko},Gr=b.useMemo(function(){return{columnsOffset:Nr}},[Nr]),zr="".concat(cn,"-tbody"),ii=or(["body","wrapper"]),Ar={};return bn&&(Ar.position="sticky",Ar.bottom=0,(0,Ye.Z)(bn)==="object"&&bn.offsetScroll&&(Ar.bottom=bn.offsetScroll)),b.createElement(Zr.Provider,{value:Gr},b.createElement(Ur.Z,{fullHeight:!1,ref:ar,prefixCls:"".concat(zr,"-virtual"),styles:{horizontalScrollBar:Ar},className:zr,height:rr,itemHeight:_n||24,data:vr,itemKey:function(gr){return qt(gr.record)},component:ii,scrollWidth:Dn,direction:Pn,onVirtualScroll:function(gr){var hr,Mr=gr.x;dt({currentTarget:(hr=ar.current)===null||hr===void 0?void 0:hr.nativeElement,scrollLeft:Mr})},onScroll:dr,extraRender:mi},function(kr,gr,hr){var Mr=qt(kr.record,gr);return b.createElement(xi,{data:kr,rowKey:Mr,index:gr,style:hr.style})}))}),bi=Nt(hi),Rr=bi,Lr=function(me,Ue){var dt=Ue.ref,Mt=Ue.onScroll;return b.createElement(Rr,{ref:dt,data:me,onScroll:Mt})};function cr(ve,me){var Ue=ve.data,dt=ve.columns,Mt=ve.scroll,Ht=ve.sticky,ln=ve.prefixCls,qt=ln===void 0?Er:ln,fn=ve.className,cn=ve.listItemHeight,Rn=ve.components,Dn=ve.onScroll,Pn=Mt||{},Cn=Pn.x,bn=Pn.y;typeof Cn!="number"&&(Cn=1),typeof bn!="number"&&(bn=500);var rr=(0,qe.zX)(function(dr,ar){return(0,Et.Z)(Rn,dr)||ar}),_n=(0,qe.zX)(Dn),or=b.useMemo(function(){return{sticky:Ht,scrollY:bn,listItemHeight:cn,getComponent:rr,onScroll:_n}},[Ht,bn,cn,rr,_n]);return b.createElement(oi.Provider,{value:or},b.createElement(Vr,(0,et.Z)({},ve,{className:_e()(fn,"".concat(qt,"-virtual")),scroll:(0,rt.Z)((0,rt.Z)({},Mt),{},{x:Cn}),components:(0,rt.Z)((0,rt.Z)({},Rn),{},{body:Ue!=null&&Ue.length?Lr:void 0}),columns:dt,internalHooks:fe,tailor:!0,ref:me})))}var Nn=b.forwardRef(cr);function Kn(ve){return yt(Nn,ve)}var Vn=Kn(),Bn=null,br=ve=>null,Ln=ve=>null,Gn=ee(84105),nr=ee(82661),Qr=ee(34643),Ei=ee(34061),pi=ee(18929);function Ni(ve){const[me,Ue]=(0,b.useState)(null);return[(0,b.useCallback)((Ht,ln,qt)=>{const fn=me!=null?me:Ht,cn=Math.min(fn||0,Ht),Rn=Math.max(fn||0,Ht),Dn=ln.slice(cn,Rn+1).map(bn=>ve(bn)),Pn=Dn.some(bn=>!qt.has(bn)),Cn=[];return Dn.forEach(bn=>{Pn?(qt.has(bn)||Cn.push(bn),qt.add(bn)):(qt.delete(bn),Cn.push(bn))}),Ue(Pn?Rn:null),Cn},[me]),Ht=>{Ue(Ht)}]}var Ii=ee(32383),Pi=ee(62673),$i=ee(75727),Ai=ee(47889);const ki={},lo="SELECT_ALL",xo="SELECT_INVERT",Do="SELECT_NONE",To=[],Co=(ve,me)=>{let Ue=[];return(me||[]).forEach(dt=>{Ue.push(dt),dt&&typeof dt=="object"&&ve in dt&&(Ue=[].concat((0,dn.Z)(Ue),(0,dn.Z)(Co(ve,dt[ve]))))}),Ue};var Hr=(ve,me)=>{const{preserveSelectedRowKeys:Ue,selectedRowKeys:dt,defaultSelectedRowKeys:Mt,getCheckboxProps:Ht,onChange:ln,onSelect:qt,onSelectAll:fn,onSelectInvert:cn,onSelectNone:Rn,onSelectMultiple:Dn,columnWidth:Pn,type:Cn,selections:bn,fixed:rr,renderCell:_n,hideSelectAll:or,checkStrictly:dr=!0}=me||{},{prefixCls:ar,data:vr,pageData:Sr,getRecordByKey:Nr,getRowKey:Dr,expandType:mi,childrenColumnName:Gr,locale:zr,getPopupContainer:ii}=ve,Ar=(0,Ii.ln)("Table"),[kr,gr]=Ni(jr=>jr),[hr,Mr]=(0,pi.Z)(dt||Mt||To,{value:dt}),Br=b.useRef(new Map),Xr=(0,b.useCallback)(jr=>{if(Ue){const di=new Map;jr.forEach($r=>{let Tr=Nr($r);!Tr&&Br.current.has($r)&&(Tr=Br.current.get($r)),di.set($r,Tr)}),Br.current=di}},[Nr,Ue]);b.useEffect(()=>{Xr(hr)},[hr]);const xr=(0,b.useMemo)(()=>Co(Gr,Sr),[Gr,Sr]),{keyEntities:wi}=(0,b.useMemo)(()=>{if(dr)return{keyEntities:null};let jr=vr;if(Ue){const di=new Set(xr.map((Tr,Bi)=>Dr(Tr,Bi))),$r=Array.from(Br.current).reduce((Tr,Bi)=>{let[Vi,co]=Bi;return di.has(Vi)?Tr:Tr.concat(co)},[]);jr=[].concat((0,dn.Z)(jr),(0,dn.Z)($r))}return(0,Ei.I8)(jr,{externalGetKey:Dr,childrenPropName:Gr})},[vr,Dr,dr,Gr,Ue,xr]),Oi=(0,b.useMemo)(()=>{const jr=new Map;return xr.forEach((di,$r)=>{const Tr=Dr(di,$r),Bi=(Ht?Ht(di):null)||{};jr.set(Tr,Bi)}),jr},[xr,Dr,Ht]),yo=(0,b.useCallback)(jr=>{const di=Dr(jr);let $r;return Oi.has(di)?$r=Oi.get(Dr(jr)):$r=Ht?Ht(jr):void 0,!!($r!=null&&$r.disabled)},[Oi,Dr]),[fo,ro]=(0,b.useMemo)(()=>{if(dr)return[hr||[],[]];const{checkedKeys:jr,halfCheckedKeys:di}=(0,Qr.S)(hr,!0,wi,yo);return[jr||[],di]},[hr,dr,wi,yo]),ho=(0,b.useMemo)(()=>{const jr=Cn==="radio"?fo.slice(0,1):fo;return new Set(jr)},[fo,Cn]),So=(0,b.useMemo)(()=>Cn==="radio"?new Set:new Set(ro),[ro,Cn]);b.useEffect(()=>{me||Mr(To)},[!!me]);const Di=(0,b.useCallback)((jr,di)=>{let $r,Tr;Xr(jr),Ue?($r=jr,Tr=jr.map(Bi=>Br.current.get(Bi))):($r=[],Tr=[],jr.forEach(Bi=>{const Vi=Nr(Bi);Vi!==void 0&&($r.push(Bi),Tr.push(Vi))})),Mr($r),ln==null||ln($r,Tr,{type:di})},[Mr,Nr,ln,Ue]),Ti=(0,b.useCallback)((jr,di,$r,Tr)=>{if(qt){const Bi=$r.map(Vi=>Nr(Vi));qt(Nr(jr),di,Bi,Tr)}Di($r,"single")},[qt,Nr,Di]),wo=(0,b.useMemo)(()=>!bn||or?null:(bn===!0?[lo,xo,Do]:bn).map(di=>di===lo?{key:"all",text:zr.selectionAll,onSelect(){Di(vr.map(($r,Tr)=>Dr($r,Tr)).filter($r=>{const Tr=Oi.get($r);return!(Tr!=null&&Tr.disabled)||ho.has($r)}),"all")}}:di===xo?{key:"invert",text:zr.selectInvert,onSelect(){const $r=new Set(ho);Sr.forEach((Bi,Vi)=>{const co=Dr(Bi,Vi),to=Oi.get(co);to!=null&&to.disabled||($r.has(co)?$r.delete(co):$r.add(co))});const Tr=Array.from($r);cn&&(Ar.deprecated(!1,"onSelectInvert","onChange"),cn(Tr)),Di(Tr,"invert")}}:di===Do?{key:"none",text:zr.selectNone,onSelect(){Rn==null||Rn(),Di(Array.from(ho).filter($r=>{const Tr=Oi.get($r);return Tr==null?void 0:Tr.disabled}),"none")}}:di).map(di=>Object.assign(Object.assign({},di),{onSelect:function(){for(var $r,Tr,Bi=arguments.length,Vi=new Array(Bi),co=0;co<Bi;co++)Vi[co]=arguments[co];(Tr=di.onSelect)===null||Tr===void 0||($r=Tr).call.apply($r,[di].concat(Vi)),gr(null)}})),[bn,ho,Sr,Dr,cn,Di]);return[(0,b.useCallback)(jr=>{var di;if(!me)return jr.filter(zi=>zi!==ki);let $r=(0,dn.Z)(jr);const Tr=new Set(ho),Bi=xr.map(Dr).filter(zi=>!Oi.get(zi).disabled),Vi=Bi.every(zi=>Tr.has(zi)),co=Bi.some(zi=>Tr.has(zi)),to=()=>{const zi=[];Vi?Bi.forEach(io=>{Tr.delete(io),zi.push(io)}):Bi.forEach(io=>{Tr.has(io)||(Tr.add(io),zi.push(io))});const no=Array.from(Tr);fn==null||fn(!Vi,no.map(io=>Nr(io)),zi.map(io=>Nr(io))),Di(no,"all"),gr(null)};let Eo,Ro;if(Cn!=="radio"){let zi;if(wo){const Hi={getPopupContainer:ii,items:wo.map((mo,Xi)=>{const{key:Jo,text:Lo,onSelect:ua}=mo;return{key:Jo!=null?Jo:Xi,onClick:()=>{ua==null||ua(Bi)},label:Lo}})};zi=b.createElement("div",{className:`${ar}-selection-extra`},b.createElement($i.Z,{menu:Hi,getPopupContainer:ii},b.createElement("span",null,b.createElement(Gn.Z,null))))}const no=xr.map((Hi,mo)=>{const Xi=Dr(Hi,mo),Jo=Oi.get(Xi)||{};return Object.assign({checked:Tr.has(Xi)},Jo)}).filter(Hi=>{let{disabled:mo}=Hi;return mo}),io=!!no.length&&no.length===xr.length,Fo=io&&no.every(Hi=>{let{checked:mo}=Hi;return mo}),bo=io&&no.some(Hi=>{let{checked:mo}=Hi;return mo});Ro=b.createElement(Pi.default,{checked:io?Fo:!!xr.length&&Vi,indeterminate:io?!Fo&&bo:!Vi&&co,onChange:to,disabled:xr.length===0||io,"aria-label":zi?"Custom selection":"Select all",skipGroup:!0}),Eo=!or&&b.createElement("div",{className:`${ar}-selection`},Ro,zi)}let Kr;Cn==="radio"?Kr=(zi,no,io)=>{const Fo=Dr(no,io),bo=Tr.has(Fo),Hi=Oi.get(Fo);return{node:b.createElement(Ai.ZP,Object.assign({},Hi,{checked:bo,onClick:mo=>{var Xi;mo.stopPropagation(),(Xi=Hi==null?void 0:Hi.onClick)===null||Xi===void 0||Xi.call(Hi,mo)},onChange:mo=>{var Xi;Tr.has(Fo)||Ti(Fo,!0,[Fo],mo.nativeEvent),(Xi=Hi==null?void 0:Hi.onChange)===null||Xi===void 0||Xi.call(Hi,mo)}})),checked:bo}}:Kr=(zi,no,io)=>{var Fo;const bo=Dr(no,io),Hi=Tr.has(bo),mo=So.has(bo),Xi=Oi.get(bo);let Jo;return mi==="nest"?Jo=mo:Jo=(Fo=Xi==null?void 0:Xi.indeterminate)!==null&&Fo!==void 0?Fo:mo,{node:b.createElement(Pi.default,Object.assign({},Xi,{indeterminate:Jo,checked:Hi,skipGroup:!0,onClick:Lo=>{var ua;Lo.stopPropagation(),(ua=Xi==null?void 0:Xi.onClick)===null||ua===void 0||ua.call(Xi,Lo)},onChange:Lo=>{var ua;const{nativeEvent:ga}=Lo,{shiftKey:Ua}=ga,oo=Bi.findIndex(da=>da===bo),Wl=fo.some(da=>Bi.includes(da));if(Ua&&dr&&Wl){const da=kr(oo,Bi,Tr),ka=Array.from(Tr);Dn==null||Dn(!Hi,ka.map(wa=>Nr(wa)),da.map(wa=>Nr(wa))),Di(ka,"multiple")}else{const da=fo;if(dr){const ka=Hi?(0,nr._5)(da,bo):(0,nr.L0)(da,bo);Ti(bo,!Hi,ka,ga)}else{const ka=(0,Qr.S)([].concat((0,dn.Z)(da),[bo]),!0,wi,yo),{checkedKeys:wa,halfCheckedKeys:ya}=ka;let ao=wa;if(Hi){const Ea=new Set(wa);Ea.delete(bo),ao=(0,Qr.S)(Array.from(Ea),{checked:!1,halfCheckedKeys:ya},wi,yo).checkedKeys}Ti(bo,!Hi,ao,ga)}}gr(Hi?null:oo),(ua=Xi==null?void 0:Xi.onChange)===null||ua===void 0||ua.call(Xi,Lo)}})),checked:Hi}};const ei=(zi,no,io)=>{const{node:Fo,checked:bo}=Kr(zi,no,io);return _n?_n(bo,no,io,Fo):Fo};if(!$r.includes(ki))if($r.findIndex(zi=>{var no;return((no=zi[En])===null||no===void 0?void 0:no.columnType)==="EXPAND_COLUMN"})===0){const[zi,...no]=$r;$r=[zi,ki].concat((0,dn.Z)(no))}else $r=[ki].concat((0,dn.Z)($r));const Gi=$r.indexOf(ki);$r=$r.filter((zi,no)=>zi!==ki||no===Gi);const eo=$r[Gi-1],Qi=$r[Gi+1];let zo=rr;zo===void 0&&((Qi==null?void 0:Qi.fixed)!==void 0?zo=Qi.fixed:(eo==null?void 0:eo.fixed)!==void 0&&(zo=eo.fixed)),zo&&eo&&((di=eo[En])===null||di===void 0?void 0:di.columnType)==="EXPAND_COLUMN"&&eo.fixed===void 0&&(eo.fixed=zo);const Io=_e()(`${ar}-selection-col`,{[`${ar}-selection-col-with-dropdown`]:bn&&Cn==="checkbox"}),va=()=>me!=null&&me.columnTitle?typeof me.columnTitle=="function"?me.columnTitle(Ro):me.columnTitle:Eo,po={fixed:zo,width:Pn,className:`${ar}-selection-column`,title:va(),render:ei,onCell:me.onCell,[En]:{className:Io}};return $r.map(zi=>zi===ki?po:zi)},[Dr,xr,me,fo,ho,So,Pn,wo,mi,Oi,Dn,Ti,yo]),ho]},Ji=ee(2738);function qi(ve,me){return ve._antProxy=ve._antProxy||{},Object.keys(me).forEach(Ue=>{if(!(Ue in ve._antProxy)){const dt=ve[Ue];ve._antProxy[Ue]=dt,ve[Ue]=me[Ue]}}),ve}function ai(ve,me){return(0,b.useImperativeHandle)(ve,()=>{const Ue=me(),{nativeElement:dt}=Ue;return typeof Proxy!="undefined"?new Proxy(dt,{get(Mt,Ht){return Ue[Ht]?Ue[Ht]:Reflect.get(Mt,Ht)}}):qi(dt,Ue)})}var Wi=ee(83010),Yi=ee(48755),gi=ee(38406),Zi=ee(83397),Mi=ee(31756),Zo=ee(13783),ha=ee(85981),Wo=ee(31709),Mo=ee(29787),ul=ee(57700);function el(ve){return me=>{const{prefixCls:Ue,onExpand:dt,record:Mt,expanded:Ht,expandable:ln}=me,qt=`${Ue}-row-expand-icon`;return b.createElement("button",{type:"button",onClick:fn=>{dt(Mt,fn),fn.stopPropagation()},className:_e()(qt,{[`${qt}-spaced`]:!ln,[`${qt}-expanded`]:ln&&Ht,[`${qt}-collapsed`]:ln&&!Ht}),"aria-label":Ht?ve.collapse:ve.expand,"aria-expanded":Ht})}}var si=el;function Ci(ve){return(Ue,dt)=>{const Mt=Ue.querySelector(`.${ve}-container`);let Ht=dt;if(Mt){const ln=getComputedStyle(Mt),qt=parseInt(ln.borderLeftWidth,10),fn=parseInt(ln.borderRightWidth,10);Ht=dt-qt-fn}return Ht}}const ni=(ve,me)=>"key"in ve&&ve.key!==void 0&&ve.key!==null?ve.key:ve.dataIndex?Array.isArray(ve.dataIndex)?ve.dataIndex.join("."):ve.dataIndex:me;function ui(ve,me){return me?`${me}-${ve}`:`${ve}`}const _i=(ve,me)=>typeof ve=="function"?ve(me):ve,so=(ve,me)=>{const Ue=_i(ve,me);return Object.prototype.toString.call(Ue)==="[object Object]"?"":Ue};var Ba={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"},oa=Ba,Yo=ee(7657),No=function(me,Ue){return b.createElement(Yo.Z,(0,et.Z)({},me,{ref:Ue,icon:oa}))},Ta=b.forwardRef(No),Za=Ta,pa=ee(9981),za=ee(40192);function Ya(ve){const me=b.useRef(ve),Ue=(0,za.Z)();return[()=>me.current,dt=>{me.current=dt,Ue()}]}var Ma=ee(7939),dl=ee(584),ms=ee(93041),Ql=ee(78857),Ha=ee(18287),tl=ee(47472),Na=ee(49397),kl=ve=>{const{value:me,filterSearch:Ue,tablePrefixCls:dt,locale:Mt,onChange:Ht}=ve;return Ue?b.createElement("div",{className:`${dt}-filter-dropdown-search`},b.createElement(Na.Z,{prefix:b.createElement(tl.Z,null),placeholder:Mt.filterSearchPlaceholder,onChange:Ht,value:me,htmlSize:1,className:`${dt}-filter-dropdown-search-input`})):null},Jl=ee(10228);const ql=ve=>{const{keyCode:me}=ve;me===Jl.Z.ENTER&&ve.stopPropagation()};var Ll=b.forwardRef((ve,me)=>b.createElement("div",{className:ve.className,onClick:Ue=>Ue.stopPropagation(),onKeyDown:ql,ref:me},ve.children));function ja(ve){let me=[];return(ve||[]).forEach(Ue=>{let{value:dt,children:Mt}=Ue;me.push(dt),Mt&&(me=[].concat((0,dn.Z)(me),(0,dn.Z)(ja(Mt))))}),me}function fl(ve){return ve.some(me=>{let{children:Ue}=me;return Ue})}function xl(ve,me){return typeof me=="string"||typeof me=="number"?me==null?void 0:me.toString().toLowerCase().includes(ve.trim().toLowerCase()):!1}function Bl(ve){let{filters:me,prefixCls:Ue,filteredKeys:dt,filterMultiple:Mt,searchValue:Ht,filterSearch:ln}=ve;return me.map((qt,fn)=>{const cn=String(qt.value);if(qt.children)return{key:cn||fn,label:qt.text,popupClassName:`${Ue}-dropdown-submenu`,children:Bl({filters:qt.children,prefixCls:Ue,filteredKeys:dt,filterMultiple:Mt,searchValue:Ht,filterSearch:ln})};const Rn=Mt?Pi.default:Ai.ZP,Dn={key:qt.value!==void 0?cn:fn,label:b.createElement(b.Fragment,null,b.createElement(Rn,{checked:dt.includes(cn)}),b.createElement("span",null,qt.text))};return Ht.trim()?typeof ln=="function"?ln(Ht,qt)?Dn:null:xl(Ht,qt.text)?Dn:null:Dn})}function hl(ve){return ve||[]}var es=ve=>{var me,Ue,dt,Mt;const{tablePrefixCls:Ht,prefixCls:ln,column:qt,dropdownPrefixCls:fn,columnKey:cn,filterOnClose:Rn,filterMultiple:Dn,filterMode:Pn="menu",filterSearch:Cn=!1,filterState:bn,triggerFilter:rr,locale:_n,children:or,getPopupContainer:dr,rootClassName:ar}=ve,{filterResetToDefaultFilteredValue:vr,defaultFilteredValue:Sr,filterDropdownProps:Nr={},filterDropdownOpen:Dr,filterDropdownVisible:mi,onFilterDropdownVisibleChange:Gr,onFilterDropdownOpenChange:zr}=qt,[ii,Ar]=b.useState(!1),kr=!!(bn&&(!((me=bn.filteredKeys)===null||me===void 0)&&me.length||bn.forceFiltered)),gr=Kr=>{var ei;Ar(Kr),(ei=Nr.onOpenChange)===null||ei===void 0||ei.call(Nr,Kr),zr==null||zr(Kr),Gr==null||Gr(Kr)},hr=(Mt=(dt=(Ue=Nr.open)!==null&&Ue!==void 0?Ue:Dr)!==null&&dt!==void 0?dt:mi)!==null&&Mt!==void 0?Mt:ii,Mr=bn==null?void 0:bn.filteredKeys,[Br,Xr]=Ya(hl(Mr)),xr=Kr=>{let{selectedKeys:ei}=Kr;Xr(ei)},wi=(Kr,ei)=>{let{node:Gi,checked:eo}=ei;xr(Dn?{selectedKeys:Kr}:{selectedKeys:eo&&Gi.key?[Gi.key]:[]})};b.useEffect(()=>{ii&&xr({selectedKeys:hl(Mr)})},[Mr]);const[Oi,yo]=b.useState([]),fo=Kr=>{yo(Kr)},[ro,ho]=b.useState(""),So=Kr=>{const{value:ei}=Kr.target;ho(ei)};b.useEffect(()=>{ii||ho("")},[ii]);const Di=Kr=>{const ei=Kr!=null&&Kr.length?Kr:null;if(ei===null&&(!bn||!bn.filteredKeys)||(0,Ee.Z)(ei,bn==null?void 0:bn.filteredKeys,!0))return null;rr({column:qt,key:cn,filteredKeys:ei})},Ti=()=>{gr(!1),Di(Br())},wo=function(){let{confirm:Kr,closeDropdown:ei}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};Kr&&Di([]),ei&&gr(!1),ho(""),Xr(vr?(Sr||[]).map(Gi=>String(Gi)):[])},ko=function(){let{closeDropdown:Kr}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};Kr&&gr(!1),Di(Br())},jr=(Kr,ei)=>{ei.source==="trigger"&&(Kr&&Mr!==void 0&&Xr(hl(Mr)),gr(Kr),!Kr&&!qt.filterDropdown&&Rn&&Ti())},di=_e()({[`${fn}-menu-without-submenu`]:!fl(qt.filters||[])}),$r=Kr=>{if(Kr.target.checked){const ei=ja(qt==null?void 0:qt.filters).map(Gi=>String(Gi));Xr(ei)}else Xr([])},Tr=Kr=>{let{filters:ei}=Kr;return(ei||[]).map((Gi,eo)=>{const Qi=String(Gi.value),zo={title:Gi.text,key:Gi.value!==void 0?Qi:String(eo)};return Gi.children&&(zo.children=Tr({filters:Gi.children})),zo})},Bi=Kr=>{var ei;return Object.assign(Object.assign({},Kr),{text:Kr.title,value:Kr.key,children:((ei=Kr.children)===null||ei===void 0?void 0:ei.map(Gi=>Bi(Gi)))||[]})};let Vi;const{direction:co,renderEmpty:to}=b.useContext(Yi.E_);if(typeof qt.filterDropdown=="function")Vi=qt.filterDropdown({prefixCls:`${fn}-custom`,setSelectedKeys:Kr=>xr({selectedKeys:Kr}),selectedKeys:Br(),confirm:ko,clearFilters:wo,filters:qt.filters,visible:hr,close:()=>{gr(!1)}});else if(qt.filterDropdown)Vi=qt.filterDropdown;else{const Kr=Br()||[],ei=()=>{var eo,Qi;const zo=(eo=to==null?void 0:to("Table.filter"))!==null&&eo!==void 0?eo:b.createElement(dl.Z,{image:dl.Z.PRESENTED_IMAGE_SIMPLE,description:_n.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if((qt.filters||[]).length===0)return zo;if(Pn==="tree")return b.createElement(b.Fragment,null,b.createElement(kl,{filterSearch:Cn,value:ro,onChange:So,tablePrefixCls:Ht,locale:_n}),b.createElement("div",{className:`${Ht}-filter-dropdown-tree`},Dn?b.createElement(Pi.default,{checked:Kr.length===ja(qt.filters).length,indeterminate:Kr.length>0&&Kr.length<ja(qt.filters).length,className:`${Ht}-filter-dropdown-checkall`,onChange:$r},(Qi=_n==null?void 0:_n.filterCheckall)!==null&&Qi!==void 0?Qi:_n==null?void 0:_n.filterCheckAll):null,b.createElement(Ha.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:Dn,checkStrictly:!Dn,className:`${fn}-menu`,onCheck:wi,checkedKeys:Kr,selectedKeys:Kr,showIcon:!1,treeData:Tr({filters:qt.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:ro.trim()?po=>typeof Cn=="function"?Cn(ro,Bi(po)):xl(ro,po.title):void 0})));const Io=Bl({filters:qt.filters||[],filterSearch:Cn,prefixCls:ln,filteredKeys:Br(),filterMultiple:Dn,searchValue:ro}),va=Io.every(po=>po===null);return b.createElement(b.Fragment,null,b.createElement(kl,{filterSearch:Cn,value:ro,onChange:So,tablePrefixCls:Ht,locale:_n}),va?zo:b.createElement(ms.default,{selectable:!0,multiple:Dn,prefixCls:`${fn}-menu`,className:di,onSelect:xr,onDeselect:xr,selectedKeys:Kr,getPopupContainer:dr,openKeys:Oi,onOpenChange:fo,items:Io}))},Gi=()=>vr?(0,Ee.Z)((Sr||[]).map(eo=>String(eo)),Kr,!0):Kr.length===0;Vi=b.createElement(b.Fragment,null,ei(),b.createElement("div",{className:`${ln}-dropdown-btns`},b.createElement(Ma.ZP,{type:"link",size:"small",disabled:Gi(),onClick:()=>wo()},_n.filterReset),b.createElement(Ma.ZP,{type:"primary",size:"small",onClick:Ti},_n.filterConfirm)))}qt.filterDropdown&&(Vi=b.createElement(Ql.J,{selectable:void 0},Vi)),Vi=b.createElement(Ll,{className:`${ln}-dropdown`},Vi);const Eo=()=>{let Kr;return typeof qt.filterIcon=="function"?Kr=qt.filterIcon(kr):qt.filterIcon?Kr=qt.filterIcon:Kr=b.createElement(Za,null),b.createElement("span",{role:"button",tabIndex:-1,className:_e()(`${ln}-trigger`,{active:kr}),onClick:ei=>{ei.stopPropagation()}},Kr)},Ro=(0,pa.Z)({trigger:["click"],placement:co==="rtl"?"bottomLeft":"bottomRight",children:Eo(),getPopupContainer:dr},Object.assign(Object.assign({},Nr),{rootClassName:_e()(ar,Nr.rootClassName),open:hr,onOpenChange:jr,dropdownRender:()=>typeof(Nr==null?void 0:Nr.dropdownRender)=="function"?Nr.dropdownRender(Vi):Vi}));return b.createElement("div",{className:`${ln}-column`},b.createElement("span",{className:`${Ht}-column-title`},or),b.createElement($i.Z,Object.assign({},Ro)))};const nl=(ve,me,Ue)=>{let dt=[];return(ve||[]).forEach((Mt,Ht)=>{var ln;const qt=ui(Ht,Ue);if(Mt.filters||"filterDropdown"in Mt||"onFilter"in Mt)if("filteredValue"in Mt){let fn=Mt.filteredValue;"filterDropdown"in Mt||(fn=(ln=fn==null?void 0:fn.map(String))!==null&&ln!==void 0?ln:fn),dt.push({column:Mt,key:ni(Mt,qt),filteredKeys:fn,forceFiltered:Mt.filtered})}else dt.push({column:Mt,key:ni(Mt,qt),filteredKeys:me&&Mt.defaultFilteredValue?Mt.defaultFilteredValue:void 0,forceFiltered:Mt.filtered});"children"in Mt&&(dt=[].concat((0,dn.Z)(dt),(0,dn.Z)(nl(Mt.children,me,qt))))}),dt};function aa(ve,me,Ue,dt,Mt,Ht,ln,qt,fn){return Ue.map((cn,Rn)=>{const Dn=ui(Rn,qt),{filterOnClose:Pn=!0,filterMultiple:Cn=!0,filterMode:bn,filterSearch:rr}=cn;let _n=cn;if(_n.filters||_n.filterDropdown){const or=ni(_n,Dn),dr=dt.find(ar=>{let{key:vr}=ar;return or===vr});_n=Object.assign(Object.assign({},_n),{title:ar=>b.createElement(es,{tablePrefixCls:ve,prefixCls:`${ve}-filter`,dropdownPrefixCls:me,column:_n,columnKey:or,filterState:dr,filterOnClose:Pn,filterMultiple:Cn,filterMode:bn,filterSearch:rr,triggerFilter:Ht,locale:Mt,getPopupContainer:ln,rootClassName:fn},_i(cn.title,ar))})}return"children"in _n&&(_n=Object.assign(Object.assign({},_n),{children:aa(ve,me,_n.children,dt,Mt,Ht,ln,Dn,fn)})),_n})}const Ki=ve=>{const me={};return ve.forEach(Ue=>{let{key:dt,filteredKeys:Mt,column:Ht}=Ue;const ln=dt,{filters:qt,filterDropdown:fn}=Ht;if(fn)me[ln]=Mt||null;else if(Array.isArray(Mt)){const cn=ja(qt);me[ln]=cn.filter(Rn=>Mt.includes(String(Rn)))}else me[ln]=null}),me},Si=(ve,me,Ue)=>me.reduce((Mt,Ht)=>{const{column:{onFilter:ln,filters:qt},filteredKeys:fn}=Ht;return ln&&fn&&fn.length?Mt.map(cn=>Object.assign({},cn)).filter(cn=>fn.some(Rn=>{const Dn=ja(qt),Pn=Dn.findIndex(bn=>String(bn)===String(Rn)),Cn=Pn!==-1?Dn[Pn]:Rn;return cn[Ue]&&(cn[Ue]=Si(cn[Ue],me,Ue)),ln(Cn,cn)})):Mt},ve),Ko=ve=>ve.flatMap(me=>"children"in me?[me].concat((0,dn.Z)(Ko(me.children||[]))):[me]);var Ao=ve=>{const{prefixCls:me,dropdownPrefixCls:Ue,mergedColumns:dt,onFilterChange:Mt,getPopupContainer:Ht,locale:ln,rootClassName:qt}=ve,fn=(0,Ii.ln)("Table"),cn=b.useMemo(()=>Ko(dt||[]),[dt]),[Rn,Dn]=b.useState(()=>nl(cn,!0)),Pn=b.useMemo(()=>{const _n=nl(cn,!1);if(_n.length===0)return _n;let or=!0,dr=!0;if(_n.forEach(ar=>{let{filteredKeys:vr}=ar;vr!==void 0?or=!1:dr=!1}),or){const ar=(cn||[]).map((vr,Sr)=>ni(vr,ui(Sr)));return Rn.filter(vr=>{let{key:Sr}=vr;return ar.includes(Sr)}).map(vr=>{const Sr=cn[ar.findIndex(Nr=>Nr===vr.key)];return Object.assign(Object.assign({},vr),{column:Object.assign(Object.assign({},vr.column),Sr),forceFiltered:Sr.filtered})})}return _n},[cn,Rn]),Cn=b.useMemo(()=>Ki(Pn),[Pn]),bn=_n=>{const or=Pn.filter(dr=>{let{key:ar}=dr;return ar!==_n.key});or.push(_n),Dn(or),Mt(Ki(or),or)};return[_n=>aa(me,Ue,_n,Pn,ln,bn,Ht,void 0,qt),Pn,Cn]},Ra=(ve,me,Ue)=>{const dt=b.useRef({});function Mt(Ht){var ln;if(!dt.current||dt.current.data!==ve||dt.current.childrenColumnName!==me||dt.current.getRowKey!==Ue){let fn=function(cn){cn.forEach((Rn,Dn)=>{const Pn=Ue(Rn,Dn);qt.set(Pn,Rn),Rn&&typeof Rn=="object"&&me in Rn&&fn(Rn[me]||[])})};const qt=new Map;fn(ve),dt.current={data:ve,childrenColumnName:me,kvMap:qt,getRowKey:Ue}}return(ln=dt.current.kvMap)===null||ln===void 0?void 0:ln.get(Ht)}return[Mt]},Aa=function(ve,me){var Ue={};for(var dt in ve)Object.prototype.hasOwnProperty.call(ve,dt)&&me.indexOf(dt)<0&&(Ue[dt]=ve[dt]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Mt=0,dt=Object.getOwnPropertySymbols(ve);Mt<dt.length;Mt++)me.indexOf(dt[Mt])<0&&Object.prototype.propertyIsEnumerable.call(ve,dt[Mt])&&(Ue[dt[Mt]]=ve[dt[Mt]]);return Ue};const Wa=10;function xa(ve,me){const Ue={current:ve.current,pageSize:ve.pageSize};return Object.keys(me&&typeof me=="object"?me:{}).forEach(Mt=>{const Ht=ve[Mt];typeof Ht!="function"&&(Ue[Mt]=Ht)}),Ue}function Ca(ve,me,Ue){const dt=Ue&&typeof Ue=="object"?Ue:{},{total:Mt=0}=dt,Ht=Aa(dt,["total"]),[ln,qt]=(0,b.useState)(()=>({current:"defaultCurrent"in Ht?Ht.defaultCurrent:1,pageSize:"defaultPageSize"in Ht?Ht.defaultPageSize:Wa})),fn=(0,pa.Z)(ln,Ht,{total:Mt>0?Mt:ve}),cn=Math.ceil((Mt||ve)/fn.pageSize);fn.current>cn&&(fn.current=cn||1);const Rn=(Pn,Cn)=>{qt({current:Pn!=null?Pn:1,pageSize:Cn||fn.pageSize})},Dn=(Pn,Cn)=>{var bn;Ue&&((bn=Ue.onChange)===null||bn===void 0||bn.call(Ue,Pn,Cn)),Rn(Pn,Cn),me(Pn,Cn||(fn==null?void 0:fn.pageSize))};return Ue===!1?[{},()=>{}]:[Object.assign(Object.assign({},fn),{onChange:Dn}),Rn]}var Fa=Ca,rl=ee(89489),gs=ee(59477),ys=ee(25399);const Cl="ascend",Qa="descend",Ka=ve=>typeof ve.sorter=="object"&&typeof ve.sorter.multiple=="number"?ve.sorter.multiple:!1,sa=ve=>typeof ve=="function"?ve:ve&&typeof ve=="object"&&ve.compare?ve.compare:!1,il=(ve,me)=>me?ve[ve.indexOf(me)+1]:ve[0],_a=(ve,me,Ue)=>{let dt=[];const Mt=(Ht,ln)=>{dt.push({column:Ht,key:ni(Ht,ln),multiplePriority:Ka(Ht),sortOrder:Ht.sortOrder})};return(ve||[]).forEach((Ht,ln)=>{const qt=ui(ln,Ue);Ht.children?("sortOrder"in Ht&&Mt(Ht,qt),dt=[].concat((0,dn.Z)(dt),(0,dn.Z)(_a(Ht.children,me,qt)))):Ht.sorter&&("sortOrder"in Ht?Mt(Ht,qt):me&&Ht.defaultSortOrder&&dt.push({column:Ht,key:ni(Ht,qt),multiplePriority:Ka(Ht),sortOrder:Ht.defaultSortOrder}))}),dt},Fl=(ve,me,Ue,dt,Mt,Ht,ln,qt)=>(me||[]).map((cn,Rn)=>{const Dn=ui(Rn,qt);let Pn=cn;if(Pn.sorter){const Cn=Pn.sortDirections||Mt,bn=Pn.showSorterTooltip===void 0?ln:Pn.showSorterTooltip,rr=ni(Pn,Dn),_n=Ue.find(Gr=>{let{key:zr}=Gr;return zr===rr}),or=_n?_n.sortOrder:null,dr=il(Cn,or);let ar;if(cn.sortIcon)ar=cn.sortIcon({sortOrder:or});else{const Gr=Cn.includes(Cl)&&b.createElement(gs.Z,{className:_e()(`${ve}-column-sorter-up`,{active:or===Cl})}),zr=Cn.includes(Qa)&&b.createElement(rl.Z,{className:_e()(`${ve}-column-sorter-down`,{active:or===Qa})});ar=b.createElement("span",{className:_e()(`${ve}-column-sorter`,{[`${ve}-column-sorter-full`]:!!(Gr&&zr)})},b.createElement("span",{className:`${ve}-column-sorter-inner`,"aria-hidden":"true"},Gr,zr))}const{cancelSort:vr,triggerAsc:Sr,triggerDesc:Nr}=Ht||{};let Dr=vr;dr===Qa?Dr=Nr:dr===Cl&&(Dr=Sr);const mi=typeof bn=="object"?Object.assign({title:Dr},bn):{title:Dr};Pn=Object.assign(Object.assign({},Pn),{className:_e()(Pn.className,{[`${ve}-column-sort`]:or}),title:Gr=>{const zr=`${ve}-column-sorters`,ii=b.createElement("span",{className:`${ve}-column-title`},_i(cn.title,Gr)),Ar=b.createElement("div",{className:zr},ii,ar);return bn?typeof bn!="boolean"&&(bn==null?void 0:bn.target)==="sorter-icon"?b.createElement("div",{className:`${zr} ${ve}-column-sorters-tooltip-target-sorter`},ii,b.createElement(ys.Z,Object.assign({},mi),ar)):b.createElement(ys.Z,Object.assign({},mi),Ar):Ar},onHeaderCell:Gr=>{var zr;const ii=((zr=cn.onHeaderCell)===null||zr===void 0?void 0:zr.call(cn,Gr))||{},Ar=ii.onClick,kr=ii.onKeyDown;ii.onClick=Mr=>{dt({column:cn,key:rr,sortOrder:dr,multiplePriority:Ka(cn)}),Ar==null||Ar(Mr)},ii.onKeyDown=Mr=>{Mr.keyCode===Jl.Z.ENTER&&(dt({column:cn,key:rr,sortOrder:dr,multiplePriority:Ka(cn)}),kr==null||kr(Mr))};const gr=so(cn.title,{}),hr=gr==null?void 0:gr.toString();return or&&(ii["aria-sort"]=or==="ascend"?"ascending":"descending"),ii["aria-label"]=hr||"",ii.className=_e()(ii.className,`${ve}-column-has-sorters`),ii.tabIndex=0,cn.ellipsis&&(ii.title=(gr!=null?gr:"").toString()),ii}})}return"children"in Pn&&(Pn=Object.assign(Object.assign({},Pn),{children:Fl(ve,Pn.children,Ue,dt,Mt,Ht,ln,Dn)})),Pn}),Hs=ve=>{const{column:me,sortOrder:Ue}=ve;return{column:me,order:Ue,field:me.dataIndex,columnKey:me.key}},bs=ve=>{const me=ve.filter(Ue=>{let{sortOrder:dt}=Ue;return dt}).map(Hs);if(me.length===0&&ve.length){const Ue=ve.length-1;return Object.assign(Object.assign({},Hs(ve[Ue])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return me.length<=1?me[0]||{}:me},pl=(ve,me,Ue)=>{const dt=me.slice().sort((ln,qt)=>qt.multiplePriority-ln.multiplePriority),Mt=ve.slice(),Ht=dt.filter(ln=>{let{column:{sorter:qt},sortOrder:fn}=ln;return sa(qt)&&fn});return Ht.length?Mt.sort((ln,qt)=>{for(let fn=0;fn<Ht.length;fn+=1){const cn=Ht[fn],{column:{sorter:Rn},sortOrder:Dn}=cn,Pn=sa(Rn);if(Pn&&Dn){const Cn=Pn(ln,qt,Dn);if(Cn!==0)return Dn===Cl?Cn:-Cn}}return 0}).map(ln=>{const qt=ln[Ue];return qt?Object.assign(Object.assign({},ln),{[Ue]:pl(qt,me,Ue)}):ln}):Mt};var js=ve=>{const{prefixCls:me,mergedColumns:Ue,sortDirections:dt,tableLocale:Mt,showSorterTooltip:Ht,onSorterChange:ln}=ve,[qt,fn]=b.useState(_a(Ue,!0)),cn=(rr,_n)=>{const or=[];return rr.forEach((dr,ar)=>{const vr=ui(ar,_n);if(or.push(ni(dr,vr)),Array.isArray(dr.children)){const Sr=cn(dr.children,vr);or.push.apply(or,(0,dn.Z)(Sr))}}),or},Rn=b.useMemo(()=>{let rr=!0;const _n=_a(Ue,!1);if(!_n.length){const vr=cn(Ue);return qt.filter(Sr=>{let{key:Nr}=Sr;return vr.includes(Nr)})}const or=[];function dr(vr){rr?or.push(vr):or.push(Object.assign(Object.assign({},vr),{sortOrder:null}))}let ar=null;return _n.forEach(vr=>{ar===null?(dr(vr),vr.sortOrder&&(vr.multiplePriority===!1?rr=!1:ar=!0)):(ar&&vr.multiplePriority!==!1||(rr=!1),dr(vr))}),or},[Ue,qt]),Dn=b.useMemo(()=>{var rr,_n;const or=Rn.map(dr=>{let{column:ar,sortOrder:vr}=dr;return{column:ar,order:vr}});return{sortColumns:or,sortColumn:(rr=or[0])===null||rr===void 0?void 0:rr.column,sortOrder:(_n=or[0])===null||_n===void 0?void 0:_n.order}},[Rn]),Pn=rr=>{let _n;rr.multiplePriority===!1||!Rn.length||Rn[0].multiplePriority===!1?_n=[rr]:_n=[].concat((0,dn.Z)(Rn.filter(or=>{let{key:dr}=or;return dr!==rr.key})),[rr]),fn(_n),ln(bs(_n),_n)};return[rr=>Fl(me,rr,Rn,Pn,dt,Mt,Ht),Rn,Dn,()=>bs(Rn)]};const $l=(ve,me)=>ve.map(dt=>{const Mt=Object.assign({},dt);return Mt.title=_i(dt.title,me),"children"in Mt&&(Mt.children=$l(Mt.children,me)),Mt});var xs=ve=>[b.useCallback(Ue=>$l(Ue,ve),[ve])],Ws=_r((ve,me)=>{const{_renderTimes:Ue}=ve,{_renderTimes:dt}=me;return Ue!==dt}),Sl=Kn((ve,me)=>{const{_renderTimes:Ue}=ve,{_renderTimes:dt}=me;return Ue!==dt}),ri=ee(36237),wl=ee(17835),ol=ee(63356),oc=ee(16931),ac=ee(51636),Cs=ve=>{const{componentCls:me,lineWidth:Ue,lineType:dt,tableBorderColor:Mt,tableHeaderBg:Ht,tablePaddingVertical:ln,tablePaddingHorizontal:qt,calc:fn}=ve,cn=`${(0,ri.unit)(Ue)} ${dt} ${Mt}`,Rn=(Dn,Pn,Cn)=>({[`&${me}-${Dn}`]:{[`> ${me}-container`]:{[`> ${me}-content, > ${me}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${me}-expanded-row-fixed`]:{margin:`${(0,ri.unit)(fn(Pn).mul(-1).equal())}
|
|
|
${(0,ri.unit)(fn(fn(Cn).add(Ue)).mul(-1).equal())}`}}}}}});return{[`${me}-wrapper`]:{[`${me}${me}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${me}-title`]:{border:cn,borderBottom:0},[`> ${me}-container`]:{borderInlineStart:cn,borderTop:cn,[`
|
|
|
> ${me}-content,
|
|
|
> ${me}-header,
|
|
|
> ${me}-body,
|
|
|
> ${me}-summary
|
|
|
`]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:cn},"> thead":{"> tr:not(:last-child) > th":{borderBottom:cn},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${me}-cell-fix-right-first::after`]:{borderInlineEnd:cn}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${me}-expanded-row-fixed`]:{margin:`${(0,ri.unit)(fn(ln).mul(-1).equal())} ${(0,ri.unit)(fn(fn(qt).add(Ue)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:Ue,bottom:0,borderInlineEnd:cn,content:'""'}}}}}},[`&${me}-scroll-horizontal`]:{[`> ${me}-container > ${me}-body`]:{"> table > tbody":{[`
|
|
|
> tr${me}-expanded-row,
|
|
|
> tr${me}-placeholder
|
|
|
`]:{"> th, > td":{borderInlineEnd:0}}}}}},Rn("middle",ve.tablePaddingVerticalMiddle,ve.tablePaddingHorizontalMiddle)),Rn("small",ve.tablePaddingVerticalSmall,ve.tablePaddingHorizontalSmall)),{[`> ${me}-footer`]:{border:cn,borderTop:0}}),[`${me}-cell`]:{[`${me}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${(0,ri.unit)(Ue)} 0 ${(0,ri.unit)(Ue)} ${Ht}`}},[`${me}-bordered ${me}-cell-scrollbar`]:{borderInlineEnd:cn}}}},El=ve=>{const{componentCls:me}=ve;return{[`${me}-wrapper`]:{[`${me}-cell-ellipsis`]:Object.assign(Object.assign({},ol.vS),{wordBreak:"keep-all",[`
|
|
|
&${me}-cell-fix-left-last,
|
|
|
&${me}-cell-fix-right-first
|
|
|
`]:{overflow:"visible",[`${me}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${me}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},lc=ve=>{const{componentCls:me}=ve;return{[`${me}-wrapper`]:{[`${me}-tbody > tr${me}-placeholder`]:{textAlign:"center",color:ve.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:ve.colorBgContainer}}}}},Vs=ve=>{const{componentCls:me,antCls:Ue,motionDurationSlow:dt,lineWidth:Mt,paddingXS:Ht,lineType:ln,tableBorderColor:qt,tableExpandIconBg:fn,tableExpandColumnWidth:cn,borderRadius:Rn,tablePaddingVertical:Dn,tablePaddingHorizontal:Pn,tableExpandedRowBg:Cn,paddingXXS:bn,expandIconMarginTop:rr,expandIconSize:_n,expandIconHalfInner:or,expandIconScale:dr,calc:ar}=ve,vr=`${(0,ri.unit)(Mt)} ${ln} ${qt}`,Sr=ar(bn).sub(Mt).equal();return{[`${me}-wrapper`]:{[`${me}-expand-icon-col`]:{width:cn},[`${me}-row-expand-icon-cell`]:{textAlign:"center",[`${me}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${me}-row-indent`]:{height:1,float:"left"},[`${me}-row-expand-icon`]:Object.assign(Object.assign({},(0,ol.Nd)(ve)),{position:"relative",float:"left",width:_n,height:_n,color:"inherit",lineHeight:(0,ri.unit)(_n),background:fn,border:vr,borderRadius:Rn,transform:`scale(${dr})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${dt} ease-out`,content:'""'},"&::before":{top:or,insetInlineEnd:Sr,insetInlineStart:Sr,height:Mt},"&::after":{top:Sr,bottom:Sr,insetInlineStart:or,width:Mt,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${me}-row-indent + ${me}-row-expand-icon`]:{marginTop:rr,marginInlineEnd:Ht},[`tr${me}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:Cn}},[`${Ue}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${me}-expanded-row-fixed`]:{position:"relative",margin:`${(0,ri.unit)(ar(Dn).mul(-1).equal())} ${(0,ri.unit)(ar(Pn).mul(-1).equal())}`,padding:`${(0,ri.unit)(Dn)} ${(0,ri.unit)(Pn)}`}}}},Us=ve=>{const{componentCls:me,antCls:Ue,iconCls:dt,tableFilterDropdownWidth:Mt,tableFilterDropdownSearchWidth:Ht,paddingXXS:ln,paddingXS:qt,colorText:fn,lineWidth:cn,lineType:Rn,tableBorderColor:Dn,headerIconColor:Pn,fontSizeSM:Cn,tablePaddingHorizontal:bn,borderRadius:rr,motionDurationSlow:_n,colorTextDescription:or,colorPrimary:dr,tableHeaderFilterActiveBg:ar,colorTextDisabled:vr,tableFilterDropdownBg:Sr,tableFilterDropdownHeight:Nr,controlItemBgHover:Dr,controlItemBgActive:mi,boxShadowSecondary:Gr,filterDropdownMenuBg:zr,calc:ii}=ve,Ar=`${Ue}-dropdown`,kr=`${me}-filter-dropdown`,gr=`${Ue}-tree`,hr=`${(0,ri.unit)(cn)} ${Rn} ${Dn}`;return[{[`${me}-wrapper`]:{[`${me}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${me}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:ii(ln).mul(-1).equal(),marginInline:`${(0,ri.unit)(ln)} ${(0,ri.unit)(ii(bn).div(2).mul(-1).equal())}`,padding:`0 ${(0,ri.unit)(ln)}`,color:Pn,fontSize:Cn,borderRadius:rr,cursor:"pointer",transition:`all ${_n}`,"&:hover":{color:or,background:ar},"&.active":{color:dr}}}},{[`${Ue}-dropdown`]:{[kr]:Object.assign(Object.assign({},(0,ol.Wf)(ve)),{minWidth:Mt,backgroundColor:Sr,borderRadius:rr,boxShadow:Gr,overflow:"hidden",[`${Ar}-menu`]:{maxHeight:Nr,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:zr,"&:empty::after":{display:"block",padding:`${(0,ri.unit)(qt)} 0`,color:vr,fontSize:Cn,textAlign:"center",content:'"Not Found"'}},[`${kr}-tree`]:{paddingBlock:`${(0,ri.unit)(qt)} 0`,paddingInline:qt,[gr]:{padding:0},[`${gr}-treenode ${gr}-node-content-wrapper:hover`]:{backgroundColor:Dr},[`${gr}-treenode-checkbox-checked ${gr}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:mi}}},[`${kr}-search`]:{padding:qt,borderBottom:hr,"&-input":{input:{minWidth:Ht},[dt]:{color:vr}}},[`${kr}-checkall`]:{width:"100%",marginBottom:ln,marginInlineStart:ln},[`${kr}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${(0,ri.unit)(ii(qt).sub(cn).equal())} ${(0,ri.unit)(qt)}`,overflow:"hidden",borderTop:hr}})}},{[`${Ue}-dropdown ${kr}, ${kr}-submenu`]:{[`${Ue}-checkbox-wrapper + span`]:{paddingInlineStart:qt,color:fn},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},Zl=ve=>{const{componentCls:me,lineWidth:Ue,colorSplit:dt,motionDurationSlow:Mt,zIndexTableFixed:Ht,tableBg:ln,zIndexTableSticky:qt,calc:fn}=ve,cn=dt;return{[`${me}-wrapper`]:{[`
|
|
|
${me}-cell-fix-left,
|
|
|
${me}-cell-fix-right
|
|
|
`]:{position:"sticky !important",zIndex:Ht,background:ln},[`
|
|
|
${me}-cell-fix-left-first::after,
|
|
|
${me}-cell-fix-left-last::after
|
|
|
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:fn(Ue).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${Mt}`,content:'""',pointerEvents:"none"},[`${me}-cell-fix-left-all::after`]:{display:"none"},[`
|
|
|
${me}-cell-fix-right-first::after,
|
|
|
${me}-cell-fix-right-last::after
|
|
|
`]:{position:"absolute",top:0,bottom:fn(Ue).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${Mt}`,content:'""',pointerEvents:"none"},[`${me}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:fn(qt).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${Mt}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${me}-ping-left`]:{[`&:not(${me}-has-fix-left) ${me}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${cn}`},[`
|
|
|
${me}-cell-fix-left-first::after,
|
|
|
${me}-cell-fix-left-last::after
|
|
|
`]:{boxShadow:`inset 10px 0 8px -8px ${cn}`},[`${me}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${me}-ping-right`]:{[`&:not(${me}-has-fix-right) ${me}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${cn}`},[`
|
|
|
${me}-cell-fix-right-first::after,
|
|
|
${me}-cell-fix-right-last::after
|
|
|
`]:{boxShadow:`inset -10px 0 8px -8px ${cn}`}},[`${me}-fixed-column-gapped`]:{[`
|
|
|
${me}-cell-fix-left-first::after,
|
|
|
${me}-cell-fix-left-last::after,
|
|
|
${me}-cell-fix-right-first::after,
|
|
|
${me}-cell-fix-right-last::after
|
|
|
`]:{boxShadow:"none"}}}}},zl=ve=>{const{componentCls:me,antCls:Ue,margin:dt}=ve;return{[`${me}-wrapper`]:{[`${me}-pagination${Ue}-pagination`]:{margin:`${(0,ri.unit)(dt)} 0`},[`${me}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:ve.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},Gs=ve=>{const{componentCls:me,tableRadius:Ue}=ve;return{[`${me}-wrapper`]:{[me]:{[`${me}-title, ${me}-header`]:{borderRadius:`${(0,ri.unit)(Ue)} ${(0,ri.unit)(Ue)} 0 0`},[`${me}-title + ${me}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${me}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:Ue,borderStartEndRadius:Ue,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:Ue},"> *:last-child":{borderStartEndRadius:Ue}}},"&-footer":{borderRadius:`0 0 ${(0,ri.unit)(Ue)} ${(0,ri.unit)(Ue)}`}}}}},Xs=ve=>{const{componentCls:me}=ve;return{[`${me}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${me}-pagination-left`]:{justifyContent:"flex-end"},[`${me}-pagination-right`]:{justifyContent:"flex-start"},[`${me}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${me}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${me}-row-indent`]:{float:"right"}}}}},ml=ve=>{const{componentCls:me,antCls:Ue,iconCls:dt,fontSizeIcon:Mt,padding:Ht,paddingXS:ln,headerIconColor:qt,headerIconHoverColor:fn,tableSelectionColumnWidth:cn,tableSelectedRowBg:Rn,tableSelectedRowHoverBg:Dn,tableRowHoverBg:Pn,tablePaddingHorizontal:Cn,calc:bn}=ve;return{[`${me}-wrapper`]:{[`${me}-selection-col`]:{width:cn,[`&${me}-selection-col-with-dropdown`]:{width:bn(cn).add(Mt).add(bn(Ht).div(4)).equal()}},[`${me}-bordered ${me}-selection-col`]:{width:bn(cn).add(bn(ln).mul(2)).equal(),[`&${me}-selection-col-with-dropdown`]:{width:bn(cn).add(Mt).add(bn(Ht).div(4)).add(bn(ln).mul(2)).equal()}},[`
|
|
|
table tr th${me}-selection-column,
|
|
|
table tr td${me}-selection-column,
|
|
|
${me}-selection-column
|
|
|
`]:{paddingInlineEnd:ve.paddingXS,paddingInlineStart:ve.paddingXS,textAlign:"center",[`${Ue}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${me}-selection-column${me}-cell-fix-left`]:{zIndex:bn(ve.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${me}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${me}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${me}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${ve.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:(0,ri.unit)(bn(Cn).div(4).equal()),[dt]:{color:qt,fontSize:Mt,verticalAlign:"baseline","&:hover":{color:fn}}},[`${me}-tbody`]:{[`${me}-row`]:{[`&${me}-row-selected`]:{[`> ${me}-cell`]:{background:Rn,"&-row-hover":{background:Dn}}},[`> ${me}-cell-row-hover`]:{background:Pn}}}}}},cc=ve=>{const{componentCls:me,tableExpandColumnWidth:Ue,calc:dt}=ve,Mt=(Ht,ln,qt,fn)=>({[`${me}${me}-${Ht}`]:{fontSize:fn,[`
|
|
|
${me}-title,
|
|
|
${me}-footer,
|
|
|
${me}-cell,
|
|
|
${me}-thead > tr > th,
|
|
|
${me}-tbody > tr > th,
|
|
|
${me}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{padding:`${(0,ri.unit)(ln)} ${(0,ri.unit)(qt)}`},[`${me}-filter-trigger`]:{marginInlineEnd:(0,ri.unit)(dt(qt).div(2).mul(-1).equal())},[`${me}-expanded-row-fixed`]:{margin:`${(0,ri.unit)(dt(ln).mul(-1).equal())} ${(0,ri.unit)(dt(qt).mul(-1).equal())}`},[`${me}-tbody`]:{[`${me}-wrapper:only-child ${me}`]:{marginBlock:(0,ri.unit)(dt(ln).mul(-1).equal()),marginInline:`${(0,ri.unit)(dt(Ue).sub(qt).equal())} ${(0,ri.unit)(dt(qt).mul(-1).equal())}`}},[`${me}-selection-extra`]:{paddingInlineStart:(0,ri.unit)(dt(qt).div(4).equal())}}});return{[`${me}-wrapper`]:Object.assign(Object.assign({},Mt("middle",ve.tablePaddingVerticalMiddle,ve.tablePaddingHorizontalMiddle,ve.tableFontSizeMiddle)),Mt("small",ve.tablePaddingVerticalSmall,ve.tablePaddingHorizontalSmall,ve.tableFontSizeSmall))}},uc=ve=>{const{componentCls:me,marginXXS:Ue,fontSizeIcon:dt,headerIconColor:Mt,headerIconHoverColor:Ht}=ve;return{[`${me}-wrapper`]:{[`${me}-thead th${me}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${ve.motionDurationSlow}, left 0s`,"&:hover":{background:ve.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:ve.colorPrimary},[`
|
|
|
&${me}-cell-fix-left:hover,
|
|
|
&${me}-cell-fix-right:hover
|
|
|
`]:{background:ve.tableFixedHeaderSortActiveBg}},[`${me}-thead th${me}-column-sort`]:{background:ve.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${me}-column-sort`]:{background:ve.tableBodySortBg},[`${me}-column-title`]:{position:"relative",zIndex:1,flex:1,minWidth:0},[`${me}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${me}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${me}-column-sorter`]:{marginInlineStart:Ue,color:Mt,fontSize:0,transition:`color ${ve.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:dt,"&.active":{color:ve.colorPrimary}},[`${me}-column-sorter-up + ${me}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${me}-column-sorters:hover ${me}-column-sorter`]:{color:Ht}}}},dc=ve=>{const{componentCls:me,opacityLoading:Ue,tableScrollThumbBg:dt,tableScrollThumbBgHover:Mt,tableScrollThumbSize:Ht,tableScrollBg:ln,zIndexTableSticky:qt,stickyScrollBarBorderRadius:fn,lineWidth:cn,lineType:Rn,tableBorderColor:Dn}=ve,Pn=`${(0,ri.unit)(cn)} ${Rn} ${Dn}`;return{[`${me}-wrapper`]:{[`${me}-sticky`]:{"&-holder":{position:"sticky",zIndex:qt,background:ve.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${(0,ri.unit)(Ht)} !important`,zIndex:qt,display:"flex",alignItems:"center",background:ln,borderTop:Pn,opacity:Ue,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:Ht,backgroundColor:dt,borderRadius:fn,transition:`all ${ve.motionDurationSlow}, transform 0s`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:Mt}}}}}}},ma=ve=>{const{componentCls:me,lineWidth:Ue,tableBorderColor:dt,calc:Mt}=ve,Ht=`${(0,ri.unit)(Ue)} ${ve.lineType} ${dt}`;return{[`${me}-wrapper`]:{[`${me}-summary`]:{position:"relative",zIndex:ve.zIndexTableFixed,background:ve.tableBg,"> tr":{"> th, > td":{borderBottom:Ht}}},[`div${me}-summary`]:{boxShadow:`0 ${(0,ri.unit)(Mt(Ue).mul(-1).equal())} 0 ${dt}`}}}},ca=ve=>{const{componentCls:me,motionDurationMid:Ue,lineWidth:dt,lineType:Mt,tableBorderColor:Ht,calc:ln}=ve,qt=`${(0,ri.unit)(dt)} ${Mt} ${Ht}`,fn=`${me}-expanded-row-cell`;return{[`${me}-wrapper`]:{[`${me}-tbody-virtual`]:{[`${me}-tbody-virtual-holder-inner`]:{[`
|
|
|
& > ${me}-row,
|
|
|
& > div:not(${me}-row) > ${me}-row
|
|
|
`]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${me}-cell`]:{borderBottom:qt,transition:`background ${Ue}`},[`${me}-expanded-row`]:{[`${fn}${fn}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${(0,ri.unit)(dt)})`,borderInlineEnd:"none"}}},[`${me}-bordered`]:{[`${me}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:qt,position:"absolute"},[`${me}-cell`]:{borderInlineEnd:qt,[`&${me}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:ln(dt).mul(-1).equal(),borderInlineStart:qt}}},[`&${me}-virtual`]:{[`${me}-placeholder ${me}-cell`]:{borderInlineEnd:qt,borderBottom:qt}}}}}};const Vo=ve=>{const{componentCls:me,fontWeightStrong:Ue,tablePaddingVertical:dt,tablePaddingHorizontal:Mt,tableExpandColumnWidth:Ht,lineWidth:ln,lineType:qt,tableBorderColor:fn,tableFontSize:cn,tableBg:Rn,tableRadius:Dn,tableHeaderTextColor:Pn,motionDurationMid:Cn,tableHeaderBg:bn,tableHeaderCellSplitColor:rr,tableFooterTextColor:_n,tableFooterBg:or,calc:dr}=ve,ar=`${(0,ri.unit)(ln)} ${qt} ${fn}`;return{[`${me}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,ol.dF)()),{[me]:Object.assign(Object.assign({},(0,ol.Wf)(ve)),{fontSize:cn,background:Rn,borderRadius:`${(0,ri.unit)(Dn)} ${(0,ri.unit)(Dn)} 0 0`,scrollbarColor:`${ve.tableScrollThumbBg} ${ve.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${(0,ri.unit)(Dn)} ${(0,ri.unit)(Dn)} 0 0`,borderCollapse:"separate",borderSpacing:0},[`
|
|
|
${me}-cell,
|
|
|
${me}-thead > tr > th,
|
|
|
${me}-tbody > tr > th,
|
|
|
${me}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{position:"relative",padding:`${(0,ri.unit)(dt)} ${(0,ri.unit)(Mt)}`,overflowWrap:"break-word"},[`${me}-title`]:{padding:`${(0,ri.unit)(dt)} ${(0,ri.unit)(Mt)}`},[`${me}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:Pn,fontWeight:Ue,textAlign:"start",background:bn,borderBottom:ar,transition:`background ${Cn} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${me}-selection-column):not(${me}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:rr,transform:"translateY(-50%)",transition:`background-color ${Cn}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${me}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${Cn}, border-color ${Cn}`,borderBottom:ar,[`
|
|
|
> ${me}-wrapper:only-child,
|
|
|
> ${me}-expanded-row-fixed > ${me}-wrapper:only-child
|
|
|
`]:{[me]:{marginBlock:(0,ri.unit)(dr(dt).mul(-1).equal()),marginInline:`${(0,ri.unit)(dr(Ht).sub(Mt).equal())}
|
|
|
${(0,ri.unit)(dr(Mt).mul(-1).equal())}`,[`${me}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:Pn,fontWeight:Ue,textAlign:"start",background:bn,borderBottom:ar,transition:`background ${Cn} ease`}}},[`${me}-footer`]:{padding:`${(0,ri.unit)(dt)} ${(0,ri.unit)(Mt)}`,color:_n,background:or}})}},jl=ve=>{const{colorFillAlter:me,colorBgContainer:Ue,colorTextHeading:dt,colorFillSecondary:Mt,colorFillContent:Ht,controlItemBgActive:ln,controlItemBgActiveHover:qt,padding:fn,paddingSM:cn,paddingXS:Rn,colorBorderSecondary:Dn,borderRadiusLG:Pn,controlHeight:Cn,colorTextPlaceholder:bn,fontSize:rr,fontSizeSM:_n,lineHeight:or,lineWidth:dr,colorIcon:ar,colorIconHover:vr,opacityLoading:Sr,controlInteractiveSize:Nr}=ve,Dr=new wl.FastColor(Mt).onBackground(Ue).toHexString(),mi=new wl.FastColor(Ht).onBackground(Ue).toHexString(),Gr=new wl.FastColor(me).onBackground(Ue).toHexString(),zr=new wl.FastColor(ar),ii=new wl.FastColor(vr),Ar=Nr/2-dr,kr=Ar*2+dr*3;return{headerBg:Gr,headerColor:dt,headerSortActiveBg:Dr,headerSortHoverBg:mi,bodySortBg:Gr,rowHoverBg:Gr,rowSelectedBg:ln,rowSelectedHoverBg:qt,rowExpandedBg:me,cellPaddingBlock:fn,cellPaddingInline:fn,cellPaddingBlockMD:cn,cellPaddingInlineMD:Rn,cellPaddingBlockSM:Rn,cellPaddingInlineSM:Rn,borderColor:Dn,headerBorderRadius:Pn,footerBg:Gr,footerColor:dt,cellFontSize:rr,cellFontSizeMD:rr,cellFontSizeSM:rr,headerSplitColor:Dn,fixedHeaderSortActiveBg:Dr,headerFilterHoverBg:Ht,filterDropdownMenuBg:Ue,filterDropdownBg:Ue,expandIconBg:Ue,selectionColumnWidth:Cn,stickyScrollBarBg:bn,stickyScrollBarBorderRadius:100,expandIconMarginTop:(rr*or-dr*3)/2-Math.ceil((_n*1.4-dr*3)/2),headerIconColor:zr.clone().setA(zr.a*Sr).toRgbString(),headerIconHoverColor:ii.clone().setA(ii.a*Sr).toRgbString(),expandIconHalfInner:Ar,expandIconSize:kr,expandIconScale:Nr/kr}},Ys=2;var rs=(0,oc.I$)("Table",ve=>{const{colorTextHeading:me,colorSplit:Ue,colorBgContainer:dt,controlInteractiveSize:Mt,headerBg:Ht,headerColor:ln,headerSortActiveBg:qt,headerSortHoverBg:fn,bodySortBg:cn,rowHoverBg:Rn,rowSelectedBg:Dn,rowSelectedHoverBg:Pn,rowExpandedBg:Cn,cellPaddingBlock:bn,cellPaddingInline:rr,cellPaddingBlockMD:_n,cellPaddingInlineMD:or,cellPaddingBlockSM:dr,cellPaddingInlineSM:ar,borderColor:vr,footerBg:Sr,footerColor:Nr,headerBorderRadius:Dr,cellFontSize:mi,cellFontSizeMD:Gr,cellFontSizeSM:zr,headerSplitColor:ii,fixedHeaderSortActiveBg:Ar,headerFilterHoverBg:kr,filterDropdownBg:gr,expandIconBg:hr,selectionColumnWidth:Mr,stickyScrollBarBg:Br,calc:Xr}=ve,xr=(0,ac.mergeToken)(ve,{tableFontSize:mi,tableBg:dt,tableRadius:Dr,tablePaddingVertical:bn,tablePaddingHorizontal:rr,tablePaddingVerticalMiddle:_n,tablePaddingHorizontalMiddle:or,tablePaddingVerticalSmall:dr,tablePaddingHorizontalSmall:ar,tableBorderColor:vr,tableHeaderTextColor:ln,tableHeaderBg:Ht,tableFooterTextColor:Nr,tableFooterBg:Sr,tableHeaderCellSplitColor:ii,tableHeaderSortBg:qt,tableHeaderSortHoverBg:fn,tableBodySortBg:cn,tableFixedHeaderSortActiveBg:Ar,tableHeaderFilterActiveBg:kr,tableFilterDropdownBg:gr,tableRowHoverBg:Rn,tableSelectedRowBg:Dn,tableSelectedRowHoverBg:Pn,zIndexTableFixed:Ys,zIndexTableSticky:Xr(Ys).add(1).equal({unit:!1}),tableFontSizeMiddle:Gr,tableFontSizeSmall:zr,tableSelectionColumnWidth:Mr,tableExpandIconBg:hr,tableExpandColumnWidth:Xr(Mt).add(Xr(ve.padding).mul(2)).equal(),tableExpandedRowBg:Cn,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:Br,tableScrollThumbBgHover:me,tableScrollBg:Ue});return[Vo(xr),zl(xr),ma(xr),uc(xr),Us(xr),Cs(xr),Gs(xr),Vs(xr),ma(xr),lc(xr),ml(xr),Zl(xr),dc(xr),El(xr),cc(xr),Xs(xr),ca(xr)]},jl,{unitless:{expandIconScale:!0}});const fc=[],hc=(ve,me)=>{var Ue,dt;const{prefixCls:Mt,className:Ht,rootClassName:ln,style:qt,size:fn,bordered:cn,dropdownPrefixCls:Rn,dataSource:Dn,pagination:Pn,rowSelection:Cn,rowKey:bn="key",rowClassName:rr,columns:_n,children:or,childrenColumnName:dr,onChange:ar,getPopupContainer:vr,loading:Sr,expandIcon:Nr,expandable:Dr,expandedRowRender:mi,expandIconColumnIndex:Gr,indentSize:zr,scroll:ii,sortDirections:Ar,locale:kr,showSorterTooltip:gr={target:"full-header"},virtual:hr}=ve,Mr=(0,Ii.ln)("Table"),Br=b.useMemo(()=>_n||sn(or),[_n,or]),Xr=b.useMemo(()=>Br.some(yi=>yi.responsive),[Br]),xr=(0,Zo.Z)(Xr),wi=b.useMemo(()=>{const yi=new Set(Object.keys(xr).filter(Li=>xr[Li]));return Br.filter(Li=>!Li.responsive||Li.responsive.some(vo=>yi.has(vo)))},[Br,xr]),Oi=(0,Ji.Z)(ve,["className","style","columns"]),{locale:yo=ha.Z,direction:fo,table:ro,renderEmpty:ho,getPrefixCls:So,getPopupContainer:Di}=b.useContext(Yi.E_),Ti=(0,Mi.Z)(fn),wo=Object.assign(Object.assign({},yo.Table),kr),ko=Dn||fc,jr=So("table",Mt),di=So("dropdown",Rn),[,$r]=(0,ul.ZP)(),Tr=(0,Zi.Z)(jr),[Bi,Vi,co]=rs(jr,Tr),to=Object.assign(Object.assign({childrenColumnName:dr,expandIconColumnIndex:Gr},Dr),{expandIcon:(Ue=Dr==null?void 0:Dr.expandIcon)!==null&&Ue!==void 0?Ue:(dt=ro==null?void 0:ro.expandable)===null||dt===void 0?void 0:dt.expandIcon}),{childrenColumnName:Eo="children"}=to,Ro=b.useMemo(()=>ko.some(yi=>yi==null?void 0:yi[Eo])?"nest":mi||Dr!=null&&Dr.expandedRowRender?"row":null,[ko]),Kr={body:b.useRef(null)},ei=Ci(jr),Gi=b.useRef(null),eo=b.useRef(null);ai(me,()=>Object.assign(Object.assign({},eo.current),{nativeElement:Gi.current}));const Qi=b.useMemo(()=>typeof bn=="function"?bn:yi=>yi==null?void 0:yi[bn],[bn]),[zo]=Ra(ko,Eo,Qi),Io={},va=function(yi,Li){let vo=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Po,Uo,Ho,$a;const ea=Object.assign(Object.assign({},Io),yi);vo&&((Po=Io.resetPagination)===null||Po===void 0||Po.call(Io),!((Uo=ea.pagination)===null||Uo===void 0)&&Uo.current&&(ea.pagination.current=1),Pn&&((Ho=Pn.onChange)===null||Ho===void 0||Ho.call(Pn,1,($a=ea.pagination)===null||$a===void 0?void 0:$a.pageSize))),ii&&ii.scrollToFirstRowOnChange!==!1&&Kr.body.current&&(0,Wi.Z)(0,{getContainer:()=>Kr.body.current}),ar==null||ar(ea.pagination,ea.filters,ea.sorter,{currentDataSource:Si(pl(ko,ea.sorterStates,Eo),ea.filterStates,Eo),action:Li})},po=(yi,Li)=>{va({sorter:yi,sorterStates:Li},"sort",!1)},[zi,no,io,Fo]=js({prefixCls:jr,mergedColumns:wi,onSorterChange:po,sortDirections:Ar||["ascend","descend"],tableLocale:wo,showSorterTooltip:gr}),bo=b.useMemo(()=>pl(ko,no,Eo),[ko,no]);Io.sorter=Fo(),Io.sorterStates=no;const Hi=(yi,Li)=>{va({filters:yi,filterStates:Li},"filter",!0)},[mo,Xi,Jo]=Ao({prefixCls:jr,locale:wo,dropdownPrefixCls:di,mergedColumns:wi,onFilterChange:Hi,getPopupContainer:vr||Di,rootClassName:_e()(ln,Tr)}),Lo=Si(bo,Xi,Eo);Io.filters=Jo,Io.filterStates=Xi;const ua=b.useMemo(()=>{const yi={};return Object.keys(Jo).forEach(Li=>{Jo[Li]!==null&&(yi[Li]=Jo[Li])}),Object.assign(Object.assign({},io),{filters:yi})},[io,Jo]),[ga]=xs(ua),Ua=(yi,Li)=>{va({pagination:Object.assign(Object.assign({},Io.pagination),{current:yi,pageSize:Li})},"paginate")},[oo,Wl]=Fa(Lo.length,Ua,Pn);Io.pagination=Pn===!1?{}:xa(oo,Pn),Io.resetPagination=Wl;const da=b.useMemo(()=>{if(Pn===!1||!oo.pageSize)return Lo;const{current:yi=1,total:Li,pageSize:vo=Wa}=oo;return Lo.length<Li?Lo.length>vo?Lo.slice((yi-1)*vo,yi*vo):Lo:Lo.slice((yi-1)*vo,yi*vo)},[!!Pn,Lo,oo==null?void 0:oo.current,oo==null?void 0:oo.pageSize,oo==null?void 0:oo.total]),[ka,wa]=Hr({prefixCls:jr,data:Lo,pageData:da,getRowKey:Qi,getRecordByKey:zo,expandType:Ro,childrenColumnName:Eo,locale:wo,getPopupContainer:vr||Di},Cn),ya=(yi,Li,vo)=>{let Po;return typeof rr=="function"?Po=_e()(rr(yi,Li,vo)):Po=_e()(rr),_e()({[`${jr}-row-selected`]:wa.has(Qi(yi,Li))},Po)};to.__PARENT_RENDER_ICON__=to.expandIcon,to.expandIcon=to.expandIcon||Nr||si(wo),Ro==="nest"&&to.expandIconColumnIndex===void 0?to.expandIconColumnIndex=Cn?1:0:to.expandIconColumnIndex>0&&Cn&&(to.expandIconColumnIndex-=1),typeof to.indentSize!="number"&&(to.indentSize=typeof zr=="number"?zr:15);const ao=b.useCallback(yi=>ga(ka(mo(zi(yi)))),[zi,mo,ka]);let Ea,al;if(Pn!==!1&&(oo!=null&&oo.total)){let yi;oo.size?yi=oo.size:yi=Ti==="small"||Ti==="middle"?"small":void 0;const Li=Uo=>b.createElement(Wo.Z,Object.assign({},oo,{className:_e()(`${jr}-pagination ${jr}-pagination-${Uo}`,oo.className),size:yi})),vo=fo==="rtl"?"left":"right",{position:Po}=oo;if(Po!==null&&Array.isArray(Po)){const Uo=Po.find(ea=>ea.includes("top")),Ho=Po.find(ea=>ea.includes("bottom")),$a=Po.every(ea=>`${ea}`=="none");!Uo&&!Ho&&!$a&&(al=Li(vo)),Uo&&(Ea=Li(Uo.toLowerCase().replace("top",""))),Ho&&(al=Li(Ho.toLowerCase().replace("bottom","")))}else al=Li(vo)}let Ga;typeof Sr=="boolean"?Ga={spinning:Sr}:typeof Sr=="object"&&(Ga=Object.assign({spinning:!0},Sr));const Xa=_e()(co,Tr,`${jr}-wrapper`,ro==null?void 0:ro.className,{[`${jr}-wrapper-rtl`]:fo==="rtl"},Ht,ln,Vi),is=Object.assign(Object.assign({},ro==null?void 0:ro.style),qt),os=typeof(kr==null?void 0:kr.emptyText)!="undefined"?kr.emptyText:(ho==null?void 0:ho("Table"))||b.createElement(gi.Z,{componentName:"Table"}),as=hr?Sl:Ws,ls={},Is=b.useMemo(()=>{const{fontSize:yi,lineHeight:Li,lineWidth:vo,padding:Po,paddingXS:Uo,paddingSM:Ho}=$r,$a=Math.floor(yi*Li);switch(Ti){case"middle":return Ho*2+$a+vo;case"small":return Uo*2+$a+vo;default:return Po*2+$a+vo}},[$r,Ti]);return hr&&(ls.listItemHeight=Is),Bi(b.createElement("div",{ref:Gi,className:Xa,style:is},b.createElement(Mo.Z,Object.assign({spinning:!1},Ga),Ea,b.createElement(as,Object.assign({},ls,Oi,{ref:eo,columns:wi,direction:fo,expandable:to,prefixCls:jr,className:_e()({[`${jr}-middle`]:Ti==="middle",[`${jr}-small`]:Ti==="small",[`${jr}-bordered`]:cn,[`${jr}-empty`]:ko.length===0},co,Tr,Vi),data:da,rowKey:Qi,rowClassName:ya,emptyText:os,internalHooks:fe,internalRefs:Kr,transformColumns:ao,getContainerWidth:ei})),al)))};var pc=b.forwardRef(hc);const ws=(ve,me)=>{const Ue=b.useRef(0);return Ue.current+=1,b.createElement(pc,Object.assign({},ve,{ref:me,_renderTimes:Ue.current}))},Va=b.forwardRef(ws);Va.SELECTION_COLUMN=ki,Va.EXPAND_COLUMN=ze,Va.SELECTION_ALL=lo,Va.SELECTION_INVERT=xo,Va.SELECTION_NONE=Do,Va.Column=br,Va.ColumnGroup=Ln,Va.Summary=Ne;var Es=Va,mc=Es},96599:function(In,Qt,ee){"use strict";ee.d(Qt,{default:function(){return _e}});var b=ee(59301),ze=ee(92310),fe=ee.n(ze),nt=ee(2738),Se=ee(29509),xe=ee(78776),Ee=ee(22703),je=ee(12919),Ie=ee(48755),ue=ee(36237),et=ee(17835),Te=ee(63356),At=ee(51636),lt=ee(16931);const it=de=>{const{paddingXXS:Et,lineWidth:He,tagPaddingHorizontal:st,componentCls:Yt,calc:Oe}=de,pe=Oe(st).sub(He).equal(),Lt=Oe(Et).sub(He).equal();return{[Yt]:Object.assign(Object.assign({},(0,Te.Wf)(de)),{display:"inline-block",height:"auto",marginInlineEnd:de.marginXS,paddingInline:pe,fontSize:de.tagFontSize,lineHeight:de.tagLineHeight,whiteSpace:"nowrap",background:de.defaultBg,border:`${(0,ue.unit)(de.lineWidth)} ${de.lineType} ${de.colorBorder}`,borderRadius:de.borderRadiusSM,opacity:1,transition:`all ${de.motionDurationMid}`,textAlign:"start",position:"relative",[`&${Yt}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:de.defaultColor},[`${Yt}-close-icon`]:{marginInlineStart:Lt,fontSize:de.tagIconSize,color:de.colorTextDescription,cursor:"pointer",transition:`all ${de.motionDurationMid}`,"&:hover":{color:de.colorTextHeading}},[`&${Yt}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${de.iconCls}-close, ${de.iconCls}-close:hover`]:{color:de.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${Yt}-checkable-checked):hover`]:{color:de.colorPrimary,backgroundColor:de.colorFillSecondary},"&:active, &-checked":{color:de.colorTextLightSolid},"&-checked":{backgroundColor:de.colorPrimary,"&:hover":{backgroundColor:de.colorPrimaryHover}},"&:active":{backgroundColor:de.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${de.iconCls} + span, > span + ${de.iconCls}`]:{marginInlineStart:pe}}),[`${Yt}-borderless`]:{borderColor:"transparent",background:de.tagBorderlessBg}}},We=de=>{const{lineWidth:Et,fontSizeIcon:He,calc:st}=de,Yt=de.fontSizeSM;return(0,At.mergeToken)(de,{tagFontSize:Yt,tagLineHeight:(0,ue.unit)(st(de.lineHeightSM).mul(Yt).equal()),tagIconSize:st(He).sub(st(Et).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:de.defaultBg})},ke=de=>({defaultBg:new et.FastColor(de.colorFillQuaternary).onBackground(de.colorBgContainer).toHexString(),defaultColor:de.colorText});var ot=(0,lt.I$)("Tag",de=>{const Et=We(de);return it(Et)},ke),yt=function(de,Et){var He={};for(var st in de)Object.prototype.hasOwnProperty.call(de,st)&&Et.indexOf(st)<0&&(He[st]=de[st]);if(de!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Yt=0,st=Object.getOwnPropertySymbols(de);Yt<st.length;Yt++)Et.indexOf(st[Yt])<0&&Object.prototype.propertyIsEnumerable.call(de,st[Yt])&&(He[st[Yt]]=de[st[Yt]]);return He},Fe=b.forwardRef((de,Et)=>{const{prefixCls:He,style:st,className:Yt,checked:Oe,onChange:pe,onClick:Lt}=de,en=yt(de,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:Ot,tag:ge}=b.useContext(Ie.E_),Ke=tn=>{pe==null||pe(!Oe),Lt==null||Lt(tn)},tt=Ot("tag",He),[Wt,qe,Rt]=ot(tt),Qe=fe()(tt,`${tt}-checkable`,{[`${tt}-checkable-checked`]:Oe},ge==null?void 0:ge.className,Yt,qe,Rt);return Wt(b.createElement("span",Object.assign({},en,{ref:Et,style:Object.assign(Object.assign({},st),ge==null?void 0:ge.style),className:Qe,onClick:Ke})))}),Me=ee(93427);const Xe=de=>(0,Me.Z)(de,(Et,He)=>{let{textColor:st,lightBorderColor:Yt,lightColor:Oe,darkColor:pe}=He;return{[`${de.componentCls}${de.componentCls}-${Et}`]:{color:st,background:Oe,borderColor:Yt,"&-inverse":{color:de.colorTextLightSolid,background:pe,borderColor:pe},[`&${de.componentCls}-borderless`]:{borderColor:"transparent"}}}});var Je=(0,lt.bk)(["Tag","preset"],de=>{const Et=We(de);return Xe(Et)},ke);function $t(de){return typeof de!="string"?de:de.charAt(0).toUpperCase()+de.slice(1)}const ct=(de,Et,He)=>{const st=$t(He);return{[`${de.componentCls}${de.componentCls}-${Et}`]:{color:de[`color${He}`],background:de[`color${st}Bg`],borderColor:de[`color${st}Border`],[`&${de.componentCls}-borderless`]:{borderColor:"transparent"}}}};var Ye=(0,lt.bk)(["Tag","status"],de=>{const Et=We(de);return[ct(Et,"success","Success"),ct(Et,"processing","Info"),ct(Et,"error","Error"),ct(Et,"warning","Warning")]},ke),rt=function(de,Et){var He={};for(var st in de)Object.prototype.hasOwnProperty.call(de,st)&&Et.indexOf(st)<0&&(He[st]=de[st]);if(de!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Yt=0,st=Object.getOwnPropertySymbols(de);Yt<st.length;Yt++)Et.indexOf(st[Yt])<0&&Object.prototype.propertyIsEnumerable.call(de,st[Yt])&&(He[st[Yt]]=de[st[Yt]]);return He};const at=b.forwardRef((de,Et)=>{const{prefixCls:He,className:st,rootClassName:Yt,style:Oe,children:pe,icon:Lt,color:en,onClose:Ot,bordered:ge=!0,visible:Ke}=de,tt=rt(de,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:Wt,direction:qe,tag:Rt}=b.useContext(Ie.E_),[Qe,tn]=b.useState(!0),gt=(0,nt.Z)(tt,["closeIcon","closable"]);b.useEffect(()=>{Ke!==void 0&&tn(Ke)},[Ke]);const ae=(0,Se.o2)(en),ne=(0,Se.yT)(en),te=ae||ne,oe=Object.assign(Object.assign({backgroundColor:en&&!te?en:void 0},Rt==null?void 0:Rt.style),Oe),ce=Wt("tag",He),[re,le,be]=ot(ce),ht=fe()(ce,Rt==null?void 0:Rt.className,{[`${ce}-${en}`]:te,[`${ce}-has-color`]:en&&!te,[`${ce}-hidden`]:!Qe,[`${ce}-rtl`]:qe==="rtl",[`${ce}-borderless`]:!ge},st,Yt,le,be),Le=De=>{De.stopPropagation(),Ot==null||Ot(De),!De.defaultPrevented&&tn(!1)},[,Ne]=(0,xe.Z)((0,xe.w)(de),(0,xe.w)(Rt),{closable:!1,closeIconRender:De=>{const Zt=b.createElement("span",{className:`${ce}-close-icon`,onClick:Le},De);return(0,Ee.wm)(De,Zt,Tt=>({onClick:nn=>{var Ut;(Ut=Tt==null?void 0:Tt.onClick)===null||Ut===void 0||Ut.call(Tt,nn),Le(nn)},className:fe()(Tt==null?void 0:Tt.className,`${ce}-close-icon`)}))}}),Ve=typeof tt.onClick=="function"||pe&&pe.type==="a",Ge=Lt||null,pt=Ge?b.createElement(b.Fragment,null,Ge,pe&&b.createElement("span",null,pe)):pe,we=b.createElement("span",Object.assign({},gt,{ref:Et,className:ht,style:oe}),pt,Ne,ae&&b.createElement(Je,{key:"preset",prefixCls:ce}),ne&&b.createElement(Ye,{key:"status",prefixCls:ce}));return re(Ve?b.createElement(je.Z,{component:"Tag"},we):we)});at.CheckableTag=Fe;var _e=at},18287:function(In,Qt,ee){"use strict";ee.d(Qt,{default:function(){return Ot}});var b=ee(87632),ze=ee(77654),fe=ee(59301),nt=ee(52671),Se=ee(8657),xe=ee(60499),Ee={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"},je=Ee,Ie=ee(7657),ue=function(Ke,tt){return fe.createElement(Ie.Z,(0,xe.Z)({},Ke,{ref:tt,icon:je}))},et=fe.forwardRef(ue),Te=et,At=ee(92310),lt=ee.n(At),it=ee(82661),We=ee(34061),ke=ee(48755),ot=ee(56082),yt=ee(86641),Nt=ee(57700),Fe=ee(12425);const Me=4;function Xe(ge){const{dropPosition:Ke,dropLevelOffset:tt,prefixCls:Wt,indent:qe,direction:Rt="ltr"}=ge,Qe=Rt==="ltr"?"left":"right",tn=Rt==="ltr"?"right":"left",gt={[Qe]:-tt*qe+Me,[tn]:0};switch(Ke){case-1:gt.top=-3;break;case 1:gt.bottom=-3;break;default:gt.bottom=-3,gt[Qe]=qe+Me;break}return fe.createElement("div",{style:gt,className:`${Wt}-drop-indicator`})}var Je=Xe,$t=ee(85278),Ye=fe.forwardRef((ge,Ke)=>{var tt;const{getPrefixCls:Wt,direction:qe,virtual:Rt,tree:Qe}=fe.useContext(ke.E_),{prefixCls:tn,className:gt,showIcon:ae=!1,showLine:ne,switcherIcon:te,switcherLoadingIcon:oe,blockNode:ce=!1,children:re,checkable:le=!1,selectable:be=!0,draggable:ht,motion:Le,style:Ne}=ge,Ve=Wt("tree",tn),Ge=Wt(),pt=Le!=null?Le:Object.assign(Object.assign({},(0,yt.Z)(Ge)),{motionAppear:!1}),we=Object.assign(Object.assign({},ge),{checkable:le,selectable:be,showIcon:ae,motion:pt,blockNode:ce,showLine:!!ne,dropIndicatorRender:Je}),[De,Zt,Tt]=(0,Fe.ZP)(Ve),[,nn]=(0,Nt.ZP)(),Ut=nn.paddingXS/2+(((tt=nn.Tree)===null||tt===void 0?void 0:tt.titleHeight)||nn.controlHeightSM),St=fe.useMemo(()=>{if(!ht)return!1;let _t={};switch(typeof ht){case"function":_t.nodeDraggable=ht;break;case"object":_t=Object.assign({},ht);break;default:break}return _t.icon!==!1&&(_t.icon=_t.icon||fe.createElement(ot.Z,null)),_t},[ht]),an=_t=>fe.createElement($t.Z,{prefixCls:Ve,switcherIcon:te,switcherLoadingIcon:oe,treeNodeProps:_t,showLine:ne});return De(fe.createElement(b.ZP,Object.assign({itemHeight:Ut,ref:Ke,virtual:Rt},we,{style:Object.assign(Object.assign({},Qe==null?void 0:Qe.style),Ne),prefixCls:Ve,className:lt()({[`${Ve}-icon-hide`]:!ae,[`${Ve}-block-node`]:ce,[`${Ve}-unselectable`]:!be,[`${Ve}-rtl`]:qe==="rtl"},Qe==null?void 0:Qe.className,gt,Zt,Tt),direction:qe,checkable:le&&fe.createElement("span",{className:`${Ve}-checkbox-inner`}),selectable:be,switcherIcon:an,draggable:St}),re))});const rt=0,Ce=1,at=2;function _e(ge,Ke,tt){const{key:Wt,children:qe}=tt;function Rt(Qe){const tn=Qe[Wt],gt=Qe[qe];Ke(tn,Qe)!==!1&&_e(gt||[],Ke,tt)}ge.forEach(Rt)}function de(ge){let{treeData:Ke,expandedKeys:tt,startKey:Wt,endKey:qe,fieldNames:Rt}=ge;const Qe=[];let tn=rt;if(Wt&&Wt===qe)return[Wt];if(!Wt||!qe)return[];function gt(ae){return ae===Wt||ae===qe}return _e(Ke,ae=>{if(tn===at)return!1;if(gt(ae)){if(Qe.push(ae),tn===rt)tn=Ce;else if(tn===Ce)return tn=at,!1}else tn===Ce&&Qe.push(ae);return tt.includes(ae)},(0,We.w$)(Rt)),Qe}function Et(ge,Ke,tt){const Wt=(0,ze.Z)(Ke),qe=[];return _e(ge,(Rt,Qe)=>{const tn=Wt.indexOf(Rt);return tn!==-1&&(qe.push(Qe),Wt.splice(tn,1)),!!Wt.length},(0,We.w$)(tt)),qe}var He=function(ge,Ke){var tt={};for(var Wt in ge)Object.prototype.hasOwnProperty.call(ge,Wt)&&Ke.indexOf(Wt)<0&&(tt[Wt]=ge[Wt]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qe=0,Wt=Object.getOwnPropertySymbols(ge);qe<Wt.length;qe++)Ke.indexOf(Wt[qe])<0&&Object.prototype.propertyIsEnumerable.call(ge,Wt[qe])&&(tt[Wt[qe]]=ge[Wt[qe]]);return tt};function st(ge){const{isLeaf:Ke,expanded:tt}=ge;return Ke?fe.createElement(nt.Z,null):tt?fe.createElement(Se.Z,null):fe.createElement(Te,null)}function Yt(ge){let{treeData:Ke,children:tt}=ge;return Ke||(0,We.zn)(tt)}const Oe=(ge,Ke)=>{var{defaultExpandAll:tt,defaultExpandParent:Wt,defaultExpandedKeys:qe}=ge,Rt=He(ge,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const Qe=fe.useRef(null),tn=fe.useRef(null),gt=()=>{const{keyEntities:De}=(0,We.I8)(Yt(Rt));let Zt;return tt?Zt=Object.keys(De):Wt?Zt=(0,it.r7)(Rt.expandedKeys||qe||[],De):Zt=Rt.expandedKeys||qe||[],Zt},[ae,ne]=fe.useState(Rt.selectedKeys||Rt.defaultSelectedKeys||[]),[te,oe]=fe.useState(()=>gt());fe.useEffect(()=>{"selectedKeys"in Rt&&ne(Rt.selectedKeys)},[Rt.selectedKeys]),fe.useEffect(()=>{"expandedKeys"in Rt&&oe(Rt.expandedKeys)},[Rt.expandedKeys]);const ce=(De,Zt)=>{var Tt;return"expandedKeys"in Rt||oe(De),(Tt=Rt.onExpand)===null||Tt===void 0?void 0:Tt.call(Rt,De,Zt)},re=(De,Zt)=>{var Tt;const{multiple:nn,fieldNames:Ut}=Rt,{node:St,nativeEvent:an}=Zt,{key:_t=""}=St,$e=Yt(Rt),mt=Object.assign(Object.assign({},Zt),{selected:!0}),jt=(an==null?void 0:an.ctrlKey)||(an==null?void 0:an.metaKey),Jt=an==null?void 0:an.shiftKey;let Be;nn&&jt?(Be=De,Qe.current=_t,tn.current=Be,mt.selectedNodes=Et($e,Be,Ut)):nn&&Jt?(Be=Array.from(new Set([].concat((0,ze.Z)(tn.current||[]),(0,ze.Z)(de({treeData:$e,expandedKeys:te,startKey:_t,endKey:Qe.current,fieldNames:Ut}))))),mt.selectedNodes=Et($e,Be,Ut)):(Be=[_t],Qe.current=_t,tn.current=Be,mt.selectedNodes=Et($e,Be,Ut)),(Tt=Rt.onSelect)===null||Tt===void 0||Tt.call(Rt,Be,mt),"selectedKeys"in Rt||ne(Be)},{getPrefixCls:le,direction:be}=fe.useContext(ke.E_),{prefixCls:ht,className:Le,showIcon:Ne=!0,expandAction:Ve="click"}=Rt,Ge=He(Rt,["prefixCls","className","showIcon","expandAction"]),pt=le("tree",ht),we=lt()(`${pt}-directory`,{[`${pt}-directory-rtl`]:be==="rtl"},Le);return fe.createElement(Ye,Object.assign({icon:st,ref:Ke,blockNode:!0},Ge,{showIcon:Ne,expandAction:Ve,prefixCls:pt,className:we,expandedKeys:te,selectedKeys:ae,onSelect:re,onExpand:ce}))};var Lt=fe.forwardRef(Oe);const en=Ye;en.DirectoryTree=Lt,en.TreeNode=b.OF;var Ot=en},12425:function(In,Qt,ee){"use strict";ee.d(Qt,{ZP:function(){return it},Yk:function(){return Te},TM:function(){return At}});var b=ee(36237),ze=ee(36170),fe=ee(63356),nt=ee(34961),Se=ee(51636),xe=ee(16931);const Ee=We=>{let{treeCls:ke,treeNodeCls:ot,directoryNodeSelectedBg:yt,directoryNodeSelectedColor:Nt,motionDurationMid:Fe,borderRadius:Me,controlItemBgHover:Xe}=We;return{[`${ke}${ke}-directory ${ot}`]:{[`${ke}-node-content-wrapper`]:{position:"static",[`> *:not(${ke}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${Fe}`,content:'""',borderRadius:Me},"&:hover:before":{background:Xe}},[`${ke}-switcher, ${ke}-checkbox, ${ke}-draggable-icon`]:{zIndex:1},"&-selected":{[`${ke}-switcher, ${ke}-draggable-icon`]:{color:Nt},[`${ke}-node-content-wrapper`]:{color:Nt,background:"transparent","&:before, &:hover:before":{background:yt}}}}}},je=new b.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),Ie=(We,ke)=>({[`.${We}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${ke.motionDurationSlow}`}}}),ue=(We,ke)=>({[`.${We}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:ke.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${(0,b.unit)(ke.lineWidthBold)} solid ${ke.colorPrimary}`,borderRadius:"50%",content:'""'}}}),et=(We,ke)=>{const{treeCls:ot,treeNodeCls:yt,treeNodePadding:Nt,titleHeight:Fe,indentSize:Me,nodeSelectedBg:Xe,nodeHoverBg:Je,colorTextQuaternary:$t,controlItemBgActiveDisabled:ct}=ke;return{[ot]:Object.assign(Object.assign({},(0,fe.Wf)(ke)),{background:ke.colorBgContainer,borderRadius:ke.borderRadius,transition:`background-color ${ke.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${ot}-rtl ${ot}-switcher_close ${ot}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${ot}-active-focused)`]:Object.assign({},(0,fe.oN)(ke)),[`${ot}-list-holder-inner`]:{alignItems:"flex-start"},[`&${ot}-block-node`]:{[`${ot}-list-holder-inner`]:{alignItems:"stretch",[`${ot}-node-content-wrapper`]:{flex:"auto"},[`${yt}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${ke.colorPrimary}`,opacity:0,animationName:je,animationDuration:ke.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:ke.borderRadius}}},[yt]:{display:"flex",alignItems:"flex-start",marginBottom:Nt,lineHeight:(0,b.unit)(Fe),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:Nt},[`&-disabled ${ot}-node-content-wrapper`]:{color:ke.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${ot}-checkbox-disabled + ${ot}-node-selected,&${yt}-disabled${yt}-selected ${ot}-node-content-wrapper`]:{backgroundColor:ct},[`${ot}-checkbox-disabled`]:{pointerEvents:"unset"},[`&:not(${yt}-disabled)`]:{[`${ot}-node-content-wrapper`]:{"&:hover":{color:ke.nodeHoverColor}}},[`&-active ${ot}-node-content-wrapper`]:{background:ke.controlItemBgHover},[`&:not(${yt}-disabled).filter-node ${ot}-title`]:{color:ke.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",[`${ot}-draggable-icon`]:{flexShrink:0,width:Fe,textAlign:"center",visibility:"visible",color:$t},[`&${yt}-disabled ${ot}-draggable-icon`]:{visibility:"hidden"}}},[`${ot}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:Me}},[`${ot}-draggable-icon`]:{visibility:"hidden"},[`${ot}-switcher, ${ot}-checkbox`]:{marginInlineEnd:ke.calc(ke.calc(Fe).sub(ke.controlInteractiveSize)).div(2).equal()},[`${ot}-switcher`]:Object.assign(Object.assign({},Ie(We,ke)),{position:"relative",flex:"none",alignSelf:"stretch",width:Fe,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${ke.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:Fe,height:Fe,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:ke.borderRadius,transition:`all ${ke.motionDurationSlow}`},[`&:not(${ot}-switcher-noop):hover:before`]:{backgroundColor:ke.colorBgTextHover},[`&_close ${ot}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:ke.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:ke.calc(Fe).div(2).equal(),bottom:ke.calc(Nt).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${ke.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:ke.calc(ke.calc(Fe).div(2).equal()).mul(.8).equal(),height:ke.calc(Fe).div(2).equal(),borderBottom:`1px solid ${ke.colorBorder}`,content:'""'}}}),[`${ot}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:Fe,paddingBlock:0,paddingInline:ke.paddingXS,background:"transparent",borderRadius:ke.borderRadius,cursor:"pointer",transition:`all ${ke.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},ue(We,ke)),{"&:hover":{backgroundColor:Je},[`&${ot}-node-selected`]:{color:ke.nodeSelectedColor,backgroundColor:Xe},[`${ot}-iconEle`]:{display:"inline-block",width:Fe,height:Fe,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${ot}-unselectable ${ot}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${yt}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${ke.colorPrimary}`},"&-show-line":{[`${ot}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:ke.calc(Fe).div(2).equal(),bottom:ke.calc(Nt).mul(-1).equal(),borderInlineEnd:`1px solid ${ke.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${ot}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${yt}-leaf-last ${ot}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${(0,b.unit)(ke.calc(Fe).div(2).equal())} !important`}})}},Te=function(We,ke){let ot=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const yt=`.${We}`,Nt=`${yt}-treenode`,Fe=ke.calc(ke.paddingXS).div(2).equal(),Me=(0,Se.mergeToken)(ke,{treeCls:yt,treeNodeCls:Nt,treeNodePadding:Fe});return[et(We,Me),ot&&Ee(Me)].filter(Boolean)},At=We=>{const{controlHeightSM:ke,controlItemBgHover:ot,controlItemBgActive:yt}=We,Nt=ke;return{titleHeight:Nt,indentSize:Nt,nodeHoverBg:ot,nodeHoverColor:We.colorText,nodeSelectedBg:yt,nodeSelectedColor:We.colorText}},lt=We=>{const{colorTextLightSolid:ke,colorPrimary:ot}=We;return Object.assign(Object.assign({},At(We)),{directoryNodeSelectedColor:ke,directoryNodeSelectedBg:ot})};var it=(0,xe.I$)("Tree",(We,ke)=>{let{prefixCls:ot}=ke;return[{[We.componentCls]:(0,ze.C2)(`${ot}-checkbox`,We)},Te(ot,We),(0,nt.Z)(We)]},lt)},85278:function(In,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return ke}});var b=ee(59301),ze=ee(60499),fe={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"},nt=fe,Se=ee(7657),xe=function(yt,Nt){return b.createElement(Se.Z,(0,ze.Z)({},yt,{ref:Nt,icon:nt}))},Ee=b.forwardRef(xe),je=Ee,Ie=ee(52671),ue=ee(58617),et=ee(15075),Te=ee(43531),At=ee(92310),lt=ee.n(At),it=ee(22703),ke=ot=>{const{prefixCls:yt,switcherIcon:Nt,treeNodeProps:Fe,showLine:Me,switcherLoadingIcon:Xe}=ot,{isLeaf:Je,expanded:$t,loading:ct}=Fe;if(ct)return b.isValidElement(Xe)?Xe:b.createElement(ue.Z,{className:`${yt}-switcher-loading-icon`});let Ye;if(Me&&typeof Me=="object"&&(Ye=Me.showLeafIcon),Je){if(!Me)return null;if(typeof Ye!="boolean"&&Ye){const at=typeof Ye=="function"?Ye(Fe):Ye,_e=`${yt}-switcher-line-custom-icon`;return b.isValidElement(at)?(0,it.Tm)(at,{className:lt()(at.props.className||"",_e)}):at}return Ye?b.createElement(Ie.Z,{className:`${yt}-switcher-line-icon`}):b.createElement("span",{className:`${yt}-switcher-leaf-line`})}const rt=`${yt}-switcher-icon`,Ce=typeof Nt=="function"?Nt(Fe):Nt;return b.isValidElement(Ce)?(0,it.Tm)(Ce,{className:lt()(Ce.props.className||"",rt)}):Ce!==void 0?Ce:Me?$t?b.createElement(et.Z,{className:`${yt}-switcher-line-icon`}):b.createElement(Te.Z,{className:`${yt}-switcher-line-icon`}):b.createElement(je,{className:rt})}},94968:function(In,Qt,ee){"use strict";ee.d(Qt,{default:function(){return bt}});var b=ee(59301),ze=ee(77654),fe=ee(4676),nt=ee(92310),Se=ee.n(nt),xe=ee(60499),Ee=ee(38705),je=ee(17212),Ie=ee(15793),ue=ee(39153),et=ee(55401),Te=ee(18642),At=ee(85899),lt=ee(42244),it=ee(43749),We=ee(73001),ke=ee(11576),ot=ee(26112),yt=ee(48736),Nt=function(Pe,It){if(Pe&&It){var Bt=Array.isArray(It)?It:It.split(","),Kt=Pe.name||"",Ct=Pe.type||"",xt=Ct.replace(/\/.*$/,"");return Bt.some(function(wt){var Ft=wt.trim();if(/^\*(\/\*)?$/.test(wt))return!0;if(Ft.charAt(0)==="."){var Tn=Kt.toLowerCase(),On=Ft.toLowerCase(),An=[On];return(On===".jpg"||On===".jpeg")&&(An=[".jpg",".jpeg"]),An.some(function(er){return Tn.endsWith(er)})}return/\/\*$/.test(Ft)?xt===Ft.replace(/\/.*$/,""):Ct===Ft?!0:/^\w+$/.test(Ft)?((0,yt.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Ft,"'.Skip for check.")),!0):!1})}return!0};function Fe(Pe,It){var Bt="cannot ".concat(Pe.method," ").concat(Pe.action," ").concat(It.status,"'"),Kt=new Error(Bt);return Kt.status=It.status,Kt.method=Pe.method,Kt.url=Pe.action,Kt}function Me(Pe){var It=Pe.responseText||Pe.response;if(!It)return It;try{return JSON.parse(It)}catch(Bt){return It}}function Xe(Pe){var It=new XMLHttpRequest;Pe.onProgress&&It.upload&&(It.upload.onprogress=function(xt){xt.total>0&&(xt.percent=xt.loaded/xt.total*100),Pe.onProgress(xt)});var Bt=new FormData;Pe.data&&Object.keys(Pe.data).forEach(function(Ct){var xt=Pe.data[Ct];if(Array.isArray(xt)){xt.forEach(function(wt){Bt.append("".concat(Ct,"[]"),wt)});return}Bt.append(Ct,xt)}),Pe.file instanceof Blob?Bt.append(Pe.filename,Pe.file,Pe.file.name):Bt.append(Pe.filename,Pe.file),It.onerror=function(xt){Pe.onError(xt)},It.onload=function(){return It.status<200||It.status>=300?Pe.onError(Fe(Pe,It),Me(It)):Pe.onSuccess(Me(It),It)},It.open(Pe.method,Pe.action,!0),Pe.withCredentials&&"withCredentials"in It&&(It.withCredentials=!0);var Kt=Pe.headers||{};return Kt["X-Requested-With"]!==null&&It.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Kt).forEach(function(Ct){Kt[Ct]!==null&&It.setRequestHeader(Ct,Kt[Ct])}),It.send(Bt),{abort:function(){It.abort()}}}var Je=function(){var Pe=(0,ke.Z)((0,We.Z)().mark(function It(Bt,Kt){var Ct,xt,wt,Ft,Tn,On,An,er;return(0,We.Z)().wrap(function(fr){for(;;)switch(fr.prev=fr.next){case 0:On=function(){return On=(0,ke.Z)((0,We.Z)().mark(function Xn(Jn){return(0,We.Z)().wrap(function(Er){for(;;)switch(Er.prev=Er.next){case 0:return Er.abrupt("return",new Promise(function(Cr){Jn.file(function(wr){Kt(wr)?(Jn.fullPath&&!wr.webkitRelativePath&&(Object.defineProperties(wr,{webkitRelativePath:{writable:!0}}),wr.webkitRelativePath=Jn.fullPath.replace(/^\//,""),Object.defineProperties(wr,{webkitRelativePath:{writable:!1}})),Cr(wr)):Cr(null)})}));case 1:case"end":return Er.stop()}},Xn)})),On.apply(this,arguments)},Tn=function(Xn){return On.apply(this,arguments)},Ft=function(){return Ft=(0,ke.Z)((0,We.Z)().mark(function Xn(Jn){var ur,Er,Cr,wr,Yn;return(0,We.Z)().wrap(function(mr){for(;;)switch(mr.prev=mr.next){case 0:ur=Jn.createReader(),Er=[];case 2:return mr.next=5,new Promise(function(_r){ur.readEntries(_r,function(){return _r([])})});case 5:if(Cr=mr.sent,wr=Cr.length,wr){mr.next=9;break}return mr.abrupt("break",12);case 9:for(Yn=0;Yn<wr;Yn++)Er.push(Cr[Yn]);mr.next=2;break;case 12:return mr.abrupt("return",Er);case 13:case"end":return mr.stop()}},Xn)})),Ft.apply(this,arguments)},wt=function(Xn){return Ft.apply(this,arguments)},Ct=[],xt=[],Bt.forEach(function(Qn){return xt.push(Qn.webkitGetAsEntry())}),An=function(){var Qn=(0,ke.Z)((0,We.Z)().mark(function Xn(Jn,ur){var Er,Cr;return(0,We.Z)().wrap(function(Yn){for(;;)switch(Yn.prev=Yn.next){case 0:if(Jn){Yn.next=2;break}return Yn.abrupt("return");case 2:if(Jn.path=ur||"",!Jn.isFile){Yn.next=10;break}return Yn.next=6,Tn(Jn);case 6:Er=Yn.sent,Er&&Ct.push(Er),Yn.next=15;break;case 10:if(!Jn.isDirectory){Yn.next=15;break}return Yn.next=13,wt(Jn);case 13:Cr=Yn.sent,xt.push.apply(xt,(0,ze.Z)(Cr));case 15:case"end":return Yn.stop()}},Xn)}));return function(Jn,ur){return Qn.apply(this,arguments)}}(),er=0;case 9:if(!(er<xt.length)){fr.next=15;break}return fr.next=12,An(xt[er]);case 12:er++,fr.next=9;break;case 15:return fr.abrupt("return",Ct);case 16:case"end":return fr.stop()}},It)}));return function(Bt,Kt){return Pe.apply(this,arguments)}}(),$t=Je,ct=+new Date,Ye=0;function rt(){return"rc-upload-".concat(ct,"-").concat(++Ye)}var Ce=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],at=function(Pe){(0,ue.Z)(Bt,Pe);var It=(0,et.Z)(Bt);function Bt(){var Kt;(0,Ee.Z)(this,Bt);for(var Ct=arguments.length,xt=new Array(Ct),wt=0;wt<Ct;wt++)xt[wt]=arguments[wt];return Kt=It.call.apply(It,[this].concat(xt)),(0,Te.Z)((0,Ie.Z)(Kt),"state",{uid:rt()}),(0,Te.Z)((0,Ie.Z)(Kt),"reqs",{}),(0,Te.Z)((0,Ie.Z)(Kt),"fileInput",void 0),(0,Te.Z)((0,Ie.Z)(Kt),"_isMounted",void 0),(0,Te.Z)((0,Ie.Z)(Kt),"onChange",function(Ft){var Tn=Kt.props,On=Tn.accept,An=Tn.directory,er=Ft.target.files,sr=(0,ze.Z)(er).filter(function(fr){return!An||Nt(fr,On)});Kt.uploadFiles(sr),Kt.reset()}),(0,Te.Z)((0,Ie.Z)(Kt),"onClick",function(Ft){var Tn=Kt.fileInput;if(Tn){var On=Ft.target,An=Kt.props.onClick;if(On&&On.tagName==="BUTTON"){var er=Tn.parentNode;er.focus(),On.blur()}Tn.click(),An&&An(Ft)}}),(0,Te.Z)((0,Ie.Z)(Kt),"onKeyDown",function(Ft){Ft.key==="Enter"&&Kt.onClick(Ft)}),(0,Te.Z)((0,Ie.Z)(Kt),"onFileDrop",function(){var Ft=(0,ke.Z)((0,We.Z)().mark(function Tn(On){var An,er,sr;return(0,We.Z)().wrap(function(Qn){for(;;)switch(Qn.prev=Qn.next){case 0:if(An=Kt.props.multiple,On.preventDefault(),On.type!=="dragover"){Qn.next=4;break}return Qn.abrupt("return");case 4:if(!Kt.props.directory){Qn.next=11;break}return Qn.next=7,$t(Array.prototype.slice.call(On.dataTransfer.items),function(Xn){return Nt(Xn,Kt.props.accept)});case 7:er=Qn.sent,Kt.uploadFiles(er),Qn.next=14;break;case 11:sr=(0,ze.Z)(On.dataTransfer.files).filter(function(Xn){return Nt(Xn,Kt.props.accept)}),An===!1&&(sr=sr.slice(0,1)),Kt.uploadFiles(sr);case 14:case"end":return Qn.stop()}},Tn)}));return function(Tn){return Ft.apply(this,arguments)}}()),(0,Te.Z)((0,Ie.Z)(Kt),"uploadFiles",function(Ft){var Tn=(0,ze.Z)(Ft),On=Tn.map(function(An){return An.uid=rt(),Kt.processFile(An,Tn)});Promise.all(On).then(function(An){var er=Kt.props.onBatchStart;er==null||er(An.map(function(sr){var fr=sr.origin,Qn=sr.parsedFile;return{file:fr,parsedFile:Qn}})),An.filter(function(sr){return sr.parsedFile!==null}).forEach(function(sr){Kt.post(sr)})})}),(0,Te.Z)((0,Ie.Z)(Kt),"processFile",function(){var Ft=(0,ke.Z)((0,We.Z)().mark(function Tn(On,An){var er,sr,fr,Qn,Xn,Jn,ur,Er,Cr;return(0,We.Z)().wrap(function(Yn){for(;;)switch(Yn.prev=Yn.next){case 0:if(er=Kt.props.beforeUpload,sr=On,!er){Yn.next=14;break}return Yn.prev=3,Yn.next=6,er(On,An);case 6:sr=Yn.sent,Yn.next=12;break;case 9:Yn.prev=9,Yn.t0=Yn.catch(3),sr=!1;case 12:if(sr!==!1){Yn.next=14;break}return Yn.abrupt("return",{origin:On,parsedFile:null,action:null,data:null});case 14:if(fr=Kt.props.action,typeof fr!="function"){Yn.next=21;break}return Yn.next=18,fr(On);case 18:Qn=Yn.sent,Yn.next=22;break;case 21:Qn=fr;case 22:if(Xn=Kt.props.data,typeof Xn!="function"){Yn.next=29;break}return Yn.next=26,Xn(On);case 26:Jn=Yn.sent,Yn.next=30;break;case 29:Jn=Xn;case 30:return ur=((0,it.Z)(sr)==="object"||typeof sr=="string")&&sr?sr:On,ur instanceof File?Er=ur:Er=new File([ur],On.name,{type:On.type}),Cr=Er,Cr.uid=On.uid,Yn.abrupt("return",{origin:On,data:Jn,parsedFile:Cr,action:Qn});case 35:case"end":return Yn.stop()}},Tn,null,[[3,9]])}));return function(Tn,On){return Ft.apply(this,arguments)}}()),(0,Te.Z)((0,Ie.Z)(Kt),"saveFileInput",function(Ft){Kt.fileInput=Ft}),Kt}return(0,je.Z)(Bt,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(Ct){var xt=this,wt=Ct.data,Ft=Ct.origin,Tn=Ct.action,On=Ct.parsedFile;if(this._isMounted){var An=this.props,er=An.onStart,sr=An.customRequest,fr=An.name,Qn=An.headers,Xn=An.withCredentials,Jn=An.method,ur=Ft.uid,Er=sr||Xe,Cr={action:Tn,filename:fr,data:wt,file:On,headers:Qn,withCredentials:Xn,method:Jn||"post",onProgress:function(Yn){var yr=xt.props.onProgress;yr==null||yr(Yn,On)},onSuccess:function(Yn,yr){var mr=xt.props.onSuccess;mr==null||mr(Yn,On,yr),delete xt.reqs[ur]},onError:function(Yn,yr){var mr=xt.props.onError;mr==null||mr(Yn,yr,On),delete xt.reqs[ur]}};er(Ft),this.reqs[ur]=Er(Cr)}}},{key:"reset",value:function(){this.setState({uid:rt()})}},{key:"abort",value:function(Ct){var xt=this.reqs;if(Ct){var wt=Ct.uid?Ct.uid:Ct;xt[wt]&&xt[wt].abort&&xt[wt].abort(),delete xt[wt]}else Object.keys(xt).forEach(function(Ft){xt[Ft]&&xt[Ft].abort&&xt[Ft].abort(),delete xt[Ft]})}},{key:"render",value:function(){var Ct=this.props,xt=Ct.component,wt=Ct.prefixCls,Ft=Ct.className,Tn=Ct.classNames,On=Tn===void 0?{}:Tn,An=Ct.disabled,er=Ct.id,sr=Ct.name,fr=Ct.style,Qn=Ct.styles,Xn=Qn===void 0?{}:Qn,Jn=Ct.multiple,ur=Ct.accept,Er=Ct.capture,Cr=Ct.children,wr=Ct.directory,Yn=Ct.openFileDialogOnClick,yr=Ct.onMouseEnter,mr=Ct.onMouseLeave,_r=Ct.hasControlInside,Yr=(0,lt.Z)(Ct,Ce),Vr=Se()((0,Te.Z)((0,Te.Z)((0,Te.Z)({},wt,!0),"".concat(wt,"-disabled"),An),Ft,Ft)),Ur=wr?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},oi=An?{}:{onClick:Yn?this.onClick:function(){},onKeyDown:Yn?this.onKeyDown:function(){},onMouseEnter:yr,onMouseLeave:mr,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:_r?void 0:"0"};return b.createElement(xt,(0,xe.Z)({},oi,{className:Vr,role:_r?void 0:"button",style:fr}),b.createElement("input",(0,xe.Z)({},(0,ot.Z)(Yr,{aria:!0,data:!0}),{id:er,name:sr,disabled:An,type:"file",ref:this.saveFileInput,onClick:function(Jr){return Jr.stopPropagation()},key:this.state.uid,style:(0,At.Z)({display:"none"},Xn.input),className:On.input,accept:ur},Ur,{multiple:Jn,onChange:this.onChange},Er!=null?{capture:Er}:{})),Cr)}}]),Bt}(b.Component),_e=at;function de(){}var Et=function(Pe){(0,ue.Z)(Bt,Pe);var It=(0,et.Z)(Bt);function Bt(){var Kt;(0,Ee.Z)(this,Bt);for(var Ct=arguments.length,xt=new Array(Ct),wt=0;wt<Ct;wt++)xt[wt]=arguments[wt];return Kt=It.call.apply(It,[this].concat(xt)),(0,Te.Z)((0,Ie.Z)(Kt),"uploader",void 0),(0,Te.Z)((0,Ie.Z)(Kt),"saveUploader",function(Ft){Kt.uploader=Ft}),Kt}return(0,je.Z)(Bt,[{key:"abort",value:function(Ct){this.uploader.abort(Ct)}},{key:"render",value:function(){return b.createElement(_e,(0,xe.Z)({},this.props,{ref:this.saveUploader}))}}]),Bt}(b.Component);(0,Te.Z)(Et,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:de,onError:de,onSuccess:de,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});var He=Et,st=He,Yt=ee(18929),Oe=ee(48755),pe=ee(2171),Lt=ee(9017),en=ee(85981),Ot=ee(63356),ge=ee(34961),Ke=ee(16931),tt=ee(51636),Wt=ee(36237),Rt=Pe=>{const{componentCls:It,iconCls:Bt}=Pe;return{[`${It}-wrapper`]:{[`${It}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:Pe.colorFillAlter,border:`${(0,Wt.unit)(Pe.lineWidth)} dashed ${Pe.colorBorder}`,borderRadius:Pe.borderRadiusLG,cursor:"pointer",transition:`border-color ${Pe.motionDurationSlow}`,[It]:{padding:Pe.padding},[`${It}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:Pe.borderRadiusLG,"&:focus-visible":{outline:`${(0,Wt.unit)(Pe.lineWidthFocus)} solid ${Pe.colorPrimaryBorder}`}},[`${It}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`
|
|
|
&:not(${It}-disabled):hover,
|
|
|
&-hover:not(${It}-disabled)
|
|
|
`]:{borderColor:Pe.colorPrimaryHover},[`p${It}-drag-icon`]:{marginBottom:Pe.margin,[Bt]:{color:Pe.colorPrimary,fontSize:Pe.uploadThumbnailSize}},[`p${It}-text`]:{margin:`0 0 ${(0,Wt.unit)(Pe.marginXXS)}`,color:Pe.colorTextHeading,fontSize:Pe.fontSizeLG},[`p${It}-hint`]:{color:Pe.colorTextDescription,fontSize:Pe.fontSize},[`&${It}-disabled`]:{[`p${It}-drag-icon ${Bt},
|
|
|
p${It}-text,
|
|
|
p${It}-hint
|
|
|
`]:{color:Pe.colorTextDisabled}}}}}},tn=Pe=>{const{componentCls:It,iconCls:Bt,fontSize:Kt,lineHeight:Ct,calc:xt}=Pe,wt=`${It}-list-item`,Ft=`${wt}-actions`,Tn=`${wt}-action`;return{[`${It}-wrapper`]:{[`${It}-list`]:Object.assign(Object.assign({},(0,Ot.dF)()),{lineHeight:Pe.lineHeight,[wt]:{position:"relative",height:xt(Pe.lineHeight).mul(Kt).equal(),marginTop:Pe.marginXS,fontSize:Kt,display:"flex",alignItems:"center",transition:`background-color ${Pe.motionDurationSlow}`,borderRadius:Pe.borderRadiusSM,"&:hover":{backgroundColor:Pe.controlItemBgHover},[`${wt}-name`]:Object.assign(Object.assign({},Ot.vS),{padding:`0 ${(0,Wt.unit)(Pe.paddingXS)}`,lineHeight:Ct,flex:"auto",transition:`all ${Pe.motionDurationSlow}`}),[Ft]:{whiteSpace:"nowrap",[Tn]:{opacity:0},[Bt]:{color:Pe.actionsColor,transition:`all ${Pe.motionDurationSlow}`},[`
|
|
|
${Tn}:focus-visible,
|
|
|
&.picture ${Tn}
|
|
|
`]:{opacity:1}},[`${It}-icon ${Bt}`]:{color:Pe.colorTextDescription,fontSize:Kt},[`${wt}-progress`]:{position:"absolute",bottom:Pe.calc(Pe.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:xt(Kt).add(Pe.paddingXS).equal(),fontSize:Kt,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${wt}:hover ${Tn}`]:{opacity:1},[`${wt}-error`]:{color:Pe.colorError,[`${wt}-name, ${It}-icon ${Bt}`]:{color:Pe.colorError},[Ft]:{[`${Bt}, ${Bt}:hover`]:{color:Pe.colorError},[Tn]:{opacity:1}}},[`${It}-list-item-container`]:{transition:`opacity ${Pe.motionDurationSlow}, height ${Pe.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},gt=ee(99495),ne=Pe=>{const{componentCls:It}=Pe,Bt=new Wt.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:Pe.calc(Pe.marginXS).div(-2).equal()}}),Kt=new Wt.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:Pe.calc(Pe.marginXS).div(-2).equal()}}),Ct=`${It}-animate-inline`;return[{[`${It}-wrapper`]:{[`${Ct}-appear, ${Ct}-enter, ${Ct}-leave`]:{animationDuration:Pe.motionDurationSlow,animationTimingFunction:Pe.motionEaseInOutCirc,animationFillMode:"forwards"},[`${Ct}-appear, ${Ct}-enter`]:{animationName:Bt},[`${Ct}-leave`]:{animationName:Kt}}},{[`${It}-wrapper`]:(0,gt.J$)(Pe)},Bt,Kt]},te=ee(68361);const oe=Pe=>{const{componentCls:It,iconCls:Bt,uploadThumbnailSize:Kt,uploadProgressOffset:Ct,calc:xt}=Pe,wt=`${It}-list`,Ft=`${wt}-item`;return{[`${It}-wrapper`]:{[`
|
|
|
${wt}${wt}-picture,
|
|
|
${wt}${wt}-picture-card,
|
|
|
${wt}${wt}-picture-circle
|
|
|
`]:{[Ft]:{position:"relative",height:xt(Kt).add(xt(Pe.lineWidth).mul(2)).add(xt(Pe.paddingXS).mul(2)).equal(),padding:Pe.paddingXS,border:`${(0,Wt.unit)(Pe.lineWidth)} ${Pe.lineType} ${Pe.colorBorder}`,borderRadius:Pe.borderRadiusLG,"&:hover":{background:"transparent"},[`${Ft}-thumbnail`]:Object.assign(Object.assign({},Ot.vS),{width:Kt,height:Kt,lineHeight:(0,Wt.unit)(xt(Kt).add(Pe.paddingSM).equal()),textAlign:"center",flex:"none",[Bt]:{fontSize:Pe.fontSizeHeading2,color:Pe.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${Ft}-progress`]:{bottom:Ct,width:`calc(100% - ${(0,Wt.unit)(xt(Pe.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:xt(Kt).add(Pe.paddingXS).equal()}},[`${Ft}-error`]:{borderColor:Pe.colorError,[`${Ft}-thumbnail ${Bt}`]:{[`svg path[fill='${te.blue[0]}']`]:{fill:Pe.colorErrorBg},[`svg path[fill='${te.blue.primary}']`]:{fill:Pe.colorError}}},[`${Ft}-uploading`]:{borderStyle:"dashed",[`${Ft}-name`]:{marginBottom:Ct}}},[`${wt}${wt}-picture-circle ${Ft}`]:{[`&, &::before, ${Ft}-thumbnail`]:{borderRadius:"50%"}}}}},ce=Pe=>{const{componentCls:It,iconCls:Bt,fontSizeLG:Kt,colorTextLightSolid:Ct,calc:xt}=Pe,wt=`${It}-list`,Ft=`${wt}-item`,Tn=Pe.uploadPicCardSize;return{[`
|
|
|
${It}-wrapper${It}-picture-card-wrapper,
|
|
|
${It}-wrapper${It}-picture-circle-wrapper
|
|
|
`]:Object.assign(Object.assign({},(0,Ot.dF)()),{display:"block",[`${It}${It}-select`]:{width:Tn,height:Tn,textAlign:"center",verticalAlign:"top",backgroundColor:Pe.colorFillAlter,border:`${(0,Wt.unit)(Pe.lineWidth)} dashed ${Pe.colorBorder}`,borderRadius:Pe.borderRadiusLG,cursor:"pointer",transition:`border-color ${Pe.motionDurationSlow}`,[`> ${It}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${It}-disabled):hover`]:{borderColor:Pe.colorPrimary}},[`${wt}${wt}-picture-card, ${wt}${wt}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:Pe.marginXS,marginInlineEnd:Pe.marginXS}},"@supports (gap: 1px)":{gap:Pe.marginXS},[`${wt}-item-container`]:{display:"inline-block",width:Tn,height:Tn,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[Ft]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${(0,Wt.unit)(xt(Pe.paddingXS).mul(2).equal())})`,height:`calc(100% - ${(0,Wt.unit)(xt(Pe.paddingXS).mul(2).equal())})`,backgroundColor:Pe.colorBgMask,opacity:0,transition:`all ${Pe.motionDurationSlow}`,content:'" "'}},[`${Ft}:hover`]:{[`&::before, ${Ft}-actions`]:{opacity:1}},[`${Ft}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${Pe.motionDurationSlow}`,[`
|
|
|
${Bt}-eye,
|
|
|
${Bt}-download,
|
|
|
${Bt}-delete
|
|
|
`]:{zIndex:10,width:Kt,margin:`0 ${(0,Wt.unit)(Pe.marginXXS)}`,fontSize:Kt,cursor:"pointer",transition:`all ${Pe.motionDurationSlow}`,color:Ct,"&:hover":{color:Ct},svg:{verticalAlign:"baseline"}}},[`${Ft}-thumbnail, ${Ft}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${Ft}-name`]:{display:"none",textAlign:"center"},[`${Ft}-file + ${Ft}-name`]:{position:"absolute",bottom:Pe.margin,display:"block",width:`calc(100% - ${(0,Wt.unit)(xt(Pe.paddingXS).mul(2).equal())})`},[`${Ft}-uploading`]:{[`&${Ft}`]:{backgroundColor:Pe.colorFillAlter},[`&::before, ${Bt}-eye, ${Bt}-download, ${Bt}-delete`]:{display:"none"}},[`${Ft}-progress`]:{bottom:Pe.marginXL,width:`calc(100% - ${(0,Wt.unit)(xt(Pe.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${It}-wrapper${It}-picture-circle-wrapper`]:{[`${It}${It}-select`]:{borderRadius:"50%"}}}};var le=Pe=>{const{componentCls:It}=Pe;return{[`${It}-rtl`]:{direction:"rtl"}}};const be=Pe=>{const{componentCls:It,colorTextDisabled:Bt}=Pe;return{[`${It}-wrapper`]:Object.assign(Object.assign({},(0,Ot.Wf)(Pe)),{[It]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${It}-select`]:{display:"inline-block"},[`${It}-hidden`]:{display:"none"},[`${It}-disabled`]:{color:Bt,cursor:"not-allowed"}})}},ht=Pe=>({actionsColor:Pe.colorTextDescription});var Le=(0,Ke.I$)("Upload",Pe=>{const{fontSizeHeading3:It,fontHeight:Bt,lineWidth:Kt,controlHeightLG:Ct,calc:xt}=Pe,wt=(0,tt.mergeToken)(Pe,{uploadThumbnailSize:xt(It).mul(2).equal(),uploadProgressOffset:xt(xt(Bt).div(2)).add(Kt).equal(),uploadPicCardSize:xt(Ct).mul(2.55).equal()});return[be(wt),Rt(wt),oe(wt),ce(wt),tn(wt),ne(wt),le(wt),(0,ge.Z)(wt)]},ht),Ne={icon:function(It,Bt){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:Bt}},{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.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:It}}]}},name:"file",theme:"twotone"},Ve=Ne,Ge=ee(7657),pt=function(It,Bt){return b.createElement(Ge.Z,(0,xe.Z)({},It,{ref:Bt,icon:Ve}))},we=b.forwardRef(pt),De=we,Zt=ee(58617),Tt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},nn=Tt,Ut=function(It,Bt){return b.createElement(Ge.Z,(0,xe.Z)({},It,{ref:Bt,icon:nn}))},St=b.forwardRef(Ut),an=St,_t={icon:function(It,Bt){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:It}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:Bt}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:Bt}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:Bt}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:It}}]}},name:"picture",theme:"twotone"},$e=_t,mt=function(It,Bt){return b.createElement(Ge.Z,(0,xe.Z)({},It,{ref:Bt,icon:$e}))},jt=b.forwardRef(mt),Jt=jt,Be=ee(77900),ft=ee(2738),Dt=ee(40192),Vt=ee(86641),un=ee(22703),En=ee(7939);function Mn(Pe){return Object.assign(Object.assign({},Pe),{lastModified:Pe.lastModified,lastModifiedDate:Pe.lastModifiedDate,name:Pe.name,size:Pe.size,type:Pe.type,uid:Pe.uid,percent:0,originFileObj:Pe})}function Fn(Pe,It){const Bt=(0,ze.Z)(It),Kt=Bt.findIndex(Ct=>{let{uid:xt}=Ct;return xt===Pe.uid});return Kt===-1?Bt.push(Pe):Bt[Kt]=Pe,Bt}function gn(Pe,It){const Bt=Pe.uid!==void 0?"uid":"name";return It.filter(Kt=>Kt[Bt]===Pe[Bt])[0]}function kn(Pe,It){const Bt=Pe.uid!==void 0?"uid":"name",Kt=It.filter(Ct=>Ct[Bt]!==Pe[Bt]);return Kt.length===It.length?null:Kt}const dn=function(){const It=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),Kt=It[It.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(Kt)||[""])[0]},zt=Pe=>Pe.indexOf("image/")===0,rn=Pe=>{if(Pe.type&&!Pe.thumbUrl)return zt(Pe.type);const It=Pe.thumbUrl||Pe.url||"",Bt=dn(It);return/^data:image\//.test(It)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(Bt)?!0:!(/^data:/.test(It)||Bt)},on=200;function Xt(Pe){return new Promise(It=>{if(!Pe.type||!zt(Pe.type)){It("");return}const Bt=document.createElement("canvas");Bt.width=on,Bt.height=on,Bt.style.cssText=`position: fixed; left: 0; top: 0; width: ${on}px; height: ${on}px; z-index: 9999; display: none;`,document.body.appendChild(Bt);const Kt=Bt.getContext("2d"),Ct=new Image;if(Ct.onload=()=>{const{width:xt,height:wt}=Ct;let Ft=on,Tn=on,On=0,An=0;xt>wt?(Tn=wt*(on/xt),An=-(Tn-Ft)/2):(Ft=xt*(on/wt),On=-(Ft-Tn)/2),Kt.drawImage(Ct,On,An,Ft,Tn);const er=Bt.toDataURL();document.body.removeChild(Bt),window.URL.revokeObjectURL(Ct.src),It(er)},Ct.crossOrigin="anonymous",Pe.type.startsWith("image/svg+xml")){const xt=new FileReader;xt.onload=()=>{xt.result&&typeof xt.result=="string"&&(Ct.src=xt.result)},xt.readAsDataURL(Pe)}else if(Pe.type.startsWith("image/gif")){const xt=new FileReader;xt.onload=()=>{xt.result&&It(xt.result)},xt.readAsDataURL(Pe)}else Ct.src=window.URL.createObjectURL(Pe)})}var vn=ee(26227),pn=ee(41464),wn=ee(15277),$n=ee(89787),xn=ee(25399),Zn=b.forwardRef((Pe,It)=>{let{prefixCls:Bt,className:Kt,style:Ct,locale:xt,listType:wt,file:Ft,items:Tn,progress:On,iconRender:An,actionIconRender:er,itemRender:sr,isImgUrl:fr,showPreviewIcon:Qn,showRemoveIcon:Xn,showDownloadIcon:Jn,previewIcon:ur,removeIcon:Er,downloadIcon:Cr,extra:wr,onPreview:Yn,onDownload:yr,onClose:mr}=Pe;var _r,Yr;const{status:Vr}=Ft,[Ur,oi]=b.useState(Vr);b.useEffect(()=>{Vr!=="removed"&&oi(Vr)},[Vr]);const[Zr,Jr]=b.useState(!1);b.useEffect(()=>{const Ln=setTimeout(()=>{Jr(!0)},300);return()=>{clearTimeout(Ln)}},[]);const Or=An(Ft);let ti=b.createElement("div",{className:`${Bt}-icon`},Or);if(wt==="picture"||wt==="picture-card"||wt==="picture-circle")if(Ur==="uploading"||!Ft.thumbUrl&&!Ft.url){const Ln=Se()(`${Bt}-list-item-thumbnail`,{[`${Bt}-list-item-file`]:Ur!=="uploading"});ti=b.createElement("div",{className:Ln},Or)}else{const Ln=fr!=null&&fr(Ft)?b.createElement("img",{src:Ft.thumbUrl||Ft.url,alt:Ft.name,className:`${Bt}-list-item-image`,crossOrigin:Ft.crossOrigin}):Or,Gn=Se()(`${Bt}-list-item-thumbnail`,{[`${Bt}-list-item-file`]:fr&&!fr(Ft)});ti=b.createElement("a",{className:Gn,onClick:nr=>Yn(Ft,nr),href:Ft.url||Ft.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Ln)}const ci=Se()(`${Bt}-list-item`,`${Bt}-list-item-${Ur}`),Fi=typeof Ft.linkProps=="string"?JSON.parse(Ft.linkProps):Ft.linkProps,vi=(typeof Xn=="function"?Xn(Ft):Xn)?er((typeof Er=="function"?Er(Ft):Er)||b.createElement(vn.Z,null),()=>mr(Ft),Bt,xt.removeFile,!0):null,xi=(typeof Jn=="function"?Jn(Ft):Jn)&&Ur==="done"?er((typeof Cr=="function"?Cr(Ft):Cr)||b.createElement(pn.Z,null),()=>yr(Ft),Bt,xt.downloadFile):null,hi=wt!=="picture-card"&&wt!=="picture-circle"&&b.createElement("span",{key:"download-delete",className:Se()(`${Bt}-list-item-actions`,{picture:wt==="picture"})},xi,vi),bi=typeof wr=="function"?wr(Ft):wr,Rr=bi&&b.createElement("span",{className:`${Bt}-list-item-extra`},bi),Lr=Se()(`${Bt}-list-item-name`),cr=Ft.url?b.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Lr,title:Ft.name},Fi,{href:Ft.url,onClick:Ln=>Yn(Ft,Ln)}),Ft.name,Rr):b.createElement("span",{key:"view",className:Lr,onClick:Ln=>Yn(Ft,Ln),title:Ft.name},Ft.name,Rr),Nn=(typeof Qn=="function"?Qn(Ft):Qn)&&(Ft.url||Ft.thumbUrl)?b.createElement("a",{href:Ft.url||Ft.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:Ln=>Yn(Ft,Ln),title:xt.previewFile},typeof ur=="function"?ur(Ft):ur||b.createElement(wn.Z,null)):null,Kn=(wt==="picture-card"||wt==="picture-circle")&&Ur!=="uploading"&&b.createElement("span",{className:`${Bt}-list-item-actions`},Nn,Ur==="done"&&xi,vi),{getPrefixCls:Vn}=b.useContext(Oe.E_),Bn=Vn(),lr=b.createElement("div",{className:ci},ti,cr,hi,Kn,Zr&&b.createElement(Be.default,{motionName:`${Bn}-fade`,visible:Ur==="uploading",motionDeadline:2e3},Ln=>{let{className:Gn}=Ln;const nr="percent"in Ft?b.createElement($n.Z,Object.assign({},On,{type:"line",percent:Ft.percent,"aria-label":Ft["aria-label"],"aria-labelledby":Ft["aria-labelledby"]})):null;return b.createElement("div",{className:Se()(`${Bt}-list-item-progress`,Gn)},nr)})),br=Ft.response&&typeof Ft.response=="string"?Ft.response:((_r=Ft.error)===null||_r===void 0?void 0:_r.statusText)||((Yr=Ft.error)===null||Yr===void 0?void 0:Yr.message)||xt.uploadError,jn=Ur==="error"?b.createElement(xn.Z,{title:br,getPopupContainer:Ln=>Ln.parentNode},lr):lr;return b.createElement("div",{className:Se()(`${Bt}-list-item-container`,Kt),style:Ct,ref:It},sr?sr(jn,Ft,Tn,{download:yr.bind(null,Ft),preview:Yn.bind(null,Ft),remove:mr.bind(null,Ft)}):jn)});const Wn=(Pe,It)=>{const{listType:Bt="text",previewFile:Kt=Xt,onPreview:Ct,onDownload:xt,onRemove:wt,locale:Ft,iconRender:Tn,isImageUrl:On=rn,prefixCls:An,items:er=[],showPreviewIcon:sr=!0,showRemoveIcon:fr=!0,showDownloadIcon:Qn=!1,removeIcon:Xn,previewIcon:Jn,downloadIcon:ur,extra:Er,progress:Cr={size:[-1,2],showInfo:!1},appendAction:wr,appendActionVisible:Yn=!0,itemRender:yr,disabled:mr}=Pe,_r=(0,Dt.Z)(),[Yr,Vr]=b.useState(!1),Ur=["picture-card","picture-circle"].includes(Bt);b.useEffect(()=>{Bt.startsWith("picture")&&(er||[]).forEach(Rr=>{!(Rr.originFileObj instanceof File||Rr.originFileObj instanceof Blob)||Rr.thumbUrl!==void 0||(Rr.thumbUrl="",Kt==null||Kt(Rr.originFileObj).then(Lr=>{Rr.thumbUrl=Lr||"",_r()}))})},[Bt,er,Kt]),b.useEffect(()=>{Vr(!0)},[]);const oi=(Rr,Lr)=>{if(Ct)return Lr==null||Lr.preventDefault(),Ct(Rr)},Zr=Rr=>{typeof xt=="function"?xt(Rr):Rr.url&&window.open(Rr.url)},Jr=Rr=>{wt==null||wt(Rr)},Or=Rr=>{if(Tn)return Tn(Rr,Bt);const Lr=Rr.status==="uploading";if(Bt.startsWith("picture")){const cr=Bt==="picture"?b.createElement(Zt.Z,null):Ft.uploading,Nn=On!=null&&On(Rr)?b.createElement(Jt,null):b.createElement(De,null);return Lr?cr:Nn}return Lr?b.createElement(Zt.Z,null):b.createElement(an,null)},ti=(Rr,Lr,cr,Nn,Kn)=>{const Vn={type:"text",size:"small",title:Nn,onClick:Bn=>{var lr,br;Lr(),b.isValidElement(Rr)&&((br=(lr=Rr.props).onClick)===null||br===void 0||br.call(lr,Bn))},className:`${cr}-list-item-action`};return Kn&&(Vn.disabled=mr),b.isValidElement(Rr)?b.createElement(En.ZP,Object.assign({},Vn,{icon:(0,un.Tm)(Rr,Object.assign(Object.assign({},Rr.props),{onClick:()=>{}}))})):b.createElement(En.ZP,Object.assign({},Vn),b.createElement("span",null,Rr))};b.useImperativeHandle(It,()=>({handlePreview:oi,handleDownload:Zr}));const{getPrefixCls:ci}=b.useContext(Oe.E_),Fi=ci("upload",An),vi=ci(),xi=Se()(`${Fi}-list`,`${Fi}-list-${Bt}`),hi=b.useMemo(()=>(0,ft.Z)((0,Vt.Z)(vi),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[vi]),bi=Object.assign(Object.assign({},Ur?{}:hi),{motionDeadline:2e3,motionName:`${Fi}-${Ur?"animate-inline":"animate"}`,keys:(0,ze.Z)(er.map(Rr=>({key:Rr.uid,file:Rr}))),motionAppear:Yr});return b.createElement("div",{className:xi},b.createElement(Be.CSSMotionList,Object.assign({},bi,{component:!1}),Rr=>{let{key:Lr,file:cr,className:Nn,style:Kn}=Rr;return b.createElement(Zn,{key:Lr,locale:Ft,prefixCls:Fi,className:Nn,style:Kn,file:cr,items:er,progress:Cr,listType:Bt,isImgUrl:On,showPreviewIcon:sr,showRemoveIcon:fr,showDownloadIcon:Qn,removeIcon:Xn,previewIcon:Jn,downloadIcon:ur,extra:Er,iconRender:Or,actionIconRender:ti,itemRender:yr,onPreview:oi,onDownload:Zr,onClose:Jr})}),wr&&b.createElement(Be.default,Object.assign({},bi,{visible:Yn,forceRender:!0}),Rr=>{let{className:Lr,style:cr}=Rr;return(0,un.Tm)(wr,Nn=>({className:Se()(Nn.className,Lr),style:Object.assign(Object.assign(Object.assign({},cr),{pointerEvents:Lr?"none":void 0}),Nn.style)}))}))};var tr=b.forwardRef(Wn),sn=function(Pe,It,Bt,Kt){function Ct(xt){return xt instanceof Bt?xt:new Bt(function(wt){wt(xt)})}return new(Bt||(Bt=Promise))(function(xt,wt){function Ft(An){try{On(Kt.next(An))}catch(er){wt(er)}}function Tn(An){try{On(Kt.throw(An))}catch(er){wt(er)}}function On(An){An.done?xt(An.value):Ct(An.value).then(Ft,Tn)}On((Kt=Kt.apply(Pe,It||[])).next())})};const yn=`__LIST_IGNORE_${Date.now()}__`,zn=(Pe,It)=>{const{fileList:Bt,defaultFileList:Kt,onRemove:Ct,showUploadList:xt=!0,listType:wt="text",onPreview:Ft,onDownload:Tn,onChange:On,onDrop:An,previewFile:er,disabled:sr,locale:fr,iconRender:Qn,isImageUrl:Xn,progress:Jn,prefixCls:ur,className:Er,type:Cr="select",children:wr,style:Yn,itemRender:yr,maxCount:mr,data:_r={},multiple:Yr=!1,hasControlInside:Vr=!0,action:Ur="",accept:oi="",supportServerRender:Zr=!0,rootClassName:Jr}=Pe,Or=b.useContext(pe.Z),ti=sr!=null?sr:Or,[ci,Fi]=(0,Yt.Z)(Kt||[],{value:Bt,postState:ai=>ai!=null?ai:[]}),[vi,xi]=b.useState("drop"),hi=b.useRef(null),bi=b.useRef(null);b.useMemo(()=>{const ai=Date.now();(Bt||[]).forEach((Wi,Yi)=>{!Wi.uid&&!Object.isFrozen(Wi)&&(Wi.uid=`__AUTO__${ai}_${Yi}__`)})},[Bt]);const Rr=(ai,Wi,Yi)=>{let gi=(0,ze.Z)(Wi),Zi=!1;mr===1?gi=gi.slice(-1):mr&&(Zi=gi.length>mr,gi=gi.slice(0,mr)),(0,fe.flushSync)(()=>{Fi(gi)});const Mi={file:ai,fileList:gi};Yi&&(Mi.event=Yi),(!Zi||ai.status==="removed"||gi.some(Zo=>Zo.uid===ai.uid))&&(0,fe.flushSync)(()=>{On==null||On(Mi)})},Lr=(ai,Wi)=>sn(void 0,void 0,void 0,function*(){const{beforeUpload:Yi,transformFile:gi}=Pe;let Zi=ai;if(Yi){const Mi=yield Yi(ai,Wi);if(Mi===!1)return!1;if(delete ai[yn],Mi===yn)return Object.defineProperty(ai,yn,{value:!0,configurable:!0}),!1;typeof Mi=="object"&&Mi&&(Zi=Mi)}return gi&&(Zi=yield gi(Zi)),Zi}),cr=ai=>{const Wi=ai.filter(Zi=>!Zi.file[yn]);if(!Wi.length)return;const Yi=Wi.map(Zi=>Mn(Zi.file));let gi=(0,ze.Z)(ci);Yi.forEach(Zi=>{gi=Fn(Zi,gi)}),Yi.forEach((Zi,Mi)=>{let Zo=Zi;if(Wi[Mi].parsedFile)Zi.status="uploading";else{const{originFileObj:ha}=Zi;let Wo;try{Wo=new File([ha],ha.name,{type:ha.type})}catch(Mo){Wo=new Blob([ha],{type:ha.type}),Wo.name=ha.name,Wo.lastModifiedDate=new Date,Wo.lastModified=new Date().getTime()}Wo.uid=Zi.uid,Zo=Wo}Rr(Zo,gi)})},Nn=(ai,Wi,Yi)=>{try{typeof ai=="string"&&(ai=JSON.parse(ai))}catch(Mi){}if(!gn(Wi,ci))return;const gi=Mn(Wi);gi.status="done",gi.percent=100,gi.response=ai,gi.xhr=Yi;const Zi=Fn(gi,ci);Rr(gi,Zi)},Kn=(ai,Wi)=>{if(!gn(Wi,ci))return;const Yi=Mn(Wi);Yi.status="uploading",Yi.percent=ai.percent;const gi=Fn(Yi,ci);Rr(Yi,gi,ai)},Vn=(ai,Wi,Yi)=>{if(!gn(Yi,ci))return;const gi=Mn(Yi);gi.error=ai,gi.response=Wi,gi.status="error";const Zi=Fn(gi,ci);Rr(gi,Zi)},Bn=ai=>{let Wi;Promise.resolve(typeof Ct=="function"?Ct(ai):Ct).then(Yi=>{var gi;if(Yi===!1)return;const Zi=kn(ai,ci);Zi&&(Wi=Object.assign(Object.assign({},ai),{status:"removed"}),ci==null||ci.forEach(Mi=>{const Zo=Wi.uid!==void 0?"uid":"name";Mi[Zo]===Wi[Zo]&&!Object.isFrozen(Mi)&&(Mi.status="removed")}),(gi=hi.current)===null||gi===void 0||gi.abort(Wi),Rr(Wi,Zi))})},lr=ai=>{xi(ai.type),ai.type==="drop"&&(An==null||An(ai))};b.useImperativeHandle(It,()=>({onBatchStart:cr,onSuccess:Nn,onProgress:Kn,onError:Vn,fileList:ci,upload:hi.current,nativeElement:bi.current}));const{getPrefixCls:br,direction:jn,upload:Ln}=b.useContext(Oe.E_),Gn=br("upload",ur),nr=Object.assign(Object.assign({onBatchStart:cr,onError:Vn,onProgress:Kn,onSuccess:Nn},Pe),{data:_r,multiple:Yr,action:Ur,accept:oi,supportServerRender:Zr,prefixCls:Gn,disabled:ti,beforeUpload:Lr,onChange:void 0,hasControlInside:Vr});delete nr.className,delete nr.style,(!wr||ti)&&delete nr.id;const Qr=`${Gn}-wrapper`,[Ei,pi,Ni]=Le(Gn,Qr),[Ii]=(0,Lt.Z)("Upload",en.Z.Upload),{showRemoveIcon:Pi,showPreviewIcon:$i,showDownloadIcon:Ai,removeIcon:ki,previewIcon:lo,downloadIcon:xo,extra:Do}=typeof xt=="boolean"?{}:xt,To=typeof Pi=="undefined"?!ti:Pi,Co=(ai,Wi)=>xt?b.createElement(tr,{prefixCls:Gn,listType:wt,items:ci,previewFile:er,onPreview:Ft,onDownload:Tn,onRemove:Bn,showRemoveIcon:To,showPreviewIcon:$i,showDownloadIcon:Ai,removeIcon:ki,previewIcon:lo,downloadIcon:xo,iconRender:Qn,extra:Do,locale:Object.assign(Object.assign({},Ii),fr),isImageUrl:Xn,progress:Jn,appendAction:ai,appendActionVisible:Wi,itemRender:yr,disabled:ti}):ai,qr=Se()(Qr,Er,Jr,pi,Ni,Ln==null?void 0:Ln.className,{[`${Gn}-rtl`]:jn==="rtl",[`${Gn}-picture-card-wrapper`]:wt==="picture-card",[`${Gn}-picture-circle-wrapper`]:wt==="picture-circle"}),Hr=Object.assign(Object.assign({},Ln==null?void 0:Ln.style),Yn);if(Cr==="drag"){const ai=Se()(pi,Gn,`${Gn}-drag`,{[`${Gn}-drag-uploading`]:ci.some(Wi=>Wi.status==="uploading"),[`${Gn}-drag-hover`]:vi==="dragover",[`${Gn}-disabled`]:ti,[`${Gn}-rtl`]:jn==="rtl"});return Ei(b.createElement("span",{className:qr,ref:bi},b.createElement("div",{className:ai,style:Hr,onDrop:lr,onDragOver:lr,onDragLeave:lr},b.createElement(st,Object.assign({},nr,{ref:hi,className:`${Gn}-btn`}),b.createElement("div",{className:`${Gn}-drag-container`},wr))),Co()))}const Ji=Se()(Gn,`${Gn}-select`,{[`${Gn}-disabled`]:ti,[`${Gn}-hidden`]:!wr}),qi=b.createElement("div",{className:Ji},b.createElement(st,Object.assign({},nr,{ref:hi})));return Ei(wt==="picture-card"||wt==="picture-circle"?b.createElement("span",{className:qr,ref:bi},Co(qi,!!wr)):b.createElement("span",{className:qr,ref:bi},qi,Co()))};var ut=b.forwardRef(zn),Pt=function(Pe,It){var Bt={};for(var Kt in Pe)Object.prototype.hasOwnProperty.call(Pe,Kt)&&It.indexOf(Kt)<0&&(Bt[Kt]=Pe[Kt]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ct=0,Kt=Object.getOwnPropertySymbols(Pe);Ct<Kt.length;Ct++)It.indexOf(Kt[Ct])<0&&Object.prototype.propertyIsEnumerable.call(Pe,Kt[Ct])&&(Bt[Kt[Ct]]=Pe[Kt[Ct]]);return Bt},vt=b.forwardRef((Pe,It)=>{var{style:Bt,height:Kt,hasControlInside:Ct=!1}=Pe,xt=Pt(Pe,["style","height","hasControlInside"]);return b.createElement(ut,Object.assign({ref:It,hasControlInside:Ct},xt,{type:"drag",style:Object.assign(Object.assign({},Bt),{height:Kt})}))});const Ze=ut;Ze.Dragger=vt,Ze.LIST_IGNORE=yn;var bt=Ze},99498:function(In,Qt,ee){(function(b){b(ee(89780))})(function(b){b.defineOption("placeholder","",function(je,Ie,ue){var et=ue&&ue!=b.Init;if(Ie&&!et)je.on("blur",Se),je.on("change",xe),je.on("swapDoc",xe),b.on(je.getInputField(),"compositionupdate",je.state.placeholderCompose=function(){nt(je)}),xe(je);else if(!Ie&&et){je.off("blur",Se),je.off("change",xe),je.off("swapDoc",xe),b.off(je.getInputField(),"compositionupdate",je.state.placeholderCompose),ze(je);var Te=je.getWrapperElement();Te.className=Te.className.replace(" CodeMirror-empty","")}Ie&&!je.hasFocus()&&Se(je)});function ze(je){je.state.placeholder&&(je.state.placeholder.parentNode.removeChild(je.state.placeholder),je.state.placeholder=null)}function fe(je){ze(je);var Ie=je.state.placeholder=document.createElement("pre");Ie.style.cssText="height: 0; overflow: visible",Ie.style.direction=je.getOption("direction"),Ie.className="CodeMirror-placeholder CodeMirror-line-like";var ue=je.getOption("placeholder");typeof ue=="string"&&(ue=document.createTextNode(ue)),Ie.appendChild(ue),je.display.lineSpace.insertBefore(Ie,je.display.lineSpace.firstChild)}function nt(je){setTimeout(function(){var Ie=!1,ue=je.getInputField();ue.nodeName=="TEXTAREA"?Ie=!ue.value:je.lineCount()==1&&(Ie=!/[^\u200b]/.test(ue.querySelector(".CodeMirror-line").textContent)),Ie?fe(je):ze(je)},20)}function Se(je){Ee(je)&&fe(je)}function xe(je){var Ie=je.getWrapperElement(),ue=Ee(je);Ie.className=Ie.className.replace(" CodeMirror-empty","")+(ue?" CodeMirror-empty":""),ue?fe(je):ze(je)}function Ee(je){return je.lineCount()===1&&je.getLine(0)===""}})},25717:function(In,Qt,ee){(function(b){b(ee(89780))})(function(b){var ze={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},fe=b.Pos;b.defineOption("autoCloseBrackets",!1,function(it,We,ke){ke&&ke!=b.Init&&(it.removeKeyMap(Se),it.state.closeBrackets=null),We&&(xe(nt(We,"pairs")),it.state.closeBrackets=We,it.addKeyMap(Se))});function nt(it,We){return We=="pairs"&&typeof it=="string"?it:typeof it=="object"&&it[We]!=null?it[We]:ze[We]}var Se={Backspace:Ie,Enter:ue};function xe(it){for(var We=0;We<it.length;We++){var ke=it.charAt(We),ot="'"+ke+"'";Se[ot]||(Se[ot]=Ee(ke))}}xe(ze.pairs+"`");function Ee(it){return function(We){return Te(We,it)}}function je(it){var We=it.state.closeBrackets;if(!We||We.override)return We;var ke=it.getModeAt(it.getCursor());return ke.closeBrackets||We}function Ie(it){var We=je(it);if(!We||it.getOption("disableInput"))return b.Pass;for(var ke=nt(We,"pairs"),ot=it.listSelections(),yt=0;yt<ot.length;yt++){if(!ot[yt].empty())return b.Pass;var Nt=At(it,ot[yt].head);if(!Nt||ke.indexOf(Nt)%2!=0)return b.Pass}for(var yt=ot.length-1;yt>=0;yt--){var Fe=ot[yt].head;it.replaceRange("",fe(Fe.line,Fe.ch-1),fe(Fe.line,Fe.ch+1),"+delete")}}function ue(it){var We=je(it),ke=We&&nt(We,"explode");if(!ke||it.getOption("disableInput"))return b.Pass;for(var ot=it.listSelections(),yt=0;yt<ot.length;yt++){if(!ot[yt].empty())return b.Pass;var Nt=At(it,ot[yt].head);if(!Nt||ke.indexOf(Nt)%2!=0)return b.Pass}it.operation(function(){var Fe=it.lineSeparator()||`
|
|
|
`;it.replaceSelection(Fe+Fe,null),it.execCommand("goCharLeft"),ot=it.listSelections();for(var Me=0;Me<ot.length;Me++){var Xe=ot[Me].head.line;it.indentLine(Xe,null,!0),it.indentLine(Xe+1,null,!0)}})}function et(it){var We=b.cmpPos(it.anchor,it.head)>0;return{anchor:new fe(it.anchor.line,it.anchor.ch+(We?-1:1)),head:new fe(it.head.line,it.head.ch+(We?1:-1))}}function Te(it,We){var ke=je(it);if(!ke||it.getOption("disableInput"))return b.Pass;var ot=nt(ke,"pairs"),yt=ot.indexOf(We);if(yt==-1)return b.Pass;for(var Nt=nt(ke,"closeBefore"),Fe=nt(ke,"triples"),Me=ot.charAt(yt+1)==We,Xe=it.listSelections(),Je=yt%2==0,$t,ct=0;ct<Xe.length;ct++){var Ye=Xe[ct],rt=Ye.head,Ce,at=it.getRange(rt,fe(rt.line,rt.ch+1));if(Je&&!Ye.empty())Ce="surround";else if((Me||!Je)&&at==We)Me&<(it,rt)?Ce="both":Fe.indexOf(We)>=0&&it.getRange(rt,fe(rt.line,rt.ch+3))==We+We+We?Ce="skipThree":Ce="skip";else if(Me&&rt.ch>1&&Fe.indexOf(We)>=0&&it.getRange(fe(rt.line,rt.ch-2),rt)==We+We){if(rt.ch>2&&/\bstring/.test(it.getTokenTypeAt(fe(rt.line,rt.ch-2))))return b.Pass;Ce="addFour"}else if(Me){var _e=rt.ch==0?" ":it.getRange(fe(rt.line,rt.ch-1),rt);if(!b.isWordChar(at)&&_e!=We&&!b.isWordChar(_e))Ce="both";else return b.Pass}else if(Je&&(at.length===0||/\s/.test(at)||Nt.indexOf(at)>-1))Ce="both";else return b.Pass;if(!$t)$t=Ce;else if($t!=Ce)return b.Pass}var de=yt%2?ot.charAt(yt-1):We,Et=yt%2?We:ot.charAt(yt+1);it.operation(function(){if($t=="skip")it.execCommand("goCharRight");else if($t=="skipThree")for(var He=0;He<3;He++)it.execCommand("goCharRight");else if($t=="surround"){for(var st=it.getSelections(),He=0;He<st.length;He++)st[He]=de+st[He]+Et;it.replaceSelections(st,"around"),st=it.listSelections().slice();for(var He=0;He<st.length;He++)st[He]=et(st[He]);it.setSelections(st)}else $t=="both"?(it.replaceSelection(de+Et,null),it.triggerElectric(de+Et),it.execCommand("goCharLeft")):$t=="addFour"&&(it.replaceSelection(de+de+de+de,"before"),it.execCommand("goCharRight"))})}function At(it,We){var ke=it.getRange(fe(We.line,We.ch-1),fe(We.line,We.ch+1));return ke.length==2?ke:null}function lt(it,We){var ke=it.getTokenAt(fe(We.line,We.ch+1));return/\bstring/.test(ke.type)&&ke.start==We.ch&&(We.ch==0||!/\bstring/.test(it.getTokenTypeAt(We)))}})},6313:function(In,Qt,ee){(function(b){b(ee(89780),ee(32855))})(function(b){b.defineOption("autoCloseTags",!1,function(Ie,ue,et){if(et!=b.Init&&et&&Ie.removeKeyMap("autoCloseTags"),!!ue){var Te={name:"autoCloseTags"};(typeof ue!="object"||ue.whenClosing!==!1)&&(Te["'/'"]=function(At){return xe(At)}),(typeof ue!="object"||ue.whenOpening!==!1)&&(Te["'>'"]=function(At){return nt(At)}),Ie.addKeyMap(Te)}});var ze=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],fe=["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 nt(Ie){if(Ie.getOption("disableInput"))return b.Pass;for(var ue=Ie.listSelections(),et=[],Te=Ie.getOption("autoCloseTags"),At=0;At<ue.length;At++){if(!ue[At].empty())return b.Pass;var lt=ue[At].head,it=Ie.getTokenAt(lt),We=b.innerMode(Ie.getMode(),it.state),ke=We.state,ot=We.mode.xmlCurrentTag&&We.mode.xmlCurrentTag(ke),yt=ot&&ot.name;if(!yt)return b.Pass;var Nt=We.mode.configuration=="html",Fe=typeof Te=="object"&&Te.dontCloseTags||Nt&&ze,Me=typeof Te=="object"&&Te.indentTags||Nt&&fe;it.end>lt.ch&&(yt=yt.slice(0,yt.length-it.end+lt.ch));var Xe=yt.toLowerCase();if(!yt||it.type=="string"&&(it.end!=lt.ch||!/[\"\']/.test(it.string.charAt(it.string.length-1))||it.string.length==1)||it.type=="tag"&&ot.close||it.string.indexOf("/")==lt.ch-it.start-1||Fe&&Ee(Fe,Xe)>-1||je(Ie,We.mode.xmlCurrentContext&&We.mode.xmlCurrentContext(ke)||[],yt,lt,!0))return b.Pass;var Je=typeof Te=="object"&&Te.emptyTags;if(Je&&Ee(Je,yt)>-1){et[At]={text:"/>",newPos:b.Pos(lt.line,lt.ch+2)};continue}var $t=Me&&Ee(Me,Xe)>-1;et[At]={indent:$t,text:">"+($t?`
|
|
|
|
|
|
`:"")+"</"+yt+">",newPos:$t?b.Pos(lt.line+1,0):b.Pos(lt.line,lt.ch+1)}}for(var ct=typeof Te=="object"&&Te.dontIndentOnAutoClose,At=ue.length-1;At>=0;At--){var Ye=et[At];Ie.replaceRange(Ye.text,ue[At].head,ue[At].anchor,"+insert");var rt=Ie.listSelections().slice(0);rt[At]={head:Ye.newPos,anchor:Ye.newPos},Ie.setSelections(rt),!ct&&Ye.indent&&(Ie.indentLine(Ye.newPos.line,null,!0),Ie.indentLine(Ye.newPos.line+1,null,!0))}}function Se(Ie,ue){for(var et=Ie.listSelections(),Te=[],At=ue?"/":"</",lt=Ie.getOption("autoCloseTags"),it=typeof lt=="object"&<.dontIndentOnSlash,We=0;We<et.length;We++){if(!et[We].empty())return b.Pass;var ke=et[We].head,ot=Ie.getTokenAt(ke),yt=b.innerMode(Ie.getMode(),ot.state),Nt=yt.state;if(ue&&(ot.type=="string"||ot.string.charAt(0)!="<"||ot.start!=ke.ch-1))return b.Pass;var Fe,Me=yt.mode.name!="xml"&&Ie.getMode().name=="htmlmixed";if(Me&&yt.mode.name=="javascript")Fe=At+"script";else if(Me&&yt.mode.name=="css")Fe=At+"style";else{var Xe=yt.mode.xmlCurrentContext&&yt.mode.xmlCurrentContext(Nt);if(!Xe||Xe.length&&je(Ie,Xe,Xe[Xe.length-1],ke))return b.Pass;Fe=At+Xe[Xe.length-1]}Ie.getLine(ke.line).charAt(ot.end)!=">"&&(Fe+=">"),Te[We]=Fe}if(Ie.replaceSelections(Te),et=Ie.listSelections(),!it)for(var We=0;We<et.length;We++)(We==et.length-1||et[We].head.line<et[We+1].head.line)&&Ie.indentLine(et[We].head.line)}function xe(Ie){return Ie.getOption("disableInput")?b.Pass:Se(Ie,!0)}b.commands.closeTag=function(Ie){return Se(Ie)};function Ee(Ie,ue){if(Ie.indexOf)return Ie.indexOf(ue);for(var et=0,Te=Ie.length;et<Te;++et)if(Ie[et]==ue)return et;return-1}function je(Ie,ue,et,Te,At){if(!b.scanForClosingTag)return!1;var lt=Math.min(Ie.lastLine()+1,Te.line+500),it=b.scanForClosingTag(Ie,Te,null,lt);if(!it||it.tag!=et)return!1;for(var We=At?1:0,ke=ue.length-1;ke>=0&&ue[ke]==et;ke--)++We;Te=it.to;for(var ke=1;ke<We;ke++){var ot=b.scanForClosingTag(Ie,Te,null,lt);if(!ot||ot.tag!=et)return!1;Te=ot.to}return!0}})},32855:function(In,Qt,ee){(function(b){b(ee(89780))})(function(b){"use strict";var ze=b.Pos;function fe(ke,ot){return ke.line-ot.line||ke.ch-ot.ch}var nt="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",Se=nt+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",xe=new RegExp("<(/?)(["+nt+"]["+Se+"]*)","g");function Ee(ke,ot,yt,Nt){this.line=ot,this.ch=yt,this.cm=ke,this.text=ke.getLine(ot),this.min=Nt?Math.max(Nt.from,ke.firstLine()):ke.firstLine(),this.max=Nt?Math.min(Nt.to-1,ke.lastLine()):ke.lastLine()}function je(ke,ot){var yt=ke.cm.getTokenTypeAt(ze(ke.line,ot));return yt&&/\btag\b/.test(yt)}function Ie(ke){if(!(ke.line>=ke.max))return ke.ch=0,ke.text=ke.cm.getLine(++ke.line),!0}function ue(ke){if(!(ke.line<=ke.min))return ke.text=ke.cm.getLine(--ke.line),ke.ch=ke.text.length,!0}function et(ke){for(;;){var ot=ke.text.indexOf(">",ke.ch);if(ot==-1){if(Ie(ke))continue;return}if(!je(ke,ot+1)){ke.ch=ot+1;continue}var yt=ke.text.lastIndexOf("/",ot),Nt=yt>-1&&!/\S/.test(ke.text.slice(yt+1,ot));return ke.ch=ot+1,Nt?"selfClose":"regular"}}function Te(ke){for(;;){var ot=ke.ch?ke.text.lastIndexOf("<",ke.ch-1):-1;if(ot==-1){if(ue(ke))continue;return}if(!je(ke,ot+1)){ke.ch=ot;continue}xe.lastIndex=ot,ke.ch=ot;var yt=xe.exec(ke.text);if(yt&&yt.index==ot)return yt}}function At(ke){for(;;){xe.lastIndex=ke.ch;var ot=xe.exec(ke.text);if(!ot){if(Ie(ke))continue;return}if(!je(ke,ot.index+1)){ke.ch=ot.index+1;continue}return ke.ch=ot.index+ot[0].length,ot}}function lt(ke){for(;;){var ot=ke.ch?ke.text.lastIndexOf(">",ke.ch-1):-1;if(ot==-1){if(ue(ke))continue;return}if(!je(ke,ot+1)){ke.ch=ot;continue}var yt=ke.text.lastIndexOf("/",ot),Nt=yt>-1&&!/\S/.test(ke.text.slice(yt+1,ot));return ke.ch=ot+1,Nt?"selfClose":"regular"}}function it(ke,ot){for(var yt=[];;){var Nt=At(ke),Fe,Me=ke.line,Xe=ke.ch-(Nt?Nt[0].length:0);if(!Nt||!(Fe=et(ke)))return;if(Fe!="selfClose")if(Nt[1]){for(var Je=yt.length-1;Je>=0;--Je)if(yt[Je]==Nt[2]){yt.length=Je;break}if(Je<0&&(!ot||ot==Nt[2]))return{tag:Nt[2],from:ze(Me,Xe),to:ze(ke.line,ke.ch)}}else yt.push(Nt[2])}}function We(ke,ot){for(var yt=[];;){var Nt=lt(ke);if(!Nt)return;if(Nt=="selfClose"){Te(ke);continue}var Fe=ke.line,Me=ke.ch,Xe=Te(ke);if(!Xe)return;if(Xe[1])yt.push(Xe[2]);else{for(var Je=yt.length-1;Je>=0;--Je)if(yt[Je]==Xe[2]){yt.length=Je;break}if(Je<0&&(!ot||ot==Xe[2]))return{tag:Xe[2],from:ze(ke.line,ke.ch),to:ze(Fe,Me)}}}}b.registerHelper("fold","xml",function(ke,ot){for(var yt=new Ee(ke,ot.line,0);;){var Nt=At(yt);if(!Nt||yt.line!=ot.line)return;var Fe=et(yt);if(!Fe)return;if(!Nt[1]&&Fe!="selfClose"){var Me=ze(yt.line,yt.ch),Xe=it(yt,Nt[2]);return Xe&&fe(Xe.from,Me)>0?{from:Me,to:Xe.from}:null}}}),b.findMatchingTag=function(ke,ot,yt){var Nt=new Ee(ke,ot.line,ot.ch,yt);if(!(Nt.text.indexOf(">")==-1&&Nt.text.indexOf("<")==-1)){var Fe=et(Nt),Me=Fe&&ze(Nt.line,Nt.ch),Xe=Fe&&Te(Nt);if(!(!Fe||!Xe||fe(Nt,ot)>0)){var Je={from:ze(Nt.line,Nt.ch),to:Me,tag:Xe[2]};return Fe=="selfClose"?{open:Je,close:null,at:"open"}:Xe[1]?{open:We(Nt,Xe[2]),close:Je,at:"close"}:(Nt=new Ee(ke,Me.line,Me.ch,yt),{open:Je,close:it(Nt,Xe[2]),at:"open"})}}},b.findEnclosingTag=function(ke,ot,yt,Nt){for(var Fe=new Ee(ke,ot.line,ot.ch,yt);;){var Me=We(Fe,Nt);if(!Me)break;var Xe=new Ee(ke,ot.line,ot.ch,yt),Je=it(Xe,Me.tag);if(Je)return{open:Me,close:Je}}},b.scanForClosingTag=function(ke,ot,yt,Nt){var Fe=new Ee(ke,ot.line,ot.ch,Nt?{from:0,to:Nt}:null);return it(Fe,yt)}})},89780:function(In){(function(Qt,ee){In.exports=ee()})(this,function(){"use strict";var Qt=navigator.userAgent,ee=navigator.platform,b=/gecko\/\d/i.test(Qt),ze=/MSIE \d/.test(Qt),fe=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Qt),nt=/Edge\/(\d+)/.exec(Qt),Se=ze||fe||nt,xe=Se&&(ze?document.documentMode||6:+(nt||fe)[1]),Ee=!nt&&/WebKit\//.test(Qt),je=Ee&&/Qt\/\d+\.\d+/.test(Qt),Ie=!nt&&/Chrome\//.test(Qt),ue=/Opera\//.test(Qt),et=/Apple Computer/.test(navigator.vendor),Te=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Qt),At=/PhantomJS/.test(Qt),lt=!nt&&/AppleWebKit/.test(Qt)&&/Mobile\/\w+/.test(Qt),it=/Android/.test(Qt),We=lt||it||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Qt),ke=lt||/Mac/.test(ee),ot=/\bCrOS\b/.test(Qt),yt=/win/i.test(ee),Nt=ue&&Qt.match(/Version\/(\d*\.\d*)/);Nt&&(Nt=Number(Nt[1])),Nt&&Nt>=15&&(ue=!1,Ee=!0);var Fe=ke&&(je||ue&&(Nt==null||Nt<12.11)),Me=b||Se&&xe>=9;function Xe(a){return new RegExp("(^|\\s)"+a+"(?:$|\\s)\\s*")}var Je=function(a,y){var E=a.className,x=Xe(y).exec(E);if(x){var z=E.slice(x.index+x[0].length);a.className=E.slice(0,x.index)+(z?x[1]+z:"")}};function $t(a){for(var y=a.childNodes.length;y>0;--y)a.removeChild(a.firstChild);return a}function ct(a,y){return $t(a).appendChild(y)}function Ye(a,y,E,x){var z=document.createElement(a);if(E&&(z.className=E),x&&(z.style.cssText=x),typeof y=="string")z.appendChild(document.createTextNode(y));else if(y)for(var ie=0;ie<y.length;++ie)z.appendChild(y[ie]);return z}function rt(a,y,E,x){var z=Ye(a,y,E,x);return z.setAttribute("role","presentation"),z}var Ce;document.createRange?Ce=function(a,y,E,x){var z=document.createRange();return z.setEnd(x||a,E),z.setStart(a,y),z}:Ce=function(a,y,E){var x=document.body.createTextRange();try{x.moveToElementText(a.parentNode)}catch(z){return x}return x.collapse(!0),x.moveEnd("character",E),x.moveStart("character",y),x};function at(a,y){if(y.nodeType==3&&(y=y.parentNode),a.contains)return a.contains(y);do if(y.nodeType==11&&(y=y.host),y==a)return!0;while(y=y.parentNode)}function _e(){var a;try{a=document.activeElement}catch(y){a=document.body||null}for(;a&&a.shadowRoot&&a.shadowRoot.activeElement;)a=a.shadowRoot.activeElement;return a}function de(a,y){var E=a.className;Xe(y).test(E)||(a.className+=(E?" ":"")+y)}function Et(a,y){for(var E=a.split(" "),x=0;x<E.length;x++)E[x]&&!Xe(E[x]).test(y)&&(y+=" "+E[x]);return y}var He=function(a){a.select()};lt?He=function(a){a.selectionStart=0,a.selectionEnd=a.value.length}:Se&&(He=function(a){try{a.select()}catch(y){}});function st(a){var y=Array.prototype.slice.call(arguments,1);return function(){return a.apply(null,y)}}function Yt(a,y,E){y||(y={});for(var x in a)a.hasOwnProperty(x)&&(E!==!1||!y.hasOwnProperty(x))&&(y[x]=a[x]);return y}function Oe(a,y,E,x,z){y==null&&(y=a.search(/[^\s\u00a0]/),y==-1&&(y=a.length));for(var ie=x||0,se=z||0;;){var he=a.indexOf(" ",ie);if(he<0||he>=y)return se+(y-ie);se+=he-ie,se+=E-se%E,ie=he+1}}var pe=function(){this.id=null,this.f=null,this.time=0,this.handler=st(this.onTimeout,this)};pe.prototype.onTimeout=function(a){a.id=0,a.time<=+new Date?a.f():setTimeout(a.handler,a.time-+new Date)},pe.prototype.set=function(a,y){this.f=y;var E=+new Date+a;(!this.id||E<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,a),this.time=E)};function Lt(a,y){for(var E=0;E<a.length;++E)if(a[E]==y)return E;return-1}var en=50,Ot={toString:function(){return"CodeMirror.Pass"}},ge={scroll:!1},Ke={origin:"*mouse"},tt={origin:"+move"};function Wt(a,y,E){for(var x=0,z=0;;){var ie=a.indexOf(" ",x);ie==-1&&(ie=a.length);var se=ie-x;if(ie==a.length||z+se>=y)return x+Math.min(se,y-z);if(z+=ie-x,z+=E-z%E,x=ie+1,z>=y)return x}}var qe=[""];function Rt(a){for(;qe.length<=a;)qe.push(Qe(qe)+" ");return qe[a]}function Qe(a){return a[a.length-1]}function tn(a,y){for(var E=[],x=0;x<a.length;x++)E[x]=y(a[x],x);return E}function gt(a,y,E){for(var x=0,z=E(y);x<a.length&&E(a[x])<=z;)x++;a.splice(x,0,y)}function ae(){}function ne(a,y){var E;return Object.create?E=Object.create(a):(ae.prototype=a,E=new ae),y&&Yt(y,E),E}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 ce(a,y){return y?y.source.indexOf("\\w")>-1&&oe(a)?!0:y.test(a):oe(a)}function re(a){for(var y in a)if(a.hasOwnProperty(y)&&a[y])return!1;return!0}var le=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function be(a){return a.charCodeAt(0)>=768&&le.test(a)}function ht(a,y,E){for(;(E<0?y>0:y<a.length)&&be(a.charAt(y));)y+=E;return y}function Le(a,y,E){for(var x=y>E?-1:1;;){if(y==E)return y;var z=(y+E)/2,ie=x<0?Math.ceil(z):Math.floor(z);if(ie==y)return a(ie)?y:E;a(ie)?E=ie:y=ie+x}}function Ne(a,y,E,x){if(!a)return x(y,E,"ltr",0);for(var z=!1,ie=0;ie<a.length;++ie){var se=a[ie];(se.from<E&&se.to>y||y==E&&se.to==y)&&(x(Math.max(se.from,y),Math.min(se.to,E),se.level==1?"rtl":"ltr",ie),z=!0)}z||x(y,E,"ltr")}var Ve=null;function Ge(a,y,E){var x;Ve=null;for(var z=0;z<a.length;++z){var ie=a[z];if(ie.from<y&&ie.to>y)return z;ie.to==y&&(ie.from!=ie.to&&E=="before"?x=z:Ve=z),ie.from==y&&(ie.from!=ie.to&&E!="before"?x=z:Ve=z)}return x!=null?x:Ve}var pt=function(){var a="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",y="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function E(Ae){return Ae<=247?a.charAt(Ae):1424<=Ae&&Ae<=1524?"R":1536<=Ae&&Ae<=1785?y.charAt(Ae-1536):1774<=Ae&&Ae<=2220?"r":8192<=Ae&&Ae<=8203?"w":Ae==8204?"b":"L"}var x=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,z=/[stwN]/,ie=/[LRr]/,se=/[Lb1n]/,he=/[1n]/;function ye(Ae,kt,Gt){this.level=Ae,this.from=kt,this.to=Gt}return function(Ae,kt){var Gt=kt=="ltr"?"L":"R";if(Ae.length==0||kt=="ltr"&&!x.test(Ae))return!1;for(var Sn=Ae.length,mn=[],Un=0;Un<Sn;++Un)mn.push(E(Ae.charCodeAt(Un)));for(var qn=0,pr=Gt;qn<Sn;++qn){var Ir=mn[qn];Ir=="m"?mn[qn]=pr:pr=Ir}for(var Fr=0,Pr=Gt;Fr<Sn;++Fr){var Wr=mn[Fr];Wr=="1"&&Pr=="r"?mn[Fr]="n":ie.test(Wr)&&(Pr=Wr,Wr=="r"&&(mn[Fr]="R"))}for(var fi=1,li=mn[0];fi<Sn-1;++fi){var Ri=mn[fi];Ri=="+"&&li=="1"&&mn[fi+1]=="1"?mn[fi]="1":Ri==","&&li==mn[fi+1]&&(li=="1"||li=="n")&&(mn[fi]=li),li=Ri}for(var go=0;go<Sn;++go){var ra=mn[go];if(ra==",")mn[go]="N";else if(ra=="%"){var Bo=void 0;for(Bo=go+1;Bo<Sn&&mn[Bo]=="%";++Bo);for(var La=go&&mn[go-1]=="!"||Bo<Sn&&mn[Bo]=="1"?"1":"N",Pa=go;Pa<Bo;++Pa)mn[Pa]=La;go=Bo-1}}for(var Go=0,Oa=Gt;Go<Sn;++Go){var fa=mn[Go];Oa=="L"&&fa=="1"?mn[Go]="L":ie.test(fa)&&(Oa=fa)}for(var qo=0;qo<Sn;++qo)if(z.test(mn[qo])){var Xo=void 0;for(Xo=qo+1;Xo<Sn&&z.test(mn[Xo]);++Xo);for(var $o=(qo?mn[qo-1]:Gt)=="L",Da=(Xo<Sn?mn[Xo]:Gt)=="L",hs=$o==Da?$o?"L":"R":Gt,Al=qo;Al<Xo;++Al)mn[Al]=hs;qo=Xo-1}for(var ba=[],cl,ia=0;ia<Sn;)if(se.test(mn[ia])){var Ec=ia;for(++ia;ia<Sn&&se.test(mn[ia]);++ia);ba.push(new ye(0,Ec,ia))}else{var bl=ia,Xl=ba.length,Yl=kt=="rtl"?1:0;for(++ia;ia<Sn&&mn[ia]!="L";++ia);for(var Sa=bl;Sa<ia;)if(he.test(mn[Sa])){bl<Sa&&(ba.splice(Xl,0,new ye(1,bl,Sa)),Xl+=Yl);var ps=Sa;for(++Sa;Sa<ia&&he.test(mn[Sa]);++Sa);ba.splice(Xl,0,new ye(2,ps,Sa)),Xl+=Yl,bl=Sa}else++Sa;bl<ia&&ba.splice(Xl,0,new ye(1,bl,ia))}return kt=="ltr"&&(ba[0].level==1&&(cl=Ae.match(/^\s+/))&&(ba[0].from=cl[0].length,ba.unshift(new ye(0,0,cl[0].length))),Qe(ba).level==1&&(cl=Ae.match(/\s+$/))&&(Qe(ba).to-=cl[0].length,ba.push(new ye(0,Sn-cl[0].length,Sn)))),kt=="rtl"?ba.reverse():ba}}();function we(a,y){var E=a.order;return E==null&&(E=a.order=pt(a.text,y)),E}var De=[],Zt=function(a,y,E){if(a.addEventListener)a.addEventListener(y,E,!1);else if(a.attachEvent)a.attachEvent("on"+y,E);else{var x=a._handlers||(a._handlers={});x[y]=(x[y]||De).concat(E)}};function Tt(a,y){return a._handlers&&a._handlers[y]||De}function nn(a,y,E){if(a.removeEventListener)a.removeEventListener(y,E,!1);else if(a.detachEvent)a.detachEvent("on"+y,E);else{var x=a._handlers,z=x&&x[y];if(z){var ie=Lt(z,E);ie>-1&&(x[y]=z.slice(0,ie).concat(z.slice(ie+1)))}}}function Ut(a,y){var E=Tt(a,y);if(E.length)for(var x=Array.prototype.slice.call(arguments,2),z=0;z<E.length;++z)E[z].apply(null,x)}function St(a,y,E){return typeof y=="string"&&(y={type:y,preventDefault:function(){this.defaultPrevented=!0}}),Ut(a,E||y.type,a,y),Jt(y)||y.codemirrorIgnore}function an(a){var y=a._handlers&&a._handlers.cursorActivity;if(y)for(var E=a.curOp.cursorActivityHandlers||(a.curOp.cursorActivityHandlers=[]),x=0;x<y.length;++x)Lt(E,y[x])==-1&&E.push(y[x])}function _t(a,y){return Tt(a,y).length>0}function $e(a){a.prototype.on=function(y,E){Zt(this,y,E)},a.prototype.off=function(y,E){nn(this,y,E)}}function mt(a){a.preventDefault?a.preventDefault():a.returnValue=!1}function jt(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0}function Jt(a){return a.defaultPrevented!=null?a.defaultPrevented:a.returnValue==!1}function Be(a){mt(a),jt(a)}function ft(a){return a.target||a.srcElement}function Dt(a){var y=a.which;return y==null&&(a.button&1?y=1:a.button&2?y=3:a.button&4&&(y=2)),ke&&a.ctrlKey&&y==1&&(y=3),y}var Vt=function(){if(Se&&xe<9)return!1;var a=Ye("div");return"draggable"in a||"dragDrop"in a}(),un;function En(a){if(un==null){var y=Ye("span","\u200B");ct(a,Ye("span",[y,document.createTextNode("x")])),a.firstChild.offsetHeight!=0&&(un=y.offsetWidth<=1&&y.offsetHeight>2&&!(Se&&xe<8))}var E=un?Ye("span","\u200B"):Ye("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return E.setAttribute("cm-text",""),E}var Mn;function Fn(a){if(Mn!=null)return Mn;var y=ct(a,document.createTextNode("A\u062EA")),E=Ce(y,0,1).getBoundingClientRect(),x=Ce(y,1,2).getBoundingClientRect();return $t(a),!E||E.left==E.right?!1:Mn=x.right-E.right<3}var gn=`
|
|
|
|
|
|
b`.split(/\n/).length!=3?function(a){for(var y=0,E=[],x=a.length;y<=x;){var z=a.indexOf(`
|
|
|
`,y);z==-1&&(z=a.length);var ie=a.slice(y,a.charAt(z-1)=="\r"?z-1:z),se=ie.indexOf("\r");se!=-1?(E.push(ie.slice(0,se)),y+=se+1):(E.push(ie),y=z+1)}return E}:function(a){return a.split(/\r\n?|\n/)},kn=window.getSelection?function(a){try{return a.selectionStart!=a.selectionEnd}catch(y){return!1}}:function(a){var y;try{y=a.ownerDocument.selection.createRange()}catch(E){}return!y||y.parentElement()!=a?!1:y.compareEndPoints("StartToEnd",y)!=0},dn=function(){var a=Ye("div");return"oncopy"in a?!0:(a.setAttribute("oncopy","return;"),typeof a.oncopy=="function")}(),zt=null;function rn(a){if(zt!=null)return zt;var y=ct(a,Ye("span","x")),E=y.getBoundingClientRect(),x=Ce(y,0,1).getBoundingClientRect();return zt=Math.abs(E.left-x.left)>1}var on={},Xt={};function vn(a,y){arguments.length>2&&(y.dependencies=Array.prototype.slice.call(arguments,2)),on[a]=y}function pn(a,y){Xt[a]=y}function wn(a){if(typeof a=="string"&&Xt.hasOwnProperty(a))a=Xt[a];else if(a&&typeof a.name=="string"&&Xt.hasOwnProperty(a.name)){var y=Xt[a.name];typeof y=="string"&&(y={name:y}),a=ne(y,a),a.name=y.name}else{if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(a))return wn("application/xml");if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(a))return wn("application/json")}return typeof a=="string"?{name:a}:a||{name:"null"}}function $n(a,y){y=wn(y);var E=on[y.name];if(!E)return $n(a,"text/plain");var x=E(a,y);if(xn.hasOwnProperty(y.name)){var z=xn[y.name];for(var ie in z)z.hasOwnProperty(ie)&&(x.hasOwnProperty(ie)&&(x["_"+ie]=x[ie]),x[ie]=z[ie])}if(x.name=y.name,y.helperType&&(x.helperType=y.helperType),y.modeProps)for(var se in y.modeProps)x[se]=y.modeProps[se];return x}var xn={};function hn(a,y){var E=xn.hasOwnProperty(a)?xn[a]:xn[a]={};Yt(y,E)}function Zn(a,y){if(y===!0)return y;if(a.copyState)return a.copyState(y);var E={};for(var x in y){var z=y[x];z instanceof Array&&(z=z.concat([])),E[x]=z}return E}function Wn(a,y){for(var E;a.innerMode&&(E=a.innerMode(y),!(!E||E.mode==a));)y=E.state,a=E.mode;return E||{mode:a,state:y}}function ir(a,y,E){return a.startState?a.startState(y,E):!0}var tr=function(a,y,E){this.pos=this.start=0,this.string=a,this.tabSize=y||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=E};tr.prototype.eol=function(){return this.pos>=this.string.length},tr.prototype.sol=function(){return this.pos==this.lineStart},tr.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},tr.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},tr.prototype.eat=function(a){var y=this.string.charAt(this.pos),E;if(typeof a=="string"?E=y==a:E=y&&(a.test?a.test(y):a(y)),E)return++this.pos,y},tr.prototype.eatWhile=function(a){for(var y=this.pos;this.eat(a););return this.pos>y},tr.prototype.eatSpace=function(){for(var a=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>a},tr.prototype.skipToEnd=function(){this.pos=this.string.length},tr.prototype.skipTo=function(a){var y=this.string.indexOf(a,this.pos);if(y>-1)return this.pos=y,!0},tr.prototype.backUp=function(a){this.pos-=a},tr.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Oe(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Oe(this.string,this.lineStart,this.tabSize):0)},tr.prototype.indentation=function(){return Oe(this.string,null,this.tabSize)-(this.lineStart?Oe(this.string,this.lineStart,this.tabSize):0)},tr.prototype.match=function(a,y,E){if(typeof a=="string"){var x=function(se){return E?se.toLowerCase():se},z=this.string.substr(this.pos,a.length);if(x(z)==x(a))return y!==!1&&(this.pos+=a.length),!0}else{var ie=this.string.slice(this.pos).match(a);return ie&&ie.index>0?null:(ie&&y!==!1&&(this.pos+=ie[0].length),ie)}},tr.prototype.current=function(){return this.string.slice(this.start,this.pos)},tr.prototype.hideFirstChars=function(a,y){this.lineStart+=a;try{return y()}finally{this.lineStart-=a}},tr.prototype.lookAhead=function(a){var y=this.lineOracle;return y&&y.lookAhead(a)},tr.prototype.baseToken=function(){var a=this.lineOracle;return a&&a.baseToken(this.pos)};function sn(a,y){if(y-=a.first,y<0||y>=a.size)throw new Error("There is no line "+(y+a.first)+" in the document.");for(var E=a;!E.lines;)for(var x=0;;++x){var z=E.children[x],ie=z.chunkSize();if(y<ie){E=z;break}y-=ie}return E.lines[y]}function yn(a,y,E){var x=[],z=y.line;return a.iter(y.line,E.line+1,function(ie){var se=ie.text;z==E.line&&(se=se.slice(0,E.ch)),z==y.line&&(se=se.slice(y.ch)),x.push(se),++z}),x}function zn(a,y,E){var x=[];return a.iter(y,E,function(z){x.push(z.text)}),x}function Hn(a,y){var E=y-a.height;if(E)for(var x=a;x;x=x.parent)x.height+=E}function ut(a){if(a.parent==null)return null;for(var y=a.parent,E=Lt(y.lines,a),x=y.parent;x;y=x,x=x.parent)for(var z=0;x.children[z]!=y;++z)E+=x.children[z].chunkSize();return E+y.first}function Pt(a,y){var E=a.first;e:do{for(var x=0;x<a.children.length;++x){var z=a.children[x],ie=z.height;if(y<ie){a=z;continue e}y-=ie,E+=z.chunkSize()}return E}while(!a.lines);for(var se=0;se<a.lines.length;++se){var he=a.lines[se],ye=he.height;if(y<ye)break;y-=ye}return E+se}function Re(a,y){return y>=a.first&&y<a.first+a.size}function vt(a,y){return String(a.lineNumberFormatter(y+a.firstLineNumber))}function Ze(a,y,E){if(E===void 0&&(E=null),!(this instanceof Ze))return new Ze(a,y,E);this.line=a,this.ch=y,this.sticky=E}function bt(a,y){return a.line-y.line||a.ch-y.ch}function Pe(a,y){return a.sticky==y.sticky&&bt(a,y)==0}function It(a){return Ze(a.line,a.ch)}function Bt(a,y){return bt(a,y)<0?y:a}function Kt(a,y){return bt(a,y)<0?a:y}function Ct(a,y){return Math.max(a.first,Math.min(y,a.first+a.size-1))}function xt(a,y){if(y.line<a.first)return Ze(a.first,0);var E=a.first+a.size-1;return y.line>E?Ze(E,sn(a,E).text.length):wt(y,sn(a,y.line).text.length)}function wt(a,y){var E=a.ch;return E==null||E>y?Ze(a.line,y):E<0?Ze(a.line,0):a}function Ft(a,y){for(var E=[],x=0;x<y.length;x++)E[x]=xt(a,y[x]);return E}var Tn=function(a,y){this.state=a,this.lookAhead=y},On=function(a,y,E,x){this.state=y,this.doc=a,this.line=E,this.maxLookAhead=x||0,this.baseTokens=null,this.baseTokenPos=1};On.prototype.lookAhead=function(a){var y=this.doc.getLine(this.line+a);return y!=null&&a>this.maxLookAhead&&(this.maxLookAhead=a),y},On.prototype.baseToken=function(a){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=a;)this.baseTokenPos+=2;var y=this.baseTokens[this.baseTokenPos+1];return{type:y&&y.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-a}},On.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},On.fromSaved=function(a,y,E){return y instanceof Tn?new On(a,Zn(a.mode,y.state),E,y.lookAhead):new On(a,Zn(a.mode,y),E)},On.prototype.save=function(a){var y=a!==!1?Zn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Tn(y,this.maxLookAhead):y};function An(a,y,E,x){var z=[a.state.modeGen],ie={};Cr(a,y.text,a.doc.mode,E,function(Ae,kt){return z.push(Ae,kt)},ie,x);for(var se=E.state,he=function(Ae){E.baseTokens=z;var kt=a.state.overlays[Ae],Gt=1,Sn=0;E.state=!0,Cr(a,y.text,kt.mode,E,function(mn,Un){for(var qn=Gt;Sn<mn;){var pr=z[Gt];pr>mn&&z.splice(Gt,1,mn,z[Gt+1],pr),Gt+=2,Sn=Math.min(mn,pr)}if(Un)if(kt.opaque)z.splice(qn,Gt-qn,mn,"overlay "+Un),Gt=qn+2;else for(;qn<Gt;qn+=2){var Ir=z[qn+1];z[qn+1]=(Ir?Ir+" ":"")+"overlay "+Un}},ie),E.state=se,E.baseTokens=null,E.baseTokenPos=1},ye=0;ye<a.state.overlays.length;++ye)he(ye);return{styles:z,classes:ie.bgClass||ie.textClass?ie:null}}function er(a,y,E){if(!y.styles||y.styles[0]!=a.state.modeGen){var x=sr(a,ut(y)),z=y.text.length>a.options.maxHighlightLength&&Zn(a.doc.mode,x.state),ie=An(a,y,x);z&&(x.state=z),y.stateAfter=x.save(!z),y.styles=ie.styles,ie.classes?y.styleClasses=ie.classes:y.styleClasses&&(y.styleClasses=null),E===a.doc.highlightFrontier&&(a.doc.modeFrontier=Math.max(a.doc.modeFrontier,++a.doc.highlightFrontier))}return y.styles}function sr(a,y,E){var x=a.doc,z=a.display;if(!x.mode.startState)return new On(x,!0,y);var ie=wr(a,y,E),se=ie>x.first&&sn(x,ie-1).stateAfter,he=se?On.fromSaved(x,se,ie):new On(x,ir(x.mode),ie);return x.iter(ie,y,function(ye){fr(a,ye.text,he);var Ae=he.line;ye.stateAfter=Ae==y-1||Ae%5==0||Ae>=z.viewFrom&&Ae<z.viewTo?he.save():null,he.nextLine()}),E&&(x.modeFrontier=he.line),he}function fr(a,y,E,x){var z=a.doc.mode,ie=new tr(y,a.options.tabSize,E);for(ie.start=ie.pos=x||0,y==""&&Qn(z,E.state);!ie.eol();)Xn(z,ie,E.state),ie.start=ie.pos}function Qn(a,y){if(a.blankLine)return a.blankLine(y);if(a.innerMode){var E=Wn(a,y);if(E.mode.blankLine)return E.mode.blankLine(E.state)}}function Xn(a,y,E,x){for(var z=0;z<10;z++){x&&(x[0]=Wn(a,E).mode);var ie=a.token(y,E);if(y.pos>y.start)return ie}throw new Error("Mode "+a.name+" failed to advance stream.")}var Jn=function(a,y,E){this.start=a.start,this.end=a.pos,this.string=a.current(),this.type=y||null,this.state=E};function ur(a,y,E,x){var z=a.doc,ie=z.mode,se;y=xt(z,y);var he=sn(z,y.line),ye=sr(a,y.line,E),Ae=new tr(he.text,a.options.tabSize,ye),kt;for(x&&(kt=[]);(x||Ae.pos<y.ch)&&!Ae.eol();)Ae.start=Ae.pos,se=Xn(ie,Ae,ye.state),x&&kt.push(new Jn(Ae,se,Zn(z.mode,ye.state)));return x?kt:new Jn(Ae,se,ye.state)}function Er(a,y){if(a)for(;;){var E=a.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!E)break;a=a.slice(0,E.index)+a.slice(E.index+E[0].length);var x=E[1]?"bgClass":"textClass";y[x]==null?y[x]=E[2]:new RegExp("(?:^|\\s)"+E[2]+"(?:$|\\s)").test(y[x])||(y[x]+=" "+E[2])}return a}function Cr(a,y,E,x,z,ie,se){var he=E.flattenSpans;he==null&&(he=a.options.flattenSpans);var ye=0,Ae=null,kt=new tr(y,a.options.tabSize,x),Gt,Sn=a.options.addModeClass&&[null];for(y==""&&Er(Qn(E,x.state),ie);!kt.eol();){if(kt.pos>a.options.maxHighlightLength?(he=!1,se&&fr(a,y,x,kt.pos),kt.pos=y.length,Gt=null):Gt=Er(Xn(E,kt,x.state,Sn),ie),Sn){var mn=Sn[0].name;mn&&(Gt="m-"+(Gt?mn+" "+Gt:mn))}if(!he||Ae!=Gt){for(;ye<kt.start;)ye=Math.min(kt.start,ye+5e3),z(ye,Ae);Ae=Gt}kt.start=kt.pos}for(;ye<kt.pos;){var Un=Math.min(kt.pos,ye+5e3);z(Un,Ae),ye=Un}}function wr(a,y,E){for(var x,z,ie=a.doc,se=E?-1:y-(a.doc.mode.innerMode?1e3:100),he=y;he>se;--he){if(he<=ie.first)return ie.first;var ye=sn(ie,he-1),Ae=ye.stateAfter;if(Ae&&(!E||he+(Ae instanceof Tn?Ae.lookAhead:0)<=ie.modeFrontier))return he;var kt=Oe(ye.text,null,a.options.tabSize);(z==null||x>kt)&&(z=he-1,x=kt)}return z}function Yn(a,y){if(a.modeFrontier=Math.min(a.modeFrontier,y),!(a.highlightFrontier<y-10)){for(var E=a.first,x=y-1;x>E;x--){var z=sn(a,x).stateAfter;if(z&&(!(z instanceof Tn)||x+z.lookAhead<y)){E=x+1;break}}a.highlightFrontier=Math.min(a.highlightFrontier,E)}}var yr=!1,mr=!1;function _r(){yr=!0}function Yr(){mr=!0}function Vr(a,y,E){this.marker=a,this.from=y,this.to=E}function Ur(a,y){if(a)for(var E=0;E<a.length;++E){var x=a[E];if(x.marker==y)return x}}function oi(a,y){for(var E,x=0;x<a.length;++x)a[x]!=y&&(E||(E=[])).push(a[x]);return E}function Zr(a,y){a.markedSpans=a.markedSpans?a.markedSpans.concat([y]):[y],y.marker.attachLine(a)}function Jr(a,y,E){var x;if(a)for(var z=0;z<a.length;++z){var ie=a[z],se=ie.marker,he=ie.from==null||(se.inclusiveLeft?ie.from<=y:ie.from<y);if(he||ie.from==y&&se.type=="bookmark"&&(!E||!ie.marker.insertLeft)){var ye=ie.to==null||(se.inclusiveRight?ie.to>=y:ie.to>y);(x||(x=[])).push(new Vr(se,ie.from,ye?null:ie.to))}}return x}function Or(a,y,E){var x;if(a)for(var z=0;z<a.length;++z){var ie=a[z],se=ie.marker,he=ie.to==null||(se.inclusiveRight?ie.to>=y:ie.to>y);if(he||ie.from==y&&se.type=="bookmark"&&(!E||ie.marker.insertLeft)){var ye=ie.from==null||(se.inclusiveLeft?ie.from<=y:ie.from<y);(x||(x=[])).push(new Vr(se,ye?null:ie.from-y,ie.to==null?null:ie.to-y))}}return x}function ti(a,y){if(y.full)return null;var E=Re(a,y.from.line)&&sn(a,y.from.line).markedSpans,x=Re(a,y.to.line)&&sn(a,y.to.line).markedSpans;if(!E&&!x)return null;var z=y.from.ch,ie=y.to.ch,se=bt(y.from,y.to)==0,he=Jr(E,z,se),ye=Or(x,ie,se),Ae=y.text.length==1,kt=Qe(y.text).length+(Ae?z:0);if(he)for(var Gt=0;Gt<he.length;++Gt){var Sn=he[Gt];if(Sn.to==null){var mn=Ur(ye,Sn.marker);mn?Ae&&(Sn.to=mn.to==null?null:mn.to+kt):Sn.to=z}}if(ye)for(var Un=0;Un<ye.length;++Un){var qn=ye[Un];if(qn.to!=null&&(qn.to+=kt),qn.from==null){var pr=Ur(he,qn.marker);pr||(qn.from=kt,Ae&&(he||(he=[])).push(qn))}else qn.from+=kt,Ae&&(he||(he=[])).push(qn)}he&&(he=ci(he)),ye&&ye!=he&&(ye=ci(ye));var Ir=[he];if(!Ae){var Fr=y.text.length-2,Pr;if(Fr>0&&he)for(var Wr=0;Wr<he.length;++Wr)he[Wr].to==null&&(Pr||(Pr=[])).push(new Vr(he[Wr].marker,null,null));for(var fi=0;fi<Fr;++fi)Ir.push(Pr);Ir.push(ye)}return Ir}function ci(a){for(var y=0;y<a.length;++y){var E=a[y];E.from!=null&&E.from==E.to&&E.marker.clearWhenEmpty!==!1&&a.splice(y--,1)}return a.length?a:null}function Fi(a,y,E){var x=null;if(a.iter(y.line,E.line+1,function(mn){if(mn.markedSpans)for(var Un=0;Un<mn.markedSpans.length;++Un){var qn=mn.markedSpans[Un].marker;qn.readOnly&&(!x||Lt(x,qn)==-1)&&(x||(x=[])).push(qn)}}),!x)return null;for(var z=[{from:y,to:E}],ie=0;ie<x.length;++ie)for(var se=x[ie],he=se.find(0),ye=0;ye<z.length;++ye){var Ae=z[ye];if(!(bt(Ae.to,he.from)<0||bt(Ae.from,he.to)>0)){var kt=[ye,1],Gt=bt(Ae.from,he.from),Sn=bt(Ae.to,he.to);(Gt<0||!se.inclusiveLeft&&!Gt)&&kt.push({from:Ae.from,to:he.from}),(Sn>0||!se.inclusiveRight&&!Sn)&&kt.push({from:he.to,to:Ae.to}),z.splice.apply(z,kt),ye+=kt.length-3}}return z}function vi(a){var y=a.markedSpans;if(y){for(var E=0;E<y.length;++E)y[E].marker.detachLine(a);a.markedSpans=null}}function xi(a,y){if(y){for(var E=0;E<y.length;++E)y[E].marker.attachLine(a);a.markedSpans=y}}function hi(a){return a.inclusiveLeft?-1:0}function bi(a){return a.inclusiveRight?1:0}function Rr(a,y){var E=a.lines.length-y.lines.length;if(E!=0)return E;var x=a.find(),z=y.find(),ie=bt(x.from,z.from)||hi(a)-hi(y);if(ie)return-ie;var se=bt(x.to,z.to)||bi(a)-bi(y);return se||y.id-a.id}function Lr(a,y){var E=mr&&a.markedSpans,x;if(E)for(var z=void 0,ie=0;ie<E.length;++ie)z=E[ie],z.marker.collapsed&&(y?z.from:z.to)==null&&(!x||Rr(x,z.marker)<0)&&(x=z.marker);return x}function cr(a){return Lr(a,!0)}function Nn(a){return Lr(a,!1)}function Kn(a,y){var E=mr&&a.markedSpans,x;if(E)for(var z=0;z<E.length;++z){var ie=E[z];ie.marker.collapsed&&(ie.from==null||ie.from<y)&&(ie.to==null||ie.to>y)&&(!x||Rr(x,ie.marker)<0)&&(x=ie.marker)}return x}function Vn(a,y,E,x,z){var ie=sn(a,y),se=mr&&ie.markedSpans;if(se)for(var he=0;he<se.length;++he){var ye=se[he];if(ye.marker.collapsed){var Ae=ye.marker.find(0),kt=bt(Ae.from,E)||hi(ye.marker)-hi(z),Gt=bt(Ae.to,x)||bi(ye.marker)-bi(z);if(!(kt>=0&&Gt<=0||kt<=0&&Gt>=0)&&(kt<=0&&(ye.marker.inclusiveRight&&z.inclusiveLeft?bt(Ae.to,E)>=0:bt(Ae.to,E)>0)||kt>=0&&(ye.marker.inclusiveRight&&z.inclusiveLeft?bt(Ae.from,x)<=0:bt(Ae.from,x)<0)))return!0}}}function Bn(a){for(var y;y=cr(a);)a=y.find(-1,!0).line;return a}function lr(a){for(var y;y=Nn(a);)a=y.find(1,!0).line;return a}function br(a){for(var y,E;y=Nn(a);)a=y.find(1,!0).line,(E||(E=[])).push(a);return E}function jn(a,y){var E=sn(a,y),x=Bn(E);return E==x?y:ut(x)}function Ln(a,y){if(y>a.lastLine())return y;var E=sn(a,y),x;if(!Gn(a,E))return y;for(;x=Nn(E);)E=x.find(1,!0).line;return ut(E)+1}function Gn(a,y){var E=mr&&y.markedSpans;if(E){for(var x=void 0,z=0;z<E.length;++z)if(x=E[z],!!x.marker.collapsed){if(x.from==null)return!0;if(!x.marker.widgetNode&&x.from==0&&x.marker.inclusiveLeft&&nr(a,y,x))return!0}}}function nr(a,y,E){if(E.to==null){var x=E.marker.find(1,!0);return nr(a,x.line,Ur(x.line.markedSpans,E.marker))}if(E.marker.inclusiveRight&&E.to==y.text.length)return!0;for(var z=void 0,ie=0;ie<y.markedSpans.length;++ie)if(z=y.markedSpans[ie],z.marker.collapsed&&!z.marker.widgetNode&&z.from==E.to&&(z.to==null||z.to!=E.from)&&(z.marker.inclusiveLeft||E.marker.inclusiveRight)&&nr(a,y,z))return!0}function Qr(a){a=Bn(a);for(var y=0,E=a.parent,x=0;x<E.lines.length;++x){var z=E.lines[x];if(z==a)break;y+=z.height}for(var ie=E.parent;ie;E=ie,ie=E.parent)for(var se=0;se<ie.children.length;++se){var he=ie.children[se];if(he==E)break;y+=he.height}return y}function Ei(a){if(a.height==0)return 0;for(var y=a.text.length,E,x=a;E=cr(x);){var z=E.find(0,!0);x=z.from.line,y+=z.from.ch-z.to.ch}for(x=a;E=Nn(x);){var ie=E.find(0,!0);y-=x.text.length-ie.from.ch,x=ie.to.line,y+=x.text.length-ie.to.ch}return y}function pi(a){var y=a.display,E=a.doc;y.maxLine=sn(E,E.first),y.maxLineLength=Ei(y.maxLine),y.maxLineChanged=!0,E.iter(function(x){var z=Ei(x);z>y.maxLineLength&&(y.maxLineLength=z,y.maxLine=x)})}var Ni=function(a,y,E){this.text=a,xi(this,y),this.height=E?E(this):1};Ni.prototype.lineNo=function(){return ut(this)},$e(Ni);function Ii(a,y,E,x){a.text=y,a.stateAfter&&(a.stateAfter=null),a.styles&&(a.styles=null),a.order!=null&&(a.order=null),vi(a),xi(a,E);var z=x?x(a):1;z!=a.height&&Hn(a,z)}function Pi(a){a.parent=null,vi(a)}var $i={},Ai={};function ki(a,y){if(!a||/^\s*$/.test(a))return null;var E=y.addModeClass?Ai:$i;return E[a]||(E[a]=a.replace(/\S+/g,"cm-$&"))}function lo(a,y){var E=rt("span",null,null,Ee?"padding-right: .1px":null),x={pre:rt("pre",[E],"CodeMirror-line"),content:E,col:0,pos:0,cm:a,trailingSpace:!1,splitSpaces:a.getOption("lineWrapping")};y.measure={};for(var z=0;z<=(y.rest?y.rest.length:0);z++){var ie=z?y.rest[z-1]:y.line,se=void 0;x.pos=0,x.addToken=Do,Fn(a.display.measure)&&(se=we(ie,a.doc.direction))&&(x.addToken=Co(x.addToken,se)),x.map=[];var he=y!=a.display.externalMeasured&&ut(ie);Hr(ie,x,er(a,ie,he)),ie.styleClasses&&(ie.styleClasses.bgClass&&(x.bgClass=Et(ie.styleClasses.bgClass,x.bgClass||"")),ie.styleClasses.textClass&&(x.textClass=Et(ie.styleClasses.textClass,x.textClass||""))),x.map.length==0&&x.map.push(0,0,x.content.appendChild(En(a.display.measure))),z==0?(y.measure.map=x.map,y.measure.cache={}):((y.measure.maps||(y.measure.maps=[])).push(x.map),(y.measure.caches||(y.measure.caches=[])).push({}))}if(Ee){var ye=x.content.lastChild;(/\bcm-tab\b/.test(ye.className)||ye.querySelector&&ye.querySelector(".cm-tab"))&&(x.content.className="cm-tab-wrap-hack")}return Ut(a,"renderLine",a,y.line,x.pre),x.pre.className&&(x.textClass=Et(x.pre.className,x.textClass||"")),x}function xo(a){var y=Ye("span","\u2022","cm-invalidchar");return y.title="\\u"+a.charCodeAt(0).toString(16),y.setAttribute("aria-label",y.title),y}function Do(a,y,E,x,z,ie,se){if(y){var he=a.splitSpaces?To(y,a.trailingSpace):y,ye=a.cm.state.specialChars,Ae=!1,kt;if(!ye.test(y))a.col+=y.length,kt=document.createTextNode(he),a.map.push(a.pos,a.pos+y.length,kt),Se&&xe<9&&(Ae=!0),a.pos+=y.length;else{kt=document.createDocumentFragment();for(var Gt=0;;){ye.lastIndex=Gt;var Sn=ye.exec(y),mn=Sn?Sn.index-Gt:y.length-Gt;if(mn){var Un=document.createTextNode(he.slice(Gt,Gt+mn));Se&&xe<9?kt.appendChild(Ye("span",[Un])):kt.appendChild(Un),a.map.push(a.pos,a.pos+mn,Un),a.col+=mn,a.pos+=mn}if(!Sn)break;Gt+=mn+1;var qn=void 0;if(Sn[0]==" "){var pr=a.cm.options.tabSize,Ir=pr-a.col%pr;qn=kt.appendChild(Ye("span",Rt(Ir),"cm-tab")),qn.setAttribute("role","presentation"),qn.setAttribute("cm-text"," "),a.col+=Ir}else Sn[0]=="\r"||Sn[0]==`
|
|
|
`?(qn=kt.appendChild(Ye("span",Sn[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),qn.setAttribute("cm-text",Sn[0]),a.col+=1):(qn=a.cm.options.specialCharPlaceholder(Sn[0]),qn.setAttribute("cm-text",Sn[0]),Se&&xe<9?kt.appendChild(Ye("span",[qn])):kt.appendChild(qn),a.col+=1);a.map.push(a.pos,a.pos+1,qn),a.pos++}}if(a.trailingSpace=he.charCodeAt(y.length-1)==32,E||x||z||Ae||ie||se){var Fr=E||"";x&&(Fr+=x),z&&(Fr+=z);var Pr=Ye("span",[kt],Fr,ie);if(se)for(var Wr in se)se.hasOwnProperty(Wr)&&Wr!="style"&&Wr!="class"&&Pr.setAttribute(Wr,se[Wr]);return a.content.appendChild(Pr)}a.content.appendChild(kt)}}function To(a,y){if(a.length>1&&!/ /.test(a))return a;for(var E=y,x="",z=0;z<a.length;z++){var ie=a.charAt(z);ie==" "&&E&&(z==a.length-1||a.charCodeAt(z+1)==32)&&(ie="\xA0"),x+=ie,E=ie==" "}return x}function Co(a,y){return function(E,x,z,ie,se,he,ye){z=z?z+" cm-force-border":"cm-force-border";for(var Ae=E.pos,kt=Ae+x.length;;){for(var Gt=void 0,Sn=0;Sn<y.length&&(Gt=y[Sn],!(Gt.to>Ae&&Gt.from<=Ae));Sn++);if(Gt.to>=kt)return a(E,x,z,ie,se,he,ye);a(E,x.slice(0,Gt.to-Ae),z,ie,null,he,ye),ie=null,x=x.slice(Gt.to-Ae),Ae=Gt.to}}}function qr(a,y,E,x){var z=!x&&E.widgetNode;z&&a.map.push(a.pos,a.pos+y,z),!x&&a.cm.display.input.needsContentAttribute&&(z||(z=a.content.appendChild(document.createElement("span"))),z.setAttribute("cm-marker",E.id)),z&&(a.cm.display.input.setUneditable(z),a.content.appendChild(z)),a.pos+=y,a.trailingSpace=!1}function Hr(a,y,E){var x=a.markedSpans,z=a.text,ie=0;if(!x){for(var se=1;se<E.length;se+=2)y.addToken(y,z.slice(ie,ie=E[se]),ki(E[se+1],y.cm.options));return}for(var he=z.length,ye=0,Ae=1,kt="",Gt,Sn,mn=0,Un,qn,pr,Ir,Fr;;){if(mn==ye){Un=qn=pr=Sn="",Fr=null,Ir=null,mn=1/0;for(var Pr=[],Wr=void 0,fi=0;fi<x.length;++fi){var li=x[fi],Ri=li.marker;if(Ri.type=="bookmark"&&li.from==ye&&Ri.widgetNode)Pr.push(Ri);else if(li.from<=ye&&(li.to==null||li.to>ye||Ri.collapsed&&li.to==ye&&li.from==ye)){if(li.to!=null&&li.to!=ye&&mn>li.to&&(mn=li.to,qn=""),Ri.className&&(Un+=" "+Ri.className),Ri.css&&(Sn=(Sn?Sn+";":"")+Ri.css),Ri.startStyle&&li.from==ye&&(pr+=" "+Ri.startStyle),Ri.endStyle&&li.to==mn&&(Wr||(Wr=[])).push(Ri.endStyle,li.to),Ri.title&&((Fr||(Fr={})).title=Ri.title),Ri.attributes)for(var go in Ri.attributes)(Fr||(Fr={}))[go]=Ri.attributes[go];Ri.collapsed&&(!Ir||Rr(Ir.marker,Ri)<0)&&(Ir=li)}else li.from>ye&&mn>li.from&&(mn=li.from)}if(Wr)for(var ra=0;ra<Wr.length;ra+=2)Wr[ra+1]==mn&&(qn+=" "+Wr[ra]);if(!Ir||Ir.from==ye)for(var Bo=0;Bo<Pr.length;++Bo)qr(y,0,Pr[Bo]);if(Ir&&(Ir.from||0)==ye){if(qr(y,(Ir.to==null?he+1:Ir.to)-ye,Ir.marker,Ir.from==null),Ir.to==null)return;Ir.to==ye&&(Ir=!1)}}if(ye>=he)break;for(var La=Math.min(he,mn);;){if(kt){var Pa=ye+kt.length;if(!Ir){var Go=Pa>La?kt.slice(0,La-ye):kt;y.addToken(y,Go,Gt?Gt+Un:Un,pr,ye+Go.length==mn?qn:"",Sn,Fr)}if(Pa>=La){kt=kt.slice(La-ye),ye=La;break}ye=Pa,pr=""}kt=z.slice(ie,ie=E[Ae++]),Gt=ki(E[Ae++],y.cm.options)}}}function Ji(a,y,E){this.line=y,this.rest=br(y),this.size=this.rest?ut(Qe(this.rest))-E+1:1,this.node=this.text=null,this.hidden=Gn(a,y)}function qi(a,y,E){for(var x=[],z,ie=y;ie<E;ie=z){var se=new Ji(a.doc,sn(a.doc,ie),ie);z=ie+se.size,x.push(se)}return x}var ai=null;function Wi(a){ai?ai.ops.push(a):a.ownsGroup=ai={ops:[a],delayedCallbacks:[]}}function Yi(a){var y=a.delayedCallbacks,E=0;do{for(;E<y.length;E++)y[E].call(null);for(var x=0;x<a.ops.length;x++){var z=a.ops[x];if(z.cursorActivityHandlers)for(;z.cursorActivityCalled<z.cursorActivityHandlers.length;)z.cursorActivityHandlers[z.cursorActivityCalled++].call(null,z.cm)}}while(E<y.length)}function gi(a,y){var E=a.ownsGroup;if(E)try{Yi(E)}finally{ai=null,y(E)}}var Zi=null;function Mi(a,y){var E=Tt(a,y);if(E.length){var x=Array.prototype.slice.call(arguments,2),z;ai?z=ai.delayedCallbacks:Zi?z=Zi:(z=Zi=[],setTimeout(Zo,0));for(var ie=function(he){z.push(function(){return E[he].apply(null,x)})},se=0;se<E.length;++se)ie(se)}}function Zo(){var a=Zi;Zi=null;for(var y=0;y<a.length;++y)a[y]()}function ha(a,y,E,x){for(var z=0;z<y.changes.length;z++){var ie=y.changes[z];ie=="text"?el(a,y):ie=="gutter"?Ci(a,y,E,x):ie=="class"?si(a,y):ie=="widget"&&ni(a,y,x)}y.changes=null}function Wo(a){return a.node==a.text&&(a.node=Ye("div",null,null,"position: relative"),a.text.parentNode&&a.text.parentNode.replaceChild(a.node,a.text),a.node.appendChild(a.text),Se&&xe<8&&(a.node.style.zIndex=2)),a.node}function Mo(a,y){var E=y.bgClass?y.bgClass+" "+(y.line.bgClass||""):y.line.bgClass;if(E&&(E+=" CodeMirror-linebackground"),y.background)E?y.background.className=E:(y.background.parentNode.removeChild(y.background),y.background=null);else if(E){var x=Wo(y);y.background=x.insertBefore(Ye("div",null,E),x.firstChild),a.display.input.setUneditable(y.background)}}function ul(a,y){var E=a.display.externalMeasured;return E&&E.line==y.line?(a.display.externalMeasured=null,y.measure=E.measure,E.built):lo(a,y)}function el(a,y){var E=y.text.className,x=ul(a,y);y.text==y.node&&(y.node=x.pre),y.text.parentNode.replaceChild(x.pre,y.text),y.text=x.pre,x.bgClass!=y.bgClass||x.textClass!=y.textClass?(y.bgClass=x.bgClass,y.textClass=x.textClass,si(a,y)):E&&(y.text.className=E)}function si(a,y){Mo(a,y),y.line.wrapClass?Wo(y).className=y.line.wrapClass:y.node!=y.text&&(y.node.className="");var E=y.textClass?y.textClass+" "+(y.line.textClass||""):y.line.textClass;y.text.className=E||""}function Ci(a,y,E,x){if(y.gutter&&(y.node.removeChild(y.gutter),y.gutter=null),y.gutterBackground&&(y.node.removeChild(y.gutterBackground),y.gutterBackground=null),y.line.gutterClass){var z=Wo(y);y.gutterBackground=Ye("div",null,"CodeMirror-gutter-background "+y.line.gutterClass,"left: "+(a.options.fixedGutter?x.fixedPos:-x.gutterTotalWidth)+"px; width: "+x.gutterTotalWidth+"px"),a.display.input.setUneditable(y.gutterBackground),z.insertBefore(y.gutterBackground,y.text)}var ie=y.line.gutterMarkers;if(a.options.lineNumbers||ie){var se=Wo(y),he=y.gutter=Ye("div",null,"CodeMirror-gutter-wrapper","left: "+(a.options.fixedGutter?x.fixedPos:-x.gutterTotalWidth)+"px");if(a.display.input.setUneditable(he),se.insertBefore(he,y.text),y.line.gutterClass&&(he.className+=" "+y.line.gutterClass),a.options.lineNumbers&&(!ie||!ie["CodeMirror-linenumbers"])&&(y.lineNumber=he.appendChild(Ye("div",vt(a.options,E),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+x.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+a.display.lineNumInnerWidth+"px"))),ie)for(var ye=0;ye<a.display.gutterSpecs.length;++ye){var Ae=a.display.gutterSpecs[ye].className,kt=ie.hasOwnProperty(Ae)&&ie[Ae];kt&&he.appendChild(Ye("div",[kt],"CodeMirror-gutter-elt","left: "+x.gutterLeft[Ae]+"px; width: "+x.gutterWidth[Ae]+"px"))}}}function ni(a,y,E){y.alignable&&(y.alignable=null);for(var x=Xe("CodeMirror-linewidget"),z=y.node.firstChild,ie=void 0;z;z=ie)ie=z.nextSibling,x.test(z.className)&&y.node.removeChild(z);_i(a,y,E)}function ui(a,y,E,x){var z=ul(a,y);return y.text=y.node=z.pre,z.bgClass&&(y.bgClass=z.bgClass),z.textClass&&(y.textClass=z.textClass),si(a,y),Ci(a,y,E,x),_i(a,y,x),y.node}function _i(a,y,E){if(so(a,y.line,y,E,!0),y.rest)for(var x=0;x<y.rest.length;x++)so(a,y.rest[x],y,E,!1)}function so(a,y,E,x,z){if(y.widgets)for(var ie=Wo(E),se=0,he=y.widgets;se<he.length;++se){var ye=he[se],Ae=Ye("div",[ye.node],"CodeMirror-linewidget"+(ye.className?" "+ye.className:""));ye.handleMouseEvents||Ae.setAttribute("cm-ignore-events","true"),Ba(ye,Ae,E,x),a.display.input.setUneditable(Ae),z&&ye.above?ie.insertBefore(Ae,E.gutter||E.text):ie.appendChild(Ae),Mi(ye,"redraw")}}function Ba(a,y,E,x){if(a.noHScroll){(E.alignable||(E.alignable=[])).push(y);var z=x.wrapperWidth;y.style.left=x.fixedPos+"px",a.coverGutter||(z-=x.gutterTotalWidth,y.style.paddingLeft=x.gutterTotalWidth+"px"),y.style.width=z+"px"}a.coverGutter&&(y.style.zIndex=5,y.style.position="relative",a.noHScroll||(y.style.marginLeft=-x.gutterTotalWidth+"px"))}function oa(a){if(a.height!=null)return a.height;var y=a.doc.cm;if(!y)return 0;if(!at(document.body,a.node)){var E="position: relative;";a.coverGutter&&(E+="margin-left: -"+y.display.gutters.offsetWidth+"px;"),a.noHScroll&&(E+="width: "+y.display.wrapper.clientWidth+"px;"),ct(y.display.measure,Ye("div",[a.node],null,E))}return a.height=a.node.parentNode.offsetHeight}function Yo(a,y){for(var E=ft(y);E!=a.wrapper;E=E.parentNode)if(!E||E.nodeType==1&&E.getAttribute("cm-ignore-events")=="true"||E.parentNode==a.sizer&&E!=a.mover)return!0}function No(a){return a.lineSpace.offsetTop}function Ta(a){return a.mover.offsetHeight-a.lineSpace.offsetHeight}function Za(a){if(a.cachedPaddingH)return a.cachedPaddingH;var y=ct(a.measure,Ye("pre","x","CodeMirror-line-like")),E=window.getComputedStyle?window.getComputedStyle(y):y.currentStyle,x={left:parseInt(E.paddingLeft),right:parseInt(E.paddingRight)};return!isNaN(x.left)&&!isNaN(x.right)&&(a.cachedPaddingH=x),x}function pa(a){return en-a.display.nativeBarWidth}function za(a){return a.display.scroller.clientWidth-pa(a)-a.display.barWidth}function Ya(a){return a.display.scroller.clientHeight-pa(a)-a.display.barHeight}function Ma(a,y,E){var x=a.options.lineWrapping,z=x&&za(a);if(!y.measure.heights||x&&y.measure.width!=z){var ie=y.measure.heights=[];if(x){y.measure.width=z;for(var se=y.text.firstChild.getClientRects(),he=0;he<se.length-1;he++){var ye=se[he],Ae=se[he+1];Math.abs(ye.bottom-Ae.bottom)>2&&ie.push((ye.bottom+Ae.top)/2-E.top)}}ie.push(E.bottom-E.top)}}function dl(a,y,E){if(a.line==y)return{map:a.measure.map,cache:a.measure.cache};for(var x=0;x<a.rest.length;x++)if(a.rest[x]==y)return{map:a.measure.maps[x],cache:a.measure.caches[x]};for(var z=0;z<a.rest.length;z++)if(ut(a.rest[z])>E)return{map:a.measure.maps[z],cache:a.measure.caches[z],before:!0}}function ms(a,y){y=Bn(y);var E=ut(y),x=a.display.externalMeasured=new Ji(a.doc,y,E);x.lineN=E;var z=x.built=lo(a,x);return x.text=z.pre,ct(a.display.lineMeasure,z.pre),x}function Ql(a,y,E,x){return Na(a,tl(a,y),E,x)}function Ha(a,y){if(y>=a.display.viewFrom&&y<a.display.viewTo)return a.display.view[Ka(a,y)];var E=a.display.externalMeasured;if(E&&y>=E.lineN&&y<E.lineN+E.size)return E}function tl(a,y){var E=ut(y),x=Ha(a,E);x&&!x.text?x=null:x&&x.changes&&(ha(a,x,E,rl(a)),a.curOp.forceUpdate=!0),x||(x=ms(a,y));var z=dl(x,y,E);return{line:y,view:x,rect:null,map:z.map,cache:z.cache,before:z.before,hasHeights:!1}}function Na(a,y,E,x,z){y.before&&(E=-1);var ie=E+(x||""),se;return y.cache.hasOwnProperty(ie)?se=y.cache[ie]:(y.rect||(y.rect=y.view.text.getBoundingClientRect()),y.hasHeights||(Ma(a,y.view,y.rect),y.hasHeights=!0),se=ql(a,y,E,x),se.bogus||(y.cache[ie]=se)),{left:se.left,right:se.right,top:z?se.rtop:se.top,bottom:z?se.rbottom:se.bottom}}var vs={left:0,right:0,top:0,bottom:0};function kl(a,y,E){for(var x,z,ie,se,he,ye,Ae=0;Ae<a.length;Ae+=3)if(he=a[Ae],ye=a[Ae+1],y<he?(z=0,ie=1,se="left"):y<ye?(z=y-he,ie=z+1):(Ae==a.length-3||y==ye&&a[Ae+3]>y)&&(ie=ye-he,z=ie-1,y>=ye&&(se="right")),z!=null){if(x=a[Ae+2],he==ye&&E==(x.insertLeft?"left":"right")&&(se=E),E=="left"&&z==0)for(;Ae&&a[Ae-2]==a[Ae-3]&&a[Ae-1].insertLeft;)x=a[(Ae-=3)+2],se="left";if(E=="right"&&z==ye-he)for(;Ae<a.length-3&&a[Ae+3]==a[Ae+4]&&!a[Ae+5].insertLeft;)x=a[(Ae+=3)+2],se="right";break}return{node:x,start:z,end:ie,collapse:se,coverStart:he,coverEnd:ye}}function Jl(a,y){var E=vs;if(y=="left")for(var x=0;x<a.length&&(E=a[x]).left==E.right;x++);else for(var z=a.length-1;z>=0&&(E=a[z]).left==E.right;z--);return E}function ql(a,y,E,x){var z=kl(y.map,E,x),ie=z.node,se=z.start,he=z.end,ye=z.collapse,Ae;if(ie.nodeType==3){for(var kt=0;kt<4;kt++){for(;se&&be(y.line.text.charAt(z.coverStart+se));)--se;for(;z.coverStart+he<z.coverEnd&&be(y.line.text.charAt(z.coverStart+he));)++he;if(Se&&xe<9&&se==0&&he==z.coverEnd-z.coverStart?Ae=ie.parentNode.getBoundingClientRect():Ae=Jl(Ce(ie,se,he).getClientRects(),x),Ae.left||Ae.right||se==0)break;he=se,se=se-1,ye="right"}Se&&xe<11&&(Ae=zs(a.display.measure,Ae))}else{se>0&&(ye=x="right");var Gt;a.options.lineWrapping&&(Gt=ie.getClientRects()).length>1?Ae=Gt[x=="right"?Gt.length-1:0]:Ae=ie.getBoundingClientRect()}if(Se&&xe<9&&!se&&(!Ae||!Ae.left&&!Ae.right)){var Sn=ie.parentNode.getClientRects()[0];Sn?Ae={left:Sn.left,right:Sn.left+Fa(a.display),top:Sn.top,bottom:Sn.bottom}:Ae=vs}for(var mn=Ae.top-y.rect.top,Un=Ae.bottom-y.rect.top,qn=(mn+Un)/2,pr=y.view.measure.heights,Ir=0;Ir<pr.length-1&&!(qn<pr[Ir]);Ir++);var Fr=Ir?pr[Ir-1]:0,Pr=pr[Ir],Wr={left:(ye=="right"?Ae.right:Ae.left)-y.rect.left,right:(ye=="left"?Ae.left:Ae.right)-y.rect.left,top:Fr,bottom:Pr};return!Ae.left&&!Ae.right&&(Wr.bogus=!0),a.options.singleCursorHeightPerLine||(Wr.rtop=mn,Wr.rbottom=Un),Wr}function zs(a,y){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!rn(a))return y;var E=screen.logicalXDPI/screen.deviceXDPI,x=screen.logicalYDPI/screen.deviceYDPI;return{left:y.left*E,right:y.right*E,top:y.top*x,bottom:y.bottom*x}}function Ll(a){if(a.measure&&(a.measure.cache={},a.measure.heights=null,a.rest))for(var y=0;y<a.rest.length;y++)a.measure.caches[y]={}}function ja(a){a.display.externalMeasure=null,$t(a.display.lineMeasure);for(var y=0;y<a.display.view.length;y++)Ll(a.display.view[y])}function fl(a){ja(a),a.display.cachedCharWidth=a.display.cachedTextHeight=a.display.cachedPaddingH=null,a.options.lineWrapping||(a.display.maxLineChanged=!0),a.display.lineNumChars=null}function xl(){return Ie&&it?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Bl(){return Ie&&it?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function hl(a){var y=0;if(a.widgets)for(var E=0;E<a.widgets.length;++E)a.widgets[E].above&&(y+=oa(a.widgets[E]));return y}function Rl(a,y,E,x,z){if(!z){var ie=hl(y);E.top+=ie,E.bottom+=ie}if(x=="line")return E;x||(x="local");var se=Qr(y);if(x=="local"?se+=No(a.display):se-=a.display.viewOffset,x=="page"||x=="window"){var he=a.display.lineSpace.getBoundingClientRect();se+=he.top+(x=="window"?0:Bl());var ye=he.left+(x=="window"?0:xl());E.left+=ye,E.right+=ye}return E.top+=se,E.bottom+=se,E}function es(a,y,E){if(E=="div")return y;var x=y.left,z=y.top;if(E=="page")x-=xl(),z-=Bl();else if(E=="local"||!E){var ie=a.display.sizer.getBoundingClientRect();x+=ie.left,z+=ie.top}var se=a.display.lineSpace.getBoundingClientRect();return{left:x-se.left,top:z-se.top}}function nl(a,y,E,x,z){return x||(x=sn(a.doc,y.line)),Rl(a,x,Ql(a,x,y.ch,z),E)}function aa(a,y,E,x,z,ie){x=x||sn(a.doc,y.line),z||(z=tl(a,x));function se(Un,qn){var pr=Na(a,z,Un,qn?"right":"left",ie);return qn?pr.left=pr.right:pr.right=pr.left,Rl(a,x,pr,E)}var he=we(x,a.doc.direction),ye=y.ch,Ae=y.sticky;if(ye>=x.text.length?(ye=x.text.length,Ae="before"):ye<=0&&(ye=0,Ae="after"),!he)return se(Ae=="before"?ye-1:ye,Ae=="before");function kt(Un,qn,pr){var Ir=he[qn],Fr=Ir.level==1;return se(pr?Un-1:Un,Fr!=pr)}var Gt=Ge(he,ye,Ae),Sn=Ve,mn=kt(ye,Gt,Ae=="before");return Sn!=null&&(mn.other=kt(ye,Sn,Ae!="before")),mn}function Ki(a,y){var E=0;y=xt(a.doc,y),a.options.lineWrapping||(E=Fa(a.display)*y.ch);var x=sn(a.doc,y.line),z=Qr(x)+No(a.display);return{left:E,right:E,top:z,bottom:z+x.height}}function Si(a,y,E,x,z){var ie=Ze(a,y,E);return ie.xRel=z,x&&(ie.outside=x),ie}function Ko(a,y,E){var x=a.doc;if(E+=a.display.viewOffset,E<0)return Si(x.first,0,null,-1,-1);var z=Pt(x,E),ie=x.first+x.size-1;if(z>ie)return Si(x.first+x.size-1,sn(x,ie).text.length,null,1,1);y<0&&(y=0);for(var se=sn(x,z);;){var he=Ra(a,se,z,y,E),ye=Kn(se,he.ch+(he.xRel>0||he.outside>0?1:0));if(!ye)return he;var Ae=ye.find(1);if(Ae.line==z)return Ae;se=sn(x,z=Ae.line)}}function la(a,y,E,x){x-=hl(y);var z=y.text.length,ie=Le(function(se){return Na(a,E,se-1).bottom<=x},z,0);return z=Le(function(se){return Na(a,E,se).top>x},ie,z),{begin:ie,end:z}}function Ao(a,y,E,x){E||(E=tl(a,y));var z=Rl(a,y,Na(a,E,x),"line").top;return la(a,y,E,z)}function _o(a,y,E,x){return a.bottom<=E?!1:a.top>E?!0:(x?a.left:a.right)>y}function Ra(a,y,E,x,z){z-=Qr(y);var ie=tl(a,y),se=hl(y),he=0,ye=y.text.length,Ae=!0,kt=we(y,a.doc.direction);if(kt){var Gt=(a.options.lineWrapping?Wa:Aa)(a,y,E,ie,kt,x,z);Ae=Gt.level!=1,he=Ae?Gt.from:Gt.to-1,ye=Ae?Gt.to:Gt.from-1}var Sn=null,mn=null,Un=Le(function(fi){var li=Na(a,ie,fi);return li.top+=se,li.bottom+=se,_o(li,x,z,!1)?(li.top<=z&&li.left<=x&&(Sn=fi,mn=li),!0):!1},he,ye),qn,pr,Ir=!1;if(mn){var Fr=x-mn.left<mn.right-x,Pr=Fr==Ae;Un=Sn+(Pr?0:1),pr=Pr?"after":"before",qn=Fr?mn.left:mn.right}else{!Ae&&(Un==ye||Un==he)&&Un++,pr=Un==0?"after":Un==y.text.length?"before":Na(a,ie,Un-(Ae?1:0)).bottom+se<=z==Ae?"after":"before";var Wr=aa(a,Ze(E,Un,pr),"line",y,ie);qn=Wr.left,Ir=z<Wr.top?-1:z>=Wr.bottom?1:0}return Un=ht(y.text,Un,1),Si(E,Un,pr,Ir,x-qn)}function Aa(a,y,E,x,z,ie,se){var he=Le(function(Gt){var Sn=z[Gt],mn=Sn.level!=1;return _o(aa(a,Ze(E,mn?Sn.to:Sn.from,mn?"before":"after"),"line",y,x),ie,se,!0)},0,z.length-1),ye=z[he];if(he>0){var Ae=ye.level!=1,kt=aa(a,Ze(E,Ae?ye.from:ye.to,Ae?"after":"before"),"line",y,x);_o(kt,ie,se,!0)&&kt.top>se&&(ye=z[he-1])}return ye}function Wa(a,y,E,x,z,ie,se){var he=la(a,y,x,se),ye=he.begin,Ae=he.end;/\s/.test(y.text.charAt(Ae-1))&&Ae--;for(var kt=null,Gt=null,Sn=0;Sn<z.length;Sn++){var mn=z[Sn];if(!(mn.from>=Ae||mn.to<=ye)){var Un=mn.level!=1,qn=Na(a,x,Un?Math.min(Ae,mn.to)-1:Math.max(ye,mn.from)).right,pr=qn<ie?ie-qn+1e9:qn-ie;(!kt||Gt>pr)&&(kt=mn,Gt=pr)}}return kt||(kt=z[z.length-1]),kt.from<ye&&(kt={from:ye,to:kt.to,level:kt.level}),kt.to>Ae&&(kt={from:kt.from,to:Ae,level:kt.level}),kt}var xa;function Ca(a){if(a.cachedTextHeight!=null)return a.cachedTextHeight;if(xa==null){xa=Ye("pre",null,"CodeMirror-line-like");for(var y=0;y<49;++y)xa.appendChild(document.createTextNode("x")),xa.appendChild(Ye("br"));xa.appendChild(document.createTextNode("x"))}ct(a.measure,xa);var E=xa.offsetHeight/50;return E>3&&(a.cachedTextHeight=E),$t(a.measure),E||1}function Fa(a){if(a.cachedCharWidth!=null)return a.cachedCharWidth;var y=Ye("span","xxxxxxxxxx"),E=Ye("pre",[y],"CodeMirror-line-like");ct(a.measure,E);var x=y.getBoundingClientRect(),z=(x.right-x.left)/10;return z>2&&(a.cachedCharWidth=z),z||10}function rl(a){for(var y=a.display,E={},x={},z=y.gutters.clientLeft,ie=y.gutters.firstChild,se=0;ie;ie=ie.nextSibling,++se){var he=a.display.gutterSpecs[se].className;E[he]=ie.offsetLeft+ie.clientLeft+z,x[he]=ie.clientWidth}return{fixedPos:gs(y),gutterTotalWidth:y.gutters.offsetWidth,gutterLeft:E,gutterWidth:x,wrapperWidth:y.wrapper.clientWidth}}function gs(a){return a.scroller.getBoundingClientRect().left-a.sizer.getBoundingClientRect().left}function ys(a){var y=Ca(a.display),E=a.options.lineWrapping,x=E&&Math.max(5,a.display.scroller.clientWidth/Fa(a.display)-3);return function(z){if(Gn(a.doc,z))return 0;var ie=0;if(z.widgets)for(var se=0;se<z.widgets.length;se++)z.widgets[se].height&&(ie+=z.widgets[se].height);return E?ie+(Math.ceil(z.text.length/x)||1)*y:ie+y}}function Cl(a){var y=a.doc,E=ys(a);y.iter(function(x){var z=E(x);z!=x.height&&Hn(x,z)})}function Qa(a,y,E,x){var z=a.display;if(!E&&ft(y).getAttribute("cm-not-content")=="true")return null;var ie,se,he=z.lineSpace.getBoundingClientRect();try{ie=y.clientX-he.left,se=y.clientY-he.top}catch(Gt){return null}var ye=Ko(a,ie,se),Ae;if(x&&ye.xRel>0&&(Ae=sn(a.doc,ye.line).text).length==ye.ch){var kt=Oe(Ae,Ae.length,a.options.tabSize)-Ae.length;ye=Ze(ye.line,Math.max(0,Math.round((ie-Za(a.display).left)/Fa(a.display))-kt))}return ye}function Ka(a,y){if(y>=a.display.viewTo||(y-=a.display.viewFrom,y<0))return null;for(var E=a.display.view,x=0;x<E.length;x++)if(y-=E[x].size,y<0)return x}function sa(a,y,E,x){y==null&&(y=a.doc.first),E==null&&(E=a.doc.first+a.doc.size),x||(x=0);var z=a.display;if(x&&E<z.viewTo&&(z.updateLineNumbers==null||z.updateLineNumbers>y)&&(z.updateLineNumbers=y),a.curOp.viewChanged=!0,y>=z.viewTo)mr&&jn(a.doc,y)<z.viewTo&&_a(a);else if(E<=z.viewFrom)mr&&Ln(a.doc,E+x)>z.viewFrom?_a(a):(z.viewFrom+=x,z.viewTo+=x);else if(y<=z.viewFrom&&E>=z.viewTo)_a(a);else if(y<=z.viewFrom){var ie=Fl(a,E,E+x,1);ie?(z.view=z.view.slice(ie.index),z.viewFrom=ie.lineN,z.viewTo+=x):_a(a)}else if(E>=z.viewTo){var se=Fl(a,y,y,-1);se?(z.view=z.view.slice(0,se.index),z.viewTo=se.lineN):_a(a)}else{var he=Fl(a,y,y,-1),ye=Fl(a,E,E+x,1);he&&ye?(z.view=z.view.slice(0,he.index).concat(qi(a,he.lineN,ye.lineN)).concat(z.view.slice(ye.index)),z.viewTo+=x):_a(a)}var Ae=z.externalMeasured;Ae&&(E<Ae.lineN?Ae.lineN+=x:y<Ae.lineN+Ae.size&&(z.externalMeasured=null))}function il(a,y,E){a.curOp.viewChanged=!0;var x=a.display,z=a.display.externalMeasured;if(z&&y>=z.lineN&&y<z.lineN+z.size&&(x.externalMeasured=null),!(y<x.viewFrom||y>=x.viewTo)){var ie=x.view[Ka(a,y)];if(ie.node!=null){var se=ie.changes||(ie.changes=[]);Lt(se,E)==-1&&se.push(E)}}}function _a(a){a.display.viewFrom=a.display.viewTo=a.doc.first,a.display.view=[],a.display.viewOffset=0}function Fl(a,y,E,x){var z=Ka(a,y),ie,se=a.display.view;if(!mr||E==a.doc.first+a.doc.size)return{index:z,lineN:E};for(var he=a.display.viewFrom,ye=0;ye<z;ye++)he+=se[ye].size;if(he!=y){if(x>0){if(z==se.length-1)return null;ie=he+se[z].size-y,z++}else ie=he-y;y+=ie,E+=ie}for(;jn(a.doc,E)!=E;){if(z==(x<0?0:se.length-1))return null;E+=x*se[z-(x<0?1:0)].size,z+=x}return{index:z,lineN:E}}function Hs(a,y,E){var x=a.display,z=x.view;z.length==0||y>=x.viewTo||E<=x.viewFrom?(x.view=qi(a,y,E),x.viewFrom=y):(x.viewFrom>y?x.view=qi(a,y,x.viewFrom).concat(x.view):x.viewFrom<y&&(x.view=x.view.slice(Ka(a,y))),x.viewFrom=y,x.viewTo<E?x.view=x.view.concat(qi(a,x.viewTo,E)):x.viewTo>E&&(x.view=x.view.slice(0,Ka(a,E)))),x.viewTo=E}function bs(a){for(var y=a.display.view,E=0,x=0;x<y.length;x++){var z=y[x];!z.hidden&&(!z.node||z.changes)&&++E}return E}function pl(a){a.display.input.showSelection(a.display.input.prepareSelection())}function rc(a,y){y===void 0&&(y=!0);for(var E=a.doc,x={},z=x.cursors=document.createDocumentFragment(),ie=x.selection=document.createDocumentFragment(),se=0;se<E.sel.ranges.length;se++)if(!(!y&&se==E.sel.primIndex)){var he=E.sel.ranges[se];if(!(he.from().line>=a.display.viewTo||he.to().line<a.display.viewFrom)){var ye=he.empty();(ye||a.options.showCursorWhenSelecting)&&js(a,he.head,z),ye||Pc(a,he,ie)}}return x}function js(a,y,E){var x=aa(a,y,"div",null,null,!a.options.singleCursorHeightPerLine),z=E.appendChild(Ye("div","\xA0","CodeMirror-cursor"));if(z.style.left=x.left+"px",z.style.top=x.top+"px",z.style.height=Math.max(0,x.bottom-x.top)*a.options.cursorHeight+"px",x.other){var ie=E.appendChild(Ye("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));ie.style.display="",ie.style.left=x.other.left+"px",ie.style.top=x.other.top+"px",ie.style.height=(x.other.bottom-x.other.top)*.85+"px"}}function $l(a,y){return a.top-y.top||a.left-y.left}function Pc(a,y,E){var x=a.display,z=a.doc,ie=document.createDocumentFragment(),se=Za(a.display),he=se.left,ye=Math.max(x.sizerWidth,za(a)-x.sizer.offsetLeft)-se.right,Ae=z.direction=="ltr";function kt(Pr,Wr,fi,li){Wr<0&&(Wr=0),Wr=Math.round(Wr),li=Math.round(li),ie.appendChild(Ye("div",null,"CodeMirror-selected","position: absolute; left: "+Pr+`px;
|
|
|
top: `+Wr+"px; width: "+(fi==null?ye-Pr:fi)+`px;
|
|
|
height: `+(li-Wr)+"px"))}function Gt(Pr,Wr,fi){var li=sn(z,Pr),Ri=li.text.length,go,ra;function Bo(Go,Oa){return nl(a,Ze(Pr,Go),"div",li,Oa)}function La(Go,Oa,fa){var qo=Ao(a,li,null,Go),Xo=Oa=="ltr"==(fa=="after")?"left":"right",$o=fa=="after"?qo.begin:qo.end-(/\s/.test(li.text.charAt(qo.end-1))?2:1);return Bo($o,Xo)[Xo]}var Pa=we(li,z.direction);return Ne(Pa,Wr||0,fi==null?Ri:fi,function(Go,Oa,fa,qo){var Xo=fa=="ltr",$o=Bo(Go,Xo?"left":"right"),Da=Bo(Oa-1,Xo?"right":"left"),hs=Wr==null&&Go==0,Al=fi==null&&Oa==Ri,ba=qo==0,cl=!Pa||qo==Pa.length-1;if(Da.top-$o.top<=3){var ia=(Ae?hs:Al)&&ba,Ec=(Ae?Al:hs)&&cl,bl=ia?he:(Xo?$o:Da).left,Xl=Ec?ye:(Xo?Da:$o).right;kt(bl,$o.top,Xl-bl,$o.bottom)}else{var Yl,Sa,ps,Ic;Xo?(Yl=Ae&&hs&&ba?he:$o.left,Sa=Ae?ye:La(Go,fa,"before"),ps=Ae?he:La(Oa,fa,"after"),Ic=Ae&&Al&&cl?ye:Da.right):(Yl=Ae?La(Go,fa,"before"):he,Sa=!Ae&&hs&&ba?ye:$o.right,ps=!Ae&&Al&&cl?he:Da.left,Ic=Ae?La(Oa,fa,"after"):ye),kt(Yl,$o.top,Sa-Yl,$o.bottom),$o.bottom<Da.top&&kt(he,$o.bottom,null,Da.top),kt(ps,Da.top,Ic-ps,Da.bottom)}(!go||$l($o,go)<0)&&(go=$o),$l(Da,go)<0&&(go=Da),(!ra||$l($o,ra)<0)&&(ra=$o),$l(Da,ra)<0&&(ra=Da)}),{start:go,end:ra}}var Sn=y.from(),mn=y.to();if(Sn.line==mn.line)Gt(Sn.line,Sn.ch,mn.ch);else{var Un=sn(z,Sn.line),qn=sn(z,mn.line),pr=Bn(Un)==Bn(qn),Ir=Gt(Sn.line,Sn.ch,pr?Un.text.length+1:null).end,Fr=Gt(mn.line,pr?0:null,mn.ch).start;pr&&(Ir.top<Fr.top-2?(kt(Ir.right,Ir.top,null,Ir.bottom),kt(he,Fr.top,Fr.left,Fr.bottom)):kt(Ir.right,Ir.top,Fr.left-Ir.right,Ir.bottom)),Ir.bottom<Fr.top&&kt(he,Ir.bottom,null,Fr.top)}E.appendChild(ie)}function xs(a){if(a.state.focused){var y=a.display;clearInterval(y.blinker);var E=!0;y.cursorDiv.style.visibility="",a.options.cursorBlinkRate>0?y.blinker=setInterval(function(){a.hasFocus()||Sl(a),y.cursorDiv.style.visibility=(E=!E)?"":"hidden"},a.options.cursorBlinkRate):a.options.cursorBlinkRate<0&&(y.cursorDiv.style.visibility="hidden")}}function ic(a){a.state.focused||(a.display.input.focus(),Ks(a))}function Ws(a){a.state.delayingBlurEvent=!0,setTimeout(function(){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1,Sl(a))},100)}function Ks(a,y){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1),a.options.readOnly!="nocursor"&&(a.state.focused||(Ut(a,"focus",a,y),a.state.focused=!0,de(a.display.wrapper,"CodeMirror-focused"),!a.curOp&&a.display.selForContextMenu!=a.doc.sel&&(a.display.input.reset(),Ee&&setTimeout(function(){return a.display.input.reset(!0)},20)),a.display.input.receivedFocus()),xs(a))}function Sl(a,y){a.state.delayingBlurEvent||(a.state.focused&&(Ut(a,"blur",a,y),a.state.focused=!1,Je(a.display.wrapper,"CodeMirror-focused")),clearInterval(a.display.blinker),setTimeout(function(){a.state.focused||(a.display.shift=!1)},150))}function ri(a){for(var y=a.display,E=y.lineDiv.offsetTop,x=0;x<y.view.length;x++){var z=y.view[x],ie=a.options.lineWrapping,se=void 0,he=0;if(!z.hidden){if(Se&&xe<8){var ye=z.node.offsetTop+z.node.offsetHeight;se=ye-E,E=ye}else{var Ae=z.node.getBoundingClientRect();se=Ae.bottom-Ae.top,!ie&&z.text.firstChild&&(he=z.text.firstChild.getBoundingClientRect().right-Ae.left-1)}var kt=z.line.height-se;if((kt>.005||kt<-.005)&&(Hn(z.line,se),wl(z.line),z.rest))for(var Gt=0;Gt<z.rest.length;Gt++)wl(z.rest[Gt]);if(he>a.display.sizerWidth){var Sn=Math.ceil(he/Fa(a.display));Sn>a.display.maxLineLength&&(a.display.maxLineLength=Sn,a.display.maxLine=z.line,a.display.maxLineChanged=!0)}}}}function wl(a){if(a.widgets)for(var y=0;y<a.widgets.length;++y){var E=a.widgets[y],x=E.node.parentNode;x&&(E.height=x.offsetHeight)}}function ol(a,y,E){var x=E&&E.top!=null?Math.max(0,E.top):a.scroller.scrollTop;x=Math.floor(x-No(a));var z=E&&E.bottom!=null?E.bottom:x+a.wrapper.clientHeight,ie=Pt(y,x),se=Pt(y,z);if(E&&E.ensure){var he=E.ensure.from.line,ye=E.ensure.to.line;he<ie?(ie=he,se=Pt(y,Qr(sn(y,he))+a.wrapper.clientHeight)):Math.min(ye,y.lastLine())>=se&&(ie=Pt(y,Qr(sn(y,ye))-a.wrapper.clientHeight),se=ye)}return{from:ie,to:Math.max(se,ie+1)}}function oc(a,y){if(!St(a,"scrollCursorIntoView")){var E=a.display,x=E.sizer.getBoundingClientRect(),z=null;if(y.top+x.top<0?z=!0:y.bottom+x.top>(window.innerHeight||document.documentElement.clientHeight)&&(z=!1),z!=null&&!At){var ie=Ye("div","\u200B",null,`position: absolute;
|
|
|
top: `+(y.top-E.viewOffset-No(a.display))+`px;
|
|
|
height: `+(y.bottom-y.top+pa(a)+E.barHeight)+`px;
|
|
|
left: `+y.left+"px; width: "+Math.max(2,y.right-y.left)+"px;");a.display.lineSpace.appendChild(ie),ie.scrollIntoView(z),a.display.lineSpace.removeChild(ie)}}}function ac(a,y,E,x){x==null&&(x=0);var z;!a.options.lineWrapping&&y==E&&(y=y.ch?Ze(y.line,y.sticky=="before"?y.ch-1:y.ch,"after"):y,E=y.sticky=="before"?Ze(y.line,y.ch+1,"before"):y);for(var ie=0;ie<5;ie++){var se=!1,he=aa(a,y),ye=!E||E==y?he:aa(a,E);z={left:Math.min(he.left,ye.left),top:Math.min(he.top,ye.top)-x,right:Math.max(he.left,ye.left),bottom:Math.max(he.bottom,ye.bottom)+x};var Ae=Cs(a,z),kt=a.doc.scrollTop,Gt=a.doc.scrollLeft;if(Ae.scrollTop!=null&&(ns(a,Ae.scrollTop),Math.abs(a.doc.scrollTop-kt)>1&&(se=!0)),Ae.scrollLeft!=null&&(Il(a,Ae.scrollLeft),Math.abs(a.doc.scrollLeft-Gt)>1&&(se=!0)),!se)break}return z}function Oc(a,y){var E=Cs(a,y);E.scrollTop!=null&&ns(a,E.scrollTop),E.scrollLeft!=null&&Il(a,E.scrollLeft)}function Cs(a,y){var E=a.display,x=Ca(a.display);y.top<0&&(y.top=0);var z=a.curOp&&a.curOp.scrollTop!=null?a.curOp.scrollTop:E.scroller.scrollTop,ie=Ya(a),se={};y.bottom-y.top>ie&&(y.bottom=y.top+ie);var he=a.doc.height+Ta(E),ye=y.top<x,Ae=y.bottom>he-x;if(y.top<z)se.scrollTop=ye?0:y.top;else if(y.bottom>z+ie){var kt=Math.min(y.top,(Ae?he:y.bottom)-ie);kt!=z&&(se.scrollTop=kt)}var Gt=a.options.fixedGutter?0:E.gutters.offsetWidth,Sn=a.curOp&&a.curOp.scrollLeft!=null?a.curOp.scrollLeft:E.scroller.scrollLeft-Gt,mn=za(a)-E.gutters.offsetWidth,Un=y.right-y.left>mn;return Un&&(y.right=y.left+mn),y.left<10?se.scrollLeft=0:y.left<Sn?se.scrollLeft=Math.max(0,y.left+Gt-(Un?0:10)):y.right>mn+Sn-3&&(se.scrollLeft=y.right+(Un?0:10)-mn),se}function _s(a,y){y!=null&&(Ss(a),a.curOp.scrollTop=(a.curOp.scrollTop==null?a.doc.scrollTop:a.curOp.scrollTop)+y)}function El(a){Ss(a);var y=a.getCursor();a.curOp.scrollToPos={from:y,to:y,margin:a.options.cursorScrollMargin}}function ts(a,y,E){(y!=null||E!=null)&&Ss(a),y!=null&&(a.curOp.scrollLeft=y),E!=null&&(a.curOp.scrollTop=E)}function lc(a,y){Ss(a),a.curOp.scrollToPos=y}function Ss(a){var y=a.curOp.scrollToPos;if(y){a.curOp.scrollToPos=null;var E=Ki(a,y.from),x=Ki(a,y.to);Vs(a,E,x,y.margin)}}function Vs(a,y,E,x){var z=Cs(a,{left:Math.min(y.left,E.left),top:Math.min(y.top,E.top)-x,right:Math.max(y.right,E.right),bottom:Math.max(y.bottom,E.bottom)+x});ts(a,z.scrollLeft,z.scrollTop)}function ns(a,y){Math.abs(a.doc.scrollTop-y)<2||(b||Es(a,{top:y}),Us(a,y,!0),b&&Es(a),jl(a,100))}function Us(a,y,E){y=Math.max(0,Math.min(a.display.scroller.scrollHeight-a.display.scroller.clientHeight,y)),!(a.display.scroller.scrollTop==y&&!E)&&(a.doc.scrollTop=y,a.display.scrollbars.setScrollTop(y),a.display.scroller.scrollTop!=y&&(a.display.scroller.scrollTop=y))}function Il(a,y,E,x){y=Math.max(0,Math.min(y,a.display.scroller.scrollWidth-a.display.scroller.clientWidth)),!((E?y==a.doc.scrollLeft:Math.abs(a.doc.scrollLeft-y)<2)&&!x)&&(a.doc.scrollLeft=y,Ue(a),a.display.scroller.scrollLeft!=y&&(a.display.scroller.scrollLeft=y),a.display.scrollbars.setScrollLeft(y))}function Zl(a){var y=a.display,E=y.gutters.offsetWidth,x=Math.round(a.doc.height+Ta(a.display));return{clientHeight:y.scroller.clientHeight,viewHeight:y.wrapper.clientHeight,scrollWidth:y.scroller.scrollWidth,clientWidth:y.scroller.clientWidth,viewWidth:y.wrapper.clientWidth,barLeft:a.options.fixedGutter?E:0,docHeight:x,scrollHeight:x+pa(a)+y.barHeight,nativeBarWidth:y.nativeBarWidth,gutterWidth:E}}var Pl=function(a,y,E){this.cm=E;var x=this.vert=Ye("div",[Ye("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),z=this.horiz=Ye("div",[Ye("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");x.tabIndex=z.tabIndex=-1,a(x),a(z),Zt(x,"scroll",function(){x.clientHeight&&y(x.scrollTop,"vertical")}),Zt(z,"scroll",function(){z.clientWidth&&y(z.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,Se&&xe<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Pl.prototype.update=function(a){var y=a.scrollWidth>a.clientWidth+1,E=a.scrollHeight>a.clientHeight+1,x=a.nativeBarWidth;if(E){this.vert.style.display="block",this.vert.style.bottom=y?x+"px":"0";var z=a.viewHeight-(y?x:0);this.vert.firstChild.style.height=Math.max(0,a.scrollHeight-a.clientHeight+z)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(y){this.horiz.style.display="block",this.horiz.style.right=E?x+"px":"0",this.horiz.style.left=a.barLeft+"px";var ie=a.viewWidth-a.barLeft-(E?x: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&&(x==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:E?x:0,bottom:y?x:0}},Pl.prototype.setScrollLeft=function(a){this.horiz.scrollLeft!=a&&(this.horiz.scrollLeft=a),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Pl.prototype.setScrollTop=function(a){this.vert.scrollTop!=a&&(this.vert.scrollTop=a),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Pl.prototype.zeroWidthHack=function(){var a=ke&&!Te?"12px":"18px";this.horiz.style.height=this.vert.style.width=a,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new pe,this.disableVert=new pe},Pl.prototype.enableZeroWidthBar=function(a,y,E){a.style.pointerEvents="auto";function x(){var z=a.getBoundingClientRect(),ie=E=="vert"?document.elementFromPoint(z.right-1,(z.top+z.bottom)/2):document.elementFromPoint((z.right+z.left)/2,z.bottom-1);ie!=a?a.style.pointerEvents="none":y.set(1e3,x)}y.set(1e3,x)},Pl.prototype.clear=function(){var a=this.horiz.parentNode;a.removeChild(this.horiz),a.removeChild(this.vert)};var zl=function(){};zl.prototype.update=function(){return{bottom:0,right:0}},zl.prototype.setScrollLeft=function(){},zl.prototype.setScrollTop=function(){},zl.prototype.clear=function(){};function Hl(a,y){y||(y=Zl(a));var E=a.display.barWidth,x=a.display.barHeight;Gs(a,y);for(var z=0;z<4&&E!=a.display.barWidth||x!=a.display.barHeight;z++)E!=a.display.barWidth&&a.options.lineWrapping&&ri(a),Gs(a,Zl(a)),E=a.display.barWidth,x=a.display.barHeight}function Gs(a,y){var E=a.display,x=E.scrollbars.update(y);E.sizer.style.paddingRight=(E.barWidth=x.right)+"px",E.sizer.style.paddingBottom=(E.barHeight=x.bottom)+"px",E.heightForcer.style.borderBottom=x.bottom+"px solid transparent",x.right&&x.bottom?(E.scrollbarFiller.style.display="block",E.scrollbarFiller.style.height=x.bottom+"px",E.scrollbarFiller.style.width=x.right+"px"):E.scrollbarFiller.style.display="",x.bottom&&a.options.coverGutterNextToScrollbar&&a.options.fixedGutter?(E.gutterFiller.style.display="block",E.gutterFiller.style.height=x.bottom+"px",E.gutterFiller.style.width=y.gutterWidth+"px"):E.gutterFiller.style.display=""}var sc={native:Pl,null:zl};function Xs(a){a.display.scrollbars&&(a.display.scrollbars.clear(),a.display.scrollbars.addClass&&Je(a.display.wrapper,a.display.scrollbars.addClass)),a.display.scrollbars=new sc[a.options.scrollbarStyle](function(y){a.display.wrapper.insertBefore(y,a.display.scrollbarFiller),Zt(y,"mousedown",function(){a.state.focused&&setTimeout(function(){return a.display.input.focus()},0)}),y.setAttribute("cm-not-content","true")},function(y,E){E=="horizontal"?Il(a,y):ns(a,y)},a),a.display.scrollbars.addClass&&de(a.display.wrapper,a.display.scrollbars.addClass)}var Dc=0;function ml(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:++Dc},Wi(a.curOp)}function Ol(a){var y=a.curOp;y&&gi(y,function(E){for(var x=0;x<E.ops.length;x++)E.ops[x].cm.curOp=null;cc(E)})}function cc(a){for(var y=a.ops,E=0;E<y.length;E++)Tc(y[E]);for(var x=0;x<y.length;x++)uc(y[x]);for(var z=0;z<y.length;z++)Mc(y[z]);for(var ie=0;ie<y.length;ie++)dc(y[ie]);for(var se=0;se<y.length;se++)Nc(y[se])}function Tc(a){var y=a.cm,E=y.display;fc(y),a.updateMaxLine&&pi(y),a.mustUpdate=a.viewChanged||a.forceUpdate||a.scrollTop!=null||a.scrollToPos&&(a.scrollToPos.from.line<E.viewFrom||a.scrollToPos.to.line>=E.viewTo)||E.maxLineChanged&&y.options.lineWrapping,a.update=a.mustUpdate&&new rs(y,a.mustUpdate&&{top:a.scrollTop,ensure:a.scrollToPos},a.forceUpdate)}function uc(a){a.updatedDisplay=a.mustUpdate&&ws(a.cm,a.update)}function Mc(a){var y=a.cm,E=y.display;a.updatedDisplay&&ri(y),a.barMeasure=Zl(y),E.maxLineChanged&&!y.options.lineWrapping&&(a.adjustWidthTo=Ql(y,E.maxLine,E.maxLine.text.length).left+3,y.display.sizerWidth=a.adjustWidthTo,a.barMeasure.scrollWidth=Math.max(E.scroller.clientWidth,E.sizer.offsetLeft+a.adjustWidthTo+pa(y)+y.display.barWidth),a.maxScrollLeft=Math.max(0,E.sizer.offsetLeft+a.adjustWidthTo-za(y))),(a.updatedDisplay||a.selectionChanged)&&(a.preparedSelection=E.input.prepareSelection())}function dc(a){var y=a.cm;a.adjustWidthTo!=null&&(y.display.sizer.style.minWidth=a.adjustWidthTo+"px",a.maxScrollLeft<y.doc.scrollLeft&&Il(y,Math.min(y.display.scroller.scrollLeft,a.maxScrollLeft),!0),y.display.maxLineChanged=!1);var E=a.focus&&a.focus==_e();a.preparedSelection&&y.display.input.showSelection(a.preparedSelection,E),(a.updatedDisplay||a.startHeight!=y.doc.height)&&Hl(y,a.barMeasure),a.updatedDisplay&&me(y,a.barMeasure),a.selectionChanged&&xs(y),y.state.focused&&a.updateInput&&y.display.input.reset(a.typing),E&&ic(a.cm)}function Nc(a){var y=a.cm,E=y.display,x=y.doc;if(a.updatedDisplay&&Va(y,a.update),E.wheelStartX!=null&&(a.scrollTop!=null||a.scrollLeft!=null||a.scrollToPos)&&(E.wheelStartX=E.wheelStartY=null),a.scrollTop!=null&&Us(y,a.scrollTop,a.forceScroll),a.scrollLeft!=null&&Il(y,a.scrollLeft,!0,!0),a.scrollToPos){var z=ac(y,xt(x,a.scrollToPos.from),xt(x,a.scrollToPos.to),a.scrollToPos.margin);oc(y,z)}var ie=a.maybeHiddenMarkers,se=a.maybeUnhiddenMarkers;if(ie)for(var he=0;he<ie.length;++he)ie[he].lines.length||Ut(ie[he],"hide");if(se)for(var ye=0;ye<se.length;++ye)se[ye].lines.length&&Ut(se[ye],"unhide");E.wrapper.offsetHeight&&(x.scrollTop=y.display.scroller.scrollTop),a.changeObjs&&Ut(y,"changes",y,a.changeObjs),a.update&&a.update.finish()}function ma(a,y){if(a.curOp)return y();ml(a);try{return y()}finally{Ol(a)}}function Qo(a,y){return function(){if(a.curOp)return y.apply(a,arguments);ml(a);try{return y.apply(a,arguments)}finally{Ol(a)}}}function ca(a){return function(){if(this.curOp)return a.apply(this,arguments);ml(this);try{return a.apply(this,arguments)}finally{Ol(this)}}}function Vo(a){return function(){var y=this.cm;if(!y||y.curOp)return a.apply(this,arguments);ml(y);try{return a.apply(this,arguments)}finally{Ol(y)}}}function jl(a,y){a.doc.highlightFrontier<a.display.viewTo&&a.state.highlight.set(y,st(Ys,a))}function Ys(a){var y=a.doc;if(!(y.highlightFrontier>=a.display.viewTo)){var E=+new Date+a.options.workTime,x=sr(a,y.highlightFrontier),z=[];y.iter(x.line,Math.min(y.first+y.size,a.display.viewTo+500),function(ie){if(x.line>=a.display.viewFrom){var se=ie.styles,he=ie.text.length>a.options.maxHighlightLength?Zn(y.mode,x.state):null,ye=An(a,ie,x,!0);he&&(x.state=he),ie.styles=ye.styles;var Ae=ie.styleClasses,kt=ye.classes;kt?ie.styleClasses=kt:Ae&&(ie.styleClasses=null);for(var Gt=!se||se.length!=ie.styles.length||Ae!=kt&&(!Ae||!kt||Ae.bgClass!=kt.bgClass||Ae.textClass!=kt.textClass),Sn=0;!Gt&&Sn<se.length;++Sn)Gt=se[Sn]!=ie.styles[Sn];Gt&&z.push(x.line),ie.stateAfter=x.save(),x.nextLine()}else ie.text.length<=a.options.maxHighlightLength&&fr(a,ie.text,x),ie.stateAfter=x.line%5==0?x.save():null,x.nextLine();if(+new Date>E)return jl(a,a.options.workDelay),!0}),y.highlightFrontier=x.line,y.modeFrontier=Math.max(y.modeFrontier,x.line),z.length&&ma(a,function(){for(var ie=0;ie<z.length;ie++)il(a,z[ie],"text")})}}var rs=function(a,y,E){var x=a.display;this.viewport=y,this.visible=ol(x,a.doc,y),this.editorIsHidden=!x.wrapper.offsetWidth,this.wrapperHeight=x.wrapper.clientHeight,this.wrapperWidth=x.wrapper.clientWidth,this.oldDisplayWidth=za(a),this.force=E,this.dims=rl(a),this.events=[]};rs.prototype.signal=function(a,y){_t(a,y)&&this.events.push(arguments)},rs.prototype.finish=function(){for(var a=0;a<this.events.length;a++)Ut.apply(null,this.events[a])};function fc(a){var y=a.display;!y.scrollbarsClipped&&y.scroller.offsetWidth&&(y.nativeBarWidth=y.scroller.offsetWidth-y.scroller.clientWidth,y.heightForcer.style.height=pa(a)+"px",y.sizer.style.marginBottom=-y.nativeBarWidth+"px",y.sizer.style.borderRightWidth=pa(a)+"px",y.scrollbarsClipped=!0)}function hc(a){if(a.hasFocus())return null;var y=_e();if(!y||!at(a.display.lineDiv,y))return null;var E={activeElt:y};if(window.getSelection){var x=window.getSelection();x.anchorNode&&x.extend&&at(a.display.lineDiv,x.anchorNode)&&(E.anchorNode=x.anchorNode,E.anchorOffset=x.anchorOffset,E.focusNode=x.focusNode,E.focusOffset=x.focusOffset)}return E}function pc(a){if(!(!a||!a.activeElt||a.activeElt==_e())&&(a.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(a.activeElt.nodeName)&&a.anchorNode&&at(document.body,a.anchorNode)&&at(document.body,a.focusNode))){var y=window.getSelection(),E=document.createRange();E.setEnd(a.anchorNode,a.anchorOffset),E.collapse(!1),y.removeAllRanges(),y.addRange(E),y.extend(a.focusNode,a.focusOffset)}}function ws(a,y){var E=a.display,x=a.doc;if(y.editorIsHidden)return _a(a),!1;if(!y.force&&y.visible.from>=E.viewFrom&&y.visible.to<=E.viewTo&&(E.updateLineNumbers==null||E.updateLineNumbers>=E.viewTo)&&E.renderedView==E.view&&bs(a)==0)return!1;dt(a)&&(_a(a),y.dims=rl(a));var z=x.first+x.size,ie=Math.max(y.visible.from-a.options.viewportMargin,x.first),se=Math.min(z,y.visible.to+a.options.viewportMargin);E.viewFrom<ie&&ie-E.viewFrom<20&&(ie=Math.max(x.first,E.viewFrom)),E.viewTo>se&&E.viewTo-se<20&&(se=Math.min(z,E.viewTo)),mr&&(ie=jn(a.doc,ie),se=Ln(a.doc,se));var he=ie!=E.viewFrom||se!=E.viewTo||E.lastWrapHeight!=y.wrapperHeight||E.lastWrapWidth!=y.wrapperWidth;Hs(a,ie,se),E.viewOffset=Qr(sn(a.doc,E.viewFrom)),a.display.mover.style.top=E.viewOffset+"px";var ye=bs(a);if(!he&&ye==0&&!y.force&&E.renderedView==E.view&&(E.updateLineNumbers==null||E.updateLineNumbers>=E.viewTo))return!1;var Ae=hc(a);return ye>4&&(E.lineDiv.style.display="none"),mc(a,E.updateLineNumbers,y.dims),ye>4&&(E.lineDiv.style.display=""),E.renderedView=E.view,pc(Ae),$t(E.cursorDiv),$t(E.selectionDiv),E.gutters.style.height=E.sizer.style.minHeight=0,he&&(E.lastWrapHeight=y.wrapperHeight,E.lastWrapWidth=y.wrapperWidth,jl(a,400)),E.updateLineNumbers=null,!0}function Va(a,y){for(var E=y.viewport,x=!0;;x=!1){if(!x||!a.options.lineWrapping||y.oldDisplayWidth==za(a)){if(E&&E.top!=null&&(E={top:Math.min(a.doc.height+Ta(a.display)-Ya(a),E.top)}),y.visible=ol(a.display,a.doc,E),y.visible.from>=a.display.viewFrom&&y.visible.to<=a.display.viewTo)break}else x&&(y.visible=ol(a.display,a.doc,E));if(!ws(a,y))break;ri(a);var z=Zl(a);pl(a),Hl(a,z),me(a,z),y.force=!1}y.signal(a,"update",a),(a.display.viewFrom!=a.display.reportedViewFrom||a.display.viewTo!=a.display.reportedViewTo)&&(y.signal(a,"viewportChange",a,a.display.viewFrom,a.display.viewTo),a.display.reportedViewFrom=a.display.viewFrom,a.display.reportedViewTo=a.display.viewTo)}function Es(a,y){var E=new rs(a,y);if(ws(a,E)){ri(a),Va(a,E);var x=Zl(a);pl(a),Hl(a,x),me(a,x),E.finish()}}function mc(a,y,E){var x=a.display,z=a.options.lineNumbers,ie=x.lineDiv,se=ie.firstChild;function he(Un){var qn=Un.nextSibling;return Ee&&ke&&a.display.currentWheelTarget==Un?Un.style.display="none":Un.parentNode.removeChild(Un),qn}for(var ye=x.view,Ae=x.viewFrom,kt=0;kt<ye.length;kt++){var Gt=ye[kt];if(!Gt.hidden)if(!Gt.node||Gt.node.parentNode!=ie){var Sn=ui(a,Gt,Ae,E);ie.insertBefore(Sn,se)}else{for(;se!=Gt.node;)se=he(se);var mn=z&&y!=null&&y<=Ae&&Gt.lineNumber;Gt.changes&&(Lt(Gt.changes,"gutter")>-1&&(mn=!1),ha(a,Gt,Ae,E)),mn&&($t(Gt.lineNumber),Gt.lineNumber.appendChild(document.createTextNode(vt(a.options,Ae)))),se=Gt.node.nextSibling}Ae+=Gt.size}for(;se;)se=he(se)}function ve(a){var y=a.gutters.offsetWidth;a.sizer.style.marginLeft=y+"px"}function me(a,y){a.display.sizer.style.minHeight=y.docHeight+"px",a.display.heightForcer.style.top=y.docHeight+"px",a.display.gutters.style.height=y.docHeight+a.display.barHeight+pa(a)+"px"}function Ue(a){var y=a.display,E=y.view;if(!(!y.alignWidgets&&(!y.gutters.firstChild||!a.options.fixedGutter))){for(var x=gs(y)-y.scroller.scrollLeft+a.doc.scrollLeft,z=y.gutters.offsetWidth,ie=x+"px",se=0;se<E.length;se++)if(!E[se].hidden){a.options.fixedGutter&&(E[se].gutter&&(E[se].gutter.style.left=ie),E[se].gutterBackground&&(E[se].gutterBackground.style.left=ie));var he=E[se].alignable;if(he)for(var ye=0;ye<he.length;ye++)he[ye].style.left=ie}a.options.fixedGutter&&(y.gutters.style.left=x+z+"px")}}function dt(a){if(!a.options.lineNumbers)return!1;var y=a.doc,E=vt(a.options,y.first+y.size-1),x=a.display;if(E.length!=x.lineNumChars){var z=x.measure.appendChild(Ye("div",[Ye("div",E)],"CodeMirror-linenumber CodeMirror-gutter-elt")),ie=z.firstChild.offsetWidth,se=z.offsetWidth-ie;return x.lineGutter.style.width="",x.lineNumInnerWidth=Math.max(ie,x.lineGutter.offsetWidth-se)+1,x.lineNumWidth=x.lineNumInnerWidth+se,x.lineNumChars=x.lineNumInnerWidth?E.length:-1,x.lineGutter.style.width=x.lineNumWidth+"px",ve(a.display),!0}return!1}function Mt(a,y){for(var E=[],x=!1,z=0;z<a.length;z++){var ie=a[z],se=null;if(typeof ie!="string"&&(se=ie.style,ie=ie.className),ie=="CodeMirror-linenumbers")if(y)x=!0;else continue;E.push({className:ie,style:se})}return y&&!x&&E.push({className:"CodeMirror-linenumbers",style:null}),E}function Ht(a){var y=a.gutters,E=a.gutterSpecs;$t(y),a.lineGutter=null;for(var x=0;x<E.length;++x){var z=E[x],ie=z.className,se=z.style,he=y.appendChild(Ye("div",null,"CodeMirror-gutter "+ie));se&&(he.style.cssText=se),ie=="CodeMirror-linenumbers"&&(a.lineGutter=he,he.style.width=(a.lineNumWidth||1)+"px")}y.style.display=E.length?"":"none",ve(a)}function ln(a){Ht(a.display),sa(a),Ue(a)}function qt(a,y,E,x){var z=this;this.input=E,z.scrollbarFiller=Ye("div",null,"CodeMirror-scrollbar-filler"),z.scrollbarFiller.setAttribute("cm-not-content","true"),z.gutterFiller=Ye("div",null,"CodeMirror-gutter-filler"),z.gutterFiller.setAttribute("cm-not-content","true"),z.lineDiv=rt("div",null,"CodeMirror-code"),z.selectionDiv=Ye("div",null,null,"position: relative; z-index: 1"),z.cursorDiv=Ye("div",null,"CodeMirror-cursors"),z.measure=Ye("div",null,"CodeMirror-measure"),z.lineMeasure=Ye("div",null,"CodeMirror-measure"),z.lineSpace=rt("div",[z.measure,z.lineMeasure,z.selectionDiv,z.cursorDiv,z.lineDiv],null,"position: relative; outline: none");var ie=rt("div",[z.lineSpace],"CodeMirror-lines");z.mover=Ye("div",[ie],null,"position: relative"),z.sizer=Ye("div",[z.mover],"CodeMirror-sizer"),z.sizerWidth=null,z.heightForcer=Ye("div",null,null,"position: absolute; height: "+en+"px; width: 1px;"),z.gutters=Ye("div",null,"CodeMirror-gutters"),z.lineGutter=null,z.scroller=Ye("div",[z.sizer,z.heightForcer,z.gutters],"CodeMirror-scroll"),z.scroller.setAttribute("tabIndex","-1"),z.wrapper=Ye("div",[z.scrollbarFiller,z.gutterFiller,z.scroller],"CodeMirror"),Se&&xe<8&&(z.gutters.style.zIndex=-1,z.scroller.style.paddingRight=0),!Ee&&!(b&&We)&&(z.scroller.draggable=!0),a&&(a.appendChild?a.appendChild(z.wrapper):a(z.wrapper)),z.viewFrom=z.viewTo=y.first,z.reportedViewFrom=z.reportedViewTo=y.first,z.view=[],z.renderedView=null,z.externalMeasured=null,z.viewOffset=0,z.lastWrapHeight=z.lastWrapWidth=0,z.updateLineNumbers=null,z.nativeBarWidth=z.barHeight=z.barWidth=0,z.scrollbarsClipped=!1,z.lineNumWidth=z.lineNumInnerWidth=z.lineNumChars=null,z.alignWidgets=!1,z.cachedCharWidth=z.cachedTextHeight=z.cachedPaddingH=null,z.maxLine=null,z.maxLineLength=0,z.maxLineChanged=!1,z.wheelDX=z.wheelDY=z.wheelStartX=z.wheelStartY=null,z.shift=!1,z.selForContextMenu=null,z.activeTouch=null,z.gutterSpecs=Mt(x.gutters,x.lineNumbers),Ht(z),E.init(z)}var fn=0,cn=null;Se?cn=-.53:b?cn=15:Ie?cn=-.7:et&&(cn=-1/3);function Rn(a){var y=a.wheelDeltaX,E=a.wheelDeltaY;return y==null&&a.detail&&a.axis==a.HORIZONTAL_AXIS&&(y=a.detail),E==null&&a.detail&&a.axis==a.VERTICAL_AXIS?E=a.detail:E==null&&(E=a.wheelDelta),{x:y,y:E}}function Dn(a){var y=Rn(a);return y.x*=cn,y.y*=cn,y}function Pn(a,y){var E=Rn(y),x=E.x,z=E.y,ie=a.display,se=ie.scroller,he=se.scrollWidth>se.clientWidth,ye=se.scrollHeight>se.clientHeight;if(x&&he||z&&ye){if(z&&ke&&Ee){e:for(var Ae=y.target,kt=ie.view;Ae!=se;Ae=Ae.parentNode)for(var Gt=0;Gt<kt.length;Gt++)if(kt[Gt].node==Ae){a.display.currentWheelTarget=Ae;break e}}if(x&&!b&&!ue&&cn!=null){z&&ye&&ns(a,Math.max(0,se.scrollTop+z*cn)),Il(a,Math.max(0,se.scrollLeft+x*cn)),(!z||z&&ye)&&mt(y),ie.wheelStartX=null;return}if(z&&cn!=null){var Sn=z*cn,mn=a.doc.scrollTop,Un=mn+ie.wrapper.clientHeight;Sn<0?mn=Math.max(0,mn+Sn-50):Un=Math.min(a.doc.height,Un+Sn+50),Es(a,{top:mn,bottom:Un})}fn<20&&(ie.wheelStartX==null?(ie.wheelStartX=se.scrollLeft,ie.wheelStartY=se.scrollTop,ie.wheelDX=x,ie.wheelDY=z,setTimeout(function(){if(ie.wheelStartX!=null){var qn=se.scrollLeft-ie.wheelStartX,pr=se.scrollTop-ie.wheelStartY,Ir=pr&&ie.wheelDY&&pr/ie.wheelDY||qn&&ie.wheelDX&&qn/ie.wheelDX;ie.wheelStartX=ie.wheelStartY=null,Ir&&(cn=(cn*fn+Ir)/(fn+1),++fn)}},200)):(ie.wheelDX+=x,ie.wheelDY+=z))}}var Cn=function(a,y){this.ranges=a,this.primIndex=y};Cn.prototype.primary=function(){return this.ranges[this.primIndex]},Cn.prototype.equals=function(a){if(a==this)return!0;if(a.primIndex!=this.primIndex||a.ranges.length!=this.ranges.length)return!1;for(var y=0;y<this.ranges.length;y++){var E=this.ranges[y],x=a.ranges[y];if(!Pe(E.anchor,x.anchor)||!Pe(E.head,x.head))return!1}return!0},Cn.prototype.deepCopy=function(){for(var a=[],y=0;y<this.ranges.length;y++)a[y]=new bn(It(this.ranges[y].anchor),It(this.ranges[y].head));return new Cn(a,this.primIndex)},Cn.prototype.somethingSelected=function(){for(var a=0;a<this.ranges.length;a++)if(!this.ranges[a].empty())return!0;return!1},Cn.prototype.contains=function(a,y){y||(y=a);for(var E=0;E<this.ranges.length;E++){var x=this.ranges[E];if(bt(y,x.from())>=0&&bt(a,x.to())<=0)return E}return-1};var bn=function(a,y){this.anchor=a,this.head=y};bn.prototype.from=function(){return Kt(this.anchor,this.head)},bn.prototype.to=function(){return Bt(this.anchor,this.head)},bn.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function rr(a,y,E){var x=a&&a.options.selectionsMayTouch,z=y[E];y.sort(function(Sn,mn){return bt(Sn.from(),mn.from())}),E=Lt(y,z);for(var ie=1;ie<y.length;ie++){var se=y[ie],he=y[ie-1],ye=bt(he.to(),se.from());if(x&&!se.empty()?ye>0:ye>=0){var Ae=Kt(he.from(),se.from()),kt=Bt(he.to(),se.to()),Gt=he.empty()?se.from()==se.head:he.from()==he.head;ie<=E&&--E,y.splice(--ie,2,new bn(Gt?kt:Ae,Gt?Ae:kt))}}return new Cn(y,E)}function _n(a,y){return new Cn([new bn(a,y||a)],0)}function or(a){return a.text?Ze(a.from.line+a.text.length-1,Qe(a.text).length+(a.text.length==1?a.from.ch:0)):a.to}function dr(a,y){if(bt(a,y.from)<0)return a;if(bt(a,y.to)<=0)return or(y);var E=a.line+y.text.length-(y.to.line-y.from.line)-1,x=a.ch;return a.line==y.to.line&&(x+=or(y).ch-y.to.ch),Ze(E,x)}function ar(a,y){for(var E=[],x=0;x<a.sel.ranges.length;x++){var z=a.sel.ranges[x];E.push(new bn(dr(z.anchor,y),dr(z.head,y)))}return rr(a.cm,E,a.sel.primIndex)}function vr(a,y,E){return a.line==y.line?Ze(E.line,a.ch-y.ch+E.ch):Ze(E.line+(a.line-y.line),a.ch)}function Sr(a,y,E){for(var x=[],z=Ze(a.first,0),ie=z,se=0;se<y.length;se++){var he=y[se],ye=vr(he.from,z,ie),Ae=vr(or(he),z,ie);if(z=he.to,ie=Ae,E=="around"){var kt=a.sel.ranges[se],Gt=bt(kt.head,kt.anchor)<0;x[se]=new bn(Gt?Ae:ye,Gt?ye:Ae)}else x[se]=new bn(ye,ye)}return new Cn(x,a.sel.primIndex)}function Nr(a){a.doc.mode=$n(a.options,a.doc.modeOption),Dr(a)}function Dr(a){a.doc.iter(function(y){y.stateAfter&&(y.stateAfter=null),y.styles&&(y.styles=null)}),a.doc.modeFrontier=a.doc.highlightFrontier=a.doc.first,jl(a,100),a.state.modeGen++,a.curOp&&sa(a)}function mi(a,y){return y.from.ch==0&&y.to.ch==0&&Qe(y.text)==""&&(!a.cm||a.cm.options.wholeLineUpdateBefore)}function Gr(a,y,E,x){function z(Fr){return E?E[Fr]:null}function ie(Fr,Pr,Wr){Ii(Fr,Pr,Wr,x),Mi(Fr,"change",Fr,y)}function se(Fr,Pr){for(var Wr=[],fi=Fr;fi<Pr;++fi)Wr.push(new Ni(Ae[fi],z(fi),x));return Wr}var he=y.from,ye=y.to,Ae=y.text,kt=sn(a,he.line),Gt=sn(a,ye.line),Sn=Qe(Ae),mn=z(Ae.length-1),Un=ye.line-he.line;if(y.full)a.insert(0,se(0,Ae.length)),a.remove(Ae.length,a.size-Ae.length);else if(mi(a,y)){var qn=se(0,Ae.length-1);ie(Gt,Gt.text,mn),Un&&a.remove(he.line,Un),qn.length&&a.insert(he.line,qn)}else if(kt==Gt)if(Ae.length==1)ie(kt,kt.text.slice(0,he.ch)+Sn+kt.text.slice(ye.ch),mn);else{var pr=se(1,Ae.length-1);pr.push(new Ni(Sn+kt.text.slice(ye.ch),mn,x)),ie(kt,kt.text.slice(0,he.ch)+Ae[0],z(0)),a.insert(he.line+1,pr)}else if(Ae.length==1)ie(kt,kt.text.slice(0,he.ch)+Ae[0]+Gt.text.slice(ye.ch),z(0)),a.remove(he.line+1,Un);else{ie(kt,kt.text.slice(0,he.ch)+Ae[0],z(0)),ie(Gt,Sn+Gt.text.slice(ye.ch),mn);var Ir=se(1,Ae.length-1);Un>1&&a.remove(he.line+1,Un-1),a.insert(he.line+1,Ir)}Mi(a,"change",a,y)}function zr(a,y,E){function x(z,ie,se){if(z.linked)for(var he=0;he<z.linked.length;++he){var ye=z.linked[he];if(ye.doc!=ie){var Ae=se&&ye.sharedHist;E&&!Ae||(y(ye.doc,Ae),x(ye.doc,z,Ae))}}}x(a,null,!0)}function ii(a,y){if(y.cm)throw new Error("This document is already in use.");a.doc=y,y.cm=a,Cl(a),Nr(a),Ar(a),a.options.lineWrapping||pi(a),a.options.mode=y.modeOption,sa(a)}function Ar(a){(a.doc.direction=="rtl"?de:Je)(a.display.lineDiv,"CodeMirror-rtl")}function kr(a){ma(a,function(){Ar(a),sa(a)})}function gr(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 hr(a,y){var E={from:It(y.from),to:or(y),text:yn(a,y.from,y.to)};return yo(a,E,y.from.line,y.to.line+1),zr(a,function(x){return yo(x,E,y.from.line,y.to.line+1)},!0),E}function Mr(a){for(;a.length;){var y=Qe(a);if(y.ranges)a.pop();else break}}function Br(a,y){if(y)return Mr(a.done),Qe(a.done);if(a.done.length&&!Qe(a.done).ranges)return Qe(a.done);if(a.done.length>1&&!a.done[a.done.length-2].ranges)return a.done.pop(),Qe(a.done)}function Xr(a,y,E,x){var z=a.history;z.undone.length=0;var ie=+new Date,se,he;if((z.lastOp==x||z.lastOrigin==y.origin&&y.origin&&(y.origin.charAt(0)=="+"&&z.lastModTime>ie-(a.cm?a.cm.options.historyEventDelay:500)||y.origin.charAt(0)=="*"))&&(se=Br(z,z.lastOp==x)))he=Qe(se.changes),bt(y.from,y.to)==0&&bt(y.from,he.to)==0?he.to=or(y):se.changes.push(hr(a,y));else{var ye=Qe(z.done);for((!ye||!ye.ranges)&&Oi(a.sel,z.done),se={changes:[hr(a,y)],generation:z.generation},z.done.push(se);z.done.length>z.undoDepth;)z.done.shift(),z.done[0].ranges||z.done.shift()}z.done.push(E),z.generation=++z.maxGeneration,z.lastModTime=z.lastSelTime=ie,z.lastOp=z.lastSelOp=x,z.lastOrigin=z.lastSelOrigin=y.origin,he||Ut(a,"historyAdded")}function xr(a,y,E,x){var z=y.charAt(0);return z=="*"||z=="+"&&E.ranges.length==x.ranges.length&&E.somethingSelected()==x.somethingSelected()&&new Date-a.history.lastSelTime<=(a.cm?a.cm.options.historyEventDelay:500)}function wi(a,y,E,x){var z=a.history,ie=x&&x.origin;E==z.lastSelOp||ie&&z.lastSelOrigin==ie&&(z.lastModTime==z.lastSelTime&&z.lastOrigin==ie||xr(a,ie,Qe(z.done),y))?z.done[z.done.length-1]=y:Oi(y,z.done),z.lastSelTime=+new Date,z.lastSelOrigin=ie,z.lastSelOp=E,x&&x.clearRedo!==!1&&Mr(z.undone)}function Oi(a,y){var E=Qe(y);E&&E.ranges&&E.equals(a)||y.push(a)}function yo(a,y,E,x){var z=y["spans_"+a.id],ie=0;a.iter(Math.max(a.first,E),Math.min(a.first+a.size,x),function(se){se.markedSpans&&((z||(z=y["spans_"+a.id]={}))[ie]=se.markedSpans),++ie})}function fo(a){if(!a)return null;for(var y,E=0;E<a.length;++E)a[E].marker.explicitlyCleared?y||(y=a.slice(0,E)):y&&y.push(a[E]);return y?y.length?y:null:a}function ro(a,y){var E=y["spans_"+a.id];if(!E)return null;for(var x=[],z=0;z<y.text.length;++z)x.push(fo(E[z]));return x}function ho(a,y){var E=ro(a,y),x=ti(a,y);if(!E)return x;if(!x)return E;for(var z=0;z<E.length;++z){var ie=E[z],se=x[z];if(ie&&se)e:for(var he=0;he<se.length;++he){for(var ye=se[he],Ae=0;Ae<ie.length;++Ae)if(ie[Ae].marker==ye.marker)continue e;ie.push(ye)}else se&&(E[z]=se)}return E}function So(a,y,E){for(var x=[],z=0;z<a.length;++z){var ie=a[z];if(ie.ranges){x.push(E?Cn.prototype.deepCopy.call(ie):ie);continue}var se=ie.changes,he=[];x.push({changes:he});for(var ye=0;ye<se.length;++ye){var Ae=se[ye],kt=void 0;if(he.push({from:Ae.from,to:Ae.to,text:Ae.text}),y)for(var Gt in Ae)(kt=Gt.match(/^spans_(\d+)$/))&&Lt(y,Number(kt[1]))>-1&&(Qe(he)[Gt]=Ae[Gt],delete Ae[Gt])}}return x}function Di(a,y,E,x){if(x){var z=a.anchor;if(E){var ie=bt(y,z)<0;ie!=bt(E,z)<0?(z=y,y=E):ie!=bt(y,E)<0&&(y=E)}return new bn(z,y)}else return new bn(E||y,y)}function Ti(a,y,E,x,z){z==null&&(z=a.cm&&(a.cm.display.shift||a.extend)),Tr(a,new Cn([Di(a.sel.primary(),y,E,z)],0),x)}function wo(a,y,E){for(var x=[],z=a.cm&&(a.cm.display.shift||a.extend),ie=0;ie<a.sel.ranges.length;ie++)x[ie]=Di(a.sel.ranges[ie],y[ie],null,z);var se=rr(a.cm,x,a.sel.primIndex);Tr(a,se,E)}function ko(a,y,E,x){var z=a.sel.ranges.slice(0);z[y]=E,Tr(a,rr(a.cm,z,a.sel.primIndex),x)}function jr(a,y,E,x){Tr(a,_n(y,E),x)}function di(a,y,E){var x={ranges:y.ranges,update:function(z){this.ranges=[];for(var ie=0;ie<z.length;ie++)this.ranges[ie]=new bn(xt(a,z[ie].anchor),xt(a,z[ie].head))},origin:E&&E.origin};return Ut(a,"beforeSelectionChange",a,x),a.cm&&Ut(a.cm,"beforeSelectionChange",a.cm,x),x.ranges!=y.ranges?rr(a.cm,x.ranges,x.ranges.length-1):y}function $r(a,y,E){var x=a.history.done,z=Qe(x);z&&z.ranges?(x[x.length-1]=y,Bi(a,y,E)):Tr(a,y,E)}function Tr(a,y,E){Bi(a,y,E),wi(a,a.sel,a.cm?a.cm.curOp.id:NaN,E)}function Bi(a,y,E){(_t(a,"beforeSelectionChange")||a.cm&&_t(a.cm,"beforeSelectionChange"))&&(y=di(a,y,E));var x=E&&E.bias||(bt(y.primary().head,a.sel.primary().head)<0?-1:1);Vi(a,to(a,y,x,!0)),!(E&&E.scroll===!1)&&a.cm&&El(a.cm)}function Vi(a,y){y.equals(a.sel)||(a.sel=y,a.cm&&(a.cm.curOp.updateInput=1,a.cm.curOp.selectionChanged=!0,an(a.cm)),Mi(a,"cursorActivity",a))}function co(a){Vi(a,to(a,a.sel,null,!1))}function to(a,y,E,x){for(var z,ie=0;ie<y.ranges.length;ie++){var se=y.ranges[ie],he=y.ranges.length==a.sel.ranges.length&&a.sel.ranges[ie],ye=Ro(a,se.anchor,he&&he.anchor,E,x),Ae=Ro(a,se.head,he&&he.head,E,x);(z||ye!=se.anchor||Ae!=se.head)&&(z||(z=y.ranges.slice(0,ie)),z[ie]=new bn(ye,Ae))}return z?rr(a.cm,z,y.primIndex):y}function Eo(a,y,E,x,z){var ie=sn(a,y.line);if(ie.markedSpans)for(var se=0;se<ie.markedSpans.length;++se){var he=ie.markedSpans[se],ye=he.marker,Ae="selectLeft"in ye?!ye.selectLeft:ye.inclusiveLeft,kt="selectRight"in ye?!ye.selectRight:ye.inclusiveRight;if((he.from==null||(Ae?he.from<=y.ch:he.from<y.ch))&&(he.to==null||(kt?he.to>=y.ch:he.to>y.ch))){if(z&&(Ut(ye,"beforeCursorEnter"),ye.explicitlyCleared))if(ie.markedSpans){--se;continue}else break;if(!ye.atomic)continue;if(E){var Gt=ye.find(x<0?1:-1),Sn=void 0;if((x<0?kt:Ae)&&(Gt=Kr(a,Gt,-x,Gt&&Gt.line==y.line?ie:null)),Gt&&Gt.line==y.line&&(Sn=bt(Gt,E))&&(x<0?Sn<0:Sn>0))return Eo(a,Gt,y,x,z)}var mn=ye.find(x<0?-1:1);return(x<0?Ae:kt)&&(mn=Kr(a,mn,x,mn.line==y.line?ie:null)),mn?Eo(a,mn,y,x,z):null}}return y}function Ro(a,y,E,x,z){var ie=x||1,se=Eo(a,y,E,ie,z)||!z&&Eo(a,y,E,ie,!0)||Eo(a,y,E,-ie,z)||!z&&Eo(a,y,E,-ie,!0);return se||(a.cantEdit=!0,Ze(a.first,0))}function Kr(a,y,E,x){return E<0&&y.ch==0?y.line>a.first?xt(a,Ze(y.line-1)):null:E>0&&y.ch==(x||sn(a,y.line)).text.length?y.line<a.first+a.size-1?Ze(y.line+1,0):null:new Ze(y.line,y.ch+E)}function ei(a){a.setSelection(Ze(a.firstLine(),0),Ze(a.lastLine()),ge)}function Gi(a,y,E){var x={canceled:!1,from:y.from,to:y.to,text:y.text,origin:y.origin,cancel:function(){return x.canceled=!0}};return E&&(x.update=function(z,ie,se,he){z&&(x.from=xt(a,z)),ie&&(x.to=xt(a,ie)),se&&(x.text=se),he!==void 0&&(x.origin=he)}),Ut(a,"beforeChange",a,x),a.cm&&Ut(a.cm,"beforeChange",a.cm,x),x.canceled?(a.cm&&(a.cm.curOp.updateInput=2),null):{from:x.from,to:x.to,text:x.text,origin:x.origin}}function eo(a,y,E){if(a.cm){if(!a.cm.curOp)return Qo(a.cm,eo)(a,y,E);if(a.cm.state.suppressEdits)return}if(!((_t(a,"beforeChange")||a.cm&&_t(a.cm,"beforeChange"))&&(y=Gi(a,y,!0),!y))){var x=yr&&!E&&Fi(a,y.from,y.to);if(x)for(var z=x.length-1;z>=0;--z)Qi(a,{from:x[z].from,to:x[z].to,text:z?[""]:y.text,origin:y.origin});else Qi(a,y)}}function Qi(a,y){if(!(y.text.length==1&&y.text[0]==""&&bt(y.from,y.to)==0)){var E=ar(a,y);Xr(a,y,E,a.cm?a.cm.curOp.id:NaN),va(a,y,E,ti(a,y));var x=[];zr(a,function(z,ie){!ie&&Lt(x,z.history)==-1&&(Fo(z.history,y),x.push(z.history)),va(z,y,null,ti(z,y))})}}function zo(a,y,E){var x=a.cm&&a.cm.state.suppressEdits;if(!(x&&!E)){for(var z=a.history,ie,se=a.sel,he=y=="undo"?z.done:z.undone,ye=y=="undo"?z.undone:z.done,Ae=0;Ae<he.length&&(ie=he[Ae],!(E?ie.ranges&&!ie.equals(a.sel):!ie.ranges));Ae++);if(Ae!=he.length){for(z.lastOrigin=z.lastSelOrigin=null;;)if(ie=he.pop(),ie.ranges){if(Oi(ie,ye),E&&!ie.equals(a.sel)){Tr(a,ie,{clearRedo:!1});return}se=ie}else if(x){he.push(ie);return}else break;var kt=[];Oi(se,ye),ye.push({changes:kt,generation:z.generation}),z.generation=ie.generation||++z.maxGeneration;for(var Gt=_t(a,"beforeChange")||a.cm&&_t(a.cm,"beforeChange"),Sn=function(qn){var pr=ie.changes[qn];if(pr.origin=y,Gt&&!Gi(a,pr,!1))return he.length=0,{};kt.push(hr(a,pr));var Ir=qn?ar(a,pr):Qe(he);va(a,pr,Ir,ho(a,pr)),!qn&&a.cm&&a.cm.scrollIntoView({from:pr.from,to:or(pr)});var Fr=[];zr(a,function(Pr,Wr){!Wr&&Lt(Fr,Pr.history)==-1&&(Fo(Pr.history,pr),Fr.push(Pr.history)),va(Pr,pr,null,ho(Pr,pr))})},mn=ie.changes.length-1;mn>=0;--mn){var Un=Sn(mn);if(Un)return Un.v}}}}function Io(a,y){if(y!=0&&(a.first+=y,a.sel=new Cn(tn(a.sel.ranges,function(z){return new bn(Ze(z.anchor.line+y,z.anchor.ch),Ze(z.head.line+y,z.head.ch))}),a.sel.primIndex),a.cm)){sa(a.cm,a.first,a.first-y,y);for(var E=a.cm.display,x=E.viewFrom;x<E.viewTo;x++)il(a.cm,x,"gutter")}}function va(a,y,E,x){if(a.cm&&!a.cm.curOp)return Qo(a.cm,va)(a,y,E,x);if(y.to.line<a.first){Io(a,y.text.length-1-(y.to.line-y.from.line));return}if(!(y.from.line>a.lastLine())){if(y.from.line<a.first){var z=y.text.length-1-(a.first-y.from.line);Io(a,z),y={from:Ze(a.first,0),to:Ze(y.to.line+z,y.to.ch),text:[Qe(y.text)],origin:y.origin}}var ie=a.lastLine();y.to.line>ie&&(y={from:y.from,to:Ze(ie,sn(a,ie).text.length),text:[y.text[0]],origin:y.origin}),y.removed=yn(a,y.from,y.to),E||(E=ar(a,y)),a.cm?po(a.cm,y,x):Gr(a,y,x),Bi(a,E,ge),a.cantEdit&&Ro(a,Ze(a.firstLine(),0))&&(a.cantEdit=!1)}}function po(a,y,E){var x=a.doc,z=a.display,ie=y.from,se=y.to,he=!1,ye=ie.line;a.options.lineWrapping||(ye=ut(Bn(sn(x,ie.line))),x.iter(ye,se.line+1,function(mn){if(mn==z.maxLine)return he=!0,!0})),x.sel.contains(y.from,y.to)>-1&&an(a),Gr(x,y,E,ys(a)),a.options.lineWrapping||(x.iter(ye,ie.line+y.text.length,function(mn){var Un=Ei(mn);Un>z.maxLineLength&&(z.maxLine=mn,z.maxLineLength=Un,z.maxLineChanged=!0,he=!1)}),he&&(a.curOp.updateMaxLine=!0)),Yn(x,ie.line),jl(a,400);var Ae=y.text.length-(se.line-ie.line)-1;y.full?sa(a):ie.line==se.line&&y.text.length==1&&!mi(a.doc,y)?il(a,ie.line,"text"):sa(a,ie.line,se.line+1,Ae);var kt=_t(a,"changes"),Gt=_t(a,"change");if(Gt||kt){var Sn={from:ie,to:se,text:y.text,removed:y.removed,origin:y.origin};Gt&&Mi(a,"change",a,Sn),kt&&(a.curOp.changeObjs||(a.curOp.changeObjs=[])).push(Sn)}a.display.selForContextMenu=null}function zi(a,y,E,x,z){var ie;x||(x=E),bt(x,E)<0&&(ie=[x,E],E=ie[0],x=ie[1]),typeof y=="string"&&(y=a.splitLines(y)),eo(a,{from:E,to:x,text:y,origin:z})}function no(a,y,E,x){E<a.line?a.line+=x:y<a.line&&(a.line=y,a.ch=0)}function io(a,y,E,x){for(var z=0;z<a.length;++z){var ie=a[z],se=!0;if(ie.ranges){ie.copied||(ie=a[z]=ie.deepCopy(),ie.copied=!0);for(var he=0;he<ie.ranges.length;he++)no(ie.ranges[he].anchor,y,E,x),no(ie.ranges[he].head,y,E,x);continue}for(var ye=0;ye<ie.changes.length;++ye){var Ae=ie.changes[ye];if(E<Ae.from.line)Ae.from=Ze(Ae.from.line+x,Ae.from.ch),Ae.to=Ze(Ae.to.line+x,Ae.to.ch);else if(y<=Ae.to.line){se=!1;break}}se||(a.splice(0,z+1),z=0)}}function Fo(a,y){var E=y.from.line,x=y.to.line,z=y.text.length-(x-E)-1;io(a.done,E,x,z),io(a.undone,E,x,z)}function bo(a,y,E,x){var z=y,ie=y;return typeof y=="number"?ie=sn(a,Ct(a,y)):z=ut(y),z==null?null:(x(ie,z)&&a.cm&&il(a.cm,z,E),ie)}function Hi(a){this.lines=a,this.parent=null;for(var y=0,E=0;E<a.length;++E)a[E].parent=this,y+=a[E].height;this.height=y}Hi.prototype={chunkSize:function(){return this.lines.length},removeInner:function(a,y){for(var E=a,x=a+y;E<x;++E){var z=this.lines[E];this.height-=z.height,Pi(z),Mi(z,"delete")}this.lines.splice(a,y)},collapse:function(a){a.push.apply(a,this.lines)},insertInner:function(a,y,E){this.height+=E,this.lines=this.lines.slice(0,a).concat(y).concat(this.lines.slice(a));for(var x=0;x<y.length;++x)y[x].parent=this},iterN:function(a,y,E){for(var x=a+y;a<x;++a)if(E(this.lines[a]))return!0}};function mo(a){this.children=a;for(var y=0,E=0,x=0;x<a.length;++x){var z=a[x];y+=z.chunkSize(),E+=z.height,z.parent=this}this.size=y,this.height=E,this.parent=null}mo.prototype={chunkSize:function(){return this.size},removeInner:function(a,y){this.size-=y;for(var E=0;E<this.children.length;++E){var x=this.children[E],z=x.chunkSize();if(a<z){var ie=Math.min(y,z-a),se=x.height;if(x.removeInner(a,ie),this.height-=se-x.height,z==ie&&(this.children.splice(E--,1),x.parent=null),(y-=ie)==0)break;a=0}else a-=z}if(this.size-y<25&&(this.children.length>1||!(this.children[0]instanceof Hi))){var he=[];this.collapse(he),this.children=[new Hi(he)],this.children[0].parent=this}},collapse:function(a){for(var y=0;y<this.children.length;++y)this.children[y].collapse(a)},insertInner:function(a,y,E){this.size+=y.length,this.height+=E;for(var x=0;x<this.children.length;++x){var z=this.children[x],ie=z.chunkSize();if(a<=ie){if(z.insertInner(a,y,E),z.lines&&z.lines.length>50){for(var se=z.lines.length%25+25,he=se;he<z.lines.length;){var ye=new Hi(z.lines.slice(he,he+=25));z.height-=ye.height,this.children.splice(++x,0,ye),ye.parent=this}z.lines=z.lines.slice(0,se),this.maybeSpill()}break}a-=ie}},maybeSpill:function(){if(!(this.children.length<=10)){var a=this;do{var y=a.children.splice(a.children.length-5,5),E=new mo(y);if(a.parent){a.size-=E.size,a.height-=E.height;var z=Lt(a.parent.children,a);a.parent.children.splice(z+1,0,E)}else{var x=new mo(a.children);x.parent=a,a.children=[x,E],a=x}E.parent=a.parent}while(a.children.length>10);a.parent.maybeSpill()}},iterN:function(a,y,E){for(var x=0;x<this.children.length;++x){var z=this.children[x],ie=z.chunkSize();if(a<ie){var se=Math.min(y,ie-a);if(z.iterN(a,se,E))return!0;if((y-=se)==0)break;a=0}else a-=ie}}};var Xi=function(a,y,E){if(E)for(var x in E)E.hasOwnProperty(x)&&(this[x]=E[x]);this.doc=a,this.node=y};Xi.prototype.clear=function(){var a=this.doc.cm,y=this.line.widgets,E=this.line,x=ut(E);if(!(x==null||!y)){for(var z=0;z<y.length;++z)y[z]==this&&y.splice(z--,1);y.length||(E.widgets=null);var ie=oa(this);Hn(E,Math.max(0,E.height-ie)),a&&(ma(a,function(){Jo(a,E,-ie),il(a,x,"widget")}),Mi(a,"lineWidgetCleared",a,this,x))}},Xi.prototype.changed=function(){var a=this,y=this.height,E=this.doc.cm,x=this.line;this.height=null;var z=oa(this)-y;z&&(Gn(this.doc,x)||Hn(x,x.height+z),E&&ma(E,function(){E.curOp.forceUpdate=!0,Jo(E,x,z),Mi(E,"lineWidgetChanged",E,a,ut(x))}))},$e(Xi);function Jo(a,y,E){Qr(y)<(a.curOp&&a.curOp.scrollTop||a.doc.scrollTop)&&_s(a,E)}function Lo(a,y,E,x){var z=new Xi(a,E,x),ie=a.cm;return ie&&z.noHScroll&&(ie.display.alignWidgets=!0),bo(a,y,"widget",function(se){var he=se.widgets||(se.widgets=[]);if(z.insertAt==null?he.push(z):he.splice(Math.min(he.length-1,Math.max(0,z.insertAt)),0,z),z.line=se,ie&&!Gn(a,se)){var ye=Qr(se)<a.scrollTop;Hn(se,se.height+oa(z)),ye&&_s(ie,z.height),ie.curOp.forceUpdate=!0}return!0}),ie&&Mi(ie,"lineWidgetAdded",ie,z,typeof y=="number"?y:ut(y)),z}var ua=0,ga=function(a,y){this.lines=[],this.type=y,this.doc=a,this.id=++ua};ga.prototype.clear=function(){if(!this.explicitlyCleared){var a=this.doc.cm,y=a&&!a.curOp;if(y&&ml(a),_t(this,"clear")){var E=this.find();E&&Mi(this,"clear",E.from,E.to)}for(var x=null,z=null,ie=0;ie<this.lines.length;++ie){var se=this.lines[ie],he=Ur(se.markedSpans,this);a&&!this.collapsed?il(a,ut(se),"text"):a&&(he.to!=null&&(z=ut(se)),he.from!=null&&(x=ut(se))),se.markedSpans=oi(se.markedSpans,he),he.from==null&&this.collapsed&&!Gn(this.doc,se)&&a&&Hn(se,Ca(a.display))}if(a&&this.collapsed&&!a.options.lineWrapping)for(var ye=0;ye<this.lines.length;++ye){var Ae=Bn(this.lines[ye]),kt=Ei(Ae);kt>a.display.maxLineLength&&(a.display.maxLine=Ae,a.display.maxLineLength=kt,a.display.maxLineChanged=!0)}x!=null&&a&&this.collapsed&&sa(a,x,z+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,a&&co(a.doc)),a&&Mi(a,"markerCleared",a,this,x,z),y&&Ol(a),this.parent&&this.parent.clear()}},ga.prototype.find=function(a,y){a==null&&this.type=="bookmark"&&(a=1);for(var E,x,z=0;z<this.lines.length;++z){var ie=this.lines[z],se=Ur(ie.markedSpans,this);if(se.from!=null&&(E=Ze(y?ie:ut(ie),se.from),a==-1))return E;if(se.to!=null&&(x=Ze(y?ie:ut(ie),se.to),a==1))return x}return E&&{from:E,to:x}},ga.prototype.changed=function(){var a=this,y=this.find(-1,!0),E=this,x=this.doc.cm;!y||!x||ma(x,function(){var z=y.line,ie=ut(y.line),se=Ha(x,ie);if(se&&(Ll(se),x.curOp.selectionChanged=x.curOp.forceUpdate=!0),x.curOp.updateMaxLine=!0,!Gn(E.doc,z)&&E.height!=null){var he=E.height;E.height=null;var ye=oa(E)-he;ye&&Hn(z,z.height+ye)}Mi(x,"markerChanged",x,a)})},ga.prototype.attachLine=function(a){if(!this.lines.length&&this.doc.cm){var y=this.doc.cm.curOp;(!y.maybeHiddenMarkers||Lt(y.maybeHiddenMarkers,this)==-1)&&(y.maybeUnhiddenMarkers||(y.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(a)},ga.prototype.detachLine=function(a){if(this.lines.splice(Lt(this.lines,a),1),!this.lines.length&&this.doc.cm){var y=this.doc.cm.curOp;(y.maybeHiddenMarkers||(y.maybeHiddenMarkers=[])).push(this)}},$e(ga);function Ua(a,y,E,x,z){if(x&&x.shared)return Wl(a,y,E,x,z);if(a.cm&&!a.cm.curOp)return Qo(a.cm,Ua)(a,y,E,x,z);var ie=new ga(a,z),se=bt(y,E);if(x&&Yt(x,ie,!1),se>0||se==0&&ie.clearWhenEmpty!==!1)return ie;if(ie.replacedWith&&(ie.collapsed=!0,ie.widgetNode=rt("span",[ie.replacedWith],"CodeMirror-widget"),x.handleMouseEvents||ie.widgetNode.setAttribute("cm-ignore-events","true"),x.insertLeft&&(ie.widgetNode.insertLeft=!0)),ie.collapsed){if(Vn(a,y.line,y,E,ie)||y.line!=E.line&&Vn(a,E.line,y,E,ie))throw new Error("Inserting collapsed marker partially overlapping an existing one");Yr()}ie.addToHistory&&Xr(a,{from:y,to:E,origin:"markText"},a.sel,NaN);var he=y.line,ye=a.cm,Ae;if(a.iter(he,E.line+1,function(Gt){ye&&ie.collapsed&&!ye.options.lineWrapping&&Bn(Gt)==ye.display.maxLine&&(Ae=!0),ie.collapsed&&he!=y.line&&Hn(Gt,0),Zr(Gt,new Vr(ie,he==y.line?y.ch:null,he==E.line?E.ch:null)),++he}),ie.collapsed&&a.iter(y.line,E.line+1,function(Gt){Gn(a,Gt)&&Hn(Gt,0)}),ie.clearOnEnter&&Zt(ie,"beforeCursorEnter",function(){return ie.clear()}),ie.readOnly&&(_r(),(a.history.done.length||a.history.undone.length)&&a.clearHistory()),ie.collapsed&&(ie.id=++ua,ie.atomic=!0),ye){if(Ae&&(ye.curOp.updateMaxLine=!0),ie.collapsed)sa(ye,y.line,E.line+1);else if(ie.className||ie.startStyle||ie.endStyle||ie.css||ie.attributes||ie.title)for(var kt=y.line;kt<=E.line;kt++)il(ye,kt,"text");ie.atomic&&co(ye.doc),Mi(ye,"markerAdded",ye,ie)}return ie}var oo=function(a,y){this.markers=a,this.primary=y;for(var E=0;E<a.length;++E)a[E].parent=this};oo.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var a=0;a<this.markers.length;++a)this.markers[a].clear();Mi(this,"clear")}},oo.prototype.find=function(a,y){return this.primary.find(a,y)},$e(oo);function Wl(a,y,E,x,z){x=Yt(x),x.shared=!1;var ie=[Ua(a,y,E,x,z)],se=ie[0],he=x.widgetNode;return zr(a,function(ye){he&&(x.widgetNode=he.cloneNode(!0)),ie.push(Ua(ye,xt(ye,y),xt(ye,E),x,z));for(var Ae=0;Ae<ye.linked.length;++Ae)if(ye.linked[Ae].isParent)return;se=Qe(ie)}),new oo(ie,se)}function da(a){return a.findMarks(Ze(a.first,0),a.clipPos(Ze(a.lastLine())),function(y){return y.parent})}function ka(a,y){for(var E=0;E<y.length;E++){var x=y[E],z=x.find(),ie=a.clipPos(z.from),se=a.clipPos(z.to);if(bt(ie,se)){var he=Ua(a,ie,se,x.primary,x.primary.type);x.markers.push(he),he.parent=x}}}function wa(a){for(var y=function(x){var z=a[x],ie=[z.primary.doc];zr(z.primary.doc,function(ye){return ie.push(ye)});for(var se=0;se<z.markers.length;se++){var he=z.markers[se];Lt(ie,he.doc)==-1&&(he.parent=null,z.markers.splice(se--,1))}},E=0;E<a.length;E++)y(E)}var ya=0,ao=function(a,y,E,x,z){if(!(this instanceof ao))return new ao(a,y,E,x,z);E==null&&(E=0),mo.call(this,[new Hi([new Ni("",null)])]),this.first=E,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=E;var ie=Ze(E,0);this.sel=_n(ie),this.history=new gr(null),this.id=++ya,this.modeOption=y,this.lineSep=x,this.direction=z=="rtl"?"rtl":"ltr",this.extend=!1,typeof a=="string"&&(a=this.splitLines(a)),Gr(this,{from:ie,to:ie,text:a}),Tr(this,_n(ie),ge)};ao.prototype=ne(mo.prototype,{constructor:ao,iter:function(a,y,E){E?this.iterN(a-this.first,y-a,E):this.iterN(this.first,this.first+this.size,a)},insert:function(a,y){for(var E=0,x=0;x<y.length;++x)E+=y[x].height;this.insertInner(a-this.first,y,E)},remove:function(a,y){this.removeInner(a-this.first,y)},getValue:function(a){var y=zn(this,this.first,this.first+this.size);return a===!1?y:y.join(a||this.lineSeparator())},setValue:Vo(function(a){var y=Ze(this.first,0),E=this.first+this.size-1;eo(this,{from:y,to:Ze(E,sn(this,E).text.length),text:this.splitLines(a),origin:"setValue",full:!0},!0),this.cm&&ts(this.cm,0,0),Tr(this,_n(y),ge)}),replaceRange:function(a,y,E,x){y=xt(this,y),E=E?xt(this,E):y,zi(this,a,y,E,x)},getRange:function(a,y,E){var x=yn(this,xt(this,a),xt(this,y));return E===!1?x:x.join(E||this.lineSeparator())},getLine:function(a){var y=this.getLineHandle(a);return y&&y.text},getLineHandle:function(a){if(Re(this,a))return sn(this,a)},getLineNumber:function(a){return ut(a)},getLineHandleVisualStart:function(a){return typeof a=="number"&&(a=sn(this,a)),Bn(a)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(a){return xt(this,a)},getCursor:function(a){var y=this.sel.primary(),E;return a==null||a=="head"?E=y.head:a=="anchor"?E=y.anchor:a=="end"||a=="to"||a===!1?E=y.to():E=y.from(),E},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Vo(function(a,y,E){jr(this,xt(this,typeof a=="number"?Ze(a,y||0):a),null,E)}),setSelection:Vo(function(a,y,E){jr(this,xt(this,a),xt(this,y||a),E)}),extendSelection:Vo(function(a,y,E){Ti(this,xt(this,a),y&&xt(this,y),E)}),extendSelections:Vo(function(a,y){wo(this,Ft(this,a),y)}),extendSelectionsBy:Vo(function(a,y){var E=tn(this.sel.ranges,a);wo(this,Ft(this,E),y)}),setSelections:Vo(function(a,y,E){if(a.length){for(var x=[],z=0;z<a.length;z++)x[z]=new bn(xt(this,a[z].anchor),xt(this,a[z].head));y==null&&(y=Math.min(a.length-1,this.sel.primIndex)),Tr(this,rr(this.cm,x,y),E)}}),addSelection:Vo(function(a,y,E){var x=this.sel.ranges.slice(0);x.push(new bn(xt(this,a),xt(this,y||a))),Tr(this,rr(this.cm,x,x.length-1),E)}),getSelection:function(a){for(var y=this.sel.ranges,E,x=0;x<y.length;x++){var z=yn(this,y[x].from(),y[x].to());E=E?E.concat(z):z}return a===!1?E:E.join(a||this.lineSeparator())},getSelections:function(a){for(var y=[],E=this.sel.ranges,x=0;x<E.length;x++){var z=yn(this,E[x].from(),E[x].to());a!==!1&&(z=z.join(a||this.lineSeparator())),y[x]=z}return y},replaceSelection:function(a,y,E){for(var x=[],z=0;z<this.sel.ranges.length;z++)x[z]=a;this.replaceSelections(x,y,E||"+input")},replaceSelections:Vo(function(a,y,E){for(var x=[],z=this.sel,ie=0;ie<z.ranges.length;ie++){var se=z.ranges[ie];x[ie]={from:se.from(),to:se.to(),text:this.splitLines(a[ie]),origin:E}}for(var he=y&&y!="end"&&Sr(this,x,y),ye=x.length-1;ye>=0;ye--)eo(this,x[ye]);he?$r(this,he):this.cm&&El(this.cm)}),undo:Vo(function(){zo(this,"undo")}),redo:Vo(function(){zo(this,"redo")}),undoSelection:Vo(function(){zo(this,"undo",!0)}),redoSelection:Vo(function(){zo(this,"redo",!0)}),setExtending:function(a){this.extend=a},getExtending:function(){return this.extend},historySize:function(){for(var a=this.history,y=0,E=0,x=0;x<a.done.length;x++)a.done[x].ranges||++y;for(var z=0;z<a.undone.length;z++)a.undone[z].ranges||++E;return{undo:y,redo:E}},clearHistory:function(){var a=this;this.history=new gr(this.history.maxGeneration),zr(this,function(y){return y.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:So(this.history.done),undone:So(this.history.undone)}},setHistory:function(a){var y=this.history=new gr(this.history.maxGeneration);y.done=So(a.done.slice(0),null,!0),y.undone=So(a.undone.slice(0),null,!0)},setGutterMarker:Vo(function(a,y,E){return bo(this,a,"gutter",function(x){var z=x.gutterMarkers||(x.gutterMarkers={});return z[y]=E,!E&&re(z)&&(x.gutterMarkers=null),!0})}),clearGutter:Vo(function(a){var y=this;this.iter(function(E){E.gutterMarkers&&E.gutterMarkers[a]&&bo(y,E,"gutter",function(){return E.gutterMarkers[a]=null,re(E.gutterMarkers)&&(E.gutterMarkers=null),!0})})}),lineInfo:function(a){var y;if(typeof a=="number"){if(!Re(this,a)||(y=a,a=sn(this,a),!a))return null}else if(y=ut(a),y==null)return null;return{line:y,handle:a,text:a.text,gutterMarkers:a.gutterMarkers,textClass:a.textClass,bgClass:a.bgClass,wrapClass:a.wrapClass,widgets:a.widgets}},addLineClass:Vo(function(a,y,E){return bo(this,a,y=="gutter"?"gutter":"class",function(x){var z=y=="text"?"textClass":y=="background"?"bgClass":y=="gutter"?"gutterClass":"wrapClass";if(!x[z])x[z]=E;else{if(Xe(E).test(x[z]))return!1;x[z]+=" "+E}return!0})}),removeLineClass:Vo(function(a,y,E){return bo(this,a,y=="gutter"?"gutter":"class",function(x){var z=y=="text"?"textClass":y=="background"?"bgClass":y=="gutter"?"gutterClass":"wrapClass",ie=x[z];if(ie)if(E==null)x[z]=null;else{var se=ie.match(Xe(E));if(!se)return!1;var he=se.index+se[0].length;x[z]=ie.slice(0,se.index)+(!se.index||he==ie.length?"":" ")+ie.slice(he)||null}else return!1;return!0})}),addLineWidget:Vo(function(a,y,E){return Lo(this,a,y,E)}),removeLineWidget:function(a){a.clear()},markText:function(a,y,E){return Ua(this,xt(this,a),xt(this,y),E,E&&E.type||"range")},setBookmark:function(a,y){var E={replacedWith:y&&(y.nodeType==null?y.widget:y),insertLeft:y&&y.insertLeft,clearWhenEmpty:!1,shared:y&&y.shared,handleMouseEvents:y&&y.handleMouseEvents};return a=xt(this,a),Ua(this,a,a,E,"bookmark")},findMarksAt:function(a){a=xt(this,a);var y=[],E=sn(this,a.line).markedSpans;if(E)for(var x=0;x<E.length;++x){var z=E[x];(z.from==null||z.from<=a.ch)&&(z.to==null||z.to>=a.ch)&&y.push(z.marker.parent||z.marker)}return y},findMarks:function(a,y,E){a=xt(this,a),y=xt(this,y);var x=[],z=a.line;return this.iter(a.line,y.line+1,function(ie){var se=ie.markedSpans;if(se)for(var he=0;he<se.length;he++){var ye=se[he];!(ye.to!=null&&z==a.line&&a.ch>=ye.to||ye.from==null&&z!=a.line||ye.from!=null&&z==y.line&&ye.from>=y.ch)&&(!E||E(ye.marker))&&x.push(ye.marker.parent||ye.marker)}++z}),x},getAllMarks:function(){var a=[];return this.iter(function(y){var E=y.markedSpans;if(E)for(var x=0;x<E.length;++x)E[x].from!=null&&a.push(E[x].marker)}),a},posFromIndex:function(a){var y,E=this.first,x=this.lineSeparator().length;return this.iter(function(z){var ie=z.text.length+x;if(ie>a)return y=a,!0;a-=ie,++E}),xt(this,Ze(E,y))},indexFromPos:function(a){a=xt(this,a);var y=a.ch;if(a.line<this.first||a.ch<0)return 0;var E=this.lineSeparator().length;return this.iter(this.first,a.line,function(x){y+=x.text.length+E}),y},copy:function(a){var y=new ao(zn(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return y.scrollTop=this.scrollTop,y.scrollLeft=this.scrollLeft,y.sel=this.sel,y.extend=!1,a&&(y.history.undoDepth=this.history.undoDepth,y.setHistory(this.getHistory())),y},linkedDoc:function(a){a||(a={});var y=this.first,E=this.first+this.size;a.from!=null&&a.from>y&&(y=a.from),a.to!=null&&a.to<E&&(E=a.to);var x=new ao(zn(this,y,E),a.mode||this.modeOption,y,this.lineSep,this.direction);return a.sharedHist&&(x.history=this.history),(this.linked||(this.linked=[])).push({doc:x,sharedHist:a.sharedHist}),x.linked=[{doc:this,isParent:!0,sharedHist:a.sharedHist}],ka(x,da(this)),x},unlinkDoc:function(a){if(a instanceof Oo&&(a=a.doc),this.linked)for(var y=0;y<this.linked.length;++y){var E=this.linked[y];if(E.doc==a){this.linked.splice(y,1),a.unlinkDoc(this),wa(da(this));break}}if(a.history==this.history){var x=[a.id];zr(a,function(z){return x.push(z.id)},!0),a.history=new gr(null),a.history.done=So(this.history.done,x),a.history.undone=So(this.history.undone,x)}},iterLinkedDocs:function(a){zr(this,a)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(a){return this.lineSep?a.split(this.lineSep):gn(a)},lineSeparator:function(){return this.lineSep||`
|
|
|
`},setDirection:Vo(function(a){a!="rtl"&&(a="ltr"),a!=this.direction&&(this.direction=a,this.iter(function(y){return y.order=null}),this.cm&&kr(this.cm))})}),ao.prototype.eachLine=ao.prototype.iter;var Ea=0;function al(a){var y=this;if(is(y),!(St(y,a)||Yo(y.display,a))){mt(a),Se&&(Ea=+new Date);var E=Qa(y,a,!0),x=a.dataTransfer.files;if(!(!E||y.isReadOnly()))if(x&&x.length&&window.FileReader&&window.File)for(var z=x.length,ie=Array(z),se=0,he=function(){++se==z&&Qo(y,function(){E=xt(y.doc,E);var mn={from:E,to:E,text:y.doc.splitLines(ie.filter(function(Un){return Un!=null}).join(y.doc.lineSeparator())),origin:"paste"};eo(y.doc,mn),$r(y.doc,_n(xt(y.doc,E),xt(y.doc,or(mn))))})()},ye=function(mn,Un){if(y.options.allowDropFileTypes&&Lt(y.options.allowDropFileTypes,mn.type)==-1){he();return}var qn=new FileReader;qn.onerror=function(){return he()},qn.onload=function(){var pr=qn.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(pr)){he();return}ie[Un]=pr,he()},qn.readAsText(mn)},Ae=0;Ae<x.length;Ae++)ye(x[Ae],Ae);else{if(y.state.draggingText&&y.doc.sel.contains(E)>-1){y.state.draggingText(a),setTimeout(function(){return y.display.input.focus()},20);return}try{var kt=a.dataTransfer.getData("Text");if(kt){var Gt;if(y.state.draggingText&&!y.state.draggingText.copy&&(Gt=y.listSelections()),Bi(y.doc,_n(E,E)),Gt)for(var Sn=0;Sn<Gt.length;++Sn)zi(y.doc,"",Gt[Sn].anchor,Gt[Sn].head,"drag");y.replaceSelection(kt,"around","paste"),y.display.input.focus()}}catch(mn){}}}}function Ga(a,y){if(Se&&(!a.state.draggingText||+new Date-Ea<100)){Be(y);return}if(!(St(a,y)||Yo(a.display,y))&&(y.dataTransfer.setData("Text",a.getSelection()),y.dataTransfer.effectAllowed="copyMove",y.dataTransfer.setDragImage&&!et)){var E=Ye("img",null,null,"position: fixed; left: 0; top: 0;");E.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",ue&&(E.width=E.height=1,a.display.wrapper.appendChild(E),E._top=E.offsetTop),y.dataTransfer.setDragImage(E,0,0),ue&&E.parentNode.removeChild(E)}}function Xa(a,y){var E=Qa(a,y);if(E){var x=document.createDocumentFragment();js(a,E,x),a.display.dragCursor||(a.display.dragCursor=Ye("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),a.display.lineSpace.insertBefore(a.display.dragCursor,a.display.cursorDiv)),ct(a.display.dragCursor,x)}}function is(a){a.display.dragCursor&&(a.display.lineSpace.removeChild(a.display.dragCursor),a.display.dragCursor=null)}function os(a){if(document.getElementsByClassName){for(var y=document.getElementsByClassName("CodeMirror"),E=[],x=0;x<y.length;x++){var z=y[x].CodeMirror;z&&E.push(z)}E.length&&E[0].operation(function(){for(var ie=0;ie<E.length;ie++)a(E[ie])})}}var as=!1;function ls(){as||(Is(),as=!0)}function Is(){var a;Zt(window,"resize",function(){a==null&&(a=setTimeout(function(){a=null,os(yi)},100))}),Zt(window,"blur",function(){return os(Sl)})}function yi(a){var y=a.display;y.cachedCharWidth=y.cachedTextHeight=y.cachedPaddingH=null,y.scrollbarsClipped=!1,a.setSize()}for(var Li={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"},vo=0;vo<10;vo++)Li[vo+48]=Li[vo+96]=String(vo);for(var Po=65;Po<=90;Po++)Li[Po]=String.fromCharCode(Po);for(var Uo=1;Uo<=12;Uo++)Li[Uo+111]=Li[Uo+63235]="F"+Uo;var Ho={};Ho.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"},Ho.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"},Ho.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"},Ho.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"]},Ho.default=ke?Ho.macDefault:Ho.pcDefault;function $a(a){var y=a.split(/-(?!$)/);a=y[y.length-1];for(var E,x,z,ie,se=0;se<y.length-1;se++){var he=y[se];if(/^(cmd|meta|m)$/i.test(he))ie=!0;else if(/^a(lt)?$/i.test(he))E=!0;else if(/^(c|ctrl|control)$/i.test(he))x=!0;else if(/^s(hift)?$/i.test(he))z=!0;else throw new Error("Unrecognized modifier name: "+he)}return E&&(a="Alt-"+a),x&&(a="Ctrl-"+a),ie&&(a="Cmd-"+a),z&&(a="Shift-"+a),a}function ea(a){var y={};for(var E in a)if(a.hasOwnProperty(E)){var x=a[E];if(/^(name|fallthrough|(de|at)tach)$/.test(E))continue;if(x=="..."){delete a[E];continue}for(var z=tn(E.split(" "),$a),ie=0;ie<z.length;ie++){var se=void 0,he=void 0;ie==z.length-1?(he=z.join(" "),se=x):(he=z.slice(0,ie+1).join(" "),se="...");var ye=y[he];if(!ye)y[he]=se;else if(ye!=se)throw new Error("Inconsistent bindings for "+he)}delete a[E]}for(var Ae in y)a[Ae]=y[Ae];return a}function Dl(a,y,E,x){y=ss(y);var z=y.call?y.call(a,x):y[a];if(z===!1)return"nothing";if(z==="...")return"multi";if(z!=null&&E(z))return"handled";if(y.fallthrough){if(Object.prototype.toString.call(y.fallthrough)!="[object Array]")return Dl(a,y.fallthrough,E,x);for(var ie=0;ie<y.fallthrough.length;ie++){var se=Dl(a,y.fallthrough[ie],E,x);if(se)return se}}}function Ps(a){var y=typeof a=="string"?a:Li[a.keyCode];return y=="Ctrl"||y=="Alt"||y=="Shift"||y=="Mod"}function Kl(a,y,E){var x=a;return y.altKey&&x!="Alt"&&(a="Alt-"+a),(Fe?y.metaKey:y.ctrlKey)&&x!="Ctrl"&&(a="Ctrl-"+a),(Fe?y.ctrlKey:y.metaKey)&&x!="Mod"&&(a="Cmd-"+a),!E&&y.shiftKey&&x!="Shift"&&(a="Shift-"+a),a}function vl(a,y){if(ue&&a.keyCode==34&&a.char)return!1;var E=Li[a.keyCode];return E==null||a.altGraphKey?!1:(a.keyCode==3&&a.code&&(E=a.code),Kl(E,a,y))}function ss(a){return typeof a=="string"?Ho[a]:a}function gl(a,y){for(var E=a.doc.sel.ranges,x=[],z=0;z<E.length;z++){for(var ie=y(E[z]);x.length&&bt(ie.from,Qe(x).to)<=0;){var se=x.pop();if(bt(se.from,ie.from)<0){ie.from=se.from;break}}x.push(ie)}ma(a,function(){for(var he=x.length-1;he>=0;he--)zi(a.doc,"",x[he].from,x[he].to,"+delete");El(a)})}function Os(a,y,E){var x=ht(a.text,y+E,E);return x<0||x>a.text.length?null:x}function cs(a,y,E){var x=Os(a,y.ch,E);return x==null?null:new Ze(y.line,x,E<0?"after":"before")}function Ds(a,y,E,x,z){if(a){y.doc.direction=="rtl"&&(z=-z);var ie=we(E,y.doc.direction);if(ie){var se=z<0?Qe(ie):ie[0],he=z<0==(se.level==1),ye=he?"after":"before",Ae;if(se.level>0||y.doc.direction=="rtl"){var kt=tl(y,E);Ae=z<0?E.text.length-1:0;var Gt=Na(y,kt,Ae).top;Ae=Le(function(Sn){return Na(y,kt,Sn).top==Gt},z<0==(se.level==1)?se.from:se.to-1,Ae),ye=="before"&&(Ae=Os(E,Ae,1))}else Ae=z<0?se.to:se.from;return new Ze(x,Ae,ye)}}return new Ze(x,z<0?E.text.length:0,z<0?"before":"after")}function Qs(a,y,E,x){var z=we(y,a.doc.direction);if(!z)return cs(y,E,x);E.ch>=y.text.length?(E.ch=y.text.length,E.sticky="before"):E.ch<=0&&(E.ch=0,E.sticky="after");var ie=Ge(z,E.ch,E.sticky),se=z[ie];if(a.doc.direction=="ltr"&&se.level%2==0&&(x>0?se.to>E.ch:se.from<E.ch))return cs(y,E,x);var he=function(Ir,Fr){return Os(y,Ir instanceof Ze?Ir.ch:Ir,Fr)},ye,Ae=function(Ir){return a.options.lineWrapping?(ye=ye||tl(a,y),Ao(a,y,ye,Ir)):{begin:0,end:y.text.length}},kt=Ae(E.sticky=="before"?he(E,-1):E.ch);if(a.doc.direction=="rtl"||se.level==1){var Gt=se.level==1==x<0,Sn=he(E,Gt?1:-1);if(Sn!=null&&(Gt?Sn<=se.to&&Sn<=kt.end:Sn>=se.from&&Sn>=kt.begin)){var mn=Gt?"before":"after";return new Ze(E.line,Sn,mn)}}var Un=function(Ir,Fr,Pr){for(var Wr=function(go,ra){return ra?new Ze(E.line,he(go,1),"before"):new Ze(E.line,go,"after")};Ir>=0&&Ir<z.length;Ir+=Fr){var fi=z[Ir],li=Fr>0==(fi.level!=1),Ri=li?Pr.begin:he(Pr.end,-1);if(fi.from<=Ri&&Ri<fi.to||(Ri=li?fi.from:he(fi.to,-1),Pr.begin<=Ri&&Ri<Pr.end))return Wr(Ri,li)}},qn=Un(ie+x,x,kt);if(qn)return qn;var pr=x>0?kt.end:he(kt.begin,-1);return pr!=null&&!(x>0&&pr==y.text.length)&&(qn=Un(x>0?0:z.length-1,x,Ae(pr)),qn)?qn:null}var ll={selectAll:ei,singleSelection:function(a){return a.setSelection(a.getCursor("anchor"),a.getCursor("head"),ge)},killLine:function(a){return gl(a,function(y){if(y.empty()){var E=sn(a.doc,y.head.line).text.length;return y.head.ch==E&&y.head.line<a.lastLine()?{from:y.head,to:Ze(y.head.line+1,0)}:{from:y.head,to:Ze(y.head.line,E)}}else return{from:y.from(),to:y.to()}})},deleteLine:function(a){return gl(a,function(y){return{from:Ze(y.from().line,0),to:xt(a.doc,Ze(y.to().line+1,0))}})},delLineLeft:function(a){return gl(a,function(y){return{from:Ze(y.from().line,0),to:y.from()}})},delWrappedLineLeft:function(a){return gl(a,function(y){var E=a.charCoords(y.head,"div").top+5,x=a.coordsChar({left:0,top:E},"div");return{from:x,to:y.from()}})},delWrappedLineRight:function(a){return gl(a,function(y){var E=a.charCoords(y.head,"div").top+5,x=a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:E},"div");return{from:y.from(),to:x}})},undo:function(a){return a.undo()},redo:function(a){return a.redo()},undoSelection:function(a){return a.undoSelection()},redoSelection:function(a){return a.redoSelection()},goDocStart:function(a){return a.extendSelection(Ze(a.firstLine(),0))},goDocEnd:function(a){return a.extendSelection(Ze(a.lastLine()))},goLineStart:function(a){return a.extendSelectionsBy(function(y){return Ts(a,y.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(a){return a.extendSelectionsBy(function(y){return Ms(a,y.head)},{origin:"+move",bias:1})},goLineEnd:function(a){return a.extendSelectionsBy(function(y){return vc(a,y.head.line)},{origin:"+move",bias:-1})},goLineRight:function(a){return a.extendSelectionsBy(function(y){var E=a.cursorCoords(y.head,"div").top+5;return a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:E},"div")},tt)},goLineLeft:function(a){return a.extendSelectionsBy(function(y){var E=a.cursorCoords(y.head,"div").top+5;return a.coordsChar({left:0,top:E},"div")},tt)},goLineLeftSmart:function(a){return a.extendSelectionsBy(function(y){var E=a.cursorCoords(y.head,"div").top+5,x=a.coordsChar({left:0,top:E},"div");return x.ch<a.getLine(x.line).search(/\S/)?Ms(a,y.head):x},tt)},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 y=[],E=a.listSelections(),x=a.options.tabSize,z=0;z<E.length;z++){var ie=E[z].from(),se=Oe(a.getLine(ie.line),ie.ch,x);y.push(Rt(x-se%x))}a.replaceSelections(y)},defaultTab:function(a){a.somethingSelected()?a.indentSelection("add"):a.execCommand("insertTab")},transposeChars:function(a){return ma(a,function(){for(var y=a.listSelections(),E=[],x=0;x<y.length;x++)if(y[x].empty()){var z=y[x].head,ie=sn(a.doc,z.line).text;if(ie){if(z.ch==ie.length&&(z=new Ze(z.line,z.ch-1)),z.ch>0)z=new Ze(z.line,z.ch+1),a.replaceRange(ie.charAt(z.ch-1)+ie.charAt(z.ch-2),Ze(z.line,z.ch-2),z,"+transpose");else if(z.line>a.doc.first){var se=sn(a.doc,z.line-1).text;se&&(z=new Ze(z.line,1),a.replaceRange(ie.charAt(0)+a.doc.lineSeparator()+se.charAt(se.length-1),Ze(z.line-1,se.length-1),z,"+transpose"))}}E.push(new bn(z,z))}a.setSelections(E)})},newlineAndIndent:function(a){return ma(a,function(){for(var y=a.listSelections(),E=y.length-1;E>=0;E--)a.replaceRange(a.doc.lineSeparator(),y[E].anchor,y[E].head,"+input");y=a.listSelections();for(var x=0;x<y.length;x++)a.indentLine(y[x].from().line,null,!0);El(a)})},openLine:function(a){return a.replaceSelection(`
|
|
|
`,"start")},toggleOverwrite:function(a){return a.toggleOverwrite()}};function Ts(a,y){var E=sn(a.doc,y),x=Bn(E);return x!=E&&(y=ut(x)),Ds(!0,a,x,y,1)}function vc(a,y){var E=sn(a.doc,y),x=lr(E);return x!=E&&(y=ut(x)),Ds(!0,a,E,y,-1)}function Ms(a,y){var E=Ts(a,y.line),x=sn(a.doc,E.line),z=we(x,a.doc.direction);if(!z||z[0].level==0){var ie=Math.max(E.ch,x.text.search(/\S/)),se=y.line==E.line&&y.ch<=ie&&y.ch;return Ze(E.line,se?0:ie,E.sticky)}return E}function _l(a,y,E){if(typeof y=="string"&&(y=ll[y],!y))return!1;a.display.input.ensurePolled();var x=a.display.shift,z=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),E&&(a.display.shift=!1),z=y(a)!=Ot}finally{a.display.shift=x,a.state.suppressEdits=!1}return z}function gc(a,y,E){for(var x=0;x<a.state.keyMaps.length;x++){var z=Dl(y,a.state.keyMaps[x],E,a);if(z)return z}return a.options.extraKeys&&Dl(y,a.options.extraKeys,E,a)||Dl(y,a.options.keyMap,E,a)}var yc=new pe;function Vl(a,y,E,x){var z=a.state.keySeq;if(z){if(Ps(y))return"handled";if(/\'$/.test(y)?a.state.keySeq=null:yc.set(50,function(){a.state.keySeq==z&&(a.state.keySeq=null,a.display.input.reset())}),Ns(a,z+" "+y,E,x))return!0}return Ns(a,y,E,x)}function Ns(a,y,E,x){var z=gc(a,y,x);return z=="multi"&&(a.state.keySeq=y),z=="handled"&&Mi(a,"keyHandled",a,y,E),(z=="handled"||z=="multi")&&(mt(E),xs(a)),!!z}function Ul(a,y){var E=vl(y,!0);return E?y.shiftKey&&!a.state.keySeq?Vl(a,"Shift-"+E,y,function(x){return _l(a,x,!0)})||Vl(a,E,y,function(x){if(typeof x=="string"?/^go[A-Z]/.test(x):x.motion)return _l(a,x)}):Vl(a,E,y,function(x){return _l(a,x)}):!1}function As(a,y,E){return Vl(a,"'"+E+"'",y,function(x){return _l(a,x,!0)})}var Gl=null;function ks(a){var y=this;if(!(a.target&&a.target!=y.display.input.getField())&&(y.curOp.focus=_e(),!St(y,a))){Se&&xe<11&&a.keyCode==27&&(a.returnValue=!1);var E=a.keyCode;y.display.shift=E==16||a.shiftKey;var x=Ul(y,a);ue&&(Gl=x?E:null,!x&&E==88&&!dn&&(ke?a.metaKey:a.ctrlKey)&&y.replaceSelection("",null,"cut")),b&&!ke&&!x&&E==46&&a.shiftKey&&!a.ctrlKey&&document.execCommand&&document.execCommand("cut"),E==18&&!/\bCodeMirror-crosshair\b/.test(y.display.lineDiv.className)&&Js(y)}}function Js(a){var y=a.display.lineDiv;de(y,"CodeMirror-crosshair");function E(x){(x.keyCode==18||!x.altKey)&&(Je(y,"CodeMirror-crosshair"),nn(document,"keyup",E),nn(document,"mouseover",E))}Zt(document,"keyup",E),Zt(document,"mouseover",E)}function Ls(a){a.keyCode==16&&(this.doc.sel.shift=!1),St(this,a)}function Bs(a){var y=this;if(!(a.target&&a.target!=y.display.input.getField())&&!(Yo(y.display,a)||St(y,a)||a.ctrlKey&&!a.altKey||ke&&a.metaKey)){var E=a.keyCode,x=a.charCode;if(ue&&E==Gl){Gl=null,mt(a);return}if(!(ue&&(!a.which||a.which<10)&&Ul(y,a))){var z=String.fromCharCode(x==null?E:x);z!="\b"&&(As(y,a,z)||y.display.input.onKeyPress(a))}}}var bc=400,us=function(a,y,E){this.time=a,this.pos=y,this.button=E};us.prototype.compare=function(a,y,E){return this.time+bc>a&&bt(y,this.pos)==0&&E==this.button};var yl,Tl;function Rs(a,y){var E=+new Date;return Tl&&Tl.compare(E,a,y)?(yl=Tl=null,"triple"):yl&&yl.compare(E,a,y)?(Tl=new us(E,a,y),yl=null,"double"):(yl=new us(E,a,y),Tl=null,"single")}function Fs(a){var y=this,E=y.display;if(!(St(y,a)||E.activeTouch&&E.input.supportsTouch())){if(E.input.ensurePolled(),E.shift=a.shiftKey,Yo(E,a)){Ee||(E.scroller.draggable=!1,setTimeout(function(){return E.scroller.draggable=!0},100));return}if(!Ja(y,a)){var x=Qa(y,a),z=Dt(a),ie=x?Rs(x,z):"single";window.focus(),z==1&&y.state.selectingText&&y.state.selectingText(a),!(x&&xc(y,z,x,ie,a))&&(z==1?x?Ui(y,x,ie,a):ft(a)==E.scroller&&mt(a):z==2?(x&&Ti(y.doc,x),setTimeout(function(){return E.input.focus()},20)):z==3&&(Me?y.display.input.onContextMenu(a):Ws(y)))}}}function xc(a,y,E,x,z){var ie="Click";return x=="double"?ie="Double"+ie:x=="triple"&&(ie="Triple"+ie),ie=(y==1?"Left":y==2?"Middle":"Right")+ie,Vl(a,Kl(ie,z),z,function(se){if(typeof se=="string"&&(se=ll[se]),!se)return!1;var he=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),he=se(a,E)!=Ot}finally{a.state.suppressEdits=!1}return he})}function ji(a,y,E){var x=a.getOption("configureMouse"),z=x?x(a,y,E):{};if(z.unit==null){var ie=ot?E.shiftKey&&E.metaKey:E.altKey;z.unit=ie?"rectangle":y=="single"?"char":y=="double"?"word":"line"}return(z.extend==null||a.doc.extend)&&(z.extend=a.doc.extend||E.shiftKey),z.addNew==null&&(z.addNew=ke?E.metaKey:E.ctrlKey),z.moveOnDrag==null&&(z.moveOnDrag=!(ke?E.altKey:E.ctrlKey)),z}function Ui(a,y,E,x){Se?setTimeout(st(ic,a),0):a.curOp.focus=_e();var z=ji(a,E,x),ie=a.doc.sel,se;a.options.dragDrop&&Vt&&!a.isReadOnly()&&E=="single"&&(se=ie.contains(y))>-1&&(bt((se=ie.ranges[se]).from(),y)<0||y.xRel>0)&&(bt(se.to(),y)>0||y.xRel<0)?ta(a,x,y,z):na(a,x,y,z)}function ta(a,y,E,x){var z=a.display,ie=!1,se=Qo(a,function(Ae){Ee&&(z.scroller.draggable=!1),a.state.draggingText=!1,nn(z.wrapper.ownerDocument,"mouseup",se),nn(z.wrapper.ownerDocument,"mousemove",he),nn(z.scroller,"dragstart",ye),nn(z.scroller,"drop",se),ie||(mt(Ae),x.addNew||Ti(a.doc,E,null,null,x.extend),Ee&&!et||Se&&xe==9?setTimeout(function(){z.wrapper.ownerDocument.body.focus({preventScroll:!0}),z.input.focus()},20):z.input.focus())}),he=function(Ae){ie=ie||Math.abs(y.clientX-Ae.clientX)+Math.abs(y.clientY-Ae.clientY)>=10},ye=function(){return ie=!0};Ee&&(z.scroller.draggable=!0),a.state.draggingText=se,se.copy=!x.moveOnDrag,z.scroller.dragDrop&&z.scroller.dragDrop(),Zt(z.wrapper.ownerDocument,"mouseup",se),Zt(z.wrapper.ownerDocument,"mousemove",he),Zt(z.scroller,"dragstart",ye),Zt(z.scroller,"drop",se),Ws(a),setTimeout(function(){return z.input.focus()},20)}function Ia(a,y,E){if(E=="char")return new bn(y,y);if(E=="word")return a.findWordAt(y);if(E=="line")return new bn(Ze(y.line,0),xt(a.doc,Ze(y.line+1,0)));var x=E(a,y);return new bn(x.from,x.to)}function na(a,y,E,x){var z=a.display,ie=a.doc;mt(y);var se,he,ye=ie.sel,Ae=ye.ranges;if(x.addNew&&!x.extend?(he=ie.sel.contains(E),he>-1?se=Ae[he]:se=new bn(E,E)):(se=ie.sel.primary(),he=ie.sel.primIndex),x.unit=="rectangle")x.addNew||(se=new bn(E,E)),E=Qa(a,y,!0,!0),he=-1;else{var kt=Ia(a,E,x.unit);x.extend?se=Di(se,kt.anchor,kt.head,x.extend):se=kt}x.addNew?he==-1?(he=Ae.length,Tr(ie,rr(a,Ae.concat([se]),he),{scroll:!1,origin:"*mouse"})):Ae.length>1&&Ae[he].empty()&&x.unit=="char"&&!x.extend?(Tr(ie,rr(a,Ae.slice(0,he).concat(Ae.slice(he+1)),0),{scroll:!1,origin:"*mouse"}),ye=ie.sel):ko(ie,he,se,Ke):(he=0,Tr(ie,new Cn([se],0),Ke),ye=ie.sel);var Gt=E;function Sn(Pr){if(bt(Gt,Pr)!=0)if(Gt=Pr,x.unit=="rectangle"){for(var Wr=[],fi=a.options.tabSize,li=Oe(sn(ie,E.line).text,E.ch,fi),Ri=Oe(sn(ie,Pr.line).text,Pr.ch,fi),go=Math.min(li,Ri),ra=Math.max(li,Ri),Bo=Math.min(E.line,Pr.line),La=Math.min(a.lastLine(),Math.max(E.line,Pr.line));Bo<=La;Bo++){var Pa=sn(ie,Bo).text,Go=Wt(Pa,go,fi);go==ra?Wr.push(new bn(Ze(Bo,Go),Ze(Bo,Go))):Pa.length>Go&&Wr.push(new bn(Ze(Bo,Go),Ze(Bo,Wt(Pa,ra,fi))))}Wr.length||Wr.push(new bn(E,E)),Tr(ie,rr(a,ye.ranges.slice(0,he).concat(Wr),he),{origin:"*mouse",scroll:!1}),a.scrollIntoView(Pr)}else{var Oa=se,fa=Ia(a,Pr,x.unit),qo=Oa.anchor,Xo;bt(fa.anchor,qo)>0?(Xo=fa.head,qo=Kt(Oa.from(),fa.anchor)):(Xo=fa.anchor,qo=Bt(Oa.to(),fa.head));var $o=ye.ranges.slice(0);$o[he]=Ml(a,new bn(xt(ie,qo),Xo)),Tr(ie,rr(a,$o,he),Ke)}}var mn=z.wrapper.getBoundingClientRect(),Un=0;function qn(Pr){var Wr=++Un,fi=Qa(a,Pr,!0,x.unit=="rectangle");if(fi)if(bt(fi,Gt)!=0){a.curOp.focus=_e(),Sn(fi);var li=ol(z,ie);(fi.line>=li.to||fi.line<li.from)&&setTimeout(Qo(a,function(){Un==Wr&&qn(Pr)}),150)}else{var Ri=Pr.clientY<mn.top?-20:Pr.clientY>mn.bottom?20:0;Ri&&setTimeout(Qo(a,function(){Un==Wr&&(z.scroller.scrollTop+=Ri,qn(Pr))}),50)}}function pr(Pr){a.state.selectingText=!1,Un=1/0,Pr&&(mt(Pr),z.input.focus()),nn(z.wrapper.ownerDocument,"mousemove",Ir),nn(z.wrapper.ownerDocument,"mouseup",Fr),ie.history.lastSelOrigin=null}var Ir=Qo(a,function(Pr){Pr.buttons===0||!Dt(Pr)?pr(Pr):qn(Pr)}),Fr=Qo(a,pr);a.state.selectingText=Fr,Zt(z.wrapper.ownerDocument,"mousemove",Ir),Zt(z.wrapper.ownerDocument,"mouseup",Fr)}function Ml(a,y){var E=y.anchor,x=y.head,z=sn(a.doc,E.line);if(bt(E,x)==0&&E.sticky==x.sticky)return y;var ie=we(z);if(!ie)return y;var se=Ge(ie,E.ch,E.sticky),he=ie[se];if(he.from!=E.ch&&he.to!=E.ch)return y;var ye=se+(he.from==E.ch==(he.level!=1)?0:1);if(ye==0||ye==ie.length)return y;var Ae;if(x.line!=E.line)Ae=(x.line-E.line)*(a.doc.direction=="ltr"?1:-1)>0;else{var kt=Ge(ie,x.ch,x.sticky),Gt=kt-se||(x.ch-E.ch)*(he.level==1?-1:1);kt==ye-1||kt==ye?Ae=Gt<0:Ae=Gt>0}var Sn=ie[ye+(Ae?-1:0)],mn=Ae==(Sn.level==1),Un=mn?Sn.from:Sn.to,qn=mn?"after":"before";return E.ch==Un&&E.sticky==qn?y:new bn(new Ze(E.line,Un,qn),x)}function sl(a,y,E,x){var z,ie;if(y.touches)z=y.touches[0].clientX,ie=y.touches[0].clientY;else try{z=y.clientX,ie=y.clientY}catch(Sn){return!1}if(z>=Math.floor(a.display.gutters.getBoundingClientRect().right))return!1;x&&mt(y);var se=a.display,he=se.lineDiv.getBoundingClientRect();if(ie>he.bottom||!_t(a,E))return Jt(y);ie-=he.top-se.viewOffset;for(var ye=0;ye<a.display.gutterSpecs.length;++ye){var Ae=se.gutters.childNodes[ye];if(Ae&&Ae.getBoundingClientRect().right>=z){var kt=Pt(a.doc,ie),Gt=a.display.gutterSpecs[ye];return Ut(a,E,a,kt,Gt.className,y),Jt(y)}}}function Ja(a,y){return sl(a,y,"gutterClick",!0)}function Nl(a,y){Yo(a.display,y)||$s(a,y)||St(a,y,"contextmenu")||Me||a.display.input.onContextMenu(y)}function $s(a,y){return _t(a,"gutterContextMenu")?sl(a,y,"gutterContextMenu",!1):!1}function Ac(a){a.display.wrapper.className=a.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+a.options.theme.replace(/(^|\s)\s*/g," cm-s-"),fl(a)}var ds={toString:function(){return"CodeMirror.Init"}},kc={},qs={};function jc(a){var y=a.optionHandlers;function E(x,z,ie,se){a.defaults[x]=z,ie&&(y[x]=se?function(he,ye,Ae){Ae!=ds&&ie(he,ye,Ae)}:ie)}a.defineOption=E,a.Init=ds,E("value","",function(x,z){return x.setValue(z)},!0),E("mode",null,function(x,z){x.doc.modeOption=z,Nr(x)},!0),E("indentUnit",2,Nr,!0),E("indentWithTabs",!1),E("smartIndent",!0),E("tabSize",4,function(x){Dr(x),fl(x),sa(x)},!0),E("lineSeparator",null,function(x,z){if(x.doc.lineSep=z,!!z){var ie=[],se=x.doc.first;x.doc.iter(function(ye){for(var Ae=0;;){var kt=ye.text.indexOf(z,Ae);if(kt==-1)break;Ae=kt+z.length,ie.push(Ze(se,kt))}se++});for(var he=ie.length-1;he>=0;he--)zi(x.doc,z,ie[he],Ze(ie[he].line,ie[he].ch+z.length))}}),E("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(x,z,ie){x.state.specialChars=new RegExp(z.source+(z.test(" ")?"":"| "),"g"),ie!=ds&&x.refresh()}),E("specialCharPlaceholder",xo,function(x){return x.refresh()},!0),E("electricChars",!0),E("inputStyle",We?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),E("spellcheck",!1,function(x,z){return x.getInputField().spellcheck=z},!0),E("autocorrect",!1,function(x,z){return x.getInputField().autocorrect=z},!0),E("autocapitalize",!1,function(x,z){return x.getInputField().autocapitalize=z},!0),E("rtlMoveVisually",!yt),E("wholeLineUpdateBefore",!0),E("theme","default",function(x){Ac(x),ln(x)},!0),E("keyMap","default",function(x,z,ie){var se=ss(z),he=ie!=ds&&ss(ie);he&&he.detach&&he.detach(x,se),se.attach&&se.attach(x,he||null)}),E("extraKeys",null),E("configureMouse",null),E("lineWrapping",!1,Kc,!0),E("gutters",[],function(x,z){x.display.gutterSpecs=Mt(z,x.options.lineNumbers),ln(x)},!0),E("fixedGutter",!0,function(x,z){x.display.gutters.style.left=z?gs(x.display)+"px":"0",x.refresh()},!0),E("coverGutterNextToScrollbar",!1,function(x){return Hl(x)},!0),E("scrollbarStyle","native",function(x){Xs(x),Hl(x),x.display.scrollbars.setScrollTop(x.doc.scrollTop),x.display.scrollbars.setScrollLeft(x.doc.scrollLeft)},!0),E("lineNumbers",!1,function(x,z){x.display.gutterSpecs=Mt(x.options.gutters,z),ln(x)},!0),E("firstLineNumber",1,ln,!0),E("lineNumberFormatter",function(x){return x},ln,!0),E("showCursorWhenSelecting",!1,pl,!0),E("resetSelectionOnContextMenu",!0),E("lineWiseCopyCut",!0),E("pasteLinesPerSelection",!0),E("selectionsMayTouch",!1),E("readOnly",!1,function(x,z){z=="nocursor"&&(Sl(x),x.display.input.blur()),x.display.input.readOnlyChanged(z)}),E("screenReaderLabel",null,function(x,z){z=z===""?null:z,x.display.input.screenReaderLabelChanged(z)}),E("disableInput",!1,function(x,z){z||x.display.input.reset()},!0),E("dragDrop",!0,Wc),E("allowDropFileTypes",null),E("cursorBlinkRate",530),E("cursorScrollMargin",0),E("cursorHeight",1,pl,!0),E("singleCursorHeightPerLine",!0,pl,!0),E("workTime",100),E("workDelay",100),E("flattenSpans",!0,Dr,!0),E("addModeClass",!1,Dr,!0),E("pollInterval",100),E("undoDepth",200,function(x,z){return x.doc.history.undoDepth=z}),E("historyEventDelay",1250),E("viewportMargin",10,function(x){return x.refresh()},!0),E("maxHighlightLength",1e4,Dr,!0),E("moveInputWithCursor",!0,function(x,z){z||x.display.input.resetPosition()}),E("tabindex",null,function(x,z){return x.display.input.getField().tabIndex=z||""}),E("autofocus",null),E("direction","ltr",function(x,z){return x.doc.setDirection(z)},!0),E("phrases",null)}function Wc(a,y,E){var x=E&&E!=ds;if(!y!=!x){var z=a.display.dragFunctions,ie=y?Zt:nn;ie(a.display.scroller,"dragstart",z.start),ie(a.display.scroller,"dragenter",z.enter),ie(a.display.scroller,"dragover",z.over),ie(a.display.scroller,"dragleave",z.leave),ie(a.display.scroller,"drop",z.drop)}}function Kc(a){a.options.lineWrapping?(de(a.display.wrapper,"CodeMirror-wrap"),a.display.sizer.style.minWidth="",a.display.sizerWidth=null):(Je(a.display.wrapper,"CodeMirror-wrap"),pi(a)),Cl(a),sa(a),fl(a),setTimeout(function(){return Hl(a)},100)}function Oo(a,y){var E=this;if(!(this instanceof Oo))return new Oo(a,y);this.options=y=y?Yt(y):{},Yt(kc,y,!1);var x=y.value;typeof x=="string"?x=new ao(x,y.mode,null,y.lineSeparator,y.direction):y.mode&&(x.modeOption=y.mode),this.doc=x;var z=new Oo.inputStyles[y.inputStyle](this),ie=this.display=new qt(a,x,z,y);ie.wrapper.CodeMirror=this,Ac(this),y.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Xs(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 pe,keySeq:null,specialChars:null},y.autofocus&&!We&&ie.input.focus(),Se&&xe<11&&setTimeout(function(){return E.display.input.reset(!0)},20),_c(this),ls(),ml(this),this.curOp.forceUpdate=!0,ii(this,x),y.autofocus&&!We||this.hasFocus()?setTimeout(function(){E.hasFocus()&&!E.state.focused&&Ks(E)},20):Sl(this);for(var se in qs)qs.hasOwnProperty(se)&&qs[se](this,y[se],ds);dt(this),y.finishInit&&y.finishInit(this);for(var he=0;he<Cc.length;++he)Cc[he](this);Ol(this),Ee&&y.lineWrapping&&getComputedStyle(ie.lineDiv).textRendering=="optimizelegibility"&&(ie.lineDiv.style.textRendering="auto")}Oo.defaults=kc,Oo.optionHandlers=qs;function _c(a){var y=a.display;Zt(y.scroller,"mousedown",Qo(a,Fs)),Se&&xe<11?Zt(y.scroller,"dblclick",Qo(a,function(ye){if(!St(a,ye)){var Ae=Qa(a,ye);if(!(!Ae||Ja(a,ye)||Yo(a.display,ye))){mt(ye);var kt=a.findWordAt(Ae);Ti(a.doc,kt.anchor,kt.head)}}})):Zt(y.scroller,"dblclick",function(ye){return St(a,ye)||mt(ye)}),Zt(y.scroller,"contextmenu",function(ye){return Nl(a,ye)}),Zt(y.input.getField(),"contextmenu",function(ye){y.scroller.contains(ye.target)||Nl(a,ye)});var E,x={end:0};function z(){y.activeTouch&&(E=setTimeout(function(){return y.activeTouch=null},1e3),x=y.activeTouch,x.end=+new Date)}function ie(ye){if(ye.touches.length!=1)return!1;var Ae=ye.touches[0];return Ae.radiusX<=1&&Ae.radiusY<=1}function se(ye,Ae){if(Ae.left==null)return!0;var kt=Ae.left-ye.left,Gt=Ae.top-ye.top;return kt*kt+Gt*Gt>20*20}Zt(y.scroller,"touchstart",function(ye){if(!St(a,ye)&&!ie(ye)&&!Ja(a,ye)){y.input.ensurePolled(),clearTimeout(E);var Ae=+new Date;y.activeTouch={start:Ae,moved:!1,prev:Ae-x.end<=300?x:null},ye.touches.length==1&&(y.activeTouch.left=ye.touches[0].pageX,y.activeTouch.top=ye.touches[0].pageY)}}),Zt(y.scroller,"touchmove",function(){y.activeTouch&&(y.activeTouch.moved=!0)}),Zt(y.scroller,"touchend",function(ye){var Ae=y.activeTouch;if(Ae&&!Yo(y,ye)&&Ae.left!=null&&!Ae.moved&&new Date-Ae.start<300){var kt=a.coordsChar(y.activeTouch,"page"),Gt;!Ae.prev||se(Ae,Ae.prev)?Gt=new bn(kt,kt):!Ae.prev.prev||se(Ae,Ae.prev.prev)?Gt=a.findWordAt(kt):Gt=new bn(Ze(kt.line,0),xt(a.doc,Ze(kt.line+1,0))),a.setSelection(Gt.anchor,Gt.head),a.focus(),mt(ye)}z()}),Zt(y.scroller,"touchcancel",z),Zt(y.scroller,"scroll",function(){y.scroller.clientHeight&&(ns(a,y.scroller.scrollTop),Il(a,y.scroller.scrollLeft,!0),Ut(a,"scroll",a))}),Zt(y.scroller,"mousewheel",function(ye){return Pn(a,ye)}),Zt(y.scroller,"DOMMouseScroll",function(ye){return Pn(a,ye)}),Zt(y.wrapper,"scroll",function(){return y.wrapper.scrollTop=y.wrapper.scrollLeft=0}),y.dragFunctions={enter:function(ye){St(a,ye)||Be(ye)},over:function(ye){St(a,ye)||(Xa(a,ye),Be(ye))},start:function(ye){return Ga(a,ye)},drop:Qo(a,al),leave:function(ye){St(a,ye)||is(a)}};var he=y.input.getField();Zt(he,"keyup",function(ye){return Ls.call(a,ye)}),Zt(he,"keydown",Qo(a,ks)),Zt(he,"keypress",Qo(a,Bs)),Zt(he,"focus",function(ye){return Ks(a,ye)}),Zt(he,"blur",function(ye){return Sl(a,ye)})}var Cc=[];Oo.defineInitHook=function(a){return Cc.push(a)};function Zs(a,y,E,x){var z=a.doc,ie;E==null&&(E="add"),E=="smart"&&(z.mode.indent?ie=sr(a,y).state:E="prev");var se=a.options.tabSize,he=sn(z,y),ye=Oe(he.text,null,se);he.stateAfter&&(he.stateAfter=null);var Ae=he.text.match(/^\s*/)[0],kt;if(!x&&!/\S/.test(he.text))kt=0,E="not";else if(E=="smart"&&(kt=z.mode.indent(ie,he.text.slice(Ae.length),he.text),kt==Ot||kt>150)){if(!x)return;E="prev"}E=="prev"?y>z.first?kt=Oe(sn(z,y-1).text,null,se):kt=0:E=="add"?kt=ye+a.options.indentUnit:E=="subtract"?kt=ye-a.options.indentUnit:typeof E=="number"&&(kt=ye+E),kt=Math.max(0,kt);var Gt="",Sn=0;if(a.options.indentWithTabs)for(var mn=Math.floor(kt/se);mn;--mn)Sn+=se,Gt+=" ";if(Sn<kt&&(Gt+=Rt(kt-Sn)),Gt!=Ae)return zi(z,Gt,Ze(y,0),Ze(y,Ae.length),"+input"),he.stateAfter=null,!0;for(var Un=0;Un<z.sel.ranges.length;Un++){var qn=z.sel.ranges[Un];if(qn.head.line==y&&qn.head.ch<Ae.length){var pr=Ze(y,Ae.length);ko(z,Un,new bn(pr,pr));break}}}var qa=null;function ec(a){qa=a}function Sc(a,y,E,x,z){var ie=a.doc;a.display.shift=!1,x||(x=ie.sel);var se=+new Date-200,he=z=="paste"||a.state.pasteIncoming>se,ye=gn(y),Ae=null;if(he&&x.ranges.length>1)if(qa&&qa.text.join(`
|
|
|
`)==y){if(x.ranges.length%qa.text.length==0){Ae=[];for(var kt=0;kt<qa.text.length;kt++)Ae.push(ie.splitLines(qa.text[kt]))}}else ye.length==x.ranges.length&&a.options.pasteLinesPerSelection&&(Ae=tn(ye,function(Ir){return[Ir]}));for(var Gt=a.curOp.updateInput,Sn=x.ranges.length-1;Sn>=0;Sn--){var mn=x.ranges[Sn],Un=mn.from(),qn=mn.to();mn.empty()&&(E&&E>0?Un=Ze(Un.line,Un.ch-E):a.state.overwrite&&!he?qn=Ze(qn.line,Math.min(sn(ie,qn.line).text.length,qn.ch+Qe(ye).length)):he&&qa&&qa.lineWise&&qa.text.join(`
|
|
|
`)==ye.join(`
|
|
|
`)&&(Un=qn=Ze(Un.line,0)));var pr={from:Un,to:qn,text:Ae?Ae[Sn%Ae.length]:ye,origin:z||(he?"paste":a.state.cutIncoming>se?"cut":"+input")};eo(a.doc,pr),Mi(a,"inputRead",a,pr)}y&&!he&&Bc(a,y),El(a),a.curOp.updateInput<2&&(a.curOp.updateInput=Gt),a.curOp.typing=!0,a.state.pasteIncoming=a.state.cutIncoming=-1}function Lc(a,y){var E=a.clipboardData&&a.clipboardData.getData("Text");if(E)return a.preventDefault(),!y.isReadOnly()&&!y.options.disableInput&&ma(y,function(){return Sc(y,E,0,null,"paste")}),!0}function Bc(a,y){if(!(!a.options.electricChars||!a.options.smartIndent))for(var E=a.doc.sel,x=E.ranges.length-1;x>=0;x--){var z=E.ranges[x];if(!(z.head.ch>100||x&&E.ranges[x-1].head.line==z.head.line)){var ie=a.getModeAt(z.head),se=!1;if(ie.electricChars){for(var he=0;he<ie.electricChars.length;he++)if(y.indexOf(ie.electricChars.charAt(he))>-1){se=Zs(a,z.head.line,"smart");break}}else ie.electricInput&&ie.electricInput.test(sn(a.doc,z.head.line).text.slice(0,z.head.ch))&&(se=Zs(a,z.head.line,"smart"));se&&Mi(a,"electricInput",a,z.head.line)}}}function Rc(a){for(var y=[],E=[],x=0;x<a.doc.sel.ranges.length;x++){var z=a.doc.sel.ranges[x].head.line,ie={anchor:Ze(z,0),head:Ze(z+1,0)};E.push(ie),y.push(a.getRange(ie.anchor,ie.head))}return{text:y,ranges:E}}function Fc(a,y,E,x){a.setAttribute("autocorrect",E?"":"off"),a.setAttribute("autocapitalize",x?"":"off"),a.setAttribute("spellcheck",!!y)}function $c(){var a=Ye("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),y=Ye("div",[a],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return Ee?a.style.width="1000px":a.setAttribute("wrap","off"),lt&&(a.style.border="1px solid black"),Fc(a),y}function Vc(a){var y=a.optionHandlers,E=a.helpers={};a.prototype={constructor:a,focus:function(){window.focus(),this.display.input.focus()},setOption:function(x,z){var ie=this.options,se=ie[x];ie[x]==z&&x!="mode"||(ie[x]=z,y.hasOwnProperty(x)&&Qo(this,y[x])(this,z,se),Ut(this,"optionChange",this,x))},getOption:function(x){return this.options[x]},getDoc:function(){return this.doc},addKeyMap:function(x,z){this.state.keyMaps[z?"push":"unshift"](ss(x))},removeKeyMap:function(x){for(var z=this.state.keyMaps,ie=0;ie<z.length;++ie)if(z[ie]==x||z[ie].name==x)return z.splice(ie,1),!0},addOverlay:ca(function(x,z){var ie=x.token?x:a.getMode(this.options,x);if(ie.startState)throw new Error("Overlays may not be stateful.");gt(this.state.overlays,{mode:ie,modeSpec:x,opaque:z&&z.opaque,priority:z&&z.priority||0},function(se){return se.priority}),this.state.modeGen++,sa(this)}),removeOverlay:ca(function(x){for(var z=this.state.overlays,ie=0;ie<z.length;++ie){var se=z[ie].modeSpec;if(se==x||typeof x=="string"&&se.name==x){z.splice(ie,1),this.state.modeGen++,sa(this);return}}}),indentLine:ca(function(x,z,ie){typeof z!="string"&&typeof z!="number"&&(z==null?z=this.options.smartIndent?"smart":"prev":z=z?"add":"subtract"),Re(this.doc,x)&&Zs(this,x,z,ie)}),indentSelection:ca(function(x){for(var z=this.doc.sel.ranges,ie=-1,se=0;se<z.length;se++){var he=z[se];if(he.empty())he.head.line>ie&&(Zs(this,he.head.line,x,!0),ie=he.head.line,se==this.doc.sel.primIndex&&El(this));else{var ye=he.from(),Ae=he.to(),kt=Math.max(ie,ye.line);ie=Math.min(this.lastLine(),Ae.line-(Ae.ch?0:1))+1;for(var Gt=kt;Gt<ie;++Gt)Zs(this,Gt,x);var Sn=this.doc.sel.ranges;ye.ch==0&&z.length==Sn.length&&Sn[se].from().ch>0&&ko(this.doc,se,new bn(ye,Sn[se].to()),ge)}}}),getTokenAt:function(x,z){return ur(this,x,z)},getLineTokens:function(x,z){return ur(this,Ze(x),z,!0)},getTokenTypeAt:function(x){x=xt(this.doc,x);var z=er(this,sn(this.doc,x.line)),ie=0,se=(z.length-1)/2,he=x.ch,ye;if(he==0)ye=z[2];else for(;;){var Ae=ie+se>>1;if((Ae?z[Ae*2-1]:0)>=he)se=Ae;else if(z[Ae*2+1]<he)ie=Ae+1;else{ye=z[Ae*2+2];break}}var kt=ye?ye.indexOf("overlay "):-1;return kt<0?ye:kt==0?null:ye.slice(0,kt-1)},getModeAt:function(x){var z=this.doc.mode;return z.innerMode?a.innerMode(z,this.getTokenAt(x).state).mode:z},getHelper:function(x,z){return this.getHelpers(x,z)[0]},getHelpers:function(x,z){var ie=[];if(!E.hasOwnProperty(z))return ie;var se=E[z],he=this.getModeAt(x);if(typeof he[z]=="string")se[he[z]]&&ie.push(se[he[z]]);else if(he[z])for(var ye=0;ye<he[z].length;ye++){var Ae=se[he[z][ye]];Ae&&ie.push(Ae)}else he.helperType&&se[he.helperType]?ie.push(se[he.helperType]):se[he.name]&&ie.push(se[he.name]);for(var kt=0;kt<se._global.length;kt++){var Gt=se._global[kt];Gt.pred(he,this)&&Lt(ie,Gt.val)==-1&&ie.push(Gt.val)}return ie},getStateAfter:function(x,z){var ie=this.doc;return x=Ct(ie,x==null?ie.first+ie.size-1:x),sr(this,x+1,z).state},cursorCoords:function(x,z){var ie,se=this.doc.sel.primary();return x==null?ie=se.head:typeof x=="object"?ie=xt(this.doc,x):ie=x?se.from():se.to(),aa(this,ie,z||"page")},charCoords:function(x,z){return nl(this,xt(this.doc,x),z||"page")},coordsChar:function(x,z){return x=es(this,x,z||"page"),Ko(this,x.left,x.top)},lineAtHeight:function(x,z){return x=es(this,{top:x,left:0},z||"page").top,Pt(this.doc,x+this.display.viewOffset)},heightAtLine:function(x,z,ie){var se=!1,he;if(typeof x=="number"){var ye=this.doc.first+this.doc.size-1;x<this.doc.first?x=this.doc.first:x>ye&&(x=ye,se=!0),he=sn(this.doc,x)}else he=x;return Rl(this,he,{top:0,left:0},z||"page",ie||se).top+(se?this.doc.height-Qr(he):0)},defaultTextHeight:function(){return Ca(this.display)},defaultCharWidth:function(){return Fa(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(x,z,ie,se,he){var ye=this.display;x=aa(this,xt(this.doc,x));var Ae=x.bottom,kt=x.left;if(z.style.position="absolute",z.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(z),ye.sizer.appendChild(z),se=="over")Ae=x.top;else if(se=="above"||se=="near"){var Gt=Math.max(ye.wrapper.clientHeight,this.doc.height),Sn=Math.max(ye.sizer.clientWidth,ye.lineSpace.clientWidth);(se=="above"||x.bottom+z.offsetHeight>Gt)&&x.top>z.offsetHeight?Ae=x.top-z.offsetHeight:x.bottom+z.offsetHeight<=Gt&&(Ae=x.bottom),kt+z.offsetWidth>Sn&&(kt=Sn-z.offsetWidth)}z.style.top=Ae+"px",z.style.left=z.style.right="",he=="right"?(kt=ye.sizer.clientWidth-z.offsetWidth,z.style.right="0px"):(he=="left"?kt=0:he=="middle"&&(kt=(ye.sizer.clientWidth-z.offsetWidth)/2),z.style.left=kt+"px"),ie&&Oc(this,{left:kt,top:Ae,right:kt+z.offsetWidth,bottom:Ae+z.offsetHeight})},triggerOnKeyDown:ca(ks),triggerOnKeyPress:ca(Bs),triggerOnKeyUp:Ls,triggerOnMouseDown:ca(Fs),execCommand:function(x){if(ll.hasOwnProperty(x))return ll[x].call(null,this)},triggerElectric:ca(function(x){Bc(this,x)}),findPosH:function(x,z,ie,se){var he=1;z<0&&(he=-1,z=-z);for(var ye=xt(this.doc,x),Ae=0;Ae<z&&(ye=wc(this.doc,ye,he,ie,se),!ye.hitSide);++Ae);return ye},moveH:ca(function(x,z){var ie=this;this.extendSelectionsBy(function(se){return ie.display.shift||ie.doc.extend||se.empty()?wc(ie.doc,se.head,x,z,ie.options.rtlMoveVisually):x<0?se.from():se.to()},tt)}),deleteH:ca(function(x,z){var ie=this.doc.sel,se=this.doc;ie.somethingSelected()?se.replaceSelection("",null,"+delete"):gl(this,function(he){var ye=wc(se,he.head,x,z,!1);return x<0?{from:ye,to:he.head}:{from:he.head,to:ye}})}),findPosV:function(x,z,ie,se){var he=1,ye=se;z<0&&(he=-1,z=-z);for(var Ae=xt(this.doc,x),kt=0;kt<z;++kt){var Gt=aa(this,Ae,"div");if(ye==null?ye=Gt.left:Gt.left=ye,Ae=Zc(this,Gt,he,ie),Ae.hitSide)break}return Ae},moveV:ca(function(x,z){var ie=this,se=this.doc,he=[],ye=!this.display.shift&&!se.extend&&se.sel.somethingSelected();if(se.extendSelectionsBy(function(kt){if(ye)return x<0?kt.from():kt.to();var Gt=aa(ie,kt.head,"div");kt.goalColumn!=null&&(Gt.left=kt.goalColumn),he.push(Gt.left);var Sn=Zc(ie,Gt,x,z);return z=="page"&&kt==se.sel.primary()&&_s(ie,nl(ie,Sn,"div").top-Gt.top),Sn},tt),he.length)for(var Ae=0;Ae<se.sel.ranges.length;Ae++)se.sel.ranges[Ae].goalColumn=he[Ae]}),findWordAt:function(x){var z=this.doc,ie=sn(z,x.line).text,se=x.ch,he=x.ch;if(ie){var ye=this.getHelper(x,"wordChars");(x.sticky=="before"||he==ie.length)&&se?--se:++he;for(var Ae=ie.charAt(se),kt=ce(Ae,ye)?function(Gt){return ce(Gt,ye)}:/\s/.test(Ae)?function(Gt){return/\s/.test(Gt)}:function(Gt){return!/\s/.test(Gt)&&!ce(Gt)};se>0&&kt(ie.charAt(se-1));)--se;for(;he<ie.length&&kt(ie.charAt(he));)++he}return new bn(Ze(x.line,se),Ze(x.line,he))},toggleOverwrite:function(x){x!=null&&x==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?de(this.display.cursorDiv,"CodeMirror-overwrite"):Je(this.display.cursorDiv,"CodeMirror-overwrite"),Ut(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==_e()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:ca(function(x,z){ts(this,x,z)}),getScrollInfo:function(){var x=this.display.scroller;return{left:x.scrollLeft,top:x.scrollTop,height:x.scrollHeight-pa(this)-this.display.barHeight,width:x.scrollWidth-pa(this)-this.display.barWidth,clientHeight:Ya(this),clientWidth:za(this)}},scrollIntoView:ca(function(x,z){x==null?(x={from:this.doc.sel.primary().head,to:null},z==null&&(z=this.options.cursorScrollMargin)):typeof x=="number"?x={from:Ze(x,0),to:null}:x.from==null&&(x={from:x,to:null}),x.to||(x.to=x.from),x.margin=z||0,x.from.line!=null?lc(this,x):Vs(this,x.from,x.to,x.margin)}),setSize:ca(function(x,z){var ie=this,se=function(ye){return typeof ye=="number"||/^\d+$/.test(String(ye))?ye+"px":ye};x!=null&&(this.display.wrapper.style.width=se(x)),z!=null&&(this.display.wrapper.style.height=se(z)),this.options.lineWrapping&&ja(this);var he=this.display.viewFrom;this.doc.iter(he,this.display.viewTo,function(ye){if(ye.widgets){for(var Ae=0;Ae<ye.widgets.length;Ae++)if(ye.widgets[Ae].noHScroll){il(ie,he,"widget");break}}++he}),this.curOp.forceUpdate=!0,Ut(this,"refresh",this)}),operation:function(x){return ma(this,x)},startOperation:function(){return ml(this)},endOperation:function(){return Ol(this)},refresh:ca(function(){var x=this.display.cachedTextHeight;sa(this),this.curOp.forceUpdate=!0,fl(this),ts(this,this.doc.scrollLeft,this.doc.scrollTop),ve(this.display),(x==null||Math.abs(x-Ca(this.display))>.5||this.options.lineWrapping)&&Cl(this),Ut(this,"refresh",this)}),swapDoc:ca(function(x){var z=this.doc;return z.cm=null,this.state.selectingText&&this.state.selectingText(),ii(this,x),fl(this),this.display.input.reset(),ts(this,x.scrollLeft,x.scrollTop),this.curOp.forceScroll=!0,Mi(this,"swapDoc",this,z),z}),phrase:function(x){var z=this.options.phrases;return z&&Object.prototype.hasOwnProperty.call(z,x)?z[x]:x},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},$e(a),a.registerHelper=function(x,z,ie){E.hasOwnProperty(x)||(E[x]=a[x]={_global:[]}),E[x][z]=ie},a.registerGlobalHelper=function(x,z,ie,se){a.registerHelper(x,z,se),E[x]._global.push({pred:ie,val:se})}}function wc(a,y,E,x,z){var ie=y,se=E,he=sn(a,y.line),ye=z&&a.direction=="rtl"?-E:E;function Ae(){var Fr=y.line+ye;return Fr<a.first||Fr>=a.first+a.size?!1:(y=new Ze(Fr,y.ch,y.sticky),he=sn(a,Fr))}function kt(Fr){var Pr;if(x=="codepoint"){var Wr=he.text.charCodeAt(y.ch+(x>0?0:-1));isNaN(Wr)?Pr=null:Pr=new Ze(y.line,Math.max(0,Math.min(he.text.length,y.ch+E*(Wr>=55296&&Wr<56320?2:1))),-E)}else z?Pr=Qs(a.cm,he,y,E):Pr=cs(he,y,E);if(Pr==null)if(!Fr&&Ae())y=Ds(z,a.cm,he,y.line,ye);else return!1;else y=Pr;return!0}if(x=="char"||x=="codepoint")kt();else if(x=="column")kt(!0);else if(x=="word"||x=="group")for(var Gt=null,Sn=x=="group",mn=a.cm&&a.cm.getHelper(y,"wordChars"),Un=!0;!(E<0&&!kt(!Un));Un=!1){var qn=he.text.charAt(y.ch)||`
|
|
|
`,pr=ce(qn,mn)?"w":Sn&&qn==`
|
|
|
`?"n":!Sn||/\s/.test(qn)?null:"p";if(Sn&&!Un&&!pr&&(pr="s"),Gt&&Gt!=pr){E<0&&(E=1,kt(),y.sticky="after");break}if(pr&&(Gt=pr),E>0&&!kt(!Un))break}var Ir=Ro(a,y,ie,se,!0);return Pe(ie,Ir)&&(Ir.hitSide=!0),Ir}function Zc(a,y,E,x){var z=a.doc,ie=y.left,se;if(x=="page"){var he=Math.min(a.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),ye=Math.max(he-.5*Ca(a.display),3);se=(E>0?y.bottom:y.top)+E*ye}else x=="line"&&(se=E>0?y.bottom+3:y.top-3);for(var Ae;Ae=Ko(a,ie,se),!!Ae.outside;){if(E<0?se<=0:se>=z.height){Ae.hitSide=!0;break}se+=E*5}return Ae}var uo=function(a){this.cm=a,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new pe,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};uo.prototype.init=function(a){var y=this,E=this,x=E.cm,z=E.div=a.lineDiv;Fc(z,x.options.spellcheck,x.options.autocorrect,x.options.autocapitalize);function ie(he){for(var ye=he.target;ye;ye=ye.parentNode){if(ye==z)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(ye.className))break}return!1}Zt(z,"paste",function(he){!ie(he)||St(x,he)||Lc(he,x)||xe<=11&&setTimeout(Qo(x,function(){return y.updateFromDOM()}),20)}),Zt(z,"compositionstart",function(he){y.composing={data:he.data,done:!1}}),Zt(z,"compositionupdate",function(he){y.composing||(y.composing={data:he.data,done:!1})}),Zt(z,"compositionend",function(he){y.composing&&(he.data!=y.composing.data&&y.readFromDOMSoon(),y.composing.done=!0)}),Zt(z,"touchstart",function(){return E.forceCompositionEnd()}),Zt(z,"input",function(){y.composing||y.readFromDOMSoon()});function se(he){if(!(!ie(he)||St(x,he))){if(x.somethingSelected())ec({lineWise:!1,text:x.getSelections()}),he.type=="cut"&&x.replaceSelection("",null,"cut");else if(x.options.lineWiseCopyCut){var ye=Rc(x);ec({lineWise:!0,text:ye.text}),he.type=="cut"&&x.operation(function(){x.setSelections(ye.ranges,0,ge),x.replaceSelection("",null,"cut")})}else return;if(he.clipboardData){he.clipboardData.clearData();var Ae=qa.text.join(`
|
|
|
`);if(he.clipboardData.setData("Text",Ae),he.clipboardData.getData("Text")==Ae){he.preventDefault();return}}var kt=$c(),Gt=kt.firstChild;x.display.lineSpace.insertBefore(kt,x.display.lineSpace.firstChild),Gt.value=qa.text.join(`
|
|
|
`);var Sn=document.activeElement;He(Gt),setTimeout(function(){x.display.lineSpace.removeChild(kt),Sn.focus(),Sn==z&&E.showPrimarySelection()},50)}}Zt(z,"copy",se),Zt(z,"cut",se)},uo.prototype.screenReaderLabelChanged=function(a){a?this.div.setAttribute("aria-label",a):this.div.removeAttribute("aria-label")},uo.prototype.prepareSelection=function(){var a=rc(this.cm,!1);return a.focus=document.activeElement==this.div,a},uo.prototype.showSelection=function(a,y){!a||!this.cm.display.view.length||((a.focus||y)&&this.showPrimarySelection(),this.showMultipleSelections(a))},uo.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},uo.prototype.showPrimarySelection=function(){var a=this.getSelection(),y=this.cm,E=y.doc.sel.primary(),x=E.from(),z=E.to();if(y.display.viewTo==y.display.viewFrom||x.line>=y.display.viewTo||z.line<y.display.viewFrom){a.removeAllRanges();return}var ie=tc(y,a.anchorNode,a.anchorOffset),se=tc(y,a.focusNode,a.focusOffset);if(!(ie&&!ie.bad&&se&&!se.bad&&bt(Kt(ie,se),x)==0&&bt(Bt(ie,se),z)==0)){var he=y.display.view,ye=x.line>=y.display.viewFrom&&zc(y,x)||{node:he[0].measure.map[2],offset:0},Ae=z.line<y.display.viewTo&&zc(y,z);if(!Ae){var kt=he[he.length-1].measure,Gt=kt.maps?kt.maps[kt.maps.length-1]:kt.map;Ae={node:Gt[Gt.length-1],offset:Gt[Gt.length-2]-Gt[Gt.length-3]}}if(!ye||!Ae){a.removeAllRanges();return}var Sn=a.rangeCount&&a.getRangeAt(0),mn;try{mn=Ce(ye.node,ye.offset,Ae.offset,Ae.node)}catch(Un){}mn&&(!b&&y.state.focused?(a.collapse(ye.node,ye.offset),mn.collapsed||(a.removeAllRanges(),a.addRange(mn))):(a.removeAllRanges(),a.addRange(mn)),Sn&&a.anchorNode==null?a.addRange(Sn):b&&this.startGracePeriod()),this.rememberSelection()}},uo.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)},uo.prototype.showMultipleSelections=function(a){ct(this.cm.display.cursorDiv,a.cursors),ct(this.cm.display.selectionDiv,a.selection)},uo.prototype.rememberSelection=function(){var a=this.getSelection();this.lastAnchorNode=a.anchorNode,this.lastAnchorOffset=a.anchorOffset,this.lastFocusNode=a.focusNode,this.lastFocusOffset=a.focusOffset},uo.prototype.selectionInEditor=function(){var a=this.getSelection();if(!a.rangeCount)return!1;var y=a.getRangeAt(0).commonAncestorContainer;return at(this.div,y)},uo.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},uo.prototype.blur=function(){this.div.blur()},uo.prototype.getField=function(){return this.div},uo.prototype.supportsTouch=function(){return!0},uo.prototype.receivedFocus=function(){var a=this;this.selectionInEditor()?this.pollSelection():ma(this.cm,function(){return a.cm.curOp.selectionChanged=!0});function y(){a.cm.state.focused&&(a.pollSelection(),a.polling.set(a.cm.options.pollInterval,y))}this.polling.set(this.cm.options.pollInterval,y)},uo.prototype.selectionChanged=function(){var a=this.getSelection();return a.anchorNode!=this.lastAnchorNode||a.anchorOffset!=this.lastAnchorOffset||a.focusNode!=this.lastFocusNode||a.focusOffset!=this.lastFocusOffset},uo.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var a=this.getSelection(),y=this.cm;if(it&&Ie&&this.cm.display.gutterSpecs.length&&Uc(a.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var E=tc(y,a.anchorNode,a.anchorOffset),x=tc(y,a.focusNode,a.focusOffset);E&&x&&ma(y,function(){Tr(y.doc,_n(E,x),ge),(E.bad||x.bad)&&(y.curOp.selectionChanged=!0)})}}},uo.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var a=this.cm,y=a.display,E=a.doc.sel.primary(),x=E.from(),z=E.to();if(x.ch==0&&x.line>a.firstLine()&&(x=Ze(x.line-1,sn(a.doc,x.line-1).length)),z.ch==sn(a.doc,z.line).text.length&&z.line<a.lastLine()&&(z=Ze(z.line+1,0)),x.line<y.viewFrom||z.line>y.viewTo-1)return!1;var ie,se,he;x.line==y.viewFrom||(ie=Ka(a,x.line))==0?(se=ut(y.view[0].line),he=y.view[0].node):(se=ut(y.view[ie].line),he=y.view[ie-1].node.nextSibling);var ye=Ka(a,z.line),Ae,kt;if(ye==y.view.length-1?(Ae=y.viewTo-1,kt=y.lineDiv.lastChild):(Ae=ut(y.view[ye+1].line)-1,kt=y.view[ye+1].node.previousSibling),!he)return!1;for(var Gt=a.doc.splitLines(Gc(a,he,kt,se,Ae)),Sn=yn(a.doc,Ze(se,0),Ze(Ae,sn(a.doc,Ae).text.length));Gt.length>1&&Sn.length>1;)if(Qe(Gt)==Qe(Sn))Gt.pop(),Sn.pop(),Ae--;else if(Gt[0]==Sn[0])Gt.shift(),Sn.shift(),se++;else break;for(var mn=0,Un=0,qn=Gt[0],pr=Sn[0],Ir=Math.min(qn.length,pr.length);mn<Ir&&qn.charCodeAt(mn)==pr.charCodeAt(mn);)++mn;for(var Fr=Qe(Gt),Pr=Qe(Sn),Wr=Math.min(Fr.length-(Gt.length==1?mn:0),Pr.length-(Sn.length==1?mn:0));Un<Wr&&Fr.charCodeAt(Fr.length-Un-1)==Pr.charCodeAt(Pr.length-Un-1);)++Un;if(Gt.length==1&&Sn.length==1&&se==x.line)for(;mn&&mn>x.ch&&Fr.charCodeAt(Fr.length-Un-1)==Pr.charCodeAt(Pr.length-Un-1);)mn--,Un++;Gt[Gt.length-1]=Fr.slice(0,Fr.length-Un).replace(/^\u200b+/,""),Gt[0]=Gt[0].slice(mn).replace(/\u200b+$/,"");var fi=Ze(se,mn),li=Ze(Ae,Sn.length?Qe(Sn).length-Un:0);if(Gt.length>1||Gt[0]||bt(fi,li))return zi(a.doc,Gt,fi,li,"+input"),!0},uo.prototype.ensurePolled=function(){this.forceCompositionEnd()},uo.prototype.reset=function(){this.forceCompositionEnd()},uo.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},uo.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))},uo.prototype.updateFromDOM=function(){var a=this;(this.cm.isReadOnly()||!this.pollContent())&&ma(this.cm,function(){return sa(a.cm)})},uo.prototype.setUneditable=function(a){a.contentEditable="false"},uo.prototype.onKeyPress=function(a){a.charCode==0||this.composing||(a.preventDefault(),this.cm.isReadOnly()||Qo(this.cm,Sc)(this.cm,String.fromCharCode(a.charCode==null?a.keyCode:a.charCode),0))},uo.prototype.readOnlyChanged=function(a){this.div.contentEditable=String(a!="nocursor")},uo.prototype.onContextMenu=function(){},uo.prototype.resetPosition=function(){},uo.prototype.needsContentAttribute=!0;function zc(a,y){var E=Ha(a,y.line);if(!E||E.hidden)return null;var x=sn(a.doc,y.line),z=dl(E,x,y.line),ie=we(x,a.doc.direction),se="left";if(ie){var he=Ge(ie,y.ch);se=he%2?"right":"left"}var ye=kl(z.map,y.ch,se);return ye.offset=ye.collapse=="right"?ye.end:ye.start,ye}function Uc(a){for(var y=a;y;y=y.parentNode)if(/CodeMirror-gutter-wrapper/.test(y.className))return!0;return!1}function fs(a,y){return y&&(a.bad=!0),a}function Gc(a,y,E,x,z){var ie="",se=!1,he=a.doc.lineSeparator(),ye=!1;function Ae(mn){return function(Un){return Un.id==mn}}function kt(){se&&(ie+=he,ye&&(ie+=he),se=ye=!1)}function Gt(mn){mn&&(kt(),ie+=mn)}function Sn(mn){if(mn.nodeType==1){var Un=mn.getAttribute("cm-text");if(Un){Gt(Un);return}var qn=mn.getAttribute("cm-marker"),pr;if(qn){var Ir=a.findMarks(Ze(x,0),Ze(z+1,0),Ae(+qn));Ir.length&&(pr=Ir[0].find(0))&&Gt(yn(a.doc,pr.from,pr.to).join(he));return}if(mn.getAttribute("contenteditable")=="false")return;var Fr=/^(pre|div|p|li|table|br)$/i.test(mn.nodeName);if(!/^br$/i.test(mn.nodeName)&&mn.textContent.length==0)return;Fr&&kt();for(var Pr=0;Pr<mn.childNodes.length;Pr++)Sn(mn.childNodes[Pr]);/^(pre|p)$/i.test(mn.nodeName)&&(ye=!0),Fr&&(se=!0)}else mn.nodeType==3&&Gt(mn.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Sn(y),y!=E;)y=y.nextSibling,ye=!1;return ie}function tc(a,y,E){var x;if(y==a.display.lineDiv){if(x=a.display.lineDiv.childNodes[E],!x)return fs(a.clipPos(Ze(a.display.viewTo-1)),!0);y=null,E=0}else for(x=y;;x=x.parentNode){if(!x||x==a.display.lineDiv)return null;if(x.parentNode&&x.parentNode==a.display.lineDiv)break}for(var z=0;z<a.display.view.length;z++){var ie=a.display.view[z];if(ie.node==x)return Xc(ie,y,E)}}function Xc(a,y,E){var x=a.text.firstChild,z=!1;if(!y||!at(x,y))return fs(Ze(ut(a.line),0),!0);if(y==x&&(z=!0,y=x.childNodes[E],E=0,!y)){var ie=a.rest?Qe(a.rest):a.line;return fs(Ze(ut(ie),ie.text.length),z)}var se=y.nodeType==3?y:null,he=y;for(!se&&y.childNodes.length==1&&y.firstChild.nodeType==3&&(se=y.firstChild,E&&(E=se.nodeValue.length));he.parentNode!=x;)he=he.parentNode;var ye=a.measure,Ae=ye.maps;function kt(pr,Ir,Fr){for(var Pr=-1;Pr<(Ae?Ae.length:0);Pr++)for(var Wr=Pr<0?ye.map:Ae[Pr],fi=0;fi<Wr.length;fi+=3){var li=Wr[fi+2];if(li==pr||li==Ir){var Ri=ut(Pr<0?a.line:a.rest[Pr]),go=Wr[fi]+Fr;return(Fr<0||li!=pr)&&(go=Wr[fi+(Fr?1:0)]),Ze(Ri,go)}}}var Gt=kt(se,he,E);if(Gt)return fs(Gt,z);for(var Sn=he.nextSibling,mn=se?se.nodeValue.length-E:0;Sn;Sn=Sn.nextSibling){if(Gt=kt(Sn,Sn.firstChild,0),Gt)return fs(Ze(Gt.line,Gt.ch-mn),z);mn+=Sn.textContent.length}for(var Un=he.previousSibling,qn=E;Un;Un=Un.previousSibling){if(Gt=kt(Un,Un.firstChild,-1),Gt)return fs(Ze(Gt.line,Gt.ch+qn),z);qn+=Un.textContent.length}}var jo=function(a){this.cm=a,this.prevInput="",this.pollingFast=!1,this.polling=new pe,this.hasSelection=!1,this.composing=null};jo.prototype.init=function(a){var y=this,E=this,x=this.cm;this.createField(a);var z=this.textarea;a.wrapper.insertBefore(this.wrapper,a.wrapper.firstChild),lt&&(z.style.width="0px"),Zt(z,"input",function(){Se&&xe>=9&&y.hasSelection&&(y.hasSelection=null),E.poll()}),Zt(z,"paste",function(se){St(x,se)||Lc(se,x)||(x.state.pasteIncoming=+new Date,E.fastPoll())});function ie(se){if(!St(x,se)){if(x.somethingSelected())ec({lineWise:!1,text:x.getSelections()});else if(x.options.lineWiseCopyCut){var he=Rc(x);ec({lineWise:!0,text:he.text}),se.type=="cut"?x.setSelections(he.ranges,null,ge):(E.prevInput="",z.value=he.text.join(`
|
|
|
`),He(z))}else return;se.type=="cut"&&(x.state.cutIncoming=+new Date)}}Zt(z,"cut",ie),Zt(z,"copy",ie),Zt(a.scroller,"paste",function(se){if(!(Yo(a,se)||St(x,se))){if(!z.dispatchEvent){x.state.pasteIncoming=+new Date,E.focus();return}var he=new Event("paste");he.clipboardData=se.clipboardData,z.dispatchEvent(he)}}),Zt(a.lineSpace,"selectstart",function(se){Yo(a,se)||mt(se)}),Zt(z,"compositionstart",function(){var se=x.getCursor("from");E.composing&&E.composing.range.clear(),E.composing={start:se,range:x.markText(se,x.getCursor("to"),{className:"CodeMirror-composing"})}}),Zt(z,"compositionend",function(){E.composing&&(E.poll(),E.composing.range.clear(),E.composing=null)})},jo.prototype.createField=function(a){this.wrapper=$c(),this.textarea=this.wrapper.firstChild},jo.prototype.screenReaderLabelChanged=function(a){a?this.textarea.setAttribute("aria-label",a):this.textarea.removeAttribute("aria-label")},jo.prototype.prepareSelection=function(){var a=this.cm,y=a.display,E=a.doc,x=rc(a);if(a.options.moveInputWithCursor){var z=aa(a,E.sel.primary().head,"div"),ie=y.wrapper.getBoundingClientRect(),se=y.lineDiv.getBoundingClientRect();x.teTop=Math.max(0,Math.min(y.wrapper.clientHeight-10,z.top+se.top-ie.top)),x.teLeft=Math.max(0,Math.min(y.wrapper.clientWidth-10,z.left+se.left-ie.left))}return x},jo.prototype.showSelection=function(a){var y=this.cm,E=y.display;ct(E.cursorDiv,a.cursors),ct(E.selectionDiv,a.selection),a.teTop!=null&&(this.wrapper.style.top=a.teTop+"px",this.wrapper.style.left=a.teLeft+"px")},jo.prototype.reset=function(a){if(!(this.contextMenuPending||this.composing)){var y=this.cm;if(y.somethingSelected()){this.prevInput="";var E=y.getSelection();this.textarea.value=E,y.state.focused&&He(this.textarea),Se&&xe>=9&&(this.hasSelection=E)}else a||(this.prevInput=this.textarea.value="",Se&&xe>=9&&(this.hasSelection=null))}},jo.prototype.getField=function(){return this.textarea},jo.prototype.supportsTouch=function(){return!1},jo.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!We||_e()!=this.textarea))try{this.textarea.focus()}catch(a){}},jo.prototype.blur=function(){this.textarea.blur()},jo.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},jo.prototype.receivedFocus=function(){this.slowPoll()},jo.prototype.slowPoll=function(){var a=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){a.poll(),a.cm.state.focused&&a.slowPoll()})},jo.prototype.fastPoll=function(){var a=!1,y=this;y.pollingFast=!0;function E(){var x=y.poll();!x&&!a?(a=!0,y.polling.set(60,E)):(y.pollingFast=!1,y.slowPoll())}y.polling.set(20,E)},jo.prototype.poll=function(){var a=this,y=this.cm,E=this.textarea,x=this.prevInput;if(this.contextMenuPending||!y.state.focused||kn(E)&&!x&&!this.composing||y.isReadOnly()||y.options.disableInput||y.state.keySeq)return!1;var z=E.value;if(z==x&&!y.somethingSelected())return!1;if(Se&&xe>=9&&this.hasSelection===z||ke&&/[\uf700-\uf7ff]/.test(z))return y.display.input.reset(),!1;if(y.doc.sel==y.display.selForContextMenu){var ie=z.charCodeAt(0);if(ie==8203&&!x&&(x="\u200B"),ie==8666)return this.reset(),this.cm.execCommand("undo")}for(var se=0,he=Math.min(x.length,z.length);se<he&&x.charCodeAt(se)==z.charCodeAt(se);)++se;return ma(y,function(){Sc(y,z.slice(se),x.length-se,null,a.composing?"*compose":null),z.length>1e3||z.indexOf(`
|
|
|
`)>-1?E.value=a.prevInput="":a.prevInput=z,a.composing&&(a.composing.range.clear(),a.composing.range=y.markText(a.composing.start,y.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},jo.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},jo.prototype.onKeyPress=function(){Se&&xe>=9&&(this.hasSelection=null),this.fastPoll()},jo.prototype.onContextMenu=function(a){var y=this,E=y.cm,x=E.display,z=y.textarea;y.contextMenuPending&&y.contextMenuPending();var ie=Qa(E,a),se=x.scroller.scrollTop;if(!ie||ue)return;var he=E.options.resetSelectionOnContextMenu;he&&E.doc.sel.contains(ie)==-1&&Qo(E,Tr)(E.doc,_n(ie),ge);var ye=z.style.cssText,Ae=y.wrapper.style.cssText,kt=y.wrapper.offsetParent.getBoundingClientRect();y.wrapper.style.cssText="position: static",z.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
|
top: `+(a.clientY-kt.top-5)+"px; left: "+(a.clientX-kt.left-5)+`px;
|
|
|
z-index: 1000; background: `+(Se?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Gt;Ee&&(Gt=window.scrollY),x.input.focus(),Ee&&window.scrollTo(null,Gt),x.input.reset(),E.somethingSelected()||(z.value=y.prevInput=" "),y.contextMenuPending=mn,x.selForContextMenu=E.doc.sel,clearTimeout(x.detectingSelectAll);function Sn(){if(z.selectionStart!=null){var qn=E.somethingSelected(),pr="\u200B"+(qn?z.value:"");z.value="\u21DA",z.value=pr,y.prevInput=qn?"":"\u200B",z.selectionStart=1,z.selectionEnd=pr.length,x.selForContextMenu=E.doc.sel}}function mn(){if(y.contextMenuPending==mn&&(y.contextMenuPending=!1,y.wrapper.style.cssText=Ae,z.style.cssText=ye,Se&&xe<9&&x.scrollbars.setScrollTop(x.scroller.scrollTop=se),z.selectionStart!=null)){(!Se||Se&&xe<9)&&Sn();var qn=0,pr=function(){x.selForContextMenu==E.doc.sel&&z.selectionStart==0&&z.selectionEnd>0&&y.prevInput=="\u200B"?Qo(E,ei)(E):qn++<10?x.detectingSelectAll=setTimeout(pr,500):(x.selForContextMenu=null,x.input.reset())};x.detectingSelectAll=setTimeout(pr,200)}}if(Se&&xe>=9&&Sn(),Me){Be(a);var Un=function(){nn(window,"mouseup",Un),setTimeout(mn,20)};Zt(window,"mouseup",Un)}else setTimeout(mn,50)},jo.prototype.readOnlyChanged=function(a){a||this.reset(),this.textarea.disabled=a=="nocursor",this.textarea.readOnly=!!a},jo.prototype.setUneditable=function(){},jo.prototype.needsContentAttribute=!1;function Yc(a,y){if(y=y?Yt(y):{},y.value=a.value,!y.tabindex&&a.tabIndex&&(y.tabindex=a.tabIndex),!y.placeholder&&a.placeholder&&(y.placeholder=a.placeholder),y.autofocus==null){var E=_e();y.autofocus=E==a||a.getAttribute("autofocus")!=null&&E==document.body}function x(){a.value=he.getValue()}var z;if(a.form&&(Zt(a.form,"submit",x),!y.leaveSubmitMethodAlone)){var ie=a.form;z=ie.submit;try{var se=ie.submit=function(){x(),ie.submit=z,ie.submit(),ie.submit=se}}catch(ye){}}y.finishInit=function(ye){ye.save=x,ye.getTextArea=function(){return a},ye.toTextArea=function(){ye.toTextArea=isNaN,x(),a.parentNode.removeChild(ye.getWrapperElement()),a.style.display="",a.form&&(nn(a.form,"submit",x),!y.leaveSubmitMethodAlone&&typeof a.form.submit=="function"&&(a.form.submit=z))}},a.style.display="none";var he=Oo(function(ye){return a.parentNode.insertBefore(ye,a.nextSibling)},y);return he}function Qc(a){a.off=nn,a.on=Zt,a.wheelEventPixels=Dn,a.Doc=ao,a.splitLines=gn,a.countColumn=Oe,a.findColumn=Wt,a.isWordChar=oe,a.Pass=Ot,a.signal=Ut,a.Line=Ni,a.changeEnd=or,a.scrollbarModel=sc,a.Pos=Ze,a.cmpPos=bt,a.modes=on,a.mimeModes=Xt,a.resolveMode=wn,a.getMode=$n,a.modeExtensions=xn,a.extendMode=hn,a.copyState=Zn,a.startState=ir,a.innerMode=Wn,a.commands=ll,a.keyMap=Ho,a.keyName=vl,a.isModifierKey=Ps,a.lookupKey=Dl,a.normalizeKeyMap=ea,a.StringStream=tr,a.SharedTextMarker=oo,a.TextMarker=ga,a.LineWidget=Xi,a.e_preventDefault=mt,a.e_stopPropagation=jt,a.e_stop=Be,a.addClass=de,a.contains=at,a.rmClass=Je,a.keyNames=Li}jc(Oo),Vc(Oo);var Jc="iter insert remove copy getEditor constructor".split(" ");for(var nc in ao.prototype)ao.prototype.hasOwnProperty(nc)&&Lt(Jc,nc)<0&&(Oo.prototype[nc]=function(a){return function(){return a.apply(this.doc,arguments)}}(ao.prototype[nc]));return $e(ao),Oo.inputStyles={textarea:jo,contenteditable:uo},Oo.defineMode=function(a){!Oo.defaults.mode&&a!="null"&&(Oo.defaults.mode=a),vn.apply(this,arguments)},Oo.defineMIME=pn,Oo.defineMode("null",function(){return{token:function(a){return a.skipToEnd()}}}),Oo.defineMIME("text/plain","null"),Oo.defineExtension=function(a,y){Oo.prototype[a]=y},Oo.defineDocExtension=function(a,y){ao.prototype[a]=y},Oo.fromTextArea=Yc,Qc(Oo),Oo.version="5.58.2",Oo})},25419:function(In,Qt,ee){(function(b){b(ee(89780),ee(15525),ee(98101))})(function(b){"use strict";b.defineMode("markdown",function(ze,fe){var nt=b.getMode(ze,"text/html"),Se=nt.name=="null";function xe(Oe){if(b.findModeByName){var pe=b.findModeByName(Oe);pe&&(Oe=pe.mime||pe.mimes[0])}var Lt=b.getMode(ze,Oe);return Lt.name=="null"?null:Lt}fe.highlightFormatting===void 0&&(fe.highlightFormatting=!1),fe.maxBlockquoteDepth===void 0&&(fe.maxBlockquoteDepth=0),fe.taskLists===void 0&&(fe.taskLists=!1),fe.strikethrough===void 0&&(fe.strikethrough=!1),fe.emoji===void 0&&(fe.emoji=!1),fe.fencedCodeBlockHighlighting===void 0&&(fe.fencedCodeBlockHighlighting=!0),fe.fencedCodeBlockDefaultMode===void 0&&(fe.fencedCodeBlockDefaultMode="text/plain"),fe.xml===void 0&&(fe.xml=!0),fe.tokenTypeOverrides===void 0&&(fe.tokenTypeOverrides={});var Ee={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 je in Ee)Ee.hasOwnProperty(je)&&fe.tokenTypeOverrides[je]&&(Ee[je]=fe.tokenTypeOverrides[je]);var Ie=/^([*\-_])(?:\s*\1){2,}\s*$/,ue=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,et=/^\[(x| )\](?=\s)/i,Te=fe.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,At=/^ {0,3}(?:\={1,}|-{2,})\s*$/,lt=/^[^#!\[\]*_\\<>` "'(~:]+/,it=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,We=/^\s*\[[^\]]+?\]:.*$/,ke=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,ot=" ";function yt(Oe,pe,Lt){return pe.f=pe.inline=Lt,Lt(Oe,pe)}function Nt(Oe,pe,Lt){return pe.f=pe.block=Lt,Lt(Oe,pe)}function Fe(Oe){return!Oe||!/\S/.test(Oe.string)}function Me(Oe){if(Oe.linkTitle=!1,Oe.linkHref=!1,Oe.linkText=!1,Oe.em=!1,Oe.strong=!1,Oe.strikethrough=!1,Oe.quote=0,Oe.indentedCode=!1,Oe.f==Je){var pe=Se;if(!pe){var Lt=b.innerMode(nt,Oe.htmlState);pe=Lt.mode.name=="xml"&&Lt.state.tagStart===null&&!Lt.state.context&&Lt.state.tokenize.isInText}pe&&(Oe.f=rt,Oe.block=Xe,Oe.htmlState=null)}return Oe.trailingSpace=0,Oe.trailingSpaceNewLine=!1,Oe.prevLine=Oe.thisLine,Oe.thisLine={stream:null},null}function Xe(Oe,pe){var Lt=Oe.column()===pe.indentation,en=Fe(pe.prevLine.stream),Ot=pe.indentedCode,ge=pe.prevLine.hr,Ke=pe.list!==!1,tt=(pe.listStack[pe.listStack.length-1]||0)+3;pe.indentedCode=!1;var Wt=pe.indentation;if(pe.indentationDiff===null&&(pe.indentationDiff=pe.indentation,Ke)){for(pe.list=null;Wt<pe.listStack[pe.listStack.length-1];)pe.listStack.pop(),pe.listStack.length?pe.indentation=pe.listStack[pe.listStack.length-1]:pe.list=!1;pe.list!==!1&&(pe.indentationDiff=Wt-pe.listStack[pe.listStack.length-1])}var qe=!en&&!ge&&!pe.prevLine.header&&(!Ke||!Ot)&&!pe.prevLine.fencedCodeEnd,Rt=(pe.list===!1||ge||en)&&pe.indentation<=tt&&Oe.match(Ie),Qe=null;if(pe.indentationDiff>=4&&(Ot||pe.prevLine.fencedCodeEnd||pe.prevLine.header||en))return Oe.skipToEnd(),pe.indentedCode=!0,Ee.code;if(Oe.eatSpace())return null;if(Lt&&pe.indentation<=tt&&(Qe=Oe.match(Te))&&Qe[1].length<=6)return pe.quote=0,pe.header=Qe[1].length,pe.thisLine.header=!0,fe.highlightFormatting&&(pe.formatting="header"),pe.f=pe.inline,ct(pe);if(pe.indentation<=tt&&Oe.eat(">"))return pe.quote=Lt?1:pe.quote+1,fe.highlightFormatting&&(pe.formatting="quote"),Oe.eatSpace(),ct(pe);if(!Rt&&!pe.setext&&Lt&&pe.indentation<=tt&&(Qe=Oe.match(ue))){var tn=Qe[1]?"ol":"ul";return pe.indentation=Wt+Oe.current().length,pe.list=!0,pe.quote=0,pe.listStack.push(pe.indentation),pe.em=!1,pe.strong=!1,pe.code=!1,pe.strikethrough=!1,fe.taskLists&&Oe.match(et,!1)&&(pe.taskList=!0),pe.f=pe.inline,fe.highlightFormatting&&(pe.formatting=["list","list-"+tn]),ct(pe)}else{if(Lt&&pe.indentation<=tt&&(Qe=Oe.match(it,!0)))return pe.quote=0,pe.fencedEndRE=new RegExp(Qe[1]+"+ *$"),pe.localMode=fe.fencedCodeBlockHighlighting&&xe(Qe[2]||fe.fencedCodeBlockDefaultMode),pe.localMode&&(pe.localState=b.startState(pe.localMode)),pe.f=pe.block=$t,fe.highlightFormatting&&(pe.formatting="code-block"),pe.code=-1,ct(pe);if(pe.setext||(!qe||!Ke)&&!pe.quote&&pe.list===!1&&!pe.code&&!Rt&&!We.test(Oe.string)&&(Qe=Oe.lookAhead(1))&&(Qe=Qe.match(At)))return pe.setext?(pe.header=pe.setext,pe.setext=0,Oe.skipToEnd(),fe.highlightFormatting&&(pe.formatting="header")):(pe.header=Qe[0].charAt(0)=="="?1:2,pe.setext=pe.header),pe.thisLine.header=!0,pe.f=pe.inline,ct(pe);if(Rt)return Oe.skipToEnd(),pe.hr=!0,pe.thisLine.hr=!0,Ee.hr;if(Oe.peek()==="[")return yt(Oe,pe,Et)}return yt(Oe,pe,pe.inline)}function Je(Oe,pe){var Lt=nt.token(Oe,pe.htmlState);if(!Se){var en=b.innerMode(nt,pe.htmlState);(en.mode.name=="xml"&&en.state.tagStart===null&&!en.state.context&&en.state.tokenize.isInText||pe.md_inside&&Oe.current().indexOf(">")>-1)&&(pe.f=rt,pe.block=Xe,pe.htmlState=null)}return Lt}function $t(Oe,pe){var Lt=pe.listStack[pe.listStack.length-1]||0,en=pe.indentation<Lt,Ot=Lt+3;if(pe.fencedEndRE&&pe.indentation<=Ot&&(en||Oe.match(pe.fencedEndRE))){fe.highlightFormatting&&(pe.formatting="code-block");var ge;return en||(ge=ct(pe)),pe.localMode=pe.localState=null,pe.block=Xe,pe.f=rt,pe.fencedEndRE=null,pe.code=0,pe.thisLine.fencedCodeEnd=!0,en?Nt(Oe,pe,pe.block):ge}else return pe.localMode?pe.localMode.token(Oe,pe.localState):(Oe.skipToEnd(),Ee.code)}function ct(Oe){var pe=[];if(Oe.formatting){pe.push(Ee.formatting),typeof Oe.formatting=="string"&&(Oe.formatting=[Oe.formatting]);for(var Lt=0;Lt<Oe.formatting.length;Lt++)pe.push(Ee.formatting+"-"+Oe.formatting[Lt]),Oe.formatting[Lt]==="header"&&pe.push(Ee.formatting+"-"+Oe.formatting[Lt]+"-"+Oe.header),Oe.formatting[Lt]==="quote"&&(!fe.maxBlockquoteDepth||fe.maxBlockquoteDepth>=Oe.quote?pe.push(Ee.formatting+"-"+Oe.formatting[Lt]+"-"+Oe.quote):pe.push("error"))}if(Oe.taskOpen)return pe.push("meta"),pe.length?pe.join(" "):null;if(Oe.taskClosed)return pe.push("property"),pe.length?pe.join(" "):null;if(Oe.linkHref?pe.push(Ee.linkHref,"url"):(Oe.strong&&pe.push(Ee.strong),Oe.em&&pe.push(Ee.em),Oe.strikethrough&&pe.push(Ee.strikethrough),Oe.emoji&&pe.push(Ee.emoji),Oe.linkText&&pe.push(Ee.linkText),Oe.code&&pe.push(Ee.code),Oe.image&&pe.push(Ee.image),Oe.imageAltText&&pe.push(Ee.imageAltText,"link"),Oe.imageMarker&&pe.push(Ee.imageMarker)),Oe.header&&pe.push(Ee.header,Ee.header+"-"+Oe.header),Oe.quote&&(pe.push(Ee.quote),!fe.maxBlockquoteDepth||fe.maxBlockquoteDepth>=Oe.quote?pe.push(Ee.quote+"-"+Oe.quote):pe.push(Ee.quote+"-"+fe.maxBlockquoteDepth)),Oe.list!==!1){var en=(Oe.listStack.length-1)%3;en?en===1?pe.push(Ee.list2):pe.push(Ee.list3):pe.push(Ee.list1)}return Oe.trailingSpaceNewLine?pe.push("trailing-space-new-line"):Oe.trailingSpace&&pe.push("trailing-space-"+(Oe.trailingSpace%2?"a":"b")),pe.length?pe.join(" "):null}function Ye(Oe,pe){if(Oe.match(lt,!0))return ct(pe)}function rt(Oe,pe){var Lt=pe.text(Oe,pe);if(typeof Lt!="undefined")return Lt;if(pe.list)return pe.list=null,ct(pe);if(pe.taskList){var en=Oe.match(et,!0)[1]===" ";return en?pe.taskOpen=!0:pe.taskClosed=!0,fe.highlightFormatting&&(pe.formatting="task"),pe.taskList=!1,ct(pe)}if(pe.taskOpen=!1,pe.taskClosed=!1,pe.header&&Oe.match(/^#+$/,!0))return fe.highlightFormatting&&(pe.formatting="header"),ct(pe);var Ot=Oe.next();if(pe.linkTitle){pe.linkTitle=!1;var ge=Ot;Ot==="("&&(ge=")"),ge=(ge+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Ke="^\\s*(?:[^"+ge+"\\\\]+|\\\\\\\\|\\\\.)"+ge;if(Oe.match(new RegExp(Ke),!0))return Ee.linkHref}if(Ot==="`"){var tt=pe.formatting;fe.highlightFormatting&&(pe.formatting="code"),Oe.eatWhile("`");var Wt=Oe.current().length;if(pe.code==0&&(!pe.quote||Wt==1))return pe.code=Wt,ct(pe);if(Wt==pe.code){var qe=ct(pe);return pe.code=0,qe}else return pe.formatting=tt,ct(pe)}else if(pe.code)return ct(pe);if(Ot==="\\"&&(Oe.next(),fe.highlightFormatting)){var Rt=ct(pe),Qe=Ee.formatting+"-escape";return Rt?Rt+" "+Qe:Qe}if(Ot==="!"&&Oe.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return pe.imageMarker=!0,pe.image=!0,fe.highlightFormatting&&(pe.formatting="image"),ct(pe);if(Ot==="["&&pe.imageMarker&&Oe.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return pe.imageMarker=!1,pe.imageAltText=!0,fe.highlightFormatting&&(pe.formatting="image"),ct(pe);if(Ot==="]"&&pe.imageAltText){fe.highlightFormatting&&(pe.formatting="image");var Rt=ct(pe);return pe.imageAltText=!1,pe.image=!1,pe.inline=pe.f=at,Rt}if(Ot==="["&&!pe.image)return pe.linkText&&Oe.match(/^.*?\]/)||(pe.linkText=!0,fe.highlightFormatting&&(pe.formatting="link")),ct(pe);if(Ot==="]"&&pe.linkText){fe.highlightFormatting&&(pe.formatting="link");var Rt=ct(pe);return pe.linkText=!1,pe.inline=pe.f=Oe.match(/\(.*?\)| ?\[.*?\]/,!1)?at:rt,Rt}if(Ot==="<"&&Oe.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){pe.f=pe.inline=Ce,fe.highlightFormatting&&(pe.formatting="link");var Rt=ct(pe);return Rt?Rt+=" ":Rt="",Rt+Ee.linkInline}if(Ot==="<"&&Oe.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){pe.f=pe.inline=Ce,fe.highlightFormatting&&(pe.formatting="link");var Rt=ct(pe);return Rt?Rt+=" ":Rt="",Rt+Ee.linkEmail}if(fe.xml&&Ot==="<"&&Oe.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var tn=Oe.string.indexOf(">",Oe.pos);if(tn!=-1){var gt=Oe.string.substring(Oe.start,tn);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(gt)&&(pe.md_inside=!0)}return Oe.backUp(1),pe.htmlState=b.startState(nt),Nt(Oe,pe,Je)}if(fe.xml&&Ot==="<"&&Oe.match(/^\/\w*?>/))return pe.md_inside=!1,"tag";if(Ot==="*"||Ot==="_"){for(var ae=1,ne=Oe.pos==1?" ":Oe.string.charAt(Oe.pos-2);ae<3&&Oe.eat(Ot);)ae++;var te=Oe.peek()||" ",oe=!/\s/.test(te)&&(!ke.test(te)||/\s/.test(ne)||ke.test(ne)),ce=!/\s/.test(ne)&&(!ke.test(ne)||/\s/.test(te)||ke.test(te)),re=null,le=null;if(ae%2&&(!pe.em&&oe&&(Ot==="*"||!ce||ke.test(ne))?re=!0:pe.em==Ot&&ce&&(Ot==="*"||!oe||ke.test(te))&&(re=!1)),ae>1&&(!pe.strong&&oe&&(Ot==="*"||!ce||ke.test(ne))?le=!0:pe.strong==Ot&&ce&&(Ot==="*"||!oe||ke.test(te))&&(le=!1)),le!=null||re!=null){fe.highlightFormatting&&(pe.formatting=re==null?"strong":le==null?"em":"strong em"),re===!0&&(pe.em=Ot),le===!0&&(pe.strong=Ot);var qe=ct(pe);return re===!1&&(pe.em=!1),le===!1&&(pe.strong=!1),qe}}else if(Ot===" "&&(Oe.eat("*")||Oe.eat("_"))){if(Oe.peek()===" ")return ct(pe);Oe.backUp(1)}if(fe.strikethrough){if(Ot==="~"&&Oe.eatWhile(Ot)){if(pe.strikethrough){fe.highlightFormatting&&(pe.formatting="strikethrough");var qe=ct(pe);return pe.strikethrough=!1,qe}else if(Oe.match(/^[^\s]/,!1))return pe.strikethrough=!0,fe.highlightFormatting&&(pe.formatting="strikethrough"),ct(pe)}else if(Ot===" "&&Oe.match(/^~~/,!0)){if(Oe.peek()===" ")return ct(pe);Oe.backUp(2)}}if(fe.emoji&&Ot===":"&&Oe.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){pe.emoji=!0,fe.highlightFormatting&&(pe.formatting="emoji");var be=ct(pe);return pe.emoji=!1,be}return Ot===" "&&(Oe.match(/^ +$/,!1)?pe.trailingSpace++:pe.trailingSpace&&(pe.trailingSpaceNewLine=!0)),ct(pe)}function Ce(Oe,pe){var Lt=Oe.next();if(Lt===">"){pe.f=pe.inline=rt,fe.highlightFormatting&&(pe.formatting="link");var en=ct(pe);return en?en+=" ":en="",en+Ee.linkInline}return Oe.match(/^[^>]+/,!0),Ee.linkInline}function at(Oe,pe){if(Oe.eatSpace())return null;var Lt=Oe.next();return Lt==="("||Lt==="["?(pe.f=pe.inline=de(Lt==="("?")":"]"),fe.highlightFormatting&&(pe.formatting="link-string"),pe.linkHref=!0,ct(pe)):"error"}var _e={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function de(Oe){return function(pe,Lt){var en=pe.next();if(en===Oe){Lt.f=Lt.inline=rt,fe.highlightFormatting&&(Lt.formatting="link-string");var Ot=ct(Lt);return Lt.linkHref=!1,Ot}return pe.match(_e[Oe]),Lt.linkHref=!0,ct(Lt)}}function Et(Oe,pe){return Oe.match(/^([^\]\\]|\\.)*\]:/,!1)?(pe.f=He,Oe.next(),fe.highlightFormatting&&(pe.formatting="link"),pe.linkText=!0,ct(pe)):yt(Oe,pe,rt)}function He(Oe,pe){if(Oe.match(/^\]:/,!0)){pe.f=pe.inline=st,fe.highlightFormatting&&(pe.formatting="link");var Lt=ct(pe);return pe.linkText=!1,Lt}return Oe.match(/^([^\]\\]|\\.)+/,!0),Ee.linkText}function st(Oe,pe){return Oe.eatSpace()?null:(Oe.match(/^[^\s]+/,!0),Oe.peek()===void 0?pe.linkTitle=!0:Oe.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),pe.f=pe.inline=rt,Ee.linkHref+" url")}var Yt={startState:function(){return{f:Xe,prevLine:{stream:null},thisLine:{stream:null},block:Xe,htmlState:null,indentation:0,inline:rt,text:Ye,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(Oe){return{f:Oe.f,prevLine:Oe.prevLine,thisLine:Oe.thisLine,block:Oe.block,htmlState:Oe.htmlState&&b.copyState(nt,Oe.htmlState),indentation:Oe.indentation,localMode:Oe.localMode,localState:Oe.localMode?b.copyState(Oe.localMode,Oe.localState):null,inline:Oe.inline,text:Oe.text,formatting:!1,linkText:Oe.linkText,linkTitle:Oe.linkTitle,linkHref:Oe.linkHref,code:Oe.code,em:Oe.em,strong:Oe.strong,strikethrough:Oe.strikethrough,emoji:Oe.emoji,header:Oe.header,setext:Oe.setext,hr:Oe.hr,taskList:Oe.taskList,list:Oe.list,listStack:Oe.listStack.slice(0),quote:Oe.quote,indentedCode:Oe.indentedCode,trailingSpace:Oe.trailingSpace,trailingSpaceNewLine:Oe.trailingSpaceNewLine,md_inside:Oe.md_inside,fencedEndRE:Oe.fencedEndRE}},token:function(Oe,pe){if(pe.formatting=!1,Oe!=pe.thisLine.stream){if(pe.header=0,pe.hr=!1,Oe.match(/^\s*$/,!0))return Me(pe),null;if(pe.prevLine=pe.thisLine,pe.thisLine={stream:Oe},pe.taskList=!1,pe.trailingSpace=0,pe.trailingSpaceNewLine=!1,!pe.localState&&(pe.f=pe.block,pe.f!=Je)){var Lt=Oe.match(/^\s*/,!0)[0].replace(/\t/g,ot).length;if(pe.indentation=Lt,pe.indentationDiff=null,Lt>0)return null}}return pe.f(Oe,pe)},innerMode:function(Oe){return Oe.block==Je?{state:Oe.htmlState,mode:nt}:Oe.localState?{state:Oe.localState,mode:Oe.localMode}:{state:Oe,mode:Yt}},indent:function(Oe,pe,Lt){return Oe.block==Je&&nt.indent?nt.indent(Oe.htmlState,pe,Lt):Oe.localState&&Oe.localMode.indent?Oe.localMode.indent(Oe.localState,pe,Lt):b.Pass},blankLine:Me,getType:ct,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Yt},"xml"),b.defineMIME("text/markdown","markdown"),b.defineMIME("text/x-markdown","markdown")})},98101:function(In,Qt,ee){(function(b){b(ee(89780))})(function(b){"use strict";b.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 ze=0;ze<b.modeInfo.length;ze++){var fe=b.modeInfo[ze];fe.mimes&&(fe.mime=fe.mimes[0])}b.findModeByMIME=function(nt){nt=nt.toLowerCase();for(var Se=0;Se<b.modeInfo.length;Se++){var xe=b.modeInfo[Se];if(xe.mime==nt)return xe;if(xe.mimes){for(var Ee=0;Ee<xe.mimes.length;Ee++)if(xe.mimes[Ee]==nt)return xe}}if(/\+xml$/.test(nt))return b.findModeByMIME("application/xml");if(/\+json$/.test(nt))return b.findModeByMIME("application/json")},b.findModeByExtension=function(nt){nt=nt.toLowerCase();for(var Se=0;Se<b.modeInfo.length;Se++){var xe=b.modeInfo[Se];if(xe.ext){for(var Ee=0;Ee<xe.ext.length;Ee++)if(xe.ext[Ee]==nt)return xe}}},b.findModeByFileName=function(nt){for(var Se=0;Se<b.modeInfo.length;Se++){var xe=b.modeInfo[Se];if(xe.file&&xe.file.test(nt))return xe}var Ee=nt.lastIndexOf("."),je=Ee>-1&&nt.substring(Ee+1,nt.length);if(je)return b.findModeByExtension(je)},b.findModeByName=function(nt){nt=nt.toLowerCase();for(var Se=0;Se<b.modeInfo.length;Se++){var xe=b.modeInfo[Se];if(xe.name.toLowerCase()==nt)return xe;if(xe.alias){for(var Ee=0;Ee<xe.alias.length;Ee++)if(xe.alias[Ee].toLowerCase()==nt)return xe}}}})},67549:function(In,Qt,ee){(function(b){b(ee(89780))})(function(b){"use strict";b.defineMode("stex",function(ze,fe){"use strict";function nt(lt,it){lt.cmdState.push(it)}function Se(lt){return lt.cmdState.length>0?lt.cmdState[lt.cmdState.length-1]:null}function xe(lt){var it=lt.cmdState.pop();it&&it.closeBracket()}function Ee(lt){for(var it=lt.cmdState,We=it.length-1;We>=0;We--){var ke=it[We];if(ke.name!="DEFAULT")return ke}return{styleIdentifier:function(){return null}}}function je(lt,it,We){return function(){this.name=lt,this.bracketNo=0,this.style=it,this.styles=We,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var Ie={};Ie.importmodule=je("importmodule","tag",["string","builtin"]),Ie.documentclass=je("documentclass","tag",["","atom"]),Ie.usepackage=je("usepackage","tag",["atom"]),Ie.begin=je("begin","tag",["atom"]),Ie.end=je("end","tag",["atom"]),Ie.label=je("label","tag",["atom"]),Ie.ref=je("ref","tag",["atom"]),Ie.eqref=je("eqref","tag",["atom"]),Ie.cite=je("cite","tag",["atom"]),Ie.bibitem=je("bibitem","tag",["atom"]),Ie.Bibitem=je("Bibitem","tag",["atom"]),Ie.RBibitem=je("RBibitem","tag",["atom"]),Ie.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function ue(lt,it){lt.f=it}function et(lt,it){var We;if(lt.match(/^\\[a-zA-Z@]+/)){var ke=lt.current().slice(1);return We=Ie.hasOwnProperty(ke)?Ie[ke]:Ie.DEFAULT,We=new We,nt(it,We),ue(it,At),We.style}if(lt.match(/^\\[$&%#{}_]/)||lt.match(/^\\[,;!\/\\]/))return"tag";if(lt.match("\\["))return ue(it,function(yt,Nt){return Te(yt,Nt,"\\]")}),"keyword";if(lt.match("\\("))return ue(it,function(yt,Nt){return Te(yt,Nt,"\\)")}),"keyword";if(lt.match("$$"))return ue(it,function(yt,Nt){return Te(yt,Nt,"$$")}),"keyword";if(lt.match("$"))return ue(it,function(yt,Nt){return Te(yt,Nt,"$")}),"keyword";var ot=lt.next();if(ot=="%")return lt.skipToEnd(),"comment";if(ot=="}"||ot=="]"){if(We=Se(it),We)We.closeBracket(ot),ue(it,At);else return"error";return"bracket"}else return ot=="{"||ot=="["?(We=Ie.DEFAULT,We=new We,nt(it,We),"bracket"):/\d/.test(ot)?(lt.eatWhile(/[\w.%]/),"atom"):(lt.eatWhile(/[\w\-_]/),We=Ee(it),We.name=="begin"&&(We.argument=lt.current()),We.styleIdentifier())}function Te(lt,it,We){if(lt.eatSpace())return null;if(We&<.match(We))return ue(it,et),"keyword";if(lt.match(/^\\[a-zA-Z@]+/))return"tag";if(lt.match(/^[a-zA-Z]+/))return"variable-2";if(lt.match(/^\\[$&%#{}_]/)||lt.match(/^\\[,;!\/]/)||lt.match(/^[\^_&]/))return"tag";if(lt.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(lt.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var ke=lt.next();return ke=="{"||ke=="}"||ke=="["||ke=="]"||ke=="("||ke==")"?"bracket":ke=="%"?(lt.skipToEnd(),"comment"):"error"}function At(lt,it){var We=lt.peek(),ke;return We=="{"||We=="["?(ke=Se(it),ke.openBracket(We),lt.eat(We),ue(it,et),"bracket"):/[ \t\r]/.test(We)?(lt.eat(We),null):(ue(it,et),xe(it),et(lt,it))}return{startState:function(){var lt=fe.inMathMode?function(it,We){return Te(it,We)}:et;return{cmdState:[],f:lt}},copyState:function(lt){return{cmdState:lt.cmdState.slice(),f:lt.f}},token:function(lt,it){return it.f(lt,it)},blankLine:function(lt){lt.f=et,lt.cmdState.length=0},lineComment:"%"}}),b.defineMIME("text/x-stex","stex"),b.defineMIME("text/x-latex","stex")})},15525:function(In,Qt,ee){(function(b){b(ee(89780))})(function(b){"use strict";var ze={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},fe={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};b.defineMode("xml",function(nt,Se){var xe=nt.indentUnit,Ee={},je=Se.htmlMode?ze:fe;for(var Ie in je)Ee[Ie]=je[Ie];for(var Ie in Se)Ee[Ie]=Se[Ie];var ue,et;function Te(Ce,at){function _e(He){return at.tokenize=He,He(Ce,at)}var de=Ce.next();if(de=="<")return Ce.eat("!")?Ce.eat("[")?Ce.match("CDATA[")?_e(it("atom","]]>")):null:Ce.match("--")?_e(it("comment","-->")):Ce.match("DOCTYPE",!0,!0)?(Ce.eatWhile(/[\w\._\-]/),_e(We(1))):null:Ce.eat("?")?(Ce.eatWhile(/[\w\._\-]/),at.tokenize=it("meta","?>"),"meta"):(ue=Ce.eat("/")?"closeTag":"openTag",at.tokenize=At,"tag bracket");if(de=="&"){var Et;return Ce.eat("#")?Ce.eat("x")?Et=Ce.eatWhile(/[a-fA-F\d]/)&&Ce.eat(";"):Et=Ce.eatWhile(/[\d]/)&&Ce.eat(";"):Et=Ce.eatWhile(/[\w\.\-:]/)&&Ce.eat(";"),Et?"atom":"error"}else return Ce.eatWhile(/[^&<]/),null}Te.isInText=!0;function At(Ce,at){var _e=Ce.next();if(_e==">"||_e=="/"&&Ce.eat(">"))return at.tokenize=Te,ue=_e==">"?"endTag":"selfcloseTag","tag bracket";if(_e=="=")return ue="equals",null;if(_e=="<"){at.tokenize=Te,at.state=Nt,at.tagName=at.tagStart=null;var de=at.tokenize(Ce,at);return de?de+" tag error":"tag error"}else return/[\'\"]/.test(_e)?(at.tokenize=lt(_e),at.stringStartCol=Ce.column(),at.tokenize(Ce,at)):(Ce.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function lt(Ce){var at=function(_e,de){for(;!_e.eol();)if(_e.next()==Ce){de.tokenize=At;break}return"string"};return at.isInAttribute=!0,at}function it(Ce,at){return function(_e,de){for(;!_e.eol();){if(_e.match(at)){de.tokenize=Te;break}_e.next()}return Ce}}function We(Ce){return function(at,_e){for(var de;(de=at.next())!=null;){if(de=="<")return _e.tokenize=We(Ce+1),_e.tokenize(at,_e);if(de==">")if(Ce==1){_e.tokenize=Te;break}else return _e.tokenize=We(Ce-1),_e.tokenize(at,_e)}return"meta"}}function ke(Ce,at,_e){this.prev=Ce.context,this.tagName=at,this.indent=Ce.indented,this.startOfLine=_e,(Ee.doNotIndent.hasOwnProperty(at)||Ce.context&&Ce.context.noIndent)&&(this.noIndent=!0)}function ot(Ce){Ce.context&&(Ce.context=Ce.context.prev)}function yt(Ce,at){for(var _e;;){if(!Ce.context||(_e=Ce.context.tagName,!Ee.contextGrabbers.hasOwnProperty(_e)||!Ee.contextGrabbers[_e].hasOwnProperty(at)))return;ot(Ce)}}function Nt(Ce,at,_e){return Ce=="openTag"?(_e.tagStart=at.column(),Fe):Ce=="closeTag"?Me:Nt}function Fe(Ce,at,_e){return Ce=="word"?(_e.tagName=at.current(),et="tag",$t):Ee.allowMissingTagName&&Ce=="endTag"?(et="tag bracket",$t(Ce,at,_e)):(et="error",Fe)}function Me(Ce,at,_e){if(Ce=="word"){var de=at.current();return _e.context&&_e.context.tagName!=de&&Ee.implicitlyClosed.hasOwnProperty(_e.context.tagName)&&ot(_e),_e.context&&_e.context.tagName==de||Ee.matchClosing===!1?(et="tag",Xe):(et="tag error",Je)}else return Ee.allowMissingTagName&&Ce=="endTag"?(et="tag bracket",Xe(Ce,at,_e)):(et="error",Je)}function Xe(Ce,at,_e){return Ce!="endTag"?(et="error",Xe):(ot(_e),Nt)}function Je(Ce,at,_e){return et="error",Xe(Ce,at,_e)}function $t(Ce,at,_e){if(Ce=="word")return et="attribute",ct;if(Ce=="endTag"||Ce=="selfcloseTag"){var de=_e.tagName,Et=_e.tagStart;return _e.tagName=_e.tagStart=null,Ce=="selfcloseTag"||Ee.autoSelfClosers.hasOwnProperty(de)?yt(_e,de):(yt(_e,de),_e.context=new ke(_e,de,Et==_e.indented)),Nt}return et="error",$t}function ct(Ce,at,_e){return Ce=="equals"?Ye:(Ee.allowMissing||(et="error"),$t(Ce,at,_e))}function Ye(Ce,at,_e){return Ce=="string"?rt:Ce=="word"&&Ee.allowUnquoted?(et="string",$t):(et="error",$t(Ce,at,_e))}function rt(Ce,at,_e){return Ce=="string"?rt:$t(Ce,at,_e)}return{startState:function(Ce){var at={tokenize:Te,state:Nt,indented:Ce||0,tagName:null,tagStart:null,context:null};return Ce!=null&&(at.baseIndent=Ce),at},token:function(Ce,at){if(!at.tagName&&Ce.sol()&&(at.indented=Ce.indentation()),Ce.eatSpace())return null;ue=null;var _e=at.tokenize(Ce,at);return(_e||ue)&&_e!="comment"&&(et=null,at.state=at.state(ue||_e,Ce,at),et&&(_e=et=="error"?_e+" error":et)),_e},indent:function(Ce,at,_e){var de=Ce.context;if(Ce.tokenize.isInAttribute)return Ce.tagStart==Ce.indented?Ce.stringStartCol+1:Ce.indented+xe;if(de&&de.noIndent)return b.Pass;if(Ce.tokenize!=At&&Ce.tokenize!=Te)return _e?_e.match(/^(\s*)/)[0].length:0;if(Ce.tagName)return Ee.multilineTagIndentPastTag!==!1?Ce.tagStart+Ce.tagName.length+2:Ce.tagStart+xe*(Ee.multilineTagIndentFactor||1);if(Ee.alignCDATA&&/<!\[CDATA\[/.test(at))return 0;var Et=at&&/^<(\/)?([\w_:\.-]*)/.exec(at);if(Et&&Et[1])for(;de;)if(de.tagName==Et[2]){de=de.prev;break}else if(Ee.implicitlyClosed.hasOwnProperty(de.tagName))de=de.prev;else break;else if(Et)for(;de;){var He=Ee.contextGrabbers[de.tagName];if(He&&He.hasOwnProperty(Et[2]))de=de.prev;else break}for(;de&&de.prev&&!de.startOfLine;)de=de.prev;return de?de.indent+xe:Ce.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:Ee.htmlMode?"html":"xml",helperType:Ee.htmlMode?"html":"xml",skipAttribute:function(Ce){Ce.state==Ye&&(Ce.state=$t)},xmlCurrentTag:function(Ce){return Ce.tagName?{name:Ce.tagName,close:Ce.type=="closeTag"}:null},xmlCurrentContext:function(Ce){for(var at=[],_e=Ce.context;_e;_e=_e.prev)_e.tagName&&at.push(_e.tagName);return at.reverse()}}}),b.defineMIME("text/xml","xml"),b.defineMIME("application/xml","xml"),b.mimeModes.hasOwnProperty("text/html")||b.defineMIME("text/html",{name:"xml",htmlMode:!0})})},2859:function(In,Qt,ee){"use strict";ee.d(Qt,{hP:function(){return gt}});var b=function(ae,ne){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(te,oe){te.__proto__=oe}||function(te,oe){for(var ce in oe)Object.prototype.hasOwnProperty.call(oe,ce)&&(te[ce]=oe[ce])})(ae,ne)};function ze(ae,ne){function te(){this.constructor=ae}b(ae,ne),ae.prototype=ne===null?Object.create(ne):(te.prototype=ne.prototype,new te)}function fe(ae,ne,te,oe){return new(te||(te=Promise))(function(ce,re){function le(Le){try{ht(oe.next(Le))}catch(Ne){re(Ne)}}function be(Le){try{ht(oe.throw(Le))}catch(Ne){re(Ne)}}function ht(Le){var Ne;Le.done?ce(Le.value):(Ne=Le.value,Ne instanceof te?Ne:new te(function(Ve){Ve(Ne)})).then(le,be)}ht((oe=oe.apply(ae,ne||[])).next())})}function nt(ae,ne){var te,oe,ce,re,le={label:0,sent:function(){if(1&ce[0])throw ce[1];return ce[1]},trys:[],ops:[]};return re={next:be(0),throw:be(1),return:be(2)},typeof Symbol=="function"&&(re[Symbol.iterator]=function(){return this}),re;function be(ht){return function(Le){return function(Ne){if(te)throw new TypeError("Generator is already executing.");for(;le;)try{if(te=1,oe&&(ce=2&Ne[0]?oe.return:Ne[0]?oe.throw||((ce=oe.return)&&ce.call(oe),0):oe.next)&&!(ce=ce.call(oe,Ne[1])).done)return ce;switch(oe=0,ce&&(Ne=[2&Ne[0],ce.value]),Ne[0]){case 0:case 1:ce=Ne;break;case 4:return le.label++,{value:Ne[1],done:!1};case 5:le.label++,oe=Ne[1],Ne=[0];continue;case 7:Ne=le.ops.pop(),le.trys.pop();continue;default:if(ce=le.trys,!((ce=ce.length>0&&ce[ce.length-1])||Ne[0]!==6&&Ne[0]!==2)){le=0;continue}if(Ne[0]===3&&(!ce||Ne[1]>ce[0]&&Ne[1]<ce[3])){le.label=Ne[1];break}if(Ne[0]===6&&le.label<ce[1]){le.label=ce[1],ce=Ne;break}if(ce&&le.label<ce[2]){le.label=ce[2],le.ops.push(Ne);break}ce[2]&&le.ops.pop(),le.trys.pop();continue}Ne=ne.call(ae,le)}catch(Ve){Ne=[6,Ve],oe=0}finally{te=ce=0}if(5&Ne[0])throw Ne[1];return{value:Ne[0]?Ne[1]:void 0,done:!0}}([ht,Le])}}}function Se(){for(var ae=0,ne=0,te=arguments.length;ne<te;ne++)ae+=arguments[ne].length;var oe=Array(ae),ce=0;for(ne=0;ne<te;ne++)for(var re=arguments[ne],le=0,be=re.length;le<be;le++,ce++)oe[ce]=re[le];return oe}var xe=function(){function ae(){}return ae.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},ae.setAttributes=function(ne,te){for(var oe=0,ce=te;oe<ce.length;oe++){var re=ce[oe],le=re[0],be=re[1];ne.setAttribute(le,be)}},ae.createRect=function(ne,te,oe){var ce=document.createElementNS("http://www.w3.org/2000/svg","rect");return ce.setAttribute("width",ne.toString()),ce.setAttribute("height",te.toString()),oe&&ae.setAttributes(ce,oe),ce},ae.createLine=function(ne,te,oe,ce,re){var le=document.createElementNS("http://www.w3.org/2000/svg","line");return le.setAttribute("x1",ne.toString()),le.setAttribute("y1",te.toString()),le.setAttribute("x2",oe.toString()),le.setAttribute("y2",ce.toString()),re&&ae.setAttributes(le,re),le},ae.createPolygon=function(ne,te){var oe=document.createElementNS("http://www.w3.org/2000/svg","polygon");return oe.setAttribute("points",ne),te&&ae.setAttributes(oe,te),oe},ae.createCircle=function(ne,te){var oe=document.createElementNS("http://www.w3.org/2000/svg","circle");return oe.setAttribute("cx",(ne/2).toString()),oe.setAttribute("cy",(ne/2).toString()),oe.setAttribute("r",ne.toString()),te&&ae.setAttributes(oe,te),oe},ae.createEllipse=function(ne,te,oe){var ce=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return ce.setAttribute("cx",(ne/2).toString()),ce.setAttribute("cy",(te/2).toString()),ce.setAttribute("rx",(ne/2).toString()),ce.setAttribute("ry",(te/2).toString()),oe&&ae.setAttributes(ce,oe),ce},ae.createGroup=function(ne){var te=document.createElementNS("http://www.w3.org/2000/svg","g");return ne&&ae.setAttributes(te,ne),te},ae.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},ae.createMarker=function(ne,te,oe,ce,re,le,be){var ht=document.createElementNS("http://www.w3.org/2000/svg","marker");return ae.setAttributes(ht,[["id",ne],["orient",te],["markerWidth",oe.toString()],["markerHeight",ce.toString()],["refX",re.toString()],["refY",le.toString()]]),ht.appendChild(be),ht},ae.createText=function(ne){var te=document.createElementNS("http://www.w3.org/2000/svg","text");return te.setAttribute("x","0"),te.setAttribute("y","0"),ne&&ae.setAttributes(te,ne),te},ae.createTSpan=function(ne,te){var oe=document.createElementNS("http://www.w3.org/2000/svg","tspan");return oe.textContent=ne,te&&ae.setAttributes(oe,te),oe},ae.createImage=function(ne){var te=document.createElementNS("http://www.w3.org/2000/svg","image");return ne&&ae.setAttributes(te,ne),te},ae.createPoint=function(ne,te){var oe=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return oe.x=ne,oe.y=te,oe},ae.createPath=function(ne,te){var oe=document.createElementNS("http://www.w3.org/2000/svg","path");return oe.setAttribute("d",ne),te&&ae.setAttributes(oe,te),oe},ae}(),Ee=function(){function ae(){}return ae.addKey=function(ne){ae.key=ne},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}(),je=function(){function ae(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return ae.prototype.rasterize=function(ne,te,oe){var ce=this;return new Promise(function(re){var le=oe!==void 0?oe:document.createElement("canvas");ne===null&&(ce.markersOnly=!0,ce.naturalSize=!1);var be=document.createElementNS("http://www.w3.org/2000/svg","svg");be.setAttribute("xmlns","http://www.w3.org/2000/svg"),be.setAttribute("width",te.width.baseVal.valueAsString),be.setAttribute("height",te.height.baseVal.valueAsString),be.setAttribute("viewBox","0 0 "+te.viewBox.baseVal.width.toString()+" "+te.viewBox.baseVal.height.toString()),be.innerHTML=te.innerHTML,ce.naturalSize===!0?(be.width.baseVal.value=ne.naturalWidth,be.height.baseVal.value=ne.naturalHeight):ce.width!==void 0&&ce.height!==void 0&&(be.width.baseVal.value=ce.width,be.height.baseVal.value=ce.height),le.width=be.width.baseVal.value,le.height=be.height.baseVal.value;var ht=be.outerHTML,Le=le.getContext("2d");ce.markersOnly!==!0&&Le.drawImage(ne,0,0,le.width,le.height);var Ne=window.URL,Ve=new Image(le.width,le.height);Ve.setAttribute("crossOrigin","anonymous");var Ge=new Blob([ht],{type:"image/svg+xml"}),pt=Ne.createObjectURL(Ge);Ve.onload=function(){Le.drawImage(Ve,0,0),Ne.revokeObjectURL(pt);var we=le.toDataURL(ce.imageType,ce.imageQuality);re(we)},Ve.src=pt})},ae}(),Ie=function(){},ue=function(){function ae(ne){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+ne+"_"}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(ne){return this.styleSheet===void 0&&this.addStyleSheet(),ne.name=""+this.classNamePrefix+ne.localName,this.classes.push(ne),this.styleSheet.sheet.insertRule("."+ne.name+" {"+ne.style+"}",this.styleSheet.sheet.cssRules.length),ne},ae.prototype.addRule=function(ne){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(ne),this.styleSheet.sheet.insertRule(ne.selector+" {"+ne.style+"}",this.styleSheet.sheet.cssRules.length)},ae.prototype.addStyleSheet=function(){var ne;this.styleSheet=document.createElement("style"),((ne=this.styleSheetRoot)!==null&&ne!==void 0?ne:document.head).appendChild(this.styleSheet),this.addRule(new et("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new et("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
|
from {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
`)),this.addRule(new et("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
|
from {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
`)),this.addClass(new Te("fade_in",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
|
`)),this.addClass(new Te("fade_out",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
|
`))},ae.prototype.removeStyleSheet=function(){var ne;this.styleSheet&&(((ne=this.styleSheetRoot)!==null&&ne!==void 0?ne:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},ae}(),et=function(ae,ne){this.selector=ae,this.style=ne},Te=function(ae,ne){this.localName=ae,this.style=ne},At=function(){function ae(ne,te,oe,ce,re){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=ne,this.displayMode=te,this.markerItems=oe,this.uiStyleSettings=ce,this.styles=re,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(ne){var te=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=ne,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(re){var le=document.createElement("div");le.className=""+te.toolbarButtonStyleClass.name,le.setAttribute("data-type-name",re.typeName),le.innerHTML=re.icon,le.addEventListener("click",function(){te.markerToolbarButtonClicked(le,re)}),te.buttons.push(le),te.markerButtons.push(le)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='<svg viewBox="0 0 24 24"><path d="M12 16a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2z"/></svg>',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var ce=document.createElement("div");ce.className=this.toolbarBlockStyleClass.name,ce.style.whiteSpace="nowrap",ce.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(ce),this.addActionButton(ce,'<svg viewBox="0 0 24 24"><path d="M9 20.42l-6.21-6.21 2.83-2.83L9 14.77l9.88-9.89 2.83 2.83L9 20.42z"/></svg>',"render"),this.addActionButton(ce,'<svg viewBox="0 0 24 24"><path d="M20 6.91L17.09 4 12 9.09 6.91 4 4 6.91 9.09 12 4 17.09 6.91 20 12 14.91 17.09 20 20 17.09 14.91 12 20 6.91z"/></svg>',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},ae.prototype.addButtonClickListener=function(ne){this.buttonClickListeners.push(ne)},ae.prototype.removeButtonClickListener=function(ne){this.buttonClickListeners.indexOf(ne)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(ne),1)},ae.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},ae.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var ne=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<ne||te===ne&&this.markerButtons.length-1===ne?this.markerButtonBlock.appendChild(this.markerButtons[te]):(te===ne&&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 ne=this;this.buttons.forEach(function(te){te.className=te.className.replace(ne.uiStyleSettings.toolbarButtonStyleColorsClassName?ne.uiStyleSettings.toolbarButtonStyleColorsClassName:ne.toolbarButtonStyleColorsClass.name,"").trim(),te.className=te.className.replace(ne.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?ne.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:ne.toolbarActiveButtonStyleColorsClass.name,"").trim(),te.className+=" "+(ne.uiStyleSettings.toolbarButtonStyleColorsClassName?ne.uiStyleSettings.toolbarButtonStyleColorsClassName:ne.toolbarButtonStyleColorsClass.name)})},ae.prototype.addActionButton=function(ne,te,oe){var ce=this,re=document.createElement("div");switch(re.className=""+this.toolbarButtonStyleClass.name,re.innerHTML=te,re.setAttribute("data-action",oe),re.addEventListener("click",function(){ce.actionToolbarButtonClicked(re,oe)}),oe){case"select":re.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":re.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":re.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":re.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":re.style.fill=this.uiStyleSettings.closeButtonColor}ne.appendChild(re),this.buttons.push(re)},ae.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new Te("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 Te("toolbar_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new Te("toolbar-block",`
|
|
|
display: inline-block;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new Te("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 Te("toolbar-overflow-block_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`));var ne=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new Te("toolbar_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*ne)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*ne)+`px;
|
|
|
padding: `+ne+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new Te("toolbar_button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new Te("toolbar_active_button",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new et("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`)),this.styles.addRule(new et("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`))},ae.prototype.markerToolbarButtonClicked=function(ne,te){this.setActiveButton(ne),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(oe){return oe("marker",te)}),this.markerButtonOverflowBlock.style.display="none"},ae.prototype.actionToolbarButtonClicked=function(ne,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(ne){this.resetButtonStyles(),ne.className=ne.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),ne.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},ae.prototype.setActiveMarkerButton=function(ne){var te=this.markerButtons.find(function(oe){return oe.getAttribute("data-type-name")===ne});te&&this.setActiveButton(te)},ae.prototype.setCurrentMarker=function(ne){var te=this;this.currentMarker=ne,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}(),lt=function(){function ae(ne,te,oe,ce){this.panels=[],this.panelButtons=[],this.markerjsContainer=ne,this.displayMode=te,this.uiStyleSettings=oe,this.styles=ce,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return ae.prototype.addStyles=function(){var ne;this.toolboxStyleClass=this.styles.addClass(new Te("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 Te("toolbox_colors",`
|
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
|
`));var te=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new Te("toolbox-button-row",`
|
|
|
display: flex;
|
|
|
cursor: default;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new Te("toolbox-button-row_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new Te("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 Te("toolbox-panel-row_colors",`
|
|
|
background-color: `+((ne=this.uiStyleSettings.toolboxBackgroundColor)!==null&&ne!==void 0?ne:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new Te("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 Te("toolbox-button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new Te("toolbox-active-button_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.styles.addRule(new et("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new et("."+this.toolboxButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`))},ae.prototype.show=function(ne){var te;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=ne,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(ne){var te,oe,ce=this;this.panels=ne,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(re){var le;re.uiStyleSettings=ce.uiStyleSettings;var be=document.createElement("div");be.className=ce.toolboxButtonStyleClass.name+" "+((le=ce.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&le!==void 0?le:ce.toolboxButtonStyleColorsClass.name),be.innerHTML=re.icon,be.title=re.title,be.addEventListener("click",function(){ce.panelButtonClick(re)}),ce.panelButtons.push(be),ce.buttonRow.appendChild(be)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},ae.prototype.panelButtonClick=function(ne){var te=this,oe=-1;if(ne!==this.activePanel){oe=this.panels.indexOf(ne),this.panelRow.innerHTML="";var ce=ne.getUi();ce.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(ce),this.panelRow.style.display="flex",this.panelRow.style.visibility="visible",this.panelRow.className=this.panelRow.className.replace(this.styles.fadeOutAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeInAnimationClassName,this.activePanel=ne}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(re,le){var be,ht;re.className=te.toolboxButtonStyleClass.name+" "+(le===oe?""+((be=te.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&be!==void 0?be:te.toolboxActiveButtonStyleColorsClass.name):""+((ht=te.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&ht!==void 0?ht:te.toolboxButtonStyleColorsClass.name))})},ae}(),it=function(ae,ne){this.title=ae,this.icon=ne},We=function(ae){function ne(te,oe,ce,re){var le=ae.call(this,te,re||'<svg viewBox="0 0 24 24"><path d="M17.5 12a1.5 1.5 0 01-1.5-1.5A1.5 1.5 0 0117.5 9a1.5 1.5 0 011.5 1.5 1.5 1.5 0 01-1.5 1.5m-3-4A1.5 1.5 0 0113 6.5 1.5 1.5 0 0114.5 5 1.5 1.5 0 0116 6.5 1.5 1.5 0 0114.5 8m-5 0A1.5 1.5 0 018 6.5 1.5 1.5 0 019.5 5 1.5 1.5 0 0111 6.5 1.5 1.5 0 019.5 8m-3 4A1.5 1.5 0 015 10.5 1.5 1.5 0 016.5 9 1.5 1.5 0 018 10.5 1.5 1.5 0 016.5 12M12 3a9 9 0 00-9 9 9 9 0 009 9 1.5 1.5 0 001.5-1.5c0-.39-.15-.74-.39-1-.23-.27-.38-.62-.38-1a1.5 1.5 0 011.5-1.5H16a5 5 0 005-5c0-4.42-4.03-8-9-8z"/></svg>')||this;return le.colors=[],le.addTransparent=!1,le.colorBoxes=[],le.colors=oe,le.currentColor=ce,le.setCurrentColor=le.setCurrentColor.bind(le),le.getColorBox=le.getColorBox.bind(le),le}return ze(ne,ae),ne.prototype.getUi=function(){var te=this,oe=document.createElement("div");return oe.style.overflow="hidden",oe.style.whiteSpace="nowrap",this.colors.forEach(function(ce){var re=te.getColorBox(ce);oe.appendChild(re),te.colorBoxes.push(re)}),oe},ne.prototype.getColorBox=function(te){var oe=this,ce=this.uiStyleSettings.toolbarHeight/4,re=this.uiStyleSettings.toolbarHeight-ce,le=document.createElement("div");le.style.display="inline-block",le.style.boxSizing="content-box",le.style.width=re-2+"px",le.style.height=re-2+"px",le.style.padding="1px",le.style.marginRight="2px",le.style.marginBottom="2px",le.style.borderWidth="2px",le.style.borderStyle="solid",le.style.borderRadius=(re+2)/2+"px",le.style.borderColor=te===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",le.addEventListener("click",function(){oe.setCurrentColor(te,le)});var be=document.createElement("div");return be.style.display="inline-block",be.style.width=re-2+"px",be.style.height=re-2+"px",be.style.backgroundColor=te,be.style.borderRadius=re/2+"px",te==="transparent"&&(be.style.fill=this.uiStyleSettings.toolboxAccentColor,be.innerHTML=`<svg viewBox="0 0 24 24">
|
|
|
<path d="M2,5.27L3.28,4L20,20.72L18.73,22L15.65,18.92C14.5,19.3 13.28,19.5 12,19.5C7,19.5 2.73,16.39 1,12C1.69,10.24 2.79,8.69 4.19,7.46L2,5.27M12,9A3,3 0 0,1 15,12C15,12.35 14.94,12.69 14.83,13L11,9.17C11.31,9.06 11.65,9 12,9M12,4.5C17,4.5 21.27,7.61 23,12C22.18,14.08 20.79,15.88 19,17.19L17.58,15.76C18.94,14.82 20.06,13.54 20.82,12C19.17,8.64 15.76,6.5 12,6.5C10.91,6.5 9.84,6.68 8.84,7L7.3,5.47C8.74,4.85 10.33,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C12.69,17.5 13.37,17.43 14,17.29L11.72,15C10.29,14.85 9.15,13.71 9,12.28L5.6,8.87C4.61,9.72 3.78,10.78 3.18,12Z" />
|
|
|
</svg>`),le.appendChild(be),le},ne.prototype.setCurrentColor=function(te,oe){var ce=this;this.currentColor=te,this.colorBoxes.forEach(function(re){re.style.borderColor=re===oe?ce.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(te)},ne}(it),ke=function(){function ae(ne,te,oe){this._state="new",this._isSelected=!1,this._container=ne,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(ne){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(ne,te){},ae.prototype.dblClick=function(ne,te){},ae.prototype.manipulate=function(ne){},ae.prototype.pointerUp=function(ne){this.stateChanged()},ae.prototype.dispose=function(){},ae.prototype.addMarkerVisualToContainer=function(ne){this.container.childNodes.length>0?this.container.insertBefore(ne,this.container.childNodes[0]):this.container.appendChild(ne)},ae.prototype.getState=function(){return{typeName:ae.typeName,state:this.state,notes:this.notes}},ae.prototype.restoreState=function(ne){this._state=ne.state,this.notes=ne.notes},ae.prototype.scale=function(ne,te){},ae.prototype.colorChanged=function(ne){this.onColorChanged&&this.onColorChanged(ne),this.stateChanged()},ae.prototype.fillColorChanged=function(ne){this.onFillColorChanged&&this.onFillColorChanged(ne),this.stateChanged()},ae.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var ne=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),ne.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(ne)&&this.onStateChanged(this)}},ae.typeName="MarkerBase",ae}(),ot=function(){function ae(){this.findGripByVisual=this.findGripByVisual.bind(this)}return ae.prototype.findGripByVisual=function(ne){return this.topLeft.ownsTarget(ne)?this.topLeft:this.topCenter.ownsTarget(ne)?this.topCenter:this.topRight.ownsTarget(ne)?this.topRight:this.centerLeft.ownsTarget(ne)?this.centerLeft:this.centerRight.ownsTarget(ne)?this.centerRight:this.bottomLeft.ownsTarget(ne)?this.bottomLeft:this.bottomCenter.ownsTarget(ne)?this.bottomCenter:this.bottomRight.ownsTarget(ne)?this.bottomRight:void 0},ae}(),yt=function(){function ae(){this.GRIP_SIZE=10,this.visual=xe.createGroup(),this.visual.appendChild(xe.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(xe.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return ae.prototype.ownsTarget=function(ne){return ne===this.visual||ne===this.visual.childNodes[0]||ne===this.visual.childNodes[1]},ae}(),Nt=function(){function ae(){}return ae.toITransformMatrix=function(ne){return{a:ne.a,b:ne.b,c:ne.c,d:ne.d,e:ne.e,f:ne.f}},ae.toSVGMatrix=function(ne,te){return ne.a=te.a,ne.b=te.b,ne.c=te.c,ne.d=te.d,ne.e=te.e,ne.f=te.f,ne},ae}(),Fe=function(ae){function ne(te,oe,ce){var re=ae.call(this,te,oe,ce)||this;return re.left=0,re.top=0,re.width=0,re.height=0,re.defaultSize={x:50,y:20},re.offsetX=0,re.offsetY=0,re.rotationAngle=0,re.CB_DISTANCE=10,re._suppressMarkerCreateEvent=!1,re.container.transform.baseVal.appendItem(xe.createTransform()),re.setupControlBox(),re}return ze(ne,ae),Object.defineProperty(ne.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"visual",{get:function(){return this._visual},set:function(te){this._visual=te;var oe=xe.createTransform();this._visual.transform.baseVal.appendItem(oe)},enumerable:!1,configurable:!0}),ne.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))},ne.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 ce=this.unrotatePoint(te);if(this.manipulationStartX=ce.x,this.manipulationStartY=ce.y,this.offsetX=ce.x-this.left,this.offsetY=ce.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(oe),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(oe)){this.activeGrip=this.rotatorGrip;var re=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=re.x-this.width/2,this.top=re.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var le=this.container.transform.baseVal.getItem(0);le.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(le,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},ne.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)},ne.prototype.moveVisual=function(te){this.visual.style.transform="translate("+te.x+"px, "+te.y+"px)"},ne.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)},ne.prototype.resize=function(te){var oe=this.manipulationStartLeft,ce=this.manipulationStartWidth,re=this.manipulationStartTop,le=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:oe=this.manipulationStartLeft+te.x-this.manipulationStartX,ce=this.manipulationStartWidth+this.manipulationStartLeft-oe;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:ce=this.manipulationStartWidth+te.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:re=this.manipulationStartTop+te.y-this.manipulationStartY,le=this.manipulationStartHeight+this.manipulationStartTop-re;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:le=this.manipulationStartHeight+te.y-this.manipulationStartY}ce>=0?(this.left=oe,this.width=ce):(this.left=oe+ce,this.width=-ce),le>=0?(this.top=re,this.height=le):(this.top=re+le,this.height=-le),this.setSize()},ne.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},ne.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()}},ne.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)},ne.prototype.rotatePoint=function(te){if(this.rotationAngle===0)return te;var oe=this.container.getCTM(),ce=xe.createPoint(te.x,te.y);return{x:(ce=ce.matrixTransform(oe)).x,y:ce.y}},ne.prototype.unrotatePoint=function(te){if(this.rotationAngle===0)return te;var oe=this.container.getCTM();oe=oe.inverse();var ce=xe.createPoint(te.x,te.y);return{x:(ce=ce.matrixTransform(oe)).x,y:ce.y}},ne.prototype.select=function(){ae.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},ne.prototype.deselect=function(){ae.prototype.deselect.call(this),this.controlBox.style.display="none"},ne.prototype.setupControlBox=function(){this.controlBox=xe.createGroup();var te=xe.createTransform();te.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(te),this.container.appendChild(this.controlBox),this.controlRect=xe.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=xe.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 ot,this.addControlGrips(),this.controlBox.style.display="none"},ne.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()},ne.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()},ne.prototype.createGrip=function(){var te=new yt;return te.visual.transform.baseVal.appendItem(xe.createTransform()),this.controlBox.appendChild(te.visual),te},ne.prototype.positionGrips=function(){var te=this.controlGrips.topLeft.GRIP_SIZE,oe=-te/2,ce=oe,re=(this.width+this.CB_DISTANCE)/2-te/2,le=(this.height+this.CB_DISTANCE)/2-te/2,be=this.height+this.CB_DISTANCE-te/2,ht=this.width+this.CB_DISTANCE-te/2;this.positionGrip(this.controlGrips.topLeft.visual,oe,ce),this.positionGrip(this.controlGrips.topCenter.visual,re,ce),this.positionGrip(this.controlGrips.topRight.visual,ht,ce),this.positionGrip(this.controlGrips.centerLeft.visual,oe,le),this.positionGrip(this.controlGrips.centerRight.visual,ht,le),this.positionGrip(this.controlGrips.bottomLeft.visual,oe,be),this.positionGrip(this.controlGrips.bottomCenter.visual,re,be),this.positionGrip(this.controlGrips.bottomRight.visual,ht,be),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,re,ce-3*this.CB_DISTANCE)},ne.prototype.positionGrip=function(te,oe,ce){var re=te.transform.baseVal.getItem(0);re.setTranslate(oe,ce),te.transform.baseVal.replaceItem(re,0)},ne.prototype.hideControlBox=function(){this.controlBox.style.display="none"},ne.prototype.showControlBox=function(){this.controlBox.style.display=""},ne.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:Nt.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:Nt.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},ae.prototype.getState.call(this))},ne.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(Nt.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,oe.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(Nt.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,oe.containerTransformMatrix))},ne.prototype.scale=function(te,oe){ae.prototype.scale.call(this,te,oe);var ce=this.rotatePoint({x:this.left,y:this.top}),re=this.unrotatePoint({x:ce.x*te,y:ce.y*oe});this.left=re.x,this.top=re.y,this.width=this.width*te,this.height=this.height*oe,this.adjustControlBox()},ne}(ke),Me=function(ae){function ne(te,oe,ce){var re=ae.call(this,te,oe,ce)||this;return re.fillColor="transparent",re.strokeColor="transparent",re.strokeWidth=0,re.strokeDasharray="",re.opacity=1,re.setStrokeColor=re.setStrokeColor.bind(re),re.setFillColor=re.setFillColor.bind(re),re.setStrokeWidth=re.setStrokeWidth.bind(re),re.setStrokeDasharray=re.setStrokeDasharray.bind(re),re.createVisual=re.createVisual.bind(re),re}return ze(ne,ae),ne.prototype.ownsTarget=function(te){return!(!ae.prototype.ownsTarget.call(this,te)&&te!==this.visual)},ne.prototype.createVisual=function(){this.visual=xe.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)},ne.prototype.pointerDown=function(te,oe){ae.prototype.pointerDown.call(this,te,oe),this.state==="new"&&(this.createVisual(),this.moveVisual(te),this._state="creating")},ne.prototype.manipulate=function(te){ae.prototype.manipulate.call(this,te)},ne.prototype.resize=function(te){ae.prototype.resize.call(this,te),this.setSize()},ne.prototype.setSize=function(){ae.prototype.setSize.call(this),xe.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},ne.prototype.pointerUp=function(te){ae.prototype.pointerUp.call(this,te),this.setSize()},ne.prototype.setStrokeColor=function(te){this.strokeColor=te,this.visual&&xe.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(te),this.stateChanged()},ne.prototype.setFillColor=function(te){this.fillColor=te,this.visual&&xe.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},ne.prototype.setStrokeWidth=function(te){this.strokeWidth=te,this.visual&&xe.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ne.prototype.setStrokeDasharray=function(te){this.strokeDasharray=te,this.visual&&xe.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},ne.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))},ne.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()},ne.prototype.scale=function(te,oe){ae.prototype.scale.call(this,te,oe),this.setSize()},ne.title="Rectangle marker",ne}(Fe),Xe=function(ae){function ne(te,oe,ce,re){var le=ae.call(this,te,re||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return le.widths=[],le.widthBoxes=[],le.widths=oe,le.currentWidth=ce,le.setCurrentWidth=le.setCurrentWidth.bind(le),le}return ze(ne,ae),ne.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(ce){var re=document.createElement("div");re.style.display="flex",re.style.flexGrow="2",re.style.alignItems="center",re.style.justifyContent="space-between",re.style.padding="5px",re.style.borderWidth="2px",re.style.borderStyle="solid",re.style.borderColor=ce===te.currentWidth?te.uiStyleSettings.toolboxAccentColor:"transparent",re.addEventListener("click",function(){te.setCurrentWidth(ce,re)}),oe.appendChild(re);var le=document.createElement("div");le.innerText=ce.toString(),le.style.marginRight="5px",re.appendChild(le);var be=document.createElement("div");be.style.minHeight="20px",be.style.flexGrow="2",be.style.display="flex",be.style.alignItems="center";var ht=document.createElement("hr");ht.style.minWidth="20px",ht.style.border="0px",ht.style.borderTop=ce+"px solid "+te.uiStyleSettings.toolboxColor,ht.style.flexGrow="2",be.appendChild(ht),re.appendChild(be),te.widthBoxes.push(re)}),oe},ne.prototype.setCurrentWidth=function(te,oe){var ce=this;this.currentWidth=te,this.widthBoxes.forEach(function(re){re.style.borderColor=re===oe?ce.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},ne}(it),Je=function(ae){function ne(te,oe,ce,re){var le=ae.call(this,te,re||'<svg viewBox="0 0 24 24"><path d="M3 16h5v-2H3v2m6.5 0h5v-2h-5v2m6.5 0h5v-2h-5v2M3 20h2v-2H3v2m4 0h2v-2H7v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2M3 12h8v-2H3v2m10 0h8v-2h-8v2M3 4v4h18V4H3z"/></svg>')||this;return le.styles=[],le.styleBoxes=[],le.styles=oe,le.currentStyle=ce,le.setCurrentStyle=le.setCurrentStyle.bind(le),le}return ze(ne,ae),ne.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(ce){var re=document.createElement("div");re.style.display="flex",re.style.alignItems="center",re.style.justifyContent="space-between",re.style.padding="5px",re.style.borderWidth="2px",re.style.borderStyle="solid",re.style.overflow="hidden",re.style.maxWidth=100/te.styles.length-5+"%",re.style.borderColor=ce===te.currentStyle?te.uiStyleSettings.toolboxAccentColor:"transparent",re.addEventListener("click",function(){te.setCurrentStyle(ce,re)}),oe.appendChild(re);var le=document.createElement("div");le.style.minHeight="20px",le.style.flexGrow="2",le.style.overflow="hidden";var be=`<svg width="100" height="20">
|
|
|
<line x1="0" y1="10" x2="100" y2="10" stroke="`+te.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(ce!==""?'stroke-dasharray="'+ce+'"':"")+` />
|
|
|
</svg>`;le.innerHTML=be,re.appendChild(le),te.styleBoxes.push(re)}),oe},ne.prototype.setCurrentStyle=function(te,oe){var ce=this;this.currentStyle=te,this.styleBoxes.forEach(function(re){re.style.borderColor=re===oe?ce.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},ne}(it),$t=function(ae){function ne(te,oe,ce){var re=ae.call(this,te,oe,ce)||this;return re.strokeColor=ce.defaultColor,re.strokeWidth=ce.defaultStrokeWidth,re.strokeDasharray=ce.defaultStrokeDasharray,re.strokePanel=new We("Line color",ce.defaultColorSet,ce.defaultColor),re.strokePanel.onColorChanged=re.setStrokeColor,re.strokeWidthPanel=new Xe("Line width",ce.defaultStrokeWidths,ce.defaultStrokeWidth),re.strokeWidthPanel.onWidthChanged=re.setStrokeWidth,re.strokeStylePanel=new Je("Line style",ce.defaultStrokeDasharrays,ce.defaultStrokeDasharray),re.strokeStylePanel.onStyleChanged=re.setStrokeDasharray,re}return ze(ne,ae),Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ne.prototype.getState=function(){var te=ae.prototype.getState.call(this);return te.typeName=ne.typeName,te},ne.typeName="FrameMarker",ne.title="Frame marker",ne.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',ne}(Me),ct=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"},Ye=function(ae){function ne(te,oe,ce){var re=ae.call(this,te,oe,ce)||this;return re.x1=0,re.y1=0,re.x2=0,re.y2=0,re.defaultLength=50,re.manipulationStartX=0,re.manipulationStartY=0,re.manipulationStartX1=0,re.manipulationStartY1=0,re.manipulationStartX2=0,re.manipulationStartY2=0,re.setupControlBox(),re}return ze(ne,ae),ne.prototype.ownsTarget=function(te){return!!ae.prototype.ownsTarget.call(this,te)||!(!this.grip1.ownsTarget(te)&&!this.grip2.ownsTarget(te))},ne.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")},ne.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)},ne.prototype.adjustVisual=function(){},ne.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)},ne.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()},ne.prototype.select=function(){ae.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},ne.prototype.deselect=function(){ae.prototype.deselect.call(this),this.controlBox.style.display="none"},ne.prototype.setupControlBox=function(){this.controlBox=xe.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},ne.prototype.adjustControlBox=function(){this.positionGrips()},ne.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},ne.prototype.createGrip=function(){var te=new yt;return te.visual.transform.baseVal.appendItem(xe.createTransform()),this.controlBox.appendChild(te.visual),te},ne.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)},ne.prototype.positionGrip=function(te,oe,ce){var re=te.transform.baseVal.getItem(0);re.setTranslate(oe,ce),te.transform.baseVal.replaceItem(re,0)},ne.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},ae.prototype.getState.call(this))},ne.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},ne.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()},ne}(ke),rt=function(ae){function ne(te,oe,ce){var re=ae.call(this,te,oe,ce)||this;return re.strokeColor="transparent",re.strokeWidth=0,re.strokeDasharray="",re.setStrokeColor=re.setStrokeColor.bind(re),re.setStrokeWidth=re.setStrokeWidth.bind(re),re.setStrokeDasharray=re.setStrokeDasharray.bind(re),re.strokeColor=ce.defaultColor,re.strokeWidth=ce.defaultStrokeWidth,re.strokeDasharray=ce.defaultStrokeDasharray,re.strokePanel=new We("Line color",ce.defaultColorSet,ce.defaultColor),re.strokePanel.onColorChanged=re.setStrokeColor,re.strokeWidthPanel=new Xe("Line width",ce.defaultStrokeWidths,ce.defaultStrokeWidth),re.strokeWidthPanel.onWidthChanged=re.setStrokeWidth,re.strokeStylePanel=new Je("Line style",ce.defaultStrokeDasharrays,ce.defaultStrokeDasharray),re.strokeStylePanel.onStyleChanged=re.setStrokeDasharray,re}return ze(ne,ae),ne.prototype.ownsTarget=function(te){return!(!ae.prototype.ownsTarget.call(this,te)&&te!==this.visual&&te!==this.selectorLine&&te!==this.visibleLine)},ne.prototype.createVisual=function(){this.visual=xe.createGroup(),this.selectorLine=xe.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=xe.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)},ne.prototype.pointerDown=function(te,oe){ae.prototype.pointerDown.call(this,te,oe),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},ne.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()),xe.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),xe.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),xe.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},ne.prototype.setStrokeColor=function(te){this.strokeColor=te,this.adjustVisual(),this.colorChanged(te)},ne.prototype.setStrokeWidth=function(te){this.strokeWidth=te,this.adjustVisual()},ne.prototype.setStrokeDasharray=function(te){this.strokeDasharray=te,this.adjustVisual(),this.stateChanged()},Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ne.prototype.getState=function(){var te=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},ae.prototype.getState.call(this));return te.typeName=ne.typeName,te},ne.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()},ne.typeName="LineMarker",ne.title="Line marker",ne.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',ne}(Ye),Ce=function(ae){function ne(te,oe,ce,re){var le=ae.call(this,te,re||'<svg viewBox="0 0 24 24"><path d="M17 8h3v12h1v1h-4v-1h1v-3h-4l-1.5 3H14v1h-4v-1h1l6-12m1 1l-3.5 7H18V9M5 3h5c1.11 0 2 .89 2 2v11H9v-5H6v5H3V5c0-1.11.89-2 2-2m1 2v4h3V5H6z"/></svg>')||this;return le.fonts=[],le.fontBoxes=[],le.fonts=oe,le.currentFont=ce,le.setCurrentFont=le.setCurrentFont.bind(le),le}return ze(ne,ae),ne.prototype.getUi=function(){var te=this,oe=document.createElement("div");return oe.style.overflow="hidden",oe.style.flexGrow="2",this.fonts.forEach(function(ce){var re=document.createElement("div");re.style.display="inline-block",re.style.alignItems="center",re.style.justifyContent="space-between",re.style.padding="5px",re.style.borderWidth="2px",re.style.borderStyle="solid",re.style.overflow="hidden",re.style.maxWidth=100/te.fonts.length-5+"%",re.style.borderColor=ce===te.currentFont?te.uiStyleSettings.toolboxAccentColor:"transparent",re.addEventListener("click",function(){te.setCurrentFont(ce,re)}),oe.appendChild(re);var le=document.createElement("div");le.style.display="flex",le.style.minHeight="20px",le.style.flexGrow="2",le.style.fontFamily=ce,le.style.overflow="hidden";var be=document.createElement("div");be.style.whiteSpace="nowrap",be.style.overflow="hidden",be.style.textOverflow="ellipsis",be.innerHTML="The quick brown fox jumps over the lazy dog",le.appendChild(be),re.appendChild(le),te.fontBoxes.push(re)}),oe},ne.prototype.setCurrentFont=function(te,oe){var ce=this;this.currentFont=te,this.fontBoxes.forEach(function(re){re.style.borderColor=re===oe?ce.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},ne}(it),at=function(ae){function ne(te,oe,ce){var re=ae.call(this,te,oe,ce)||this;return re.color="transparent",re.padding=5,re.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",re.text=re.DEFAULT_TEXT,re.isMoved=!1,re.color=ce.defaultColor,re.fontFamily=ce.defaultFontFamily,re.defaultSize={x:100,y:30},re.setColor=re.setColor.bind(re),re.setFont=re.setFont.bind(re),re.renderText=re.renderText.bind(re),re.sizeText=re.sizeText.bind(re),re.textEditDivClicked=re.textEditDivClicked.bind(re),re.showTextEditor=re.showTextEditor.bind(re),re.setSize=re.setSize.bind(re),re.positionTextEditor=re.positionTextEditor.bind(re),re.colorPanel=new We("Color",ce.defaultColorSet,ce.defaultColor),re.colorPanel.onColorChanged=re.setColor,re.fontFamilyPanel=new Ce("Font",ce.defaultFontFamilies,ce.defaultFontFamily),re.fontFamilyPanel.onFontChanged=re.setFont,re}return ze(ne,ae),ne.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(ce){ce===te&&(oe=!0)}),oe},ne.prototype.createVisual=function(){this.visual=xe.createGroup(),this.bgRectangle=xe.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=xe.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(xe.createTransform()),this.textElement.transform.baseVal.appendItem(xe.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},ne.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")},ne.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(xe.createTSpan(oe.trim()===""?" ":oe.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},ne.prototype.getTextScale=function(){var te=this.textElement.getBBox(),oe=1;if(te.width>0&&te.height>0){var ce=(1*this.width-this.width*this.padding*2/100)/te.width,re=(1*this.height-this.height*this.padding*2/100)/te.height;oe=Math.min(ce,re)}return oe},ne.prototype.getTextPosition=function(te){var oe=this.textElement.getBBox(),ce=0,re=0;return oe.width>0&&oe.height>0&&(ce=(this.width-oe.width*te)/2,re=this.height/2-oe.height*te/2),{x:ce,y:re}},ne.prototype.sizeText=function(){var te=this.textElement.getBBox(),oe=this.getTextScale(),ce=this.getTextPosition(oe);ce.y-=te.y*oe,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+ce.x+"px, "+ce.y+"px) scale("+oe+", "+oe+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(ce.x,ce.y),this.textElement.transform.baseVal.getItem(1).setScale(oe,oe))},ne.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)},ne.prototype.resize=function(te){ae.prototype.resize.call(this,te),this.isMoved=!0,this.setSize(),this.sizeText()},ne.prototype.setSize=function(){ae.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(xe.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),xe.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},ne.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},ne.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 ce=oe.clipboardData.getData("text"),re=window.getSelection();if(!re.rangeCount)return!1;re.deleteFromDocument(),re.getRangeAt(0).insertNode(document.createTextNode(ce)),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")},ne.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}),ce=this.textElement.getBBox(),re={x:ce.width*te,y:ce.height*te};oe.x-=re.x/2,oe.y-=re.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"}},ne.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()},ne.prototype.select=function(){ae.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},ne.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),ae.prototype.deselect.call(this)},ne.prototype.dblClick=function(te,oe){ae.prototype.dblClick.call(this,te,oe),this.showTextEditor()},ne.prototype.setColor=function(te){this.textElement&&xe.setAttributes(this.textElement,[["fill",te]]),this.color=te,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(te)},ne.prototype.setFont=function(te){this.textElement&&xe.setAttributes(this.textElement,[["font-family",te]]),this.fontFamily=te,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},ne.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},ne.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),ne.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=ne.typeName,te},ne.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()},ne.prototype.scale=function(te,oe){ae.prototype.scale.call(this,te,oe),this.setSize(),this.sizeText(),this.positionTextEditor()},ne.typeName="TextMarker",ne.title="Text marker",ne.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>',ne}(Fe),_e=function(ae){function ne(te,oe,ce){var re=ae.call(this,te,oe,ce)||this;return re.color="transparent",re.lineWidth=3,re.drawing=!1,re.pixelRatio=1,re.color=ce.defaultColor,re.lineWidth=ce.defaultStrokeWidth,re.pixelRatio=ce.freehandPixelRatio,re.setColor=re.setColor.bind(re),re.addCanvas=re.addCanvas.bind(re),re.finishCreation=re.finishCreation.bind(re),re.setLineWidth=re.setLineWidth.bind(re),re.colorPanel=new We("Color",ce.defaultColorSet,ce.defaultColor),re.colorPanel.onColorChanged=re.setColor,re.lineWidthPanel=new Xe("Line width",ce.defaultStrokeWidths,ce.defaultStrokeWidth),re.lineWidthPanel.onWidthChanged=re.setLineWidth,re}return ze(ne,ae),ne.prototype.ownsTarget=function(te){return!(!ae.prototype.ownsTarget.call(this,te)&&te!==this.visual&&te!==this.drawingImage)},ne.prototype.createVisual=function(){this.visual=xe.createGroup(),this.drawingImage=xe.createImage(),this.visual.appendChild(this.drawingImage);var te=xe.createTransform();this.visual.transform.baseVal.appendItem(te),this.addMarkerVisualToContainer(this.visual)},ne.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)},ne.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)},ne.prototype.resize=function(te){ae.prototype.resize.call(this,te),xe.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),xe.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},ne.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)},ne.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)},ne.prototype.select=function(){this.state==="creating"&&this.finishCreation(),ae.prototype.select.call(this)},ne.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),ae.prototype.deselect.call(this)},ne.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],ce=oe[0],re=oe[1],le=oe[2],be=oe[3],ht=!1,Le=0;Le<this.canvasElement.height;Le++)for(var Ne=0;Ne<this.canvasElement.width;Ne++)te.data[Le*this.canvasElement.width*4+4*Ne+3]>0&&(ht=!0,Le<re&&(re=Le),Ne<ce&&(ce=Ne),Le>be&&(be=Le),Ne>le&&(le=Ne));if(ht){this.left=ce/this.pixelRatio,this.top=re/this.pixelRatio,this.width=(le-ce)/this.pixelRatio,this.height=(be-re)/this.pixelRatio;var Ve=document.createElement("canvas");Ve.width=le-ce,Ve.height=be-re,Ve.getContext("2d").putImageData(this.canvasContext.getImageData(ce,re,le-ce,be-re),0,0),this.drawingImgUrl=Ve.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},ne.prototype.setDrawingImage=function(){xe.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),xe.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},ne.prototype.setColor=function(te){this.color=te,this.colorChanged(te)},ne.prototype.setLineWidth=function(te){this.lineWidth=te},Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),ne.prototype.getState=function(){var te=Object.assign({drawingImgUrl:this.drawingImgUrl},ae.prototype.getState.call(this));return te.typeName=ne.typeName,te},ne.prototype.restoreState=function(te){this.createVisual(),ae.prototype.restoreState.call(this,te),this.drawingImgUrl=te.drawingImgUrl,this.setDrawingImage()},ne.prototype.scale=function(te,oe){ae.prototype.scale.call(this,te,oe),this.setDrawingImage()},ne.typeName="FreehandMarker",ne.title="Freehand marker",ne.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>',ne}(Fe),de=function(ae){function ne(te,oe,ce){var re=ae.call(this,te,ce||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return re.typeBoxes=[],re.currentType=oe,re.setCurrentType=re.setCurrentType.bind(re),re}return ze(ne,ae),ne.prototype.getUi=function(){var te=this,oe=document.createElement("div");oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2";for(var ce=function(be){var ht="both";switch(be){case 0:ht="both";break;case 1:ht="start";break;case 2:ht="end";break;case 3:ht="none"}var Le=document.createElement("div");if(Le.style.display="flex",Le.style.flexGrow="2",Le.style.alignItems="center",Le.style.justifyContent="space-between",Le.style.padding="5px",Le.style.borderWidth="2px",Le.style.borderStyle="solid",Le.style.borderColor=ht===re.currentType?re.uiStyleSettings.toolboxAccentColor:"transparent",Le.addEventListener("click",function(){te.setCurrentType(ht,Le)}),oe.appendChild(Le),ht==="both"||ht==="start"){var Ne=document.createElement("div");Ne.style.display="flex",Ne.style.alignItems="center",Ne.style.minHeight="20px",Ne.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="`+(re.uiStyleSettings!==void 0?re.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,Ne.style.marginLeft="5px",Le.appendChild(Ne)}var Ve=document.createElement("div");Ve.style.display="flex",Ve.style.alignItems="center",Ve.style.minHeight="20px",Ve.style.flexGrow="2";var Ge=document.createElement("hr");if(Ge.style.minWidth="20px",Ge.style.border="0px",Ge.style.borderTop="3px solid "+(re.uiStyleSettings!==void 0?re.uiStyleSettings.toolboxColor:"#eeeeee"),Ge.style.flexGrow="2",Ve.appendChild(Ge),Le.appendChild(Ve),ht==="both"||ht==="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="`+(re.uiStyleSettings!==void 0?re.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,pt.style.marginRight="5px",Le.appendChild(pt)}re.typeBoxes.push(Le)},re=this,le=0;le<4;le++)ce(le);return oe},ne.prototype.setCurrentType=function(te,oe){var ce=this;this.currentType=te,this.typeBoxes.forEach(function(re){re.style.borderColor=re===oe?ce.uiStyleSettings!==void 0?ce.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},ne}(it),Et=function(ae){function ne(te,oe,ce){var re=ae.call(this,te,oe,ce)||this;return re.arrowType="end",re.arrowBaseHeight=10,re.arrowBaseWidth=10,re.getArrowPoints=re.getArrowPoints.bind(re),re.setArrowType=re.setArrowType.bind(re),re.arrowTypePanel=new de("Arrow type","end"),re.arrowTypePanel.onArrowTypeChanged=re.setArrowType,re}return ze(ne,ae),ne.prototype.ownsTarget=function(te){return!(!ae.prototype.ownsTarget.call(this,te)&&te!==this.arrow1&&te!==this.arrow2)},ne.prototype.getArrowPoints=function(te,oe){var ce=this.arrowBaseWidth+2*this.strokeWidth,re=this.arrowBaseHeight+2*this.strokeWidth;return te-ce/2+","+(oe+re/2)+" "+te+","+(oe-re/2)+" "+(te+ce/2)+","+(oe+re/2)},ne.prototype.createTips=function(){this.arrow1=xe.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(xe.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=xe.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(xe.createTransform()),this.visual.appendChild(this.arrow2)},ne.prototype.pointerDown=function(te,oe){ae.prototype.pointerDown.call(this,te,oe),this.state==="creating"&&this.createTips()},ne.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",xe.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),xe.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 ce=this.arrow2.transform.baseVal.getItem(0);ce.setRotate(te+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(ce,0)}},ne.prototype.setArrowType=function(te){this.arrowType=te,this.adjustVisual(),this.stateChanged()},Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),ne.prototype.getState=function(){var te=Object.assign({arrowType:this.arrowType},ae.prototype.getState.call(this));return te.typeName=ne.typeName,te},ne.prototype.restoreState=function(te){ae.prototype.restoreState.call(this,te);var oe=te;this.arrowType=oe.arrowType,this.createTips(),this.adjustVisual()},ne.typeName="ArrowMarker",ne.title="Arrow marker",ne.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',ne}(rt),He=function(ae){function ne(te,oe,ce){var re=ae.call(this,te,oe,ce)||this;return re.fillColor=ce.defaultFillColor,re.strokeWidth=0,re.fillPanel=new We("Color",ce.defaultColorSet,ce.defaultFillColor),re.fillPanel.onColorChanged=re.setFillColor,re}return ze(ne,ae),Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),ne.prototype.getState=function(){var te=ae.prototype.getState.call(this);return te.typeName=ne.typeName,te},ne.typeName="CoverMarker",ne.title="Cover marker",ne.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',ne}(Me),st=function(ae){function ne(te,oe,ce,re){var le=ae.call(this,te,re||'<svg viewBox="0 0 24 24"><path d="M17.66 8L12 2.35 6.34 8A8.02 8.02 0 004 13.64c0 2 .78 4.11 2.34 5.67a7.99 7.99 0 0011.32 0c1.56-1.56 2.34-3.67 2.34-5.67S19.22 9.56 17.66 8M6 14c0-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 18 12 18 14H6z"/></svg>')||this;return le.opacities=[],le.opacityBoxes=[],le.opacities=oe,le.currentOpacity=ce,le.setCurrentOpacity=le.setCurrentOpacity.bind(le),le}return ze(ne,ae),ne.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(ce){var re=document.createElement("div");re.style.display="flex",re.style.alignItems="center",re.style.justifyContent="center",re.style.padding="5px",re.style.borderWidth="2px",re.style.borderStyle="solid",re.style.borderColor=ce===te.currentOpacity?te.uiStyleSettings.toolboxAccentColor:"transparent",re.addEventListener("click",function(){te.setCurrentOpacity(ce,re)}),oe.appendChild(re);var le=document.createElement("div");le.innerText=100*ce+"%",re.appendChild(le),te.opacityBoxes.push(re)}),oe},ne.prototype.setCurrentOpacity=function(te,oe){var ce=this;this.currentOpacity=te,this.opacityBoxes.forEach(function(re){re.style.borderColor=re===oe?ce.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},ne}(it),Yt=function(ae){function ne(te,oe,ce){var re=ae.call(this,te,oe,ce)||this;return re.setOpacity=re.setOpacity.bind(re),re.fillColor=ce.defaultHighlightColor,re.strokeWidth=0,re.opacity=ce.defaultHighlightOpacity,re.fillPanel=new We("Color",ce.defaultColorSet,re.fillColor),re.fillPanel.onColorChanged=re.setFillColor,re.opacityPanel=new st("Opacity",ce.defaultOpacitySteps,re.opacity),re.opacityPanel.onOpacityChanged=re.setOpacity,re}return ze(ne,ae),ne.prototype.setOpacity=function(te){this.opacity=te,this.visual&&xe.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),ne.prototype.getState=function(){var te=ae.prototype.getState.call(this);return te.typeName=ne.typeName,te},ne.typeName="HighlightMarker",ne.title="Highlight marker",ne.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>',ne}(He),Oe='<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>',pe='<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>',Lt=function(ae){function ne(te,oe,ce){var re=ae.call(this,te,oe,ce)||this;return re.bgColor="transparent",re.tipPosition={x:0,y:0},re.tipBase1Position={x:0,y:0},re.tipBase2Position={x:0,y:0},re.tipMoving=!1,re.color=ce.defaultStrokeColor,re.bgColor=ce.defaultFillColor,re.fontFamily=ce.defaultFontFamily,re.defaultSize={x:100,y:30},re.setBgColor=re.setBgColor.bind(re),re.getTipPoints=re.getTipPoints.bind(re),re.positionTip=re.positionTip.bind(re),re.setTipPoints=re.setTipPoints.bind(re),re.colorPanel=new We("Text color",ce.defaultColorSet,re.color,Oe),re.colorPanel.onColorChanged=re.setColor,re.bgColorPanel=new We("Fill color",ce.defaultColorSet,re.bgColor,pe),re.bgColorPanel.onColorChanged=re.setBgColor,re.fontFamilyPanel=new Ce("Font",ce.defaultFontFamilies,ce.defaultFontFamily),re.fontFamilyPanel.onFontChanged=re.setFont,re.tipGrip=new yt,re.tipGrip.visual.transform.baseVal.appendItem(xe.createTransform()),re.controlBox.appendChild(re.tipGrip.visual),re}return ze(ne,ae),ne.prototype.ownsTarget=function(te){return ae.prototype.ownsTarget.call(this,te)||this.tipGrip.ownsTarget(te)||this.tip===te},ne.prototype.createTip=function(){xe.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=xe.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},ne.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)},ne.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()}},ne.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)},ne.prototype.setBgColor=function(te){this.bgRectangle&&this.tip&&(xe.setAttributes(this.bgRectangle,[["fill",te]]),xe.setAttributes(this.tip,[["fill",te]])),this.bgColor=te,this.fillColorChanged(te)},ne.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},ne.prototype.setTipPoints=function(te){te===void 0&&(te=!1);var oe=Math.min(this.height/2,15),ce=this.height/5;te&&(this.tipPosition={x:oe+ce/2,y:this.height+20});var re=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?re<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(ce=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:oe,y:0},this.tipBase2Position={x:oe+ce,y:0}):(this.tipBase1Position={x:0,y:oe},this.tipBase2Position={x:0,y:oe+ce}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?re<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(ce=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-oe-ce,y:0},this.tipBase2Position={x:this.width-oe,y:0}):(this.tipBase1Position={x:this.width,y:oe},this.tipBase2Position={x:this.width,y:oe+ce}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?re<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(ce=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-oe-ce,y:this.height},this.tipBase2Position={x:this.width-oe,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-oe-ce},this.tipBase2Position={x:this.width,y:this.height-oe}):re<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(ce=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:oe,y:this.height},this.tipBase2Position={x:oe+ce,y:this.height}):(this.tipBase1Position={x:0,y:this.height-oe},this.tipBase2Position={x:0,y:this.height-oe-ce})},ne.prototype.resize=function(te){ae.prototype.resize.call(this,te),this.positionTip()},ne.prototype.positionTip=function(){xe.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(ne.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),ne.prototype.select=function(){this.positionTip(),ae.prototype.select.call(this)},ne.prototype.getState=function(){var te=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},ae.prototype.getState.call(this));return te.typeName=ne.typeName,te},ne.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()},ne.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()},ne.typeName="CalloutMarker",ne.title="Callout marker",ne.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>',ne}(at),en=function(ae){function ne(te,oe,ce){var re=ae.call(this,te,oe,ce)||this;return re.fillColor="transparent",re.strokeColor="transparent",re.strokeWidth=0,re.strokeDasharray="",re.opacity=1,re.strokeColor=ce.defaultColor,re.strokeWidth=ce.defaultStrokeWidth,re.strokeDasharray=ce.defaultStrokeDasharray,re.fillColor=ce.defaultFillColor,re.setStrokeColor=re.setStrokeColor.bind(re),re.setFillColor=re.setFillColor.bind(re),re.setStrokeWidth=re.setStrokeWidth.bind(re),re.setStrokeDasharray=re.setStrokeDasharray.bind(re),re.setOpacity=re.setOpacity.bind(re),re.createVisual=re.createVisual.bind(re),re.strokePanel=new We("Line color",Se(ce.defaultColorSet,["transparent"]),ce.defaultColor),re.strokePanel.onColorChanged=re.setStrokeColor,re.fillPanel=new We("Fill color",Se(ce.defaultColorSet,["transparent"]),re.fillColor,pe),re.fillPanel.onColorChanged=re.setFillColor,re.strokeWidthPanel=new Xe("Line width",ce.defaultStrokeWidths,ce.defaultStrokeWidth),re.strokeWidthPanel.onWidthChanged=re.setStrokeWidth,re.strokeStylePanel=new Je("Line style",ce.defaultStrokeDasharrays,ce.defaultStrokeDasharray),re.strokeStylePanel.onStyleChanged=re.setStrokeDasharray,re.opacityPanel=new st("Opacity",ce.defaultOpacitySteps,re.opacity),re.opacityPanel.onOpacityChanged=re.setOpacity,re}return ze(ne,ae),ne.prototype.ownsTarget=function(te){return!(!ae.prototype.ownsTarget.call(this,te)&&te!==this.visual)},ne.prototype.createVisual=function(){this.visual=xe.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)},ne.prototype.pointerDown=function(te,oe){ae.prototype.pointerDown.call(this,te,oe),this.state==="new"&&(this.createVisual(),this.moveVisual(te),this._state="creating")},ne.prototype.manipulate=function(te){ae.prototype.manipulate.call(this,te)},ne.prototype.resize=function(te){ae.prototype.resize.call(this,te),this.setSize()},ne.prototype.setSize=function(){ae.prototype.setSize.call(this),xe.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},ne.prototype.pointerUp=function(te){ae.prototype.pointerUp.call(this,te),this.setSize()},ne.prototype.setStrokeColor=function(te){this.strokeColor=te,this.visual&&xe.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(te),this.stateChanged()},ne.prototype.setFillColor=function(te){this.fillColor=te,this.visual&&xe.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(te),this.stateChanged()},ne.prototype.setStrokeWidth=function(te){this.strokeWidth=te,this.visual&&xe.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ne.prototype.setStrokeDasharray=function(te){this.strokeDasharray=te,this.visual&&xe.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},ne.prototype.setOpacity=function(te){this.opacity=te,this.visual&&xe.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),ne.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=ne.typeName,te},ne.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()},ne.prototype.scale=function(te,oe){ae.prototype.scale.call(this,te,oe),this.setSize()},ne.typeName="EllipseMarker",ne.title="Ellipse marker",ne.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>',ne}(Fe),Ot=function(ae){function ne(te,oe,ce){return ae.call(this,te,oe,ce)||this}return ze(ne,ae),Object.defineProperty(ne.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),ne.prototype.ownsTarget=function(te){return!(!ae.prototype.ownsTarget.call(this,te)&&te!==this.tip1&&te!==this.tip2)},ne.prototype.createTips=function(){this.tip1=xe.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(xe.createTransform()),this.visual.appendChild(this.tip1),this.tip2=xe.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(xe.createTransform()),this.visual.appendChild(this.tip2)},ne.prototype.pointerDown=function(te,oe){ae.prototype.pointerDown.call(this,te,oe),this.state==="creating"&&this.createTips()},ne.prototype.adjustVisual=function(){if(ae.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(xe.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()]]),xe.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 ce=this.tip2.transform.baseVal.getItem(0);ce.setRotate(te+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(ce,0)}},Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ne.prototype.getState=function(){var te=ae.prototype.getState.call(this);return te.typeName=ne.typeName,te},ne.prototype.restoreState=function(te){ae.prototype.restoreState.call(this,te),this.createTips(),this.adjustVisual()},ne.typeName="MeasurementMarker",ne.title="Measurement marker",ne.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>',ne}(rt),ge=function(ae){function ne(te,oe,ce){var re=ae.call(this,te,oe,ce)||this;return re.strokePanel.colors=ce.defaultColorSet,re.fillColor="transparent",re}return ze(ne,ae),Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ne.prototype.getState=function(){var te=ae.prototype.getState.call(this);return te.typeName=ne.typeName,te},ne.typeName="EllipseFrameMarker",ne.title="Ellipse frame marker",ne.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>',ne}(en),Ke=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(ne){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(ne)||(this.undoStack.push(ne),JSON.stringify(this.lastRedoStep)!==JSON.stringify(ne)&&this.redoStack.splice(0,this.redoStack.length))},ae.prototype.replaceLastUndoStep=function(ne){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=ne)},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 ne=this.undoStack.pop();return ne!==void 0&&this.redoStack.push(ne),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}(),tt=function(ae){function ne(te,oe,ce){var re=ae.call(this,te,oe,ce)||this;return re.strokeColor="transparent",re.strokeWidth=0,re.strokeDasharray="",re.curveX=0,re.curveY=0,re.manipulationStartCurveX=0,re.manipulationStartCurveY=0,re.setStrokeColor=re.setStrokeColor.bind(re),re.setStrokeWidth=re.setStrokeWidth.bind(re),re.setStrokeDasharray=re.setStrokeDasharray.bind(re),re.positionGrips=re.positionGrips.bind(re),re.addControlGrips=re.addControlGrips.bind(re),re.adjustVisual=re.adjustVisual.bind(re),re.setupControlBox=re.setupControlBox.bind(re),re.resize=re.resize.bind(re),re.strokeColor=ce.defaultColor,re.strokeWidth=ce.defaultStrokeWidth,re.strokeDasharray=ce.defaultStrokeDasharray,re.strokePanel=new We("Line color",ce.defaultColorSet,ce.defaultColor),re.strokePanel.onColorChanged=re.setStrokeColor,re.strokeWidthPanel=new Xe("Line width",ce.defaultStrokeWidths,ce.defaultStrokeWidth),re.strokeWidthPanel.onWidthChanged=re.setStrokeWidth,re.strokeStylePanel=new Je("Line style",ce.defaultStrokeDasharrays,ce.defaultStrokeDasharray),re.strokeStylePanel.onStyleChanged=re.setStrokeDasharray,re}return ze(ne,ae),ne.prototype.ownsTarget=function(te){return!(!ae.prototype.ownsTarget.call(this,te)&&te!==this.visual&&te!==this.selectorCurve&&te!==this.visibleCurve&&!this.curveGrip.ownsTarget(te))},ne.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},ne.prototype.createVisual=function(){this.visual=xe.createGroup(),this.selectorCurve=xe.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=xe.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)},ne.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")},ne.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),xe.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),xe.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),xe.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},ne.prototype.setupControlBox=function(){ae.prototype.setupControlBox.call(this),this.curveControlLine1=xe.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=xe.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)},ne.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,ae.prototype.addControlGrips.call(this)},ne.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()))},ne.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)},ne.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)},ne.prototype.setStrokeColor=function(te){this.strokeColor=te,this.adjustVisual(),this.colorChanged(te)},ne.prototype.setStrokeWidth=function(te){this.strokeWidth=te,this.adjustVisual()},ne.prototype.setStrokeDasharray=function(te){this.strokeDasharray=te,this.adjustVisual()},ne.prototype.scale=function(te,oe){this.curveX=this.curveX*te,this.curveY=this.curveY*oe,ae.prototype.scale.call(this,te,oe)},Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ne.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=ne.typeName,te},ne.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()},ne.typeName="CurveMarker",ne.title="Curve marker",ne.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>',ne}(Ye),Wt=function(ae){function ne(te,oe,ce){var re=ae.call(this,te,oe,ce)||this;return re.fillColor="transparent",re.strokeColor="transparent",re.strokeWidth=0,re.strokeDasharray="",re.textColor="transparent",re.fontSize="1rem",re.isMoved=!1,re.captionText="Caption",re.PADDING=5,re.captionBoxWidth=0,re.captionBoxHeight=0,re.strokeColor=ce.defaultColor,re.strokeWidth=ce.defaultStrokeWidth,re.strokeDasharray=ce.defaultStrokeDasharray,re.fillColor=ce.defaultFillColor,re.textColor=ce.defaultStrokeColor,re.fontFamily=ce.defaultFontFamily,re.fontSize=ce.defaultCaptionFontSize,re.captionText=ce.defaultCaptionText,re.setStrokeColor=re.setStrokeColor.bind(re),re.setFillColor=re.setFillColor.bind(re),re.setStrokeWidth=re.setStrokeWidth.bind(re),re.setStrokeDasharray=re.setStrokeDasharray.bind(re),re.createVisual=re.createVisual.bind(re),re.sizeCaption=re.sizeCaption.bind(re),re.setCaptionText=re.setCaptionText.bind(re),re.showTextEditor=re.showTextEditor.bind(re),re.positionTextEditor=re.positionTextEditor.bind(re),re.finishTextEditing=re.finishTextEditing.bind(re),re.setFont=re.setFont.bind(re),re.setTextColor=re.setTextColor.bind(re),re.strokePanel=new We("Line color",Se(ce.defaultColorSet,["transparent"]),re.strokeColor),re.strokePanel.onColorChanged=re.setStrokeColor,re.fillPanel=new We("Fill color",Se(ce.defaultColorSet,["transparent"]),re.fillColor,pe),re.fillPanel.onColorChanged=re.setFillColor,re.strokeWidthPanel=new Xe("Line width",ce.defaultStrokeWidths,ce.defaultStrokeWidth),re.strokeWidthPanel.onWidthChanged=re.setStrokeWidth,re.strokeStylePanel=new Je("Line style",ce.defaultStrokeDasharrays,ce.defaultStrokeDasharray),re.strokeStylePanel.onStyleChanged=re.setStrokeDasharray,re.fontFamilyPanel=new Ce("Font",ce.defaultFontFamilies,ce.defaultFontFamily),re.fontFamilyPanel.onFontChanged=re.setFont,re.textColorPanel=new We("Text color",ce.defaultColorSet,re.textColor,Oe),re.textColorPanel.onColorChanged=re.setTextColor,re}return ze(ne,ae),ne.prototype.ownsTarget=function(te){return!(!ae.prototype.ownsTarget.call(this,te)&&te!==this.visual&&te!==this.frame&&te!==this.captionBg&&te!==this.captionElement)},ne.prototype.createVisual=function(){this.visual=xe.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=xe.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=xe.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=xe.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()},ne.prototype.setCaptionText=function(te){this.captionText=te,this.captionElement.textContent=this.captionText,this.sizeCaption()},ne.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")},ne.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)},ne.prototype.resize=function(te){ae.prototype.resize.call(this,te),this.setSize()},ne.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),xe.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')"]]),xe.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')"]])},ne.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()},ne.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"))},ne.prototype.finishTextEditing=function(te){this.setCaptionText(te.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},ne.prototype.setFont=function(te){this.captionElement&&xe.setAttributes(this.captionElement,[["font-family",te]]),this.fontFamily=te,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},ne.prototype.setTextColor=function(te){this.captionElement&&xe.setAttributes(this.captionElement,[["fill",te]]),this.textColor=te,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},ne.prototype.setSize=function(){ae.prototype.setSize.call(this),xe.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},ne.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},ne.prototype.dblClick=function(te,oe){ae.prototype.dblClick.call(this,te,oe),this.showTextEditor()},ne.prototype.setStrokeColor=function(te){this.strokeColor=te,this.frame&&xe.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(te),this.stateChanged()},ne.prototype.setFillColor=function(te){this.fillColor=te,this.captionBg&&xe.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(te),this.stateChanged()},ne.prototype.setStrokeWidth=function(te){this.strokeWidth=te,this.frame&&xe.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ne.prototype.setStrokeDasharray=function(te){this.strokeDasharray=te,this.frame&&xe.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),ne.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},ne.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()},ne.prototype.scale=function(te,oe){ae.prototype.scale.call(this,te,oe),this.setSize()},ne.typeName="CaptionFrameMarker",ne.title="Caption frame marker",ne.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>',ne}(Fe),qe=function(){function ae(ne,te){te===void 0&&(te=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=ne,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}(),Rt=function(ae){function ne(te,oe,ce){var re=ae.call(this,te,!1)||this;return re.dataUrl=oe,re.state=ce,re}return ze(ne,ae),ne}(qe),Qe=function(ae){function ne(te,oe,ce){ce===void 0&&(ce=!1);var re=ae.call(this,te,ce)||this;return re.marker=oe,re}return ze(ne,ae),ne}(qe),tn=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(ne,te){this[ne].push(te)},ae.prototype.removeEventListener=function(ne,te){var oe=this[ne].indexOf(te);oe>-1&&this[ne].splice(oe,1)},ae}(),gt=function(){function ae(ne){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new ct,this._isOpen=!1,this.undoRedoManager=new Ke,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 tn,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=ae.instanceCounter++,this.styles=new ue(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=ne,this.targetRoot=document.body,this.width=ne.clientWidth,this.height=ne.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[$t,_e,Et,at,ge,en,Yt,Lt,Ot,He,rt,tt,Wt]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[$t,_e,Et,at,en,Yt,Lt]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"BASIC_MARKER_TYPES",{get:function(){return[$t,_e,Et,at,Yt]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(ne){var te=this;this._availableMarkerTypes.splice(0),ne.forEach(function(oe){if(typeof oe=="string"){var ce=te.ALL_MARKER_TYPES.find(function(re){return re.typeName===oe});ce!==void 0&&te._availableMarkerTypes.push(ce)}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(ne){this._zoomLevel=ne,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(),Ee.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},ae.prototype.show=function(){var ne=this;this.styles.styleSheetRoot===void 0&&Ie.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Ie.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(te){return te(new qe(ne))})},ae.prototype.render=function(){return fe(this,void 0,void 0,function(){var ne;return nt(this,function(te){switch(te.label){case 0:return this.setCurrentMarker(),(ne=new je).naturalSize=this.renderAtNaturalSize,ne.imageType=this.renderImageType,ne.imageQuality=this.renderImageQuality,ne.markersOnly=this.renderMarkersOnly,ne.width=this.renderWidth,ne.height=this.renderHeight,[4,ne.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return te.sent(),[4,ne.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,te.sent()]}})})},ae.prototype.close=function(ne){var te=this;if(ne===void 0&&(ne=!1),this.isOpen){var oe=!1;ne||this.eventListeners.beforeclose.forEach(function(ce){var re=new qe(te,!0);ce(re),re.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(ce){return ce(new qe(te))}),this.detachEvents(),this._isOpen=!1)}},ae.prototype.addMarkersToToolbar=function(){for(var ne,te=[],oe=0;oe<arguments.length;oe++)te[oe]=arguments[oe];(ne=this._availableMarkerTypes).push.apply(ne,te)},ae.prototype.addRenderEventListener=function(ne){this.addEventListener("render",function(te){ne(te.dataUrl,te.state)})},ae.prototype.removeRenderEventListener=function(ne){},ae.prototype.addCloseEventListener=function(ne){this.addEventListener("close",function(){ne()})},ae.prototype.removeCloseEventListener=function(ne){},ae.prototype.setupResizeObserver=function(){var ne=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){ne.resize(ne.target.clientWidth,ne.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return ne.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},ae.prototype.onPopupTargetResize=function(){var ne=1*this.target.clientWidth/this.target.clientHeight,te=this.editorCanvas.clientWidth/ne>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*ne:this.editorCanvas.clientWidth,oe=te<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/ne;this.resize(te,oe)},ae.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},ae.prototype.resize=function(ne,te){this._isResizing=!0;var oe=ne/this.imageWidth,ce=te/this.imageHeight;this.imageWidth=Math.round(ne),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,ce),this._isResizing=!1},ae.prototype.scaleMarkers=function(ne,te){var oe,ce=this;this._currentMarker&&this._currentMarker instanceof at?this._currentMarker.scale(ne,te):(oe=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(re){re!==ce._currentMarker&&re.scale(ne,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 ne=this.editingTarget.getBoundingClientRect(),te=this.editorCanvas.getBoundingClientRect();this.left=ne.left-te.left,this.top=ne.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 ne,te=[],oe=0;oe<arguments.length;oe++)te[oe]=arguments[oe];this.defs=xe.createDefs(),this.addDefsToImage(),(ne=this.defs).append.apply(ne,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 ne=document.createElement("a");ne.href="https://markerjs.com/",ne.target="_blank",ne.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>',ne.title="Powered by marker.js",ne.style.display="grid",ne.style.alignItems="center",ne.style.justifyItems="center",ne.style.padding="3px",ne.style.width="20px",ne.style.height="20px",this.logoUI.appendChild(ne),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 ne=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=ne+"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 At(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 lt(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(ne){this.markerImage.removeChild(ne.container),this.markers.indexOf(ne)>-1&&this.markers.splice(this.markers.indexOf(ne),1),ne.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(ne,te){if(ne==="marker"&&te!==void 0)this.createNewMarker(te);else if(ne==="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 ne=this;if(this._currentMarker!==void 0){var te=!1;if(this.eventListeners.markerbeforedelete.forEach(function(ce){var re=new Qe(ne,ne._currentMarker,!0);ce(re),re.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(ce){return ce(new Qe(ne,oe))})}}},ae.prototype.clear=function(){var ne=this,te=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(le){var be=new Qe(ne,void 0,!0);le(be),be.defaultPrevented&&(te=!0)}),!te)){this.setCurrentMarker();for(var oe=function(le){var be=ce.markers[le];ce.setCurrentMarker(ce.markers[le]),ce._currentMarker.dispose(),ce.markerImage.removeChild(ce._currentMarker.container),ce.markers.splice(ce.markers.indexOf(ce._currentMarker),1),ce.eventListeners.markerdelete.forEach(function(ht){return ht(new Qe(ne,be))})},ce=this,re=this.markers.length-1;re>=0;re--)oe(re);this.addUndoStep()}},Object.defineProperty(ae.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),ae.prototype.showNotesEditor=function(){var ne;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=(ne=this._currentMarker.notes)!==null&&ne!==void 0?ne:"",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 ne=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 ce=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(te),ce<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(re){return re(new qe(ne))})}else this.undoRedoManager.replaceLastUndoStep(te),this.eventListeners.statechange.forEach(function(re){return re(new qe(ne))})}},ae.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},ae.prototype.undoStep=function(){var ne=this,te=this.undoRedoManager.undo();te!==void 0&&(this.restoreState(te),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(oe){return oe(new qe(ne))}))},ae.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},ae.prototype.redoStep=function(){var ne=this,te=this.undoRedoManager.redo();te!==void 0&&(this.restoreState(te),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(oe){return oe(new qe(ne))}))},ae.prototype.stepZoom=function(){var ne=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=ne<this.zoomSteps.length-1?this.zoomSteps[ne+1]:this.zoomSteps[0]},ae.prototype.panTo=function(ne){this.contentDiv.scrollBy({left:this.prevPanPoint.x-ne.x,top:this.prevPanPoint.y-ne.y}),this.prevPanPoint=ne},ae.prototype.startRenderAndClose=function(){return fe(this,void 0,void 0,function(){var ne,te,oe=this;return nt(this,function(ce){switch(ce.label){case 0:return[4,this.render()];case 1:return ne=ce.sent(),te=this.getState(),this.eventListeners.render.forEach(function(re){return re(new Rt(oe,ne,te))}),this.close(!0),[2]}})})},ae.prototype.getState=function(ne){ne===!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(ne){var te=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);ne.markers.forEach(function(oe){var ce=te._availableMarkerTypes.find(function(le){return le.typeName===oe.typeName});if(ce!==void 0){var re=te.addNewMarker(ce);re.restoreState(oe),te.markers.push(re)}}),ne.width&&ne.height&&(ne.width!==this.imageWidth||ne.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/ne.width,this.imageHeight/ne.height),this.eventListeners.restorestate.forEach(function(oe){return oe(new qe(te))})},ae.prototype.addNewMarker=function(ne){var te=xe.createGroup();return this.markerImage.appendChild(te),new ne(te,this.overlayContainer,this.settings)},ae.prototype.createNewMarker=function(ne){var te,oe=this;(te=typeof ne=="string"?this._availableMarkerTypes.find(function(ce){return ce.typeName===ne}):ne)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(te),this._currentMarker.onMarkerCreated=this.markerCreated,this._currentMarker.onColorChanged=this.colorChanged,this._currentMarker.onFillColorChanged=this.fillColorChanged,this._currentMarker.onStateChanged=this.markerStateChanged,this.markerImage.style.cursor="crosshair",this.toolbar.setActiveMarkerButton(te.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(ce){return ce(new Qe(oe,oe._currentMarker))}))},ae.prototype.markerCreated=function(ne){var te=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(ne),this.setCurrentMarker(ne),ne instanceof _e&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(_e):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(oe){return oe(new Qe(te,te._currentMarker))})},ae.prototype.colorChanged=function(ne){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=ne,this.settings.defaultStrokeColor=ne)},ae.prototype.fillColorChanged=function(ne){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=ne)},ae.prototype.markerStateChanged=function(ne){var te=this;this.eventListeners.markerchange.forEach(function(oe){return oe(new Qe(te,ne))})},ae.prototype.setCurrentMarker=function(ne){var te=this;this._currentMarker!==ne&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(oe){return oe(new Qe(te,te._currentMarker))})),this._currentMarker=ne,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 Qe(te,te._currentMarker))}))},ae.prototype.onPointerDown=function(ne){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||ne.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(ne.target)});te!==void 0?(this.setCurrentMarker(te),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(ne.clientX,ne.clientY),ne.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:ne.clientX,y:ne.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(ne.clientX,ne.clientY))},ae.prototype.onDblClick=function(ne){if(this._isFocused||this.focus(),this.mode==="select"){var te=this.markers.find(function(oe){return oe.ownsTarget(ne.target)});te!==void 0&&te!==this._currentMarker&&this.setCurrentMarker(te),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(ne.clientX,ne.clientY),ne.target):this.setCurrentMarker()}},ae.prototype.onPointerMove=function(ne){this.touchPoints!==1&&ne.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||ne.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(ne.clientX,ne.clientY)):this.zoomLevel>1&&this.panTo({x:ne.clientX,y:ne.clientY}))},ae.prototype.onPointerUp=function(ne){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(ne.clientX,ne.clientY)),this.isDragging=!1,this.addUndoStep()},ae.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},ae.prototype.onKeyUp=function(ne){this._currentMarker===void 0||this.notesArea!==void 0||ne.key!=="Delete"&&ne.key!=="Backspace"||this.deleteSelectedMarker()},ae.prototype.clientToLocalCoordinates=function(ne,te){var oe=this.markerImage.getBoundingClientRect();return{x:(ne-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 ne=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=ne+"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(ne){Ee.addKey(ne)},ae.prototype.addEventListener=function(ne,te){this.eventListeners.addEventListener(ne,te)},ae.prototype.removeEventListener=function(ne,te){this.eventListeners.removeEventListener(ne,te)},ae.prototype.renderState=function(ne){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(ne),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(ae.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),ae.prototype.focus=function(){var ne=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 qe(ne))}))},ae.prototype.blur=function(){var ne=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(te){return te(new qe(ne))}))},ae.instanceCounter=0,ae}()},6551:function(In,Qt,ee){"use strict";ee.d(Qt,{ZP:function(){return Ee}});var b=ee(72190),ze=ee(59301),fe=ee(47273),nt=0,Se=(0,fe.Z)();function xe(){var je;return Se?(je=nt,nt+=1):je="TEST_OR_SSR",je}function Ee(je){var Ie=ze.useState(),ue=(0,b.Z)(Ie,2),et=ue[0],Te=ue[1];return ze.useEffect(function(){Te("rc_select_".concat(xe()))},[]),je||et}},37463:function(In,Qt,ee){"use strict";ee.d(Qt,{Ac:function(){return St},Xo:function(){return _t},Wx:function(){return mt},ZP:function(){return Hn},lk:function(){return Nt}});var b=ee(60499),ze=ee(77654),fe=ee(18642),nt=ee(85899),Se=ee(72190),xe=ee(42244),Ee=ee(43749),je=ee(18929),Ie=ee(48736),ue=ee(59301),et=ee(92310),Te=ee.n(et),At=ee(34280),lt=ee(49658),it=ee(8654),We=function(Pt){var Re=Pt.className,vt=Pt.customizeIcon,Ze=Pt.customizeIconProps,bt=Pt.children,Pe=Pt.onMouseDown,It=Pt.onClick,Bt=typeof vt=="function"?vt(Ze):vt;return ue.createElement("span",{className:Re,onMouseDown:function(Ct){Ct.preventDefault(),Pe==null||Pe(Ct)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:It,"aria-hidden":!0},Bt!==void 0?Bt:ue.createElement("span",{className:Te()(Re.split(/\s+/).map(function(Kt){return"".concat(Kt,"-icon")}))},bt))},ke=We,ot=function(Pt,Re,vt,Ze,bt){var Pe=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,It=arguments.length>6?arguments[6]:void 0,Bt=arguments.length>7?arguments[7]:void 0,Kt=ue.useMemo(function(){if((0,Ee.Z)(Ze)==="object")return Ze.clearIcon;if(bt)return bt},[Ze,bt]),Ct=ue.useMemo(function(){return!!(!Pe&&Ze&&(vt.length||It)&&!(Bt==="combobox"&&It===""))},[Ze,Pe,vt.length,It,Bt]);return{allowClear:Ct,clearIcon:ue.createElement(ke,{className:"".concat(Pt,"-clear"),onMouseDown:Re,customizeIcon:Kt},"\xD7")}},yt=ue.createContext(null);function Nt(){return ue.useContext(yt)}function Fe(){var ut=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Pt=ue.useState(!1),Re=(0,Se.Z)(Pt,2),vt=Re[0],Ze=Re[1],bt=ue.useRef(null),Pe=function(){window.clearTimeout(bt.current)};ue.useEffect(function(){return Pe},[]);var It=function(Kt,Ct){Pe(),bt.current=window.setTimeout(function(){Ze(Kt),Ct&&Ct()},ut)};return[vt,It,Pe]}function Me(){var ut=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Pt=ue.useRef(null),Re=ue.useRef(null);ue.useEffect(function(){return function(){window.clearTimeout(Re.current)}},[]);function vt(Ze){(Ze||Pt.current===null)&&(Pt.current=Ze),window.clearTimeout(Re.current),Re.current=window.setTimeout(function(){Pt.current=null},ut)}return[function(){return Pt.current},vt]}function Xe(ut,Pt,Re,vt){var Ze=ue.useRef(null);Ze.current={open:Pt,triggerOpen:Re,customizedTrigger:vt},ue.useEffect(function(){function bt(Pe){var It;if(!((It=Ze.current)!==null&&It!==void 0&&It.customizedTrigger)){var Bt=Pe.target;Bt.shadowRoot&&Pe.composed&&(Bt=Pe.composedPath()[0]||Bt),Ze.current.open&&ut().filter(function(Kt){return Kt}).every(function(Kt){return!Kt.contains(Bt)&&Kt!==Bt})&&Ze.current.triggerOpen(!1)}}return window.addEventListener("mousedown",bt),function(){return window.removeEventListener("mousedown",bt)}},[])}var Je=ee(10228);function $t(ut){return ut&&![Je.Z.ESC,Je.Z.SHIFT,Je.Z.BACKSPACE,Je.Z.TAB,Je.Z.WIN_KEY,Je.Z.ALT,Je.Z.META,Je.Z.WIN_KEY_RIGHT,Je.Z.CTRL,Je.Z.SEMICOLON,Je.Z.EQUALS,Je.Z.CAPS_LOCK,Je.Z.CONTEXT_MENU,Je.Z.F1,Je.Z.F2,Je.Z.F3,Je.Z.F4,Je.Z.F5,Je.Z.F6,Je.Z.F7,Je.Z.F8,Je.Z.F9,Je.Z.F10,Je.Z.F11,Je.Z.F12].includes(ut)}var ct=ee(26112),Ye=ee(83836);function rt(ut,Pt,Re){var vt=(0,nt.Z)((0,nt.Z)({},ut),Re?Pt:{});return Object.keys(Pt).forEach(function(Ze){var bt=Pt[Ze];typeof bt=="function"&&(vt[Ze]=function(){for(var Pe,It=arguments.length,Bt=new Array(It),Kt=0;Kt<It;Kt++)Bt[Kt]=arguments[Kt];return bt.apply(void 0,Bt),(Pe=ut[Ze])===null||Pe===void 0?void 0:Pe.call.apply(Pe,[ut].concat(Bt))})}),vt}var Ce=rt,at=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],_e=function(Pt,Re){var vt=Pt.prefixCls,Ze=Pt.id,bt=Pt.inputElement,Pe=Pt.autoFocus,It=Pt.autoComplete,Bt=Pt.editable,Kt=Pt.activeDescendantId,Ct=Pt.value,xt=Pt.open,wt=Pt.attrs,Ft=(0,xe.Z)(Pt,at),Tn=bt||ue.createElement("input",null),On=Tn,An=On.ref,er=On.props;return(0,Ie.Kp)(!("maxLength"in Tn.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Tn=ue.cloneElement(Tn,(0,nt.Z)((0,nt.Z)((0,nt.Z)({type:"search"},Ce(Ft,er,!0)),{},{id:Ze,ref:(0,it.sQ)(Re,An),autoComplete:It||"off",autoFocus:Pe,className:Te()("".concat(vt,"-selection-search-input"),er==null?void 0:er.className),role:"combobox","aria-expanded":xt||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Ze,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Ze,"_list"),"aria-activedescendant":xt?Kt:void 0},wt),{},{value:Bt?Ct:"",readOnly:!Bt,unselectable:Bt?null:"on",style:(0,nt.Z)((0,nt.Z)({},er.style),{},{opacity:Bt?null:0})})),Tn},de=ue.forwardRef(_e),Et=de;function He(ut){return Array.isArray(ut)?ut:ut!==void 0?[ut]:[]}var st=typeof window!="undefined"&&window.document&&window.document.documentElement,Yt=st;function Oe(ut){return ut!=null}function pe(ut){return!ut&&ut!==0}function Lt(ut){return["string","number"].includes((0,Ee.Z)(ut))}function en(ut){var Pt=void 0;return ut&&(Lt(ut.title)?Pt=ut.title.toString():Lt(ut.label)&&(Pt=ut.label.toString())),Pt}function Ot(ut,Pt){Yt?ue.useLayoutEffect(ut,Pt):ue.useEffect(ut,Pt)}function ge(ut){var Pt;return(Pt=ut.key)!==null&&Pt!==void 0?Pt:ut.value}var Ke=function(Pt){Pt.preventDefault(),Pt.stopPropagation()},tt=function(Pt){var Re=Pt.id,vt=Pt.prefixCls,Ze=Pt.values,bt=Pt.open,Pe=Pt.searchValue,It=Pt.autoClearSearchValue,Bt=Pt.inputRef,Kt=Pt.placeholder,Ct=Pt.disabled,xt=Pt.mode,wt=Pt.showSearch,Ft=Pt.autoFocus,Tn=Pt.autoComplete,On=Pt.activeDescendantId,An=Pt.tabIndex,er=Pt.removeIcon,sr=Pt.maxTagCount,fr=Pt.maxTagTextLength,Qn=Pt.maxTagPlaceholder,Xn=Qn===void 0?function(Vn){return"+ ".concat(Vn.length," ...")}:Qn,Jn=Pt.tagRender,ur=Pt.onToggleOpen,Er=Pt.onRemove,Cr=Pt.onInputChange,wr=Pt.onInputPaste,Yn=Pt.onInputKeyDown,yr=Pt.onInputMouseDown,mr=Pt.onInputCompositionStart,_r=Pt.onInputCompositionEnd,Yr=Pt.onInputBlur,Vr=ue.useRef(null),Ur=(0,ue.useState)(0),oi=(0,Se.Z)(Ur,2),Zr=oi[0],Jr=oi[1],Or=(0,ue.useState)(!1),ti=(0,Se.Z)(Or,2),ci=ti[0],Fi=ti[1],vi="".concat(vt,"-selection"),xi=bt||xt==="multiple"&&It===!1||xt==="tags"?Pe:"",hi=xt==="tags"||xt==="multiple"&&It===!1||wt&&(bt||ci);Ot(function(){Jr(Vr.current.scrollWidth)},[xi]);var bi=function(Bn,lr,br,jn,Ln){return ue.createElement("span",{title:en(Bn),className:Te()("".concat(vi,"-item"),(0,fe.Z)({},"".concat(vi,"-item-disabled"),br))},ue.createElement("span",{className:"".concat(vi,"-item-content")},lr),jn&&ue.createElement(ke,{className:"".concat(vi,"-item-remove"),onMouseDown:Ke,onClick:Ln,customizeIcon:er},"\xD7"))},Rr=function(Bn,lr,br,jn,Ln,Gn){var nr=function(Ei){Ke(Ei),ur(!bt)};return ue.createElement("span",{onMouseDown:nr},Jn({label:lr,value:Bn,disabled:br,closable:jn,onClose:Ln,isMaxTag:!!Gn}))},Lr=function(Bn){var lr=Bn.disabled,br=Bn.label,jn=Bn.value,Ln=!Ct&&!lr,Gn=br;if(typeof fr=="number"&&(typeof br=="string"||typeof br=="number")){var nr=String(Gn);nr.length>fr&&(Gn="".concat(nr.slice(0,fr),"..."))}var Qr=function(pi){pi&&pi.stopPropagation(),Er(Bn)};return typeof Jn=="function"?Rr(jn,Gn,lr,Ln,Qr):bi(Bn,Gn,lr,Ln,Qr)},cr=function(Bn){if(!Ze.length)return null;var lr=typeof Xn=="function"?Xn(Bn):Xn;return typeof Jn=="function"?Rr(void 0,lr,!1,!1,void 0,!0):bi({title:lr},lr,!1)},Nn=ue.createElement("div",{className:"".concat(vi,"-search"),style:{width:Zr},onFocus:function(){Fi(!0)},onBlur:function(){Fi(!1)}},ue.createElement(Et,{ref:Bt,open:bt,prefixCls:vt,id:Re,inputElement:null,disabled:Ct,autoFocus:Ft,autoComplete:Tn,editable:hi,activeDescendantId:On,value:xi,onKeyDown:Yn,onMouseDown:yr,onChange:Cr,onPaste:wr,onCompositionStart:mr,onCompositionEnd:_r,onBlur:Yr,tabIndex:An,attrs:(0,ct.Z)(Pt,!0)}),ue.createElement("span",{ref:Vr,className:"".concat(vi,"-search-mirror"),"aria-hidden":!0},xi,"\xA0")),Kn=ue.createElement(Ye.Z,{prefixCls:"".concat(vi,"-overflow"),data:Ze,renderItem:Lr,renderRest:cr,suffix:Nn,itemKey:ge,maxCount:sr});return ue.createElement("span",{className:"".concat(vi,"-wrap")},Kn,!Ze.length&&!xi&&ue.createElement("span",{className:"".concat(vi,"-placeholder")},Kt))},Wt=tt,qe=function(Pt){var Re=Pt.inputElement,vt=Pt.prefixCls,Ze=Pt.id,bt=Pt.inputRef,Pe=Pt.disabled,It=Pt.autoFocus,Bt=Pt.autoComplete,Kt=Pt.activeDescendantId,Ct=Pt.mode,xt=Pt.open,wt=Pt.values,Ft=Pt.placeholder,Tn=Pt.tabIndex,On=Pt.showSearch,An=Pt.searchValue,er=Pt.activeValue,sr=Pt.maxLength,fr=Pt.onInputKeyDown,Qn=Pt.onInputMouseDown,Xn=Pt.onInputChange,Jn=Pt.onInputPaste,ur=Pt.onInputCompositionStart,Er=Pt.onInputCompositionEnd,Cr=Pt.onInputBlur,wr=Pt.title,Yn=ue.useState(!1),yr=(0,Se.Z)(Yn,2),mr=yr[0],_r=yr[1],Yr=Ct==="combobox",Vr=Yr||On,Ur=wt[0],oi=An||"";Yr&&er&&!mr&&(oi=er),ue.useEffect(function(){Yr&&_r(!1)},[Yr,er]);var Zr=Ct!=="combobox"&&!xt&&!On?!1:!!oi,Jr=wr===void 0?en(Ur):wr,Or=ue.useMemo(function(){return Ur?null:ue.createElement("span",{className:"".concat(vt,"-selection-placeholder"),style:Zr?{visibility:"hidden"}:void 0},Ft)},[Ur,Zr,Ft,vt]);return ue.createElement("span",{className:"".concat(vt,"-selection-wrap")},ue.createElement("span",{className:"".concat(vt,"-selection-search")},ue.createElement(Et,{ref:bt,prefixCls:vt,id:Ze,open:xt,inputElement:Re,disabled:Pe,autoFocus:It,autoComplete:Bt,editable:Vr,activeDescendantId:Kt,value:oi,onKeyDown:fr,onMouseDown:Qn,onChange:function(ci){_r(!0),Xn(ci)},onPaste:Jn,onCompositionStart:ur,onCompositionEnd:Er,onBlur:Cr,tabIndex:Tn,attrs:(0,ct.Z)(Pt,!0),maxLength:Yr?sr:void 0})),!Yr&&Ur?ue.createElement("span",{className:"".concat(vt,"-selection-item"),title:Jr,style:Zr?{visibility:"hidden"}:void 0},Ur.label):null,Or)},Rt=qe,Qe=function(Pt,Re){var vt=(0,ue.useRef)(null),Ze=(0,ue.useRef)(!1),bt=Pt.prefixCls,Pe=Pt.open,It=Pt.mode,Bt=Pt.showSearch,Kt=Pt.tokenWithEnter,Ct=Pt.disabled,xt=Pt.prefix,wt=Pt.autoClearSearchValue,Ft=Pt.onSearch,Tn=Pt.onSearchSubmit,On=Pt.onToggleOpen,An=Pt.onInputKeyDown,er=Pt.onInputBlur,sr=Pt.domRef;ue.useImperativeHandle(Re,function(){return{focus:function(Jr){vt.current.focus(Jr)},blur:function(){vt.current.blur()}}});var fr=Me(0),Qn=(0,Se.Z)(fr,2),Xn=Qn[0],Jn=Qn[1],ur=function(Jr){var Or=Jr.which,ti=vt.current instanceof HTMLTextAreaElement;!ti&&Pe&&(Or===Je.Z.UP||Or===Je.Z.DOWN)&&Jr.preventDefault(),An&&An(Jr),Or===Je.Z.ENTER&&It==="tags"&&!Ze.current&&!Pe&&(Tn==null||Tn(Jr.target.value)),!(ti&&!Pe&&~[Je.Z.UP,Je.Z.DOWN,Je.Z.LEFT,Je.Z.RIGHT].indexOf(Or))&&$t(Or)&&On(!0)},Er=function(){Jn(!0)},Cr=(0,ue.useRef)(null),wr=function(Jr){Ft(Jr,!0,Ze.current)!==!1&&On(!0)},Yn=function(){Ze.current=!0},yr=function(Jr){Ze.current=!1,It!=="combobox"&&wr(Jr.target.value)},mr=function(Jr){var Or=Jr.target.value;if(Kt&&Cr.current&&/[\r\n]/.test(Cr.current)){var ti=Cr.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Or=Or.replace(ti,Cr.current)}Cr.current=null,wr(Or)},_r=function(Jr){var Or=Jr.clipboardData,ti=Or==null?void 0:Or.getData("text");Cr.current=ti||""},Yr=function(Jr){var Or=Jr.target;if(Or!==vt.current){var ti=document.body.style.msTouchAction!==void 0;ti?setTimeout(function(){vt.current.focus()}):vt.current.focus()}},Vr=function(Jr){var Or=Xn();Jr.target!==vt.current&&!Or&&!(It==="combobox"&&Ct)&&Jr.preventDefault(),(It!=="combobox"&&(!Bt||!Or)||!Pe)&&(Pe&&wt!==!1&&Ft("",!0,!1),On())},Ur={inputRef:vt,onInputKeyDown:ur,onInputMouseDown:Er,onInputChange:mr,onInputPaste:_r,onInputCompositionStart:Yn,onInputCompositionEnd:yr,onInputBlur:er},oi=It==="multiple"||It==="tags"?ue.createElement(Wt,(0,b.Z)({},Pt,Ur)):ue.createElement(Rt,(0,b.Z)({},Pt,Ur));return ue.createElement("div",{ref:sr,className:"".concat(bt,"-selector"),onClick:Yr,onMouseDown:Vr},xt&&ue.createElement("div",{className:"".concat(bt,"-prefix")},xt),oi)},tn=ue.forwardRef(Qe),gt=tn,ae=ee(68196),ne=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],te=function(Pt){var Re=Pt===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Re,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Re,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Re,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Re,adjustY:1},htmlRegion:"scroll"}}},oe=function(Pt,Re){var vt=Pt.prefixCls,Ze=Pt.disabled,bt=Pt.visible,Pe=Pt.children,It=Pt.popupElement,Bt=Pt.animation,Kt=Pt.transitionName,Ct=Pt.dropdownStyle,xt=Pt.dropdownClassName,wt=Pt.direction,Ft=wt===void 0?"ltr":wt,Tn=Pt.placement,On=Pt.builtinPlacements,An=Pt.dropdownMatchSelectWidth,er=Pt.dropdownRender,sr=Pt.dropdownAlign,fr=Pt.getPopupContainer,Qn=Pt.empty,Xn=Pt.getTriggerDOMNode,Jn=Pt.onPopupVisibleChange,ur=Pt.onPopupMouseEnter,Er=(0,xe.Z)(Pt,ne),Cr="".concat(vt,"-dropdown"),wr=It;er&&(wr=er(It));var Yn=ue.useMemo(function(){return On||te(An)},[On,An]),yr=Bt?"".concat(Cr,"-").concat(Bt):Kt,mr=typeof An=="number",_r=ue.useMemo(function(){return mr?null:An===!1?"minWidth":"width"},[An,mr]),Yr=Ct;mr&&(Yr=(0,nt.Z)((0,nt.Z)({},Yr),{},{width:An}));var Vr=ue.useRef(null);return ue.useImperativeHandle(Re,function(){return{getPopupElement:function(){var oi;return(oi=Vr.current)===null||oi===void 0?void 0:oi.popupElement}}}),ue.createElement(ae.Z,(0,b.Z)({},Er,{showAction:Jn?["click"]:[],hideAction:Jn?["click"]:[],popupPlacement:Tn||(Ft==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Yn,prefixCls:Cr,popupTransitionName:yr,popup:ue.createElement("div",{onMouseEnter:ur},wr),ref:Vr,stretch:_r,popupAlign:sr,popupVisible:bt,getPopupContainer:fr,popupClassName:Te()(xt,(0,fe.Z)({},"".concat(Cr,"-empty"),Qn)),popupStyle:Yr,getTriggerDOMNode:Xn,onPopupVisibleChange:Jn}),Pe)},ce=ue.forwardRef(oe),re=ce,le=ee(48745);function be(ut,Pt){var Re=ut.key,vt;return"value"in ut&&(vt=ut.value),Re!=null?Re:vt!==void 0?vt:"rc-index-key-".concat(Pt)}function ht(ut){return typeof ut!="undefined"&&!Number.isNaN(ut)}function Le(ut,Pt){var Re=ut||{},vt=Re.label,Ze=Re.value,bt=Re.options,Pe=Re.groupLabel,It=vt||(Pt?"children":"label");return{label:It,value:Ze||"value",options:bt||"options",groupLabel:Pe||It}}function Ne(ut){var Pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Re=Pt.fieldNames,vt=Pt.childrenAsData,Ze=[],bt=Le(Re,!1),Pe=bt.label,It=bt.value,Bt=bt.options,Kt=bt.groupLabel;function Ct(xt,wt){Array.isArray(xt)&&xt.forEach(function(Ft){if(wt||!(Bt in Ft)){var Tn=Ft[It];Ze.push({key:be(Ft,Ze.length),groupOption:wt,data:Ft,label:Ft[Pe],value:Tn})}else{var On=Ft[Kt];On===void 0&&vt&&(On=Ft.label),Ze.push({key:be(Ft,Ze.length),group:!0,data:Ft,label:On}),Ct(Ft[Bt],!0)}})}return Ct(ut,!1),Ze}function Ve(ut){var Pt=(0,nt.Z)({},ut);return"props"in Pt||Object.defineProperty(Pt,"props",{get:function(){return(0,Ie.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Pt}}),Pt}var Ge=function(Pt,Re,vt){if(!Re||!Re.length)return null;var Ze=!1,bt=function It(Bt,Kt){var Ct=(0,le.Z)(Kt),xt=Ct[0],wt=Ct.slice(1);if(!xt)return[Bt];var Ft=Bt.split(xt);return Ze=Ze||Ft.length>1,Ft.reduce(function(Tn,On){return[].concat((0,ze.Z)(Tn),(0,ze.Z)(It(On,wt)))},[]).filter(Boolean)},Pe=bt(Pt,Re);return Ze?typeof vt!="undefined"?Pe.slice(0,vt):Pe:null},pt=ue.createContext(null),we=pt;function De(ut){var Pt=ut.visible,Re=ut.values;if(!Pt)return null;var vt=50;return ue.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(Re.slice(0,vt).map(function(Ze){var bt=Ze.label,Pe=Ze.value;return["number","string"].includes((0,Ee.Z)(bt))?bt:Pe}).join(", ")),Re.length>vt?", ...":null)}var Zt=["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"],Tt=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],nn=function(Pt){return Pt==="tags"||Pt==="multiple"},Ut=ue.forwardRef(function(ut,Pt){var Re,vt=ut.id,Ze=ut.prefixCls,bt=ut.className,Pe=ut.showSearch,It=ut.tagRender,Bt=ut.direction,Kt=ut.omitDomProps,Ct=ut.displayValues,xt=ut.onDisplayValuesChange,wt=ut.emptyOptions,Ft=ut.notFoundContent,Tn=Ft===void 0?"Not Found":Ft,On=ut.onClear,An=ut.mode,er=ut.disabled,sr=ut.loading,fr=ut.getInputElement,Qn=ut.getRawInputElement,Xn=ut.open,Jn=ut.defaultOpen,ur=ut.onDropdownVisibleChange,Er=ut.activeValue,Cr=ut.onActiveValueChange,wr=ut.activeDescendantId,Yn=ut.searchValue,yr=ut.autoClearSearchValue,mr=ut.onSearch,_r=ut.onSearchSplit,Yr=ut.tokenSeparators,Vr=ut.allowClear,Ur=ut.prefix,oi=ut.suffixIcon,Zr=ut.clearIcon,Jr=ut.OptionList,Or=ut.animation,ti=ut.transitionName,ci=ut.dropdownStyle,Fi=ut.dropdownClassName,vi=ut.dropdownMatchSelectWidth,xi=ut.dropdownRender,hi=ut.dropdownAlign,bi=ut.placement,Rr=ut.builtinPlacements,Lr=ut.getPopupContainer,cr=ut.showAction,Nn=cr===void 0?[]:cr,Kn=ut.onFocus,Vn=ut.onBlur,Bn=ut.onKeyUp,lr=ut.onKeyDown,br=ut.onMouseDown,jn=(0,xe.Z)(ut,Zt),Ln=nn(An),Gn=(Pe!==void 0?Pe:Ln)||An==="combobox",nr=(0,nt.Z)({},jn);Tt.forEach(function(Ki){delete nr[Ki]}),Kt==null||Kt.forEach(function(Ki){delete nr[Ki]});var Qr=ue.useState(!1),Ei=(0,Se.Z)(Qr,2),pi=Ei[0],Ni=Ei[1];ue.useEffect(function(){Ni((0,lt.Z)())},[]);var Ii=ue.useRef(null),Pi=ue.useRef(null),$i=ue.useRef(null),Ai=ue.useRef(null),ki=ue.useRef(null),lo=ue.useRef(!1),xo=Fe(),Do=(0,Se.Z)(xo,3),To=Do[0],Co=Do[1],qr=Do[2];ue.useImperativeHandle(Pt,function(){var Ki,Si;return{focus:(Ki=Ai.current)===null||Ki===void 0?void 0:Ki.focus,blur:(Si=Ai.current)===null||Si===void 0?void 0:Si.blur,scrollTo:function(la){var Ao;return(Ao=ki.current)===null||Ao===void 0?void 0:Ao.scrollTo(la)},nativeElement:Ii.current||Pi.current}});var Hr=ue.useMemo(function(){var Ki;if(An!=="combobox")return Yn;var Si=(Ki=Ct[0])===null||Ki===void 0?void 0:Ki.value;return typeof Si=="string"||typeof Si=="number"?String(Si):""},[Yn,An,Ct]),Ji=An==="combobox"&&typeof fr=="function"&&fr()||null,qi=typeof Qn=="function"&&Qn(),ai=(0,it.x1)(Pi,qi==null||(Re=qi.props)===null||Re===void 0?void 0:Re.ref),Wi=ue.useState(!1),Yi=(0,Se.Z)(Wi,2),gi=Yi[0],Zi=Yi[1];(0,At.Z)(function(){Zi(!0)},[]);var Mi=(0,je.Z)(!1,{defaultValue:Jn,value:Xn}),Zo=(0,Se.Z)(Mi,2),ha=Zo[0],Wo=Zo[1],Mo=gi?ha:!1,ul=!Tn&&wt;(er||ul&&Mo&&An==="combobox")&&(Mo=!1);var el=ul?!1:Mo,si=ue.useCallback(function(Ki){var Si=Ki!==void 0?Ki:!Mo;er||(Wo(Si),Mo!==Si&&(ur==null||ur(Si)))},[er,Mo,Wo,ur]),Ci=ue.useMemo(function(){return(Yr||[]).some(function(Ki){return[`
|
|
|
`,`\r
|
|
|
`].includes(Ki)})},[Yr]),ni=ue.useContext(we)||{},ui=ni.maxCount,_i=ni.rawValues,so=function(Si,Ko,la){if(!(Ln&&ht(ui)&&(_i==null?void 0:_i.size)>=ui)){var Ao=!0,_o=Si;Cr==null||Cr(null);var Ra=Ge(Si,Yr,ht(ui)?ui-_i.size:void 0),Aa=la?null:Ra;return An!=="combobox"&&Aa&&(_o="",_r==null||_r(Aa),si(!1),Ao=!1),mr&&Hr!==_o&&mr(_o,{source:Ko?"typing":"effect"}),Ao}},Ba=function(Si){!Si||!Si.trim()||mr(Si,{source:"submit"})};ue.useEffect(function(){!Mo&&!Ln&&An!=="combobox"&&so("",!1,!1)},[Mo]),ue.useEffect(function(){ha&&er&&Wo(!1),er&&!lo.current&&Co(!1)},[er]);var oa=Me(),Yo=(0,Se.Z)(oa,2),No=Yo[0],Ta=Yo[1],Za=ue.useRef(!1),pa=function(Si){var Ko=No(),la=Si.key,Ao=la==="Enter";if(Ao&&(An!=="combobox"&&Si.preventDefault(),Mo||si(!0)),Ta(!!Hr),la==="Backspace"&&!Ko&&Ln&&!Hr&&Ct.length){for(var _o=(0,ze.Z)(Ct),Ra=null,Aa=_o.length-1;Aa>=0;Aa-=1){var Wa=_o[Aa];if(!Wa.disabled){_o.splice(Aa,1),Ra=Wa;break}}Ra&&xt(_o,{type:"remove",values:[Ra]})}for(var xa=arguments.length,Ca=new Array(xa>1?xa-1:0),Fa=1;Fa<xa;Fa++)Ca[Fa-1]=arguments[Fa];if(Mo&&(!Ao||!Za.current)){var rl;Ao&&(Za.current=!0),(rl=ki.current)===null||rl===void 0||rl.onKeyDown.apply(rl,[Si].concat(Ca))}lr==null||lr.apply(void 0,[Si].concat(Ca))},za=function(Si){for(var Ko=arguments.length,la=new Array(Ko>1?Ko-1:0),Ao=1;Ao<Ko;Ao++)la[Ao-1]=arguments[Ao];if(Mo){var _o;(_o=ki.current)===null||_o===void 0||_o.onKeyUp.apply(_o,[Si].concat(la))}Si.key==="Enter"&&(Za.current=!1),Bn==null||Bn.apply(void 0,[Si].concat(la))},Ya=function(Si){var Ko=Ct.filter(function(la){return la!==Si});xt(Ko,{type:"remove",values:[Si]})},Ma=function(){Za.current=!1},dl=ue.useRef(!1),ms=function(){Co(!0),er||(Kn&&!dl.current&&Kn.apply(void 0,arguments),Nn.includes("focus")&&si(!0)),dl.current=!0},Ql=function(){lo.current=!0,Co(!1,function(){dl.current=!1,lo.current=!1,si(!1)}),!er&&(Hr&&(An==="tags"?mr(Hr,{source:"submit"}):An==="multiple"&&mr("",{source:"blur"})),Vn&&Vn.apply(void 0,arguments))},Ha=[];ue.useEffect(function(){return function(){Ha.forEach(function(Ki){return clearTimeout(Ki)}),Ha.splice(0,Ha.length)}},[]);var tl=function(Si){var Ko,la=Si.target,Ao=(Ko=$i.current)===null||Ko===void 0?void 0:Ko.getPopupElement();if(Ao&&Ao.contains(la)){var _o=setTimeout(function(){var xa=Ha.indexOf(_o);if(xa!==-1&&Ha.splice(xa,1),qr(),!pi&&!Ao.contains(document.activeElement)){var Ca;(Ca=Ai.current)===null||Ca===void 0||Ca.focus()}});Ha.push(_o)}for(var Ra=arguments.length,Aa=new Array(Ra>1?Ra-1:0),Wa=1;Wa<Ra;Wa++)Aa[Wa-1]=arguments[Wa];br==null||br.apply(void 0,[Si].concat(Aa))},Na=ue.useState({}),vs=(0,Se.Z)(Na,2),kl=vs[1];function Jl(){kl({})}var ql;qi&&(ql=function(Si){si(Si)}),Xe(function(){var Ki;return[Ii.current,(Ki=$i.current)===null||Ki===void 0?void 0:Ki.getPopupElement()]},el,si,!!qi);var zs=ue.useMemo(function(){return(0,nt.Z)((0,nt.Z)({},ut),{},{notFoundContent:Tn,open:Mo,triggerOpen:el,id:vt,showSearch:Gn,multiple:Ln,toggleOpen:si})},[ut,Tn,el,Mo,vt,Gn,Ln,si]),Ll=!!oi||sr,ja;Ll&&(ja=ue.createElement(ke,{className:Te()("".concat(Ze,"-arrow"),(0,fe.Z)({},"".concat(Ze,"-arrow-loading"),sr)),customizeIcon:oi,customizeIconProps:{loading:sr,searchValue:Hr,open:Mo,focused:To,showSearch:Gn}}));var fl=function(){var Si;On==null||On(),(Si=Ai.current)===null||Si===void 0||Si.focus(),xt([],{type:"clear",values:Ct}),so("",!1,!1)},xl=ot(Ze,fl,Ct,Vr,Zr,er,Hr,An),Bl=xl.allowClear,hl=xl.clearIcon,Rl=ue.createElement(Jr,{ref:ki}),es=Te()(Ze,bt,(0,fe.Z)((0,fe.Z)((0,fe.Z)((0,fe.Z)((0,fe.Z)((0,fe.Z)((0,fe.Z)((0,fe.Z)((0,fe.Z)((0,fe.Z)({},"".concat(Ze,"-focused"),To),"".concat(Ze,"-multiple"),Ln),"".concat(Ze,"-single"),!Ln),"".concat(Ze,"-allow-clear"),Vr),"".concat(Ze,"-show-arrow"),Ll),"".concat(Ze,"-disabled"),er),"".concat(Ze,"-loading"),sr),"".concat(Ze,"-open"),Mo),"".concat(Ze,"-customize-input"),Ji),"".concat(Ze,"-show-search"),Gn)),nl=ue.createElement(re,{ref:$i,disabled:er,prefixCls:Ze,visible:el,popupElement:Rl,animation:Or,transitionName:ti,dropdownStyle:ci,dropdownClassName:Fi,direction:Bt,dropdownMatchSelectWidth:vi,dropdownRender:xi,dropdownAlign:hi,placement:bi,builtinPlacements:Rr,getPopupContainer:Lr,empty:wt,getTriggerDOMNode:function(Si){return Pi.current||Si},onPopupVisibleChange:ql,onPopupMouseEnter:Jl},qi?ue.cloneElement(qi,{ref:ai}):ue.createElement(gt,(0,b.Z)({},ut,{domRef:Pi,prefixCls:Ze,inputElement:Ji,ref:Ai,id:vt,prefix:Ur,showSearch:Gn,autoClearSearchValue:yr,mode:An,activeDescendantId:wr,tagRender:It,values:Ct,open:Mo,onToggleOpen:si,activeValue:Er,searchValue:Hr,onSearch:so,onSearchSubmit:Ba,onRemove:Ya,tokenWithEnter:Ci,onInputBlur:Ma}))),aa;return qi?aa=nl:aa=ue.createElement("div",(0,b.Z)({className:es},nr,{ref:Ii,onMouseDown:tl,onKeyDown:pa,onKeyUp:za,onFocus:ms,onBlur:Ql}),ue.createElement(De,{visible:To&&!Mo,values:Ct}),nl,ja,Bl&&hl),ue.createElement(yt.Provider,{value:zs},aa)}),St=Ut,an=function(){return null};an.isSelectOptGroup=!0;var _t=an,$e=function(){return null};$e.isSelectOption=!0;var mt=$e,jt=ee(80547),Jt=ee(2738),Be=ee(48911);function ft(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Dt=["disabled","title","children","style","className"];function Vt(ut){return typeof ut=="string"||typeof ut=="number"}var un=function(Pt,Re){var vt=Nt(),Ze=vt.prefixCls,bt=vt.id,Pe=vt.open,It=vt.multiple,Bt=vt.mode,Kt=vt.searchValue,Ct=vt.toggleOpen,xt=vt.notFoundContent,wt=vt.onPopupScroll,Ft=ue.useContext(we),Tn=Ft.maxCount,On=Ft.flattenOptions,An=Ft.onActiveValue,er=Ft.defaultActiveFirstOption,sr=Ft.onSelect,fr=Ft.menuItemSelectedIcon,Qn=Ft.rawValues,Xn=Ft.fieldNames,Jn=Ft.virtual,ur=Ft.direction,Er=Ft.listHeight,Cr=Ft.listItemHeight,wr=Ft.optionRender,Yn="".concat(Ze,"-item"),yr=(0,jt.Z)(function(){return On},[Pe,On],function(cr,Nn){return Nn[0]&&cr[1]!==Nn[1]}),mr=ue.useRef(null),_r=ue.useMemo(function(){return It&&ht(Tn)&&(Qn==null?void 0:Qn.size)>=Tn},[It,Tn,Qn==null?void 0:Qn.size]),Yr=function(Nn){Nn.preventDefault()},Vr=function(Nn){var Kn;(Kn=mr.current)===null||Kn===void 0||Kn.scrollTo(typeof Nn=="number"?{index:Nn}:Nn)},Ur=ue.useCallback(function(cr){return Bt==="combobox"?!1:Qn.has(cr)},[Bt,(0,ze.Z)(Qn).toString(),Qn.size]),oi=function(Nn){for(var Kn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Vn=yr.length,Bn=0;Bn<Vn;Bn+=1){var lr=(Nn+Bn*Kn+Vn)%Vn,br=yr[lr]||{},jn=br.group,Ln=br.data;if(!jn&&!(Ln!=null&&Ln.disabled)&&(Ur(Ln.value)||!_r))return lr}return-1},Zr=ue.useState(function(){return oi(0)}),Jr=(0,Se.Z)(Zr,2),Or=Jr[0],ti=Jr[1],ci=function(Nn){var Kn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;ti(Nn);var Vn={source:Kn?"keyboard":"mouse"},Bn=yr[Nn];if(!Bn){An(null,-1,Vn);return}An(Bn.value,Nn,Vn)};(0,ue.useEffect)(function(){ci(er!==!1?oi(0):-1)},[yr.length,Kt]);var Fi=ue.useCallback(function(cr){return Bt==="combobox"?String(cr).toLowerCase()===Kt.toLowerCase():Qn.has(cr)},[Bt,Kt,(0,ze.Z)(Qn).toString(),Qn.size]);(0,ue.useEffect)(function(){var cr=setTimeout(function(){if(!It&&Pe&&Qn.size===1){var Kn=Array.from(Qn)[0],Vn=yr.findIndex(function(Bn){var lr=Bn.data;return Kt?String(lr.value).startsWith(Kt):lr.value===Kn});Vn!==-1&&(ci(Vn),Vr(Vn))}});if(Pe){var Nn;(Nn=mr.current)===null||Nn===void 0||Nn.scrollTo(void 0)}return function(){return clearTimeout(cr)}},[Pe,Kt]);var vi=function(Nn){Nn!==void 0&&sr(Nn,{selected:!Qn.has(Nn)}),It||Ct(!1)};if(ue.useImperativeHandle(Re,function(){return{onKeyDown:function(Nn){var Kn=Nn.which,Vn=Nn.ctrlKey;switch(Kn){case Je.Z.N:case Je.Z.P:case Je.Z.UP:case Je.Z.DOWN:{var Bn=0;if(Kn===Je.Z.UP?Bn=-1:Kn===Je.Z.DOWN?Bn=1:ft()&&Vn&&(Kn===Je.Z.N?Bn=1:Kn===Je.Z.P&&(Bn=-1)),Bn!==0){var lr=oi(Or+Bn,Bn);Vr(lr),ci(lr,!0)}break}case Je.Z.TAB:case Je.Z.ENTER:{var br,jn=yr[Or];jn&&!(jn!=null&&(br=jn.data)!==null&&br!==void 0&&br.disabled)&&!_r?vi(jn.value):vi(void 0),Pe&&Nn.preventDefault();break}case Je.Z.ESC:Ct(!1),Pe&&Nn.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Nn){Vr(Nn)}}}),yr.length===0)return ue.createElement("div",{role:"listbox",id:"".concat(bt,"_list"),className:"".concat(Yn,"-empty"),onMouseDown:Yr},xt);var xi=Object.keys(Xn).map(function(cr){return Xn[cr]}),hi=function(Nn){return Nn.label};function bi(cr,Nn){var Kn=cr.group;return{role:Kn?"presentation":"option",id:"".concat(bt,"_list_").concat(Nn)}}var Rr=function(Nn){var Kn=yr[Nn];if(!Kn)return null;var Vn=Kn.data||{},Bn=Vn.value,lr=Kn.group,br=(0,ct.Z)(Vn,!0),jn=hi(Kn);return Kn?ue.createElement("div",(0,b.Z)({"aria-label":typeof jn=="string"&&!lr?jn:null},br,{key:Nn},bi(Kn,Nn),{"aria-selected":Fi(Bn)}),Bn):null},Lr={role:"listbox",id:"".concat(bt,"_list")};return ue.createElement(ue.Fragment,null,Jn&&ue.createElement("div",(0,b.Z)({},Lr,{style:{height:0,width:0,overflow:"hidden"}}),Rr(Or-1),Rr(Or),Rr(Or+1)),ue.createElement(Be.Z,{itemKey:"key",ref:mr,data:yr,height:Er,itemHeight:Cr,fullHeight:!1,onMouseDown:Yr,onScroll:wt,virtual:Jn,direction:ur,innerProps:Jn?null:Lr},function(cr,Nn){var Kn=cr.group,Vn=cr.groupOption,Bn=cr.data,lr=cr.label,br=cr.value,jn=Bn.key;if(Kn){var Ln,Gn=(Ln=Bn.title)!==null&&Ln!==void 0?Ln:Vt(lr)?lr.toString():void 0;return ue.createElement("div",{className:Te()(Yn,"".concat(Yn,"-group"),Bn.className),title:Gn},lr!==void 0?lr:jn)}var nr=Bn.disabled,Qr=Bn.title,Ei=Bn.children,pi=Bn.style,Ni=Bn.className,Ii=(0,xe.Z)(Bn,Dt),Pi=(0,Jt.Z)(Ii,xi),$i=Ur(br),Ai=nr||!$i&&_r,ki="".concat(Yn,"-option"),lo=Te()(Yn,ki,Ni,(0,fe.Z)((0,fe.Z)((0,fe.Z)((0,fe.Z)({},"".concat(ki,"-grouped"),Vn),"".concat(ki,"-active"),Or===Nn&&!Ai),"".concat(ki,"-disabled"),Ai),"".concat(ki,"-selected"),$i)),xo=hi(cr),Do=!fr||typeof fr=="function"||$i,To=typeof xo=="number"?xo:xo||br,Co=Vt(To)?To.toString():void 0;return Qr!==void 0&&(Co=Qr),ue.createElement("div",(0,b.Z)({},(0,ct.Z)(Pi),Jn?{}:bi(cr,Nn),{"aria-selected":Fi(br),className:lo,title:Co,onMouseMove:function(){Or===Nn||Ai||ci(Nn)},onClick:function(){Ai||vi(br)},style:pi}),ue.createElement("div",{className:"".concat(ki,"-content")},typeof wr=="function"?wr(cr,{index:Nn}):To),ue.isValidElement(fr)||$i,Do&&ue.createElement(ke,{className:"".concat(Yn,"-option-state"),customizeIcon:fr,customizeIconProps:{value:br,disabled:Ai,isSelected:$i}},$i?"\u2713":null))}))},En=ue.forwardRef(un),Mn=En,Fn=function(ut,Pt){var Re=ue.useRef({values:new Map,options:new Map}),vt=ue.useMemo(function(){var bt=Re.current,Pe=bt.values,It=bt.options,Bt=ut.map(function(xt){if(xt.label===void 0){var wt;return(0,nt.Z)((0,nt.Z)({},xt),{},{label:(wt=Pe.get(xt.value))===null||wt===void 0?void 0:wt.label})}return xt}),Kt=new Map,Ct=new Map;return Bt.forEach(function(xt){Kt.set(xt.value,xt),Ct.set(xt.value,Pt.get(xt.value)||It.get(xt.value))}),Re.current.values=Kt,Re.current.options=Ct,Bt},[ut,Pt]),Ze=ue.useCallback(function(bt){return Pt.get(bt)||Re.current.options.get(bt)},[Pt]);return[vt,Ze]};function gn(ut,Pt){return He(ut).join("").toUpperCase().includes(Pt)}var kn=function(ut,Pt,Re,vt,Ze){return ue.useMemo(function(){if(!Re||vt===!1)return ut;var bt=Pt.options,Pe=Pt.label,It=Pt.value,Bt=[],Kt=typeof vt=="function",Ct=Re.toUpperCase(),xt=Kt?vt:function(Ft,Tn){return Ze?gn(Tn[Ze],Ct):Tn[bt]?gn(Tn[Pe!=="children"?Pe:"label"],Ct):gn(Tn[It],Ct)},wt=Kt?function(Ft){return Ve(Ft)}:function(Ft){return Ft};return ut.forEach(function(Ft){if(Ft[bt]){var Tn=xt(Re,wt(Ft));if(Tn)Bt.push(Ft);else{var On=Ft[bt].filter(function(An){return xt(Re,wt(An))});On.length&&Bt.push((0,nt.Z)((0,nt.Z)({},Ft),{},(0,fe.Z)({},bt,On)))}return}xt(Re,wt(Ft))&&Bt.push(Ft)}),Bt},[ut,vt,Ze,Re,Pt])},dn=ee(6551),zt=ee(11592),rn=["children","value"],on=["children"];function Xt(ut){var Pt=ut,Re=Pt.key,vt=Pt.props,Ze=vt.children,bt=vt.value,Pe=(0,xe.Z)(vt,rn);return(0,nt.Z)({key:Re,value:bt!==void 0?bt:Re,children:Ze},Pe)}function vn(ut){var Pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,zt.Z)(ut).map(function(Re,vt){if(!ue.isValidElement(Re)||!Re.type)return null;var Ze=Re,bt=Ze.type.isSelectOptGroup,Pe=Ze.key,It=Ze.props,Bt=It.children,Kt=(0,xe.Z)(It,on);return Pt||!bt?Xt(Re):(0,nt.Z)((0,nt.Z)({key:"__RC_SELECT_GRP__".concat(Pe===null?vt:Pe,"__"),label:Pe},Kt),{},{options:vn(Bt)})}).filter(function(Re){return Re})}var pn=function(Pt,Re,vt,Ze,bt){return ue.useMemo(function(){var Pe=Pt,It=!Pt;It&&(Pe=vn(Re));var Bt=new Map,Kt=new Map,Ct=function(Ft,Tn,On){On&&typeof On=="string"&&Ft.set(Tn[On],Tn)},xt=function wt(Ft){for(var Tn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,On=0;On<Ft.length;On+=1){var An=Ft[On];!An[vt.options]||Tn?(Bt.set(An[vt.value],An),Ct(Kt,An,vt.label),Ct(Kt,An,Ze),Ct(Kt,An,bt)):wt(An[vt.options],!0)}};return xt(Pe),{options:Pe,valueOptions:Bt,labelOptions:Kt}},[Pt,Re,vt,Ze,bt])},wn=pn;function $n(ut){var Pt=ue.useRef();Pt.current=ut;var Re=ue.useCallback(function(){return Pt.current.apply(Pt,arguments)},[]);return Re}function xn(ut){var Pt=ut.mode,Re=ut.options,vt=ut.children,Ze=ut.backfill,bt=ut.allowClear,Pe=ut.placeholder,It=ut.getInputElement,Bt=ut.showSearch,Kt=ut.onSearch,Ct=ut.defaultOpen,xt=ut.autoFocus,wt=ut.labelInValue,Ft=ut.value,Tn=ut.inputValue,On=ut.optionLabelProp,An=isMultiple(Pt),er=Bt!==void 0?Bt:An||Pt==="combobox",sr=Re||convertChildrenToData(vt);if(warning(Pt!=="tags"||sr.every(function(Jn){return!Jn.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Pt==="tags"||Pt==="combobox"){var fr=sr.some(function(Jn){return Jn.options?Jn.options.some(function(ur){return typeof("value"in ur?ur.value:ur.key)=="number"}):typeof("value"in Jn?Jn.value:Jn.key)=="number"});warning(!fr,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Pt!=="combobox"||!On,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Pt==="combobox"||!Ze,"`backfill` only works with `combobox` mode."),warning(Pt==="combobox"||!It,"`getInputElement` only work with `combobox` mode."),noteOnce(Pt!=="combobox"||!It||!bt||!Pe,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Kt&&!er&&Pt!=="combobox"&&Pt!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Ct||xt,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Ft!=null){var Qn=toArray(Ft);warning(!wt||Qn.every(function(Jn){return _typeof(Jn)==="object"&&("key"in Jn||"value"in Jn)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!An||Array.isArray(Ft),"`value` should be array when `mode` is `multiple` or `tags`")}if(vt){var Xn=null;toNodeArray(vt).some(function(Jn){if(!React.isValidElement(Jn)||!Jn.type)return!1;var ur=Jn,Er=ur.type;if(Er.isSelectOption)return!1;if(Er.isSelectOptGroup){var Cr=toNodeArray(Jn.props.children).every(function(wr){return!React.isValidElement(wr)||!Jn.type||wr.type.isSelectOption?!0:(Xn=wr.type,!1)});return!Cr}return Xn=Er,!0}),Xn&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Xn.displayName||Xn.name||Xn,"`.")),warning(Tn===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function hn(ut,Pt){if(ut){var Re=function vt(Ze){for(var bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Pe=0;Pe<Ze.length;Pe++){var It=Ze[Pe];if(It[Pt==null?void 0:Pt.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!bt&&Array.isArray(It[Pt==null?void 0:Pt.options])&&vt(It[Pt==null?void 0:Pt.options],!0))break}};Re(ut)}}var Zn=null,Wn=["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"],ir=["inputValue"];function tr(ut){return!ut||(0,Ee.Z)(ut)!=="object"}var sn=ue.forwardRef(function(ut,Pt){var Re=ut.id,vt=ut.mode,Ze=ut.prefixCls,bt=Ze===void 0?"rc-select":Ze,Pe=ut.backfill,It=ut.fieldNames,Bt=ut.inputValue,Kt=ut.searchValue,Ct=ut.onSearch,xt=ut.autoClearSearchValue,wt=xt===void 0?!0:xt,Ft=ut.onSelect,Tn=ut.onDeselect,On=ut.dropdownMatchSelectWidth,An=On===void 0?!0:On,er=ut.filterOption,sr=ut.filterSort,fr=ut.optionFilterProp,Qn=ut.optionLabelProp,Xn=ut.options,Jn=ut.optionRender,ur=ut.children,Er=ut.defaultActiveFirstOption,Cr=ut.menuItemSelectedIcon,wr=ut.virtual,Yn=ut.direction,yr=ut.listHeight,mr=yr===void 0?200:yr,_r=ut.listItemHeight,Yr=_r===void 0?20:_r,Vr=ut.labelRender,Ur=ut.value,oi=ut.defaultValue,Zr=ut.labelInValue,Jr=ut.onChange,Or=ut.maxCount,ti=(0,xe.Z)(ut,Wn),ci=(0,dn.ZP)(Re),Fi=nn(vt),vi=!!(!Xn&&ur),xi=ue.useMemo(function(){return er===void 0&&vt==="combobox"?!1:er},[er,vt]),hi=ue.useMemo(function(){return Le(It,vi)},[JSON.stringify(It),vi]),bi=(0,je.Z)("",{value:Kt!==void 0?Kt:Bt,postState:function(Ci){return Ci||""}}),Rr=(0,Se.Z)(bi,2),Lr=Rr[0],cr=Rr[1],Nn=wn(Xn,ur,hi,fr,Qn),Kn=Nn.valueOptions,Vn=Nn.labelOptions,Bn=Nn.options,lr=ue.useCallback(function(si){var Ci=He(si);return Ci.map(function(ni){var ui,_i,so,Ba,oa;if(tr(ni))ui=ni;else{var Yo;so=ni.key,_i=ni.label,ui=(Yo=ni.value)!==null&&Yo!==void 0?Yo:so}var No=Kn.get(ui);if(No){var Ta;if(_i===void 0&&(_i=No==null?void 0:No[Qn||hi.label]),so===void 0&&(so=(Ta=No==null?void 0:No.key)!==null&&Ta!==void 0?Ta:ui),Ba=No==null?void 0:No.disabled,oa=No==null?void 0:No.title,0)var Za}return{label:_i,value:ui,key:so,disabled:Ba,title:oa}})},[hi,Qn,Kn]),br=(0,je.Z)(oi,{value:Ur}),jn=(0,Se.Z)(br,2),Ln=jn[0],Gn=jn[1],nr=ue.useMemo(function(){var si,Ci=Fi&&Ln===null?[]:Ln,ni=lr(Ci);return vt==="combobox"&&pe((si=ni[0])===null||si===void 0?void 0:si.value)?[]:ni},[Ln,lr,vt,Fi]),Qr=Fn(nr,Kn),Ei=(0,Se.Z)(Qr,2),pi=Ei[0],Ni=Ei[1],Ii=ue.useMemo(function(){if(!vt&&pi.length===1){var si=pi[0];if(si.value===null&&(si.label===null||si.label===void 0))return[]}return pi.map(function(Ci){var ni;return(0,nt.Z)((0,nt.Z)({},Ci),{},{label:(ni=typeof Vr=="function"?Vr(Ci):Ci.label)!==null&&ni!==void 0?ni:Ci.value})})},[vt,pi,Vr]),Pi=ue.useMemo(function(){return new Set(pi.map(function(si){return si.value}))},[pi]);ue.useEffect(function(){if(vt==="combobox"){var si,Ci=(si=pi[0])===null||si===void 0?void 0:si.value;cr(Oe(Ci)?String(Ci):"")}},[pi]);var $i=$n(function(si,Ci){var ni=Ci!=null?Ci:si;return(0,fe.Z)((0,fe.Z)({},hi.value,si),hi.label,ni)}),Ai=ue.useMemo(function(){if(vt!=="tags")return Bn;var si=(0,ze.Z)(Bn),Ci=function(ui){return Kn.has(ui)};return(0,ze.Z)(pi).sort(function(ni,ui){return ni.value<ui.value?-1:1}).forEach(function(ni){var ui=ni.value;Ci(ui)||si.push($i(ui,ni.label))}),si},[$i,Bn,Kn,pi,vt]),ki=kn(Ai,hi,Lr,xi,fr),lo=ue.useMemo(function(){return vt!=="tags"||!Lr||ki.some(function(si){return si[fr||"value"]===Lr})||ki.some(function(si){return si[hi.value]===Lr})?ki:[$i(Lr)].concat((0,ze.Z)(ki))},[$i,fr,vt,ki,Lr,hi]),xo=function si(Ci){var ni=(0,ze.Z)(Ci).sort(function(ui,_i){return sr(ui,_i,{searchValue:Lr})});return ni.map(function(ui){return Array.isArray(ui.options)?(0,nt.Z)((0,nt.Z)({},ui),{},{options:ui.options.length>0?si(ui.options):ui.options}):ui})},Do=ue.useMemo(function(){return sr?xo(lo):lo},[lo,sr,Lr]),To=ue.useMemo(function(){return Ne(Do,{fieldNames:hi,childrenAsData:vi})},[Do,hi,vi]),Co=function(Ci){var ni=lr(Ci);if(Gn(ni),Jr&&(ni.length!==pi.length||ni.some(function(so,Ba){var oa;return((oa=pi[Ba])===null||oa===void 0?void 0:oa.value)!==(so==null?void 0:so.value)}))){var ui=Zr?ni:ni.map(function(so){return so.value}),_i=ni.map(function(so){return Ve(Ni(so.value))});Jr(Fi?ui:ui[0],Fi?_i:_i[0])}},qr=ue.useState(null),Hr=(0,Se.Z)(qr,2),Ji=Hr[0],qi=Hr[1],ai=ue.useState(0),Wi=(0,Se.Z)(ai,2),Yi=Wi[0],gi=Wi[1],Zi=Er!==void 0?Er:vt!=="combobox",Mi=ue.useCallback(function(si,Ci){var ni=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ui=ni.source,_i=ui===void 0?"keyboard":ui;gi(Ci),Pe&&vt==="combobox"&&si!==null&&_i==="keyboard"&&qi(String(si))},[Pe,vt]),Zo=function(Ci,ni,ui){var _i=function(){var Ya,Ma=Ni(Ci);return[Zr?{label:Ma==null?void 0:Ma[hi.label],value:Ci,key:(Ya=Ma==null?void 0:Ma.key)!==null&&Ya!==void 0?Ya:Ci}:Ci,Ve(Ma)]};if(ni&&Ft){var so=_i(),Ba=(0,Se.Z)(so,2),oa=Ba[0],Yo=Ba[1];Ft(oa,Yo)}else if(!ni&&Tn&&ui!=="clear"){var No=_i(),Ta=(0,Se.Z)(No,2),Za=Ta[0],pa=Ta[1];Tn(Za,pa)}},ha=$n(function(si,Ci){var ni,ui=Fi?Ci.selected:!0;ui?ni=Fi?[].concat((0,ze.Z)(pi),[si]):[si]:ni=pi.filter(function(_i){return _i.value!==si}),Co(ni),Zo(si,ui),vt==="combobox"?qi(""):(!nn||wt)&&(cr(""),qi(""))}),Wo=function(Ci,ni){Co(Ci);var ui=ni.type,_i=ni.values;(ui==="remove"||ui==="clear")&&_i.forEach(function(so){Zo(so.value,!1,ui)})},Mo=function(Ci,ni){if(cr(Ci),qi(null),ni.source==="submit"){var ui=(Ci||"").trim();if(ui){var _i=Array.from(new Set([].concat((0,ze.Z)(Pi),[ui])));Co(_i),Zo(ui,!0),cr("")}return}ni.source!=="blur"&&(vt==="combobox"&&Co(Ci),Ct==null||Ct(Ci))},ul=function(Ci){var ni=Ci;vt!=="tags"&&(ni=Ci.map(function(_i){var so=Vn.get(_i);return so==null?void 0:so.value}).filter(function(_i){return _i!==void 0}));var ui=Array.from(new Set([].concat((0,ze.Z)(Pi),(0,ze.Z)(ni))));Co(ui),ui.forEach(function(_i){Zo(_i,!0)})},el=ue.useMemo(function(){var si=wr!==!1&&An!==!1;return(0,nt.Z)((0,nt.Z)({},Nn),{},{flattenOptions:To,onActiveValue:Mi,defaultActiveFirstOption:Zi,onSelect:ha,menuItemSelectedIcon:Cr,rawValues:Pi,fieldNames:hi,virtual:si,direction:Yn,listHeight:mr,listItemHeight:Yr,childrenAsData:vi,maxCount:Or,optionRender:Jn})},[Or,Nn,To,Mi,Zi,ha,Cr,Pi,hi,wr,An,Yn,mr,Yr,vi,Jn]);return ue.createElement(we.Provider,{value:el},ue.createElement(St,(0,b.Z)({},ti,{id:ci,prefixCls:bt,ref:Pt,omitDomProps:ir,mode:vt,displayValues:Ii,onDisplayValuesChange:Wo,direction:Yn,searchValue:Lr,onSearch:Mo,autoClearSearchValue:wt,onSearchSplit:ul,dropdownMatchSelectWidth:An,OptionList:Mn,emptyOptions:!To.length,activeValue:Ji,activeDescendantId:"".concat(ci,"_list_").concat(Yi)})))}),yn=sn;yn.Option=mt,yn.OptGroup=_t;var zn=yn,Hn=zn},22711:function(In,Qt,ee){"use strict";ee.r(Qt),ee.d(Qt,{ResizableTextArea:function(){return Ce},default:function(){return Et}});var b=ee(60499),ze=ee(18642),fe=ee(85899),nt=ee(77654),Se=ee(72190),xe=ee(42244),Ee=ee(92310),je=ee.n(Ee),Ie=ee(36901),ue=ee(66003),et=ee(30292),Te=ee(18929),At=ee(59301),lt=ee(43749),it=ee(29301),We=ee(34280),ke=ee(16089),ot=`
|
|
|
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;
|
|
|
`,yt=["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"],Nt={},Fe;function Me(He){var st=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Yt=He.getAttribute("id")||He.getAttribute("data-reactid")||He.getAttribute("name");if(st&&Nt[Yt])return Nt[Yt];var Oe=window.getComputedStyle(He),pe=Oe.getPropertyValue("box-sizing")||Oe.getPropertyValue("-moz-box-sizing")||Oe.getPropertyValue("-webkit-box-sizing"),Lt=parseFloat(Oe.getPropertyValue("padding-bottom"))+parseFloat(Oe.getPropertyValue("padding-top")),en=parseFloat(Oe.getPropertyValue("border-bottom-width"))+parseFloat(Oe.getPropertyValue("border-top-width")),Ot=yt.map(function(Ke){return"".concat(Ke,":").concat(Oe.getPropertyValue(Ke))}).join(";"),ge={sizingStyle:Ot,paddingSize:Lt,borderSize:en,boxSizing:pe};return st&&Yt&&(Nt[Yt]=ge),ge}function Xe(He){var st=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Yt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Oe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Fe||(Fe=document.createElement("textarea"),Fe.setAttribute("tab-index","-1"),Fe.setAttribute("aria-hidden","true"),Fe.setAttribute("name","hiddenTextarea"),document.body.appendChild(Fe)),He.getAttribute("wrap")?Fe.setAttribute("wrap",He.getAttribute("wrap")):Fe.removeAttribute("wrap");var pe=Me(He,st),Lt=pe.paddingSize,en=pe.borderSize,Ot=pe.boxSizing,ge=pe.sizingStyle;Fe.setAttribute("style","".concat(ge,";").concat(ot)),Fe.value=He.value||He.placeholder||"";var Ke=void 0,tt=void 0,Wt,qe=Fe.scrollHeight;if(Ot==="border-box"?qe+=en:Ot==="content-box"&&(qe-=Lt),Yt!==null||Oe!==null){Fe.value=" ";var Rt=Fe.scrollHeight-Lt;Yt!==null&&(Ke=Rt*Yt,Ot==="border-box"&&(Ke=Ke+Lt+en),qe=Math.max(Ke,qe)),Oe!==null&&(tt=Rt*Oe,Ot==="border-box"&&(tt=tt+Lt+en),Wt=qe>tt?"":"hidden",qe=Math.min(tt,qe))}var Qe={height:qe,overflowY:Wt,resize:"none"};return Ke&&(Qe.minHeight=Ke),tt&&(Qe.maxHeight=tt),Qe}var Je=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],$t=0,ct=1,Ye=2,rt=At.forwardRef(function(He,st){var Yt=He,Oe=Yt.prefixCls,pe=Yt.defaultValue,Lt=Yt.value,en=Yt.autoSize,Ot=Yt.onResize,ge=Yt.className,Ke=Yt.style,tt=Yt.disabled,Wt=Yt.onChange,qe=Yt.onInternalAutoSize,Rt=(0,xe.Z)(Yt,Je),Qe=(0,Te.Z)(pe,{value:Lt,postState:function(mt){return mt!=null?mt:""}}),tn=(0,Se.Z)(Qe,2),gt=tn[0],ae=tn[1],ne=function(mt){ae(mt.target.value),Wt==null||Wt(mt)},te=At.useRef();At.useImperativeHandle(st,function(){return{textArea:te.current}});var oe=At.useMemo(function(){return en&&(0,lt.Z)(en)==="object"?[en.minRows,en.maxRows]:[]},[en]),ce=(0,Se.Z)(oe,2),re=ce[0],le=ce[1],be=!!en,ht=function(){try{if(document.activeElement===te.current){var mt=te.current,jt=mt.selectionStart,Jt=mt.selectionEnd,Be=mt.scrollTop;te.current.setSelectionRange(jt,Jt),te.current.scrollTop=Be}}catch(ft){}},Le=At.useState(Ye),Ne=(0,Se.Z)(Le,2),Ve=Ne[0],Ge=Ne[1],pt=At.useState(),we=(0,Se.Z)(pt,2),De=we[0],Zt=we[1],Tt=function(){Ge($t)};(0,We.Z)(function(){be&&Tt()},[Lt,re,le,be]),(0,We.Z)(function(){if(Ve===$t)Ge(ct);else if(Ve===ct){var $e=Xe(te.current,!1,re,le);Ge(Ye),Zt($e)}else ht()},[Ve]);var nn=At.useRef(),Ut=function(){ke.Z.cancel(nn.current)},St=function(mt){Ve===Ye&&(Ot==null||Ot(mt),en&&(Ut(),nn.current=(0,ke.Z)(function(){Tt()})))};At.useEffect(function(){return Ut},[]);var an=be?De:null,_t=(0,fe.Z)((0,fe.Z)({},Ke),an);return(Ve===$t||Ve===ct)&&(_t.overflowY="hidden",_t.overflowX="hidden"),At.createElement(it.Z,{onResize:St,disabled:!(en||Ot)},At.createElement("textarea",(0,b.Z)({},Rt,{ref:te,style:_t,className:je()(Oe,ge,(0,ze.Z)({},"".concat(Oe,"-disabled"),tt)),disabled:tt,value:gt,onChange:ne})))}),Ce=rt,at=["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"],_e=At.forwardRef(function(He,st){var Yt,Oe=He.defaultValue,pe=He.value,Lt=He.onFocus,en=He.onBlur,Ot=He.onChange,ge=He.allowClear,Ke=He.maxLength,tt=He.onCompositionStart,Wt=He.onCompositionEnd,qe=He.suffix,Rt=He.prefixCls,Qe=Rt===void 0?"rc-textarea":Rt,tn=He.showCount,gt=He.count,ae=He.className,ne=He.style,te=He.disabled,oe=He.hidden,ce=He.classNames,re=He.styles,le=He.onResize,be=He.onClear,ht=He.onPressEnter,Le=He.readOnly,Ne=He.autoSize,Ve=He.onKeyDown,Ge=(0,xe.Z)(He,at),pt=(0,Te.Z)(Oe,{value:pe,defaultValue:Oe}),we=(0,Se.Z)(pt,2),De=we[0],Zt=we[1],Tt=De==null?"":String(De),nn=At.useState(!1),Ut=(0,Se.Z)(nn,2),St=Ut[0],an=Ut[1],_t=At.useRef(!1),$e=At.useState(null),mt=(0,Se.Z)($e,2),jt=mt[0],Jt=mt[1],Be=(0,At.useRef)(null),ft=(0,At.useRef)(null),Dt=function(){var yn;return(yn=ft.current)===null||yn===void 0?void 0:yn.textArea},Vt=function(){Dt().focus()};(0,At.useImperativeHandle)(st,function(){var sn;return{resizableTextArea:ft.current,focus:Vt,blur:function(){Dt().blur()},nativeElement:((sn=Be.current)===null||sn===void 0?void 0:sn.nativeElement)||Dt()}}),(0,At.useEffect)(function(){an(function(sn){return!te&&sn})},[te]);var un=At.useState(null),En=(0,Se.Z)(un,2),Mn=En[0],Fn=En[1];At.useEffect(function(){if(Mn){var sn;(sn=Dt()).setSelectionRange.apply(sn,(0,nt.Z)(Mn))}},[Mn]);var gn=(0,ue.Z)(gt,tn),kn=(Yt=gn.max)!==null&&Yt!==void 0?Yt:Ke,dn=Number(kn)>0,zt=gn.strategy(Tt),rn=!!kn&&zt>kn,on=function(yn,zn){var Hn=zn;!_t.current&&gn.exceedFormatter&&gn.max&&gn.strategy(zn)>gn.max&&(Hn=gn.exceedFormatter(zn,{max:gn.max}),zn!==Hn&&Fn([Dt().selectionStart||0,Dt().selectionEnd||0])),Zt(Hn),(0,et.rJ)(yn.currentTarget,yn,Ot,Hn)},Xt=function(yn){_t.current=!0,tt==null||tt(yn)},vn=function(yn){_t.current=!1,on(yn,yn.currentTarget.value),Wt==null||Wt(yn)},pn=function(yn){on(yn,yn.target.value)},wn=function(yn){yn.key==="Enter"&&ht&&ht(yn),Ve==null||Ve(yn)},$n=function(yn){an(!0),Lt==null||Lt(yn)},xn=function(yn){an(!1),en==null||en(yn)},hn=function(yn){Zt(""),Vt(),(0,et.rJ)(Dt(),yn,Ot)},Zn=qe,Wn;gn.show&&(gn.showFormatter?Wn=gn.showFormatter({value:Tt,count:zt,maxLength:kn}):Wn="".concat(zt).concat(dn?" / ".concat(kn):""),Zn=At.createElement(At.Fragment,null,Zn,At.createElement("span",{className:je()("".concat(Qe,"-data-count"),ce==null?void 0:ce.count),style:re==null?void 0:re.count},Wn)));var ir=function(yn){var zn;le==null||le(yn),(zn=Dt())!==null&&zn!==void 0&&zn.style.height&&Jt(!0)},tr=!Ne&&!tn&&!ge;return At.createElement(Ie.BaseInput,{ref:Be,value:Tt,allowClear:ge,handleReset:hn,suffix:Zn,prefixCls:Qe,classNames:(0,fe.Z)((0,fe.Z)({},ce),{},{affixWrapper:je()(ce==null?void 0:ce.affixWrapper,(0,ze.Z)((0,ze.Z)({},"".concat(Qe,"-show-count"),tn),"".concat(Qe,"-textarea-allow-clear"),ge))}),disabled:te,focused:St,className:je()(ae,rn&&"".concat(Qe,"-out-of-range")),style:(0,fe.Z)((0,fe.Z)({},ne),jt&&!tr?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Wn=="string"?Wn:void 0}},hidden:oe,readOnly:Le,onClear:be},At.createElement(Ce,(0,b.Z)({},Ge,{autoSize:Ne,maxLength:Ke,onKeyDown:wn,onChange:pn,onFocus:$n,onBlur:xn,onCompositionStart:Xt,onCompositionEnd:vn,className:je()(ce==null?void 0:ce.textarea),style:(0,fe.Z)((0,fe.Z)({},re==null?void 0:re.textarea),{},{resize:ne==null?void 0:ne.resize}),disabled:te,prefixCls:Qe,onResize:ir,ref:ft,readOnly:Le})))}),de=_e,Et=de},639:function(In,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Nt}});var b=ee(60499),ze=ee(18642),fe=ee(85899),nt=ee(72190),Se=ee(42244),xe=ee(59301),Ee=ee(92310),je=ee.n(Ee),Ie=ee(26112),ue=ee(30699),et=function(Me){for(var Xe=Me.prefixCls,Je=Me.level,$t=Me.isStart,ct=Me.isEnd,Ye="".concat(Xe,"-indent-unit"),rt=[],Ce=0;Ce<Je;Ce+=1)rt.push(xe.createElement("span",{key:Ce,className:je()(Ye,(0,ze.Z)((0,ze.Z)({},"".concat(Ye,"-start"),$t[Ce]),"".concat(Ye,"-end"),ct[Ce]))}));return xe.createElement("span",{"aria-hidden":"true",className:"".concat(Xe,"-indent")},rt)},Te=xe.memo(et),At=ee(65065),lt=ee(34061),it=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],We="open",ke="close",ot="---",yt=function(Me){var Xe,Je,$t,ct=Me.eventKey,Ye=Me.className,rt=Me.style,Ce=Me.dragOver,at=Me.dragOverGapTop,_e=Me.dragOverGapBottom,de=Me.isLeaf,Et=Me.isStart,He=Me.isEnd,st=Me.expanded,Yt=Me.selected,Oe=Me.checked,pe=Me.halfChecked,Lt=Me.loading,en=Me.domRef,Ot=Me.active,ge=Me.data,Ke=Me.onMouseMove,tt=Me.selectable,Wt=(0,Se.Z)(Me,it),qe=xe.useContext(ue.k),Rt=xe.useContext(ue.y),Qe=xe.useRef(null),tn=xe.useState(!1),gt=(0,nt.Z)(tn,2),ae=gt[0],ne=gt[1],te=!!(qe.disabled||Me.disabled||(Xe=Rt.nodeDisabled)!==null&&Xe!==void 0&&Xe.call(Rt,ge)),oe=xe.useMemo(function(){return!qe.checkable||Me.checkable===!1?!1:qe.checkable},[qe.checkable,Me.checkable]),ce=function(zt){te||qe.onNodeSelect(zt,(0,lt.F)(Me))},re=function(zt){te||!oe||Me.disableCheckbox||qe.onNodeCheck(zt,(0,lt.F)(Me),!Oe)},le=xe.useMemo(function(){return typeof tt=="boolean"?tt:qe.selectable},[tt,qe.selectable]),be=function(zt){qe.onNodeClick(zt,(0,lt.F)(Me)),le?ce(zt):re(zt)},ht=function(zt){qe.onNodeDoubleClick(zt,(0,lt.F)(Me))},Le=function(zt){qe.onNodeMouseEnter(zt,(0,lt.F)(Me))},Ne=function(zt){qe.onNodeMouseLeave(zt,(0,lt.F)(Me))},Ve=function(zt){qe.onNodeContextMenu(zt,(0,lt.F)(Me))},Ge=xe.useMemo(function(){return!!(qe.draggable&&(!qe.draggable.nodeDraggable||qe.draggable.nodeDraggable(ge)))},[qe.draggable,ge]),pt=function(zt){zt.stopPropagation(),ne(!0),qe.onNodeDragStart(zt,Me);try{zt.dataTransfer.setData("text/plain","")}catch(rn){}},we=function(zt){zt.preventDefault(),zt.stopPropagation(),qe.onNodeDragEnter(zt,Me)},De=function(zt){zt.preventDefault(),zt.stopPropagation(),qe.onNodeDragOver(zt,Me)},Zt=function(zt){zt.stopPropagation(),qe.onNodeDragLeave(zt,Me)},Tt=function(zt){zt.stopPropagation(),ne(!1),qe.onNodeDragEnd(zt,Me)},nn=function(zt){zt.preventDefault(),zt.stopPropagation(),ne(!1),qe.onNodeDrop(zt,Me)},Ut=function(zt){Lt||qe.onNodeExpand(zt,(0,lt.F)(Me))},St=xe.useMemo(function(){var dn=(0,At.Z)(qe.keyEntities,ct)||{},zt=dn.children;return!!(zt||[]).length},[qe.keyEntities,ct]),an=xe.useMemo(function(){return de===!1?!1:de||!qe.loadData&&!St||qe.loadData&&Me.loaded&&!St},[de,qe.loadData,St,Me.loaded]);xe.useEffect(function(){Lt||typeof qe.loadData=="function"&&st&&!an&&!Me.loaded&&qe.onNodeLoad((0,lt.F)(Me))},[Lt,qe.loadData,qe.onNodeLoad,st,an,Me]);var _t=xe.useMemo(function(){var dn;return(dn=qe.draggable)!==null&&dn!==void 0&&dn.icon?xe.createElement("span",{className:"".concat(qe.prefixCls,"-draggable-icon")},qe.draggable.icon):null},[qe.draggable]),$e=function(zt){var rn=Me.switcherIcon||qe.switcherIcon;return typeof rn=="function"?rn((0,fe.Z)((0,fe.Z)({},Me),{},{isLeaf:zt})):rn},mt=function(){if(an){var zt=$e(!0);return zt!==!1?xe.createElement("span",{className:je()("".concat(qe.prefixCls,"-switcher"),"".concat(qe.prefixCls,"-switcher-noop"))},zt):null}var rn=$e(!1);return rn!==!1?xe.createElement("span",{onClick:Ut,className:je()("".concat(qe.prefixCls,"-switcher"),"".concat(qe.prefixCls,"-switcher_").concat(st?We:ke))},rn):null},jt=xe.useMemo(function(){if(!oe)return null;var dn=typeof oe!="boolean"?oe:null;return xe.createElement("span",{className:je()("".concat(qe.prefixCls,"-checkbox"),(0,ze.Z)((0,ze.Z)((0,ze.Z)({},"".concat(qe.prefixCls,"-checkbox-checked"),Oe),"".concat(qe.prefixCls,"-checkbox-indeterminate"),!Oe&&pe),"".concat(qe.prefixCls,"-checkbox-disabled"),te||Me.disableCheckbox)),onClick:re,role:"checkbox","aria-checked":pe?"mixed":Oe,"aria-disabled":te||Me.disableCheckbox,"aria-label":"Select ".concat(typeof Me.title=="string"?Me.title:"tree node")},dn)},[oe,Oe,pe,te,Me.disableCheckbox,Me.title]),Jt=xe.useMemo(function(){return an?null:st?We:ke},[an,st]),Be=xe.useMemo(function(){return xe.createElement("span",{className:je()("".concat(qe.prefixCls,"-iconEle"),"".concat(qe.prefixCls,"-icon__").concat(Jt||"docu"),(0,ze.Z)({},"".concat(qe.prefixCls,"-icon_loading"),Lt))})},[qe.prefixCls,Jt,Lt]),ft=xe.useMemo(function(){var dn=!!qe.draggable,zt=!Me.disabled&&dn&&qe.dragOverNodeKey===ct;return zt?qe.dropIndicatorRender({dropPosition:qe.dropPosition,dropLevelOffset:qe.dropLevelOffset,indent:qe.indent,prefixCls:qe.prefixCls,direction:qe.direction}):null},[qe.dropPosition,qe.dropLevelOffset,qe.indent,qe.prefixCls,qe.direction,qe.draggable,qe.dragOverNodeKey,qe.dropIndicatorRender]),Dt=xe.useMemo(function(){var dn=Me.title,zt=dn===void 0?ot:dn,rn="".concat(qe.prefixCls,"-node-content-wrapper"),on;if(qe.showIcon){var Xt=Me.icon||qe.icon;on=Xt?xe.createElement("span",{className:je()("".concat(qe.prefixCls,"-iconEle"),"".concat(qe.prefixCls,"-icon__customize"))},typeof Xt=="function"?Xt(Me):Xt):Be}else qe.loadData&&Lt&&(on=Be);var vn;return typeof zt=="function"?vn=zt(ge):qe.titleRender?vn=qe.titleRender(ge):vn=zt,xe.createElement("span",{ref:Qe,title:typeof zt=="string"?zt:"",className:je()(rn,"".concat(rn,"-").concat(Jt||"normal"),(0,ze.Z)({},"".concat(qe.prefixCls,"-node-selected"),!te&&(Yt||ae))),onMouseEnter:Le,onMouseLeave:Ne,onContextMenu:Ve,onClick:be,onDoubleClick:ht},on,xe.createElement("span",{className:"".concat(qe.prefixCls,"-title")},vn),ft)},[qe.prefixCls,qe.showIcon,Me,qe.icon,Be,qe.titleRender,ge,Jt,Le,Ne,Ve,be,ht]),Vt=(0,Ie.Z)(Wt,{aria:!0,data:!0}),un=(0,At.Z)(qe.keyEntities,ct)||{},En=un.level,Mn=He[He.length-1],Fn=!te&&Ge,gn=qe.draggingNodeKey===ct,kn=tt!==void 0?{"aria-selected":!!tt}:void 0;return xe.createElement("div",(0,b.Z)({ref:en,role:"treeitem","aria-expanded":de?void 0:st,className:je()(Ye,"".concat(qe.prefixCls,"-treenode"),($t={},(0,ze.Z)((0,ze.Z)((0,ze.Z)((0,ze.Z)((0,ze.Z)((0,ze.Z)((0,ze.Z)((0,ze.Z)((0,ze.Z)((0,ze.Z)($t,"".concat(qe.prefixCls,"-treenode-disabled"),te),"".concat(qe.prefixCls,"-treenode-switcher-").concat(st?"open":"close"),!de),"".concat(qe.prefixCls,"-treenode-checkbox-checked"),Oe),"".concat(qe.prefixCls,"-treenode-checkbox-indeterminate"),pe),"".concat(qe.prefixCls,"-treenode-selected"),Yt),"".concat(qe.prefixCls,"-treenode-loading"),Lt),"".concat(qe.prefixCls,"-treenode-active"),Ot),"".concat(qe.prefixCls,"-treenode-leaf-last"),Mn),"".concat(qe.prefixCls,"-treenode-draggable"),Ge),"dragging",gn),(0,ze.Z)((0,ze.Z)((0,ze.Z)((0,ze.Z)((0,ze.Z)((0,ze.Z)((0,ze.Z)($t,"drop-target",qe.dropTargetKey===ct),"drop-container",qe.dropContainerKey===ct),"drag-over",!te&&Ce),"drag-over-gap-top",!te&&at),"drag-over-gap-bottom",!te&&_e),"filter-node",(Je=qe.filterTreeNode)===null||Je===void 0?void 0:Je.call(qe,(0,lt.F)(Me))),"".concat(qe.prefixCls,"-treenode-leaf"),an))),style:rt,draggable:Fn,onDragStart:Fn?pt:void 0,onDragEnter:Ge?we:void 0,onDragOver:Ge?De:void 0,onDragLeave:Ge?Zt:void 0,onDrop:Ge?nn:void 0,onDragEnd:Ge?Tt:void 0,onMouseMove:Ke},kn,Vt),xe.createElement(Te,{prefixCls:qe.prefixCls,level:En,isStart:Et,isEnd:He}),_t,mt(),jt,Dt)};yt.isTreeNode=1;var Nt=yt},30699:function(In,Qt,ee){"use strict";ee.d(Qt,{k:function(){return ze},y:function(){return fe}});var b=ee(59301),ze=b.createContext(null),fe=b.createContext({})},87632:function(In,Qt,ee){"use strict";ee.d(Qt,{OF:function(){return ct.Z},y6:function(){return ke.y},ZP:function(){return te}});var b=ee(60499),ze=ee(43749),fe=ee(85899),nt=ee(77654),Se=ee(38705),xe=ee(17212),Ee=ee(15793),je=ee(39153),Ie=ee(55401),ue=ee(18642),et=ee(92310),Te=ee.n(et),At=ee(10228),lt=ee(26112),it=ee(48736),We=ee(59301),ke=ee(30699),ot=function(ce){var re=ce.dropPosition,le=ce.dropLevelOffset,be=ce.indent,ht={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(re){case-1:ht.top=0,ht.left=-le*be;break;case 1:ht.bottom=0,ht.left=-le*be;break;case 0:ht.bottom=0,ht.left=be;break}return We.createElement("div",{style:ht})},yt=ot;function Nt(oe){if(oe==null)throw new TypeError("Cannot destructure "+oe)}var Fe=ee(72190),Me=ee(42244),Xe=ee(34280),Je=ee(48911),$t=ee(77900),ct=ee(639);function Ye(oe,ce){var re=We.useState(!1),le=(0,Fe.Z)(re,2),be=le[0],ht=le[1];(0,Xe.Z)(function(){if(be)return oe(),function(){ce()}},[be]),(0,Xe.Z)(function(){return ht(!0),function(){ht(!1)}},[])}var rt=Ye,Ce=ee(34061),at=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],_e=We.forwardRef(function(oe,ce){var re=oe.className,le=oe.style,be=oe.motion,ht=oe.motionNodes,Le=oe.motionType,Ne=oe.onMotionStart,Ve=oe.onMotionEnd,Ge=oe.active,pt=oe.treeNodeRequiredProps,we=(0,Me.Z)(oe,at),De=We.useState(!0),Zt=(0,Fe.Z)(De,2),Tt=Zt[0],nn=Zt[1],Ut=We.useContext(ke.k),St=Ut.prefixCls,an=ht&&Le!=="hide";(0,Xe.Z)(function(){ht&&an!==Tt&&nn(an)},[ht]);var _t=function(){ht&&Ne()},$e=We.useRef(!1),mt=function(){ht&&!$e.current&&($e.current=!0,Ve())};rt(_t,mt);var jt=function(Be){an===Be&&mt()};return ht?We.createElement($t.default,(0,b.Z)({ref:ce,visible:Tt},be,{motionAppear:Le==="show",onVisibleChanged:jt}),function(Jt,Be){var ft=Jt.className,Dt=Jt.style;return We.createElement("div",{ref:Be,className:Te()("".concat(St,"-treenode-motion"),ft),style:Dt},ht.map(function(Vt){var un=Object.assign({},(Nt(Vt.data),Vt.data)),En=Vt.title,Mn=Vt.key,Fn=Vt.isStart,gn=Vt.isEnd;delete un.children;var kn=(0,Ce.H8)(Mn,pt);return We.createElement(ct.Z,(0,b.Z)({},un,kn,{title:En,active:Ge,data:Vt.data,key:Mn,isStart:Fn,isEnd:gn}))}))}):We.createElement(ct.Z,(0,b.Z)({domRef:ce,className:re,style:le},we,{active:Ge}))}),de=_e;function Et(){var oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],re=oe.length,le=ce.length;if(Math.abs(re-le)!==1)return{add:!1,key:null};function be(ht,Le){var Ne=new Map;ht.forEach(function(Ge){Ne.set(Ge,!0)});var Ve=Le.filter(function(Ge){return!Ne.has(Ge)});return Ve.length===1?Ve[0]:null}return re<le?{add:!0,key:be(oe,ce)}:{add:!1,key:be(ce,oe)}}function He(oe,ce,re){var le=oe.findIndex(function(Ne){return Ne.key===re}),be=oe[le+1],ht=ce.findIndex(function(Ne){return Ne.key===re});if(be){var Le=ce.findIndex(function(Ne){return Ne.key===be.key});return ce.slice(ht+1,Le)}return ce.slice(ht+1)}var st=["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"],Yt={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Oe=function(){},pe="RC_TREE_MOTION_".concat(Math.random()),Lt={key:pe},en={key:pe,level:0,index:0,pos:"0",node:Lt,nodes:[Lt]},Ot={parent:null,children:[],pos:en.pos,data:Lt,title:null,key:pe,isStart:[],isEnd:[]};function ge(oe,ce,re,le){return ce===!1||!re?oe:oe.slice(0,Math.ceil(re/le)+1)}function Ke(oe){var ce=oe.key,re=oe.pos;return(0,Ce.km)(ce,re)}function tt(oe){for(var ce=String(oe.data.key),re=oe;re.parent;)re=re.parent,ce="".concat(re.data.key," > ").concat(ce);return ce}var Wt=We.forwardRef(function(oe,ce){var re=oe.prefixCls,le=oe.data,be=oe.selectable,ht=oe.checkable,Le=oe.expandedKeys,Ne=oe.selectedKeys,Ve=oe.checkedKeys,Ge=oe.loadedKeys,pt=oe.loadingKeys,we=oe.halfCheckedKeys,De=oe.keyEntities,Zt=oe.disabled,Tt=oe.dragging,nn=oe.dragOverNodeKey,Ut=oe.dropPosition,St=oe.motion,an=oe.height,_t=oe.itemHeight,$e=oe.virtual,mt=oe.scrollWidth,jt=oe.focusable,Jt=oe.activeItem,Be=oe.focused,ft=oe.tabIndex,Dt=oe.onKeyDown,Vt=oe.onFocus,un=oe.onBlur,En=oe.onActiveChange,Mn=oe.onListChangeStart,Fn=oe.onListChangeEnd,gn=(0,Me.Z)(oe,st),kn=We.useRef(null),dn=We.useRef(null);We.useImperativeHandle(ce,function(){return{scrollTo:function(It){kn.current.scrollTo(It)},getIndentWidth:function(){return dn.current.offsetWidth}}});var zt=We.useState(Le),rn=(0,Fe.Z)(zt,2),on=rn[0],Xt=rn[1],vn=We.useState(le),pn=(0,Fe.Z)(vn,2),wn=pn[0],$n=pn[1],xn=We.useState(le),hn=(0,Fe.Z)(xn,2),Zn=hn[0],Wn=hn[1],ir=We.useState([]),tr=(0,Fe.Z)(ir,2),sn=tr[0],yn=tr[1],zn=We.useState(null),Hn=(0,Fe.Z)(zn,2),ut=Hn[0],Pt=Hn[1],Re=We.useRef(le);Re.current=le;function vt(){var Pe=Re.current;$n(Pe),Wn(Pe),yn([]),Pt(null),Fn()}(0,Xe.Z)(function(){Xt(Le);var Pe=Et(on,Le);if(Pe.key!==null)if(Pe.add){var It=wn.findIndex(function(Ft){var Tn=Ft.key;return Tn===Pe.key}),Bt=ge(He(wn,le,Pe.key),$e,an,_t),Kt=wn.slice();Kt.splice(It+1,0,Ot),Wn(Kt),yn(Bt),Pt("show")}else{var Ct=le.findIndex(function(Ft){var Tn=Ft.key;return Tn===Pe.key}),xt=ge(He(le,wn,Pe.key),$e,an,_t),wt=le.slice();wt.splice(Ct+1,0,Ot),Wn(wt),yn(xt),Pt("hide")}else wn!==le&&($n(le),Wn(le))},[Le,le]),We.useEffect(function(){Tt||vt()},[Tt]);var Ze=St?Zn:le,bt={expandedKeys:Le,selectedKeys:Ne,loadedKeys:Ge,loadingKeys:pt,checkedKeys:Ve,halfCheckedKeys:we,dragOverNodeKey:nn,dropPosition:Ut,keyEntities:De};return We.createElement(We.Fragment,null,Be&&Jt&&We.createElement("span",{style:Yt,"aria-live":"assertive"},tt(Jt)),We.createElement("div",null,We.createElement("input",{style:Yt,disabled:jt===!1||Zt,tabIndex:jt!==!1?ft:null,onKeyDown:Dt,onFocus:Vt,onBlur:un,value:"",onChange:Oe,"aria-label":"for screen reader"})),We.createElement("div",{className:"".concat(re,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},We.createElement("div",{className:"".concat(re,"-indent")},We.createElement("div",{ref:dn,className:"".concat(re,"-indent-unit")}))),We.createElement(Je.Z,(0,b.Z)({},gn,{data:Ze,itemKey:Ke,height:an,fullHeight:!1,virtual:$e,itemHeight:_t,scrollWidth:mt,prefixCls:"".concat(re,"-list"),ref:kn,role:"tree",onVisibleChange:function(It){It.every(function(Bt){return Ke(Bt)!==pe})&&vt()}}),function(Pe){var It=Pe.pos,Bt=Object.assign({},(Nt(Pe.data),Pe.data)),Kt=Pe.title,Ct=Pe.key,xt=Pe.isStart,wt=Pe.isEnd,Ft=(0,Ce.km)(Ct,It);delete Bt.key,delete Bt.children;var Tn=(0,Ce.H8)(Ft,bt);return We.createElement(de,(0,b.Z)({},Bt,Tn,{title:Kt,active:!!Jt&&Ct===Jt.key,pos:It,data:Pe.data,isStart:xt,isEnd:wt,motion:St,motionNodes:Ct===pe?sn:null,motionType:ut,onMotionStart:Mn,onMotionEnd:vt,treeNodeRequiredProps:bt,onMouseMove:function(){En(null)}}))}))}),qe=Wt,Rt=ee(82661),Qe=ee(34643),tn=ee(65065),gt=10,ae=function(oe){(0,je.Z)(re,oe);var ce=(0,Ie.Z)(re);function re(){var le;(0,Se.Z)(this,re);for(var be=arguments.length,ht=new Array(be),Le=0;Le<be;Le++)ht[Le]=arguments[Le];return le=ce.call.apply(ce,[this].concat(ht)),(0,ue.Z)((0,Ee.Z)(le),"destroyed",!1),(0,ue.Z)((0,Ee.Z)(le),"delayedDragEnterLogic",void 0),(0,ue.Z)((0,Ee.Z)(le),"loadingRetryTimes",{}),(0,ue.Z)((0,Ee.Z)(le),"state",{keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:(0,Ce.w$)()}),(0,ue.Z)((0,Ee.Z)(le),"dragStartMousePosition",null),(0,ue.Z)((0,Ee.Z)(le),"dragNodeProps",null),(0,ue.Z)((0,Ee.Z)(le),"currentMouseOverDroppableNodeKey",null),(0,ue.Z)((0,Ee.Z)(le),"listRef",We.createRef()),(0,ue.Z)((0,Ee.Z)(le),"onNodeDragStart",function(Ne,Ve){var Ge=le.state,pt=Ge.expandedKeys,we=Ge.keyEntities,De=le.props.onDragStart,Zt=Ve.eventKey;le.dragNodeProps=Ve,le.dragStartMousePosition={x:Ne.clientX,y:Ne.clientY};var Tt=(0,Rt._5)(pt,Zt);le.setState({draggingNodeKey:Zt,dragChildrenKeys:(0,Rt.wA)(Zt,we),indent:le.listRef.current.getIndentWidth()}),le.setExpandedKeys(Tt),window.addEventListener("dragend",le.onWindowDragEnd),De==null||De({event:Ne,node:(0,Ce.F)(Ve)})}),(0,ue.Z)((0,Ee.Z)(le),"onNodeDragEnter",function(Ne,Ve){var Ge=le.state,pt=Ge.expandedKeys,we=Ge.keyEntities,De=Ge.dragChildrenKeys,Zt=Ge.flattenNodes,Tt=Ge.indent,nn=le.props,Ut=nn.onDragEnter,St=nn.onExpand,an=nn.allowDrop,_t=nn.direction,$e=Ve.pos,mt=Ve.eventKey;if(le.currentMouseOverDroppableNodeKey!==mt&&(le.currentMouseOverDroppableNodeKey=mt),!le.dragNodeProps){le.resetDragState();return}var jt=(0,Rt.OM)(Ne,le.dragNodeProps,Ve,Tt,le.dragStartMousePosition,an,Zt,we,pt,_t),Jt=jt.dropPosition,Be=jt.dropLevelOffset,ft=jt.dropTargetKey,Dt=jt.dropContainerKey,Vt=jt.dropTargetPos,un=jt.dropAllowed,En=jt.dragOverNodeKey;if(De.includes(ft)||!un){le.resetDragState();return}if(le.delayedDragEnterLogic||(le.delayedDragEnterLogic={}),Object.keys(le.delayedDragEnterLogic).forEach(function(Mn){clearTimeout(le.delayedDragEnterLogic[Mn])}),le.dragNodeProps.eventKey!==Ve.eventKey&&(Ne.persist(),le.delayedDragEnterLogic[$e]=window.setTimeout(function(){if(le.state.draggingNodeKey!==null){var Mn=(0,nt.Z)(pt),Fn=(0,tn.Z)(we,Ve.eventKey);Fn&&(Fn.children||[]).length&&(Mn=(0,Rt.L0)(pt,Ve.eventKey)),le.props.hasOwnProperty("expandedKeys")||le.setExpandedKeys(Mn),St==null||St(Mn,{node:(0,Ce.F)(Ve),expanded:!0,nativeEvent:Ne.nativeEvent})}},800)),le.dragNodeProps.eventKey===ft&&Be===0){le.resetDragState();return}le.setState({dragOverNodeKey:En,dropPosition:Jt,dropLevelOffset:Be,dropTargetKey:ft,dropContainerKey:Dt,dropTargetPos:Vt,dropAllowed:un}),Ut==null||Ut({event:Ne,node:(0,Ce.F)(Ve),expandedKeys:pt})}),(0,ue.Z)((0,Ee.Z)(le),"onNodeDragOver",function(Ne,Ve){var Ge=le.state,pt=Ge.dragChildrenKeys,we=Ge.flattenNodes,De=Ge.keyEntities,Zt=Ge.expandedKeys,Tt=Ge.indent,nn=le.props,Ut=nn.onDragOver,St=nn.allowDrop,an=nn.direction;if(le.dragNodeProps){var _t=(0,Rt.OM)(Ne,le.dragNodeProps,Ve,Tt,le.dragStartMousePosition,St,we,De,Zt,an),$e=_t.dropPosition,mt=_t.dropLevelOffset,jt=_t.dropTargetKey,Jt=_t.dropContainerKey,Be=_t.dropTargetPos,ft=_t.dropAllowed,Dt=_t.dragOverNodeKey;pt.includes(jt)||!ft||(le.dragNodeProps.eventKey===jt&&mt===0?le.state.dropPosition===null&&le.state.dropLevelOffset===null&&le.state.dropTargetKey===null&&le.state.dropContainerKey===null&&le.state.dropTargetPos===null&&le.state.dropAllowed===!1&&le.state.dragOverNodeKey===null||le.resetDragState():$e===le.state.dropPosition&&mt===le.state.dropLevelOffset&&jt===le.state.dropTargetKey&&Jt===le.state.dropContainerKey&&Be===le.state.dropTargetPos&&ft===le.state.dropAllowed&&Dt===le.state.dragOverNodeKey||le.setState({dropPosition:$e,dropLevelOffset:mt,dropTargetKey:jt,dropContainerKey:Jt,dropTargetPos:Be,dropAllowed:ft,dragOverNodeKey:Dt}),Ut==null||Ut({event:Ne,node:(0,Ce.F)(Ve)}))}}),(0,ue.Z)((0,Ee.Z)(le),"onNodeDragLeave",function(Ne,Ve){le.currentMouseOverDroppableNodeKey===Ve.eventKey&&!Ne.currentTarget.contains(Ne.relatedTarget)&&(le.resetDragState(),le.currentMouseOverDroppableNodeKey=null);var Ge=le.props.onDragLeave;Ge==null||Ge({event:Ne,node:(0,Ce.F)(Ve)})}),(0,ue.Z)((0,Ee.Z)(le),"onWindowDragEnd",function(Ne){le.onNodeDragEnd(Ne,null,!0),window.removeEventListener("dragend",le.onWindowDragEnd)}),(0,ue.Z)((0,Ee.Z)(le),"onNodeDragEnd",function(Ne,Ve){var Ge=le.props.onDragEnd;le.setState({dragOverNodeKey:null}),le.cleanDragState(),Ge==null||Ge({event:Ne,node:(0,Ce.F)(Ve)}),le.dragNodeProps=null,window.removeEventListener("dragend",le.onWindowDragEnd)}),(0,ue.Z)((0,Ee.Z)(le),"onNodeDrop",function(Ne,Ve){var Ge,pt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,we=le.state,De=we.dragChildrenKeys,Zt=we.dropPosition,Tt=we.dropTargetKey,nn=we.dropTargetPos,Ut=we.dropAllowed;if(Ut){var St=le.props.onDrop;if(le.setState({dragOverNodeKey:null}),le.cleanDragState(),Tt!==null){var an=(0,fe.Z)((0,fe.Z)({},(0,Ce.H8)(Tt,le.getTreeNodeRequiredProps())),{},{active:((Ge=le.getActiveItem())===null||Ge===void 0?void 0:Ge.key)===Tt,data:(0,tn.Z)(le.state.keyEntities,Tt).node}),_t=De.includes(Tt);(0,it.ZP)(!_t,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var $e=(0,Rt.yx)(nn),mt={event:Ne,node:(0,Ce.F)(an),dragNode:le.dragNodeProps?(0,Ce.F)(le.dragNodeProps):null,dragNodesKeys:[le.dragNodeProps.eventKey].concat(De),dropToGap:Zt!==0,dropPosition:Zt+Number($e[$e.length-1])};pt||St==null||St(mt),le.dragNodeProps=null}}}),(0,ue.Z)((0,Ee.Z)(le),"cleanDragState",function(){var Ne=le.state.draggingNodeKey;Ne!==null&&le.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),le.dragStartMousePosition=null,le.currentMouseOverDroppableNodeKey=null}),(0,ue.Z)((0,Ee.Z)(le),"triggerExpandActionExpand",function(Ne,Ve){var Ge=le.state,pt=Ge.expandedKeys,we=Ge.flattenNodes,De=Ve.expanded,Zt=Ve.key,Tt=Ve.isLeaf;if(!(Tt||Ne.shiftKey||Ne.metaKey||Ne.ctrlKey)){var nn=we.filter(function(St){return St.key===Zt})[0],Ut=(0,Ce.F)((0,fe.Z)((0,fe.Z)({},(0,Ce.H8)(Zt,le.getTreeNodeRequiredProps())),{},{data:nn.data}));le.setExpandedKeys(De?(0,Rt._5)(pt,Zt):(0,Rt.L0)(pt,Zt)),le.onNodeExpand(Ne,Ut)}}),(0,ue.Z)((0,Ee.Z)(le),"onNodeClick",function(Ne,Ve){var Ge=le.props,pt=Ge.onClick,we=Ge.expandAction;we==="click"&&le.triggerExpandActionExpand(Ne,Ve),pt==null||pt(Ne,Ve)}),(0,ue.Z)((0,Ee.Z)(le),"onNodeDoubleClick",function(Ne,Ve){var Ge=le.props,pt=Ge.onDoubleClick,we=Ge.expandAction;we==="doubleClick"&&le.triggerExpandActionExpand(Ne,Ve),pt==null||pt(Ne,Ve)}),(0,ue.Z)((0,Ee.Z)(le),"onNodeSelect",function(Ne,Ve){var Ge=le.state.selectedKeys,pt=le.state,we=pt.keyEntities,De=pt.fieldNames,Zt=le.props,Tt=Zt.onSelect,nn=Zt.multiple,Ut=Ve.selected,St=Ve[De.key],an=!Ut;an?nn?Ge=(0,Rt.L0)(Ge,St):Ge=[St]:Ge=(0,Rt._5)(Ge,St);var _t=Ge.map(function($e){var mt=(0,tn.Z)(we,$e);return mt?mt.node:null}).filter(Boolean);le.setUncontrolledState({selectedKeys:Ge}),Tt==null||Tt(Ge,{event:"select",selected:an,node:Ve,selectedNodes:_t,nativeEvent:Ne.nativeEvent})}),(0,ue.Z)((0,Ee.Z)(le),"onNodeCheck",function(Ne,Ve,Ge){var pt=le.state,we=pt.keyEntities,De=pt.checkedKeys,Zt=pt.halfCheckedKeys,Tt=le.props,nn=Tt.checkStrictly,Ut=Tt.onCheck,St=Ve.key,an,_t={event:"check",node:Ve,checked:Ge,nativeEvent:Ne.nativeEvent};if(nn){var $e=Ge?(0,Rt.L0)(De,St):(0,Rt._5)(De,St),mt=(0,Rt._5)(Zt,St);an={checked:$e,halfChecked:mt},_t.checkedNodes=$e.map(function(Vt){return(0,tn.Z)(we,Vt)}).filter(Boolean).map(function(Vt){return Vt.node}),le.setUncontrolledState({checkedKeys:$e})}else{var jt=(0,Qe.S)([].concat((0,nt.Z)(De),[St]),!0,we),Jt=jt.checkedKeys,Be=jt.halfCheckedKeys;if(!Ge){var ft=new Set(Jt);ft.delete(St);var Dt=(0,Qe.S)(Array.from(ft),{checked:!1,halfCheckedKeys:Be},we);Jt=Dt.checkedKeys,Be=Dt.halfCheckedKeys}an=Jt,_t.checkedNodes=[],_t.checkedNodesPositions=[],_t.halfCheckedKeys=Be,Jt.forEach(function(Vt){var un=(0,tn.Z)(we,Vt);if(un){var En=un.node,Mn=un.pos;_t.checkedNodes.push(En),_t.checkedNodesPositions.push({node:En,pos:Mn})}}),le.setUncontrolledState({checkedKeys:Jt},!1,{halfCheckedKeys:Be})}Ut==null||Ut(an,_t)}),(0,ue.Z)((0,Ee.Z)(le),"onNodeLoad",function(Ne){var Ve,Ge=Ne.key,pt=le.state.keyEntities,we=(0,tn.Z)(pt,Ge);if(!(we!=null&&(Ve=we.children)!==null&&Ve!==void 0&&Ve.length)){var De=new Promise(function(Zt,Tt){le.setState(function(nn){var Ut=nn.loadedKeys,St=Ut===void 0?[]:Ut,an=nn.loadingKeys,_t=an===void 0?[]:an,$e=le.props,mt=$e.loadData,jt=$e.onLoad;if(!mt||St.includes(Ge)||_t.includes(Ge))return null;var Jt=mt(Ne);return Jt.then(function(){var Be=le.state.loadedKeys,ft=(0,Rt.L0)(Be,Ge);jt==null||jt(ft,{event:"load",node:Ne}),le.setUncontrolledState({loadedKeys:ft}),le.setState(function(Dt){return{loadingKeys:(0,Rt._5)(Dt.loadingKeys,Ge)}}),Zt()}).catch(function(Be){if(le.setState(function(Dt){return{loadingKeys:(0,Rt._5)(Dt.loadingKeys,Ge)}}),le.loadingRetryTimes[Ge]=(le.loadingRetryTimes[Ge]||0)+1,le.loadingRetryTimes[Ge]>=gt){var ft=le.state.loadedKeys;(0,it.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),le.setUncontrolledState({loadedKeys:(0,Rt.L0)(ft,Ge)}),Zt()}Tt(Be)}),{loadingKeys:(0,Rt.L0)(_t,Ge)}})});return De.catch(function(){}),De}}),(0,ue.Z)((0,Ee.Z)(le),"onNodeMouseEnter",function(Ne,Ve){var Ge=le.props.onMouseEnter;Ge==null||Ge({event:Ne,node:Ve})}),(0,ue.Z)((0,Ee.Z)(le),"onNodeMouseLeave",function(Ne,Ve){var Ge=le.props.onMouseLeave;Ge==null||Ge({event:Ne,node:Ve})}),(0,ue.Z)((0,Ee.Z)(le),"onNodeContextMenu",function(Ne,Ve){var Ge=le.props.onRightClick;Ge&&(Ne.preventDefault(),Ge({event:Ne,node:Ve}))}),(0,ue.Z)((0,Ee.Z)(le),"onFocus",function(){var Ne=le.props.onFocus;le.setState({focused:!0});for(var Ve=arguments.length,Ge=new Array(Ve),pt=0;pt<Ve;pt++)Ge[pt]=arguments[pt];Ne==null||Ne.apply(void 0,Ge)}),(0,ue.Z)((0,Ee.Z)(le),"onBlur",function(){var Ne=le.props.onBlur;le.setState({focused:!1}),le.onActiveChange(null);for(var Ve=arguments.length,Ge=new Array(Ve),pt=0;pt<Ve;pt++)Ge[pt]=arguments[pt];Ne==null||Ne.apply(void 0,Ge)}),(0,ue.Z)((0,Ee.Z)(le),"getTreeNodeRequiredProps",function(){var Ne=le.state,Ve=Ne.expandedKeys,Ge=Ne.selectedKeys,pt=Ne.loadedKeys,we=Ne.loadingKeys,De=Ne.checkedKeys,Zt=Ne.halfCheckedKeys,Tt=Ne.dragOverNodeKey,nn=Ne.dropPosition,Ut=Ne.keyEntities;return{expandedKeys:Ve||[],selectedKeys:Ge||[],loadedKeys:pt||[],loadingKeys:we||[],checkedKeys:De||[],halfCheckedKeys:Zt||[],dragOverNodeKey:Tt,dropPosition:nn,keyEntities:Ut}}),(0,ue.Z)((0,Ee.Z)(le),"setExpandedKeys",function(Ne){var Ve=le.state,Ge=Ve.treeData,pt=Ve.fieldNames,we=(0,Ce.oH)(Ge,Ne,pt);le.setUncontrolledState({expandedKeys:Ne,flattenNodes:we},!0)}),(0,ue.Z)((0,Ee.Z)(le),"onNodeExpand",function(Ne,Ve){var Ge=le.state.expandedKeys,pt=le.state,we=pt.listChanging,De=pt.fieldNames,Zt=le.props,Tt=Zt.onExpand,nn=Zt.loadData,Ut=Ve.expanded,St=Ve[De.key];if(!we){var an=Ge.includes(St),_t=!Ut;if((0,it.ZP)(Ut&&an||!Ut&&!an,"Expand state not sync with index check"),Ge=_t?(0,Rt.L0)(Ge,St):(0,Rt._5)(Ge,St),le.setExpandedKeys(Ge),Tt==null||Tt(Ge,{node:Ve,expanded:_t,nativeEvent:Ne.nativeEvent}),_t&&nn){var $e=le.onNodeLoad(Ve);$e&&$e.then(function(){var mt=(0,Ce.oH)(le.state.treeData,Ge,De);le.setUncontrolledState({flattenNodes:mt})}).catch(function(){var mt=le.state.expandedKeys,jt=(0,Rt._5)(mt,St);le.setExpandedKeys(jt)})}}}),(0,ue.Z)((0,Ee.Z)(le),"onListChangeStart",function(){le.setUncontrolledState({listChanging:!0})}),(0,ue.Z)((0,Ee.Z)(le),"onListChangeEnd",function(){setTimeout(function(){le.setUncontrolledState({listChanging:!1})})}),(0,ue.Z)((0,Ee.Z)(le),"onActiveChange",function(Ne){var Ve=le.state.activeKey,Ge=le.props,pt=Ge.onActiveChange,we=Ge.itemScrollOffset,De=we===void 0?0:we;Ve!==Ne&&(le.setState({activeKey:Ne}),Ne!==null&&le.scrollTo({key:Ne,offset:De}),pt==null||pt(Ne))}),(0,ue.Z)((0,Ee.Z)(le),"getActiveItem",function(){var Ne=le.state,Ve=Ne.activeKey,Ge=Ne.flattenNodes;return Ve===null?null:Ge.find(function(pt){var we=pt.key;return we===Ve})||null}),(0,ue.Z)((0,Ee.Z)(le),"offsetActiveKey",function(Ne){var Ve=le.state,Ge=Ve.flattenNodes,pt=Ve.activeKey,we=Ge.findIndex(function(Tt){var nn=Tt.key;return nn===pt});we===-1&&Ne<0&&(we=Ge.length),we=(we+Ne+Ge.length)%Ge.length;var De=Ge[we];if(De){var Zt=De.key;le.onActiveChange(Zt)}else le.onActiveChange(null)}),(0,ue.Z)((0,Ee.Z)(le),"onKeyDown",function(Ne){var Ve=le.state,Ge=Ve.activeKey,pt=Ve.expandedKeys,we=Ve.checkedKeys,De=Ve.fieldNames,Zt=le.props,Tt=Zt.onKeyDown,nn=Zt.checkable,Ut=Zt.selectable;switch(Ne.which){case At.Z.UP:{le.offsetActiveKey(-1),Ne.preventDefault();break}case At.Z.DOWN:{le.offsetActiveKey(1),Ne.preventDefault();break}}var St=le.getActiveItem();if(St&&St.data){var an=le.getTreeNodeRequiredProps(),_t=St.data.isLeaf===!1||!!(St.data[De.children]||[]).length,$e=(0,Ce.F)((0,fe.Z)((0,fe.Z)({},(0,Ce.H8)(Ge,an)),{},{data:St.data,active:!0}));switch(Ne.which){case At.Z.LEFT:{_t&&pt.includes(Ge)?le.onNodeExpand({},$e):St.parent&&le.onActiveChange(St.parent.key),Ne.preventDefault();break}case At.Z.RIGHT:{_t&&!pt.includes(Ge)?le.onNodeExpand({},$e):St.children&&St.children.length&&le.onActiveChange(St.children[0].key),Ne.preventDefault();break}case At.Z.ENTER:case At.Z.SPACE:{nn&&!$e.disabled&&$e.checkable!==!1&&!$e.disableCheckbox?le.onNodeCheck({},$e,!we.includes(Ge)):!nn&&Ut&&!$e.disabled&&$e.selectable!==!1&&le.onNodeSelect({},$e);break}}}Tt==null||Tt(Ne)}),(0,ue.Z)((0,Ee.Z)(le),"setUncontrolledState",function(Ne){var Ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ge=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!le.destroyed){var pt=!1,we=!0,De={};Object.keys(Ne).forEach(function(Zt){if(le.props.hasOwnProperty(Zt)){we=!1;return}pt=!0,De[Zt]=Ne[Zt]}),pt&&(!Ve||we)&&le.setState((0,fe.Z)((0,fe.Z)({},De),Ge))}}),(0,ue.Z)((0,Ee.Z)(le),"scrollTo",function(Ne){le.listRef.current.scrollTo(Ne)}),le}return(0,xe.Z)(re,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var be=this.props,ht=be.activeKey,Le=be.itemScrollOffset,Ne=Le===void 0?0:Le;ht!==void 0&&ht!==this.state.activeKey&&(this.setState({activeKey:ht}),ht!==null&&this.scrollTo({key:ht,offset:Ne}))}},{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 be=this.state,ht=be.focused,Le=be.flattenNodes,Ne=be.keyEntities,Ve=be.draggingNodeKey,Ge=be.activeKey,pt=be.dropLevelOffset,we=be.dropContainerKey,De=be.dropTargetKey,Zt=be.dropPosition,Tt=be.dragOverNodeKey,nn=be.indent,Ut=this.props,St=Ut.prefixCls,an=Ut.className,_t=Ut.style,$e=Ut.showLine,mt=Ut.focusable,jt=Ut.tabIndex,Jt=jt===void 0?0:jt,Be=Ut.selectable,ft=Ut.showIcon,Dt=Ut.icon,Vt=Ut.switcherIcon,un=Ut.draggable,En=Ut.checkable,Mn=Ut.checkStrictly,Fn=Ut.disabled,gn=Ut.motion,kn=Ut.loadData,dn=Ut.filterTreeNode,zt=Ut.height,rn=Ut.itemHeight,on=Ut.scrollWidth,Xt=Ut.virtual,vn=Ut.titleRender,pn=Ut.dropIndicatorRender,wn=Ut.onContextMenu,$n=Ut.onScroll,xn=Ut.direction,hn=Ut.rootClassName,Zn=Ut.rootStyle,Wn=(0,lt.Z)(this.props,{aria:!0,data:!0}),ir;un&&((0,ze.Z)(un)==="object"?ir=un:typeof un=="function"?ir={nodeDraggable:un}:ir={});var tr={prefixCls:St,selectable:Be,showIcon:ft,icon:Dt,switcherIcon:Vt,draggable:ir,draggingNodeKey:Ve,checkable:En,checkStrictly:Mn,disabled:Fn,keyEntities:Ne,dropLevelOffset:pt,dropContainerKey:we,dropTargetKey:De,dropPosition:Zt,dragOverNodeKey:Tt,indent:nn,direction:xn,dropIndicatorRender:pn,loadData:kn,filterTreeNode:dn,titleRender:vn,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return We.createElement(ke.k.Provider,{value:tr},We.createElement("div",{className:Te()(St,an,hn,(0,ue.Z)((0,ue.Z)((0,ue.Z)({},"".concat(St,"-show-line"),$e),"".concat(St,"-focused"),ht),"".concat(St,"-active-focused"),Ge!==null)),style:Zn},We.createElement(qe,(0,b.Z)({ref:this.listRef,prefixCls:St,style:_t,data:Le,disabled:Fn,selectable:Be,checkable:!!En,motion:gn,dragging:Ve!==null,height:zt,itemHeight:rn,virtual:Xt,focusable:mt,focused:ht,tabIndex:Jt,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:wn,onScroll:$n,scrollWidth:on},this.getTreeNodeRequiredProps(),Wn))))}}],[{key:"getDerivedStateFromProps",value:function(be,ht){var Le=ht.prevProps,Ne={prevProps:be};function Ve(Jt){return!Le&&be.hasOwnProperty(Jt)||Le&&Le[Jt]!==be[Jt]}var Ge,pt=ht.fieldNames;if(Ve("fieldNames")&&(pt=(0,Ce.w$)(be.fieldNames),Ne.fieldNames=pt),Ve("treeData")?Ge=be.treeData:Ve("children")&&((0,it.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),Ge=(0,Ce.zn)(be.children)),Ge){Ne.treeData=Ge;var we=(0,Ce.I8)(Ge,{fieldNames:pt});Ne.keyEntities=(0,fe.Z)((0,ue.Z)({},pe,en),we.keyEntities)}var De=Ne.keyEntities||ht.keyEntities;if(Ve("expandedKeys")||Le&&Ve("autoExpandParent"))Ne.expandedKeys=be.autoExpandParent||!Le&&be.defaultExpandParent?(0,Rt.r7)(be.expandedKeys,De):be.expandedKeys;else if(!Le&&be.defaultExpandAll){var Zt=(0,fe.Z)({},De);delete Zt[pe];var Tt=[];Object.keys(Zt).forEach(function(Jt){var Be=Zt[Jt];Be.children&&Be.children.length&&Tt.push(Be.key)}),Ne.expandedKeys=Tt}else!Le&&be.defaultExpandedKeys&&(Ne.expandedKeys=be.autoExpandParent||be.defaultExpandParent?(0,Rt.r7)(be.defaultExpandedKeys,De):be.defaultExpandedKeys);if(Ne.expandedKeys||delete Ne.expandedKeys,Ge||Ne.expandedKeys){var nn=(0,Ce.oH)(Ge||ht.treeData,Ne.expandedKeys||ht.expandedKeys,pt);Ne.flattenNodes=nn}if(be.selectable&&(Ve("selectedKeys")?Ne.selectedKeys=(0,Rt.BT)(be.selectedKeys,be):!Le&&be.defaultSelectedKeys&&(Ne.selectedKeys=(0,Rt.BT)(be.defaultSelectedKeys,be))),be.checkable){var Ut;if(Ve("checkedKeys")?Ut=(0,Rt.E6)(be.checkedKeys)||{}:!Le&&be.defaultCheckedKeys?Ut=(0,Rt.E6)(be.defaultCheckedKeys)||{}:Ge&&(Ut=(0,Rt.E6)(be.checkedKeys)||{checkedKeys:ht.checkedKeys,halfCheckedKeys:ht.halfCheckedKeys}),Ut){var St=Ut,an=St.checkedKeys,_t=an===void 0?[]:an,$e=St.halfCheckedKeys,mt=$e===void 0?[]:$e;if(!be.checkStrictly){var jt=(0,Qe.S)(_t,!0,De);_t=jt.checkedKeys,mt=jt.halfCheckedKeys}Ne.checkedKeys=_t,Ne.halfCheckedKeys=mt}}return Ve("loadedKeys")&&(Ne.loadedKeys=be.loadedKeys),Ne}}]),re}(We.Component);(0,ue.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:yt,allowDrop:function(){return!0},expandAction:!1}),(0,ue.Z)(ae,"TreeNode",ct.Z);var ne=ae,te=ne},82661:function(In,Qt,ee){"use strict";ee.d(Qt,{BT:function(){return We},E6:function(){return yt},L0:function(){return ue},OM:function(){return it},_5:function(){return Ie},r7:function(){return Nt},wA:function(){return Te},yx:function(){return et}});var b=ee(77654),ze=ee(43749),fe=ee(48736),nt=ee(59301),Se=ee(639),xe=ee(65065),Ee=ee(34061),je=null;function Ie(Fe,Me){if(!Fe)return[];var Xe=Fe.slice(),Je=Xe.indexOf(Me);return Je>=0&&Xe.splice(Je,1),Xe}function ue(Fe,Me){var Xe=(Fe||[]).slice();return Xe.indexOf(Me)===-1&&Xe.push(Me),Xe}function et(Fe){return Fe.split("-")}function Te(Fe,Me){var Xe=[],Je=(0,xe.Z)(Me,Fe);function $t(){var ct=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];ct.forEach(function(Ye){var rt=Ye.key,Ce=Ye.children;Xe.push(rt),$t(Ce)})}return $t(Je.children),Xe}function At(Fe){if(Fe.parent){var Me=et(Fe.pos);return Number(Me[Me.length-1])===Fe.parent.children.length-1}return!1}function lt(Fe){var Me=et(Fe.pos);return Number(Me[Me.length-1])===0}function it(Fe,Me,Xe,Je,$t,ct,Ye,rt,Ce,at){var _e,de=Fe.clientX,Et=Fe.clientY,He=Fe.target.getBoundingClientRect(),st=He.top,Yt=He.height,Oe=(at==="rtl"?-1:1)*((($t==null?void 0:$t.x)||0)-de),pe=(Oe-12)/Je,Lt=Ce.filter(function(te){var oe;return(oe=rt[te])===null||oe===void 0||(oe=oe.children)===null||oe===void 0?void 0:oe.length}),en=(0,xe.Z)(rt,Xe.eventKey);if(Et<st+Yt/2){var Ot=Ye.findIndex(function(te){return te.key===en.key}),ge=Ot<=0?0:Ot-1,Ke=Ye[ge].key;en=(0,xe.Z)(rt,Ke)}var tt=en.key,Wt=en,qe=en.key,Rt=0,Qe=0;if(!Lt.includes(tt))for(var tn=0;tn<pe&&At(en);tn+=1)en=en.parent,Qe+=1;var gt=Me.data,ae=en.node,ne=!0;return lt(en)&&en.level===0&&Et<st+Yt/2&&ct({dragNode:gt,dropNode:ae,dropPosition:-1})&&en.key===Xe.eventKey?Rt=-1:(Wt.children||[]).length&&Lt.includes(qe)?ct({dragNode:gt,dropNode:ae,dropPosition:0})?Rt=0:ne=!1:Qe===0?pe>-1.5?ct({dragNode:gt,dropNode:ae,dropPosition:1})?Rt=1:ne=!1:ct({dragNode:gt,dropNode:ae,dropPosition:0})?Rt=0:ct({dragNode:gt,dropNode:ae,dropPosition:1})?Rt=1:ne=!1:ct({dragNode:gt,dropNode:ae,dropPosition:1})?Rt=1:ne=!1,{dropPosition:Rt,dropLevelOffset:Qe,dropTargetKey:en.key,dropTargetPos:en.pos,dragOverNodeKey:qe,dropContainerKey:Rt===0?null:((_e=en.parent)===null||_e===void 0?void 0:_e.key)||null,dropAllowed:ne}}function We(Fe,Me){if(Fe){var Xe=Me.multiple;return Xe?Fe.slice():Fe.length?[Fe[0]]:Fe}}var ke=function(Me){return Me};function ot(Fe,Me){if(!Fe)return[];var Xe=Me||{},Je=Xe.processProps,$t=Je===void 0?ke:Je,ct=Array.isArray(Fe)?Fe:[Fe];return ct.map(function(Ye){var rt=Ye.children,Ce=_objectWithoutProperties(Ye,je),at=ot(rt,Me);return React.createElement(TreeNode,_extends({key:Ce.key},$t(Ce)),at)})}function yt(Fe){if(!Fe)return null;var Me;if(Array.isArray(Fe))Me={checkedKeys:Fe,halfCheckedKeys:void 0};else if((0,ze.Z)(Fe)==="object")Me={checkedKeys:Fe.checked||void 0,halfCheckedKeys:Fe.halfChecked||void 0};else return(0,fe.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return Me}function Nt(Fe,Me){var Xe=new Set;function Je($t){if(!Xe.has($t)){var ct=(0,xe.Z)(Me,$t);if(ct){Xe.add($t);var Ye=ct.parent,rt=ct.node;rt.disabled||Ye&&Je(Ye.key)}}}return(Fe||[]).forEach(function($t){Je($t)}),(0,b.Z)(Xe)}},34643:function(In,Qt,ee){"use strict";ee.d(Qt,{S:function(){return Ee}});var b=ee(48736),ze=ee(65065);function fe(je,Ie){var ue=new Set;return je.forEach(function(et){Ie.has(et)||ue.add(et)}),ue}function nt(je){var Ie=je||{},ue=Ie.disabled,et=Ie.disableCheckbox,Te=Ie.checkable;return!!(ue||et)||Te===!1}function Se(je,Ie,ue,et){for(var Te=new Set(je),At=new Set,lt=0;lt<=ue;lt+=1){var it=Ie.get(lt)||new Set;it.forEach(function(yt){var Nt=yt.key,Fe=yt.node,Me=yt.children,Xe=Me===void 0?[]:Me;Te.has(Nt)&&!et(Fe)&&Xe.filter(function(Je){return!et(Je.node)}).forEach(function(Je){Te.add(Je.key)})})}for(var We=new Set,ke=ue;ke>=0;ke-=1){var ot=Ie.get(ke)||new Set;ot.forEach(function(yt){var Nt=yt.parent,Fe=yt.node;if(!(et(Fe)||!yt.parent||We.has(yt.parent.key))){if(et(yt.parent.node)){We.add(Nt.key);return}var Me=!0,Xe=!1;(Nt.children||[]).filter(function(Je){return!et(Je.node)}).forEach(function(Je){var $t=Je.key,ct=Te.has($t);Me&&!ct&&(Me=!1),!Xe&&(ct||At.has($t))&&(Xe=!0)}),Me&&Te.add(Nt.key),Xe&&At.add(Nt.key),We.add(Nt.key)}})}return{checkedKeys:Array.from(Te),halfCheckedKeys:Array.from(fe(At,Te))}}function xe(je,Ie,ue,et,Te){for(var At=new Set(je),lt=new Set(Ie),it=0;it<=et;it+=1){var We=ue.get(it)||new Set;We.forEach(function(Nt){var Fe=Nt.key,Me=Nt.node,Xe=Nt.children,Je=Xe===void 0?[]:Xe;!At.has(Fe)&&!lt.has(Fe)&&!Te(Me)&&Je.filter(function($t){return!Te($t.node)}).forEach(function($t){At.delete($t.key)})})}lt=new Set;for(var ke=new Set,ot=et;ot>=0;ot-=1){var yt=ue.get(ot)||new Set;yt.forEach(function(Nt){var Fe=Nt.parent,Me=Nt.node;if(!(Te(Me)||!Nt.parent||ke.has(Nt.parent.key))){if(Te(Nt.parent.node)){ke.add(Fe.key);return}var Xe=!0,Je=!1;(Fe.children||[]).filter(function($t){return!Te($t.node)}).forEach(function($t){var ct=$t.key,Ye=At.has(ct);Xe&&!Ye&&(Xe=!1),!Je&&(Ye||lt.has(ct))&&(Je=!0)}),Xe||At.delete(Fe.key),Je&<.add(Fe.key),ke.add(Fe.key)}})}return{checkedKeys:Array.from(At),halfCheckedKeys:Array.from(fe(lt,At))}}function Ee(je,Ie,ue,et){var Te=[],At;et?At=et:At=nt;var lt=new Set(je.filter(function(ot){var yt=!!(0,ze.Z)(ue,ot);return yt||Te.push(ot),yt})),it=new Map,We=0;Object.keys(ue).forEach(function(ot){var yt=ue[ot],Nt=yt.level,Fe=it.get(Nt);Fe||(Fe=new Set,it.set(Nt,Fe)),Fe.add(yt),We=Math.max(We,Nt)}),(0,b.ZP)(!Te.length,"Tree missing follow keys: ".concat(Te.slice(0,100).map(function(ot){return"'".concat(ot,"'")}).join(", ")));var ke;return Ie===!0?ke=Se(lt,it,We,At):ke=xe(lt,Ie.halfCheckedKeys,it,We,At),ke}},65065:function(In,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return b}});function b(ze,fe){return ze[fe]}},34061:function(In,Qt,ee){"use strict";ee.d(Qt,{F:function(){return Nt},H8:function(){return yt},I8:function(){return ot},km:function(){return Te},oH:function(){return We},w$:function(){return At},zn:function(){return it}});var b=ee(43749),ze=ee(77654),fe=ee(85899),nt=ee(42244),Se=ee(11592),xe=ee(2738),Ee=ee(48736),je=ee(65065),Ie=["children"];function ue(Fe,Me){return"".concat(Fe,"-").concat(Me)}function et(Fe){return Fe&&Fe.type&&Fe.type.isTreeNode}function Te(Fe,Me){return Fe!=null?Fe:Me}function At(Fe){var Me=Fe||{},Xe=Me.title,Je=Me._title,$t=Me.key,ct=Me.children,Ye=Xe||"title";return{title:Ye,_title:Je||[Ye],key:$t||"key",children:ct||"children"}}function lt(Fe,Me){var Xe=new Map;function Je($t){var ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";($t||[]).forEach(function(Ye){var rt=Ye[Me.key],Ce=Ye[Me.children];warning(rt!=null,"Tree node must have a certain key: [".concat(ct).concat(rt,"]"));var at=String(rt);warning(!Xe.has(at)||rt===null||rt===void 0,"Same 'key' exist in the Tree: ".concat(at)),Xe.set(at,!0),Je(Ce,"".concat(ct).concat(at," > "))})}Je(Fe)}function it(Fe){function Me(Xe){var Je=(0,Se.Z)(Xe);return Je.map(function($t){if(!et($t))return(0,Ee.ZP)(!$t,"Tree/TreeNode can only accept TreeNode as children."),null;var ct=$t.key,Ye=$t.props,rt=Ye.children,Ce=(0,nt.Z)(Ye,Ie),at=(0,fe.Z)({key:ct},Ce),_e=Me(rt);return _e.length&&(at.children=_e),at}).filter(function($t){return $t})}return Me(Fe)}function We(Fe,Me,Xe){var Je=At(Xe),$t=Je._title,ct=Je.key,Ye=Je.children,rt=new Set(Me===!0?[]:Me),Ce=[];function at(_e){var de=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return _e.map(function(Et,He){for(var st=ue(de?de.pos:"0",He),Yt=Te(Et[ct],st),Oe,pe=0;pe<$t.length;pe+=1){var Lt=$t[pe];if(Et[Lt]!==void 0){Oe=Et[Lt];break}}var en=Object.assign((0,xe.Z)(Et,[].concat((0,ze.Z)($t),[ct,Ye])),{title:Oe,key:Yt,parent:de,pos:st,children:null,data:Et,isStart:[].concat((0,ze.Z)(de?de.isStart:[]),[He===0]),isEnd:[].concat((0,ze.Z)(de?de.isEnd:[]),[He===_e.length-1])});return Ce.push(en),Me===!0||rt.has(Yt)?en.children=at(Et[Ye]||[],en):en.children=[],en})}return at(Fe),Ce}function ke(Fe,Me,Xe){var Je={};(0,b.Z)(Xe)==="object"?Je=Xe:Je={externalGetKey:Xe},Je=Je||{};var $t=Je,ct=$t.childrenPropName,Ye=$t.externalGetKey,rt=$t.fieldNames,Ce=At(rt),at=Ce.key,_e=Ce.children,de=ct||_e,Et;Ye?typeof Ye=="string"?Et=function(Yt){return Yt[Ye]}:typeof Ye=="function"&&(Et=function(Yt){return Ye(Yt)}):Et=function(Yt,Oe){return Te(Yt[at],Oe)};function He(st,Yt,Oe,pe){var Lt=st?st[de]:Fe,en=st?ue(Oe.pos,Yt):"0",Ot=st?[].concat((0,ze.Z)(pe),[st]):[];if(st){var ge=Et(st,en),Ke={node:st,index:Yt,pos:en,key:ge,parentPos:Oe.node?Oe.pos:null,level:Oe.level+1,nodes:Ot};Me(Ke)}Lt&&Lt.forEach(function(tt,Wt){He(tt,Wt,{node:st,pos:en,level:Oe?Oe.level+1:-1},Ot)})}He(null)}function ot(Fe){var Me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Xe=Me.initWrapper,Je=Me.processEntity,$t=Me.onProcessFinished,ct=Me.externalGetKey,Ye=Me.childrenPropName,rt=Me.fieldNames,Ce=arguments.length>2?arguments[2]:void 0,at=ct||Ce,_e={},de={},Et={posEntities:_e,keyEntities:de};return Xe&&(Et=Xe(Et)||Et),ke(Fe,function(He){var st=He.node,Yt=He.index,Oe=He.pos,pe=He.key,Lt=He.parentPos,en=He.level,Ot=He.nodes,ge={node:st,nodes:Ot,index:Yt,key:pe,pos:Oe,level:en},Ke=Te(pe,Oe);_e[Oe]=ge,de[Ke]=ge,ge.parent=_e[Lt],ge.parent&&(ge.parent.children=ge.parent.children||[],ge.parent.children.push(ge)),Je&&Je(ge,Et)},{externalGetKey:at,childrenPropName:Ye,fieldNames:rt}),$t&&$t(Et),Et}function yt(Fe,Me){var Xe=Me.expandedKeys,Je=Me.selectedKeys,$t=Me.loadedKeys,ct=Me.loadingKeys,Ye=Me.checkedKeys,rt=Me.halfCheckedKeys,Ce=Me.dragOverNodeKey,at=Me.dropPosition,_e=Me.keyEntities,de=(0,je.Z)(_e,Fe),Et={eventKey:Fe,expanded:Xe.indexOf(Fe)!==-1,selected:Je.indexOf(Fe)!==-1,loaded:$t.indexOf(Fe)!==-1,loading:ct.indexOf(Fe)!==-1,checked:Ye.indexOf(Fe)!==-1,halfChecked:rt.indexOf(Fe)!==-1,pos:String(de?de.pos:""),dragOver:Ce===Fe&&at===0,dragOverGapTop:Ce===Fe&&at===-1,dragOverGapBottom:Ce===Fe&&at===1};return Et}function Nt(Fe){var Me=Fe.data,Xe=Fe.expanded,Je=Fe.selected,$t=Fe.checked,ct=Fe.loaded,Ye=Fe.loading,rt=Fe.halfChecked,Ce=Fe.dragOver,at=Fe.dragOverGapTop,_e=Fe.dragOverGapBottom,de=Fe.pos,Et=Fe.active,He=Fe.eventKey,st=(0,fe.Z)((0,fe.Z)({},Me),{},{expanded:Xe,selected:Je,checked:$t,loaded:ct,loading:Ye,halfChecked:rt,dragOver:Ce,dragOverGapTop:at,dragOverGapBottom:_e,pos:de,active:Et,key:He});return"props"in st||Object.defineProperty(st,"props",{get:function(){return(0,Ee.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),Fe}}),st}},8224:function(In,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return ze}});var b=ee(4676);function ze(fe,nt,Se,xe){var Ee=b.unstable_batchedUpdates?function(Ie){b.unstable_batchedUpdates(Se,Ie)}:Se;return fe!=null&&fe.addEventListener&&fe.addEventListener(nt,Ee,xe),{remove:function(){fe!=null&&fe.removeEventListener&&fe.removeEventListener(nt,Ee,xe)}}}},24514:function(In,Qt,ee){"use strict";ee.d(Qt,{G:function(){return nt}});var b=ee(47273),ze=function(xe){if((0,b.Z)()&&window.document.documentElement){var Ee=Array.isArray(xe)?xe:[xe],je=window.document.documentElement;return Ee.some(function(Ie){return Ie in je.style})}return!1},fe=function(xe,Ee){if(!ze(xe))return!1;var je=document.createElement("div"),Ie=je.style[xe];return je.style[xe]=Ee,je.style[xe]!==Ie};function nt(Se,xe){return!Array.isArray(Se)&&xe!==void 0?fe(Se,xe):ze(Se)}},48911:function(In,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return gt}});var b=ee(60499),ze=ee(43749),fe=ee(85899),nt=ee(18642),Se=ee(72190),xe=ee(42244),Ee=ee(92310),je=ee.n(Ee),Ie=ee(29301),ue=ee(70425),et=ee(34280),Te=ee(59301),At=ee(4676),lt=Te.forwardRef(function(ae,ne){var te=ae.height,oe=ae.offsetY,ce=ae.offsetX,re=ae.children,le=ae.prefixCls,be=ae.onInnerResize,ht=ae.innerProps,Le=ae.rtl,Ne=ae.extra,Ve={},Ge={display:"flex",flexDirection:"column"};return oe!==void 0&&(Ve={height:te,position:"relative",overflow:"hidden"},Ge=(0,fe.Z)((0,fe.Z)({},Ge),{},(0,nt.Z)((0,nt.Z)((0,nt.Z)((0,nt.Z)((0,nt.Z)({transform:"translateY(".concat(oe,"px)")},Le?"marginRight":"marginLeft",-ce),"position","absolute"),"left",0),"right",0),"top",0))),Te.createElement("div",{style:Ve},Te.createElement(Ie.Z,{onResize:function(we){var De=we.offsetHeight;De&&be&&be()}},Te.createElement("div",(0,b.Z)({style:Ge,className:je()((0,nt.Z)({},"".concat(le,"-holder-inner"),le)),ref:ne},ht),re,Ne)))});lt.displayName="Filler";var it=lt;function We(ae){var ne=ae.children,te=ae.setRef,oe=Te.useCallback(function(ce){te(ce)},[]);return Te.cloneElement(ne,{ref:oe})}function ke(ae,ne,te,oe,ce,re,le,be){var ht=be.getKey;return ae.slice(ne,te+1).map(function(Le,Ne){var Ve=ne+Ne,Ge=le(Le,Ve,{style:{width:oe},offsetX:ce}),pt=ht(Le);return Te.createElement(We,{key:pt,setRef:function(De){return re(Le,De)}},Ge)})}function ot(ae,ne,te,oe){var ce=te-ae,re=ne-te,le=Math.min(ce,re)*2;if(oe<=le){var be=Math.floor(oe/2);return oe%2?te+be+1:te-be}return ce>re?te-(oe-re):te+(oe-ce)}function yt(ae,ne,te){var oe=ae.length,ce=ne.length,re,le;if(oe===0&&ce===0)return null;oe<ce?(re=ae,le=ne):(re=ne,le=ae);var be={__EMPTY_ITEM__:!0};function ht(we){return we!==void 0?te(we):be}for(var Le=null,Ne=Math.abs(oe-ce)!==1,Ve=0;Ve<le.length;Ve+=1){var Ge=ht(re[Ve]),pt=ht(le[Ve]);if(Ge!==pt){Le=Ve,Ne=Ne||Ge!==ht(le[Ve+1]);break}}return Le===null?null:{index:Le,multiple:Ne}}function Nt(ae,ne,te){var oe=Te.useState(ae),ce=(0,Se.Z)(oe,2),re=ce[0],le=ce[1],be=Te.useState(null),ht=(0,Se.Z)(be,2),Le=ht[0],Ne=ht[1];return Te.useEffect(function(){var Ve=yt(re||[],ae||[],ne);(Ve==null?void 0:Ve.index)!==void 0&&(te==null||te(Ve.index),Ne(ae[Ve.index])),le(ae)},[ae]),[Le]}var Fe=ee(16089),Me=(typeof navigator=="undefined"?"undefined":(0,ze.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Xe=Me,Je=function(ae,ne,te,oe){var ce=(0,Te.useRef)(!1),re=(0,Te.useRef)(null);function le(){clearTimeout(re.current),ce.current=!0,re.current=setTimeout(function(){ce.current=!1},50)}var be=(0,Te.useRef)({top:ae,bottom:ne,left:te,right:oe});return be.current.top=ae,be.current.bottom=ne,be.current.left=te,be.current.right=oe,function(ht,Le){var Ne=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Ve=ht?Le<0&&be.current.left||Le>0&&be.current.right:Le<0&&be.current.top||Le>0&&be.current.bottom;return Ne&&Ve?(clearTimeout(re.current),ce.current=!1):(!Ve||ce.current)&&le(),!ce.current&&Ve}};function $t(ae,ne,te,oe,ce,re,le){var be=(0,Te.useRef)(0),ht=(0,Te.useRef)(null),Le=(0,Te.useRef)(null),Ne=(0,Te.useRef)(!1),Ve=Je(ne,te,oe,ce);function Ge(nn,Ut){if(Fe.Z.cancel(ht.current),!Ve(!1,Ut)){var St=nn;if(!St._virtualHandled)St._virtualHandled=!0;else return;be.current+=Ut,Le.current=Ut,Xe||St.preventDefault(),ht.current=(0,Fe.Z)(function(){var an=Ne.current?10:1;le(be.current*an,!1),be.current=0})}}function pt(nn,Ut){le(Ut,!0),Xe||nn.preventDefault()}var we=(0,Te.useRef)(null),De=(0,Te.useRef)(null);function Zt(nn){if(ae){Fe.Z.cancel(De.current),De.current=(0,Fe.Z)(function(){we.current=null},2);var Ut=nn.deltaX,St=nn.deltaY,an=nn.shiftKey,_t=Ut,$e=St;(we.current==="sx"||!we.current&&an&&St&&!Ut)&&(_t=St,$e=0,we.current="sx");var mt=Math.abs(_t),jt=Math.abs($e);we.current===null&&(we.current=re&&mt>jt?"x":"y"),we.current==="y"?Ge(nn,$e):pt(nn,_t)}}function Tt(nn){ae&&(Ne.current=nn.detail===Le.current)}return[Zt,Tt]}function ct(ae,ne,te,oe){var ce=Te.useMemo(function(){return[new Map,[]]},[ae,te.id,oe]),re=(0,Se.Z)(ce,2),le=re[0],be=re[1],ht=function(Ne){var Ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ne,Ge=le.get(Ne),pt=le.get(Ve);if(Ge===void 0||pt===void 0)for(var we=ae.length,De=be.length;De<we;De+=1){var Zt,Tt=ae[De],nn=ne(Tt);le.set(nn,De);var Ut=(Zt=te.get(nn))!==null&&Zt!==void 0?Zt:oe;if(be[De]=(be[De-1]||0)+Ut,nn===Ne&&(Ge=De),nn===Ve&&(pt=De),Ge!==void 0&&pt!==void 0)break}return{top:be[Ge-1]||0,bottom:be[pt]}};return ht}var Ye=ee(38705),rt=ee(17212),Ce=function(){function ae(){(0,Ye.Z)(this,ae),(0,nt.Z)(this,"maps",void 0),(0,nt.Z)(this,"id",0),(0,nt.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,rt.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}(),at=Ce;function _e(ae){var ne=parseFloat(ae);return isNaN(ne)?0:ne}function de(ae,ne,te){var oe=Te.useState(0),ce=(0,Se.Z)(oe,2),re=ce[0],le=ce[1],be=(0,Te.useRef)(new Map),ht=(0,Te.useRef)(new at),Le=(0,Te.useRef)(0);function Ne(){Le.current+=1}function Ve(){var pt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Ne();var we=function(){var Tt=!1;be.current.forEach(function(nn,Ut){if(nn&&nn.offsetParent){var St=nn.offsetHeight,an=getComputedStyle(nn),_t=an.marginTop,$e=an.marginBottom,mt=_e(_t),jt=_e($e),Jt=St+mt+jt;ht.current.get(Ut)!==Jt&&(ht.current.set(Ut,Jt),Tt=!0)}}),Tt&&le(function(nn){return nn+1})};if(pt)we();else{Le.current+=1;var De=Le.current;Promise.resolve().then(function(){De===Le.current&&we()})}}function Ge(pt,we){var De=ae(pt),Zt=be.current.get(De);we?(be.current.set(De,we),Ve()):be.current.delete(De),!Zt!=!we&&(we?ne==null||ne(pt):te==null||te(pt))}return(0,Te.useEffect)(function(){return Ne},[]),[Ge,Ve,ht.current,re]}var Et=14/15;function He(ae,ne,te){var oe=(0,Te.useRef)(!1),ce=(0,Te.useRef)(0),re=(0,Te.useRef)(0),le=(0,Te.useRef)(null),be=(0,Te.useRef)(null),ht,Le=function(pt){if(oe.current){var we=Math.ceil(pt.touches[0].pageX),De=Math.ceil(pt.touches[0].pageY),Zt=ce.current-we,Tt=re.current-De,nn=Math.abs(Zt)>Math.abs(Tt);nn?ce.current=we:re.current=De;var Ut=te(nn,nn?Zt:Tt,!1,pt);Ut&&pt.preventDefault(),clearInterval(be.current),Ut&&(be.current=setInterval(function(){nn?Zt*=Et:Tt*=Et;var St=Math.floor(nn?Zt:Tt);(!te(nn,St,!0)||Math.abs(St)<=.1)&&clearInterval(be.current)},16))}},Ne=function(){oe.current=!1,ht()},Ve=function(pt){ht(),pt.touches.length===1&&!oe.current&&(oe.current=!0,ce.current=Math.ceil(pt.touches[0].pageX),re.current=Math.ceil(pt.touches[0].pageY),le.current=pt.target,le.current.addEventListener("touchmove",Le,{passive:!1}),le.current.addEventListener("touchend",Ne,{passive:!0}))};ht=function(){le.current&&(le.current.removeEventListener("touchmove",Le),le.current.removeEventListener("touchend",Ne))},(0,et.Z)(function(){return ae&&ne.current.addEventListener("touchstart",Ve,{passive:!0}),function(){var Ge;(Ge=ne.current)===null||Ge===void 0||Ge.removeEventListener("touchstart",Ve),ht(),clearInterval(be.current)}},[ae])}function st(ae){return Math.floor(Math.pow(ae,.5))}function Yt(ae,ne){var te="touches"in ae?ae.touches[0]:ae;return te[ne?"pageX":"pageY"]-window[ne?"scrollX":"scrollY"]}function Oe(ae,ne,te){Te.useEffect(function(){var oe=ne.current;if(ae&&oe){var ce=!1,re,le,be=function(){Fe.Z.cancel(re)},ht=function Ge(){be(),re=(0,Fe.Z)(function(){te(le),Ge()})},Le=function(){ce=!1,be()},Ne=function(pt){if(!(pt.target.draggable||pt.button!==0)){var we=pt;we._virtualHandled||(we._virtualHandled=!0,ce=!0)}},Ve=function(pt){if(ce){var we=Yt(pt,!1),De=oe.getBoundingClientRect(),Zt=De.top,Tt=De.bottom;if(we<=Zt){var nn=Zt-we;le=-st(nn),ht()}else if(we>=Tt){var Ut=we-Tt;le=st(Ut),ht()}else be()}};return oe.addEventListener("mousedown",Ne),oe.ownerDocument.addEventListener("mouseup",Le),oe.ownerDocument.addEventListener("mousemove",Ve),oe.ownerDocument.addEventListener("dragend",Le),function(){oe.removeEventListener("mousedown",Ne),oe.ownerDocument.removeEventListener("mouseup",Le),oe.ownerDocument.removeEventListener("mousemove",Ve),oe.ownerDocument.removeEventListener("dragend",Le),be()}}},[ae])}var pe=10;function Lt(ae,ne,te,oe,ce,re,le,be){var ht=Te.useRef(),Le=Te.useState(null),Ne=(0,Se.Z)(Le,2),Ve=Ne[0],Ge=Ne[1];return(0,et.Z)(function(){if(Ve&&Ve.times<pe){if(!ae.current){Ge(function(gn){return(0,fe.Z)({},gn)});return}re();var pt=Ve.targetAlign,we=Ve.originAlign,De=Ve.index,Zt=Ve.offset,Tt=ae.current.clientHeight,nn=!1,Ut=pt,St=null;if(Tt){for(var an=pt||we,_t=0,$e=0,mt=0,jt=Math.min(ne.length-1,De),Jt=0;Jt<=jt;Jt+=1){var Be=ce(ne[Jt]);$e=_t;var ft=te.get(Be);mt=$e+(ft===void 0?oe:ft),_t=mt}for(var Dt=an==="top"?Zt:Tt-Zt,Vt=jt;Vt>=0;Vt-=1){var un=ce(ne[Vt]),En=te.get(un);if(En===void 0){nn=!0;break}if(Dt-=En,Dt<=0)break}switch(an){case"top":St=$e-Zt;break;case"bottom":St=mt-Tt+Zt;break;default:{var Mn=ae.current.scrollTop,Fn=Mn+Tt;$e<Mn?Ut="top":mt>Fn&&(Ut="bottom")}}St!==null&&le(St),St!==Ve.lastTop&&(nn=!0)}nn&&Ge((0,fe.Z)((0,fe.Z)({},Ve),{},{times:Ve.times+1,targetAlign:Ut,lastTop:St}))}},[Ve,ae.current]),function(pt){if(pt==null){be();return}if(Fe.Z.cancel(ht.current),typeof pt=="number")le(pt);else if(pt&&(0,ze.Z)(pt)==="object"){var we,De=pt.align;"index"in pt?we=pt.index:we=ne.findIndex(function(nn){return ce(nn)===pt.key});var Zt=pt.offset,Tt=Zt===void 0?0:Zt;Ge({times:0,index:we,offset:Tt,originAlign:De})}}}var en=Te.forwardRef(function(ae,ne){var te=ae.prefixCls,oe=ae.rtl,ce=ae.scrollOffset,re=ae.scrollRange,le=ae.onStartMove,be=ae.onStopMove,ht=ae.onScroll,Le=ae.horizontal,Ne=ae.spinSize,Ve=ae.containerSize,Ge=ae.style,pt=ae.thumbStyle,we=ae.showScrollBar,De=Te.useState(!1),Zt=(0,Se.Z)(De,2),Tt=Zt[0],nn=Zt[1],Ut=Te.useState(null),St=(0,Se.Z)(Ut,2),an=St[0],_t=St[1],$e=Te.useState(null),mt=(0,Se.Z)($e,2),jt=mt[0],Jt=mt[1],Be=!oe,ft=Te.useRef(),Dt=Te.useRef(),Vt=Te.useState(we),un=(0,Se.Z)(Vt,2),En=un[0],Mn=un[1],Fn=Te.useRef(),gn=function(){we===!0||we===!1||(clearTimeout(Fn.current),Mn(!0),Fn.current=setTimeout(function(){Mn(!1)},3e3))},kn=re-Ve||0,dn=Ve-Ne||0,zt=Te.useMemo(function(){if(ce===0||kn===0)return 0;var hn=ce/kn;return hn*dn},[ce,kn,dn]),rn=function(Zn){Zn.stopPropagation(),Zn.preventDefault()},on=Te.useRef({top:zt,dragging:Tt,pageY:an,startTop:jt});on.current={top:zt,dragging:Tt,pageY:an,startTop:jt};var Xt=function(Zn){nn(!0),_t(Yt(Zn,Le)),Jt(on.current.top),le(),Zn.stopPropagation(),Zn.preventDefault()};Te.useEffect(function(){var hn=function(tr){tr.preventDefault()},Zn=ft.current,Wn=Dt.current;return Zn.addEventListener("touchstart",hn,{passive:!1}),Wn.addEventListener("touchstart",Xt,{passive:!1}),function(){Zn.removeEventListener("touchstart",hn),Wn.removeEventListener("touchstart",Xt)}},[]);var vn=Te.useRef();vn.current=kn;var pn=Te.useRef();pn.current=dn,Te.useEffect(function(){if(Tt){var hn,Zn=function(tr){var sn=on.current,yn=sn.dragging,zn=sn.pageY,Hn=sn.startTop;Fe.Z.cancel(hn);var ut=ft.current.getBoundingClientRect(),Pt=Ve/(Le?ut.width:ut.height);if(yn){var Re=(Yt(tr,Le)-zn)*Pt,vt=Hn;!Be&&Le?vt-=Re:vt+=Re;var Ze=vn.current,bt=pn.current,Pe=bt?vt/bt:0,It=Math.ceil(Pe*Ze);It=Math.max(It,0),It=Math.min(It,Ze),hn=(0,Fe.Z)(function(){ht(It,Le)})}},Wn=function(){nn(!1),be()};return window.addEventListener("mousemove",Zn,{passive:!0}),window.addEventListener("touchmove",Zn,{passive:!0}),window.addEventListener("mouseup",Wn,{passive:!0}),window.addEventListener("touchend",Wn,{passive:!0}),function(){window.removeEventListener("mousemove",Zn),window.removeEventListener("touchmove",Zn),window.removeEventListener("mouseup",Wn),window.removeEventListener("touchend",Wn),Fe.Z.cancel(hn)}}},[Tt]),Te.useEffect(function(){return gn(),function(){clearTimeout(Fn.current)}},[ce]),Te.useImperativeHandle(ne,function(){return{delayHidden:gn}});var wn="".concat(te,"-scrollbar"),$n={position:"absolute",visibility:En?null:"hidden"},xn={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return Le?(Object.assign($n,{height:8,left:0,right:0,bottom:0}),Object.assign(xn,(0,nt.Z)({height:"100%",width:Ne},Be?"left":"right",zt))):(Object.assign($n,(0,nt.Z)({width:8,top:0,bottom:0},Be?"right":"left",0)),Object.assign(xn,{width:"100%",height:Ne,top:zt})),Te.createElement("div",{ref:ft,className:je()(wn,(0,nt.Z)((0,nt.Z)((0,nt.Z)({},"".concat(wn,"-horizontal"),Le),"".concat(wn,"-vertical"),!Le),"".concat(wn,"-visible"),En)),style:(0,fe.Z)((0,fe.Z)({},$n),Ge),onMouseDown:rn,onMouseMove:gn},Te.createElement("div",{ref:Dt,className:je()("".concat(wn,"-thumb"),(0,nt.Z)({},"".concat(wn,"-thumb-moving"),Tt)),style:(0,fe.Z)((0,fe.Z)({},xn),pt),onMouseDown:Xt}))}),Ot=en,ge=20;function Ke(){var ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,te=ae/ne*ae;return isNaN(te)&&(te=0),te=Math.max(te,ge),Math.floor(te)}var tt=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Wt=[],qe={overflowY:"auto",overflowAnchor:"none"};function Rt(ae,ne){var te=ae.prefixCls,oe=te===void 0?"rc-virtual-list":te,ce=ae.className,re=ae.height,le=ae.itemHeight,be=ae.fullHeight,ht=be===void 0?!0:be,Le=ae.style,Ne=ae.data,Ve=ae.children,Ge=ae.itemKey,pt=ae.virtual,we=ae.direction,De=ae.scrollWidth,Zt=ae.component,Tt=Zt===void 0?"div":Zt,nn=ae.onScroll,Ut=ae.onVirtualScroll,St=ae.onVisibleChange,an=ae.innerProps,_t=ae.extraRender,$e=ae.styles,mt=ae.showScrollBar,jt=mt===void 0?"optional":mt,Jt=(0,xe.Z)(ae,tt),Be=Te.useCallback(function(Nn){return typeof Ge=="function"?Ge(Nn):Nn==null?void 0:Nn[Ge]},[Ge]),ft=de(Be,null,null),Dt=(0,Se.Z)(ft,4),Vt=Dt[0],un=Dt[1],En=Dt[2],Mn=Dt[3],Fn=!!(pt!==!1&&re&&le),gn=Te.useMemo(function(){return Object.values(En.maps).reduce(function(Nn,Kn){return Nn+Kn},0)},[En.id,En.maps]),kn=Fn&&Ne&&(Math.max(le*Ne.length,gn)>re||!!De),dn=we==="rtl",zt=je()(oe,(0,nt.Z)({},"".concat(oe,"-rtl"),dn),ce),rn=Ne||Wt,on=(0,Te.useRef)(),Xt=(0,Te.useRef)(),vn=(0,Te.useRef)(),pn=(0,Te.useState)(0),wn=(0,Se.Z)(pn,2),$n=wn[0],xn=wn[1],hn=(0,Te.useState)(0),Zn=(0,Se.Z)(hn,2),Wn=Zn[0],ir=Zn[1],tr=(0,Te.useState)(!1),sn=(0,Se.Z)(tr,2),yn=sn[0],zn=sn[1],Hn=function(){zn(!0)},ut=function(){zn(!1)},Pt={getKey:Be};function Re(Nn){xn(function(Kn){var Vn;typeof Nn=="function"?Vn=Nn(Kn):Vn=Nn;var Bn=Er(Vn);return on.current.scrollTop=Bn,Bn})}var vt=(0,Te.useRef)({start:0,end:rn.length}),Ze=(0,Te.useRef)(),bt=Nt(rn,Be),Pe=(0,Se.Z)(bt,1),It=Pe[0];Ze.current=It;var Bt=Te.useMemo(function(){if(!Fn)return{scrollHeight:void 0,start:0,end:rn.length-1,offset:void 0};if(!kn){var Nn;return{scrollHeight:((Nn=Xt.current)===null||Nn===void 0?void 0:Nn.offsetHeight)||0,start:0,end:rn.length-1,offset:void 0}}for(var Kn=0,Vn,Bn,lr,br=rn.length,jn=0;jn<br;jn+=1){var Ln=rn[jn],Gn=Be(Ln),nr=En.get(Gn),Qr=Kn+(nr===void 0?le:nr);Qr>=$n&&Vn===void 0&&(Vn=jn,Bn=Kn),Qr>$n+re&&lr===void 0&&(lr=jn),Kn=Qr}return Vn===void 0&&(Vn=0,Bn=0,lr=Math.ceil(re/le)),lr===void 0&&(lr=rn.length-1),lr=Math.min(lr+1,rn.length-1),{scrollHeight:Kn,start:Vn,end:lr,offset:Bn}},[kn,Fn,$n,rn,Mn,re]),Kt=Bt.scrollHeight,Ct=Bt.start,xt=Bt.end,wt=Bt.offset;vt.current.start=Ct,vt.current.end=xt,Te.useLayoutEffect(function(){var Nn=En.getRecord();if(Nn.size===1){var Kn=Array.from(Nn.keys())[0],Vn=Nn.get(Kn),Bn=rn[Ct];if(Bn&&Vn===void 0){var lr=Be(Bn);if(lr===Kn){var br=En.get(Kn),jn=br-le;Re(function(Ln){return Ln+jn})}}}En.resetRecord()},[Kt]);var Ft=Te.useState({width:0,height:re}),Tn=(0,Se.Z)(Ft,2),On=Tn[0],An=Tn[1],er=function(Kn){An({width:Kn.offsetWidth,height:Kn.offsetHeight})},sr=(0,Te.useRef)(),fr=(0,Te.useRef)(),Qn=Te.useMemo(function(){return Ke(On.width,De)},[On.width,De]),Xn=Te.useMemo(function(){return Ke(On.height,Kt)},[On.height,Kt]),Jn=Kt-re,ur=(0,Te.useRef)(Jn);ur.current=Jn;function Er(Nn){var Kn=Nn;return Number.isNaN(ur.current)||(Kn=Math.min(Kn,ur.current)),Kn=Math.max(Kn,0),Kn}var Cr=$n<=0,wr=$n>=Jn,Yn=Wn<=0,yr=Wn>=De,mr=Je(Cr,wr,Yn,yr),_r=function(){return{x:dn?-Wn:Wn,y:$n}},Yr=(0,Te.useRef)(_r()),Vr=(0,ue.zX)(function(Nn){if(Ut){var Kn=(0,fe.Z)((0,fe.Z)({},_r()),Nn);(Yr.current.x!==Kn.x||Yr.current.y!==Kn.y)&&(Ut(Kn),Yr.current=Kn)}});function Ur(Nn,Kn){var Vn=Nn;Kn?((0,At.flushSync)(function(){ir(Vn)}),Vr()):Re(Vn)}function oi(Nn){var Kn=Nn.currentTarget.scrollTop;Kn!==$n&&Re(Kn),nn==null||nn(Nn),Vr()}var Zr=function(Kn){var Vn=Kn,Bn=De?De-On.width:0;return Vn=Math.max(Vn,0),Vn=Math.min(Vn,Bn),Vn},Jr=(0,ue.zX)(function(Nn,Kn){Kn?((0,At.flushSync)(function(){ir(function(Vn){var Bn=Vn+(dn?-Nn:Nn);return Zr(Bn)})}),Vr()):Re(function(Vn){var Bn=Vn+Nn;return Bn})}),Or=$t(Fn,Cr,wr,Yn,yr,!!De,Jr),ti=(0,Se.Z)(Or,2),ci=ti[0],Fi=ti[1];He(Fn,on,function(Nn,Kn,Vn,Bn){var lr=Bn;return mr(Nn,Kn,Vn)?!1:!lr||!lr._virtualHandled?(lr&&(lr._virtualHandled=!0),ci({preventDefault:function(){},deltaX:Nn?Kn:0,deltaY:Nn?0:Kn}),!0):!1}),Oe(kn,on,function(Nn){Re(function(Kn){return Kn+Nn})}),(0,et.Z)(function(){function Nn(Vn){var Bn=Cr&&Vn.detail<0,lr=wr&&Vn.detail>0;Fn&&!Bn&&!lr&&Vn.preventDefault()}var Kn=on.current;return Kn.addEventListener("wheel",ci,{passive:!1}),Kn.addEventListener("DOMMouseScroll",Fi,{passive:!0}),Kn.addEventListener("MozMousePixelScroll",Nn,{passive:!1}),function(){Kn.removeEventListener("wheel",ci),Kn.removeEventListener("DOMMouseScroll",Fi),Kn.removeEventListener("MozMousePixelScroll",Nn)}},[Fn,Cr,wr]),(0,et.Z)(function(){if(De){var Nn=Zr(Wn);ir(Nn),Vr({x:Nn})}},[On.width,De]);var vi=function(){var Kn,Vn;(Kn=sr.current)===null||Kn===void 0||Kn.delayHidden(),(Vn=fr.current)===null||Vn===void 0||Vn.delayHidden()},xi=Lt(on,rn,En,le,Be,function(){return un(!0)},Re,vi);Te.useImperativeHandle(ne,function(){return{nativeElement:vn.current,getScrollInfo:_r,scrollTo:function(Kn){function Vn(Bn){return Bn&&(0,ze.Z)(Bn)==="object"&&("left"in Bn||"top"in Bn)}Vn(Kn)?(Kn.left!==void 0&&ir(Zr(Kn.left)),xi(Kn.top)):xi(Kn)}}}),(0,et.Z)(function(){if(St){var Nn=rn.slice(Ct,xt+1);St(Nn,rn)}},[Ct,xt,rn]);var hi=ct(rn,Be,En,le),bi=_t==null?void 0:_t({start:Ct,end:xt,virtual:kn,offsetX:Wn,offsetY:wt,rtl:dn,getSize:hi}),Rr=ke(rn,Ct,xt,De,Wn,Vt,Ve,Pt),Lr=null;re&&(Lr=(0,fe.Z)((0,nt.Z)({},ht?"height":"maxHeight",re),qe),Fn&&(Lr.overflowY="hidden",De&&(Lr.overflowX="hidden"),yn&&(Lr.pointerEvents="none")));var cr={};return dn&&(cr.dir="rtl"),Te.createElement("div",(0,b.Z)({ref:vn,style:(0,fe.Z)((0,fe.Z)({},Le),{},{position:"relative"}),className:zt},cr,Jt),Te.createElement(Ie.Z,{onResize:er},Te.createElement(Tt,{className:"".concat(oe,"-holder"),style:Lr,ref:on,onScroll:oi,onMouseEnter:vi},Te.createElement(it,{prefixCls:oe,height:Kt,offsetX:Wn,offsetY:wt,scrollWidth:De,onInnerResize:un,ref:Xt,innerProps:an,rtl:dn,extra:bi},Rr))),kn&&Kt>re&&Te.createElement(Ot,{ref:sr,prefixCls:oe,scrollOffset:$n,scrollRange:Kt,rtl:dn,onScroll:Ur,onStartMove:Hn,onStopMove:ut,spinSize:Xn,containerSize:On.height,style:$e==null?void 0:$e.verticalScrollBar,thumbStyle:$e==null?void 0:$e.verticalScrollBarThumb,showScrollBar:jt}),kn&&De>On.width&&Te.createElement(Ot,{ref:fr,prefixCls:oe,scrollOffset:Wn,scrollRange:De,rtl:dn,onScroll:Ur,onStartMove:Hn,onStopMove:ut,spinSize:Qn,containerSize:On.width,horizontal:!0,style:$e==null?void 0:$e.horizontalScrollBar,thumbStyle:$e==null?void 0:$e.horizontalScrollBarThumb,showScrollBar:jt}))}var Qe=Te.forwardRef(Rt);Qe.displayName="List";var tn=Qe,gt=tn},4977:function(In){"use strict";In.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqfTXADBq4byCJLf82Nf3kA3OfD9LgKdgeCzZ4CUTJ1VKQFyKQgpmeMSjiKvQC+oplspN/wOMDcBVFv0Bo+KwYJ4VE50H3Jg7j6CWzkEX74A3MrSgTfeKZpSaBCHcAVn/JunBHlFPDR5BkG9LMjPt7mZLOtbskQADea9wqOW9coqiGHlRPcHBxYcJriQQvB9P+v2cqCwWFxgoOJk6JeTNX4HmJMAHv6xP4/6VXw/+OxNx/bM/pIohdUE9VW/VxwjOHiJYO5A6xolpGSpYW3jIW4w/A8wM+h+UHSY2pvHgzV9NXymeor0wPc7Cf7XzWJ/4Nsm+Ly2LzZx+OwZ3yuVbzhNsPEMwcI3rM8wMikHiURi5gNbbQoKrc84zpjkj2eYzQC6f96DomUd305ctrp8tp5gSk/f1utzlFhUOHYthy9f8D1gdpwnWHiEYOVQ6zNM6QM/AY+CImHnF9YtfwTMCgB9P+5G0SHa9xP3bk2gT9cBU3r6Hjp95nBYNcz3gDlwkRhX843vlfS59PmFHfjFzgC/2pJ1nEEnEIpIAG+834Wia2Ox7PJ8wt0twLz7J8Gsl3zf316zCVYPsz5oe85F1yUcu0YwcQPBjlElZyjL8wsrQeyBn+XxK8DETqefgyACFCPe6kjxfDPfT6C7BpilBLMG+L6/A34h+P1VikCZ60nuTYpzN4AxqznjCqPOMZ1RSp9f2OVLYZH1lbOrNvjVlswIGEAKYOyrj1K82NL3E+huAWbEMnbFSn1+Qzd4AcE3fajPZV6X04D3lnHGM4xOawKFJwLLYiD5H2AoCkHwJQMLA42v090CzJjVBBN7UCh8rN3AgDrqCYq6lX3L6RQ1MGQRhwWvA7UrALbnFzCJjOhG+d2WjFCkUYKZPZpSDIv1PWDGrycY34NCahI0+yxN/Ivg3c4UlUN8VqWxok/XEfRrSdG0tm/rzcoHBv7KYc5AILqqLWDcOb/45RmGEFyhFL8/0Yga33y+Tl9uJhjxOEVIoG9rnrqVKSJSRFb0fb3tG1A81sC39TLRSu85HL57Eaii0Bm3oqEKqZXSJaUURUxTU0Tyuy0ZAc5SYCUbxE+6+x4w3+0kGNiWooqP3/Qz9xB0bUTRsLqI2eEFUlbvA9WBJxv5ltdMit9jFocpLwB1InQIkBEQTmLUHStOBoMBOr24K2+/AwwPHOKArS2iKCY9VzKIg34jyMgTv6f1wpwqL8JLHKgUTLHwjZIxZTKg0V2Bzg2tLzvYBYA75xe/25J1mkEnGAzYyXE40KQmMK23uLeLN8b1j0ME7epTxFTzRmnCy/jzXyCqIny+NVryDzFeKfd+xLcrDOMMO8MMfgx45iFrOZA7AstiTvvVoZ91usM3tClHcLpeZWDmAN8DZtlRgkY1KJr5+BC87hQQLAeebCwcZN6gXH6MgG2P+rfyDmD+WLoV8xZugkIRiNh2TTHghcfRoF4tFBZpkXgpGQ81rmdu9puLOLzwMPBYPR1Cgzw/v7CC/WpLxjrc/jtaT2LApRrhwC+DfA+Y9aeI0dKzbT3vTCChk3r7eaBABzzfTGgO79CtPUmM9b7U2jv9bf3kOyjSlihLcoSg93MdkZ2Th227j2Hoq8/inTeeNzZ+xFIOsTHAsw/pAeL5+cUvAdPuG1pVRnArQgEsGex7wGw7RxAgBTo19M4EEjqtD1wEkrPYm15oDu/QbfkPSM0hHsu8du0/gSnfLkFGVrbThjFLynULJ6FOZHUw2RNbyd/qUJLFHZV+ywr9aksWO4Ou0BK8KueRz/bVq++CUuD+RGbhB3R/0LeAOZEEnFIRvPGYb+vdGw+cvU7w3uOe1dv+mfeRk5svCMUfvz8AA3o9jgkbCJQVgPe7lGTz5MDvj4f+VXs/JH1ip1PmAkHy17u8z42bjl4lxjf9C809m0CCZo4FUVwKsDPOJLz0ZTp6Fdh6jtnWe1bvuCm/4q/tRwQ1/b03e2LIwGfw1RaCkADg425AOvPkYCHZd0cG43dbsk4zaDFgWHiHcG85wjBQoEhnMhAzf5r/Jihkf9/+fjXDtDXqGA108+Eqcy0DYAfwMU95NnEFzVgLovibwK8HCab19qze61s24Pf5K7A5KwB5vHM1CblMij9m/Q87rtc1jsek54CMPIBayGD0BgP0ImUw/gwYFiqjllhHGAcvAkuPcijU8cgv0KGgSGv8LNJqweu1MOh14A3ss+S78W+Dzuo3RsPoTy0YgIjQALFz0C36tBzg570EE3p4NnHFVn5TA0zaSPDzy57Vu2bIS6jF67BDHYBHgnVI0kow+6ZjLyZNm9RD+35jkZINfNO7ZIVhEn+e16NQ6157/OqWjJ1h9n1IXoydTi8AeGD+KzxqinCEsfkswfBJC2HQacXOG7v0B+e9CGXVUK+U5aoQdm5iE3eqh296R/XoDEBu0e3/hcz3FzF+Z292trI91Zgav7N2tKrDrrfFTdgTI4dAl61BipZDDXYINRCMvBrusNvBikAMHT8LTM3/pwElK4xMAuQV6uBuKK4yA5hEVfY8SvmmHCETGyjDtzqbQLHf0KMgaCnWEcaW/whGT1mAHHZP6oW09bueaFy3khdKcl0EO+y+v4xgphs2MWxbs+K46bLCDIoi6+9iVLKY4PbTp8UB5t8h/UB53qimz1aJA9lyLExz7H1vyMCnUa15L/x9EfhtkIk/nh74y9ShPz5JnUGA26qFZIdcTofWqR5xxd5Uip1O9wDoJNYRxs4LBB9PXYxUdaHrGSqAYuWUp9GmSQ0BlN4h8cTq8qVfOGgKStpBeAoJb4DEYPrPsU89b/5e/LvEYPubLCIQX06NEtWpfwa/yA4h0FEgqVCK71OCUeTARdLLfbpg9PAXsfGsBBtOA0uHmKpyV0PZsqFl5lo5QaXWgRqNw4pTHiEYGa2M+KX0yMROpxsA9BDrCGNvAsG4GcuQdMt45eJx+nXsk3iyNbOY9k161wOry8/GqZCr1t4GBA/O3T0Nm7gSDl/89IBRHiU0nRk3CgU3knEmT4pZN51rrjI5TN2oGmCOMP44BKx7B8jINemP8ZRCK2Y5LNXAMrMlS0hSpwKw9TRGME+XHf5ekybEfPCInU7/BDBArCOMw5cIPvt+JRJUGqHj7JRu2rsd0P+JGBuanELTTVpwwO3/cnjFxNcTwMz95hquxud5pd+skIEfR6NJA+F2y6o1S3Fj4xpj/X9lBmK7OsDuChMUKMf+v36AXC4Fc4QxYwew/X0gM8/k5VKvN0BvcF9gfc8CJuGWuh4twgoQnJSBzK+nDP+3eLTsBahJSNL8DdD29kaUAFsDSU4vpVJp3FTETqdzAbwl1hHGySSCCTPX41RimlcmzthBrTCsV1Obss5cJ2hWXQupTIoiHUW+1nRYZkcn5kRbTzlIOQq5hBmimfRu2RwoeU4gl5rAFiI3Odpmb/NRK0zXu+zgKzZtWZWK/VvTxWZzSP/EK5HoEivcxsFQWIBzk8caVxmWmMT+g6thNlfMg/p1xYfv9DXSMEcYEzYAu247wnBXQ9myE/fslixRpf6FUgw2N5bgDChmk6Lw33MMqkqlg8JeVKmn8hRjHI0QIdgbiJynGWhiZ9AZoPhgaEeK50Q4wmDCvwmzt+HwGe8EcH67V1N8MshWV4UBpnlNLQID3Lcn5nkKrZ6iUEex4azEqC08di0BW1XDgsTP+2NHsrH6F+/0m9Xetns1PN9b3IWHPi8XyetXIOPoEeg1WbhYKMGK9CCoiiSoWq0SnuvWzqhLVuyoz+wI411mmi3epZI9Lt2zgElIUht9INtpdDJPMUsSGf59NCFFxc8TknI6AoZ9LqbCmj+V4X33zMAEAOMHtaXoJ0KLVpUJjJuzD3v+vSh+xtnJ0ffxaMwY0dHuCtO8pg6BAcK3LI4axCTai/4hRsBM3kww5DGK6o5vYx32S52pw9QxbEi8k6o2DMeoj2q5VVhqNnB29JsI0TP5M6Dj5Gg7dwmkpVZOsyOMtyg4joDyBhRq3d+Osbru3S2ZSp0LCmf+9ZM5CUY3qBWx3LREUy5RpbkKQOl0FAimvrksPAME08Q6wmD74DGz/8H2A/+5NdClM8U2r4VFE7rZBcwjtXQIkHsOGLbSLP7XBJhvdxD0fJiinhs+pVk5n41IBM/UFryQSHggvpxRooovpsgdFwjoD8MQri3ZIso/XYzm9a2FwDfUAFPxX/AaRYSCeCR/KW7fvQuYJE0RQF3vSQh2UQn3bsOaYXEJSZrPADrJBfP5BceCVx+4LO0r1hGG3gC8//Np/LXrmJjxdUhbv1YE9vzU22eAmbOPBRmieNCNFzvP8/jhaxVSL3vn4M9zBJN/bgSZgJsyplZ0KQ24oSZgq8vmE4V4+9hrkNIS8O5uPhbNOz+CprWpWRhd7Ahj9svMYM871rT38pbM/q2XvelHoeU4bpxBgt+Jjr8MAqfi80NXZEW/H1UEuOMIY/zCRPyxZr9XABMSJMP5pbelahYlsjNMi1p6402Pp8lyhWEhIBpVp2hdV1yp6nwgPAhYvzQF/+zOEpfZCfXgz6LRIMrxKsq0B5YcKsL6UxRFvBygelBdLjhZGMCx/RfTKWMCUGZzbAClvJEmtiGH97oEGLdhzBHGjL4UDyvLOmBUmn9AaamAay7GimAXgdErzG1RlX36k9el+PlgsPFtK9YRxtwtNzBl7havTZoLywYhuJRbSCNgauvBlAg9TQYDjyVHOeOWbOVxoEoo0Mn2JttpNZvOcmhfn0KTXoTr8TlITSnCrRSt8TMvV7gj79KVPDskCo+1tb/rZkLScavzcTlTARBrZUu+MB1coHNHZ8rQXEzvH4T+8yWY9DzQrj6QptFDzzRlPUj37JbM5pZMeCfZK5CNgsPt3PlbEny3LwSlHWEIqWLzcTWGfbFaCKkgml0zeyNaaa3QdqcAs+msSa2k+4OCmmYm2nyWQ98W9idabo4eqSla3EopMn6m3mRgKkJ6KlM6dV5Plz418ES3CjZE7Ar9w2X5UGXbv3bmC1NBAiqBEOf34zFhKlzLq40PuxK0i8qFutBzRdd7FjDx1zSDCKELxA2tmZoyyztqqc9tUdDlDAm+2hUCdxxhHIwrwOAJy5EvIkSCsz78Nq4rnmhpfU/BANOytgEydwQmpSpjQro/b68we+JNArzej4jjKouz0q+luDwGAzWCxnI1Kr0qPfpEZTzXv6pVwUzf6+MVBTiX6vi+hxoKQfUF4AJswWZZGF+UCUN2IsYMaINnbcVd4jp0m/qePcNcvJlTldcaUm5vVN3qnKNM1zUcJm4LhTuOMP65qMWYGWtxJcU76jGT3nwUrz1j7ZnCCBilAbLS96RucIFJtv88ZpLD/HMZSEgFXmkrrqANp2yjEYsroYRar6f44I3zxh9qNwnH8FHWNxBLj2ix6F85SKltmGV9lBrAF6RConCuh8fotCn7MSC2Fob3ELkPddDBexYwrL2JSZqtFPQpdwfHUT7mf+zjTWFwxxHG8St6zPhtCw6cZXcSnqdhLzTF2FethZcMMK2UBki9DBgmbz18mYAJbMUk5shiYBsxORzT5ucZ8PHbcUaC4OpBGDe55AbiShqP9/40gHLOt058UZbxXMPJnQuUKK+DLi8DEs0R/PJBLIIVwjULHPXgnt2SsQbHq7JeIJSYFIi8mNgeeeT6cFRQAItFOsL4L5li0do9WLrLriK06FZ2e7QO5v3PwugcgDcBo9MbsPT2CnMxFcYwdiNFuMhlKjcs/J23AMMEoONHJhj5JA2T44tvS2TTo5cX4kKqY5X9YuYacq9CEhzlMngmr8uGQasFLUpDPcUV/DCiKwrcNBwrrvueBsyKFVTSvG32aQraRPRMdJKBWaa+vSrcqNAo1hEGsyD8Y/1R/LzmjFea1EBZAbtn9rIqywiYSB5Siecey3U6A5YeN23JmCCPORIcK8IWhV0ps1Wpj8hzjyPmsDPN5P+ZNCWInMOXPz9g/PtgohZfbpEZ3SE5TxSGXBUkIa61vPnCDLCzFEuGrOMY1q02Xunq2VS6p7dkrKOJ17N7UAPP1PG9moatCoOBJ9go0hEGe+P+vC4e3yw84JX2VAoLxMmFL9sApnUkD4kXAKPV6bHsuNQIGDb5p28nmCwixmZSJnA5jeCZh1x3NzfpKi7M/xlFGRmo0qoNqnfohPAG1mcH1dUCfDP+sqkwjuCreY2Mf478swiJGa6V3Az518EFVgHhXMu0DYUZ4G8Dhuqy0Sg0EfM+8myHf88DhjEzIUmzAaA9XA+ZcIqR60KRp+XgjiOM3Sdu4s0vtyAkSIrgQCmCg6QIYZ+BMuPf7Dfzs9vP2bPi34ICZTh2szJ6NM41HuyrV7f2G8tWmNZRPCSc5yuMJWCYGcjHawm+7Sv8DPPfdSBfS9C5oWveHhg+GFqNyfRBEhgIeWgY2kz7AZysRDh5KT4fP0y5vZ0lwBdzGoO9FwbOK4S6KMDpCkP1eaD6fCNghCSDNhe8zmTsVznrMD59XIGa7Wx194SUVUxzT2/JihuZmJJThWoNZ0HgNY/EH28MRUY+B7GOMFibcrJzkJuXB3Z1zXHc7U9ivNlh0mX2aXpm/7ekLA57E6R44zHm5slWAs0A0ybKpDDoaWLhHJafMK0wLIm1ujx0iYD56WgrQO3ryuplSN6xzajkqM83+RCr1aUrol95A5zUJIT971QO5n2bZPybXYRNntsYvx4guLJrL1qkbsD2moOQHP6wlUskRkt5PfiCm5AEC/exa9DmgNcVoVL2KQy59RsqhAQg6tPvwAU5U1F0zvH7AjCsC4mqnE6UGpitvsfSJ0IIHb8lmNzIlkCsIwxPJzDLf10NrDtJMNyBjzDvAkaH5SdkbgOGOf5oVAN4sKawnl+YOwspf+81EzPIh9VvgCbvfoDAKlVx9JAai+ZcNz4PVBBE9W+M07uPo9/laeBgknSeC22ObbVeQ06QCRzselivuQhZBNveCX+JGAoyEZEThyE3fkIYNa00yh69UPdF6y2wsJ6ZqO6LLZl5pUlW9wHFMkrh6mTokgdf7QzG5UwpxDrCcFmwAAImPPztIMHorva3RkbA1GEhGoRPDkfVMj/EVoARaabM2vliCxj9QQtJ1GDAtU3rcGPXDmjVWWDfWWJbtHp9BiCwRScU6KQICJRg4VEp4g8ex4tXvrFSpGT0JxXNsKraIEgVFaHLuQ5ZSE1wAeLsEioRFZ5PnAVlTok5hiQwCG1+mAupwr1V5r4CDGNkgkrzEij93Znqi5CB/XafAhduySDWEYaQsl3RFGiB6Tsce4NkgGlbx+WtqatqjM9ZlOAVJ0tWmPeWEvzYX3gYcOY9cuKzsLE1EVK5oagQJ7/4DDlXS67gZTVqI6dlXxwNaIXrJ06j75UZkFhoHbNyK7Zqh2E3usHAlCupDgFhtSAJEmdsxsqJqZSHevmJaHPoC6vm1nvpNdTu7t6R+L4DjAk06t7M+tKuDb+QkQTw00EFTl2XQawjDIHFOyVj6h+frSeY4uC2it1MRVXgIeUIpBLTWcjdxMJArDgpN2/JPlpF8PlzwoPDjl9v0vZ1N2k1apz+ehJyVaZzS3HimUMKIoWUWrusqtDqUTR46308/bUKekghU1QBkbq+PbPXPkNuEog8DAOS5+ABzVEzSWj9GDSf+JVbXbovAcNs+oODFYSjsp8oqCm2gcj06z9BOHJNbjTZ7RDt/oQQWa2ZXEw0ZWY1yYzYGdCYuj5L7AJNwgBlvHRgj3mjnfvtx0YlS/Zcp9dj6wU5nmpiysccdLMYm5UECr3HruHwQ3/P+KPLzcWZ6VOQfdG5xWbVzl0R9fJgEI7DjO0Eu85rQSTuH1lbV45HbmYSzl1OR+2im4g0ZEJpyETdAC26zpnv1tDdt4AptulPNJ1rplMKUY6uFh8PxL5LARDrCMMtLtvJJAYw3qqTlcOCw7JYLUoBwWHZWWvBIYJxz3jeAiZxv7R0AZJ3bIetdT1B7T4voebTPc0VMbe2G08Wur26sII+6JyD5x4JQU6+FkfOp+DA2es4fO4GsvO1qFk5BE3qVEaTupWNn9G1K0AmILT1fQ8YxhhKqfTi9ewBoPQjSiFAxAasOh2AbfGBRr0qMY4wPJ86phLuFmBm7ibo2oSioYAL+uPXgKvpBIMe9VavgctnE5C7fyuyz58Bc2oRVKMWaj7XBxVbWGuELjxMsOxIAYjUtaqMo9Z90CkHz7WwXkoNPMXZy2k4ePYGDvx3HVdSTHIjBqCVn7verJQJwBQzjKnzJyRlPcZJuJ6UxwsAHEoP/joXgA3nAiHWEYa3ps7dAgyTeTwSRdHcuecDYzdXHCN4oBrwaH3v9Fqr55GWmY2ICNe3XWtOEvyy17MVZmRsLnq2dH4bdv5qBt6Ytg3d29TDOAFvhjIFmNLDGp+c1UxCycs8xTu3jcrMJDvi5VhxOghiHWF4Z+rcvRXGGBy2EvCYABB8sZHggycpqoa6f+lgya/MXC20RUUIDXV9gGJueb/d5tkZ5r0OOejd2nldm/+5gkkLDuOzQe3QrY1r2+0yDZjiwbp4PUNJeelKSqlZSX3/ZRkWHVNArCMMbwFm/AaC8c9Qt65rPWkDCw7Lggw9YVLhcprWnCCoH5qKGmHUaC4tl8sgl0kgl7FPqWhdt6upuQiWc1AoXN96MSd849ez62/31YPeeSwHL7Z1DpixvxzA7hNJWP9lL1RmjgtcJL8ADOOBSkWDCqiGaQoYlYn+TZJh/hEF3HGE4YqpQp7/sC0PrzRPhYxPg9yQjmCkoTA/HUV5aZDq0wBZBQQ0my6kKFE028/BGODpOYHBYfPy8qDT6aDT6Y2flolpUxeDhznscAWkfxKzEFNDAbncteIk8xIzYinxSBj1VrtcvPSo4y0Zs0Z96qPVqFpBgcXjnhXEx/saMCZfZNmTQCjTmZCAEC0oUglPU3iOnDEYtCcb16nCrDaN6ZxKU1HK0xOEIOrMDSlmHnDPEYZLzhoKAW0aivLSQXRpCKRp4HTpKMxNAy1KN36XE+cRAHjKIb/pckhk7h967bXz70STao47wWHZ9bZebwJOMYDY38Zrb4vEtKwZeAKMq5IJSDKZFOuPpqFr8yqCNBjYDd3AXwwgnPu+2Qa3zccrjzleNY7G3cR7P+7G8+2jMWaAMH8r9zVg4pKynudA1jmawExnjKf8fwRkAwF+j46MuJSoyupEKdkdnyoh0/e65wjDUX1c3MdA3hUEEO+YL6fU+BwRNUQa07tAM7v5OpNM8LoXg8PqDXrotHrojUDSQafXgXmrKZ3i0uV4vKkwiT2TJ/WcqYWBBLp8PzkieK1NIV5r71iO8/2qE1i2O8542GeHfiHpvgbMRVX2RzzlpwnpKCGEOa76i5dynxCeTriaTvpP2RnqliMMhwC9MBaBBaeFNEcQTU7FvpDWeU0QrVCiCynA7jjHip9Cy3FFxxz/mVYi0//sPD2u5wWgXUOBSmkAXvtVj7R819s3R215ta0Orz/m2FVVnwkbkJyWa7xOZtfKQtJ9DZiEpKzXAfKbkI6W0JAiQrDyZjZ5adyWUM4dRxiO6qOqRVCkLRPXHCfUt2gjhLXw7jmGBYdl18Uf+Tg47K4LBCz0uZh6P1oJnL/p/qH/5dYGvNnBfv5rN7PRb9JGVAoLwoavrC1enQ3gfQ2YC1ey6kil3CV2lhE7S7MKuMIxf4UGuuMIw1FdhszjCLk6XmxTHNLrqRT5TVdAJnNfPaR04cbgsPsIJjzrmbqL2E4evgxsPy+uXubM7+Vfmbss9661X2lDMdhuABRgyc4LmLnmJGKbKfHlW8KNyu5rwLBBS0zSbKBuWGOyWCoj1rrnCMPRZNEX5SLk3ACmVih2PjmkV9WYiso1RHrec1I7i1HJ5Ct3Kjiso6rPXgeY9P6bPsKB2uSRWKSlZbjNy3FjhuOTD5kIzja9891OnEhMxVs9muHVbsL5e98DJu5ydkNOxh934enfhmPsUDl0ZRgCZUS0IwyHWzJmqPPfcATorrk9yKUzZld5DTKlKUCQNxLr98jlJhV/X6ZrmcBXmwnmDBReb2R0CxQWmiOaiG5uj+5dsOyPH23yMd2ybmNWg6nJfDv8cbRpLDzO6H0PGMaN2zYyi8Q6/Ru+Ogw6A8FfIh1hOBs5evE7KLJ3ih5cRxluSR5FWLNxXiuPFeRJ6D53G5KWC3y4gmDhG8IAw7Ssa9Vlpsrup8jaNXHh+A6bAnYcu4bPfjto/H3z1D4IZ5JcgalMAIb1NVGlHkwpmQ1QwRf3H6wPRU6Re44wHPHXcGMTQm7+LJD9rsnU+soIaO2ux1z75Yu163fdStcUuYXA6wsIVg4VBpjMLDUeaOrgAOK6OjNFcvwhVCiluzbh90PYdvQqqlcMxuovSjSkhRRbZgDDOnsxOaczpYaFlEKQp4Sxm0KQlidxyxGGI+Zqs+IRfuUDIbwXTJMWsxghIc79CAsu7C6Ndg0lAAAdVklEQVStMEws88Jsgg3DhQEmSXUdLdt55hLJuIKs/g2x7UvcdrJtWPcxq40q/h2bKfGViAM/K69MAYZ16NKlzHCDlHwBwr0FUKdr7efbQpCs8a4jjMKCfITHDQRH3d97l578qmqTUblWczGYcErLzjDT+/hej63HLA5r32YOCl135dyFeHTuahtsynVOa4qvPv8II4aVyLJOXUzFsG9NW+bXuz+EISK9lJc5wBSz69KNzEheLxlFQVnEIrvmUlN3B+NiuncdYWi1OsjjP0KQznvxIDVVh0Bem1kreCcZg8N2pwhzX4juVkN6zebwx+u8oHr/OXoCPXrZBpsSW/GAvj3wy6yvzdl+WnsKi3aYnKFPHtIBnZu79qBpWWeZBUxxJ69coYE6ae4zlOqfIyBPM59uxc++36/AuZvedYTBJNz6+OkIL3AVn1b40N8K6oawRu8Jz+CCcvImgiEdKKoLF7p7pe4B8zl8148XVO+uPQcwYNAwj+tt0iga/+4t0Z4a8MUms9HY0vE9ECnUHc7tlpR5wFhyfA+l0lqq7L4A/QlAhTmHgnA8We51Rxh5FxejcvZSjwe7uIAk/cOo0nqK18qbsYPghebUGO7Dl+n1Pzh89iwvqN71G7fhzbc/9Lh5LALCzr+PQVMkR2w0Na4u566m49J1tVElRqyDEb8CTDH3LyblPMhTw67fjwZVPXTV+44wspP2oVq6IBU3QRPiprYWwtvOE0QrhGj2PoKO0dSoR+fL9O5SDm/H8oLq/XP5Gowc7R2tic9/XIlNyU2wY5RH1gJGVvklYFjHL6k0Ty85EbhxV6KceNsRRuatS6h1fYTX5mK+IQR5TZcbDb+8kVhw2MY1KFrV8UZpwsv4ZC3BCw8LC0o7/7fF+HRCydnDWS1FOSmQh1S363aX5XtlxGTEBfbCxveAIMFCB/s1+i1gGDsGL9Cvvpgm6eVtRxgZGZmomTQYHNUKn01OKHlIcEG5AfWE+eB2WefKY0DVMCDWO0G5XNZXTMDOTu3qUzxuinDhNH0/cx6+nGYrpS+diflxLkhPgFRRGfIQ+wzq9OxA5DUei5VDgYruObw0V+vXgOn8LR3L85jibUcY6iw1KiV9CLnhpqt5Ieg5DxkOV16PRyKFyTBcFbrxDPNZJj44rKtyXT1nvsYaVqeC4k1OmfoDfpjl2ncYb9CiMOOS0edyUOVoEGM4cuvUuGkrBHdbgIVvALWs4++6arLNc78GTOx0yq6efvS2I4zs7ByEJY1HkNYUactZ4kkg9FwE9JIKMEgijH8bjN/Z36bftCQcudLaeKC6q9KEPd8dB2Tliw8OK6x0x1Q/7SWoGkrRt4XrksZN/Brzfl3skpB59S9IN13hy0KrQxZkK+ANCQ1Do7ePYO5AoIF1DFqX5Zcm8G/AfENfB8Fv3naEkZubi6CkbxCou2yc9CZARJgBwcCRVlgZV3KC0aSmAhwnQYBcYowHI5FIwIN9MjPfkt/shcUQPdq3Mxy5DLDwfQNFBod1t77ifMyxuVxCBdX7wZgJWLzUdXh3Zh7NtmSgPCQBIQgIt+8/qtmw3fj5zep4yDoGregu+TVgOk2nTNl8pbcdYeTnFyA9U2MMDhQYIIFcwoGTSGCgnHHLECTnIJVIMG2H1BjywtcCRBYc9shlgrdEBocVPbtKZVjyDwGLLyqk3mHvjsGa9ZtdV0k4FGZdBa/NM/JbUcX+wSy692z8PDoWAjwpOa3TvwEzjXajHLa0b0DxSXfvnA9cj3AJxfe7TG5bq4aKyeU5bWIqsOkswcguvu3zyuPE6IBDSL2DBr+Hrdv3uOxshVqNkZqwH7q8NCNtYKUG4CS2V2G1OozE7ClvoZOHFx3+DZjptD0F/m4RRTHpOd9OHja4c/cRdHuQGh3r+TKxScuMuXz9kmDRmM/dgKB6+wwYgv0HjrhkS6+Bb2PlbzNQpDbZILEtGdualU4VH3gaX0/92ii89HZSVpY7NQllzvOLfYG7W7d7Nqe3a/NGA1hR7WfQZhKKU0yAN62396wkhTKFyUPa1qVo6KXDvNB62YH/2x0EXzzv/cnjrA07zhPsT4SgepkeGdMnc5V++nE6Phz/PTITmEIlhSykOmQK24M/W3mmzV2Lpxp7f5z9BjCPT6P1DRwuetMRhqsBtnzOnFHEVAMeVvp24hbpmata4lHcFzH9LKZl8TJXn4Cgep98+kWcPmtSknSWVi/7BZNmrsc/G2eC1xVAqqgEeYjtVRjhpPji1wN49qE7x+uYyAi7C4E3XvA+XWFU6Vo1ABsP2MzJwvDlMnjTEYarAbZ8zrYoVUKBR+vduUF01J67YUR2OhmYs49g9suu+9uhy/OIT2DyFedpz/bVWLXtFL77/F3o8zMhCQxHQJh9nZ/RU5diYJc7p95QZgCTnKHLppTaHK3Zm3bwYhkqKIDFg72/VLsabLZFYbYhnRu6nkCuyhL7/G4AJuEWwKT9QsyUWz3WDdeSkl1268zR3ThwLgtDBzyFIo0KnDwYgRH2VfYrP/jCzKTdX3pPZ8ll60wE990Kk5yhi6OU2kSaZx5OBy2UIkDqPUcYAnloJDtwkSC7AHj6Dm4THK4wIoPDiumXI1pVJjBqBcGqYa5fEA+16IxbqaabL2cp+dJJ3MqRoGXL1si7cRKcNAiBFe2vIopqDZemn133kqsyvf38fgTMJkops4WxSUOWSFGoI9joRUcYQhl+SgUkZZK7EtBp3DpgsjhzdqHdckiXlQcMWcReTq4Bw+z5mV2/sxQcrMCVuH+NoQof7DwESf/+aTz4B1WyH8tDHl7zhDpxlwA9A4+7alXAfQcYVYb2V1C8YY8N7y6XQl1AsGoojyD3vZK6zWHm9siDmK9u13u3Mgrtb71GbZCbm+e0mbVq1cDJIyavMK99OAvrfp0IfVEOFJWj7earUKUG9mxZ45WuOzqv2Cv8vgNMcqZuCuXpWHudGb1GipvZxKuOMLwyIn5eSGSDR8AiQDtLDzZ+ALu3rTKSzPrzAMa//xK0OSlQVLHZfd8uhuDQ/p1QKDyPiFCmAaNK17KD3g/2mP/ZXxJcyeAw/xUeNT3UZPXzOe7V7tes2wx6vcFpme3btcaa5SbX2gfP56Dnk62NipiKqo7tB1at+BMPPdjE47a6kr1YVnD/rTAZ+r6U8ivscWnyVgnibnL4sT+P+l6yN/F4NMoLQLXIh2zizpRmy9PduuCP+ab3YE4h8OCjzyMzfrvDMwyjm/rVZPR8vofHHC7TgLmRpetoMFC7Ximm75TgVDJn1G96srHrw6jHnC4vQBAHqipd+zvu/2JP/Dhjsrm8zv0n4sSWHx3KYRjh0DcH44NRnt8sl2nApGTROnqD7oq9kZq1T4IjV0Q7/xc06OVE7nPg6DS2bXL+AqvW4hVEdvnEXEna2bW4uGY4pEGO99ZPPv4YZs3y3DNpmQYM42hyujaBAjbXJxvOcFhxggHGI+UD92dGeU67HDg6/SGAd36GqfHoMNTuULJaFGZexem5T4CTOL7ufCCmAf7dv0EQ11MyrWN6WmYq84C5lqEdyVF8J4hTlkQc+URZUSbMG4PowsVlSEhSO3zlBtm5+alR0UOPD+KaZ5fa0aQryM+3oi/d/ocfaYOCQudxQCeOHYUPRrxpLocZk8U0i8Wt1HSHLQ+Qy3Hj0jFjzE1Xya8Bw4IuJWfoFgJ42RWjip8TQlbVqijtbwz3dw8kfwJM23YdkaXWOOX6tMljMWzIQCuawW9/hJVrNznNt37Fr+jc8VGXI+rXgCnmjipT353w/Es80IIALDAIM56QMFBQSpmkLAUEJzmeX1qrSuBfLrnqQwJ/AkyXJ7sh+bo5ALZdLs+cPgmvDuxj9ezPFesxbETJucZexrfeeAnTv3QdQqTMAyY5TdeZEspcjdjXjfDm5Ka4REDerF1F5tos0Ev1+hNger7QGxfiLzrl3PyfpqJfb+sr4vSMTDR4qCOYy15HSVmrJs4ddx3Dp8wDRpWhvQQKYfGjvTGJCS4rK8nvPDhvt9WfADPwlUE4etx5ROpFv/6A55950mYkn+zxMv45etLpCB/esw5NGjm3Vy77gEnX+lyQIua2xFOM+hNghg8fjp17Djhl2aolc9C1i21A1x9//h3jJn3jNO+EsaPwocWFgT3isg+Y8hXGatzv51uyTz75GGvWb3E66Teu+h0dLYIlFRNfuapCs7bOgzG1a9MCW9ezKI+OU5kHTPkZxnrw72fAfP3VFPy+yK42k7mTOzf+idYt7cfB7PBkH6cmzsz/29ULhxAe5thlT5kHjOV0SUzKfp6CLwkMAnIjJjLcyo3bRZV6Kk8xxpyPIjsmqiQgYkKS5jpAzfauBFzP6Miw9Z5urdzN709bsjmzZ+K7mb84ZdWBnavR9MFGdmm+/XE+Jn7pXOy2cP536NnD8UrkX4BRaSZQSieauUnIphhl+LNWoFJpFlFKSy7yCYmLUYabRyBBpdkISp8pzkMImRitDP/c3QnvaT5/AsyyJQswYcq3Tll29O+NaBht/45HyLZs0Et9MOvbSQ7r8DfArKOUPm/BjSkxkRFWl++JKvUuSvF4CSCwO1oZ0aX4e0KSmmn2fWoBmPXRynAf2ymW9MCfALNt8zqMGD3BKWDOHt2BKKVj36+du/XD8VNnHZZRu2YNnD+xqxwwjAOJKvU1SlHiDYGgT4wywspZb8I19QUQlBhPULokJqqCecVJUKl7g8JkocS0zQiSopURUZ6uFO7m9yfA/HtoL14Z8r5TViWe2Y9qVR2HUftp7kJ84iLGjLNVqsysMKcTk2s3i67t0KXIheTsSlJK0yilJRqVFPVjoiIuW59z1Ew5q8T9EsE3McoI85km4Zq6HgjMvn4IIVRPSJVGtcMy3J30nuTzJ8AkXjiJZ3uXRD+2xzdV/BGEhzsO1JlyMxWNHnncqRDzmymfYuhg+9pS3gKMq/kqZE54pBp85sy1CjRIEmww2BfnKoKC23NEsrzk/IKc/PycRjzTzrudQoLCAi3BwH6mlH6eV5Bjjo3HEUIUitALoDBfpfDU0C+/IM+5gEAIB9ygCVGEXXeUrawpX2bcvIx2jzuPHJ167SQCA5yHZevR9w3s+9uxy9mnn+qMZQtYyFPb5Awwaek3BcUBkEg4jhQY8po2jcpyY8gtprAnuV3kTVCpPwKFOcgkIdgbrYzobJntokrTgKfUKjY4B/RvEBlRAjTT1m4Ppehk0fIxMcoI51KxO9Q3f1phaFEmHmhuNWQ2XNWknHMYpq+YePGytXhnpPkYalNGSEgwkuIOQyq11V721grjjeng0QrjqgGJKs0SSqmF/ynyfUxk+CjLfAlJWR0BYmWFKZVyHevVDPvbmk7zHUBHFv9GCPkzWhkuWOPZVVvFPPcnwFQI5lE1qrlD9jA1/bSkUy7Zl52TiwYPdkBhUZFD2u0blqBta9u6/AcwSZrzFNR8PcxR8mqDqHCm2m9O8Uma/gTUKjY4R0h0A2W4lcbfxWuaQTyhC8yAAbkQHRne2OVI3QECfwIME7pWr9sC+QUFdjkZFhqK5MR/BHH5taEfOtUa+GT0u/hk9Ds2ZfkFYG7coIo8gyabUpiDHUqItGl9ZYjV/WJikmYUBbW66A+RhgfXrEmsLJsuqXIfMlD9mZIVBoZgSXhYaTpBI+chkb8BpknLJ6BKvmGXa1WrVMbFs/sFcXT7rv3o8/Iwh7SO1GT8AjCJydmPUp4/ZMGdwmhleCghRG+11VKpp4HiI4vfNDGRETbG4JRSaaJKk8Ni9ZhBw3HtomuHHRY0Wl4kEgsYL1bt9aJcWVyyCnv1HYBz5+x78K9Zswb27NwqqF16gwGxnZ9Eerr9y01mffnv4QNQKIIElceIfKl0y+q7Y2eY+CTNOwS05NqDkKMxyvDWpTmRqNIsppRanEXIhRgHW60ElYb5I21VXAYFGd4wMtxzTwqCh8dE6G+AGfzW2zhwwPLdV8KwunXqYOtm4VpKX0+bjt//cKxs+cu8n9Gh/WOCR6TMACZRlT2PUr7E0Jtw82KUYUNLcyL+mno3ISi5hiFkV4wy/Al7HEtQZc8F5d8q2ZZx86OVYebvgrnsIaG/Aeaj/43Fhr/smxs3bBiDDWtXCubohbg49OzVzyH9kMGv46MPzXc7LsstO4BJ0hyloC3Nkxt4JzoyYnZpDiRcU8eBwOxTlFK6uGFUhVfscSoxSf02BcwrCgE5Fh0Zbl5xXHLXSwRiAXM/ayuztn88/mv8PM/qrsbMyRbNH8KeLVYSAJdcZnKd/87H26Vr3uxB7NtmrR1d5s8w7LxxUZWdQ0Etzhvk0eja4TaSq4Qko4cFs5iYI9y0Bsqw/9kFTLKmLeWp+cxCQAobKMNszkUuR8xDAn8DzLTv5mDy1B/tcq1d25bYus4+mByxedacBRg7cardxxzH4VrcYSt1/zIPmMuqzKZ6ylnatRpCpPlhNWvWtLr5unmTBmdrNbmWnCOUjIqOCv/eHjdv3LihyNUrspmzjOLnUsI3q6esaL498xALgrL7G2B+W7gcI8fYVw5/PPYxrFvO3DcIT2npGWj4cGfo9Vb3P+YCmMSfSf6LU5kHTPy17FcJ4f8o2Y6R89GR4Taepy+pNNEGShOsAYN+0VERDi2WEpM05yioWf5CKfdaw6gws3xG+LC5T+lvgNmwaQcGDravgNm9a2csX2hfpcUZh/u/+i42b9ttl2T40Ffx1eclm4wyD5jEJM131FoqvyRaGW7tuMqo7pIVSynZa8k1Cr5jw8iKVlJ+y+elb9UIyPfRpbQH3IeCsJz+BphDR46jW0+7x0qj4RczABObNm7ZhZdef89uNmaMxozS/GaFSVSp91KKWAtufBQTGTG9NHcuXtf05w3WUn4CNIiOjHAYhTQhST0agFmHjBDsi1ZGlOiYiR05N+j9DTDxiZfRqoOVzZ+Za/369MD8WfbPI85Yq9Pp0fDhTmDumEondo5hZssRtzWgy/QKw1T5L6o0WZbq+pTiiYZRETYWQolJ2R9Q8DMsGRakDFcoCbGvhwEg/pq6CyEwO7MigKaBMrwCU/l3Y+67lcXfAMNC9tVp1M4ur159uQ9mznBsLemMwWMnTMOsueaduxXp0j9m4ZluJpvCMg2YxCR1fQqY9cDYRA4MC6usDCc2r5KEJDVbKdiKUZzUMZERFZwxWaXSVCwE0i1tbFytSm6hwkkmR4Cxp9rPirnfr5WZM75KymYwGGw99Qr1XmmPnefjEtG2k6UxbgmV5TmmbAMmWd2H8jBLsgjBtWhlhN1wuglJmiWAlTbz+Rg7lwOlmZ2oUl+lFGaLS8Khb3TtCLNFprcBUro8fwMM6z/zYpmaZutc/L23X8eUCZaaTeK437l7Pxw/aWu+3Oyhxvh7h2lIyzZgktRTKGCOY0kI1kUrI+xaICUkqZl715LzB8WumKgIu1J+y2FIVKnXUgqzTT8BvoyOjHBsbCFuDF1SiwWMywLvIoEQXTLWvB49+yAhwcpsydjqYUOHYNT79g/vQrq1bPkqTPj8CxtSdo759/DfCA1lLrcdp/te0p+g0myCRWhx5jGmYVQFu5f4CSpNHCg1S/kJIYuileGDXDE6/lrWBOY5xkxHyOYYZbjZq4yr/J4+90fAvPbGWzh8xFaNf8S772D4OzYaT4JZnJubi/Ydu9gNqTF39kx0irX1qGlZuM8Bc+PGZa86k8jVVzwGwOwRQQLD4CCpxq5LkFxDxXOgCC5mAOEwO5jLdHnlUqAP72KA5FcLxqWHSDPNajiCR8tNwlx9xav2sjo6w9ymTeCobjTR3bpjQlaDvLbddjnrptAV5oPRH2PTZlsPmLVrVv1q7+bf57rJSmO2Zu36TM3LLzArmAVWqo+qD/dD96c6Y1T3CiASx/F1JNpku9t9T9rjLO8d01a+Uw0uL/fucCCoSqPvCYGN9JJS8n5B2nn7ejMCmxpUpUl7TsL9HRHdBVWbD0CYspXRNZA+Lz394IQq91SI4HLACBxUfydTVGs8FpROseUDHZafGufRCtNxOh1nyM+YKFVUMqs86fLSaW7y0U1n5j/teahlLw5eOWC8yMyyXJSiWqMhoLBRGiOUvpaXFueRalLsdPongAGMfwUZl6G4sARtcw4e/XrXNhv7qbvN43sCMGcSUyy1Asw8aRpdw+gcw9FzMcwrLktMnnLaEg4oqjV8DpSzsRSjPAYUpF9Y5gmvOs2gbXke069tm8A9l7enaYNQWXCAhKMNK4ZFdl6yxqHfO0/qdDfvPQEYdxtfns93HIj9xpBm0BVUpgYteH0ReL0W1FAEWXDl/w5+VvEhIS1JSbli98VYnLdGjbr7furWZVGYXDawYlAAgmTSMY8vXn1XXGk56k+ZBYw3ViV7TLvXVipXk1DIRHZGwyYxex47nf4LwJ6xXuK+0cR5CDERjdjzWs8IXsvdvJRTGDDt7HXt9QLtmIJbF34QUcQdJS2zgLmjXPPHwmu2UCj0+SxYr1XiCN8l91a8fT19kXwqBv9Xg975fuHZaw9reZN6YLWqlfYe2rGoRO4motxiwIvI4pS0HDDe4qSflDPrqS5aA6UyAtAR23dz3u52gyffH3vj9HYWrcE0Nyl0lCOjC255dnXtrXaWA8ZbnPSTcna/3PsyBa0LILPLkjWVvN3tyk2emp+fljTEVC5N43j0zU2Ps/KM6u06xZRXDhgx3Cqnxe6Xe12gYKFJSF6XJaudK3qJ5xdRVG3ETNvZJcI5nqPPFt6ME629IL5a4TnKNGAopfLkbIRIDAgBj2BQnUJPiUIqQRD7JNSgAIgCBIGUkkCOIIAHH0gIFwBKAkH5QEogJwRyUCKn4OWEcDJCIQeBnFLIACoFAfOgLQX7TnH7O5UCHAdQCQjhQKkEIKbvAGf8m4DAFAqEEGIcCnLbbMH4m3FDAtDbtj70dtADCmb7w/6B8gB4gBiMfxNiAGW/se8sogLRg0IPYvyvA2D6DqIn7DuFlhJoKeV1BJwWhGophZZQaEG4QhBaSClfxIEr/HbR1mZrli2unp/8X6tcHW92bhJdv/6cLRvW/AIiyweHPIMEubXDkEsI0QqfhibK4KqNXqEA86hxOF9X1B1Zl5mDlHsq3dOASU2lIQYZKuv0usrgSCUJIRUBvgLlSQVKEMGBhPOgEaB8OEDCKBBGYAyJEUKBEAI2ocuTOxw4dfoMzp0/j/j4RJw5+x/i4uJZGBKbotq0boWFf9jGwKSAjgDMwUkuBXIIkA3QbBBOw4GoeVANoVATjmYBXJaB0syWrR79SSaX33rhuef7zpr2P/u+ad3pjBfz3BXAUEq5lCzUNhj0dQmhUQBRArQWBalBCGoAtBqlqAZAuM9QLzKlvCjgzaHDceCgydslc+Eqk8nNoSiYIRn7r9PpUCEiAn/vMxvAepN1BYTgFkBuUYoUApoCEBYcWEUpuSaRSK/UqIBkQghbZX2W7jhgKKWylCx9WwOPdoTQhylIE0IRbemzzGe9La+oTHGA+aWjBIkE9Byl5JSEw6EaFaRHCCFs+3lH0h0FTHK6bjIFhoNtm8pTOQd8wgGiJsBPtSvLrAIPe6vqOw8YguGg5YDx1oCVl+OCA4SoCb1PAcO6Zt6SAe0IpQ9TigcBRANwHhSxfGaUc8A1B1g4s0RC8B8l5JQE9/mWzFF/iw/9hOjrGkCiYKDmQz9AaxKCqpSSagAtP/S7njRllIIUEELZgT+VgqZwIDeMh34JUUlAr1FaRg/9noxm8bUy1esq6+1cK5vORiS8/FrZEy7fmbzOrpUBqgGImhCoCUqulaU8zSBSWbpEh/SqVYmVz+0700rxpd7RM4z45ng3hz3BJSREoadQSDkSZKBQgPIKUAeCS8IHMiElE16aBZeAnICTWQouCYHUJMQ0Ci9vCy6JlIJKOJOAkqNMcGkrwCTMFJdYCCwtBZilBZbsO5NWwiQPoaUFlsQouGQSS8oTkzCzRHAJGIWVtLTgEryOAtpiwSUTWjJhJqi14JKnKCKEFoKgEITLlxDk63laICXIh4Hme0Nw6d3RvzOl/R8AdGoXzom1qQAAAABJRU5ErkJggg=="},16722:function(In,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return je}});const b=Ie=>typeof Ie=="object"&&Ie!=null&&Ie.nodeType===1,ze=(Ie,ue)=>(!ue||Ie!=="hidden")&&Ie!=="visible"&&Ie!=="clip",fe=(Ie,ue)=>{if(Ie.clientHeight<Ie.scrollHeight||Ie.clientWidth<Ie.scrollWidth){const et=getComputedStyle(Ie,null);return ze(et.overflowY,ue)||ze(et.overflowX,ue)||(Te=>{const At=(lt=>{if(!lt.ownerDocument||!lt.ownerDocument.defaultView)return null;try{return lt.ownerDocument.defaultView.frameElement}catch(it){return null}})(Te);return!!At&&(At.clientHeight<Te.scrollHeight||At.clientWidth<Te.scrollWidth)})(Ie)}return!1},nt=(Ie,ue,et,Te,At,lt,it,We)=>lt<Ie&&it>ue||lt>Ie&&it<ue?0:lt<=Ie&&We<=et||it>=ue&&We>=et?lt-Ie-Te:it>ue&&We<et||lt<Ie&&We>et?it-ue+At:0,Se=Ie=>{const ue=Ie.parentElement;return ue==null?Ie.getRootNode().host||null:ue},xe=(Ie,ue)=>{var et,Te,At,lt;if(typeof document=="undefined")return[];const{scrollMode:it,block:We,inline:ke,boundary:ot,skipOverflowHiddenElements:yt}=ue,Nt=typeof ot=="function"?ot:Ot=>Ot!==ot;if(!b(Ie))throw new TypeError("Invalid target");const Fe=document.scrollingElement||document.documentElement,Me=[];let Xe=Ie;for(;b(Xe)&&Nt(Xe);){if(Xe=Se(Xe),Xe===Fe){Me.push(Xe);break}Xe!=null&&Xe===document.body&&fe(Xe)&&!fe(document.documentElement)||Xe!=null&&fe(Xe,yt)&&Me.push(Xe)}const Je=(Te=(et=window.visualViewport)==null?void 0:et.width)!=null?Te:innerWidth,$t=(lt=(At=window.visualViewport)==null?void 0:At.height)!=null?lt:innerHeight,{scrollX:ct,scrollY:Ye}=window,{height:rt,width:Ce,top:at,right:_e,bottom:de,left:Et}=Ie.getBoundingClientRect(),{top:He,right:st,bottom:Yt,left:Oe}=(Ot=>{const ge=window.getComputedStyle(Ot);return{top:parseFloat(ge.scrollMarginTop)||0,right:parseFloat(ge.scrollMarginRight)||0,bottom:parseFloat(ge.scrollMarginBottom)||0,left:parseFloat(ge.scrollMarginLeft)||0}})(Ie);let pe=We==="start"||We==="nearest"?at-He:We==="end"?de+Yt:at+rt/2-He+Yt,Lt=ke==="center"?Et+Ce/2-Oe+st:ke==="end"?_e+st:Et-Oe;const en=[];for(let Ot=0;Ot<Me.length;Ot++){const ge=Me[Ot],{height:Ke,width:tt,top:Wt,right:qe,bottom:Rt,left:Qe}=ge.getBoundingClientRect();if(it==="if-needed"&&at>=0&&Et>=0&&de<=$t&&_e<=Je&&(ge===Fe&&!fe(ge)||at>=Wt&&de<=Rt&&Et>=Qe&&_e<=qe))return en;const tn=getComputedStyle(ge),gt=parseInt(tn.borderLeftWidth,10),ae=parseInt(tn.borderTopWidth,10),ne=parseInt(tn.borderRightWidth,10),te=parseInt(tn.borderBottomWidth,10);let oe=0,ce=0;const re="offsetWidth"in ge?ge.offsetWidth-ge.clientWidth-gt-ne:0,le="offsetHeight"in ge?ge.offsetHeight-ge.clientHeight-ae-te:0,be="offsetWidth"in ge?ge.offsetWidth===0?0:tt/ge.offsetWidth:0,ht="offsetHeight"in ge?ge.offsetHeight===0?0:Ke/ge.offsetHeight:0;if(Fe===ge)oe=We==="start"?pe:We==="end"?pe-$t:We==="nearest"?nt(Ye,Ye+$t,$t,ae,te,Ye+pe,Ye+pe+rt,rt):pe-$t/2,ce=ke==="start"?Lt:ke==="center"?Lt-Je/2:ke==="end"?Lt-Je:nt(ct,ct+Je,Je,gt,ne,ct+Lt,ct+Lt+Ce,Ce),oe=Math.max(0,oe+Ye),ce=Math.max(0,ce+ct);else{oe=We==="start"?pe-Wt-ae:We==="end"?pe-Rt+te+le:We==="nearest"?nt(Wt,Rt,Ke,ae,te+le,pe,pe+rt,rt):pe-(Wt+Ke/2)+le/2,ce=ke==="start"?Lt-Qe-gt:ke==="center"?Lt-(Qe+tt/2)+re/2:ke==="end"?Lt-qe+ne+re:nt(Qe,qe,tt,gt,ne+re,Lt,Lt+Ce,Ce);const{scrollLeft:Le,scrollTop:Ne}=ge;oe=ht===0?0:Math.max(0,Math.min(Ne+oe/ht,ge.scrollHeight-Ke/ht+le)),ce=be===0?0:Math.max(0,Math.min(Le+ce/be,ge.scrollWidth-tt/be+re)),pe+=Ne-oe,Lt+=Le-ce}en.push({el:ge,top:oe,left:ce})}return en},Ee=Ie=>Ie===!1?{block:"end",inline:"nearest"}:(ue=>ue===Object(ue)&&Object.keys(ue).length!==0)(Ie)?Ie:{block:"start",inline:"nearest"};function je(Ie,ue){if(!Ie.isConnected||!(At=>{let lt=At;for(;lt&<.parentNode;){if(lt.parentNode===document)return!0;lt=lt.parentNode instanceof ShadowRoot?lt.parentNode.host:lt.parentNode}return!1})(Ie))return;const et=(At=>{const lt=window.getComputedStyle(At);return{top:parseFloat(lt.scrollMarginTop)||0,right:parseFloat(lt.scrollMarginRight)||0,bottom:parseFloat(lt.scrollMarginBottom)||0,left:parseFloat(lt.scrollMarginLeft)||0}})(Ie);if((At=>typeof At=="object"&&typeof At.behavior=="function")(ue))return ue.behavior(xe(Ie,ue));const Te=typeof ue=="boolean"||ue==null?void 0:ue.behavior;for(const{el:At,top:lt,left:it}of xe(Ie,Ee(ue))){const We=lt-et.top+et.bottom,ke=it-et.left+et.right;At.scroll({top:We,left:ke,behavior:Te})}}}}]);
|