|
|
(self.webpackChunk=self.webpackChunk||[]).push([[1461],{89489:function(wn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Ze}});var b=ee(60499),We=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"},Ue=fe,Ee=ee(7657),xe=function(ue,tt){return We.createElement(Ee.Z,(0,b.Z)({},ue,{ref:tt,icon:Ue}))},Ie=We.forwardRef(xe),Ze=Ie},59477:function(wn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Ze}});var b=ee(60499),We=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"},Ue=fe,Ee=ee(7657),xe=function(ue,tt){return We.createElement(Ee.Z,(0,b.Z)({},ue,{ref:tt,icon:Ue}))},Ie=We.forwardRef(xe),Ze=Ie},40001:function(wn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Ze}});var b=ee(60499),We=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"},Ue=fe,Ee=ee(7657),xe=function(ue,tt){return We.createElement(Ee.Z,(0,b.Z)({},ue,{ref:tt,icon:Ue}))},Ie=We.forwardRef(xe),Ze=Ie},26227:function(wn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Ze}});var b=ee(60499),We=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"},Ue=fe,Ee=ee(7657),xe=function(ue,tt){return We.createElement(Ee.Z,(0,b.Z)({},ue,{ref:tt,icon:Ue}))},Ie=We.forwardRef(xe),Ze=Ie},49198:function(wn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Ze}});var b=ee(60499),We=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"},Ue=fe,Ee=ee(7657),xe=function(ue,tt){return We.createElement(Ee.Z,(0,b.Z)({},ue,{ref:tt,icon:Ue}))},Ie=We.forwardRef(xe),Ze=Ie},41464:function(wn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Ze}});var b=ee(60499),We=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"},Ue=fe,Ee=ee(7657),xe=function(ue,tt){return We.createElement(Ee.Z,(0,b.Z)({},ue,{ref:tt,icon:Ue}))},Ie=We.forwardRef(xe),Ze=Ie},73331:function(wn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Ze}});var b=ee(60499),We=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"},Ue=fe,Ee=ee(7657),xe=function(ue,tt){return We.createElement(Ee.Z,(0,b.Z)({},ue,{ref:tt,icon:Ue}))},Ie=We.forwardRef(xe),Ze=Ie},15277:function(wn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Ze}});var b=ee(60499),We=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"},Ue=fe,Ee=ee(7657),xe=function(ue,tt){return We.createElement(Ee.Z,(0,b.Z)({},ue,{ref:tt,icon:Ue}))},Ie=We.forwardRef(xe),Ze=Ie},52671:function(wn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Ze}});var b=ee(60499),We=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"},Ue=fe,Ee=ee(7657),xe=function(ue,tt){return We.createElement(Ee.Z,(0,b.Z)({},ue,{ref:tt,icon:Ue}))},Ie=We.forwardRef(xe),Ze=Ie},8657:function(wn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Ze}});var b=ee(60499),We=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"},Ue=fe,Ee=ee(7657),xe=function(ue,tt){return We.createElement(Ee.Z,(0,b.Z)({},ue,{ref:tt,icon:Ue}))},Ie=We.forwardRef(xe),Ze=Ie},56082:function(wn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Ze}});var b=ee(60499),We=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"},Ue=fe,Ee=ee(7657),xe=function(ue,tt){return We.createElement(Ee.Z,(0,b.Z)({},ue,{ref:tt,icon:Ue}))},Ie=We.forwardRef(xe),Ze=Ie},33853:function(wn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Ze}});var b=ee(60499),We=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"},Ue=fe,Ee=ee(7657),xe=function(ue,tt){return We.createElement(Ee.Z,(0,b.Z)({},ue,{ref:tt,icon:Ue}))},Ie=We.forwardRef(xe),Ze=Ie},15075:function(wn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Ze}});var b=ee(60499),We=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"},Ue=fe,Ee=ee(7657),xe=function(ue,tt){return We.createElement(Ee.Z,(0,b.Z)({},ue,{ref:tt,icon:Ue}))},Ie=We.forwardRef(xe),Ze=Ie},43531:function(wn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Ze}});var b=ee(60499),We=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"},Ue=fe,Ee=ee(7657),xe=function(ue,tt){return We.createElement(Ee.Z,(0,b.Z)({},ue,{ref:tt,icon:Ue}))},Ie=We.forwardRef(xe),Ze=Ie},61485:function(wn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Ze}});var b=ee(60499),We=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"},Ue=fe,Ee=ee(7657),xe=function(ue,tt){return We.createElement(Ee.Z,(0,b.Z)({},ue,{ref:tt,icon:Ue}))},Ie=We.forwardRef(xe),Ze=Ie},47472:function(wn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Ze}});var b=ee(60499),We=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"},Ue=fe,Ee=ee(7657),xe=function(ue,tt){return We.createElement(Ee.Z,(0,b.Z)({},ue,{ref:tt,icon:Ue}))},Ie=We.forwardRef(xe),Ze=Ie},87395:function(wn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Ze}});var b=ee(60499),We=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"},Ue=fe,Ee=ee(7657),xe=function(ue,tt){return We.createElement(Ee.Z,(0,b.Z)({},ue,{ref:tt,icon:Ue}))},Ie=We.forwardRef(xe),Ze=Ie},88319:function(){"use strict"},94896:function(){"use strict"},74501:function(wn,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(wn,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"}},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 wn={},Qt="5.0",ee={},b=null,We=!1,fe=!1,Ue=null,Ee=!1,xe=null,Ie=null,Ze=0;Ze<arguments.length;Ze++){var Ce=arguments[Ze];if(Ce!==null)switch(typeof Ce){case"number":Qt=Ce.toFixed(1);break;case"string":Ce.match(new RegExp("^[0-9]\\.[0-9]+$"))?Qt=Ce:Ue=Ce;break;case"object":typeof Ce.is3D!="undefined"?b=Ce:ee=Ce;break;case"boolean":We=Ce,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&&(We=!0)),Ue!==null&&ee.id===void 0&&(ee.id=Ue);var ue="",tt="",Le=!1,Rt=null,it=null,$e=null,Te=!1,Oe=null,Xe=null,pt=null,At=null,je=null;ee.height!==void 0&&(ee.height=Math.round(ee.height)),ee.width!==void 0&&(ee.width=Math.round(ee.width));var Be=function(ge){return parseFloat(ge)>4?parseFloat(ge):5};wn.setHTML5Codebase=function(ge,et){Ie=ge,Pt(ge,et)},wn.setJavaCodebase=wn.setJavaCodebaseVersion=wn.isCompiledInstalled=wn.setPreCompiledScriptPath=wn.setPreCompiledResourcePath=function(){},wn.setHTML5CodebaseVersion=function(ge,et){var rt=parseFloat(ge);if(rt!==NaN&&rt<5){console.log("The GeoGebra HTML5 codebase version "+rt+" is deprecated. Using version latest instead.");return}xe=ge,me(ge,et)},wn.getHTML5CodebaseVersion=function(){return it},wn.getParameters=function(){return ee},wn.setFontsCSSURL=function(ge){At=ge},wn.setGiacJSURL=function(ge){},wn.setJNLPFile=function(ge){ue=ge},wn.setJNLPBaseDir=function(ge){},wn.inject=function(){function ge(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var et="auto",rt=ee.id,_t,Qe=!1,Bt=0;Bt<arguments.length;Bt++){var qe=arguments[Bt];typeof qe=="string"?(qe=qe.toLowerCase(),qe.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?et=qe:rt=arguments[Bt]):typeof qe=="boolean"?Qe=qe:qe instanceof HTMLElement&&(_t=qe)}tn();function tn(){if(!Ee){setTimeout(tn,200);return}et=Yt(et);var Tt=_t||document.getElementById(rt);if(!Tt){console.log("possibly bug on ajax loading? ");return}if(wn.removeExistingApplet(Tt,!1),ee.width===void 0&&Tt.clientWidth&&(ee.width=Tt.clientWidth),ee.height===void 0&&Tt.clientHeight&&(ee.height=Tt.clientHeight),!(ee.width&&ee.height)&&et==="html5"&&(delete ee.width,delete ee.height),Rt=et,et==="screenshot")Ge(Tt,ee);else{var ae=!1;ee.hasOwnProperty("playButton")&&ee.playButton||ee.hasOwnProperty("clickToLoad")&&ee.clickToLoad?ae=!0:ee.hasOwnProperty("playButtonAutoDecide")&&ee.playButtonAutoDecide&&(ae=(!Je()||ge())&&nt()),ae?(Rt="screenshot",Dt(Tt,ee,Qe,et)):lt(Tt,ee,Qe)}}};function Je(){try{return window.self!==window.top}catch(ge){return!0}}function nt(){return ee.hasOwnProperty("screenshotGenerator")&&ee.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}wn.getViews=function(){return b},wn.isJavaInstalled=function(){return!1};var zt=function(ge){var et=function(Bt){var qe=JSON.parse(Bt),tn=function(ne){return ne.type=="G"||ne.type=="E"},Tt=qe.elements?qe.elements.filter(tn)[0]:qe;if(!Tt||!Tt.url){rt();return}ee.fileName=Tt.url,yt(Tt.settings||{}),b.is3D=!0;var ae="https://www.geogebra.org/images/";wn.setPreviewImage(Oe||Tt.previewUrl,ae+"GeoGebra_loading.png",ae+"applet_play.png"),ge()},rt=function(){ee.onError&&ee.onError(),Ut("Error: Fetching material (id "+ee.material_id+") failed.",ee)},_t=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Qe="/materials/"+ee.material_id+"?scope=basic";ot("https://"+_t+"/api/proxy.php?path="+encodeURIComponent(Qe),et,rt)};function yt(ge){var et=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(rt){ge[rt]=!!ge[rt]}),et.forEach(function(rt){ee[rt]===void 0&&ge[rt]!==void 0&&(ee[rt]=ge[rt])}),ee.showToolBarHelp===void 0&&(ee.showToolBarHelp=ee.showToolBar)}function ot(ge,et,rt){var _t=new XMLHttpRequest;_t.open("GET",ge),_t.onload=function(){et(_t.responseText)},_t.onerror=rt,_t.send()}wn.isHTML5Installed=function(){return!0},wn.getLoadedAppletType=function(){return Rt},wn.setPreviewImage=function(ge,et,rt){Oe=ge,Xe=et,pt=rt},wn.removeExistingApplet=function(ge,et){var rt;typeof ge=="string"&&(ge=document.getElementById(ge)),Rt=null;var _t=null;for(rt=0;rt<ge.childNodes.length;rt++){var Qe=ge.childNodes[rt],Bt=Qe.className;Bt==="applet_screenshot"?et?(Qe.style.display="block",Rt="screenshot"):Qe.style.display="none":Bt!=="applet_scaler prerender"&&(ge.removeChild(Qe),_t=Bt&&Bt.indexOf("appletParameters")!=-1?Qe.id:null,rt--)}var qe=ee.id!==void 0?ee.id:_t,tn=window[qe];tn&&typeof tn.getBase64=="function"&&(tn.remove(),window[qe]=null)},wn.refreshHitPoints=function(){if(Be(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var ge=wn.getAppletObject();return ge&&typeof ge.recalculateEnvironments=="function"?(ge.recalculateEnvironments(),!0):!1},wn.startAnimation=function(){var ge=wn.getAppletObject();return ge&&typeof ge.startAnimation=="function"?(ge.startAnimation(),!0):!1},wn.stopAnimation=function(){var ge=wn.getAppletObject();return ge&&typeof ge.stopAnimation=="function"?(ge.stopAnimation(),!0):!1},wn.getAppletObject=function(){var ge=ee.id!==void 0?ee.id:"ggbApplet";return window[ge]},wn.resize=function(){};var ct=function(ge,et,rt){var _t=document.createElement("param");_t.setAttribute("name",et),_t.setAttribute("value",rt),ge.appendChild(_t)},Se=function(ge){return ge&&ge!=="false"},lt=function(ge,et,rt){Be(it)<=4.2&&(rt=!0);var _t=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==it||ggbHTML5LoadedCodebaseIsWebSimple&&!Te)&&(_t=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Qe=document.createElement("div");Qe.classList.add("appletParameters","notranslate");var Bt=et.width,qe=et.height;if(et.disableAutoScale=et.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():et.disableAutoScale,et.width!==void 0)if(Be(it)<=4.4)Se(et.showToolBar)&&(et.height-=7),Se(et.showAlgebraInput)&&(et.height-=37),et.width<605&&Se(et.showToolBar)&&(et.width=605,Bt=605);else{var tn=100;(Se(et.showToolBar)||Se(et.showMenuBar))&&(et.hasOwnProperty("customToolBar")&&(et.customToolbar=et.customToolBar),tn=Se(et.showMenuBar)?245:155),Bt<tn&&(et.width=tn,Bt=tn)}Qe.style.border="none",Qe.style.display="inline-block";for(var Tt in et)et.hasOwnProperty(Tt)&&Tt!=="appletOnLoad"&&Qe.setAttribute("data-param-"+Tt,et[Tt]);At&&Qe.setAttribute("data-param-fontscssurl",At),wn.resize=function(){GGBAppletUtils.responsiveResize(ge,et)},window.addEventListener("resize",function(Ye){wn.resize()});var ae=typeof et.appletOnLoad=="function"?et.appletOnLoad:function(){};if(!rt&&et.width!==void 0){et.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=gt(Bt,qe,et.borderColor,!1);ne=document.createElement("div"),ne.className="applet_scaler",ne.style.position="relative",ne.style.display="block",ne.style.width=Bt+"px",ne.style.height=qe+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(ne,"66%"),Be(it)>=5?(et.appletOnLoad=function(Ye){var mt=ge.querySelector(".ggb_preview");mt&&mt.parentNode.removeChild(mt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(ne),window.GGBT_wsf_view&&$(window).trigger("resize"),ae(Ye)},te||ne.appendChild(oe)):Qe.appendChild(oe),ne.appendChild(Qe),te||ge.appendChild(ne),setTimeout(function(){wn.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),et.appletOnLoad=function(Ye){wn.resize(),ae(Ye)}}function re(Ye,mt){mt&&typeof mt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Ye,mt.appletOnLoad):renderGGBElement(Ye),Ut("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",mt)}function le(Ye,mt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Ye,params:mt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(we){re(we.article,we.params)}),html5AppletsToProcess=null)},Be(it)<5&&(Ye.className+=" geogebraweb")):re(Ye,mt)}if(_t){scriptLoadStarted=!0;for(var ye=0;ye<Qe.childNodes.length;ye++){var ft=Qe.childNodes[ye].tagName;ft==="TABLE"&&(Qe.removeChild(Qe.childNodes[ye]),ye--)}if(ggbHTML5LoadedScript!==null){var Ae=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Ae!=null&&Ae.parentNode.removeChild(Ae)}var ke=document.createElement("script"),Ve=function(){le(Qe,et)};ke.src=tt+$e,ggbHTML5LoadedCodebaseIsWebSimple=Te,ggbHTML5LoadedCodebaseVersion=it,ggbHTML5LoadedScript=ke.src,Ut("GeoGebra HTML5 codebase loaded: '"+tt+"'.",et),!Ie&&(!xe||xe=="5.0")?(Te?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Ve()):tt.requirejs?__webpack_require__.e(4510).then(function(){var Ye=[__webpack_require__(4510)];Ve.apply(null,Ye)}.bind(this)).catch(__webpack_require__.oe):(ke.onload=Ve,ge.appendChild(ke))}else le(Qe,et);et.height=qe,et.width=Bt},Ge=function(ge,et,rt){var _t=gt(et.width,et.height,et.borderColor,rt),Qe=document.createElement("div");Qe.style.position="relative",Qe.style.display="block",Qe.style.width=et.width+"px",Qe.style.height=et.height+"px",Qe.className="applet_screenshot applet_scaler"+(rt?" applet_screenshot_play":""),Qe.appendChild(_t);var Bt=GGBAppletUtils.getScale(et,ge,rt);rt?(ge.appendChild(Ke()),window.GGBT_wsf_view||(ge.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Qe,"66%"),ge.appendChild(Qe),Bt!==1&&!isNaN(Bt)&&(GGBAppletUtils.scaleElement(Qe,Bt),Qe.style.width=et.width+"px",Qe.style.height=et.height+"px",Qe.parentNode.style.width=et.width*Bt+"px",Qe.parentNode.style.height=et.height*Bt+"px"),wn.resize=function(){de(ge,_t,Qe,rt)},window.addEventListener("resize",function(qe){wn.resize()}),wn.resize()};function de(ge,et,rt,_t){if(ge.contains(et)){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,_t);rt.parentNode!==null&&(!isNaN(Qe)&&Qe!==1?(GGBAppletUtils.scaleElement(rt,Qe),rt.parentNode.style.width=ee.width*Qe+"px",rt.parentNode.style.height=ee.height*Qe+"px"):(GGBAppletUtils.scaleElement(rt,1),rt.parentNode.style.width=ee.width+"px",rt.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()}}wn.onExitFullscreen=function(ge,et){et.appendChild(ge)};var Dt=function(ge,et,rt,_t){Ge(ge,et,!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 Tt=window.GGBT_wsf_view.renderFullScreen(ge,et.id),ae=document.getElementById("fullscreencontainer"),ne=jQuery(ge).find(".fullscreencontent");ne.length>0?(Tt.remove(),ne.attr("id","fullscreencontent").show(),jQuery(ae).append(ne),window.dispatchEvent(new Event("resize"))):lt(Tt,et,!1),window.GGBT_wsf_view.launchFullScreen(ae)}else Rt=_t,lt(ge,et,!1);if(!window.GGBT_wsf_view)for(qe=0;qe<tn.length;qe++)ge.removeChild(tn[qe])},Bt=ge.getElementsByClassName("ggb_preview_play"),qe=0;qe<Bt.length;qe++)Bt[qe].addEventListener("click",Qe,!1),Bt[qe].addEventListener("ontouchstart",Qe,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(ge),nt()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Ke=function(){var ge=document.createElement("div");if(ge.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var et='.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");}',rt=document.createElement("style");rt.styleSheet?rt.styleSheet.cssText=et:rt.appendChild(document.createTextNode(et)),document.getElementsByTagName("head")[0].appendChild(rt)}return ge},gt=function(ge,et,rt,_t){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=et-2+"px",Qe.style.top="0px",Qe.style.left="0px",Qe.style.overflow="hidden",Qe.style.backgroundColor="white";var Bt="lightgrey";rt!==void 0&&(rt==="none"?Bt="transparent":Bt=rt),Qe.style.border="1px solid "+Bt;var qe=document.createElement("img");if(qe.style.position="relative",qe.style.zIndex="1000",qe.style.top="-1px",qe.style.left="-1px",Oe!==null&&qe.setAttribute("src",Oe),qe.style.opacity=.7,Xe!==null){var tn,Tt,ae;if(!_t){tn=document.createElement("img"),tn.style.position="absolute",tn.style.zIndex="1001",tn.style.opacity=1,qe.style.opacity=.3,Tt=360,Tt>ge/4*3&&(Tt=ge/4*3),ae=Tt/5.8,tn.setAttribute("src",Xe),tn.setAttribute("width",Tt),tn.setAttribute("height",ae);var ne=(ge-Tt)/2,te=(et-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"},Ne=["web","webSimple","web3d","tablet","tablet3d","phone"],me=function(ge,et){if(it=ge,et){Pt(it,!0);return}var rt=!We;if(rt){var _t=Be(it);!isNaN(_t)&&_t<4.4&&(rt=!1)}var Qe,Bt;window.location.protocol.substr(0,4)==="http"?Qe=window.location.protocol:Qe="http:";var qe=it.indexOf("//");qe>0?Bt=it:qe===0?Bt=Qe+it:Bt="https://www.geogebra.org/apps/5.2.814.0/";for(var tn in Ne)if(it.slice(Ne[tn].length*-1)===Ne[tn]||it.slice((Ne[tn].length+1)*-1)===Ne[tn]+"/"){Pt(Bt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&rt&&!b.is3D&&!b.AV&&!b.SV&&!b.CV&&!b.EV2&&!b.CP&&!b.PC&&!b.DA&&!b.FI&&!b.PV&&!Se(ee.showToolBar)&&!Se(ee.showMenuBar)&&!Se(ee.showAlgebraInput)&&!Se(ee.enableRightClick)&&(!ee.appName||ee.appName=="classic")?Bt+="webSimple/":Bt+="web3d/",Pt(Bt,!1)},Pt=function(ge,et){if(ge.requirejs){tt=ge;return}ge.slice(-1)!=="/"&&(ge+="/"),tt=ge,et===null&&(et=ge.indexOf("http")===-1),Le=et,$e="web.nocache.js",Te=!1;var rt=tt.split("/");rt.length>1&&(!et&&rt[rt.length-2]==="webSimple"?($e="webSimple.nocache.js",Te=!0):Ne.indexOf(rt[rt.length-2])>=0&&($e=rt[rt.length-2]+".nocache.js")),rt=ge.split("/"),it=rt[rt.length-3],it.substr(0,4)==="test"?it=it.substr(4,1)+"."+it.substr(5,1):(it.substr(0,3)==="war"||it.substr(0,4)==="beta")&&(it="5.0");var _t=parseFloat(it);_t!==NaN&&_t<5&&ge.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+_t+" is deprecated. Using version latest instead."),me("5.0",et))},Ut=function(ge,et){window.console&&window.console.log&&(!et||typeof et.showLogging=="undefined"||et.showLogging&&et.showLogging!=="false")&&console.log(ge)};ee.material_id!==void 0?zt(kt):kt();function kt(){var ge=Qt;xe!==null?ge=xe:parseFloat(ge)<5&&(ge="5.0"),me(ge,!1),Ie!==null&&Pt(Ie,Le),Ee=!0}return wn},GGBAppletUtils=function(){"use strict";function wn(){return window.GGBT_wsf_edit!==void 0}function Qt(Ee,xe){xe!=1?(Ee.style.transformOrigin="0% 0% 0px",Ee.style.webkitTransformOrigin="0% 0% 0px",Ee.style.transform="scale("+xe+","+xe+")",Ee.style.webkitTransform="scale("+xe+","+xe+")",Ee.style.maxWidth="initial",Ee.querySelector(".ggb_preview")!==null&&(Ee.querySelector(".ggb_preview").style.maxWidth="initial"),Ee.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Ee.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Ee.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Ee.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Ee.style.transform="none",Ee.style.webkitTransform="none")}function ee(Ee,xe,Ie,Ze,Ce,ue){var tt=null;if(ue!=null&&ue!="")for(var Le=Ee.parentNode;Le!=null;)if((" "+Le.className+" ").indexOf(" "+ue+" ")>-1){tt=Le;break}else Le=Le.parentNode;var Rt=0,it=0,$e=0,Te=0,Oe=0,Xe=0,pt=0;if(tt)Rt=tt.offsetWidth,it=Math.max(Ze?tt.offsetWidth:0,tt.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Rt=Math.min(window.innerWidth,document.documentElement.clientWidth),it=Math.min(window.innerHeight,document.documentElement.clientHeight),$e=Rt):(Rt=window.innerWidth,it=window.innerHeight,$e=window.innerWidth),Ee){var At=Ee.getBoundingClientRect();At.left>0&&At.left<=Rt&&(Ce===void 0||!Ce)&&(document.dir==="rtl"?(Oe=Rt-At.width-At.left,Xe=$e<=480?10:30):(Xe=At.left,Oe=$e<=480?10:30),Te=Xe+Oe)}if(Ee&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var je=Ee.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Te=40,pt=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Te=0,pt=40)}}return Ee&&((Ie===void 0||!Ie)&&xe>0&&xe+Te<Rt?Rt=xe:Rt-=Te,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ie===void 0||!Ie)&&(it-=pt)),{width:Rt,height:it}}function b(Ee,xe,Ie,Ze,Ce){if(Ee.isScreenshoGenerator)return 1;var ue=Ze!==void 0&&Ze,tt=Ee.noScaleMargin!=null&&Ee.noScaleMargin,Le=function(je){return je&&je!=="false"},Rt=Le(Ee.autoHeight),it=ee(xe,Ee.width,Ie,Rt,ue&&window.GGBT_wsf_view||tt,Ce),$e=parseInt(it.width),Te=Ee.width,Oe=Ee.height;if(Te===void 0){var Xe=xe.querySelector(".appletParameters");Xe&&(Te=Xe.offsetWidth,Oe=Xe.offsetHeight)}var pt=$e/Te,At=ue?1:it.height/Oe;return Ie!==void 0&&!Ie&&(pt=Math.min(1,pt),At=Math.min(1,At)),Math.min(pt,At)}function We(Ee,xe,Ie){var Ze=1,Ce,ue=!1;if(Ee.hasOwnProperty("allowUpscale")&&(ue=Ee.allowUpscale),Ee.hasOwnProperty("scale")&&(Ze=parseFloat(Ee.scale),(isNaN(Ze)||Ze===null||Ze===0)&&(Ze=1),Ze>1&&(ue=!0)),xe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ue=!0),!(Ee.hasOwnProperty("disableAutoScale")&&Ee.disableAutoScale))Ce=b(Ee,xe,ue,Ie,Ee.scaleContainerClass);else return Ze;return ue&&(!Ee.hasOwnProperty("scale")||Ze===1)?Ce:Math.min(Ze,Ce)}function fe(Ee){var xe=Math.min(window.innerWidth,document.documentElement.clientWidth),Ie=Math.min(window.innerHeight,document.documentElement.clientHeight),Ze=Ee.getBoundingClientRect(),Ce=(xe-Ze.width)/2,ue=(Ie-Ze.height)/2;ue<0&&(ue=0),Ee.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ce<40?Ee.style.left="40px":Ee.style.left=Ce+"px",Ee.style.top=ue+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ue<40?Ee.style.top="40px":Ee.style.top=ue+"px",Ee.style.left=Ce+"px")}function Ue(Ee,xe){var Ie=Ee.querySelector(".appletParameters");if(Ie){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(xe.id!==Ie.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Ee)}if(Ie.parentElement&&/fullscreen/.test(Ie.parentElement.className))return;var Ze=We(xe,Ee);wn()&&Ie.setAttribute("data-param-scale",Ze);for(var Ce=null,ue=0;ue<Ee.childNodes.length;ue++)if(Ee.childNodes[ue].className!==void 0&&Ee.childNodes[ue].className.match(/^applet_scaler/)){Ce=Ee.childNodes[ue];break}if(Ce!==null&&Ce.querySelector(".noscale")!==null)return;var tt=xe.id!==void 0?xe.id:"ggbApplet",Le=window[tt];(Le==null||!Le.recalculateEnvironments)&&Ce!==null&&!Ce.className.match(/fullscreen/)&&(Ce.parentNode.style.transform="",!isNaN(Ze)&&Ze!==1?(Ce.parentNode.style.width=xe.width*Ze+"px",Ce.parentNode.style.height=xe.height*Ze+"px",Qt(Ce,Ze)):(Qt(Ce,1),Ce.parentNode.style.width=xe.width+"px",Ce.parentNode.style.height=xe.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&fe(Ee),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(Ie).parents(".content-added-content"))}}return{responsiveResize:Ue,isFlexibleWorksheetEditor:wn,positionCenter:fe,getScale:We,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 wn=n.location.search;return wn.indexOf(J)!=-1||wn.indexOf(K)!=-1}function q(wn,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(wn){var Qt=s[L].bindings;s[L].bindings=function(){for(var ee=Qt?Qt():{},b=wn[webModule.__softPermutationId],We=O;We<b.length;We++){var fe=b[We];ee[fe[O]]=fe[P]}return ee}};var t;function u(){return v(),t}function v(){if(!t){var wn=o.createElement(Q);if(wn.id=L,wn.style.cssText=R+S,wn.tabIndex=-1,o.body.appendChild(wn),t=wn.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Qt=document.compatMode==U?V:W;t.write(Qt+X),t.close()}}}function w(wn){function Qt(b){function We(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var fe=We();if(fe){b();return}function Ue(){if(!fe){if(!We())return;fe=!0,b(),o.removeEventListener&&o.removeEventListener(Z,Ue,!1),Ee&&clearInterval(Ee)}}o.addEventListener&&o.addEventListener(Z,Ue,!1);var Ee=setInterval(function(){Ue()},$)}function ee(b){var We=u(),fe=We.body,Ue=We.createElement(_);Ue.language=ab,Ue.crossOrigin=W,Ue.src=b,webModule.__errFn&&(Ue.onerror=function(){webModule.__errFn(L,new Error(bb+b))}),fe.appendChild(Ue)}Qt(function(){ee(wn)})}webModule.__startLoadingFragment=function(wn){return C(wn)},webModule.__installRunAsyncCode=function(wn){var Qt=u(),ee=Qt.body,b=Qt.createElement(_);b.language=ab,b.text=wn,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(wn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(wn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(wn){var Qt=c[wn];return Qt==null?null:Qt},r=d,webModule.__errFn=e}function B(){function wn(Ee){var xe=Ee.lastIndexOf(rb);xe==-1&&(xe=Ee.length);var Ie=Ee.indexOf(sb);Ie==-1&&(Ie=Ee.length);var Ze=Ee.lastIndexOf(tb,Math.min(Ie,xe));return Ze>=O?Ee.substring(O,Ze+P):W}function Qt(Ee){if(!Ee.match(/^\w+:\/\//)){var xe=o.createElement(ub);xe.src=Ee+vb,Ee=wn(xe.src)}return Ee}function ee(){var Ee=__gwt_getMetaProperty(wb);return Ee!=null?Ee:W}function b(){for(var Ee=o.getElementsByTagName(_),xe=O;xe<Ee.length;++xe)if(Ee[xe].src.indexOf(xb)!=-1)return wn(Ee[xe].src);return W}function We(){var Ee=o.getElementsByTagName(yb);return Ee.length>O?Ee[Ee.length-P].href:W}function fe(){var Ee=o.location;return Ee.href==Ee.protocol+zb+Ee.host+Ee.pathname+Ee.search+Ee.hash}var Ue=ee();return Ue==W&&(Ue=b()),Ue==W&&(Ue=We()),Ue==W&&fe()&&(Ue=wn(o.location.href)),Ue=Qt(Ue),Ue}function C(wn){return wn.match(/^\//)||wn.match(/^[a-zA-Z]+:\/\//)?wn:webModule.__moduleBase+wn}function D(){var wn=[],Qt=O,ee=[],b=[];function We(Ee){var xe=b[Ee](),Ie=ee[Ee];if(xe in Ie)return xe;var Ze=[];for(var Ce in Ie)Ze[Ie[Ce]]=Ce;throw r&&r(Ee,Ze,xe),null}if(__gwt_isKnownPropertyValue=function(Ee,xe){return xe in ee[Ee]},webModule.__getPropMap=function(){var Ee={};for(var xe in ee)ee.hasOwnProperty(xe)&&(Ee[xe]=We(xe));return Ee},webModule.__computePropValue=We,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var fe;try{fe=Cb;var Ue=fe.indexOf(Db);Ue!=-1&&(Qt=parseInt(fe.substring(Ue+P),$),fe=fe.substring(O,Ue))}catch(Ee){}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(wn,Qt,ee){"use strict";ee.d(Qt,{Ax:function(){return Ue},Ds:function(){return Ee},KI:function(){return Ie},SI:function(){return fe},f1:function(){return We}});var b=ee(14185);function We(Ze){let Ce=!0;if(Ze.length>0){for(let ue=0;ue<Ze.length;ue++)if(Ze[ue].compile_success==0||!Ze[ue].compile_success){Ce=!1;break}}else Ce=!1;return Ce}function fe(Ze,Ce=""){let ue=[];for(let tt=0;tt<Ze.length;tt++){let Le=Ze[tt],Rt=Ce?`${Ce}/${Le.name}`:`${Le.name}`;ue.push({title:Le.name,type:Le.type,isLeaf:Le.type!=="tree",key:Rt})}return ue}function Ue(Ze,Ce,ue){for(let tt=0;tt<Ze.length;tt++){let Le=Ze[tt];if(Le.key===Ce){Le.children=ue;break}Le.children&&Ue(Le.children,Ce,ue)}return Ze}function Ee(Ze,Ce,ue){let tt;return function(){let Le=this,Rt=arguments,it=function(){tt=null,ue||Ze.apply(Le,Rt)},$e=ue&&!tt;clearTimeout(tt),tt=setTimeout(it,Ce),$e&&Ze.apply(Le,Rt)}}const xe=!0,Ie=b.Z.API_SERVER},42075:function(wn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return it}});var b=ee(7939),We=ee(59301),fe=Object.defineProperty,Ue=Object.defineProperties,Ee=Object.getOwnPropertyDescriptors,xe=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,Ze=Object.prototype.propertyIsEnumerable,Ce=($e,Te,Oe)=>Te in $e?fe($e,Te,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):$e[Te]=Oe,ue=($e,Te)=>{for(var Oe in Te||(Te={}))Ie.call(Te,Oe)&&Ce($e,Oe,Te[Oe]);if(xe)for(var Oe of xe(Te))Ze.call(Te,Oe)&&Ce($e,Oe,Te[Oe]);return $e},tt=($e,Te)=>Ue($e,Ee(Te)),Le=($e,Te)=>{var Oe={};for(var Xe in $e)Ie.call($e,Xe)&&Te.indexOf(Xe)<0&&(Oe[Xe]=$e[Xe]);if($e!=null&&xe)for(var Xe of xe($e))Te.indexOf(Xe)<0&&Ze.call($e,Xe)&&(Oe[Xe]=$e[Xe]);return Oe},Rt=($e,Te,Oe)=>new Promise((Xe,pt)=>{var At=Je=>{try{Be(Oe.next(Je))}catch(nt){pt(nt)}},je=Je=>{try{Be(Oe.throw(Je))}catch(nt){pt(nt)}},Be=Je=>Je.done?Xe(Je.value):Promise.resolve(Je.value).then(At,je);Be((Oe=Oe.apply($e,Te)).next())});const it=$e=>{var Te=$e,{children:Oe}=Te,Xe=Le(Te,["children"]);const[pt,At]=(0,We.useState)(!1);return We.createElement(b.ZP,tt(ue({},Xe),{loading:pt,onClick:je=>Rt(void 0,null,function*(){try{At(!0),yield Xe.onClick(je),At(!1)}catch(Be){console.error(Be),At(!1)}})}),Oe)}},35139:function(wn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Rt}});var b=ee(59301),We=ee(6767),fe=ee(37568),Ue={codeBox:"codeBox___WpkVl"},Ee=ee(92310),xe=ee.n(Ee),Ie=Object.defineProperty,Ze=(it,$e,Te)=>$e in it?Ie(it,$e,{enumerable:!0,configurable:!0,writable:!0,value:Te}):it[$e]=Te,Ce=(it,$e,Te)=>Ze(it,typeof $e!="symbol"?$e+"":$e,Te),ue=(it,$e,Te)=>new Promise((Oe,Xe)=>{var pt=Be=>{try{je(Te.next(Be))}catch(Je){Xe(Je)}},At=Be=>{try{je(Te.throw(Be))}catch(Je){Xe(Je)}},je=Be=>Be.done?Oe(Be.value):Promise.resolve(Be.value).then(pt,At);je((Te=Te.apply(it,$e)).next())});class tt extends b.Component{constructor($e){super($e),Ce(this,"canvas"),Ce(this,"randomNum",(Te,Oe)=>Math.floor(Math.random()*(Oe-Te)+Te)),Ce(this,"drawPic",()=>{this.randomCode()}),Ce(this,"reloadPic",()=>{this.drawPic()}),Ce(this,"changeCode",Te=>{console.log(Te.target.value,222),this.setState({value:Te.target.value,showError:!1})}),Ce(this,"onVerify",()=>{let Te;return this.state.value.toLowerCase()!==""&&this.state.value.toLowerCase()!==this.state.code.toLowerCase()?(Te=!0,We.ZP.error("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u9A8C\u8BC1\u7801"),this.reloadPic()):this.state.value.toLowerCase()===""?(Te=!0,We.ZP.error("\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801")):this.state.value.toLowerCase()===this.state.code.toLowerCase()&&(Te=!1),this.setState({showError:Te}),Te}),this.canvas=b.createRef(),this.state={value:"",code:"",codeLength:4,fontSizeMin:20,fontSizeMax:22,backgroundColorMin:240,backgroundColorMax:250,colorMin:10,colorMax:20,lineColorMin:40,lineColorMax:180,contentWidth:96,contentHeight:38,showError:!1}}componentDidMount(){this.drawPic()}randomColor($e,Te){const Oe=this.randomNum($e,Te),Xe=this.randomNum($e,Te),pt=this.randomNum($e,Te);return`rgb(${Oe}, ${Xe}, ${pt})`}drawText($e,Te,Oe){$e.fillStyle=this.randomColor(this.state.colorMin,this.state.colorMax);const Xe=this.randomNum(this.state.fontSizeMin,this.state.fontSizeMax);$e.font=Xe+"px SimHei";const pt=10,At=(this.state.contentWidth-40)/(this.state.code.length-1);let je=pt;Oe>0&&(je=pt+Oe*At);let Be=this.randomNum(this.state.fontSizeMax,this.state.contentHeight-5);Xe>40&&(Be=40);const Je=this.randomNum(-10,10);$e.translate(je,Be),$e.rotate(Je*Math.PI/180),$e.fillText(Te,0,0),$e.rotate(-Je*Math.PI/180),$e.translate(-je,-Be)}drawLine($e){for(let Te=0;Te<1;Te++)$e.strokeStyle=this.randomColor(this.state.lineColorMin,this.state.lineColorMax),$e.beginPath(),$e.moveTo(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight)),$e.lineTo(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight)),$e.stroke()}drawDot($e){for(let Te=0;Te<100;Te++)$e.fillStyle=this.randomColor(0,255),$e.beginPath(),$e.arc(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight),1,0,2*Math.PI),$e.fill()}randomCode(){let $e="";const Te="QWERTYUPLKJHGFDSAZXCVBNMqwertyupkjhgfdsazxcvbnm1234567890";for(let Oe=0;Oe<this.state.codeLength;Oe++){const Xe=Math.floor(Math.random()*57);$e+=Te[Xe]}this.setState({code:$e},()=>{const Xe=this.canvas.current.getContext("2d");Xe.textBaseline="bottom",Xe.fillStyle=this.randomColor(this.state.backgroundColorMin,this.state.backgroundColorMax),Xe.fillRect(0,0,this.state.contentWidth,this.state.contentHeight);for(let pt=0;pt<this.state.code.length;pt++)this.drawText(Xe,this.state.code[pt],pt);this.drawLine(Xe),this.drawDot(Xe)})}render(){const{className:$e,width:Te=300}=this.props;return b.createElement("div",{className:xe()(Ue.codeBox,$e),style:{width:Te}},b.createElement("aside",null,b.createElement(fe.default,{value:this.state.value,onChange:this.changeCode,placeholder:"\u8BF7\u8F93\u5165\u56FE\u7247\u4E2D\u7684\u9A8C\u8BC1\u7801"})),b.createElement("div",null,b.createElement("canvas",{onClick:this.reloadPic,ref:this.canvas,width:"100",height:"30"}),b.createElement("div",{className:"current",onClick:this.reloadPic},"\u770B\u4E0D\u6E05\uFF1F\u6362\u4E00\u5F20")))}}const Le=(it,$e)=>{let Te;Modal.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:React.createElement("div",null,React.createElement("p",null,$e),React.createElement(tt,{ref:Oe=>Te=Oe})),onOk:()=>ue(void 0,null,function*(){if(Te.onVerify())return Promise.reject();it()})})};var Rt=tt},40254:function(wn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return tt}});var b=ee(59301),We={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},fe=ee(92310),Ue=ee.n(fe),Ee=ee(29787),xe=ee(2859),Ie=ee(49317),Ze=ee(76406),Ce=(Le,Rt,it)=>new Promise(($e,Te)=>{var Oe=At=>{try{pt(it.next(At))}catch(je){Te(je)}},Xe=At=>{try{pt(it.throw(At))}catch(je){Te(je)}},pt=At=>At.done?$e(At.value):Promise.resolve(At.value).then(Oe,Xe);pt((it=it.apply(Le,Rt)).next())}),tt=({data:Le,className:Rt,fullWidth:it,style:$e={},onClose:Te,onOk:Oe,showFullTools:Xe,noAssociationId:pt})=>{const At=(0,b.useRef)(null),je=(0,b.useRef)(null),Be=(0,b.useRef)(null),Je=(0,b.useRef)(null),[nt,zt]=(0,b.useState)(!1),[yt,ot]=(0,b.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,b.useEffect)(()=>(Be.current||(Be.current=document.createElement("style"),document.head.appendChild(Be.current)),Le!=null&&Le.visible?(document.body.setAttribute("data-custom","y-hidden"),Be.current.innerHTML=" html { overflow-y: hidden; }",Le!=null&&Le.src&&ct()):(document.body.removeAttribute("data-custom"),Be.current&&(document.head.removeChild(Be.current),Be.current=null)),()=>{document.body.removeAttribute("data-custom"),Be.current&&(document.head.removeChild(Be.current),Be.current=null)}),[Le==null?void 0:Le.visible]);const ct=()=>Ce(void 0,null,function*(){zt(!0),ot("\u6B63\u5728\u52A0\u8F7D\u4E2D");const de=yield(0,Ze.ZJ)(Le==null?void 0:Le.src);At.current.src="",At.current.src=de,At.current.onload=function(){Ge()},zt(!1),ot("")}),Se=de=>Ce(void 0,null,function*(){zt(!0),ot("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Dt=yield(0,Ie.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Le.title,file:de.dataUrl}});Dt!=null&&Dt.id&&!pt?(yield(0,Ie.ZP)(`/api/attachments/${Le.id}/add_subitem.json`,{method:"post",body:{subitem_id:Dt==null?void 0:Dt.id,settings:JSON.stringify(de.state)}})).status===0&&Oe():Dt!=null&&Dt.id&&Oe(Dt),zt(!1),ot("")}),lt=()=>{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(Ke=>{const gt=document.querySelector(Ke.name);gt&>.setAttribute("title",Ke.title)})},Ge=()=>{je.current=new xe.hP(At.current),je.current.targetRoot=Je.current,je.current.addEventListener("render",Se),je.current.addEventListener("beforeclose",Te),Xe&&(je.current.availableMarkerTypes=je.current.ALL_MARKER_TYPES,je.current.uiStyleSettings.redoButtonVisible=!0,je.current.uiStyleSettings.notesButtonVisible=!0,je.current.uiStyleSettings.zoomButtonVisible=!0,je.current.uiStyleSettings.zoomOutButtonVisible=!0,je.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=je.current.uiStyleSettings,je.current.show(),Le!=null&&Le.snapshotData&&je.current.restoreState(Le.snapshotData),setTimeout(()=>{window.scrollTo(0,0),lt()},300)};return b.createElement(b.Fragment,null,(Le==null?void 0:Le.visible)&&b.createElement(Ee.Z,{spinning:nt,tip:yt,style:{position:"absolute",width:"100vw"}},b.createElement("div",{ref:Je,className:Ue()(We.imageDimensions,Rt,it?We.fullWidth:""),style:$e},b.createElement("img",{className:We.img,ref:At}))))}},9057:function(wn,Qt,ee){"use strict";var b=ee(59301),We=ee(77019),fe=ee(5269),Ue=ee(31691),Ee=ee(7939),xe=ee(35883),Ie=ee(74501),Ze=ee(48136),Ce=ee(59301);const ue=(0,b.forwardRef)(({callback:tt,showSaveButton:Le,value:Rt=""},it)=>{const $e=(0,b.useRef)(),Te=[{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 "}]}]}],Oe=[{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}`}]}]}],Xe=je=>{$e.current.setValue($e.current.getValue()+" "+je.value+" ")},pt=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Ce.createElement(We.Z,{className:Ie.Z.lists,gutter:[10,10]},Te.map((je,Be)=>Ce.createElement(fe.Z,{flex:"110px",className:Ie.Z.item},Ce.createElement("div",null,Ce.createElement(xe.Z,{value:`$$${je.value}$$`}),je.name),Ce.createElement("div",{className:Ie.Z.children},je.children.map((Je,nt)=>Ce.createElement("div",{key:nt},Ce.createElement("h1",null,Je.name),Ce.createElement(We.Z,{gutter:[10,10]},Je.data.map((zt,yt)=>Ce.createElement(fe.Z,{key:yt,onClick:()=>Xe(zt),className:Ie.Z.diamond},Ce.createElement(xe.Z,{value:"`$$"+zt.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Ce.createElement(We.Z,{className:Ie.Z.lists,gutter:[10,10]},Oe.map((je,Be)=>Ce.createElement(fe.Z,{flex:"110px",className:Ie.Z.item},Ce.createElement("div",null,Ce.createElement(xe.Z,{value:"`$$"+je.value+"$$`"}),je.name),Ce.createElement("div",{className:Ie.Z.children},je.children.map((Je,nt)=>Ce.createElement("div",{key:nt},Je.name&&Ce.createElement("h1",null,Je.name),Ce.createElement(We.Z,{gutter:[10,10]},Je.data.map((zt,yt)=>Ce.createElement(fe.Z,{key:yt,onClick:()=>Xe(zt),className:Ie.Z.diamond},Ce.createElement(xe.Z,{value:"`$$"+zt.value+"$$`"}))))))))))}],At=()=>{var je=document.createElement("div");je.innerHTML=$e.current.getValue();var Be=je.innerText;return tt&&tt(Be),Be};return(0,b.useImperativeHandle)(it,()=>({getData:At})),Ce.createElement("div",{className:Ie.Z.mathWrap},Ce.createElement(Ue.default,{defaultActiveKey:"1",items:pt}),Ce.createElement("math-field",{locale:"zh_cn",className:Ie.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:$e,style:{width:800,marginTop:30,fontSize:18}},Rt||""),Le&&Ce.createElement("div",{className:Ie.Z.button},Ce.createElement(Ee.ZP,{size:"large",onClick:At,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Qt.Z=ue},90736:function(wn,Qt,ee){"use strict";var b=ee(59301),We=ee(4977),fe=ee(7939),Ue=Object.defineProperty,Ee=Object.defineProperties,xe=Object.getOwnPropertyDescriptors,Ie=Object.getOwnPropertySymbols,Ze=Object.prototype.hasOwnProperty,Ce=Object.prototype.propertyIsEnumerable,ue=(it,$e,Te)=>$e in it?Ue(it,$e,{enumerable:!0,configurable:!0,writable:!0,value:Te}):it[$e]=Te,tt=(it,$e)=>{for(var Te in $e||($e={}))Ze.call($e,Te)&&ue(it,Te,$e[Te]);if(Ie)for(var Te of Ie($e))Ce.call($e,Te)&&ue(it,Te,$e[Te]);return it},Le=(it,$e)=>Ee(it,xe($e));const Rt=({img:it,buttonProps:$e={},styles:Te={},customText:Oe,ButtonText:Xe,ButtonClick:pt,Buttonclass:At,ButtonTwo:je,imgStyles:Be,loading:Je=!1,className:nt=""})=>b.createElement("section",{className:`tc animated fadeIn ${nt}`,style:tt({color:"#999",margin:"100px auto",visibility:Je?"hidden":"visible"},Te)},b.createElement("img",{src:it||We,style:Le(tt({},Be),{pointerEvents:"none",userSelect:"none"})}),b.createElement("p",{className:"mt20 font14"},Oe||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),Xe&&b.createElement(fe.ZP,tt({className:At,onClick:pt},$e),Xe),je&&je);Qt.Z=Rt},86974:function(wn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return At}});var b=ee(59301),We={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",showClose:"showClose___edZQA",embed:"embed___hvpEJ"},fe=ee(7939),Ue=ee(70557),Ee=ee(34728),xe=ee(25399),Ie=ee(76406),Ze=ee(84849),Ce=ee(90736),ue=ee(14185),tt=ee(52078),Le=ee(59301),Rt=Object.defineProperty,it=Object.getOwnPropertySymbols,$e=Object.prototype.hasOwnProperty,Te=Object.prototype.propertyIsEnumerable,Oe=(je,Be,Je)=>Be in je?Rt(je,Be,{enumerable:!0,configurable:!0,writable:!0,value:Je}):je[Be]=Je,Xe=(je,Be)=>{for(var Je in Be||(Be={}))$e.call(Be,Je)&&Oe(je,Je,Be[Je]);if(it)for(var Je of it(Be))Te.call(Be,Je)&&Oe(je,Je,Be[Je]);return je},pt=(je,Be,Je)=>new Promise((nt,zt)=>{var yt=Se=>{try{ct(Je.next(Se))}catch(lt){zt(lt)}},ot=Se=>{try{ct(Je.throw(Se))}catch(lt){zt(lt)}},ct=Se=>Se.done?nt(Se.value):Promise.resolve(Se.value).then(yt,ot);ct((Je=Je.apply(je,Be)).next())}),At=({editOffice:je="view",data:Be,issaver:Je,onSaver:nt,theme:zt,type:yt,filename:ot,monacoEditor:ct,className:Se,style:lt,close:Ge,onClose:de,hasMask:Dt,disabledDownload:Ke,onImgDimensions:gt,showNodata:Yt,recordInfo:Ne})=>{const[me,Pt]=(0,b.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[Ut,kt]=(0,b.useState)(""),[ge,et]=(0,b.useState)(),rt=window.ENV==="build"?"/react/build":"",_t=location.host.startsWith("localhost")?ue.Z.PROXY_SERVER:ue.Z.API_SERVER,Bt=10*(1024*1024),qe=(0,b.useRef)();Be!=null&&Be.startsWith("/api")&&yt!=="txt"&&(Be=ue.Z.API_SERVER+Be);const tn=ce=>ce.substring(ce.lastIndexOf("/")+1).split(".").pop();ot&&ct&&(ct.filename=ot),(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(ye=>{let ft=ye.split("=");ft[0]==="_educoder_session"&&kt(ft[1])})},[]),(0,b.useEffect)(()=>{yt==="office"&&(Be.indexOf("bigfilescdn.")>-1||Be.indexOf("bigfiles1")>-1?et({url:Be,fileType:tn(Be),model:Be.indexOf("model=edit")?"edit":"view"}):Be.indexOf("coze")>-1?et({url:Be,fileType:"doc",model:"view"}):ae())},[yt,Be]);function Tt(ce){return pt(this,null,function*(){ce.data.type==="pdfdata"&&(nt(ce.data.data),window.removeEventListener("message",Tt,!1)),console.log("mess---:",ce.data)})}const ae=()=>pt(void 0,null,function*(){console.log("data:",Be);let ce=Be;Be.startsWith("http")||(ce=location.origin+ce);let re=new URL(ce).pathname.split("/").pop();const le=yield(0,Ze.gJ)({attachment_id:re});le.url=_t+le.url,et(le)}),ne=()=>{if(Be.startsWith("http")||Be.startsWith("blob:")){te();return}(0,Ie.Sv)(ot||"educoder",Be,ot)},te=()=>{Ne&&(0,tt.fc)({id:Ne==null?void 0:Ne.id,watch_type:1,course_id:Ne==null?void 0:Ne.course_id}),(0,Ie.Nd)(ot||"educoder",decodeURIComponent(Be))};(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 Le.createElement("div",{style:Xe({},lt||{}),className:`${Dt&&We.bgBlack} ${yt?We.wrp:"hide"}`},!!yt&&Ge&&Le.createElement("div",{id:"closePop",className:We.close,ref:qe},!!gt&&Le.createElement(xe.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>qe.current},Le.createElement("span",{onClick:()=>{de(),gt()}},Le.createElement("i",{className:"icon-yulanpizhu"}))),!Ke&&window.parent===window&&Le.createElement(xe.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>qe.current},Le.createElement("span",{onClick:te},Le.createElement("i",{className:"icon-quxiaozhiding"}))),Je&&Le.createElement(xe.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>qe.current},Le.createElement("span",{className:"",onClick:()=>{const ce=document.getElementById("pdfiframe");window.addEventListener("message",Tt,!1),setTimeout(()=>{ce.contentWindow.postMessage("getData","*")},300)}},Le.createElement("i",{className:"icon-baocun"}))),Le.createElement(xe.Z,{title:"\u5173\u95ED",getPopupContainer:()=>qe.current},Le.createElement("span",{className:"",onClick:()=>{de()}},Le.createElement("i",{className:"icon-guanbi1"})))),Le.createElement("div",{className:`${We[Se]} ${Se} ${We.monaco} ${yt==="txt"?"show":"hide"}`},yt==="txt"&&Le.createElement(Le.Fragment,null,Le.createElement(Ee.ZP,Xe({},ct)))),yt==="audio"&&Le.createElement("audio",{controls:!0,src:`${(Be==null?void 0:Be.indexOf("http://"))>-1||(Be==null?void 0:Be.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${Be}`,autoPlay:!0}),yt==="video"&&Le.createElement(Le.Fragment,null,(Be==null?void 0:Be.indexOf("http"))>-1?Le.createElement("video",{controls:!0,src:`${Be}`,autoPlay:!0}):Le.createElement("video",{controls:!0,src:`data:video/mp4;base64,${Be}`,autoPlay:!0})),yt==="office"&&ge&&Le.createElement("iframe",{src:`${rt}/office.html?key=${ge.key}&url=${btoa(ge.url)}&callbackUrl=${_t+(ge.callbackUrl||"")}&fileType=${ge.fileType}&title=${ge.title||""}&model=${je}&officeServer=${ue.Z.ONLYOFFICE}&disabledDownload=${!!Ke}`}),yt==="html"&&Le.createElement("iframe",{src:Be+"&disposition=inline"}),yt==="pdf"&&Le.createElement("iframe",{id:"pdfiframe",src:`${rt}/js/pdf/index.html?filename=${ot||"educoder.pdf"}&url=${encodeURIComponent(Be)}&disabledDownload=${!!Ke}&model=${je}`}),yt==="image"&&Le.createElement("img",{src:`${(Be==null?void 0:Be.indexOf("http://"))>-1||(Be==null?void 0:Be.indexOf("https://"))>-1?"":"data:image/png;base64,"}${Be}`}),(yt==="other"||yt==="download")&&Le.createElement(Le.Fragment,null,Yt?Le.createElement(Ce.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:Le.createElement(fe.ZP,{icon:Le.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:ne,disabled:Ke},"\u4E0B\u8F7D")}):Le.createElement(fe.ZP,{type:"primary",size:"middle",onClick:ne,disabled:Ke},Le.createElement(Ue.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")),yt==="flowChart"&&Le.createElement("div",{className:"embed"},Le.createElement("iframe",{src:`/drawio/src/main/webapp/viewer.html?id=${Be||""}&gapi=0&od=0&db=0&gh=0&gl=0`,width:"100%",height:"100%",frameBorder:"0"})))}},78130:function(wn,Qt,ee){"use strict";ee.d(Qt,{h:function(){return $e},x:function(){return Te}});var b=ee(39116),We=ee(42168),fe=ee(35883),Ue=ee(59301),Ee=Object.defineProperty,xe=Object.defineProperties,Ie=Object.getOwnPropertyDescriptors,Ze=Object.getOwnPropertySymbols,Ce=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable,tt=(Oe,Xe,pt)=>Xe in Oe?Ee(Oe,Xe,{enumerable:!0,configurable:!0,writable:!0,value:pt}):Oe[Xe]=pt,Le=(Oe,Xe)=>{for(var pt in Xe||(Xe={}))Ce.call(Xe,pt)&&tt(Oe,pt,Xe[pt]);if(Ze)for(var pt of Ze(Xe))ue.call(Xe,pt)&&tt(Oe,pt,Xe[pt]);return Oe},Rt=(Oe,Xe)=>xe(Oe,Ie(Xe)),it=(Oe,Xe)=>{var pt={};for(var At in Oe)Ce.call(Oe,At)&&Xe.indexOf(At)<0&&(pt[At]=Oe[At]);if(Oe!=null&&Ze)for(var At of Ze(Oe))Xe.indexOf(At)<0&&ue.call(Oe,At)&&(pt[At]=Oe[At]);return pt};const $e=Oe=>{var Xe=Oe,{value:pt,onChange:At,scrollId:je}=Xe,Be=it(Xe,["value","onChange","scrollId"]);return Ue.createElement("div",{id:je||""},Ue.createElement(b.Z,Rt(Le({},Be),{defaultValue:pt,onChange:(Je,nt)=>{nt!=null&&nt.length?At(Je,nt):At(Je)}})))},Te=({value:Oe,onChange:Xe,placeholder:pt,height:At=140,isEdit:je,miniToolbar:Be,watch:Je=!0})=>je?Ue.createElement(b.Z,{watch:Je,isFocus:!0,height:At||void 0,placeholder:pt,defaultValue:Oe,onChange:Xe,miniToolbar:Be}):Ue.createElement("div",{style:{cursor:"pointer"}},Oe?Ue.createElement(fe.Z,{className:We.Z.inputBorder,value:Oe}):Ue.createElement("div",{className:`${We.Z.inputBorder} ${We.Z.placeholder} inputBorderError`},pt))},35883:function(wn,Qt,ee){"use strict";ee.d(Qt,{z:function(){return ct},Z:function(){return Se}});var b=ee(59301),We=ee(46214),fe=ee(20047),Ue=ee(64018),Ee=ee(16471),xe=ee(14185),Ie=ee(76406),Ze=ee(15342),Ce=ee(44104),ue=ee(7939),tt=ee(1012),Le=ee(86974),Rt=ee(59301),$e=({html:lt})=>{const Ge=(0,b.useRef)(null),de=(0,b.useRef)(null),Dt=`.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 Ke=Ge.current.attachShadow({mode:"open"});de.current=document.createElement("div"),de.current.className="markdown-body",de.current.innerHTML=lt,Ke.appendChild(de.current);const gt=document.createElement("style");return gt.textContent=Dt,Ke.appendChild(gt),()=>{Ke.innerHTML=""}},[]),(0,b.useEffect)(()=>{de.current&&(de.current.innerHTML=lt)},[lt]),Rt.createElement("div",{ref:Ge})};function Te(lt){const Ge=["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(${Ge.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi"),Dt=/<meta\s+http-equiv\s*=\s*["']?refresh["']?[^>]*>/gi;return lt.replace(de,"").replace(Dt,"").trim()}var Oe={mdBody:"mdBody___raKXb",button:"button___Ch5Pc",previewFlowChart:"previewFlowChart___vY1dq"},Xe=Object.defineProperty,pt=Object.getOwnPropertySymbols,At=Object.prototype.hasOwnProperty,je=Object.prototype.propertyIsEnumerable,Be=(lt,Ge,de)=>Ge in lt?Xe(lt,Ge,{enumerable:!0,configurable:!0,writable:!0,value:de}):lt[Ge]=de,Je=(lt,Ge)=>{for(var de in Ge||(Ge={}))At.call(Ge,de)&&Be(lt,de,Ge[de]);if(pt)for(var de of pt(Ge))je.call(Ge,de)&&Be(lt,de,Ge[de]);return lt};const nt="@\u2581\u2581@",zt="@\u2581@",yt=/<pre[^>]*>/g;function ot(lt){let Ge=document.createElement("div");return Ge.innerHTML=lt,Ge.childNodes.length===0?"":Ge.childNodes[0].nodeValue}const ct=(lt,Ge)=>{lt=lt||"";const de=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Dt=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ke=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,gt=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return Ge?lt.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(de,(Yt,Ne,me,Pt,Ut,kt,ge)=>{const et=Ne||Pt||kt,rt=me||Ut||ge||"?";return xe.Z.API_SERVER+"/api/attachments/"+et+rt+"&t="+(0,Ie.Jn)(et,Date.now())+(Yt.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(lt=lt.replace(gt,(Yt,Ne,me,Pt,Ut,kt,ge)=>{const et=Ne||Pt||kt,rt=me||Ut||ge||"?";return xe.Z.API_SERVER+"/attachments/download/"+et+rt+"&t="+(0,Ie.Jn)(et,Date.now())+(Yt.indexOf(")")>-1?")":"&")}).replace(de,(Yt,Ne,me,Pt,Ut,kt,ge)=>{const et=Ne||Pt||kt,rt=me||Ut||ge||"?";return xe.Z.API_SERVER+"/api/attachments/"+et+rt+"&t="+(0,Ie.Jn)(et,Date.now())+(Yt.indexOf(")")>-1?")":"&")}).replace(Dt,(Yt,Ne,me,Pt,Ut)=>{const kt=Ne||Pt,ge=me||Ut||"";return'"'+xe.Z.API_SERVER+"/api/attachments/"+kt+ge+kt+ge+"&t="+(0,Ie.Jn)(kt,Date.now())}).replace(Ke,(Yt,Ne,me,Pt,Ut)=>{const kt=Ne||Pt,ge=me||Ut||"";return"("+xe.Z.API_SERVER+"/files/uploads/"+kt+ge+kt+ge+"&t="+(0,Ie.Jn)(kt,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,`
|
|
|
`),lt)};var Se=({value:lt="",edit:Ge=!1,className:de,showTextOnly:Dt,showLines:Ke,style:gt={},stylesPrev:Yt={},highlightKeywords:Ne,showProgramFill:me,isProgramFill:Pt,disabledFill:Ut=!1,programFillValue:kt,openEditor:ge=()=>{},onFillChange:et=Qe=>{},onFillBlur:rt=()=>{},onFillFocus:_t=()=>{}})=>{let Qe=Te(String(lt||""));const Bt=(0,b.useRef)(),qe=(0,b.useRef)(),[tn,Tt]=(0,b.useState)(""),[ae,ne]=(0,b.useState)("office"),[te,oe]=(0,b.useState)([]),ce=(0,b.useRef)("a"+(0,tt.Z)()),re={},le=Et=>/<style[\s\S]*?>/i.test(Et||""),ye=(Et,on,Kt)=>{const He=document.createElement(Et===zt?"input":"textarea");He.style.width="100%",He.style.height=Et===zt?"40px":"151px",He.rows=5,He.spellcheck=!1,He.name="edu-program-fill",He.placeholder="\u8BF7\u8F93\u5165",He.dataset.id=on;const ht=Object.keys(re).length;return re[ht]=He,`<span class="edu-program-fill-wrap ${Et===zt?"":"show"}" style="width:${Et===zt?"600px":"100%"}" title=${Kt||""}><span>${He.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function ft(Et){return Et=Et.replace(/!\[.*?\]\(.*?\)/g,""),Et=Et.replace(/\[.*?\]\(.*?\)/g,""),Et=Et.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),Et=Et.replace(/<embed.*?>/g,""),Et=Et.replace(/<img.*?>/g,""),Et=Et.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),Et=Et.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),Et=Et.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),Et=Et.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),Et}const Ae=Et=>!Dt&&le(Qe)?Et:Et.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(on,Kt){let He=Kt.replace(/(\n|\r)/g,"").split("}"),ht=[];return He.map(at=>{at!=""&&ht.push(`.${ce.current} ${at}`)}),`<style>${ht.join("}")}</style>`}),ke=(0,b.useMemo)(()=>{(0,fe.Iy)();try{const He=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,ht=/\"\/api\/attachments\/|\"\/attachments\/download\//g,at=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Mt=/\(\/attachments\/download\//g;Qe=Qe.replace(Mt,"("+xe.Z.API_SERVER+"/attachments/download/").replace(He,"("+xe.Z.API_SERVER+"/api/attachments/").replace(ht,'"'+xe.Z.API_SERVER+"/api/attachments/").replace(at,'"'+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,`
|
|
|
`),Bt.current.style.display="none"}catch(He){}if(me){let He=-1;return Qe=Qe.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(ht,at,Mt){var Me;return++He,ye(ht,He,(Me=kt==null?void 0:kt[He])==null?void 0:Me.value.replaceAll("<","<").replaceAll(">",">"))}),`<pre style="background:#fff;padding:4px">${Ae(Qe||"")}</pre>`}let Et=Ae(Qe);Et=(0,fe.ZP)(Et);const on=(0,fe.ez)();Qe.match(/\[TOC\]/)&&(Et=Et.replace("<p>[TOC]</p>",(0,fe.Qv)()),(0,fe.Iy)()),Et=Et.replace(/(__special_katext_id_\d+__)/g,(He,ht)=>{const{type:at,expression:Mt}=on[ht];return(0,Ze.renderToString)(ot(Mt)||"",{displayMode:at==="block",throwOnError:!1,output:"html"})}),Et=Et.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,fe.AL)();const Kt=document.createElement("div");if(Kt.innerHTML=Et,Dt)return Kt.innerText;if(Ne){const He=Ne.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return we(Kt,He),Kt.innerHTML}return setTimeout(()=>Ht(),500),Kt.innerHTML},[Qe,Ne]);(0,b.useEffect)(()=>{De.current&&De.current.querySelectorAll(["input","textarea"]).forEach(on=>{on.oninput=Ve,on.onblur=Ye,on.onfocus=mt})},[te]),(0,b.useEffect)(()=>{var Et,on,Kt,He,ht;if(kt!=null&&kt.length)try{const at=De.current.querySelectorAll(".edu-program-fill-score"),Mt=De.current.querySelectorAll('[name="edu-program-fill"]');for(const[Me,st]of Mt.entries())st.value=((Et=kt==null?void 0:kt[Me])==null?void 0:Et.value)||"",((on=kt==null?void 0:kt[Me])==null?void 0:on.type)==="warning"?st.className="program-fill-warning":((Kt=kt==null?void 0:kt[Me])==null?void 0:Kt.type)==="success"?st.className="program-fill-success":st.className="";for(const[Me,st]of at.entries())st.innerHTML=(He=kt==null?void 0:kt[Me])!=null&&He.score?`${(ht=kt==null?void 0:kt[Me])==null?void 0:ht.score}\u5206`:"";oe(kt)}catch(at){console.log(at,"error")}},[kt]);const Ve=Et=>{te[Et.target.dataset.id]=te[Et.target.dataset.id]||{},te[Et.target.dataset.id].value=Et.target.value,oe([...te]),et(te,Et.target.dataset.id)},Ye=Et=>{te[Et.target.dataset.id]=te[Et.target.dataset.id]||{},te[Et.target.dataset.id].value=Et.target.value,oe([...te]),rt(te,Et.target.dataset.id)},mt=Et=>{te[Et.target.dataset.id]=te[Et.target.dataset.id]||{},te[Et.target.dataset.id].value=Et.target.value,oe([...te]),_t(te,Et.target.dataset.id)};function we(Et,on){return Et.childNodes.forEach(Kt=>{var He;if(Kt.childNodes.length>0)we(Kt,on);else if(Kt.nodeName!=="IMG")if(Kt.innerHTML)Kt.innerHTML=(He=Kt.innerHTML)==null?void 0:He.replace(new RegExp(on,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const ht=document.createElement("span");ht.innerHTML=Kt.textContent.replace(new RegExp(on,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),Kt.replaceWith(ht)}})}const De=(0,b.useRef)();fe.jb.WebkitLineClamp=Ke,Ke&&(gt=Je(Je({},gt),fe.jb));function Zt(Et){let on=Et.target;if(on.tagName.toUpperCase()==="A"){let Kt=on.getAttribute("href");if(Kt.indexOf("office")>-1)Et.preventDefault(),Tt(Kt),ne("office");else if(Kt.indexOf("application/pdf")>-1)Et.preventDefault(),Tt(Kt),ne("pdf");else if(Kt.indexOf("text/html")>-1)Et.preventDefault(),Tt(Kt),ne("html");else if(Kt.startsWith("#")){Et.preventDefault();let He=document.getElementById(Kt.replace("#",""));He&&He.scrollIntoView(!0)}}}const Ht=()=>{var Et;const on=(Et=De.current)==null?void 0:Et.querySelectorAll("video");on==null||on.forEach(Kt=>{if(Kt.oncontextmenu=()=>!1,Kt.src.indexOf(".m3u8")>-1&&!Kt.canPlayType("application/vnd.apple.mpegurl")){if(Ee.ZP.isSupported()){var He=new Ee.ZP;He.loadSource(Kt.src),He.attachMedia(Kt)}}})};(0,b.useEffect)(()=>{if(De.current&&ke&&ke.match(yt)&&window.PR.prettyPrint(),De.current)return De.current.addEventListener("click",Zt),()=>{var Et;(Et=De.current)==null||Et.removeEventListener("click",Zt),(0,fe.AL)(),(0,fe.Iy)()}},[ke,De.current,Zt]);const nn=Et=>{Et.target.nodeName==="IMG"&&Et.target.className.indexOf("draw-flowchart")>-1?(Bt.current.style.zIndex=1,Bt.current.style.display="flex",Bt.current.style.width=Et.target.clientWidth+"px",Bt.current.style.height=Et.target.clientHeight+"px",Bt.current.style.top=Et.target.offsetTop+"px",Bt.current.style.left=Et.target.offsetLeft+"px",Et.target.id&&(qe.current=Et.target.id)):Bt.current.style.display="none"},qt=()=>{Bt.current.style.display="none"};return(0,b.useEffect)(()=>{var Et;const on=Kt=>{Kt.preventDefault(),Kt.clipboardData.setData("text",window.getSelection().toString())};return(Et=De.current)==null||Et.addEventListener("copy",on),()=>{var Kt;(Kt=De.current)==null||Kt.removeEventListener("copy",on)}},[De.current]),b.createElement("div",{style:{position:"relative"},onMouseLeave:qt},Dt&&b.createElement("div",{ref:De,className:`${Oe.mdBody} `},ke),!Dt&&!le(ke)&&b.createElement("div",{ref:De,style:Je({},gt),onMouseOver:nn,className:`${de||""} ${Ut?"disabled-fill":""} markdown-body ${Oe.mdBody} ${ce.current}`,dangerouslySetInnerHTML:{__html:ke}}),!Dt&&le(ke)&&b.createElement($e,{html:ke}),b.createElement("div",{ref:Bt,className:`${Oe.button} ${Ge?"":Oe.previewFlowChart}`},b.createElement(Ce.Z,null,b.createElement(ue.ZP,{onClick:()=>{Ge?ge(qe.current):(Tt(qe.current),ne("flowChart"))}},Ge?"\u7F16\u8F91":"\u9884\u89C8"))),b.createElement(Le.Z,{close:!0,data:tn,type:tn!=null&&tn.length?ae:"",style:Je({},Yt),onClose:()=>Tt("")}))}},28267:function(wn,Qt,ee){"use strict";ee.d(Qt,{h:function(){return je}});var b=ee(59301),We=ee(82326),fe=ee(28284),Ue=ee(7939),Ee=ee(89780),xe=ee.n(Ee),Ie=ee(88319),Ze=ee(94896),Ce=Object.defineProperty,ue=Object.defineProperties,tt=Object.getOwnPropertyDescriptors,Le=Object.getOwnPropertySymbols,Rt=Object.prototype.hasOwnProperty,it=Object.prototype.propertyIsEnumerable,$e=(Be,Je,nt)=>Je in Be?Ce(Be,Je,{enumerable:!0,configurable:!0,writable:!0,value:nt}):Be[Je]=nt,Te=(Be,Je)=>{for(var nt in Je||(Je={}))Rt.call(Je,nt)&&$e(Be,nt,Je[nt]);if(Le)for(var nt of Le(Je))it.call(Je,nt)&&$e(Be,nt,Je[nt]);return Be},Oe=(Be,Je)=>ue(Be,tt(Je));const Xe=We.default.Option,pt={labelCol:{span:4},wrapperCol:{span:20}},At={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:Be,onCancel:Je})=>{const[nt,zt]=(0,b.useState)("python");function yt(ct){zt(At[ct][1])}function ot(ct){Be(ct)}return b.createElement(fe.default,Oe(Te({},pt),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:ot,style:{width:500}}),b.createElement(fe.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},b.createElement(We.default,{getPopupContainer:ct=>ct.parentNode,onChange:yt},Object.keys(At).map(ct=>b.createElement(Xe,{key:ct,value:ct},At[ct][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(je,{mode:nt})),b.createElement("div",{className:"flex-container flex-end"},b.createElement(Ue.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),b.createElement(Ue.ZP,{type:"ghost",onClick:Je},"\u53D6\u6D88")))};function je({value:Be,onChange:Je,mode:nt,options:zt={}}){const yt=(0,b.useRef)(),[ot,ct]=(0,b.useState)();return(0,b.useEffect)(()=>{if(ot){let Se=function(lt){const Ge=lt.getValue();Je&&Je(Ge)};return ot.on("change",Se),()=>{ot.off("change",Se)}}},[ot,Je]),(0,b.useEffect)(()=>{ot&&ot.setOption("mode",nt)},[ot,nt]),(0,b.useEffect)(()=>{ot&&(Be!==ot.getValue()||Be==="")&&setTimeout(()=>{ot.setValue(Be||"")},300)},[ot,Be]),(0,b.useEffect)(()=>{if(yt.current&&!ot){const Se=xe().fromTextArea(yt.current,Te({mode:nt,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},zt));ct(Se)}},[yt.current,ot]),b.createElement("div",{className:"my-codemirror-container"},b.createElement("textarea",{ref:yt}))}},39116:function(wn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return an}});var b=ee(59301),We=ee(44283),fe=ee(89780),Ue=ee.n(fe),Ee=ee(76374),xe=ee(88319),Ie=ee(6313),Ze=ee(25717),Ce=ee(99498),ue=ee(25419),tt=ee(67549),Le=ee(35883),Rt=({value:Jt="",className:pn,showTextOnly:mn,showLines:Cn,style:Fn={}})=>{const zn=(0,b.useMemo)(()=>"",[Jt]);return b.createElement(b.Fragment,null,b.createElement("div",{dangerouslySetInnerHTML:{__html:zn}}))},it=Object.defineProperty,$e=Object.defineProperties,Te=Object.getOwnPropertyDescriptors,Oe=Object.getOwnPropertySymbols,Xe=Object.prototype.hasOwnProperty,pt=Object.prototype.propertyIsEnumerable,At=(Jt,pn,mn)=>pn in Jt?it(Jt,pn,{enumerable:!0,configurable:!0,writable:!0,value:mn}):Jt[pn]=mn,je=(Jt,pn)=>{for(var mn in pn||(pn={}))Xe.call(pn,mn)&&At(Jt,mn,pn[mn]);if(Oe)for(var mn of Oe(pn))pt.call(pn,mn)&&At(Jt,mn,pn[mn]);return Jt},Be=(Jt,pn)=>$e(Jt,Te(pn));let Je=[{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 nt({onActionCallback:Jt,title:pn,icon:mn,actionName:Cn,className:Fn="",children:zn}){function Zn(){Jt(Cn)}return b.createElement("a",{title:pn,className:Fn,onClick:Zn},b.createElement("i",{className:`${mn}`}),zn)}var zt=({watch:Jt,showNullButton:pn,showNullProgramButton:mn,onActionCallback:Cn,fullScreen:Fn,insertTemp:zn,hidetoolBar:Zn,extraUse:Xn})=>{const _n=[...Je,{title:`${Jt?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Jt?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return b.createElement("ul",{className:"markdown-toolbar-container"},!Zn&&_n.map((pr,ar)=>b.createElement("li",{key:ar},pr.actionName?b.createElement(nt,Be(je({},pr),{onActionCallback:Cn})):b.createElement("span",{className:"v-line"}))),pn?b.createElement("li",null,b.createElement(nt,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Cn},b.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,mn?b.createElement(b.Fragment,null,b.createElement("li",null,b.createElement(nt,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Cn},b.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u5355\u884C\u586B\u7A7A\u9879"))),b.createElement("li",null,b.createElement(nt,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Cn},b.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u591A\u884C\u586B\u7A7A\u9879")))):null,zn&&b.createElement("li",null,b.createElement(nt,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${zn}`,onActionCallback:Cn},b.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Xn&&b.createElement("li",null,Xn),b.createElement("li",{className:"btn-full-screen"},b.createElement(nt,{icon:`${Fn?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Fn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Cn})))},yt=ee(88487),ot=ee(28284),ct=ee(37568),Se=ee(7939),lt=Object.defineProperty,Ge=Object.defineProperties,de=Object.getOwnPropertyDescriptors,Dt=Object.getOwnPropertySymbols,Ke=Object.prototype.hasOwnProperty,gt=Object.prototype.propertyIsEnumerable,Yt=(Jt,pn,mn)=>pn in Jt?lt(Jt,pn,{enumerable:!0,configurable:!0,writable:!0,value:mn}):Jt[pn]=mn,Ne=(Jt,pn)=>{for(var mn in pn||(pn={}))Ke.call(pn,mn)&&Yt(Jt,mn,pn[mn]);if(Dt)for(var mn of Dt(pn))gt.call(pn,mn)&&Yt(Jt,mn,pn[mn]);return Jt},me=(Jt,pn)=>Ge(Jt,de(pn));const Pt={labelCol:{span:4},wrapperCol:{span:20}};var Ut=({callback:Jt,onCancel:pn})=>{function mn(Cn){Jt(Cn)}return b.createElement(ot.default,me(Ne({},Pt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:mn,style:{width:500}}),b.createElement(ot.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},b.createElement(ct.default,null)),b.createElement(ot.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},b.createElement(ct.default,null)),b.createElement("div",{className:"flex-container flex-end"},b.createElement(Se.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),b.createElement(Se.ZP,{type:"ghost",onClick:pn},"\u53D6\u6D88")))},kt=ee(28267),ge=ee(53332),et=ee(62957),rt=ee(77019),_t=ee(40254),Qe=ee(59301),Bt=({callback:Jt,onCancel:pn})=>{const mn=document.createElement("canvas"),Cn=mn.getContext("2d");mn.width=1e3,mn.height=800,Cn.fillStyle="#ffffff",Cn.fillRect(0,0,mn.width,mn.height);const Fn=mn.toDataURL("image/png");return Qe.createElement(et.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Qe.createElement(rt.Z,{style:{height:"100vh"}},Qe.createElement(_t.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Fn,visible:!0,title:String(Date.now())},onOk:zn=>{Jt({src:zn.url})},onClose:pn})))},qe=ee(36207),tn=ee(5269),Tt=ee(6767),ae={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re",drawerWrap:"drawerWrap___MfDw8"},ne=ee(59301),oe=(0,b.forwardRef)(({onCancel:Jt,editImgId:pn,callback:mn},Cn)=>{let Fn=(0,b.useRef)(),zn=(0,b.useRef)(),Zn=(0,b.useRef)(),Xn=(0,b.useRef)(!1);const _n=(0,b.useRef)(!1);console.log("ref:",Cn);const[pr,ar]=(0,b.useState)(0),[sn,bn]=(0,b.useState)("100vh");return(0,b.useEffect)(()=>{ar(1)},[]),(0,b.useImperativeHandle)(Cn,()=>({setHeight:bn})),ne.createElement("div",{ref:_n,className:"body-overflow-initial"},ne.createElement(qe.Z,{width:"100vw",height:sn,footer:null,closable:!0,placement:"bottom",open:!!pr,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${ae.drawerWrap}`,onClose:()=>{window.saveDrawData(Hn=>{mn({src:`/api/attachments/${Hn}`,id:Hn})})},title:ne.createElement(rt.Z,{align:"middle"},ne.createElement(tn.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),ne.createElement(tn.Z,{onClick:()=>{bn(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(Hn=>{if(Hn===null){Tt.ZP.warning({content:"\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7ED8\u5236\u6D41\u7A0B\u56FE",key:"saveFlowChart"});return}Tt.ZP.success({content:"\u4FDD\u5B58\u6210\u529F",key:"saveFlowChart",style:{zIndex:999999999}}),mn({src:`/api/attachments/${Hn}`,id:Hn,disabledClose:!0})})}},ne.createElement(Se.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},ne.createElement("iframe",{src:`/drawio/src/main/webapp/?id=${pn||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:zn})))}),ce=ee(14185),re=ee(47889),le=ee(4875);const ye=re.ZP.Group,ft={margin:"0 8px"};var Ae=({callback:Jt,onCancel:pn})=>{function mn(Cn){Jt(Cn)}return b.createElement(ot.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:mn},b.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},b.createElement("span",{style:ft},"\u5355\u5143\u683C\u6570\uFF1A"),b.createElement("span",{style:ft},"\u884C\u6570"),b.createElement(ot.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},b.createElement(le.Z,null)),b.createElement("span",{style:ft},"\u5217\u6570"),b.createElement(ot.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:ft},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),b.createElement(ot.default.Item,{name:"align"},b.createElement(ye,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(Se.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),b.createElement(Se.ZP,{type:"ghost",onClick:pn},"\u53D6\u6D88")))},ke=ee(58755),Ve=ee(84915),Ye=ee.n(Ve),we=(0,b.forwardRef)(({use3d:Jt,width:pn,height:mn,callback:Cn,showSaveButton:Fn},zn)=>{const Zn=(0,b.useRef)(),Xn=(0,b.useRef)(),[_n,pr]=(0,b.useState)(!1),ar=(0,b.useRef)({id:Zn,appName:"graphing",width:pn||1e3,height:mn||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)(()=>{Xn.current=new(Ye())(ar.current,!0),window.onload=function(){Xn.current.inject("applet_container")}},[]);const sn=()=>{var bn=window.ggbApplet.getPNGBase64(1,!0,72);return Cn&&Cn(bn),bn};return(0,b.useEffect)(()=>{ar.current.appName=_n?"3D":"graphing",Xn.current.inject("applet_container")},[_n]),(0,b.useEffect)(()=>{pr(Jt)},[Jt]),(0,b.useImperativeHandle)(zn,()=>({getImgData:sn})),b.createElement(b.Fragment,null,b.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Zn}),b.createElement(rt.Z,{align:"middle"},b.createElement(tn.Z,{flex:1},b.createElement(ke.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:_n,onChange:bn=>pr(bn)})),b.createElement(tn.Z,null,b.createElement(Se.ZP,{size:"large",onClick:sn,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),De=ee(9057);const Zt="link",Ht="upload-image",nn="add-flowchart",qt="draw-image",Et="add-flowchart",on="code-block",Kt="add-table",He="------------",ht={default:He,left:`:${He}`,center:`:${He}:`,right:`${He}:`};var at=ee(79006),Mt=ee(76406);function Me(){}let st=0;const Ct=1e4,Wt="\u2581",cn="@\u2581\u2581@",Sn="@\u2581@",Bn=`
|
|
|
**\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`,Rn=["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(Jt){return/^\d+$/.test(Jt)?`${Jt}px`:Jt}const dn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Xt={[dn+"-B"]:"bold",[dn+"-I"]:"italic"},rn={[Zt]:"\u6DFB\u52A0\u94FE\u63A5",[on]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Ht]:"\u6DFB\u52A0\u56FE\u7247",[qt]:"\u6DFB\u52A0\u753B\u56FE",[nn]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Kt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var an=({defaultValue:Jt="",onChange:pn,width:mn="100%",height:Cn=400,miniToolbar:Fn=!1,isFocus:zn=!1,watch:Zn,insertTemp:Xn,mode:_n="markdown",id:pr="markdown-editor-id",showResizeBar:ar=!1,noStorage:sn=!1,showNullButton:bn=!1,showNullProgramButton:Hn=!1,hidetoolBar:An=!1,fullScreen:ut=!1,onBlur:Ot,onCMBeforeChange:Fe,onFullScreen:vt,className:ze="",disablePaste:bt=!1,disabled:Pe=!1,disabledFill:It=!1,placeholder:$t="",values:Vt="",extraUse:St,onAddBlank:xt})=>{const[wt,Ft]=(0,b.useState)(null),[On,In]=(0,b.useState)(Jt),[Tn,er]=(0,b.useState)(Zn),[lr,dr]=(0,b.useState)(ut),[Jn,Gn]=(0,b.useState)(""),[Qn,cr]=(0,b.useState)(0),[Er,Cr]=(0,b.useState)(Cn),[wr,Yn]=(0,b.useState)(!1),[yr,mr]=(0,b.useState)(0),[Vr,Yr]=(0,b.useState)(0),_r=(0,b.useRef)(),Ur=(0,b.useRef)(),oi=(0,b.useRef)(),Zr=(0,b.useRef)(),Qr=(0,b.useRef)(),Or=(0,b.useRef)(),ti=(0,We.useDispatch)();(0,b.useEffect)(()=>{const $n=window.scrollY||window.pageYOffset;In(Vt),wt==null||wt.setValue(Vt),window.scrollTo(0,$n)},[Vt]),(0,b.useEffect)(()=>{vt==null||vt(lr)},[lr]),(0,b.useEffect)(()=>{if(_r.current){let $n=function(Un,tr){var Jr;if(bt){tr.preventDefault();return}const Ei=tr.clipboardData;if(Ei){const pi=Ei.types.toString(),Ni=Ei.items;if(pi==="Files"||Ei.types.indexOf("Files")>-1){if(tr.preventDefault(),_n=="stex")return;try{let Ii=Ni[1];((Jr=Ni[0])==null?void 0:Jr.kind)==="file"&&(Ii=Ni[0]);const Pi=Ii.getAsFile(),Fi=Pi.name.split(".").pop();(0,ge.I)(Pi,ki=>{var Bi,lo,xo;ki.id?((Bi=Pi==null?void 0:Pi.type)==null?void 0:Bi.indexOf("image"))>-1?Mn.replaceSelection(`<img width="100%" src="/api/attachments/${ki.id}?type=${ki.content_type})" alt="" />`):((lo=Pi==null?void 0:Pi.type)==null?void 0:lo.indexOf("video"))>-1?Mn.replaceSelection(`<video width="100%" controls src="/api/attachments/${ki.id}"></video>`):((xo=Pi==null?void 0:Pi.type)==null?void 0:xo.indexOf("pdf"))>-1?Mn.replaceSelection(`<a href="/api/attachments/${ki.id}?type=${Pi.type}&disposition=inline" target="_blank">${Pi.name}</a>`):Rn.includes(Fi)?Mn.replaceSelection(`<a href="/api/attachments/${ki.id}?type=office&disposition=inline" target="_blank">${Pi.name}</a>`):Mn.replaceSelection(`[${Pi.name}](/api/attachments/${ki.id}?type=${ki.content_type})`):(ki==null?void 0:ki.status)===401&&(document.location.href="/user/login")})}catch(Ii){Tt.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Mn=Ue().fromTextArea(_r.current,{mode:_n,lineNumbers:!Fn,lineWrapping:!0,value:Jt,autoCloseTags:!0,autoCloseBrackets:!0});return Mn.on("keyup",function(Un,tr){tr.keyCode===8&&(Un.getValue()==""?Mn.setOption("placeholder",$t):Mn.setOption("placeholder",null))}),Mn.on("keydown",function(Un,tr){if(tr.keyCode===8){var Jr=$i(Un);Jr&&tr.preventDefault()}}),zn&&Mn.focus(),Mn.on("paste",$n),Pe&&Mn.on("beforeChange",function(Un,tr){(tr.origin==="paste"||tr.origin==="+input")&&tr.cancel()}),Ft(Mn),()=>{Mn.off("paste",$n)}}},[]);const ci=(0,b.useCallback)(()=>{if(Ur.current)try{}catch($n){console.log($n,"---- to set md editor body height")}},[Er,Ur,lr]);(0,b.useEffect)(()=>{function $n(){let Mn=new Ee.Z(Un=>{for(let tr of Un)(tr.target.offsetHeight>0||tr.target.offsetWidth>0)&&(ci(),wt.setSize("100%","100%"),wt.refresh())});return Mn.observe(_r.current.parentElement),Mn}if(wt){const Mn=$n();return()=>{var Un,tr;(Un=_r.current)!=null&&Un.parentElement&&Mn.unobserve((tr=_r.current)==null?void 0:tr.parentElement)}}},[wt,ci]),(0,b.useEffect)(()=>{if(wt){let $n=[];for(const[Mn,Un]of Object.entries(Xt)){let tr={[Mn]:()=>{vi(Un)}};$n.push(tr),wt.addKeyMap(tr)}return()=>{for(let Mn of $n)wt.removeKeyMap(Mn)}}},[wt]),(0,b.useEffect)(()=>{ut!==lr&&dr(ut)},[ut]),(0,at.Z)(()=>{if(!sn&&Qn>0){let $n=new Date().getTime(),Mn=window.sessionStorage.getItem(pr);$n>=Qn+Ct&&(!Mn||Mn!==On)&&(window.sessionStorage.setItem(pr,On),Yn(!0))}},Ct),(0,b.useEffect)(()=>{er(Zn)},[wt,Zn]),(0,b.useEffect)(()=>{wt&&zn&&wt.focus()},[wt,zn]),(0,b.useEffect)(()=>{if(Tn&&wt){let $n=function(Un){let tr=Un.target;if(Zr.current){let Jr=tr.scrollTop/tr.scrollHeight;Zr.current.scrollTop=Zr.current.scrollHeight*Jr}};const Mn=wt.getScrollerElement();return Mn.addEventListener("scroll",$n),()=>{Mn.removeEventListener("scroll",$n)}}},[wt,Tn]),(0,b.useEffect)(()=>{if(wt&&Fe){let $n=function(Mn,Un){Fe(Mn,Un)};return wt.on("beforeChange",$n),()=>{wt.off("beforeChange",$n)}}},[wt,Fe]),(0,b.useEffect)(()=>{if(wt&&Ot){let $n=function(){Ot(wt.getValue())};return wt.on("blur",$n),()=>{wt.off("blur",$n)}}},[wt,Ot]);function $i($n,Mn){var Un=$n.getDoc(),tr=Un.getCursor(),Jr=Un.getLine(tr.line),Ei=Jr.charAt(tr.ch-1),pi=Jr.lastIndexOf("@\u2581@",tr.ch),Ni=Jr.lastIndexOf("@\u2581\u2581@",tr.ch),Ii=pi>Ni?pi:Ni,Pi=pi>Ni?3:4;if(cn.indexOf(Ei)===-1)return null;if(console.log("change1:",Mn,$n,Jr,tr,Ii,pi,Ni,Ei),Ii>=0&&tr.ch-Ii<5){var Fi=Ii+Pi;return Un.replaceRange("",{line:tr.line,ch:Ii},{line:tr.line,ch:Fi}),{line:tr.line,ch:Fi}}return null}(0,b.useEffect)(()=>{if(wt){let $n=function(Mn,Un){const tr=Mn.getValue();In(tr),cr(new Date().getTime()),Mn.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),pn&&(Hn?pn(tr,jn(tr)):pn(tr))};return wt.on("change",$n),()=>{wt.off("change",$n)}}},[wt,pn]),(0,b.useEffect)(()=>{if(wt)if(Jt==null)wt.setValue(""),In("");else{const $n=window.scrollY||window.pageYOffset;Jt!==wt.getValue()&&(wt.setValue(Jt),In(Jt),wt.setCursor(Pe?1:wt.lineCount(),0),window.scrollTo(0,$n))}},[wt,Jt]);const vi=(0,b.useCallback)($n=>{const Mn=wt.getCursor(),Un=wt.getSelection();let tr=Un.split(`
|
|
|
`);switch($n){case"bold":return wt.replaceSelection("**"+Un+"**"),Un===""&&wt.setCursor(Mn.line,Mn.ch+2),wt.focus();case"italic":return wt.replaceSelection("*"+Un+"*"),Un===""&&wt.setCursor(Mn.line,Mn.ch+1),wt.focus();case"code":return wt.replaceSelection("`"+Un+"`"),Un===""&&wt.setCursor(Mn.line,Mn.ch+1),wt.focus();case"inline-latex":return(0,Mt.Ye)(ti)?void 0:(Gn("inline-latex"),wt.focus());case"latex":return wt.replaceSelection("```latex\n"+Un+"\n```"),wt.setCursor(Mn.line+1,Un.length+1),wt.focus();case"line-break":return wt.replaceSelection(`<br/>
|
|
|
`),wt.focus();case"list-ul":return Un===""?wt.replaceSelection("- "+Un):wt.replaceSelection(tr.map(Jr=>Jr===""?"":`- ${Jr}`).join(`
|
|
|
`)),wt.focus();case"list-ol":return Un===""?wt.replaceSelection("1. "+Un):wt.replaceSelection(tr.map((Jr,Ei)=>Jr===""?"":`${Ei+1}. ${Jr}`).join(`
|
|
|
`)),wt.focus();case"add-null-ch":xt==null||xt();return;case"add-signal":return Un===""&&wt.setCursor(Mn.line,Mn.ch),wt.replaceSelection(Sn),wt.focus();case"add-multiple":return Un===""&&wt.setCursor(Mn.line,Mn.ch),wt.replaceSelection(cn),wt.focus();case"inster-template-1":return Un===""&&wt.setCursor(Mn.line,Mn.ch),wt.replaceSelection(Bn),wt.focus();case"eraser":return wt.setValue(""),wt.focus();case"trigger-watch":return er(!Tn),wt.focus();case"trigger-full-screen":return dr(!lr),wt.focus();case Zt:Gn(Zt);return;case on:Gn(on);return;case Ht:Gn(Ht);return;case qt:Gn(qt);return;case"maths-latex":if((0,Mt.Ye)(ti))return;Gn("maths-latex");return;case nn:Qr.current="",sessionStorage.removeItem("file_id"),Gn(nn);return;case Kt:Gn(Kt);return;default:throw new Error}},[wt,Tn,lr]),xi=(0,b.useCallback)(($n,Mn)=>{var Un,tr,Jr,Ei,pi,Ni;$n!=null&&$n.disabledClose||Gn("");const{src:Ii,alt:Pi,id:Fi}=$n||{};switch(Jn){case Zt:const{title:Do,link:To}=$n;return wt.replaceSelection(`[${Do}](${To})`),wt.focus();case on:const{language:Co,content:qr}=$n;return wt.replaceSelection(["```"+Co,qr,"```"].join(`
|
|
|
`)),wt.focus();case"maths-latex":for(var ki=atob($n),Bi=new Uint8Array(ki.length),lo=0;lo<ki.length;lo++)Bi[lo]=ki.charCodeAt(lo);var xo=new Blob([Bi],{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,Mt.Ye)(ti)?void 0:(wt.replaceSelection("`$$"+$n+"$$`"),wt.focus());case Et:return Fi?(wt.getValue().indexOf(Ii)===-1?wt.replaceSelection(`<center><img id="${Fi}" width="80%" src="${Ii}" class="draw-flowchart" alt="${Pi||""}" /></center>`):document.getElementById(Fi).src=ce.Z.API_SERVER+Ii+"?t="+Date.now(),wt.focus()):void 0;case Ht:case qt:const Hr=Mn,Qi=(Jr=(tr=(Un=Hr==null?void 0:Hr.name)==null?void 0:Un.split("."))==null?void 0:tr.pop)==null?void 0:Jr.call(tr);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>`):Rn.includes(Qi)?wt.replaceSelection(`<a href="${Ii}?type=office&disposition=inline" target="_blank">${Hr.name}</a>`):wt.replaceSelection(`[${Hr.name}](${Ii})`),wt.focus();case Kt:const{row:qi,col:ai,align:Wi}=$n;let Yi=`
|
|
|
`;for(let gi=0;gi<qi;gi++){let Zi=[],Mi=[];for(let Zo=0;Zo<ai;Zo++)gi===1&&Mi.push(ht[Wi]),Zi.push(" ");gi===1&&(Yi+=`| ${Mi.join(" | ")} |
|
|
|
`),Yi+=`| ${Zi.join(ai===1?"":" | ")} |
|
|
|
`}return wt.replaceSelection(Yi+`
|
|
|
`),wt.focus();default:throw new Error}},[wt,Jn]),hi=(0,b.useMemo)(()=>{switch(Jn){case Zt:return b.createElement(Ut,{callback:xi,onCancel:bi});case on:return b.createElement(kt.Z,{callback:xi,onCancel:bi});case Ht:return b.createElement(ge.Z,{callback:xi,onCancel:bi});case nn:return b.createElement(oe,{editImgId:Qr.current,callback:xi,onCancel:bi});case Kt:return b.createElement(Ae,{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}},[Jn]);function bi(){Gn("")}(0,b.useEffect)(()=>{if(oi.current){let $n=function(pi){Jr=!0,Ei=pi.pageY},Mn=function(){Jr=!1},Un=function(pi){if(Jr){let Ni=pi.pageY-Ei;Ni<0&&(Ni=0),Ni>300&&(Ni=300);let Ii=Cn+Ni+"px";Cr(Ii)}},tr=oi.current,Jr=!1,Ei=0;return tr.addEventListener("mousedown",$n),document.addEventListener("mousemove",Un),document.addEventListener("mouseup",Mn),()=>{tr.removeEventListener("mousedown",$n),document.removeEventListener("mousemove",Un),document.removeEventListener("mouseup",Mn)}}},[wt,oi]),(0,b.useEffect)(()=>{Cr(Cn)},[Cn]);const Ar=gn(mn),Lr=gn(Er),sr={width:Ar,height:Lr},Dn=(0,b.useMemo)(()=>{if(Qn){let $n=new Date(Qn),Mn=$n.getHours(),Un=$n.getMinutes(),tr=$n.getSeconds();return Mn=Mn<10?"0"+Mn:Mn,Un=Un<10?"0"+Un:Un,tr=tr<10?"0"+tr:tr,`${Mn}:${Un}:${tr}`}return 0},[Qn]),jn=$n=>{const Mn=[];if(Hn){let Un=-1;$n=$n.replace(/(@▁▁@|@▁@)/g,function(tr,Jr,Ei){Mn.push({multiLine:tr!==Sn})})}return Mn};function Kn(){window.sessionStorage.removeItem(pr),Yn(!1),cr(0)}function kn(){Yn(!1),cr(0),wt.setValue(window.sessionStorage.getItem(pr))}(0,b.useEffect)(()=>{rn[Jn]&&Jn!==qt&&Jn!==nn&&setTimeout(()=>{const $n=document.getElementsByClassName("markdown-popup-form")[0],Mn=window.innerWidth/2-$n.offsetWidth/2,Un=window.innerHeight/2-$n.offsetHeight/2;mr(Mn),Yr(Un)},0)},[Jn]);const or=$n=>{$n.preventDefault();const Mn=$n.clientX-yr,Un=$n.clientY-Vr;document.body.onmousemove=tr=>{let Jr=tr.clientX-Mn,Ei=tr.clientY-Un;const pi=document.getElementsByClassName("markdown-popup-form")[0],Ni=window.innerWidth-pi.offsetWidth,Ii=window.innerHeight-pi.offsetHeight;Jr=Math.max(0,Math.min(Jr,Ni)),Ei=Math.max(0,Math.min(Ei,Ii)),br(tr.clientX,tr.clientY,Mn,Un)&&(mr(Jr),Yr(Ei))},document.body.onmouseup=function(){document.body.onmousemove=null}},br=($n,Mn,Un,tr)=>{const Jr=document.body.clientHeight,Ei=document.body.clientWidth;return $n<20&&Un>$n||$n>Ei-20&&Un<$n||Mn<20&&tr>Mn||Mn>Jr-20&&tr<Mn?(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} ${Tn?"on-preview":""} ${Fn?"mini":""} ${lr?"full-screen":""}`,style:sr},b.createElement(zt,{insertTemp:Xn,watch:Tn,fullScreen:lr,showNullButton:bn,showNullProgramButton:Hn,onActionCallback:vi,hidetoolBar:An,extraUse:St}),b.createElement("div",{className:"markdown-editor-body"},b.createElement("div",{className:"codemirror-container"},b.createElement("textarea",{ref:_r,placeholder:$t})),Tn?b.createElement("div",{ref:Zr,className:"preview-container"},_n==="stex"&&b.createElement(Rt,{value:On}),_n!=="stex"&&b.createElement(Le.Z,{edit:!0,disabledFill:It,showProgramFill:Hn,value:On,openEditor:$n=>{var Mn;Qr.current=$n,(Mn=Or.current)==null||Mn.setHeight("100vh"),setTimeout(()=>{Gn("add-flowchart")},150)}})):null))),ar?b.createElement("a",{ref:oi,className:"editor-resize"}):null,Jn===qt&&b.createElement(Bt,{callback:xi,onCancel:bi}),Jn===nn&&b.createElement(oe,{ref:Or,editImgId:Qr.current,callback:xi,onCancel:bi}),b.createElement(yt.Z,null,rn[Jn]&&Jn!==qt&&Jn!==nn?b.createElement(et.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:yr,top:Vr},title:b.createElement("div",{style:{cursor:"move"},onMouseDown:or},rn[Jn]),open:!0,onCancel:bi,footer:null,destroyOnClose:!0,width:Jn===nn?"1200px":null,height:Jn===nn?"80vh":null,className:"markdown-popup-form"},hi):null))}},53332:function(wn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Je},I:function(){return zt}});var b=ee(28284),We=ee(6767),fe=ee(37568),Ue=ee(44104),Ee=ee(4875),xe=ee(47889),Ie=ee(7939),Ze=ee(23216),Ce=ee(59301),ue=ee(59301),tt=Object.defineProperty,Le=Object.defineProperties,Rt=Object.getOwnPropertyDescriptors,it=Object.getOwnPropertySymbols,$e=Object.prototype.hasOwnProperty,Te=Object.prototype.propertyIsEnumerable,Oe=(yt,ot,ct)=>ot in yt?tt(yt,ot,{enumerable:!0,configurable:!0,writable:!0,value:ct}):yt[ot]=ct,Xe=(yt,ot)=>{for(var ct in ot||(ot={}))$e.call(ot,ct)&&Oe(yt,ct,ot[ct]);if(it)for(var ct of it(ot))Te.call(ot,ct)&&Oe(yt,ct,ot[ct]);return yt},pt=(yt,ot)=>Le(yt,Rt(ot));const{useForm:At}=b.default,je={width:280,marginRight:10},Be={labelCol:{span:5},wrapperCol:{span:19}};var Je=({callback:yt,onCancel:ot})=>{const[ct]=At();let Se=(0,Ce.useRef)();function lt(Dt){Se.current.width=ct.getFieldValue("width"),Se.current.align=ct.getFieldValue("align"),yt(Dt,Se.current)}function Ge(Dt,Ke){if(Dt.status===-1){We.ZP.error(Dt.message);return}ct.setFieldsValue({src:`/api/attachments/${Dt.id}`,type:Ke.type})}function de(Dt){let Ke=Dt.target.files[0];Se.current=Ke,zt(Ke,Ge)}return ue.createElement(b.default,pt(Xe({form:ct},Be),{className:"upload-image-panel",onFinish:lt,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:je})),ue.createElement(nt,{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(Ue.Z,null,ue.createElement(b.default.Item,{name:"width",style:{margin:0}},ue.createElement(Ee.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(Ie.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ue.createElement(Ie.ZP,{type:"default",onClick:ot},"\u53D6\u6D88"))))};function nt({onFileChange:yt}){return ue.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",ue.createElement("input",{type:"file",onChange:yt}))}function zt(yt,ot){if(!yt)throw new String("\u6CA1\u6709\u6587\u4EF6");let ct=new FormData;ct.append("editormd-image-file",yt),ct.append("file_param_name","editormd-image-file"),ct.append("byxhr","true");var Se=new window.XMLHttpRequest;Se.withCredentials=!0,Se.addEventListener("load",function(lt){ot(JSON.parse(lt.target.responseText),yt)},!1),Se.addEventListener("error",function(lt){console.error(lt)},!1),Se.open("POST",`${Ze.KI}/api/attachments.json`),Se.send(ct)}},88487:function(wn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return fe}});var b=ee(59301),We=ee(4676);class fe extends b.Component{constructor(Ee){super(Ee);const xe=window.document;this.node=xe.createElement("div"),xe.body.appendChild(this.node)}render(){const{children:Ee}=this.props;return(0,We.createPortal)(Ee,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},34728:function(wn,Qt,ee){"use strict";ee.d(Qt,{SV:function(){return Bt},ZP:function(){return Qe}});var b=ee(59301),We=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"]},Ue={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"]},Ee={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(`
|
|
|
`)}]},Ie={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 Ze=ee(53184),Ce=ee.n(Ze),ue=(qe,tn,Tt)=>new Promise((ae,ne)=>{var te=re=>{try{ce(Tt.next(re))}catch(le){ne(le)}},oe=re=>{try{ce(Tt.throw(re))}catch(le){ne(le)}},ce=re=>re.done?ae(re.value):Promise.resolve(re.value).then(te,oe);ce((Tt=Tt.apply(qe,tn)).next())});const tt={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"]}},Le=(qe,tn,Tt,ae)=>{const ne=tn.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:Tt.lineNumber,endColumn:Tt.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}))},Rt=(qe,tn,Tt,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:[...Le(qe,ne,te,ce),...Tt.map(ye=>({label:ye,kind:qe.languages.CompletionItemKind.Keyword,documentation:ye,insertText:ye,insertTextRules:qe.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ce})),...ae.map(ye=>({label:ye.label,kind:qe.languages.CompletionItemKind.Snippet,documentation:ye.content,insertText:re.startsWith("#")?ye.content.replace(/#/,""):ye.content,insertTextRules:qe.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ce}))]}}})};var it=qe=>{tt.languages.forEach(tn=>{qe.languages.registerDocumentFormattingEditProvider(tn,{provideDocumentFormattingEdits(Tt){return ue(this,null,function*(){const ae=Ce()(Tt.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:Tt.getFullModelRange(),text:ae}]})}})}),Rt(qe,"java",Ue.keywords,Ue.quickKey),Rt(qe,"cpp",Ee.keywords,Ee.quickKey),Rt(qe,"c",fe.keywords,[]),Rt(qe,"python",xe.keywords,xe.quickKey),Rt(qe,"scala",Ie.keywords,Ie.quickKey)};const $e="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var Te=Object.defineProperty,Oe=(qe,tn,Tt)=>tn in qe?Te(qe,tn,{enumerable:!0,configurable:!0,writable:!0,value:Tt}):qe[tn]=Tt,Xe=(qe,tn,Tt)=>Oe(qe,typeof tn!="symbol"?tn+"":tn,Tt);const pt=class Hc{constructor(tn,Tt,ae){this.placeholder=tn,this.editor=Tt,this.monaco=ae,Tt.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)}};Xe(pt,"ID","editor.widget.placeholderHint");var je=pt,Be=ee(96236),Je=ee(6767),nt=ee(25399),zt=ee(78267),yt=ee(33156),ot=ee(56102),ct=Object.defineProperty,Se=Object.defineProperties,lt=Object.getOwnPropertyDescriptors,Ge=Object.getOwnPropertySymbols,de=Object.prototype.hasOwnProperty,Dt=Object.prototype.propertyIsEnumerable,Ke=(qe,tn,Tt)=>tn in qe?ct(qe,tn,{enumerable:!0,configurable:!0,writable:!0,value:Tt}):qe[tn]=Tt,gt=(qe,tn)=>{for(var Tt in tn||(tn={}))de.call(tn,Tt)&&Ke(qe,Tt,tn[Tt]);if(Ge)for(var Tt of Ge(tn))Dt.call(tn,Tt)&&Ke(qe,Tt,tn[Tt]);return qe},Yt=(qe,tn)=>Se(qe,lt(tn)),Ne=(qe,tn)=>{var Tt={};for(var ae in qe)de.call(qe,ae)&&tn.indexOf(ae)<0&&(Tt[ae]=qe[ae]);if(qe!=null&&Ge)for(var ae of Ge(qe))tn.indexOf(ae)<0&&Dt.call(qe,ae)&&(Tt[ae]=qe[ae]);return Tt},me=(qe,tn,Tt)=>new Promise((ae,ne)=>{var te=re=>{try{ce(Tt.next(re))}catch(le){ne(le)}},oe=re=>{try{ce(Tt.throw(re))}catch(le){ne(le)}},ce=re=>re.done?ae(re.value):Promise.resolve(re.value).then(te,oe);ce((Tt=Tt.apply(qe,tn)).next())});function Pt(qe){return/^\d+$/.test(qe)?`${qe}px`:qe}function Ut(){}let kt=!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 et(qe=[]){let tn=qe;if(Array.isArray(qe)){for(let Tt=0;Tt<qe.length;Tt++){let ae=ge[qe[Tt]];if(ae)return ae}return tn[0]}return ge[tn]||tn}let rt=null;const _t=()=>me(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:Tt="100%",height:ae="100%",value:ne,language:te="javascript",style:oe={},options:ce={},overrideServices:re={},theme:le="vs-dark",onEditBlur:ye,isCopy:ft=!1,onSave:Ae,autoHeight:ke=!1,forbidCopy:Ve=!1,forbidCopyTips:Ye,onChange:mt=Ut,editorDidMount:we=Ut,onFocus:De=Ut,onBreakPoint:Zt=Ut,breakPointValue:Ht=[],filename:nn="educoder.txt",errorLine:qt,errorContent:Et="",highlightLine:on,openBreakPoint:Kt=!1,placeholder:He="",showMiniMap:ht=!0}=tn,at=Ne(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 Mt=(0,b.useRef)(),Me=(0,b.useRef)({}),st=(0,b.useRef)(),Ct=(0,b.useRef)(),Wt=(0,b.useRef)([]),cn=(0,b.useRef)(!1),Sn=(0,b.useRef)(),Bn=(0,b.useRef)(),Rn=(0,b.useRef)(!1),[gn,Nn]=(0,b.useState)(!1);function dn(){let sn;return Mt.current&&(sn=new We.Z(bn=>{for(let Hn of bn)(Hn.target.offsetHeight>0||Hn.target.offsetWidth>0)&&Me.current.instance.layout()}),sn.observe(Mt.current)),sn}function Xt(){Je.ZP.warning({content:decodeURIComponent(Ye||$e),key:"monaco-editor-tip"})}const rn=()=>{let sn=Me.current.instance;if(ne!=null&&sn&&gn){const bn=sn.getModel();bn&&ne!==bn.getValue()&&(kt=!0,bn.setValue(ne),sn.layout(),kt=!1)}};(0,b.useEffect)(()=>{const sn=yt.Z.subscribe("formatDocument",bn=>{var Hn;let An=Me.current.instance;(Hn=An==null?void 0:An.getAction)==null||Hn.call(An,"editor.action.formatDocument").run()});return window.updateMonacoValue=bn=>{mt(bn)},sn},[]),(0,b.useEffect)(()=>{var sn;let bn=Me.current.instance;Ct.current&&clearTimeout(Ct.current),Ct.current=setTimeout(()=>{rn()},500),ne&&(ne!=null&&ne.length)&&((sn=bn==null?void 0:bn.updateOptions)==null||sn.call(bn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(ne.split(/\r\n|\r|\n/g).length))+3,5)}))},[ne,gn,Me.current]),(0,b.useEffect)(()=>{if(qt&&Me.current&&Me.current.instance){let bn=Me.current.instance;bn.changeViewZones(function(Hn){var An=document.createElement("div");An.style.padding="10px 20px",An.style.width="calc(100% - 20px)",An.className="my-error-line-wrp",An.innerHTML=Et,Hn.addZone({afterLineNumber:qt||11,heightInLines:3,domNode:An})});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}};bn.addOverlayWidget(sn),bn.revealPositionInCenter({lineNumber:20,column:1})}},[qt,Me.current,gn]);const an=(sn="",bn)=>{if(!sn||sn.trim()==="")return!0;const An=Me.current.instance.getModel().getLineTokens(bn);let ut=!1;for(let Ot=0;Ot<2;Ot++)An.getStandardTokenType(Ot)===1&&(ut=!0);return ut};(0,b.useEffect)(()=>{var sn;const bn=(sn=Me.current)==null?void 0:sn.instance;if(bn&&gn&&Ve){const Hn=bn.onDidBlurEditorWidget(()=>{Rn.current=!1}),An=bn.onDidFocusEditorText(()=>{Rn.current=!0});return()=>{Hn.dispose(),An.dispose()}}},[Me.current,gn,Ve]),(0,b.useEffect)(()=>{var sn;if((sn=Me.current)!=null&&sn.instance&&gn&&Kt){let bn=Me.current.instance,Hn=bn.getModel();if(!Hn)return;(()=>{var St;let xt=[],wt=[];const Ft=Hn.getAllDecorations();for(let In of Ft)In.options.className==="highlighted-line"&&(xt.push((St=In==null?void 0:In.range)==null?void 0:St.startLineNumber),wt.push(In==null?void 0:In.id));if(on===xt[0])return;Hn.deltaDecorations(wt,[]);const On=Hn.getLineCount();on&&on<=On&&(bn.deltaDecorations([],[{range:new rt.Range(on,1,on,Hn.getLineMaxColumn(on)),options:{isWholeLine:!0,className:"highlighted-line"}}]),bn.revealLineInCenter(on))})();const ut=(St=!1)=>{var xt;let wt=[],Ft=[];const On=Hn.getAllDecorations();for(let In of On)In.options.linesDecorationsClassName==="breakpoints-select"&&(wt.push((xt=In==null?void 0:In.range)==null?void 0:xt.startLineNumber),Ft.push(In==null?void 0:In.id));if(St)return{lines:wt,ids:Ft};Zt(wt)},Ot=St=>me(void 0,null,function*(){let xt={range:new rt.Range(St,1,St,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield Hn.deltaDecorations([],[xt]),ut()}),Fe=St=>me(void 0,null,function*(){let xt=[];const wt=bn.getLineDecorations(St);for(let Ft of wt)Ft.options.linesDecorationsClassName==="breakpoints-select"&&xt.push(Ft.id);yield Hn.deltaDecorations(xt,[]),ut()}),vt=St=>{let xt=bn.getLineDecorations(St);for(let wt of xt)if(wt.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,zt.isEqual)(Ht,ut(!0).lines)){Hn.deltaDecorations(ut(!0).ids,[]);const St=Ht.map(xt=>({range:new rt.Range(xt,1,xt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));Hn.deltaDecorations([],St)}const ze=bn.onDidChangeModelContent(St=>{let xt=bn.getPosition();if(xt){let wt=xt.lineNumber;clearTimeout(Bn.current),Bn.current=setTimeout(()=>{an(Hn.getLineContent(wt),wt)?Fe(wt):vt(wt)?(Fe(wt),Ot(wt)):ut()},100)}}),bt=bn.onMouseDown(St=>{var xt,wt,Ft;if(St.target.detail&&((Ft=(wt=(xt=St.target)==null?void 0:xt.element)==null?void 0:wt.className)!=null&&Ft.includes("line-numbers"))){let On=St.target.position.lineNumber;if(an(Hn.getLineContent(On),On))return;vt(On)?Fe(On):Ot(On)}}),Pe=St=>{let xt={range:new rt.Range(St,1,St,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Wt.current=bn.deltaDecorations(Wt.current,[xt])},It=()=>{Wt.current=bn.deltaDecorations(Wt.current,[])},$t=bn.onMouseMove(St=>{var xt,wt,Ft;if(It(),St.target.detail&&((Ft=(wt=(xt=St.target)==null?void 0:xt.element)==null?void 0:wt.className)!=null&&Ft.includes("line-numbers"))){let On=St.target.position.lineNumber;if(an(Hn.getLineContent(On),On))return;Pe(On)}}),Vt=bn.onMouseLeave(()=>{It()});return()=>{ze.dispose(),bt.dispose(),$t.dispose(),Vt.dispose()}}},[Me.current,gn,Ht,on,Kt,te]),(0,b.useEffect)(()=>{var sn;(sn=Me.current)!=null&&sn.instance&&Kt&&Me.current.instance.setPosition({lineNumber:0,column:0})},[on]);function Jt(){let sn=Me.current.instance;if(sn){const bn=sn.getSelection(),Hn=Me.current.pastePos||{},An=new rt.Range(Hn.startLineNumber||bn.endLineNumber,Hn.startColumn||bn.endColumn,Hn.endLineNumber||bn.endLineNumber,Hn.endColumn||bn.endColumn);setTimeout(()=>{sn.executeEdits("",[{range:An,text:""}])},300)}}function pn(sn){(window.navigator.platform.match("Mac")?sn.metaKey:sn.ctrlKey)&&sn.keyCode==83&&(sn.preventDefault(),Ae())}const mn=()=>{if(ke&&Me.current.instance){const sn=Me.current.instance.getContentHeight();pr(sn<ae?ae:sn)}else pr(ae)};function Cn(sn){var bn=document.createEvent("MouseEvents");bn.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),sn.dispatchEvent(bn)}const Fn=sn=>{if(!Rn.current)return;const{keyCode:bn,ctrlKey:Hn,metaKey:An,target:ut,type:Ot}=sn;return(Ot==="paste"||(bn===67||bn===86)&&(An||Hn))&&ut.nodeName==="TEXTAREA"&&(Xt(),sn.preventDefault()),!1};function zn(sn,bn){var Hn=window.URL||window.webkitURL||window,An=new Blob([bn]),ut=document.createElementNS("http://www.w3.org/1999/xhtml","a");ut.href=Hn.createObjectURL(An),ut.download=sn,Cn(ut)}(0,b.useEffect)(()=>{mn()},[mn]),(0,b.useEffect)(()=>{Mt.current&&!gn&&Promise.all([ee.e(8909),ee.e(5977)]).then(ee.bind(ee,71448)).then(sn=>{try{rt=sn,Me.current.instance=rt.editor.create(Mt.current,{value:ne,language:et(te),theme:le,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:ht||!1}},re);const bn=Me.current.instance;let ut=[...Be.BH._menuItems].find(ze=>ze[0]._debugName=="EditorContext")[1],Ot=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Fe=(ze,bt)=>{var Pe,It;let $t=ze._first;do bt.includes((It=(Pe=$t.element)==null?void 0:Pe.command)==null?void 0:It.id)&&ze._remove($t);while($t=$t.next)};if(we(bn,rt),setTimeout(()=>{mn(),Me.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{zn(nn||"educoder.txt",bn.getValue())}})},500),Me.current.subscription=bn.onDidChangeModelContent(ze=>{cn.current?clearTimeout(Sn.current):(mn(),mt(bn.getValue(),ze)),Sn.current=setTimeout(()=>{cn.current=!1},500)}),window.Monaco||it(rt,et(te)),Ve&&(Fe(ut,Ot),Mt.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Fn),window.removeEventListener("paste",Fn),window.addEventListener("keydown",Fn),window.addEventListener("paste",Fn)),window.Monaco=rt,ye&&bn.onDidBlurEditorWidget(()=>{ye(bn.getValue())}),De&&bn.onDidFocusEditorText(()=>{Ve&&_t(),De(bn.getValue())}),Ve){_t();try{bn.onDidPaste(ze=>{const bt=bn.getSelection(),Pe=Me.current.pastePos||{},It=new rt.Range(Pe.startLineNumber||bt.endLineNumber,Pe.startColumn||bt.endColumn,Pe.endLineNumber||bt.endLineNumber,Pe.endColumn||bt.endColumn);bn.executeEdits("",[{range:ze.range,text:""}])})}catch(ze){}}let vt=dn();return He&&typeof He=="string"&&new je(He,bn,rt),Nn(!0),()=>{const ze=Me.current.instance;ze.dispose();const bt=ze.getModel();bt&&bt.dispose(),Me.current.subscription&&Me.current.subscription.dispose(),vt.unobserve(Mt.current)}}catch(bn){}})},[]),(0,b.useEffect)(()=>{if(Me.current.instance&&gn)return document.addEventListener("keydown",pn,!1),()=>{document.removeEventListener("keydown",pn)}},[Ae,gn]),(0,b.useEffect)(()=>{let sn=Me.current.instance;if(sn&&gn){let bn=et(te);rt.editor.setModelLanguage(sn.getModel(),bn)}},[te,gn]),(0,b.useEffect)(()=>{Me.current.instance&&gn&&rt.editor.setTheme(le)},[le,gn]),(0,b.useEffect)(()=>{let sn=Me.current.instance;st.current=ce,sn&&gn&&(sn.updateOptions(gt({},ce)),setTimeout(()=>{sn.getModel().updateOptions(gt({},ce))},200))},[JSON.stringify(ce),gn]),(0,b.useEffect)(()=>{let sn=Me.current.instance;sn&&gn&&sn.layout()},[Tt,ae,gn]);const[Zn,Xn]=(0,b.useState)(Pt(Tt)),[_n,pr]=(0,b.useState)(Pt(ae)),ar=Yt(gt({},oe),{width:Zn,height:_n,position:"relative"});return b.createElement("div",{className:"my-monaco-editor",ref:Mt,style:ar,onFocus:()=>{Ve&&_t()}},ft&&b.createElement(ot.CopyToClipboard,{text:ne,onCopy:()=>Je.ZP.success("\u590D\u5236\u6210\u529F")},b.createElement(nt.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 Bt({width:qe="100%",height:tn="100%",original:Tt,modified:ae,language:ne,options:te={}}){const oe=(0,b.useRef)(),[ce,re]=(0,b.useState)(null);function le(ke){let Ve;return oe.current&&(Ve=new We.Z(Ye=>{for(let mt of Ye)(mt.target.offsetHeight>0||mt.target.offsetWidth>0)&&ke.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(ke=>{rt=ke;const Ve=rt.editor.createDiffEditor(oe.current,Yt(gt({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 Ye=le(Ve);return()=>{Ve.dispose();const mt=Ve.getModel();mt&&mt.dispose(),Ye.unobserve(oe.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,b.useEffect)(()=>{ce&&ce.setModel({original:rt.editor.createModel(Tt,ne),modified:rt.editor.createModel(ae,ne)})},[Tt,ae,ne,ce]);const ye=Pt(qe),ft=Pt(tn),Ae={width:ye,height:ft};return b.createElement("div",{className:"my-diff-editor",ref:oe,style:Ae})}},54077:function(wn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return tt}});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"},We=ee(29787),fe=ee(25399),Ue=ee(89787),Ee=ee(92310),xe=ee.n(Ee),Ie=ee(76406),Ze=ee(90736),Ce=ee(59301),tt=({className:Le,dataSource:Rt=[],col:it=4,right:$e,bottom:Te=23,precision:Oe=0,wrapWidth:Xe=1200,trackEventItems:pt,loading:At,onRemove:je=()=>{},isCurrent:Be=!0,showProgress:Je=!1,showAlias:nt=!1,category:zt="notDisplay",hiddenClick:yt=()=>{}})=>{const ot=Math.floor((Xe-(it-1)*$e)/it),ct=[{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 Ce.createElement(We.Z,{spinning:At},Ce.createElement("div",{className:xe()(b.list,Le)},!!(Rt!=null&&Rt.length)&&(Rt==null?void 0:Rt.map((Se,lt)=>{var Ge,de,Dt,Ke,gt,Yt,Ne;const{name:me,id:Pt,identifier:Ut,featured:kt,school_name:ge,image_url:et,excellent:rt,is_plan:_t}=Se;return Ce.createElement("div",{key:Pt,className:Be&&Je?b.wrapisCurrent:b.wrap,style:{width:ot,marginRight:(1+lt)%it===0?0:$e+Oe,marginBottom:Te}},Ce.createElement("a",{className:b.li,onClick:Qe=>{Qe.preventDefault(),Qe.stopPropagation(),pt&&(0,Ie.L9)([pt]),(0,Ie.xg)(`/paths/${Ut}`)}},Ce.createElement("div",{className:b.img},Ce.createElement("img",{className:b.cover,src:`${et}`}),(Ge=Se==null?void 0:Se.subject_tags)==null?void 0:Ge.map((Qe,Bt)=>{var qe,tn;if(Bt===0){const ae=(qe=ct.find(ne=>ne.name==Qe))==null?void 0:qe.swclass;return Ce.createElement("span",{className:`sprite ${ae} ${b.sign}`,style:{left:"-4px"}})}const Tt=(tn=ct.find(ae=>ae.name==Qe))==null?void 0:tn.ptclass;return Ce.createElement("span",{className:`sprite ${Tt} ${b.sign}`,style:{left:`${48+52*(Bt-1)+2*Bt}px`}})}),Ce.createElement("div",{className:b.tagsDom},Ce.createElement("div",{className:"flex flex-wrap item-center",style:{gap:"0 6px"}},(Se==null?void 0:Se.excellent)&&Ce.createElement("div",{className:b.bq},"\u5F00\u653E\u8BFE\u7A0B"),((de=Se==null?void 0:Se.custom_tags)==null?void 0:de.length)>0&&(Se==null?void 0:Se.custom_tags.map((Qe,Bt)=>{var qe;return Ce.createElement(fe.Z,{title:Qe==null?void 0:Qe.tag_name,key:Bt},Ce.createElement("div",{className:"font12 rounded-2px c-white flex item-center",style:{height:22,padding:"0 6px",maxWidth:((qe=Se==null?void 0:Se.custom_tags)==null?void 0:qe.length)>2?"60px":"71px",background:"rgba(48, 97, 208, .6)",border:"1px solid #8FAFF8"}},Ce.createElement("span",{className:"multi-llipsis1e"},Qe==null?void 0:Qe.tag_name)))})))),zt=="hide"&&(Se==null?void 0:Se.studying)&&Be&&Ce.createElement("div",{className:`${b.movebq} user-path-items`,onClick:Qe=>{Qe.stopPropagation(),je(Se)}},Ce.createElement("i",{className:"iconfont icon-yichu1 font12"}),Ce.createElement("span",null,"\u79FB\u9664")),!["notDisplay","collect","payed"].includes(zt)&&Be&&Ce.createElement("div",{className:`${b.hiddenbq} user-path-items`,onClick:Qe=>{Qe.stopPropagation(),yt(Se)}},Ce.createElement("i",{className:`iconfont ${zt=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),Ce.createElement("span",null,zt=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF"))),Ce.createElement("div",{className:b.name},Ce.createElement(fe.Z,{title:nt&&(Se!=null&&Se.excellent_alias_name)?Ce.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${me}`,Ce.createElement("br",null),Ce.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Se==null?void 0:Se.excellent_alias_name}`)):me},Ce.createElement("span",{className:b.e},nt&&(Se==null?void 0:Se.excellent_alias_name)||me))),Be&&Je&&((Dt=Se==null?void 0:Se.progress)==null?void 0:Dt.all_score)!=0&&Ce.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},Ce.createElement(Ue.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((Ke=Se==null?void 0:Se.progress)==null?void 0:Ke.my_score)/((gt=Se==null?void 0:Se.progress)==null?void 0:gt.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(Yt=Se==null?void 0:Se.progress)==null?void 0:Yt.my_score,"/",(Ne=Se==null?void 0:Se.progress)==null?void 0:Ne.all_score),(!Be||!Je)&&Ce.createElement(fe.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${ge}`},Ce.createElement("div",{className:b.unit},Ce.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),ge)),(!Be||!Je)&&Ce.createElement("div",{className:b.tags},Ce.createElement("div",null,Ce.createElement(fe.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},Ce.createElement("span",null,Ce.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),Ce.createElement("span",null,Se.stages_count))),Ce.createElement(fe.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Ce.createElement("span",null,Ce.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),Ce.createElement("span",null,Se.members_count)))))))})),!Rt.length&&Ce.createElement(Ze.Z,null)))}},70467:function(wn,Qt,ee){"use strict";ee.d(Qt,{jL:function(){return Ue},w9:function(){return me},QD:function(){return Ht},cQ:function(){return lt.Z},op:function(){return Ve},O5:function(){return dn},_b:function(){return He},t7:function(){return Oe},Gi:function(){return rt},YG:function(){return ge},qp:function(){return ue},vr:function(){return Et},qE:function(){return we},Je:function(){return At},wb:function(){return Se},cq:function(){return Tt},tp:function(){return Rt}});var b=ee(59301),We={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"},Ue=({dataSource:Xt=[],img:rn,imgWidth:an=346,title:Jt,sunTitle:pn,bannerExtraContent:mn})=>b.createElement("div",{className:We.banner},b.createElement("div",{className:We.content},b.createElement("aside",null,b.createElement("p",null,b.createElement("b",null,Jt),b.createElement("span",null,pn)),Xt.length>0&&b.createElement("div",{className:We.btns},Xt.map((Cn,Fn)=>b.createElement("div",{key:Fn,onClick:Cn.click},Cn.name,Cn.sign?b.createElement("span",{className:"sprite sprite-33"}):null))),mn),rn&&b.createElement("img",{style:{marginTop:33,marginRight:38},src:rn,width:an}))),Ee={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),Ie=ee.n(xe),Ze=ee(78267),ue=({dataSource:Xt=[],value:rn,onChange:an,onTitleChange:Jt,className:pn,title:mn,titleWidth:Cn=41,style:Fn={},fontColor:zn="#6A7283",showCount:Zn})=>{const[Xn,_n]=(0,b.useState)(1),[pr,ar]=(0,b.useState)(!1),sn=(0,b.useRef)(null),bn=(0,b.useRef)(null);return(0,b.useEffect)(()=>{var Hn;Xt.length!==0&&(((Hn=sn==null?void 0:sn.current)==null?void 0:Hn.clientHeight)>97?_n(1):_n(0)),Xt.length===0&&_n(0),ar(!1)},[Xt]),b.createElement("div",{className:Ie()(Ee.row,pn,"fadeIn","animated"),style:Fn},b.createElement("div",{onClick:(0,Ze.throttle)(()=>Jt==null?void 0:Jt(),2e3),style:{width:Cn,marginTop:pr?12:4},className:`${Ee.title} ${Jt?"current":""}`},mn),b.createElement("div",{className:pr?`${Ee.tagsWrap} ${Ee.tagsBorderWrap}`:Ee.tagsWrap},b.createElement("div",{className:Ee.bar,ref:bn,style:Xn>0?{height:Xn===1?97:"auto",overflow:Xn===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},b.createElement("div",{className:Ee.tag,ref:sn},Xt==null?void 0:Xt.map(Hn=>b.createElement("span",{onClick:()=>an(Hn.id),key:Hn.id,style:{color:zn},className:rn===Hn.id?Ee.active:""},b.createElement("span",{title:Hn.name,className:Ee.name},Hn.name),!!Zn&&b.createElement("span",{className:Ee.num},Hn.count))))),!!Xn&&b.createElement(b.Fragment,null,Xn===1?b.createElement("div",{onClick:()=>{var Hn;_n(2),((Hn=sn==null?void 0:sn.current)==null?void 0:Hn.clientHeight)>245?ar(!0):ar(!1)},className:Ee.action},"\u5C55\u5F00",b.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):b.createElement("div",{onClick:()=>{bn.current.scrollTop=0,_n(1),ar(!1)},className:Ee.action},"\u6536\u8D77",b.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},tt={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"},Rt=({dataSource:Xt=[],value:rn,onChange:an,className:Jt,style:pn={}})=>b.createElement("div",{style:pn,className:Ie()(tt.tabs,Jt)},Xt.map(mn=>b.createElement("span",{onClick:()=>an(mn.id),className:rn===mn.id?tt.active:"",key:mn.id},mn.name))),it={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"},$e=ee(37568),Oe=({dataSource:Xt=[],value:rn="",onChange:an,onInputChange:Jt=()=>{},className:pn,style:mn={},placeholder:Cn,allowClear:Fn=!1})=>{var zn;const[Zn,Xn]=(0,b.useState)(""),[_n,pr]=(0,b.useState)("");(0,b.useEffect)(()=>{var bn;let Hn=rn;(bn=JSON.stringify(rn))!=null&&bn.includes("{")&&(Xn(rn.id),Hn=rn.value||"");try{pr(decodeURIComponent(Hn||""))}catch(An){pr(decodeURIComponent(Hn||""))}},[rn]);const ar=()=>{an(encodeURIComponent(_n),Zn||null)},sn=bn=>{bn!==Zn&&(Xn(bn),an(encodeURIComponent(_n),bn))};return b.createElement("div",{className:Ie()(it.input,pn),style:mn},!!Xt.length&&b.createElement("div",{className:it.dropdown},b.createElement("div",{className:it.text},(zn=Xt.find(bn=>bn.id===Zn))==null?void 0:zn.name,b.createElement("i",{className:"iconfont icon-zhankai4"}),b.createElement("b",{className:it.b1}),b.createElement("b",{className:it.b2})),b.createElement("div",{className:it.menu},Xt.map((bn,Hn)=>b.createElement("div",{key:Hn,onClick:()=>sn(bn.id)},bn.name)))),b.createElement($e.default,{onPressEnter:ar,value:_n,onChange:bn=>{pr(bn.target.value),Jt(encodeURIComponent(bn.target.value),Zn||null)},placeholder:Cn,variant:"borderless",allowClear:Fn,onClear:()=>an("",Zn||null)}),b.createElement("i",{onClick:ar,className:"iconfont icon-sousuo9 font14 current"}))},Xe={flex_box_center:"flex_box_center___tol8o",flex_space_between:"flex_space_between___Z235C",flex_box_vertical_center:"flex_box_vertical_center___Wq1sZ",flex_box_center_end:"flex_box_center_end___LLxom",flex_box_column:"flex_box_column___DbMSN",quickPager:"quickPager___GM30J",disabled:"disabled___Ozc8I"},At=({value:Xt,onChange:rn,className:an,total:Jt,pageSize:pn,style:mn={}})=>{const Cn=Xt<2,Fn=Xt>=Math.ceil(Jt/pn);return Jt<=pn?b.createElement(b.Fragment,null):b.createElement("div",{className:Ie()(Xe.quickPager,an),style:mn},b.createElement("div",{onClick:()=>{Cn||rn(Xt-1,"prev")},className:Cn?Xe.disabled:""},"\u4E0A\u4E00\u9875"),b.createElement("div",{onClick:()=>{Fn||rn(Xt+1,"next")},className:Fn?Xe.disabled:""},"\u4E0B\u4E00\u9875"))},je={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"},Be=ee(29787),Je=ee(25399),nt=ee(63139),zt=ee(14185),yt=ee(76406),ot=ee(90736),Se=({className:Xt,dataSource:rn=[],col:an=4,right:Jt,bottom:pn=23,precision:mn=0,wrapWidth:Cn=1200,trackEventItems:Fn,loading:zn})=>{const Zn=Math.floor((Cn-(an-1)*Jt)/an);return b.createElement(Be.Z,{spinning:zn},b.createElement("div",{className:Ie()(je.list,Xt)},!!rn.length&&rn.map((Xn,_n)=>{const{name:pr,id:ar,identifier:sn,power:bn,cover_image_id:Hn,pic:An}=Xn;return b.createElement("div",{className:je.wrap,key:ar,style:{width:Zn,marginRight:(1+_n)%an===0?0:Jt+mn,marginBottom:pn}},b.createElement("a",{target:"_blank",href:`/shixuns/${sn}/challenges`,className:je.li,onClick:ut=>{ut.preventDefault(),Fn&&(0,yt.L9)([Fn]),bn&&(0,yt.xg)(`/shixuns/${sn}/challenges`)}},b.createElement("div",{className:je.img},b.createElement("img",{className:je.cover,src:`${An}`}),Xn.is_jupyter&&b.createElement("span",{className:`sprite sprite-43 ${je.sign}`}),Xn.is_jupyter_lab&&b.createElement("span",{className:`sprite sprite-42 ${je.sign}`}),Xn.is_unity_3d&&b.createElement("span",{className:`sprite sprite-44 ${je.sign}`})),b.createElement("div",{className:je.name},b.createElement(Je.Z,{title:pr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},b.createElement("span",{className:je.e},pr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),b.createElement("div",{className:je.tags},b.createElement(Je.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},b.createElement("span",null,b.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),b.createElement("span",null,Xn.challenges_count))),!!Xn.myshixuns_count&&b.createElement(Je.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,Xn.myshixuns_count))),b.createElement(Je.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},b.createElement("span",null,b.createElement("span",null,Xn.level))),b.createElement("div",{className:je.rate},b.createElement(nt.Z,{allowHalf:!0,disabled:!0,defaultValue:Xn.score_info}),b.createElement("span",null,"\xA0",Xn.score_info?`${Xn.score_info}\u5206`:"5\u5206")))),!bn&&b.createElement("div",{className:je.lockWrap},b.createElement("img",{src:`${zt.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(ot.Z,null)))},lt=ee(54077),Ge={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",hidden:"hidden___NniIi",wrap:"wrap___pKgcW",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),Dt=ee(96599),Ke="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",gt=ee(59301),Yt=(Xt,rn,an)=>new Promise((Jt,pn)=>{var mn=zn=>{try{Fn(an.next(zn))}catch(Zn){pn(Zn)}},Cn=zn=>{try{Fn(an.throw(zn))}catch(Zn){pn(Zn)}},Fn=zn=>zn.done?Jt(zn.value):Promise.resolve(zn.value).then(mn,Cn);Fn((an=an.apply(Xt,rn)).next())}),me=({className:Xt,dataSource:rn=[],col:an=4,right:Jt,bottom:pn=23,precision:mn=0,wrapWidth:Cn=1200,trackEventItems:Fn,loading:zn,category:Zn,hiddenClick:Xn,handleVery:_n=()=>!0,isCurrent:pr})=>{const[ar,sn]=de.default.useModal(),bn=Math.floor((Cn-(an-1)*Jt)/an),Hn=An=>Yt(void 0,null,function*(){ar.confirm({title:"\u7F6E\u9876",width:500,content:gt.createElement("div",null,"\u60A8\u786E\u5B9A\u8981\u5C06",gt.createElement("span",{className:"c-blue"},"\u201C",An.name,"\u201D"),"\u8BFE\u5802\u7F6E\u9876\u5417\uFF1F"),okText:"\u786E\u8BA4\u7F6E\u9876",centered:!0,cancelText:"\u53D6\u6D88"})});return gt.createElement(Be.Z,{spinning:zn},sn,gt.createElement("div",{className:Ie()(Ge.list,Xt)},!!rn.length&&rn.map((An,ut)=>{const{subject_identifier:Ot,id:Fe,identifier:vt,power:ze}=An,bt=An.is_public!=0&&An.is_public;return gt.createElement("div",{className:Ge.wrap,key:Fe,style:{width:bn,marginRight:(1+ut)%an===0?0:Jt+mn,marginBottom:pn}},An.homepage_show&>.createElement("div",{className:Ge.btnsTop},gt.createElement(Dt.default,{color:"red"},"\u7F6E\u9876")),gt.createElement("a",{className:Ge.li,onClick:Pe=>{Pe.preventDefault(),_n(An==null?void 0:An.first_category_url)&&(Fn&&(0,yt.L9)([Fn]),(0,yt.xg)(An.first_category_url))}},gt.createElement("div",{className:Ge.top},gt.createElement(Je.Z,{title:An.name},gt.createElement("div",{className:Ge.name},An.name)),gt.createElement("img",{className:Ge.img,src:zt.Z.IMG_SERVER+"/images/"+An.avatar_url}),gt.createElement("div",{className:Ge.text,title:An.creator},An.creator),Ot&>.createElement("div",{className:Ge.btns},gt.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),gt.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),bt&>.createElement("div",{className:Ge.sign},"\u516C\u5F00"),pr&>.createElement("div",{className:Ge.hidden,onClick:Pe=>{Pe.stopPropagation(),Xn(An)}},gt.createElement("i",{className:`iconfont ${Zn=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),Zn=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF")),gt.createElement("div",{className:Ge.bottom},An.visits>0&>.createElement(Je.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},gt.createElement("span",null,gt.createElement("i",{className:"iconfont icon-liulanyan"}),gt.createElement("span",null,An.visits))),An.course_members_count>0&>.createElement(Je.Z,{title:"\u6210\u5458",placement:"bottom"},gt.createElement("span",null,gt.createElement("i",{className:"iconfont icon-chengyuan"}),An.course_members_count)),An.tasks_count>0&>.createElement(Je.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},gt.createElement("span",null,gt.createElement("i",{className:"iconfont icon-zuoye"}),An.tasks_count)),An.is_end?gt.createElement("div",{style:{color:"#6B758B"}}):gt.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!An.is_accessible&>.createElement("div",{className:Ge.lockWrap},gt.createElement("img",{src:`${zt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),gt.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!rn.length&>.createElement(ot.Z,null)))},Pt={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"},Ut=ee(44283),ge=({dataSource:Xt=[],value:rn,onChange:an,className:Jt,style:pn={},tabBarExtraContent:mn})=>b.createElement("div",{className:Ie()(Pt.tabs,Jt),style:pn},b.createElement("div",{className:Pt.tabsWrap},Xt.map((Cn,Fn)=>!(Cn!=null&&Cn.hide)&&b.createElement("aside",{className:Pt.tab,onClick:()=>{an(Cn.id),Cn.link&&Ut.history.push(Cn.link)},key:Fn},b.createElement("div",{className:rn===Cn.id?Pt.active:""},Cn.name),(Cn==null?void 0:Cn.resetCount)==null&&(Cn==null?void 0:Cn.total)!==void 0&&b.createElement("span",null,"\uFF08",Cn==null?void 0:Cn.total,"\uFF09"),(Cn==null?void 0:Cn.resetCount)!==void 0&&(Cn==null?void 0:Cn.total)!==void 0&&b.createElement(Je.Z,{title:(Cn==null?void 0:Cn.tip)!=null?Cn==null?void 0:Cn.tip:""},b.createElement("span",{style:{color:"#9096A3"}},"\uFF08",b.createElement("span",{style:{color:"#000"}},Cn==null?void 0:Cn.resetCount),"/",b.createElement("span",null,Cn==null?void 0:Cn.total),"\uFF09"))))),b.createElement("div",{className:Pt.tabBar},mn)),rt=({className:Xt,style:rn={},children:an})=>b.createElement("div",{className:Ie()(Xt),style:rn},an),_t={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),Bt=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 Tt=({sortValue:Xt,dropValue:rn,className:an,onSort:Jt,onDrop:pn,dataSource:mn=qe})=>{var Cn;return b.createElement("div",{className:Ie()(_t.orderWrap,an)},b.createElement(Qe.Z,{dropdownRender:()=>b.createElement(Bt.default,null,mn.map((Fn,zn)=>b.createElement(Bt.default.Item,{key:zn,onClick:()=>pn(Fn.id)},Fn.name)))},b.createElement("span",{className:_t.orderTextWrap},(Cn=mn.find(Fn=>rn===Fn.id))==null?void 0:Cn.name)),b.createElement("span",{className:_t.orderIconWrap},b.createElement("span",{className:_t.orderAsc},b.createElement("i",{className:Xt==="asc"?`iconfont icon-sanjiaoxing-up font12 ${_t.cursorPointer} ${_t.active}`:`iconfont icon-sanjiaoxing-up font12 ${_t.cursorPointer}`,onClick:()=>Jt(Xt==="asc"?"desc":"asc")})),b.createElement("span",{className:_t.orderDesc},b.createElement("i",{className:Xt==="desc"?`iconfont icon-sanjiaoxing-down font12 ${_t.cursorPointer} ${_t.active}`:`iconfont icon-sanjiaoxing-down font12 ${_t.cursorPointer}`,onClick:()=>Jt(Xt==="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=(Xt,rn,an)=>rn in Xt?te(Xt,rn,{enumerable:!0,configurable:!0,writable:!0,value:an}):Xt[rn]=an,ye=(Xt,rn)=>{for(var an in rn||(rn={}))ce.call(rn,an)&&le(Xt,an,rn[an]);if(oe)for(var an of oe(rn))re.call(rn,an)&&le(Xt,an,rn[an]);return Xt},ft=(Xt,rn)=>{var an={};for(var Jt in Xt)ce.call(Xt,Jt)&&rn.indexOf(Jt)<0&&(an[Jt]=Xt[Jt]);if(Xt!=null&&oe)for(var Jt of oe(Xt))rn.indexOf(Jt)<0&&re.call(Xt,Jt)&&(an[Jt]=Xt[Jt]);return an},Ae=(Xt,rn,an)=>new Promise((Jt,pn)=>{var mn=zn=>{try{Fn(an.next(zn))}catch(Zn){pn(Zn)}},Cn=zn=>{try{Fn(an.throw(zn))}catch(Zn){pn(Zn)}},Fn=zn=>zn.done?Jt(zn.value):Promise.resolve(zn.value).then(mn,Cn);Fn((an=an.apply(Xt,rn)).next())}),Ve=Xt=>{var rn=Xt,{className:an,style:Jt,children:pn,loading:mn=!1,openLoading:Cn,onClick:Fn=()=>{},size:zn="middle",shape:Zn="round"}=rn,Xn=ft(rn,["className","style","children","loading","openLoading","onClick","size","shape"]);const[_n,pr]=(0,b.useState)(!1);return b.createElement(ne.ZP,ye({onClick:(0,Ze.throttle)(ar=>Ae(void 0,null,function*(){Cn&&pr(!0);try{yield Fn(ar)}catch(sn){console.log("error",sn)}Cn&&pr(!1)}),2e3,{leading:!0,trailing:!1}),className:Ie()(ae.btn,ae[`${zn}-${Zn}`],an),style:Jt,size:zn,shape:Zn,loading:_n||mn},Xn),pn)},Ye={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:Xt,style:rn,children:an=null,onClick:Jt,title:pn})=>b.createElement("div",{className:Ie()(Ye.head,Xt),style:rn},b.createElement("span",{className:"primary-hover",onClick:Jt},b.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),b.createElement("b",{title:pn},pn),b.createElement("div",{className:Ye.node},an)),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"},Ht=({confirmShow:Xt=!0,confirmTitle:rn,confirmClick:an,cancelShow:Jt=!0,cancelTitle:pn,cancelClick:mn,className:Cn,style:Fn,confirmLoading:zn=!1})=>b.createElement("div",{className:Ie()(De.btns,Cn),style:Fn},Xt&&b.createElement(ne.ZP,{loading:zn,onClick:an,type:"primary",className:De.confirm},rn),Jt&&b.createElement(ne.ZP,{onClick:mn,className:De.cancel},pn)),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"},Et=({className:Xt,style:rn={},LeftContent:an,children:Jt,RightContent:pn})=>b.createElement("div",{className:Ie()(nn.fixedBottom,Xt),style:rn},b.createElement("div",{className:nn.wrap},b.createElement("div",{className:nn.left},an),b.createElement("div",{className:nn.center},Jt),b.createElement("div",{className:nn.right},pn))),on={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"},He=({className:Xt,style:rn={},dataSource:an=[]})=>b.createElement("div",{className:Ie()(on.crumbs,Xt),style:rn},an.map((Jt,pn)=>pn<an.length-1?b.createElement(b.Fragment,{key:pn},Jt.path||Jt.onClick?b.createElement("span",{className:on.hover,onClick:Jt!=null&&Jt.onClick?Jt.onClick:()=>Ut.history.push(Jt.path)},Jt.name):b.createElement("span",null,Jt.name),b.createElement("span",null,"\xA0",">","\xA0")):b.createElement("span",{key:pn,style:{color:"#5F6368"}},Jt.name))),ht=ee(11938),at=Object.defineProperty,Mt=Object.defineProperties,Me=Object.getOwnPropertyDescriptors,st=Object.getOwnPropertySymbols,Ct=Object.prototype.hasOwnProperty,Wt=Object.prototype.propertyIsEnumerable,cn=(Xt,rn,an)=>rn in Xt?at(Xt,rn,{enumerable:!0,configurable:!0,writable:!0,value:an}):Xt[rn]=an,Sn=(Xt,rn)=>{for(var an in rn||(rn={}))Ct.call(rn,an)&&cn(Xt,an,rn[an]);if(st)for(var an of st(rn))Wt.call(rn,an)&&cn(Xt,an,rn[an]);return Xt},Bn=(Xt,rn)=>Mt(Xt,Me(rn)),Rn=(Xt,rn)=>{var an={};for(var Jt in Xt)Ct.call(Xt,Jt)&&rn.indexOf(Jt)<0&&(an[Jt]=Xt[Jt]);if(Xt!=null&&st)for(var Jt of st(Xt))rn.indexOf(Jt)<0&&Wt.call(Xt,Jt)&&(an[Jt]=Xt[Jt]);return an};const{Countdown:gn}=ht.default;var dn=Xt=>{var rn=Xt,{onChange:an}=rn,Jt=Rn(rn,["onChange"]);const[pn,mn]=(0,b.useState)(null);(0,b.useEffect)(()=>{typeof pn=="number"&&pn>=0&&an(pn)},[pn]);const Cn=Fn=>{const zn=Math.floor(Fn/1e3);mn(zn)};return b.createElement(gn,Bn(Sn({},Jt),{onChange:Cn}))}},79006:function(wn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return We}});var b=ee(59301);function We(fe,Ue){const Ee=(0,b.useRef)();(0,b.useEffect)(()=>{Ee.current=fe}),(0,b.useEffect)(()=>{function xe(){Ee.current()}if(Ue!==null){let Ie=setInterval(xe,Ue);return()=>clearInterval(Ie)}},[Ue])}},27791:function(wn,Qt,ee){"use strict";ee.r(Qt),ee.d(Qt,{default:function(){return me}});var b=ee(59301),We={flex_box_center:"flex_box_center___fl5m6",flex_space_between:"flex_space_between___bly3M",flex_box_vertical_center:"flex_box_vertical_center___xKfVY",flex_box_center_end:"flex_box_center_end___uQRsy",flex_box_column:"flex_box_column___V96Tv",ActvieE3:"ActvieE3___B5egy",Onerow:"Onerow___t6jyJ",body:"body___RTqwS",AddBut:"AddBut___iKjQP",FormDiv:"FormDiv___I9YYs"},fe=ee(44283),Ue=ee(28284),Ee=ee(25399),xe=ee(6767),Ie=ee(62957),Ze=ee(77019),Ce=ee(5269),ue=ee(70858),tt=ee(31709),Le=ee(7939),Rt=ee(62673),it=ee(37568),$e=ee(82326),Te=ee(94968),Oe=ee(58755),Xe=ee(70467),pt=ee(56102),At=ee(90736),je=ee(14185),Be=ee(76406),Je=ee(35139),nt=ee(78130),zt=ee(45567),yt=ee(42075),ot=Object.defineProperty,ct=Object.defineProperties,Se=Object.getOwnPropertyDescriptors,lt=Object.getOwnPropertySymbols,Ge=Object.prototype.hasOwnProperty,de=Object.prototype.propertyIsEnumerable,Dt=(Pt,Ut,kt)=>Ut in Pt?ot(Pt,Ut,{enumerable:!0,configurable:!0,writable:!0,value:kt}):Pt[Ut]=kt,Ke=(Pt,Ut)=>{for(var kt in Ut||(Ut={}))Ge.call(Ut,kt)&&Dt(Pt,kt,Ut[kt]);if(lt)for(var kt of lt(Ut))de.call(Ut,kt)&&Dt(Pt,kt,Ut[kt]);return Pt},gt=(Pt,Ut)=>ct(Pt,Se(Ut)),Yt=(Pt,Ut,kt)=>new Promise((ge,et)=>{var rt=Bt=>{try{Qe(kt.next(Bt))}catch(qe){et(qe)}},_t=Bt=>{try{Qe(kt.throw(Bt))}catch(qe){et(qe)}},Qe=Bt=>Bt.done?ge(Bt.value):Promise.resolve(Bt.value).then(rt,_t);Qe((kt=kt.apply(Pt,Ut)).next())});const Ne=({graduations:{Tasks:Pt,teachers:Ut,students:kt,forTask:ge},loading:et,dispatch:rt})=>{var _t,Qe;const Bt=(0,fe.useParams)(),[qe,tn]=(0,b.useState)([]),[Tt,ae]=(0,b.useState)([]),[ne,te]=(0,b.useState)(!1),[oe,ce]=(0,b.useState)(!1),[re]=Ue.default.useForm(),[le,ye]=(0,b.useState)({}),[ft,Ae]=(0,b.useState)({}),[ke,Ve]=(0,b.useState)([]),[Ye,mt]=(0,b.useState)(!1),we=(0,b.useRef)(null),[De,Zt]=(0,b.useState)({keyword:"",page:1,per_page:20,status:null,is_teacher:!0}),Ht=[{id:null,name:"\u5168\u90E8"},{id:1,name:"\u8FBE\u6210\u53CC\u9009"},{id:0,name:"\u672A\u8FBE\u6210\u53CC\u9009"}],nn=[{title:"\u8BFE\u9898\u540D\u79F0",dataIndex:"name",ellipsis:!0,render:at=>b.createElement(Ee.Z,{placement:"topLeft",title:at},b.createElement("span",{className:"c-grey-333"},at))},{title:"\u6307\u5BFC\u8001\u5E08",width:120,ellipsis:!0,dataIndex:"teacher_names",render:at=>b.createElement(Ee.Z,{placement:"topLeft",title:at},b.createElement("span",{className:"c-grey-333"},at))},{title:"\u9009\u9898\u72B6\u6001",width:120,dataIndex:"status",render:at=>b.createElement(b.Fragment,null,at==0&&b.createElement("span",{style:{color:"#E30000"}},"\u672A\u8FBE\u6210\u53CC\u9009"),at==1&&b.createElement("span",null,"\u8FBE\u6210\u53CC\u9009"))},{title:"\u9080\u8BF7\u7801",width:132,dataIndex:"invite_code",render:at=>b.createElement("span",{className:"c-grey-333"},at,b.createElement(pt.CopyToClipboard,{text:at,onCopy:()=>xe.ZP.success("\u590D\u5236\u6210\u529F")},b.createElement("i",{className:"iconfont icon-fuzhi8 font14",style:{color:"#165DFF",marginLeft:"8px",cursor:"pointer"}})))},{title:b.createElement("span",null,"\u64CD\u4F5C"),align:"right",width:120,render:(at,Mt)=>b.createElement(b.Fragment,null,b.createElement(yt.Z,{type:"link",style:{whiteSpace:"nowrap",padding:0},onClick:()=>Yt(void 0,null,function*(){var Me,st;mt(!1),yield on(),Mt.teacher_ids=(Me=Mt.teacher)==null?void 0:Me.map(Ct=>Ct.id),Mt.student_id=Mt.student_id?Number(Mt.student_id):"",Ve((st=Mt==null?void 0:Mt.attachments)==null?void 0:st.map(Ct=>({uid:Ct==null?void 0:Ct.id,name:(Ct==null?void 0:Ct.title)+" "+(Ct==null?void 0:Ct.filesize),status:"done",url:(Ct==null?void 0:Ct.url)||""}))),ye(Mt),Ae(Mt),re.setFieldsValue(Mt)})},"\u7F16\u8F91"),b.createElement("a",{className:We.ActvieE3,type:"link",style:{padding:"0 0 0 10px",whiteSpace:"nowrap"},onClick:()=>{if(Mt.status==1)xe.ZP.warning("\u8BE5\u8BFE\u9898\u5DF2\u88AB\u5B66\u751F\u9009\u9898\u4E0D\u80FD\u5220\u9664");else{const Me=Ie.default.confirm({title:"\u5220\u9664\u63D0\u793A",icon:null,maskClosable:!0,content:b.createElement("span",null,"\u786E\u5B9A\u8981\u5220\u9664\u8BFE\u9898\uFF1F\u5220\u9664\u540E\u65E0\u6CD5\u6062\u590D"),okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>Yt(void 0,null,function*(){(yield rt({type:"graduations/getDelGraduationsTasks",payload:{id:Bt.id,ids:[Mt.id]}})).status==0&&(xe.ZP.success("\u5220\u9664\u6210\u529F"),De.page=1,Zt(Ke({},De))),Me.destroy()}),onCancel:()=>{Me.destroy()}})}}},"\u5220\u9664"))}],qt={multiple:!0,withCredentials:!0,defaultFileList:ke,onRemove:at=>{Ve(ke.filter(Mt=>(at.uid||at.response.id)!=Mt.uid))},beforeUpload:at=>{const Mt=at.size/1024/1024;return Mt>150||Mt==0?(xe.ZP.error(`${at.name} \u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002${Mt==0?"\u6587\u4EF6\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A":"\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(150MB)"}`),Promise.reject()):!0},action:`${je.Z.API_SERVER}/api/attachments.json`,onChange:at=>{var Mt,Me,st,Ct,Wt,cn,Sn,Bn;at.file.status==="done"&&Ve([...ke,{uid:(Me=(Mt=at==null?void 0:at.file)==null?void 0:Mt.response)==null?void 0:Me.id,name:((Ct=(st=at==null?void 0:at.file)==null?void 0:st.response)==null?void 0:Ct.filename)+" "+(0,Be.RD)((cn=(Wt=at==null?void 0:at.file)==null?void 0:Wt.response)==null?void 0:cn.filesize),status:"done",url:((Bn=(Sn=at==null?void 0:at.file)==null?void 0:Sn.response)==null?void 0:Bn.url)||""}])}},Et={selectedRowKeys:[...qe.map(at=>at.id),...Tt.map(at=>at.id)],onChange:(at,Mt)=>{const Me=[],st=[];Mt.map(Ct=>{Ct.status==0?st.push(Ct):Me.push(Ct)}),ae(Me),tn(st)}},on=(at=!1)=>Yt(void 0,null,function*(){var Mt,Me;const st=yield rt({type:"graduations/getGraduationsTeachers",payload:{id:Bt.id,page:1,per_page:2e3}});if(rt({type:"graduations/getGraduationsStudents",payload:{id:Bt.id,page:1,per_page:2e3}}),rt({type:"graduations/getGraduationsDetails",payload:{id:Bt.id}}),at){const Ct=(Me=(Mt=st==null?void 0:st.data)==null?void 0:Mt.filter(Wt=>Wt==null?void 0:Wt.is_creator))==null?void 0:Me.map(Wt=>Wt.id);re.setFieldsValue({teacher_ids:Ct}),ye(gt(Ke({},le),{teacher_ids:Ct}))}te(!0)}),Kt=()=>Yt(void 0,null,function*(){yield rt({type:"graduations/getGraduationsTasks",payload:Ke({id:Bt.id},De)})}),He=at=>Yt(void 0,null,function*(){at.attachment_ids=ke.map(Me=>Me.uid);let Mt;Ye?Mt=yield(0,zt.jW)(Ke({graduation_id:Bt.id},at)):Mt=yield(0,zt.YS)(Ke({graduation_id:Bt.id,id:le.id},at)),Mt.status==0&&(xe.ZP.success(Ye?"\u521B\u5EFA\u6210\u529F":"\u66F4\u65B0\u6210\u529F"),ye({}),Ve([]),te(!1),re.resetFields(),yield Kt())});(0,b.useEffect)(()=>{tn([]),ae([]),Kt()},[De]),(0,b.useEffect)(()=>{le.base_project&&ht()},[le==null?void 0:le.base_project]);const ht=(at=1e5)=>{const Mt=document.querySelector(".ant-form-modal-body").querySelector(".ant-modal-body");Mt.scrollTop=at};return b.createElement("section",{className:We.body},b.createElement(Xe.YG,{value:"manage",tabBarExtraContent:b.createElement(Xe.op,{openLoading:!0,onClick:()=>Yt(void 0,null,function*(){mt(!0),yield on(!0)})},"\u5F55\u5165\u8BFE\u9898"),dataSource:[{id:"manage",name:"\u8BFE\u9898\u7BA1\u7406"}],onChange:at=>{console.log(at)}}),b.createElement(Ze.Z,{wrap:!1,align:"middle",justify:"space-between"},b.createElement(Ce.Z,null,b.createElement(Xe.qp,{title:"\u72B6\u6001",className:"mt20",dataSource:Ht,titleWidth:28,value:De.status,onChange:at=>{De.status=at,De.page=1,Zt(Ke({},De))}})),b.createElement(Ce.Z,null,b.createElement(Xe.t7,{style:{width:329,height:"38px"},placeholder:"\u8BF7\u8F93\u5165\u8BFE\u9898\u540D\u79F0/\u6307\u5BFC\u8001\u5E08\u8FDB\u884C\u641C\u7D22",value:De.keyword,onChange:at=>{De.keyword=at,De.page=1,Zt(Ke({},De))}}))),qe.length+Tt.length>0&&b.createElement(Ze.Z,{wrap:!1,align:"middle",justify:"space-between",style:{padding:"11px 12px",background:"#F4F7FC",marginBottom:"1px"}},b.createElement(Ce.Z,null,"\u5DF2\u9009\u62E9\xA0",b.createElement("span",{style:{color:"#165DFF"}},qe.length+Tt.length||0),"\xA0\u9879"),b.createElement(Ce.Z,{style:{color:"#E30000",cursor:"pointer"},onClick:()=>{const at=Ie.default.confirm({title:"\u5220\u9664\u63D0\u793A",icon:null,maskClosable:!0,content:b.createElement("span",null,"\u786E\u5B9A\u8981\u5220\u9664\u8BFE\u9898\uFF1F\u5220\u9664\u540E\u65E0\u6CD5\u6062\u590D"),okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>Yt(void 0,null,function*(){qe.length>0&&(yield rt({type:"graduations/getDelGraduationsTasks",payload:{id:Bt.id,ids:qe.map(Me=>Me.id)}})).status==0&&xe.ZP.success("\u6279\u91CF\u5220\u9664\u6210\u529F"),Tt.length>0&&(qe.length==0&&xe.ZP.error("\u65E0\u6CD5\u5220\u9664"),ce(!0)),tn([]),Kt(),at.destroy()}),onCancel:()=>{at.destroy()}})}},b.createElement("i",{className:"iconfont icon-piliangshanchu3 mr5"}),"\u6279\u91CF\u5220\u9664")),b.createElement(ue.default,{rowKey:"id",loading:et.effects["graduations/getGraduationsTasks"],style:{minHeight:500},locale:{emptyText:b.createElement(At.Z,{customText:De.status==null&&De.keyword==""&&De.page==1?"\u60A8\u5F53\u524D\u8FD8\u6CA1\u6709\u5F55\u5165\u8BFE\u9898\uFF0C\u70B9\u51FB\u5B8C\u6210\u8BFE\u9898\u5F55\u5165":"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!",ButtonTwo:De.status==null&&De.keyword==""&&De.page==1?b.createElement(Xe.op,{openLoading:!0,onClick:()=>Yt(void 0,null,function*(){mt(!0),yield on(!0)})},"\u5F55\u5165\u8BFE\u9898"):b.createElement(b.Fragment,null)})},rowSelection:Et,columns:nn,dataSource:Pt.data,pagination:!1}),Pt.count!=0&&b.createElement(Ze.Z,{className:"mt20 mb20",wrap:!1,align:"middle",justify:"space-between"},b.createElement(Ce.Z,null,"\u5171\xA0",b.createElement("span",{style:{color:"#165DFF"}},Pt.count||0),"\xA0\u6761\u6570\u636E"),b.createElement(Ce.Z,null,b.createElement(tt.Z,{showSizeChanger:!0,showQuickJumper:!0,current:De.page,pageSize:De.per_page,onShowSizeChange:(at,Mt)=>{De.per_page=Mt,De.page=1,Zt(Ke({},De))},onChange:at=>{De.page=at,Zt(Ke({},De))},total:Pt.count}))),b.createElement(Ie.default,{open:oe,title:"\u63D0\u793A",destroyOnClose:!0,width:1200,footer:b.createElement(Le.ZP,{type:"primary",onClick:()=>{ce(!1),ae([])}},"\u77E5\u9053\u4E86"),onCancel:()=>{ce(!1),ae([])}},b.createElement("span",null,"\u4E0B\u9762",b.createElement("span",{style:{color:"#FA6400"}},Tt.length),"\u4E2A\u8BFE\u9898\u5DF2\u88AB\u5B66\u751F\u9009\u9898\uFF0C\u4E0D\u80FD\u5220\u9664"),b.createElement("div",{className:"mt10",style:{background:"#F6F7F9",padding:"20px 12px"}},Tt.map((at,Mt)=>b.createElement(Ze.Z,{wrap:!1,align:"middle",key:Mt,style:{color:"#999"}},b.createElement("i",{className:"iconfont icon-guansuo font14"}),b.createElement("div",{className:We.Onerow,style:{marginLeft:"8px"}},b.createElement(Ee.Z,{placement:"topLeft",title:at.name},at.name)))))),b.createElement(Ie.default,{open:ne,title:`${Ye?"\u5F55\u5165\u8BFE\u9898":"\u7F16\u8F91\u8BFE\u9898"}`,width:1200,destroyOnClose:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",centered:!0,className:"ant-form-modal-body",afterOpenChange:at=>{at&&document.querySelector(".ant-form-modal-body").querySelector(".ant-modal-body").scrollTo(0,0)},onCancel:()=>{ye({}),Ve([]),re.resetFields(),te(!1)},onOk:()=>{re.submit()}},b.createElement(Ue.default,{onFinishFailed:at=>{var Mt;if(!(le!=null&&le.name)||!((Mt=le==null?void 0:le.teacher_ids)!=null&&Mt.length)){ht(0);return}(!(le!=null&&le.description)||le!=null&&le.base_project&&!(le!=null&&le.graduation_stage_id))&&ht()},form:re,initialValues:{},layout:"vertical",className:`${We.FormDiv}`,onValuesChange:(at,Mt)=>{ye(Ke(Ke({},le),at))},onFinish:at=>Yt(void 0,null,function*(){!Ye&&ft.status==1&&at.student_id!=ft.student_id?Ie.default.confirm({centered:!0,okText:"\u786E\u5B9A",icon:null,cancelText:"\u53D6\u6D88",title:"\u53D8\u66F4\u6307\u5B9A\u5B66\u751F",content:b.createElement("div",null,b.createElement("p",null,"\u8BE5\u64CD\u4F5C\u65E0\u6CD5\u64A4\u9500\u3002\u786E\u8BA4\u53D8\u66F4\u6307\u5B9A\u5B66\u751F\uFF1F\u53D8\u66F4\u540E\u539F\u5B66\u751F\u5728\u8BE5\u8BFE\u9898\u63D0\u4EA4\u7684\u6587\u6863\u5C06\u6E05\u7A7A\u4E14\u65E0\u6CD5\u6062\u590D"),b.createElement("div",null,"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801\u540E\u786E\u8BA4\u5220\u9664"),b.createElement(Je.Z,{ref:Mt=>we.current=Mt})),onOk:()=>Yt(void 0,null,function*(){if(we.current.onVerify())return Promise.reject();He(at)})}):He(at)})},b.createElement(Ue.default.Item,{htmlFor:null,name:"source_is_repeat",valuePropName:"checked"},b.createElement(Rt.default,null,b.createElement("span",{style:{color:"#000"}},"\u8FD1\u4E09\u5E74\u662F\u5426\u91CD\u590D"))),b.createElement(Ue.default.Item,{htmlFor:null,label:b.createElement("span",{style:{color:"#5F6368"}},"\u8BFE\u9898\u540D\u79F0"),name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8BFE\u9898\u540D\u79F0"},{type:"string",max:100,message:"\u8F93\u5165\u8D85\u9650\uFF0C\u8BF7\u7F29\u51CF\u5B57\u7B26\u6570"},{type:"string",whitespace:!0,message:"\u5185\u5BB9\u4E0D\u80FD\u5168\u4E3A\u7A7A\u683C"}]},b.createElement(it.default,{showCount:!0,maxLength:100,size:"large"})),b.createElement(Ue.default.Item,{htmlFor:null,label:b.createElement("span",{style:{color:"#5F6368"}},"\u6307\u5BFC\u8001\u5E08(\u53EF\u591A\u9009)"),name:"teacher_ids",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6307\u5BFC\u8001\u5E08"}]},b.createElement($e.default,{size:"large",mode:"multiple",optionFilterProp:"children",placeholder:"\u8BF7\u9009\u62E9\u6307\u5BFC\u8001\u5E08"},(_t=Ut==null?void 0:Ut.data)==null?void 0:_t.map((at,Mt)=>b.createElement($e.default.Option,{key:Mt,value:at.id},at.name)))),b.createElement(Ue.default.Item,{htmlFor:null,label:b.createElement("span",{style:{color:"#5F6368"}},"\u8BFE\u9898\u9002\u5408\u4E13\u4E1A"),name:"major",rules:[{type:"string",max:100,message:"\u8F93\u5165\u8D85\u9650\uFF0C\u8BF7\u7F29\u51CF\u5B57\u7B26\u6570"}]},b.createElement(it.default,{size:"large",showCount:!0,maxLength:100})),b.createElement(Ue.default.Item,{htmlFor:null,label:b.createElement("span",{style:{color:"#5F6368"}},"\u6307\u5B9A\u5B66\u751F"),name:"student_id"},b.createElement($e.default,{size:"large",showSearch:!0,allowClear:!0,optionFilterProp:"children",placeholder:"\u8BF7\u9009\u62E9\u6307\u5B9A\u5B66\u751F"},(Qe=kt==null?void 0:kt.data)==null?void 0:Qe.map((at,Mt)=>b.createElement($e.default.Option,{key:Mt,value:at.id},at.name)))),b.createElement(Ue.default.Item,{htmlFor:null,label:b.createElement("span",{style:{color:"#5F6368"}},"\u8BFE\u9898\u6765\u6E90"),name:"source",rules:[{type:"string",max:60,message:"\u8F93\u5165\u8D85\u9650\uFF0C\u8BF7\u7F29\u51CF\u5B57\u7B26\u6570"}]},b.createElement(it.default,{size:"large",showCount:!0,maxLength:60})),b.createElement(Ue.default.Item,{htmlFor:null,label:b.createElement("span",{style:{color:"#5F6368"}},"\u8BFE\u9898\u5B66\u79D1\u65B9\u5411"),name:"direction",rules:[{type:"string",max:60,message:"\u8F93\u5165\u8D85\u9650\uFF0C\u8BF7\u7F29\u51CF\u5B57\u7B26\u6570"}]},b.createElement(it.default,{size:"large",showCount:!0,maxLength:60})),b.createElement(Ue.default.Item,{htmlFor:null,label:b.createElement("span",{style:{color:"#5F6368"}},"\u8BFE\u9898\u4ECB\u7ECD"),name:"description",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8BFE\u9898\u4ECB\u7ECD"},{type:"string",max:5e3,message:"\u8F93\u5165\u8D85\u9650\uFF0C\u8BF7\u7F29\u51CF\u5B57\u7B26\u6570"},{type:"string",whitespace:!0,message:"\u5185\u5BB9\u4E0D\u80FD\u5168\u4E3A\u7A7A\u683C"}]},b.createElement(nt.h,{placeholder:"\u8BF7\u5728\u6B64\u8F93\u5165\u5185\u5BB9\uFF0C\u6700\u591A5000\u4E2A\u5B57\u7B26",scrollId:"",watch:!0,height:140})),b.createElement(Ue.default.Item,{htmlFor:null,name:"attachment_ids",style:{display:"flex",alignItems:"center"},valuePropName:"fileList",getValueFromEvent:at=>Array.isArray(at)?at:at==null?void 0:at.fileList,normalize:at=>{const Mt="\u3000\u3000";return at.filter(st=>{if(st.url)return!0;const Ct=st.size/1024/1024;return st.name.indexOf(Mt)===-1&&(st.name=`${st.name}${Mt}${(0,Be.RD)(st.size)}`),!(Ct>150||Ct==0)})}},b.createElement(Te.default,Ke({},qt),b.createElement(Ze.Z,{style:{width:"100%"},wrap:!1,align:"middle"},b.createElement(Ce.Z,null,b.createElement(Xe.op,{style:{borderRadius:"2px"}},b.createElement("i",{className:"iconfont icon-shangchuan3 mr5"}),"\u6587\u4EF6\u4E0A\u4F20")),b.createElement(Ce.Z,{style:{marginLeft:"16px",color:"#5F6367"},onClick:at=>{at.preventDefault(),at.stopPropagation()}},"\u4E0A\u4F20\u8BFE\u9898\u76F8\u5173\u6587\u6863\uFF0C\u5355\u4E2A\u6587\u6863\u5927\u5C0F\u4E0D\u8D85\u8FC7150M")))),b.createElement(Ze.Z,{wrap:!1,align:"middle",className:"mb20"},b.createElement(Ce.Z,null,b.createElement(Ue.default.Item,{htmlFor:null,name:"base_project",valuePropName:"checked",style:{marginBottom:0}},b.createElement(Oe.Z,null))),b.createElement(Ze.Z,{align:"middle",className:"ml10",style:{color:"#000"}},b.createElement(Ce.Z,null,"\u57FA\u4E8E\u9879\u76EE\u5B9E\u65BD"),b.createElement(Ee.Z,{placement:"right",style:{width:"500px"},overlayStyle:{maxWidth:600},title:"\u5F00\u542F\u540E\uFF0C\u5B66\u751F\u5FC5\u987B\u5728\u672C\u5E73\u53F0\u521B\u5EFA\u9879\u76EE\uFF0C\u5173\u8054\u540E\u5C06\u5E94\u7528\u4E8E\u6BD5\u8BBE\u6240\u6709\u9636\u6BB5"},b.createElement("i",{className:"iconfont icon-tishixiaowenhao ml5",style:{cursor:"pointer",color:"#3061D0"}})))),b.createElement("div",{id:"graduationstageid"},le.base_project&&b.createElement("div",{style:{background:"#F6F7F9",padding:"12px 12px 4px 12px",width:"100%",height:104}},b.createElement("span",{style:{color:"#5F6367"}},"\u5B66\u751F\u9700\u8981\u5B8C\u6210\u5173\u8054\u9879\u76EE\u7684\u9636\u6BB5"),b.createElement(Ze.Z,{wrap:!1,align:"middle",className:"mt15"},b.createElement(Ce.Z,{style:{width:"632px"}},b.createElement(Ue.default.Item,{name:"graduation_stage_id",htmlFor:null,style:{marginBottom:0},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5173\u8054\u9879\u76EE\u7684\u9636\u6BB5"}]},b.createElement($e.default,null,ge==null?void 0:ge.map((at,Mt)=>b.createElement($e.default.Option,{key:Mt,value:at.id},at.name))))),b.createElement(Ce.Z,{className:"ml20",style:{color:"#999",fontSize:"12px"}},"\u9009\u62E9\u9636\u6BB5\u540E\uFF0C\u5B66\u751F\u5FC5\u987B\u5728\u5BF9\u5E94\u9636\u6BB5\u5B8C\u6210\u9879\u76EE\u5173\u8054")))))))};var me=(0,fe.connect)(({graduations:Pt,loading:Ut})=>({graduations:Pt,loading:Ut}))(Ne)},20047:function(wn,Qt,ee){"use strict";ee.d(Qt,{AL:function(){return je},Iy:function(){return tt},Qv:function(){return it},ez:function(){return At},jb:function(){return Le}});var b=ee(32834),We=ee.n(b),fe=ee(11690),Ue=ee.n(fe);let Ee=1;function xe(yt,ot){const ct=yt.match(/^(\s+)(?:```)/);if(ct===null)return ot;const Se=ct[1];return ot.split(`
|
|
|
`).map(lt=>{const Ge=lt.match(/^\s+/);if(Ge===null)return lt;const[de]=Ge;return de.length>=Se.length?lt.slice(Se.length):lt}).join(`
|
|
|
`)}let Ie=[],Ze=["<ul>"];const Ce=new(We()).Renderer,ue=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function tt(){Ie.length=0,Ze=["<ul>"]}const Le={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function Rt(yt,ot,ct,Se){if(ot>=yt.length||yt[ot].level<=ct)return ot;var lt=yt[ot];Se.push("<li><a href='#"+Ee+lt.anchor+"'>"+lt.text+"</a>"),ot++;var Ge=[];return ot=Rt(yt,ot,lt.level,Ge),Ge.length>0&&(Se.push("<ul>"),Ge.forEach(function(de){Se.push(de)}),Se.push("</ul>")),Se.push("</li>"),ot=Rt(yt,ot,ct,Se),ot}function it(){return Rt(Ie,0,0,Ze),Ze.push("</ul>"),Ze.join("")}const $e={heading(yt){const ot=ue.exec(yt);if(Ee+=1,ot)return{type:"heading",raw:ot[0],depth:ot[1].length,text:ot[2]}},fences(yt){const ot=this.rules.block.fences.exec(yt);if(ot){const ct=ot[0];let Se=xe(ct,ot[3]||"");const lt=ot[2]?ot[2].trim():ot[2];if(["latex","katex","math"].indexOf(lt)>=0){const Ge=Xe(),de=Se;Se=Ge,pt[Ge]={type:"block",expression:de}}return{type:"code",raw:ct,lang:lt,text:Se}}}},Te=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let Oe=0;const Xe=()=>`__special_katext_id_${Oe++}__`;let pt={};function At(){return pt}function je(){Oe=0,pt={}}function Be(yt){return yt=yt.replace(Te,(ot,ct)=>{const Se=Xe();return pt[Se]={type:"inline",expression:ct},Se}),yt}const Je=Ce.listitem;Ce.listitem=function(yt){return Je(Be(yt))};const nt=Ce.paragraph;Ce.paragraph=function(yt){return nt(Be(yt))};const zt=Ce.tablecell;Ce.tablecell=function(yt,ot){return zt(Be(yt),ot)},Ce.code=function(yt,ot,ct){const Se=(ot||"").match(/\S*/)[0];return Se?["latex","katex","math"].indexOf(Se)>=0?`<p class='editormd-tex'>${yt}</p>`:`<pre class="prettyprint linenums"><code class="language-${ot}">${ct?yt:(0,fe.escape)(yt,!0)}</code></pre>
|
|
|
`:'<pre class="prettyprint linenums"><code>'+(ct?yt:(0,fe.escape)(yt,!0))+"</code></pre>"},Ce.heading=function(yt,ot,ct){let Se=this.options.headerPrefix+ct.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return Ie.push({anchor:Se,level:ot,text:yt}),"<h"+ot+' id="'+Ee+Se+'">'+yt+"</h"+ot+">"},We().setOptions({silent:!0,gfm:!0,pedantic:!1}),We().use({tokenizer:$e,renderer:Ce}),Qt.ZP=We()},9981:function(wn,Qt){"use strict";const ee=function(){const b=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let We=1;We<arguments.length;We++){const fe=We<0||arguments.length<=We?void 0:arguments[We];fe&&Object.keys(fe).forEach(Ue=>{const Ee=fe[Ue];Ee!==void 0&&(b[Ue]=Ee)})}return b};Qt.Z=ee},86013:function(wn,Qt,ee){"use strict";var b=ee(59301),We=ee(19248);const fe=Ue=>{let Ee;return typeof Ue=="object"&&(Ue!=null&&Ue.clearIcon)?Ee=Ue:Ue&&(Ee={clearIcon:b.createElement(We.Z,null)}),Ee};Qt.Z=fe},97224:function(wn,Qt,ee){"use strict";ee.d(Qt,{F:function(){return b}});function b(fe){return fe!=null&&fe===fe.window}const We=fe=>{var Ue,Ee;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=(Ee=((Ue=fe.ownerDocument)!==null&&Ue!==void 0?Ue:fe).documentElement)===null||Ee===void 0?void 0:Ee.scrollTop),xe};Qt.Z=We},83010:function(wn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Ue}});var b=ee(16089);function We(Ee,xe,Ie,Ze){const Ce=Ie-xe;return Ee/=Ze/2,Ee<1?Ce/2*Ee*Ee*Ee+xe:Ce/2*((Ee-=2)*Ee*Ee+2)+xe}var fe=ee(97224);function Ue(Ee){let xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:Ie=()=>window,callback:Ze,duration:Ce=450}=xe,ue=Ie(),tt=(0,fe.Z)(ue),Le=Date.now(),Rt=()=>{const $e=Date.now()-Le,Te=We($e>Ce?Ce:$e,tt,Ee,Ce);(0,fe.F)(ue)?ue.scrollTo(window.pageXOffset,Te):ue instanceof Document||ue.constructor.name==="HTMLDocument"?ue.documentElement.scrollTop=Te:ue.scrollTop=Te,$e<Ce?(0,b.Z)(Rt):typeof Ze=="function"&&Ze()};(0,b.Z)(Rt)}},62673:function(wn,Qt,ee){"use strict";ee.d(Qt,{default:function(){return yt}});var b=ee(59301),We=ee(92310),fe=ee.n(We),Ue=ee(16632),Ee=ee(8654),xe=ee(12919),Ie=ee(63872),Ze=ee(48755),Ce=ee(2171),ue=ee(83397),tt=ee(56553),Rt=b.createContext(null),it=ee(36170),$e=ee(74632),Te=function(ot,ct){var Se={};for(var lt in ot)Object.prototype.hasOwnProperty.call(ot,lt)&&ct.indexOf(lt)<0&&(Se[lt]=ot[lt]);if(ot!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ge=0,lt=Object.getOwnPropertySymbols(ot);Ge<lt.length;Ge++)ct.indexOf(lt[Ge])<0&&Object.prototype.propertyIsEnumerable.call(ot,lt[Ge])&&(Se[lt[Ge]]=ot[lt[Ge]]);return Se};const Oe=(ot,ct)=>{var Se;const{prefixCls:lt,className:Ge,rootClassName:de,children:Dt,indeterminate:Ke=!1,style:gt,onMouseEnter:Yt,onMouseLeave:Ne,skipGroup:me=!1,disabled:Pt}=ot,Ut=Te(ot,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:kt,direction:ge,checkbox:et}=b.useContext(Ze.E_),rt=b.useContext(Rt),{isFormItemInput:_t}=b.useContext(tt.aM),Qe=b.useContext(Ce.Z),Bt=(Se=(rt==null?void 0:rt.disabled)||Pt)!==null&&Se!==void 0?Se:Qe,qe=b.useRef(Ut.value),tn=b.useRef(null),Tt=(0,Ee.sQ)(ct,tn);b.useEffect(()=>{rt==null||rt.registerValue(Ut.value)},[]),b.useEffect(()=>{if(!me)return Ut.value!==qe.current&&(rt==null||rt.cancelValue(qe.current),rt==null||rt.registerValue(Ut.value),qe.current=Ut.value),()=>rt==null?void 0:rt.cancelValue(Ut.value)},[Ut.value]),b.useEffect(()=>{var ke;!((ke=tn.current)===null||ke===void 0)&&ke.input&&(tn.current.input.indeterminate=Ke)},[Ke]);const ae=kt("checkbox",lt),ne=(0,ue.Z)(ae),[te,oe,ce]=(0,it.ZP)(ae,ne),re=Object.assign({},Ut);rt&&!me&&(re.onChange=function(){Ut.onChange&&Ut.onChange.apply(Ut,arguments),rt.toggleOption&&rt.toggleOption({label:Dt,value:Ut.value})},re.name=rt.name,re.checked=rt.value.includes(Ut.value));const le=fe()(`${ae}-wrapper`,{[`${ae}-rtl`]:ge==="rtl",[`${ae}-wrapper-checked`]:re.checked,[`${ae}-wrapper-disabled`]:Bt,[`${ae}-wrapper-in-form-item`]:_t},et==null?void 0:et.className,Ge,de,ce,ne,oe),ye=fe()({[`${ae}-indeterminate`]:Ke},Ie.A,oe),[ft,Ae]=(0,$e.Z)(re.onClick);return te(b.createElement(xe.Z,{component:"Checkbox",disabled:Bt},b.createElement("label",{className:le,style:Object.assign(Object.assign({},et==null?void 0:et.style),gt),onMouseEnter:Yt,onMouseLeave:Ne,onClick:ft},b.createElement(Ue.Z,Object.assign({},re,{onClick:Ae,prefixCls:ae,className:ye,disabled:Bt,ref:Tt})),Dt!==void 0&&b.createElement("span",{className:`${ae}-label`},Dt))))};var pt=b.forwardRef(Oe),At=ee(77654),je=ee(2738),Be=function(ot,ct){var Se={};for(var lt in ot)Object.prototype.hasOwnProperty.call(ot,lt)&&ct.indexOf(lt)<0&&(Se[lt]=ot[lt]);if(ot!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ge=0,lt=Object.getOwnPropertySymbols(ot);Ge<lt.length;Ge++)ct.indexOf(lt[Ge])<0&&Object.prototype.propertyIsEnumerable.call(ot,lt[Ge])&&(Se[lt[Ge]]=ot[lt[Ge]]);return Se},nt=b.forwardRef((ot,ct)=>{const{defaultValue:Se,children:lt,options:Ge=[],prefixCls:de,className:Dt,rootClassName:Ke,style:gt,onChange:Yt}=ot,Ne=Be(ot,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:me,direction:Pt}=b.useContext(Ze.E_),[Ut,kt]=b.useState(Ne.value||Se||[]),[ge,et]=b.useState([]);b.useEffect(()=>{"value"in Ne&&kt(Ne.value||[])},[Ne.value]);const rt=b.useMemo(()=>Ge.map(ye=>typeof ye=="string"||typeof ye=="number"?{label:ye,value:ye}:ye),[Ge]),_t=ye=>{et(ft=>ft.filter(Ae=>Ae!==ye))},Qe=ye=>{et(ft=>[].concat((0,At.Z)(ft),[ye]))},Bt=ye=>{const ft=Ut.indexOf(ye.value),Ae=(0,At.Z)(Ut);ft===-1?Ae.push(ye.value):Ae.splice(ft,1),"value"in Ne||kt(Ae),Yt==null||Yt(Ae.filter(ke=>ge.includes(ke)).sort((ke,Ve)=>{const Ye=rt.findIndex(we=>we.value===ke),mt=rt.findIndex(we=>we.value===Ve);return Ye-mt}))},qe=me("checkbox",de),tn=`${qe}-group`,Tt=(0,ue.Z)(qe),[ae,ne,te]=(0,it.ZP)(qe,Tt),oe=(0,je.Z)(Ne,["value","disabled"]),ce=Ge.length?rt.map(ye=>b.createElement(pt,{prefixCls:qe,key:ye.value.toString(),disabled:"disabled"in ye?ye.disabled:Ne.disabled,value:ye.value,checked:Ut.includes(ye.value),onChange:ye.onChange,className:`${tn}-item`,style:ye.style,title:ye.title,id:ye.id,required:ye.required},ye.label)):lt,re={toggleOption:Bt,value:Ut,disabled:Ne.disabled,name:Ne.name,registerValue:Qe,cancelValue:_t},le=fe()(tn,{[`${tn}-rtl`]:Pt==="rtl"},Dt,Ke,te,Tt,ne);return ae(b.createElement("div",Object.assign({className:le,style:gt},oe,{ref:ct}),b.createElement(Rt.Provider,{value:re},ce)))});const zt=pt;zt.Group=nt,zt.__ANT_CHECKBOX=!0;var yt=zt},36170:function(wn,Qt,ee){"use strict";ee.d(Qt,{C2:function(){return xe}});var b=ee(36237),We=ee(63356),fe=ee(51636),Ue=ee(16931);const Ee=Ie=>{const{checkboxCls:Ze}=Ie,Ce=`${Ze}-wrapper`;return[{[`${Ze}-group`]:Object.assign(Object.assign({},(0,We.Wf)(Ie)),{display:"inline-flex",flexWrap:"wrap",columnGap:Ie.marginXS,[`> ${Ie.antCls}-row`]:{flex:1}}),[Ce]:Object.assign(Object.assign({},(0,We.Wf)(Ie)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${Ce}`]:{marginInlineStart:0},[`&${Ce}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[Ze]:Object.assign(Object.assign({},(0,We.Wf)(Ie)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Ie.borderRadiusSM,alignSelf:"center",[`${Ze}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${Ze}-inner`]:Object.assign({},(0,We.oN)(Ie))},[`${Ze}-inner`]:{boxSizing:"border-box",display:"block",width:Ie.checkboxSize,height:Ie.checkboxSize,direction:"ltr",backgroundColor:Ie.colorBgContainer,border:`${(0,b.unit)(Ie.lineWidth)} ${Ie.lineType} ${Ie.colorBorder}`,borderRadius:Ie.borderRadiusSM,borderCollapse:"separate",transition:`all ${Ie.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:Ie.calc(Ie.checkboxSize).div(14).mul(5).equal(),height:Ie.calc(Ie.checkboxSize).div(14).mul(8).equal(),border:`${(0,b.unit)(Ie.lineWidthBold)} solid ${Ie.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${Ie.motionDurationFast} ${Ie.motionEaseInBack}, opacity ${Ie.motionDurationFast}`}},"& + span":{paddingInlineStart:Ie.paddingXS,paddingInlineEnd:Ie.paddingXS}})},{[`
|
|
|
${Ce}:not(${Ce}-disabled),
|
|
|
${Ze}:not(${Ze}-disabled)
|
|
|
`]:{[`&:hover ${Ze}-inner`]:{borderColor:Ie.colorPrimary}},[`${Ce}:not(${Ce}-disabled)`]:{[`&:hover ${Ze}-checked:not(${Ze}-disabled) ${Ze}-inner`]:{backgroundColor:Ie.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${Ze}-checked:not(${Ze}-disabled):after`]:{borderColor:Ie.colorPrimaryHover}}},{[`${Ze}-checked`]:{[`${Ze}-inner`]:{backgroundColor:Ie.colorPrimary,borderColor:Ie.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${Ie.motionDurationMid} ${Ie.motionEaseOutBack} ${Ie.motionDurationFast}`}}},[`
|
|
|
${Ce}-checked:not(${Ce}-disabled),
|
|
|
${Ze}-checked:not(${Ze}-disabled)
|
|
|
`]:{[`&:hover ${Ze}-inner`]:{backgroundColor:Ie.colorPrimaryHover,borderColor:"transparent"}}},{[Ze]:{"&-indeterminate":{[`${Ze}-inner`]:{backgroundColor:`${Ie.colorBgContainer} !important`,borderColor:`${Ie.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:Ie.calc(Ie.fontSizeLG).div(2).equal(),height:Ie.calc(Ie.fontSizeLG).div(2).equal(),backgroundColor:Ie.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${Ze}-inner`]:{backgroundColor:`${Ie.colorBgContainer} !important`,borderColor:`${Ie.colorPrimary} !important`}}}},{[`${Ce}-disabled`]:{cursor:"not-allowed"},[`${Ze}-disabled`]:{[`&, ${Ze}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${Ze}-inner`]:{background:Ie.colorBgContainerDisabled,borderColor:Ie.colorBorder,"&:after":{borderColor:Ie.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Ie.colorTextDisabled},[`&${Ze}-indeterminate ${Ze}-inner::after`]:{background:Ie.colorTextDisabled}}}]};function xe(Ie,Ze){const Ce=(0,fe.mergeToken)(Ze,{checkboxCls:`.${Ie}`,checkboxSize:Ze.controlInteractiveSize});return[Ee(Ce)]}Qt.ZP=(0,Ue.I$)("Checkbox",(Ie,Ze)=>{let{prefixCls:Ce}=Ze;return[xe(Ce,Ie)]})},38406:function(wn,Qt,ee){"use strict";var b=ee(59301),We=ee(48755),fe=ee(584);const Ue=Ee=>{const{componentName:xe}=Ee,{getPrefixCls:Ie}=(0,b.useContext)(We.E_),Ze=Ie("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:`${Ze}-small`});case"Table.filter":return null;default:return b.createElement(fe.Z,null)}};Qt.Z=Ue},36207:function(wn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return ft}});var b=ee(59301),We=ee(92310),fe=ee.n(We),Ue=ee(85899),Ee=ee(72190),xe=ee(43403),Ie=ee(34280),Ze=b.createContext(null),Ce=b.createContext({}),ue=Ze,tt=ee(18642),Le=ee(60499),Rt=ee(77900),it=ee(10228),$e=ee(26112),Te=ee(42244),Oe=ee(8654),Xe=["prefixCls","className","containerRef"],pt=function(ke){var Ve=ke.prefixCls,Ye=ke.className,mt=ke.containerRef,we=(0,Te.Z)(ke,Xe),De=b.useContext(Ce),Zt=De.panel,Ht=(0,Oe.x1)(Zt,mt);return b.createElement("div",(0,Le.Z)({className:fe()("".concat(Ve,"-content"),Ye),role:"dialog",ref:Ht},(0,$e.Z)(ke,{aria:!0}),{"aria-modal":"true"},we))},At=pt,je=ee(48736);function Be(Ae){return typeof Ae=="string"&&String(Number(Ae))===Ae?((0,je.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(Ae)):Ae}function Je(Ae){warning(!("wrapperClassName"in Ae),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!Ae.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var nt={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function zt(Ae,ke){var Ve,Ye,mt,we=Ae.prefixCls,De=Ae.open,Zt=Ae.placement,Ht=Ae.inline,nn=Ae.push,qt=Ae.forceRender,Et=Ae.autoFocus,on=Ae.keyboard,Kt=Ae.classNames,He=Ae.rootClassName,ht=Ae.rootStyle,at=Ae.zIndex,Mt=Ae.className,Me=Ae.id,st=Ae.style,Ct=Ae.motion,Wt=Ae.width,cn=Ae.height,Sn=Ae.children,Bn=Ae.mask,Rn=Ae.maskClosable,gn=Ae.maskMotion,Nn=Ae.maskClassName,dn=Ae.maskStyle,Xt=Ae.afterOpenChange,rn=Ae.onClose,an=Ae.onMouseEnter,Jt=Ae.onMouseOver,pn=Ae.onMouseLeave,mn=Ae.onClick,Cn=Ae.onKeyDown,Fn=Ae.onKeyUp,zn=Ae.styles,Zn=Ae.drawerRender,Xn=b.useRef(),_n=b.useRef(),pr=b.useRef();b.useImperativeHandle(ke,function(){return Xn.current});var ar=function(xt){var wt=xt.keyCode,Ft=xt.shiftKey;switch(wt){case it.Z.TAB:{if(wt===it.Z.TAB){if(!Ft&&document.activeElement===pr.current){var On;(On=_n.current)===null||On===void 0||On.focus({preventScroll:!0})}else if(Ft&&document.activeElement===_n.current){var In;(In=pr.current)===null||In===void 0||In.focus({preventScroll:!0})}}break}case it.Z.ESC:{rn&&on&&(xt.stopPropagation(),rn(xt));break}}};b.useEffect(function(){if(De&&Et){var St;(St=Xn.current)===null||St===void 0||St.focus({preventScroll:!0})}},[De]);var sn=b.useState(!1),bn=(0,Ee.Z)(sn,2),Hn=bn[0],An=bn[1],ut=b.useContext(ue),Ot;typeof nn=="boolean"?Ot=nn?{}:{distance:0}:Ot=nn||{};var Fe=(Ve=(Ye=(mt=Ot)===null||mt===void 0?void 0:mt.distance)!==null&&Ye!==void 0?Ye:ut==null?void 0:ut.pushDistance)!==null&&Ve!==void 0?Ve:180,vt=b.useMemo(function(){return{pushDistance:Fe,push:function(){An(!0)},pull:function(){An(!1)}}},[Fe]);b.useEffect(function(){if(De){var St;ut==null||(St=ut.push)===null||St===void 0||St.call(ut)}else{var xt;ut==null||(xt=ut.pull)===null||xt===void 0||xt.call(ut)}},[De]),b.useEffect(function(){return function(){var St;ut==null||(St=ut.pull)===null||St===void 0||St.call(ut)}},[]);var ze=Bn&&b.createElement(Rt.default,(0,Le.Z)({key:"mask"},gn,{visible:De}),function(St,xt){var wt=St.className,Ft=St.style;return b.createElement("div",{className:fe()("".concat(we,"-mask"),wt,Kt==null?void 0:Kt.mask,Nn),style:(0,Ue.Z)((0,Ue.Z)((0,Ue.Z)({},Ft),dn),zn==null?void 0:zn.mask),onClick:Rn&&De?rn:void 0,ref:xt})}),bt=typeof Ct=="function"?Ct(Zt):Ct,Pe={};if(Hn&&Fe)switch(Zt){case"top":Pe.transform="translateY(".concat(Fe,"px)");break;case"bottom":Pe.transform="translateY(".concat(-Fe,"px)");break;case"left":Pe.transform="translateX(".concat(Fe,"px)");break;default:Pe.transform="translateX(".concat(-Fe,"px)");break}Zt==="left"||Zt==="right"?Pe.width=Be(Wt):Pe.height=Be(cn);var It={onMouseEnter:an,onMouseOver:Jt,onMouseLeave:pn,onClick:mn,onKeyDown:Cn,onKeyUp:Fn},$t=b.createElement(Rt.default,(0,Le.Z)({key:"panel"},bt,{visible:De,forceRender:qt,onVisibleChanged:function(xt){Xt==null||Xt(xt)},removeOnLeave:!1,leavedClassName:"".concat(we,"-content-wrapper-hidden")}),function(St,xt){var wt=St.className,Ft=St.style,On=b.createElement(At,(0,Le.Z)({id:Me,containerRef:xt,prefixCls:we,className:fe()(Mt,Kt==null?void 0:Kt.content),style:(0,Ue.Z)((0,Ue.Z)({},st),zn==null?void 0:zn.content)},(0,$e.Z)(Ae,{aria:!0}),It),Sn);return b.createElement("div",(0,Le.Z)({className:fe()("".concat(we,"-content-wrapper"),Kt==null?void 0:Kt.wrapper,wt),style:(0,Ue.Z)((0,Ue.Z)((0,Ue.Z)({},Pe),Ft),zn==null?void 0:zn.wrapper)},(0,$e.Z)(Ae,{data:!0})),Zn?Zn(On):On)}),Vt=(0,Ue.Z)({},ht);return at&&(Vt.zIndex=at),b.createElement(ue.Provider,{value:vt},b.createElement("div",{className:fe()(we,"".concat(we,"-").concat(Zt),He,(0,tt.Z)((0,tt.Z)({},"".concat(we,"-open"),De),"".concat(we,"-inline"),Ht)),style:Vt,tabIndex:-1,ref:Xn,onKeyDown:ar},ze,b.createElement("div",{tabIndex:0,ref:_n,style:nt,"aria-hidden":"true","data-sentinel":"start"}),$t,b.createElement("div",{tabIndex:0,ref:pr,style:nt,"aria-hidden":"true","data-sentinel":"end"})))}var yt=b.forwardRef(zt),ot=yt,ct=function(ke){var Ve=ke.open,Ye=Ve===void 0?!1:Ve,mt=ke.prefixCls,we=mt===void 0?"rc-drawer":mt,De=ke.placement,Zt=De===void 0?"right":De,Ht=ke.autoFocus,nn=Ht===void 0?!0:Ht,qt=ke.keyboard,Et=qt===void 0?!0:qt,on=ke.width,Kt=on===void 0?378:on,He=ke.mask,ht=He===void 0?!0:He,at=ke.maskClosable,Mt=at===void 0?!0:at,Me=ke.getContainer,st=ke.forceRender,Ct=ke.afterOpenChange,Wt=ke.destroyOnClose,cn=ke.onMouseEnter,Sn=ke.onMouseOver,Bn=ke.onMouseLeave,Rn=ke.onClick,gn=ke.onKeyDown,Nn=ke.onKeyUp,dn=ke.panelRef,Xt=b.useState(!1),rn=(0,Ee.Z)(Xt,2),an=rn[0],Jt=rn[1],pn=b.useState(!1),mn=(0,Ee.Z)(pn,2),Cn=mn[0],Fn=mn[1];(0,Ie.Z)(function(){Fn(!0)},[]);var zn=Cn?Ye:!1,Zn=b.useRef(),Xn=b.useRef();(0,Ie.Z)(function(){zn&&(Xn.current=document.activeElement)},[zn]);var _n=function(Hn){var An;if(Jt(Hn),Ct==null||Ct(Hn),!Hn&&Xn.current&&!((An=Zn.current)!==null&&An!==void 0&&An.contains(Xn.current))){var ut;(ut=Xn.current)===null||ut===void 0||ut.focus({preventScroll:!0})}},pr=b.useMemo(function(){return{panel:dn}},[dn]);if(!st&&!an&&!zn&&Wt)return null;var ar={onMouseEnter:cn,onMouseOver:Sn,onMouseLeave:Bn,onClick:Rn,onKeyDown:gn,onKeyUp:Nn},sn=(0,Ue.Z)((0,Ue.Z)({},ke),{},{open:zn,prefixCls:we,placement:Zt,autoFocus:nn,keyboard:Et,width:Kt,mask:ht,maskClosable:Mt,inline:Me===!1,afterOpenChange:_n,ref:Zn},ar);return b.createElement(Ce.Provider,{value:pr},b.createElement(xe.Z,{open:zn||st||an,autoDestroy:!1,getContainer:Me,autoLock:ht&&(zn||an)},b.createElement(ot,sn)))},Se=ct,lt=Se,Ge=ee(62487),de=ee(75030),Dt=ee(86641),Ke=ee(55743),gt=ee(48755),Yt=ee(91190),Ne=ee(78776),me=ee(458),Ut=Ae=>{var ke,Ve;const{prefixCls:Ye,title:mt,footer:we,extra:De,loading:Zt,onClose:Ht,headerStyle:nn,bodyStyle:qt,footerStyle:Et,children:on,classNames:Kt,styles:He}=Ae,ht=(0,gt.dj)("drawer"),at=b.useCallback(Wt=>b.createElement("button",{type:"button",onClick:Ht,"aria-label":"Close",className:`${Ye}-close`},Wt),[Ht]),[Mt,Me]=(0,Ne.Z)((0,Ne.w)(Ae),(0,Ne.w)(ht),{closable:!0,closeIconRender:at}),st=b.useMemo(()=>{var Wt,cn;return!mt&&!Mt?null:b.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(Wt=ht.styles)===null||Wt===void 0?void 0:Wt.header),nn),He==null?void 0:He.header),className:fe()(`${Ye}-header`,{[`${Ye}-header-close-only`]:Mt&&!mt&&!De},(cn=ht.classNames)===null||cn===void 0?void 0:cn.header,Kt==null?void 0:Kt.header)},b.createElement("div",{className:`${Ye}-header-title`},Me,mt&&b.createElement("div",{className:`${Ye}-title`},mt)),De&&b.createElement("div",{className:`${Ye}-extra`},De))},[Mt,Me,De,nn,Ye,mt]),Ct=b.useMemo(()=>{var Wt,cn;if(!we)return null;const Sn=`${Ye}-footer`;return b.createElement("div",{className:fe()(Sn,(Wt=ht.classNames)===null||Wt===void 0?void 0:Wt.footer,Kt==null?void 0:Kt.footer),style:Object.assign(Object.assign(Object.assign({},(cn=ht.styles)===null||cn===void 0?void 0:cn.footer),Et),He==null?void 0:He.footer)},we)},[we,Et,Ye]);return b.createElement(b.Fragment,null,st,b.createElement("div",{className:fe()(`${Ye}-body`,Kt==null?void 0:Kt.body,(ke=ht.classNames)===null||ke===void 0?void 0:ke.body),style:Object.assign(Object.assign(Object.assign({},(Ve=ht.styles)===null||Ve===void 0?void 0:Ve.body),qt),He==null?void 0:He.body)},Zt?b.createElement(me.Z,{active:!0,title:!1,paragraph:{rows:5},className:`${Ye}-body-skeleton`}):on),Ct)},kt=ee(36237),ge=ee(63356),et=ee(16931),rt=ee(51636);const _t=Ae=>{const ke="100%";return{left:`translateX(-${ke})`,right:`translateX(${ke})`,top:`translateY(-${ke})`,bottom:`translateY(${ke})`}[Ae]},Qe=(Ae,ke)=>({"&-enter, &-appear":Object.assign(Object.assign({},Ae),{"&-active":ke}),"&-leave":Object.assign(Object.assign({},ke),{"&-active":Ae})}),Bt=(Ae,ke)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${ke}`}}},Qe({opacity:Ae},{opacity:1})),qe=(Ae,ke)=>[Bt(.7,ke),Qe({transform:_t(Ae)},{transform:"none"})];var Tt=Ae=>{const{componentCls:ke,motionDurationSlow:Ve}=Ae;return{[ke]:{[`${ke}-mask-motion`]:Bt(0,Ve),[`${ke}-panel-motion`]:["left","right","top","bottom"].reduce((Ye,mt)=>Object.assign(Object.assign({},Ye),{[`&-${mt}`]:qe(mt,Ve)}),{})}}};const ae=Ae=>{const{borderRadiusSM:ke,componentCls:Ve,zIndexPopup:Ye,colorBgMask:mt,colorBgElevated:we,motionDurationSlow:De,motionDurationMid:Zt,paddingXS:Ht,padding:nn,paddingLG:qt,fontSizeLG:Et,lineHeightLG:on,lineWidth:Kt,lineType:He,colorSplit:ht,marginXS:at,colorIcon:Mt,colorIconHover:Me,colorBgTextHover:st,colorBgTextActive:Ct,colorText:Wt,fontWeightStrong:cn,footerPaddingBlock:Sn,footerPaddingInline:Bn,calc:Rn}=Ae,gn=`${Ve}-content-wrapper`;return{[Ve]:{position:"fixed",inset:0,zIndex:Ye,pointerEvents:"none",color:Wt,"&-pure":{position:"relative",background:we,display:"flex",flexDirection:"column",[`&${Ve}-left`]:{boxShadow:Ae.boxShadowDrawerLeft},[`&${Ve}-right`]:{boxShadow:Ae.boxShadowDrawerRight},[`&${Ve}-top`]:{boxShadow:Ae.boxShadowDrawerUp},[`&${Ve}-bottom`]:{boxShadow:Ae.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${Ve}-mask`]:{position:"absolute",inset:0,zIndex:Ye,background:mt,pointerEvents:"auto"},[gn]:{position:"absolute",zIndex:Ye,maxWidth:"100vw",transition:`all ${De}`,"&-hidden":{display:"none"}},[`&-left > ${gn}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:Ae.boxShadowDrawerLeft},[`&-right > ${gn}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:Ae.boxShadowDrawerRight},[`&-top > ${gn}`]:{top:0,insetInline:0,boxShadow:Ae.boxShadowDrawerUp},[`&-bottom > ${gn}`]:{bottom:0,insetInline:0,boxShadow:Ae.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,kt.unit)(nn)} ${(0,kt.unit)(qt)}`,fontSize:Et,lineHeight:on,borderBottom:`${(0,kt.unit)(Kt)} ${He} ${ht}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${Ve}-extra`]:{flex:"none"},[`${Ve}-close`]:Object.assign({display:"inline-flex",width:Rn(Et).add(Ht).equal(),height:Rn(Et).add(Ht).equal(),borderRadius:ke,justifyContent:"center",alignItems:"center",marginInlineEnd:at,color:Mt,fontWeight:cn,fontSize:Et,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${Zt}`,textRendering:"auto","&:hover":{color:Me,backgroundColor:st,textDecoration:"none"},"&:active":{backgroundColor:Ct}},(0,ge.Qy)(Ae)),[`${Ve}-title`]:{flex:1,margin:0,fontWeight:Ae.fontWeightStrong,fontSize:Et,lineHeight:on},[`${Ve}-body`]:{flex:1,minWidth:0,minHeight:0,padding:qt,overflow:"auto",[`${Ve}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${Ve}-footer`]:{flexShrink:0,padding:`${(0,kt.unit)(Sn)} ${(0,kt.unit)(Bn)}`,borderTop:`${(0,kt.unit)(Kt)} ${He} ${ht}`},"&-rtl":{direction:"rtl"}}}},ne=Ae=>({zIndexPopup:Ae.zIndexPopupBase,footerPaddingBlock:Ae.paddingXS,footerPaddingInline:Ae.padding});var te=(0,et.I$)("Drawer",Ae=>{const ke=(0,rt.mergeToken)(Ae,{});return[ae(ke),Tt(ke)]},ne),oe=function(Ae,ke){var Ve={};for(var Ye in Ae)Object.prototype.hasOwnProperty.call(Ae,Ye)&&ke.indexOf(Ye)<0&&(Ve[Ye]=Ae[Ye]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var mt=0,Ye=Object.getOwnPropertySymbols(Ae);mt<Ye.length;mt++)ke.indexOf(Ye[mt])<0&&Object.prototype.propertyIsEnumerable.call(Ae,Ye[mt])&&(Ve[Ye[mt]]=Ae[Ye[mt]]);return Ve};const ce=null,re={distance:180},le=Ae=>{var ke;const{rootClassName:Ve,width:Ye,height:mt,size:we="default",mask:De=!0,push:Zt=re,open:Ht,afterOpenChange:nn,onClose:qt,prefixCls:Et,getContainer:on,style:Kt,className:He,visible:ht,afterVisibleChange:at,maskStyle:Mt,drawerStyle:Me,contentWrapperStyle:st}=Ae,Ct=oe(Ae,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:Wt,getPrefixCls:cn,direction:Sn,className:Bn,style:Rn,classNames:gn,styles:Nn}=(0,gt.dj)("drawer"),dn=cn("drawer",Et),[Xt,rn,an]=te(dn),Jt=on===void 0&&Wt?()=>Wt(document.body):on,pn=fe()({"no-mask":!De,[`${dn}-rtl`]:Sn==="rtl"},Ve,rn,an),mn=b.useMemo(()=>Ye!=null?Ye:we==="large"?736:378,[Ye,we]),Cn=b.useMemo(()=>mt!=null?mt:we==="large"?736:378,[mt,we]),Fn={motionName:(0,Dt.m)(dn,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},zn=sn=>({motionName:(0,Dt.m)(dn,`panel-motion-${sn}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),Zn=(0,Yt.H)(),[Xn,_n]=(0,de.Cn)("Drawer",Ct.zIndex),{classNames:pr={},styles:ar={}}=Ct;return Xt(b.createElement(Ge.Z,{form:!0,space:!0},b.createElement(Ke.Z.Provider,{value:_n},b.createElement(lt,Object.assign({prefixCls:dn,onClose:qt,maskMotion:Fn,motion:zn},Ct,{classNames:{mask:fe()(pr.mask,gn.mask),content:fe()(pr.content,gn.content),wrapper:fe()(pr.wrapper,gn.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},ar.mask),Mt),Nn.mask),content:Object.assign(Object.assign(Object.assign({},ar.content),Me),Nn.content),wrapper:Object.assign(Object.assign(Object.assign({},ar.wrapper),st),Nn.wrapper)},open:Ht!=null?Ht:ht,mask:De,push:Zt,width:mn,height:Cn,style:Object.assign(Object.assign({},Rn),Kt),className:fe()(Bn,He),rootClassName:pn,getContainer:Jt,afterOpenChange:nn!=null?nn:at,panelRef:Zn,zIndex:Xn}),b.createElement(Ut,Object.assign({prefixCls:dn},Ct,{onClose:qt}))))))},ye=Ae=>{const{prefixCls:ke,style:Ve,className:Ye,placement:mt="right"}=Ae,we=oe(Ae,["prefixCls","style","className","placement"]),{getPrefixCls:De}=b.useContext(gt.E_),Zt=De("drawer",ke),[Ht,nn,qt]=te(Zt),Et=fe()(Zt,`${Zt}-pure`,`${Zt}-${mt}`,nn,qt,Ye);return Ht(b.createElement("div",{className:Et,style:Ve},b.createElement(Ut,Object.assign({prefixCls:Zt},we))))};le._InternalPanelDoNotUseOrYouWillBeFired=ye;var ft=le},19563:function(wn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return kt}});var b=ee(59301),We=ee(33853),fe=ee(38819),Ue=ee(92310),Ee=ee.n(Ue),xe=ee(96478),Ie=ee(6089),Ze=ee(18929),Ce=ee(2738),ue=ee(75030),Le=ge=>typeof ge!="object"&&typeof ge!="function"||ge===null,Rt=ee(52838),it=ee(45915),$e=ee(22703),Te=ee(32383),Oe=ee(55743),Xe=ee(48755),pt=ee(83397),At=ee(93041),je=ee(78857),Be=ee(57700),Je=ee(36237),nt=ee(63356),zt=ee(46e3),yt=ee(93873),ot=ee(34925),ct=ee(37645),Se=ee(36305),lt=ee(16931),Ge=ee(51636),Dt=ge=>{const{componentCls:et,menuCls:rt,colorError:_t,colorTextLightSolid:Qe}=ge,Bt=`${rt}-item`;return{[`${et}, ${et}-menu-submenu`]:{[`${rt} ${Bt}`]:{[`&${Bt}-danger:not(${Bt}-disabled)`]:{color:_t,"&:hover":{color:Qe,backgroundColor:_t}}}}}};const Ke=ge=>{const{componentCls:et,menuCls:rt,zIndexPopup:_t,dropdownArrowDistance:Qe,sizePopupArrow:Bt,antCls:qe,iconCls:tn,motionDurationMid:Tt,paddingBlock:ae,fontSize:ne,dropdownEdgeChildPadding:te,colorTextDisabled:oe,fontSizeIcon:ce,controlPaddingHorizontal:re,colorBgElevated:le}=ge;return[{[et]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:_t,display:"block","&::before":{position:"absolute",insetBlock:ge.calc(Bt).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}},[`${et}-wrap`]:{position:"relative",[`${qe}-btn > ${tn}-down`]:{fontSize:ce},[`${tn}-down::before`]:{transition:`transform ${Tt}`}},[`${et}-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${et}-placement-bottomLeft,
|
|
|
&${qe}-slide-down-appear${qe}-slide-down-appear-active${et}-placement-bottomLeft,
|
|
|
&${qe}-slide-down-enter${qe}-slide-down-enter-active${et}-placement-bottom,
|
|
|
&${qe}-slide-down-appear${qe}-slide-down-appear-active${et}-placement-bottom,
|
|
|
&${qe}-slide-down-enter${qe}-slide-down-enter-active${et}-placement-bottomRight,
|
|
|
&${qe}-slide-down-appear${qe}-slide-down-appear-active${et}-placement-bottomRight`]:{animationName:zt.fJ},[`&${qe}-slide-up-enter${qe}-slide-up-enter-active${et}-placement-topLeft,
|
|
|
&${qe}-slide-up-appear${qe}-slide-up-appear-active${et}-placement-topLeft,
|
|
|
&${qe}-slide-up-enter${qe}-slide-up-enter-active${et}-placement-top,
|
|
|
&${qe}-slide-up-appear${qe}-slide-up-appear-active${et}-placement-top,
|
|
|
&${qe}-slide-up-enter${qe}-slide-up-enter-active${et}-placement-topRight,
|
|
|
&${qe}-slide-up-appear${qe}-slide-up-appear-active${et}-placement-topRight`]:{animationName:zt.Qt},[`&${qe}-slide-down-leave${qe}-slide-down-leave-active${et}-placement-bottomLeft,
|
|
|
&${qe}-slide-down-leave${qe}-slide-down-leave-active${et}-placement-bottom,
|
|
|
&${qe}-slide-down-leave${qe}-slide-down-leave-active${et}-placement-bottomRight`]:{animationName:zt.Uw},[`&${qe}-slide-up-leave${qe}-slide-up-leave-active${et}-placement-topLeft,
|
|
|
&${qe}-slide-up-leave${qe}-slide-up-leave-active${et}-placement-top,
|
|
|
&${qe}-slide-up-leave${qe}-slide-up-leave-active${et}-placement-topRight`]:{animationName:zt.ly}}},(0,ct.ZP)(ge,le,{arrowPlacement:{top:!0,bottom:!0}}),{[`${et} ${rt}`]:{position:"relative",margin:0},[`${rt}-submenu-popup`]:{position:"absolute",zIndex:_t,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${et}, ${et}-menu-submenu`]:Object.assign(Object.assign({},(0,nt.Wf)(ge)),{[rt]:Object.assign(Object.assign({padding:te,listStyleType:"none",backgroundColor:le,backgroundClip:"padding-box",borderRadius:ge.borderRadiusLG,outline:"none",boxShadow:ge.boxShadowSecondary},(0,nt.Qy)(ge)),{"&:empty":{padding:0,boxShadow:"none"},[`${rt}-item-group-title`]:{padding:`${(0,Je.unit)(ae)} ${(0,Je.unit)(re)}`,color:ge.colorTextDescription,transition:`all ${Tt}`},[`${rt}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${rt}-item-icon`]:{minWidth:ne,marginInlineEnd:ge.marginXS,fontSize:ge.fontSizeSM},[`${rt}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${Tt}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${rt}-item-extra`]:{paddingInlineStart:ge.padding,marginInlineStart:"auto",fontSize:ge.fontSizeSM,color:ge.colorTextDescription}},[`${rt}-item, ${rt}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${(0,Je.unit)(ae)} ${(0,Je.unit)(re)}`,color:ge.colorText,fontWeight:"normal",fontSize:ne,lineHeight:ge.lineHeight,cursor:"pointer",transition:`all ${Tt}`,borderRadius:ge.borderRadiusSM,"&:hover, &-active":{backgroundColor:ge.controlItemBgHover}},(0,nt.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,Je.unit)(ge.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:ge.colorSplit},[`${et}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:ge.paddingXS,[`${et}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:ge.colorTextDescription,fontSize:ce,fontStyle:"normal"}}}),[`${rt}-item-group-list`]:{margin:`0 ${(0,Je.unit)(ge.marginXS)}`,padding:0,listStyle:"none"},[`${rt}-submenu-title`]:{paddingInlineEnd:ge.calc(re).add(ge.fontSizeSM).equal()},[`${rt}-submenu-vertical`]:{position:"relative"},[`${rt}-submenu${rt}-submenu-disabled ${et}-menu-submenu-title`]:{[`&, ${et}-menu-submenu-arrow-icon`]:{color:oe,backgroundColor:le,cursor:"not-allowed"}},[`${rt}-submenu-selected ${et}-menu-submenu-title`]:{color:ge.colorPrimary}})})},[(0,zt.oN)(ge,"slide-up"),(0,zt.oN)(ge,"slide-down"),(0,yt.Fm)(ge,"move-up"),(0,yt.Fm)(ge,"move-down"),(0,ot._y)(ge,"zoom-big")]]},gt=ge=>Object.assign(Object.assign({zIndexPopup:ge.zIndexPopupBase+50,paddingBlock:(ge.controlHeight-ge.fontSize*ge.lineHeight)/2},(0,ct.wZ)({contentRadius:ge.borderRadiusLG,limitVerticalRadius:!0})),(0,Se.w)(ge));var Yt=(0,lt.I$)("Dropdown",ge=>{const{marginXXS:et,sizePopupArrow:rt,paddingXXS:_t,componentCls:Qe}=ge,Bt=(0,Ge.mergeToken)(ge,{menuCls:`${Qe}-menu`,dropdownArrowDistance:ge.calc(rt).div(2).add(et).equal(),dropdownEdgeChildPadding:_t});return[Ke(Bt),Dt(Bt)]},gt,{resetStyle:!1});const Ne=null,me=ge=>{var et;const{menu:rt,arrow:_t,prefixCls:Qe,children:Bt,trigger:qe,disabled:tn,dropdownRender:Tt,getPopupContainer:ae,overlayClassName:ne,rootClassName:te,overlayStyle:oe,open:ce,onOpenChange:re,visible:le,onVisibleChange:ye,mouseEnterDelay:ft=.15,mouseLeaveDelay:Ae=.1,autoAdjustOverflow:ke=!0,placement:Ve="",overlay:Ye,transitionName:mt}=ge,{getPopupContainer:we,getPrefixCls:De,direction:Zt,dropdown:Ht}=b.useContext(Xe.E_),nn=(0,Te.ln)("Dropdown"),qt=b.useMemo(()=>{const Jt=De();return mt!==void 0?mt:Ve.includes("top")?`${Jt}-slide-down`:`${Jt}-slide-up`},[De,Ve,mt]),Et=b.useMemo(()=>Ve?Ve.includes("Center")?Ve.slice(0,Ve.indexOf("Center")):Ve:Zt==="rtl"?"bottomRight":"bottomLeft",[Ve,Zt]),on=De("dropdown",Qe),Kt=(0,pt.Z)(on),[He,ht,at]=Yt(on,Kt),[,Mt]=(0,Be.ZP)(),Me=b.Children.only(Le(Bt)?b.createElement("span",null,Bt):Bt),st=(0,$e.Tm)(Me,{className:Ee()(`${on}-trigger`,{[`${on}-rtl`]:Zt==="rtl"},Me.props.className),disabled:(et=Me.props.disabled)!==null&&et!==void 0?et:tn}),Ct=tn?[]:qe,Wt=!!(Ct!=null&&Ct.includes("contextMenu")),[cn,Sn]=(0,Ze.Z)(!1,{value:ce!=null?ce:le}),Bn=(0,Ie.Z)(Jt=>{re==null||re(Jt,{source:"trigger"}),ye==null||ye(Jt),Sn(Jt)}),Rn=Ee()(ne,te,ht,at,Kt,Ht==null?void 0:Ht.className,{[`${on}-rtl`]:Zt==="rtl"}),gn=(0,Rt.Z)({arrowPointAtCenter:typeof _t=="object"&&_t.pointAtCenter,autoAdjustOverflow:ke,offset:Mt.marginXXS,arrowWidth:_t?Mt.sizePopupArrow:0,borderRadius:Mt.borderRadius}),Nn=b.useCallback(()=>{rt!=null&&rt.selectable&&(rt!=null&&rt.multiple)||(re==null||re(!1,{source:"menu"}),Sn(!1))},[rt==null?void 0:rt.selectable,rt==null?void 0:rt.multiple]),dn=()=>{let Jt;return rt!=null&&rt.items?Jt=b.createElement(At.default,Object.assign({},rt)):typeof Ye=="function"?Jt=Ye():Jt=Ye,Tt&&(Jt=Tt(Jt)),Jt=b.Children.only(typeof Jt=="string"?b.createElement("span",null,Jt):Jt),b.createElement(je.J,{prefixCls:`${on}-menu`,rootClassName:Ee()(at,Kt),expandIcon:b.createElement("span",{className:`${on}-menu-submenu-arrow`},Zt==="rtl"?b.createElement(We.Z,{className:`${on}-menu-submenu-arrow-icon`}):b.createElement(fe.Z,{className:`${on}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Nn,validator:pn=>{let{mode:mn}=pn}},Jt)},[Xt,rn]=(0,ue.Cn)("Dropdown",oe==null?void 0:oe.zIndex);let an=b.createElement(xe.Z,Object.assign({alignPoint:Wt},(0,Ce.Z)(ge,["rootClassName"]),{mouseEnterDelay:ft,mouseLeaveDelay:Ae,visible:cn,builtinPlacements:gn,arrow:!!_t,overlayClassName:Rn,prefixCls:on,getPopupContainer:ae||we,transitionName:qt,trigger:Ct,overlay:dn,placement:Et,onVisibleChange:Bn,overlayStyle:Object.assign(Object.assign(Object.assign({},Ht==null?void 0:Ht.style),oe),{zIndex:Xt})}),st);return Xt&&(an=b.createElement(Oe.Z.Provider,{value:rn},an)),He(an)},Pt=(0,it.Z)(me,"align",void 0,"dropdown",ge=>ge),Ut=ge=>b.createElement(Pt,Object.assign({},ge),b.createElement("span",null));me._InternalPanelDoNotUseOrYouWillBeFired=Ut;var kt=me},75727:function(wn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return it}});var b=ee(19563),We=ee(59301),fe=ee(18785),Ue=ee(92310),Ee=ee.n(Ue),xe=ee(7939),Ie=ee(48755),Ze=ee(44104),Ce=ee(70045),ue=function($e,Te){var Oe={};for(var Xe in $e)Object.prototype.hasOwnProperty.call($e,Xe)&&Te.indexOf(Xe)<0&&(Oe[Xe]=$e[Xe]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pt=0,Xe=Object.getOwnPropertySymbols($e);pt<Xe.length;pt++)Te.indexOf(Xe[pt])<0&&Object.prototype.propertyIsEnumerable.call($e,Xe[pt])&&(Oe[Xe[pt]]=$e[Xe[pt]]);return Oe};const tt=$e=>{const{getPopupContainer:Te,getPrefixCls:Oe,direction:Xe}=We.useContext(Ie.E_),{prefixCls:pt,type:At="default",danger:je,disabled:Be,loading:Je,onClick:nt,htmlType:zt,children:yt,className:ot,menu:ct,arrow:Se,autoFocus:lt,overlay:Ge,trigger:de,align:Dt,open:Ke,onOpenChange:gt,placement:Yt,getPopupContainer:Ne,href:me,icon:Pt=We.createElement(fe.Z,null),title:Ut,buttonsRender:kt=ft=>ft,mouseEnterDelay:ge,mouseLeaveDelay:et,overlayClassName:rt,overlayStyle:_t,destroyPopupOnHide:Qe,dropdownRender:Bt}=$e,qe=ue($e,["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=Oe("dropdown",pt),Tt=`${tn}-button`,ae={menu:ct,arrow:Se,autoFocus:lt,align:Dt,disabled:Be,trigger:Be?[]:de,onOpenChange:gt,getPopupContainer:Ne||Te,mouseEnterDelay:ge,mouseLeaveDelay:et,overlayClassName:rt,overlayStyle:_t,destroyPopupOnHide:Qe,dropdownRender:Bt},{compactSize:ne,compactItemClassnames:te}=(0,Ce.ri)(tn,Xe),oe=Ee()(Tt,te,ot);"overlay"in $e&&(ae.overlay=Ge),"open"in $e&&(ae.open=Ke),"placement"in $e?ae.placement=Yt:ae.placement=Xe==="rtl"?"bottomLeft":"bottomRight";const ce=We.createElement(xe.ZP,{type:At,danger:je,disabled:Be,loading:Je,onClick:nt,htmlType:zt,href:me,title:Ut},yt),re=We.createElement(xe.ZP,{type:At,danger:je,icon:Pt}),[le,ye]=kt([ce,re]);return We.createElement(Ze.Z.Compact,Object.assign({className:oe,size:ne,block:!0},qe),le,We.createElement(b.Z,Object.assign({},ae),ye))};tt.__ANT_BUTTON=!0;var Le=tt;const Rt=b.Z;Rt.Button=Le;var it=Rt},584:function(wn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return At}});var b=ee(59301),We=ee(92310),fe=ee.n(We),Ue=ee(9017),Ee=ee(17835),xe=ee(57700),Ze=()=>{const[,je]=(0,xe.ZP)(),[Be]=(0,Ue.Z)("Empty"),nt=new Ee.FastColor(je.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return b.createElement("svg",{style:nt,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},b.createElement("title",null,(Be==null?void 0:Be.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[,je]=(0,xe.ZP)(),[Be]=(0,Ue.Z)("Empty"),{colorFill:Je,colorFillTertiary:nt,colorFillQuaternary:zt,colorBgContainer:yt}=je,{borderColor:ot,shadowColor:ct,contentColor:Se}=(0,b.useMemo)(()=>({borderColor:new Ee.FastColor(Je).onBackground(yt).toHexString(),shadowColor:new Ee.FastColor(nt).onBackground(yt).toHexString(),contentColor:new Ee.FastColor(zt).onBackground(yt).toHexString()}),[Je,nt,zt,yt]);return b.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},b.createElement("title",null,(Be==null?void 0:Be.description)||"Empty"),b.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},b.createElement("ellipse",{fill:ct,cx:"32",cy:"33",rx:"32",ry:"7"}),b.createElement("g",{fillRule:"nonzero",stroke:ot},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:Se}))))},tt=ee(16931),Le=ee(51636);const Rt=je=>{const{componentCls:Be,margin:Je,marginXS:nt,marginXL:zt,fontSize:yt,lineHeight:ot}=je;return{[Be]:{marginInline:nt,fontSize:yt,lineHeight:ot,textAlign:"center",[`${Be}-image`]:{height:je.emptyImgHeight,marginBottom:nt,opacity:je.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${Be}-description`]:{color:je.colorTextDescription},[`${Be}-footer`]:{marginTop:Je},"&-normal":{marginBlock:zt,color:je.colorTextDescription,[`${Be}-description`]:{color:je.colorTextDescription},[`${Be}-image`]:{height:je.emptyImgHeightMD}},"&-small":{marginBlock:nt,color:je.colorTextDescription,[`${Be}-image`]:{height:je.emptyImgHeightSM}}}}};var it=(0,tt.I$)("Empty",je=>{const{componentCls:Be,controlHeightLG:Je,calc:nt}=je,zt=(0,Le.mergeToken)(je,{emptyImgCls:`${Be}-img`,emptyImgHeight:nt(Je).mul(2.5).equal(),emptyImgHeightMD:Je,emptyImgHeightSM:nt(Je).mul(.875).equal()});return[Rt(zt)]}),$e=ee(48755),Te=function(je,Be){var Je={};for(var nt in je)Object.prototype.hasOwnProperty.call(je,nt)&&Be.indexOf(nt)<0&&(Je[nt]=je[nt]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var zt=0,nt=Object.getOwnPropertySymbols(je);zt<nt.length;zt++)Be.indexOf(nt[zt])<0&&Object.prototype.propertyIsEnumerable.call(je,nt[zt])&&(Je[nt[zt]]=je[nt[zt]]);return Je};const Oe=b.createElement(Ze,null),Xe=b.createElement(ue,null),pt=je=>{const{className:Be,rootClassName:Je,prefixCls:nt,image:zt=Oe,description:yt,children:ot,imageStyle:ct,style:Se,classNames:lt,styles:Ge}=je,de=Te(je,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:Dt,direction:Ke,className:gt,style:Yt,classNames:Ne,styles:me}=(0,$e.dj)("empty"),Pt=Dt("empty",nt),[Ut,kt,ge]=it(Pt),[et]=(0,Ue.Z)("Empty"),rt=typeof yt!="undefined"?yt:et==null?void 0:et.description,_t=typeof rt=="string"?rt:"empty";let Qe=null;return typeof zt=="string"?Qe=b.createElement("img",{alt:_t,src:zt}):Qe=zt,Ut(b.createElement("div",Object.assign({className:fe()(kt,ge,Pt,gt,{[`${Pt}-normal`]:zt===Xe,[`${Pt}-rtl`]:Ke==="rtl"},Be,Je,Ne.root,lt==null?void 0:lt.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},me.root),Yt),Ge==null?void 0:Ge.root),Se)},de),b.createElement("div",{className:fe()(`${Pt}-image`,Ne.image,lt==null?void 0:lt.image),style:Object.assign(Object.assign(Object.assign({},ct),me.image),Ge==null?void 0:Ge.image)},Qe),rt&&b.createElement("div",{className:fe()(`${Pt}-description`,Ne.description,lt==null?void 0:lt.description),style:Object.assign(Object.assign({},me.description),Ge==null?void 0:Ge.description)},rt),ot&&b.createElement("div",{className:fe()(`${Pt}-footer`,Ne.footer,lt==null?void 0:lt.footer),style:Object.assign(Object.assign({},me.footer),Ge==null?void 0:Ge.footer)},ot)))};pt.PRESENTED_IMAGE_DEFAULT=Oe,pt.PRESENTED_IMAGE_SIMPLE=Xe;var At=pt},28284:function(wn,Qt,ee){"use strict";ee.d(Qt,{default:function(){return Ot}});var b=ee(56553),We=ee(77654),fe=ee(59301),Ue=ee(92310),Ee=ee.n(Ue),xe=ee(77900),Ie=ee(86641),Ze=ee(83397);function Ce(Fe){const[vt,ze]=fe.useState(Fe);return fe.useEffect(()=>{const bt=setTimeout(()=>{ze(Fe)},Fe.length?0:10);return()=>{clearTimeout(bt)}},[Fe]),vt}var ue=ee(36237),tt=ee(63356),Le=ee(34925),Rt=ee(34961),it=ee(51636),$e=ee(16931),Oe=Fe=>{const{componentCls:vt}=Fe,ze=`${vt}-show-help`,bt=`${vt}-show-help-item`;return{[ze]:{transition:`opacity ${Fe.motionDurationFast} ${Fe.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[bt]:{overflow:"hidden",transition:`height ${Fe.motionDurationFast} ${Fe.motionEaseInOut},
|
|
|
opacity ${Fe.motionDurationFast} ${Fe.motionEaseInOut},
|
|
|
transform ${Fe.motionDurationFast} ${Fe.motionEaseInOut} !important`,[`&${bt}-appear, &${bt}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${bt}-leave-active`]:{transform:"translateY(-5px)"}}}}};const Xe=Fe=>({legend:{display:"block",width:"100%",marginBottom:Fe.marginLG,padding:0,color:Fe.colorTextDescription,fontSize:Fe.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${(0,ue.unit)(Fe.lineWidth)} ${Fe.lineType} ${Fe.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)(Fe.controlOutlineWidth)} ${Fe.controlOutline}`},output:{display:"block",paddingTop:15,color:Fe.colorText,fontSize:Fe.fontSize,lineHeight:Fe.lineHeight}}),pt=(Fe,vt)=>{const{formItemCls:ze}=Fe;return{[ze]:{[`${ze}-label > label`]:{height:vt},[`${ze}-control-input`]:{minHeight:vt}}}},At=Fe=>{const{componentCls:vt}=Fe;return{[Fe.componentCls]:Object.assign(Object.assign(Object.assign({},(0,tt.Wf)(Fe)),Xe(Fe)),{[`${vt}-text`]:{display:"inline-block",paddingInlineEnd:Fe.paddingSM},"&-small":Object.assign({},pt(Fe,Fe.controlHeightSM)),"&-large":Object.assign({},pt(Fe,Fe.controlHeightLG))})}},je=Fe=>{const{formItemCls:vt,iconCls:ze,rootPrefixCls:bt,antCls:Pe,labelRequiredMarkColor:It,labelColor:$t,labelFontSize:Vt,labelHeight:St,labelColonMarginInlineStart:xt,labelColonMarginInlineEnd:wt,itemMarginBottom:Ft}=Fe;return{[vt]:Object.assign(Object.assign({},(0,tt.Wf)(Fe)),{marginBottom:Ft,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
|
&-hidden${Pe}-row`]:{display:"none"},"&-has-warning":{[`${vt}-split`]:{color:Fe.colorError}},"&-has-error":{[`${vt}-split`]:{color:Fe.colorWarning}},[`${vt}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:Fe.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:St,color:$t,fontSize:Vt,[`> ${ze}`]:{fontSize:Fe.fontSize,verticalAlign:"top"},[`&${vt}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:Fe.marginXXS,color:It,fontSize:Fe.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:Fe.marginXXS,color:Fe.colorTextDescription,[`&${vt}-required-mark-hidden`]:{display:"none"}},[`${vt}-tooltip`]:{color:Fe.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:Fe.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:Fe.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[vt]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:Fe.colorTextDescription,fontSize:Fe.fontSize,lineHeight:Fe.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:Fe.controlHeightSM,transition:`color ${Fe.motionDurationMid} ${Fe.motionEaseOut}`},"&-explain":{"&-error":{color:Fe.colorError},"&-warning":{color:Fe.colorWarning}}},[`&-with-help ${vt}-explain`]:{height:"auto",opacity:1},[`${vt}-feedback-icon`]:{fontSize:Fe.fontSize,textAlign:"center",visibility:"visible",animationName:Le.kr,animationDuration:Fe.motionDurationMid,animationTimingFunction:Fe.motionEaseOutBack,pointerEvents:"none","&-success":{color:Fe.colorSuccess},"&-error":{color:Fe.colorError},"&-warning":{color:Fe.colorWarning},"&-validating":{color:Fe.colorPrimary}}})}},Be=(Fe,vt)=>{const{formItemCls:ze}=Fe;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"}}}}},Je=Fe=>{const{componentCls:vt,formItemCls:ze,inlineItemMarginBottom:bt}=Fe;return{[`${vt}-inline`]:{display:"flex",flexWrap:"wrap",[ze]:{flex:"none",marginInlineEnd:Fe.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"}}}}},nt=Fe=>({padding:Fe.verticalLabelPadding,margin:Fe.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),zt=Fe=>{const{componentCls:vt,formItemCls:ze,rootPrefixCls:bt}=Fe;return{[`${ze} ${ze}-label`]:nt(Fe),[`${vt}:not(${vt}-inline)`]:{[ze]:{flexWrap:"wrap",[`${ze}-label, ${ze}-control`]:{[`&:not([class*=" ${bt}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},yt=Fe=>{const{componentCls:vt,formItemCls:ze,antCls:bt}=Fe;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`]:nt(Fe)}},[`@media (max-width: ${(0,ue.unit)(Fe.screenXSMax)})`]:[zt(Fe),{[vt]:{[`${ze}:not(${ze}-horizontal)`]:{[`${bt}-col-xs-24${ze}-label`]:nt(Fe)}}}],[`@media (max-width: ${(0,ue.unit)(Fe.screenSMMax)})`]:{[vt]:{[`${ze}:not(${ze}-horizontal)`]:{[`${bt}-col-sm-24${ze}-label`]:nt(Fe)}}},[`@media (max-width: ${(0,ue.unit)(Fe.screenMDMax)})`]:{[vt]:{[`${ze}:not(${ze}-horizontal)`]:{[`${bt}-col-md-24${ze}-label`]:nt(Fe)}}},[`@media (max-width: ${(0,ue.unit)(Fe.screenLGMax)})`]:{[vt]:{[`${ze}:not(${ze}-horizontal)`]:{[`${bt}-col-lg-24${ze}-label`]:nt(Fe)}}}}},ot=Fe=>{const{formItemCls:vt,antCls:ze}=Fe;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`]:nt(Fe),[`@media (max-width: ${(0,ue.unit)(Fe.screenXSMax)})`]:[zt(Fe),{[vt]:{[`${ze}-col-xs-24${vt}-label`]:nt(Fe)}}],[`@media (max-width: ${(0,ue.unit)(Fe.screenSMMax)})`]:{[vt]:{[`${ze}-col-sm-24${vt}-label`]:nt(Fe)}},[`@media (max-width: ${(0,ue.unit)(Fe.screenMDMax)})`]:{[vt]:{[`${ze}-col-md-24${vt}-label`]:nt(Fe)}},[`@media (max-width: ${(0,ue.unit)(Fe.screenLGMax)})`]:{[vt]:{[`${ze}-col-lg-24${vt}-label`]:nt(Fe)}}}},ct=Fe=>({labelRequiredMarkColor:Fe.colorError,labelColor:Fe.colorTextHeading,labelFontSize:Fe.fontSize,labelHeight:Fe.controlHeight,labelColonMarginInlineStart:Fe.marginXXS/2,labelColonMarginInlineEnd:Fe.marginXS,itemMarginBottom:Fe.marginLG,verticalLabelPadding:`0 0 ${Fe.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),Se=(Fe,vt)=>(0,it.mergeToken)(Fe,{formItemCls:`${Fe.componentCls}-item`,rootPrefixCls:vt});var lt=(0,$e.I$)("Form",(Fe,vt)=>{let{rootPrefixCls:ze}=vt;const bt=Se(Fe,ze);return[At(bt),je(bt),Oe(bt),Be(bt,bt.componentCls),Be(bt,bt.formItemCls),Je(bt),yt(bt),ot(bt),(0,Rt.Z)(bt),Le.kr]},ct,{order:-1e3});const Ge=[];function de(Fe,vt,ze){let bt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof Fe=="string"?Fe:`${vt}-${bt}`,error:Fe,errorStatus:ze}}var Ke=Fe=>{let{help:vt,helpStatus:ze,errors:bt=Ge,warnings:Pe=Ge,className:It,fieldId:$t,onVisibleChanged:Vt}=Fe;const{prefixCls:St}=fe.useContext(b.Rk),xt=`${St}-item-explain`,wt=(0,Ze.Z)(St),[Ft,On,In]=lt(St,wt),Tn=fe.useMemo(()=>(0,Ie.Z)(St),[St]),er=Ce(bt),lr=Ce(Pe),dr=fe.useMemo(()=>vt!=null?[de(vt,"help",ze)]:[].concat((0,We.Z)(er.map((Qn,cr)=>de(Qn,"error","error",cr))),(0,We.Z)(lr.map((Qn,cr)=>de(Qn,"warning","warning",cr)))),[vt,ze,er,lr]),Jn=fe.useMemo(()=>{const Qn={};return dr.forEach(cr=>{let{key:Er}=cr;Qn[Er]=(Qn[Er]||0)+1}),dr.map((cr,Er)=>Object.assign(Object.assign({},cr),{key:Qn[cr.key]>1?`${cr.key}-fallback-${Er}`:cr.key}))},[dr]),Gn={};return $t&&(Gn.id=`${$t}_help`),Ft(fe.createElement(xe.default,{motionDeadline:Tn.motionDeadline,motionName:`${St}-show-help`,visible:!!Jn.length,onVisibleChanged:Vt},Qn=>{const{className:cr,style:Er}=Qn;return fe.createElement("div",Object.assign({},Gn,{className:Ee()(xt,cr,In,wt,It,On),style:Er}),fe.createElement(xe.CSSMotionList,Object.assign({keys:Jn},(0,Ie.Z)(St),{motionName:`${St}-show-help-item`,component:!1}),Cr=>{const{key:wr,error:Yn,errorStatus:yr,className:mr,style:Vr}=Cr;return fe.createElement("div",{key:wr,className:Ee()(mr,{[`${xt}-${yr}`]:yr}),style:Vr},Yn)}))}))},gt=ee(69180),Yt=ee(48755),Ne=ee(2171),me=ee(31756),Pt=ee(23069),Ut=ee(76846),kt=ee(16722);const ge=["parentNode"],et="form_item";function rt(Fe){return Fe===void 0||Fe===!1?[]:Array.isArray(Fe)?Fe:[Fe]}function _t(Fe,vt){if(!Fe.length)return;const ze=Fe.join("_");return vt?`${vt}_${ze}`:ge.includes(ze)?`${et}_${ze}`:ze}function Qe(Fe,vt,ze,bt,Pe,It){let $t=bt;return It!==void 0?$t=It:ze.validating?$t="validating":Fe.length?$t="error":vt.length?$t="warning":(ze.touched||Pe&&ze.validated)&&($t="success"),$t}var Bt=function(Fe,vt){var ze={};for(var bt in Fe)Object.prototype.hasOwnProperty.call(Fe,bt)&&vt.indexOf(bt)<0&&(ze[bt]=Fe[bt]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,bt=Object.getOwnPropertySymbols(Fe);Pe<bt.length;Pe++)vt.indexOf(bt[Pe])<0&&Object.prototype.propertyIsEnumerable.call(Fe,bt[Pe])&&(ze[bt[Pe]]=Fe[bt[Pe]]);return ze};function qe(Fe){return rt(Fe).join("_")}function tn(Fe,vt){const ze=vt.getFieldInstance(Fe),bt=(0,Ut.bn)(ze);if(bt)return bt;const Pe=_t(rt(Fe),vt.__INTERNAL__.name);if(Pe)return document.getElementById(Pe)}function Tt(Fe){const[vt]=(0,gt.useForm)(),ze=fe.useRef({}),bt=fe.useMemo(()=>Fe!=null?Fe:Object.assign(Object.assign({},vt),{__INTERNAL__:{itemRef:Pe=>It=>{const $t=qe(Pe);It?ze.current[$t]=It:delete ze.current[$t]}},scrollToField:function(Pe){let It=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{focus:$t}=It,Vt=Bt(It,["focus"]),St=tn(Pe,bt);St&&((0,kt.Z)(St,Object.assign({scrollMode:"if-needed",block:"nearest"},Vt)),$t&&bt.focusField(Pe))},focusField:Pe=>{var It,$t;const Vt=bt.getFieldInstance(Pe);typeof(Vt==null?void 0:Vt.focus)=="function"?Vt.focus():($t=(It=tn(Pe,bt))===null||It===void 0?void 0:It.focus)===null||$t===void 0||$t.call(It)},getFieldInstance:Pe=>{const It=qe(Pe);return ze.current[It]}}),[Fe,vt]);return[bt]}var ae=ee(98350),ne=function(Fe,vt){var ze={};for(var bt in Fe)Object.prototype.hasOwnProperty.call(Fe,bt)&&vt.indexOf(bt)<0&&(ze[bt]=Fe[bt]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,bt=Object.getOwnPropertySymbols(Fe);Pe<bt.length;Pe++)vt.indexOf(bt[Pe])<0&&Object.prototype.propertyIsEnumerable.call(Fe,bt[Pe])&&(ze[bt[Pe]]=Fe[bt[Pe]]);return ze};const te=(Fe,vt)=>{const ze=fe.useContext(Ne.Z),{getPrefixCls:bt,direction:Pe,requiredMark:It,colon:$t,scrollToFirstError:Vt,className:St,style:xt}=(0,Yt.dj)("form"),{prefixCls:wt,className:Ft,rootClassName:On,size:In,disabled:Tn=ze,form:er,colon:lr,labelAlign:dr,labelWrap:Jn,labelCol:Gn,wrapperCol:Qn,hideRequiredMark:cr,layout:Er="horizontal",scrollToFirstError:Cr,requiredMark:wr,onFinishFailed:Yn,name:yr,style:mr,feedbackIcons:Vr,variant:Yr}=Fe,_r=ne(Fe,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),Ur=(0,me.Z)(In),oi=fe.useContext(ae.Z),Zr=fe.useMemo(()=>wr!==void 0?wr:cr?!1:It!==void 0?It:!0,[cr,wr,It]),Qr=lr!=null?lr:$t,Or=bt("form",wt),ti=(0,Ze.Z)(Or),[ci,$i,vi]=lt(Or,ti),xi=Ee()(Or,`${Or}-${Er}`,{[`${Or}-hide-required-mark`]:Zr===!1,[`${Or}-rtl`]:Pe==="rtl",[`${Or}-${Ur}`]:Ur},vi,ti,$i,St,Ft,On),[hi]=Tt(er),{__INTERNAL__:bi}=hi;bi.name=yr;const Ar=fe.useMemo(()=>({name:yr,labelAlign:dr,labelCol:Gn,labelWrap:Jn,wrapperCol:Qn,vertical:Er==="vertical",colon:Qr,requiredMark:Zr,itemRef:bi.itemRef,form:hi,feedbackIcons:Vr}),[yr,dr,Gn,Qn,Er,Qr,Zr,hi,Vr]),Lr=fe.useRef(null);fe.useImperativeHandle(vt,()=>{var jn;return Object.assign(Object.assign({},hi),{nativeElement:(jn=Lr.current)===null||jn===void 0?void 0:jn.nativeElement})});const sr=(jn,Kn)=>{if(jn){let kn={block:"nearest"};typeof jn=="object"&&(kn=Object.assign(Object.assign({},kn),jn)),hi.scrollToField(Kn,kn)}},Dn=jn=>{if(Yn==null||Yn(jn),jn.errorFields.length){const Kn=jn.errorFields[0].name;if(Cr!==void 0){sr(Cr,Kn);return}Vt!==void 0&&sr(Vt,Kn)}};return ci(fe.createElement(b.pg.Provider,{value:Yr},fe.createElement(Ne.n,{disabled:Tn},fe.createElement(Pt.Z.Provider,{value:Ur},fe.createElement(b.RV,{validateMessages:oi},fe.createElement(b.q3.Provider,{value:Ar},fe.createElement(gt.default,Object.assign({id:yr},_r,{name:yr,onFinishFailed:Dn,form:hi,ref:Lr,style:Object.assign(Object.assign({},xt),mr),className:xi}))))))))};var ce=fe.forwardRef(te),re=ee(41799),le=ee(8654),ye=ee(22703),ft=ee(32383),Ae=ee(11592);function ke(Fe){if(typeof Fe=="function")return Fe;const vt=(0,Ae.Z)(Fe);return vt.length<=1?vt[0]:vt}const Ve=()=>{const{status:Fe,errors:vt=[],warnings:ze=[]}=fe.useContext(b.aM);return{status:Fe,errors:vt,warnings:ze}};Ve.Context=b.aM;var Ye=Ve,mt=ee(16089);function we(Fe){const[vt,ze]=fe.useState(Fe),bt=fe.useRef(null),Pe=fe.useRef([]),It=fe.useRef(!1);fe.useEffect(()=>(It.current=!1,()=>{It.current=!0,mt.Z.cancel(bt.current),bt.current=null}),[]);function $t(Vt){It.current||(bt.current===null&&(Pe.current=[],bt.current=(0,mt.Z)(()=>{bt.current=null,ze(St=>{let xt=St;return Pe.current.forEach(wt=>{xt=wt(xt)}),xt})})),Pe.current.push(Vt))}return[vt,$t]}function De(){const{itemRef:Fe}=fe.useContext(b.q3),vt=fe.useRef({});function ze(bt,Pe){const It=Pe&&typeof Pe=="object"&&(0,le.C4)(Pe),$t=bt.join("_");return(vt.current.name!==$t||vt.current.originRef!==It)&&(vt.current.name=$t,vt.current.originRef=It,vt.current.ref=(0,le.sQ)(Fe(bt),It)),vt.current.ref}return ze}var Zt=ee(29194),Ht=ee(34280),nn=ee(2738),qt=ee(65970),Et=ee(70425),on=ee(5472);const Kt=Fe=>{const{formItemCls:vt}=Fe;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${vt}-control`]:{display:"flex"}}}};var He=(0,$e.bk)(["Form","item-item"],(Fe,vt)=>{let{rootPrefixCls:ze}=vt;const bt=Se(Fe,ze);return[Kt(bt)]}),ht=function(Fe,vt){var ze={};for(var bt in Fe)Object.prototype.hasOwnProperty.call(Fe,bt)&&vt.indexOf(bt)<0&&(ze[bt]=Fe[bt]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,bt=Object.getOwnPropertySymbols(Fe);Pe<bt.length;Pe++)vt.indexOf(bt[Pe])<0&&Object.prototype.propertyIsEnumerable.call(Fe,bt[Pe])&&(ze[bt[Pe]]=Fe[bt[Pe]]);return ze};const at=24;var Me=Fe=>{const{prefixCls:vt,status:ze,labelCol:bt,wrapperCol:Pe,children:It,errors:$t,warnings:Vt,_internalItemRender:St,extra:xt,help:wt,fieldId:Ft,marginBottom:On,onErrorVisibleChanged:In,label:Tn}=Fe,er=`${vt}-item`,lr=fe.useContext(b.q3),dr=fe.useMemo(()=>{let _r=Object.assign({},Pe||lr.wrapperCol||{});return Tn===null&&!bt&&!Pe&&lr.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(oi=>{const Zr=oi?[oi]:[],Qr=(0,Et.U2)(lr.labelCol,Zr),Or=typeof Qr=="object"?Qr:{},ti=(0,Et.U2)(_r,Zr),ci=typeof ti=="object"?ti:{};"span"in Or&&!("offset"in ci)&&Or.span<at&&(_r=(0,Et.t8)(_r,[].concat(Zr,["offset"]),Or.span))}),_r},[Pe,lr]),Jn=Ee()(`${er}-control`,dr.className),Gn=fe.useMemo(()=>{const{labelCol:_r,wrapperCol:Ur}=lr;return ht(lr,["labelCol","wrapperCol"])},[lr]),Qn=fe.useRef(null),[cr,Er]=fe.useState(0);(0,Ht.Z)(()=>{xt&&Qn.current?Er(Qn.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=On!==null||$t.length||Vt.length?fe.createElement(b.Rk.Provider,{value:wr},fe.createElement(Ke,{fieldId:Ft,errors:$t,warnings:Vt,help:wt,helpStatus:ze,className:`${er}-explain-connected`,onVisibleChanged:In})):null,yr={};Ft&&(yr.id=`${Ft}_extra`);const mr=xt?fe.createElement("div",Object.assign({},yr,{className:`${er}-extra`,ref:Qn}),xt):null,Vr=Yn||mr?fe.createElement("div",{className:`${er}-additional`,style:On?{minHeight:On+cr}:{}},Yn,mr):null,Yr=St&&St.mark==="pro_table_render"&&St.render?St.render(Fe,{input:Cr,errorList:Yn,extra:mr}):fe.createElement(fe.Fragment,null,Cr,Vr);return fe.createElement(b.q3.Provider,{value:Gn},fe.createElement(on.Z,Object.assign({},dr,{className:Jn}),Yr),fe.createElement(He,{prefixCls:vt}))},st=ee(61485),Ct=ee(9017),Wt=ee(85981),cn=ee(25399),Sn=function(Fe,vt){var ze={};for(var bt in Fe)Object.prototype.hasOwnProperty.call(Fe,bt)&&vt.indexOf(bt)<0&&(ze[bt]=Fe[bt]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,bt=Object.getOwnPropertySymbols(Fe);Pe<bt.length;Pe++)vt.indexOf(bt[Pe])<0&&Object.prototype.propertyIsEnumerable.call(Fe,bt[Pe])&&(ze[bt[Pe]]=Fe[bt[Pe]]);return ze};function Bn(Fe){return Fe?typeof Fe=="object"&&!fe.isValidElement(Fe)?Fe:{title:Fe}:null}var gn=Fe=>{let{prefixCls:vt,label:ze,htmlFor:bt,labelCol:Pe,labelAlign:It,colon:$t,required:Vt,requiredMark:St,tooltip:xt,vertical:wt}=Fe;var Ft;const[On]=(0,Ct.Z)("Form"),{labelAlign:In,labelCol:Tn,labelWrap:er,colon:lr}=fe.useContext(b.q3);if(!ze)return null;const dr=Pe||Tn||{},Jn=It||In,Gn=`${vt}-item-label`,Qn=Ee()(Gn,Jn==="left"&&`${Gn}-left`,dr.className,{[`${Gn}-wrap`]:!!er});let cr=ze;const Er=$t===!0||lr!==!1&&$t!==!1;Er&&!wt&&typeof ze=="string"&&ze.trim()&&(cr=ze.replace(/[:|:]\s*$/,""));const wr=Bn(xt);if(wr){const{icon:_r=fe.createElement(st.Z,null)}=wr,Ur=Sn(wr,["icon"]),oi=fe.createElement(cn.Z,Object.assign({},Ur),fe.cloneElement(_r,{className:`${vt}-item-tooltip`,title:"",onClick:Zr=>{Zr.preventDefault()},tabIndex:null}));cr=fe.createElement(fe.Fragment,null,cr,oi)}const Yn=St==="optional",yr=typeof St=="function",mr=St===!1;yr?cr=St(cr,{required:!!Vt}):Yn&&!Vt&&(cr=fe.createElement(fe.Fragment,null,cr,fe.createElement("span",{className:`${vt}-item-optional`,title:""},(On==null?void 0:On.optional)||((Ft=Wt.Z.Form)===null||Ft===void 0?void 0:Ft.optional))));let Vr;mr?Vr="hidden":(Yn||yr)&&(Vr="optional");const Yr=Ee()({[`${vt}-item-required`]:Vt,[`${vt}-item-required-mark-${Vr}`]:Vr,[`${vt}-item-no-colon`]:!Er});return fe.createElement(on.Z,Object.assign({},dr,{className:Qn}),fe.createElement("label",{htmlFor:bt,className:Yr,title:typeof ze=="string"?ze:""},cr))},Nn=ee(29679),dn=ee(19248),Xt=ee(96512),rn=ee(58617);const an={success:Nn.Z,warning:Xt.Z,error:dn.Z,validating:rn.Z};function Jt(Fe){let{children:vt,errors:ze,warnings:bt,hasFeedback:Pe,validateStatus:It,prefixCls:$t,meta:Vt,noStyle:St}=Fe;const xt=`${$t}-item`,{feedbackIcons:wt}=fe.useContext(b.q3),Ft=Qe(ze,bt,Vt,null,!!Pe,It),{isFormItemInput:On,status:In,hasFeedback:Tn,feedbackIcon:er}=fe.useContext(b.aM),lr=fe.useMemo(()=>{var dr;let Jn;if(Pe){const Qn=Pe!==!0&&Pe.icons||wt,cr=Ft&&((dr=Qn==null?void 0:Qn({status:Ft,errors:ze,warnings:bt}))===null||dr===void 0?void 0:dr[Ft]),Er=Ft&&an[Ft];Jn=cr!==!1&&Er?fe.createElement("span",{className:Ee()(`${xt}-feedback-icon`,`${xt}-feedback-icon-${Ft}`)},cr||fe.createElement(Er,null)):null}const Gn={status:Ft||"",errors:ze,warnings:bt,hasFeedback:!!Pe,feedbackIcon:Jn,isFormItemInput:!0};return St&&(Gn.status=(Ft!=null?Ft:In)||"",Gn.isFormItemInput=On,Gn.hasFeedback=!!(Pe!=null?Pe:Tn),Gn.feedbackIcon=Pe!==void 0?Gn.feedbackIcon:er),Gn},[Ft,Pe,St,On,In]);return fe.createElement(b.aM.Provider,{value:lr},vt)}var pn=function(Fe,vt){var ze={};for(var bt in Fe)Object.prototype.hasOwnProperty.call(Fe,bt)&&vt.indexOf(bt)<0&&(ze[bt]=Fe[bt]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,bt=Object.getOwnPropertySymbols(Fe);Pe<bt.length;Pe++)vt.indexOf(bt[Pe])<0&&Object.prototype.propertyIsEnumerable.call(Fe,bt[Pe])&&(ze[bt[Pe]]=Fe[bt[Pe]]);return ze};function mn(Fe){const{prefixCls:vt,className:ze,rootClassName:bt,style:Pe,help:It,errors:$t,warnings:Vt,validateStatus:St,meta:xt,hasFeedback:wt,hidden:Ft,children:On,fieldId:In,required:Tn,isRequired:er,onSubItemMetaChange:lr,layout:dr}=Fe,Jn=pn(Fe,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout"]),Gn=`${vt}-item`,{requiredMark:Qn,vertical:cr}=fe.useContext(b.q3),Er=cr||dr==="vertical",Cr=fe.useRef(null),wr=Ce($t),Yn=Ce(Vt),yr=It!=null,mr=!!(yr||$t.length||Vt.length),Vr=!!Cr.current&&(0,Zt.Z)(Cr.current),[Yr,_r]=fe.useState(null);(0,Ht.Z)(()=>{if(mr&&Cr.current){const Or=getComputedStyle(Cr.current);_r(parseInt(Or.marginBottom,10))}},[mr,Vr]);const Ur=Or=>{Or||_r(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,St)}(),Qr=Ee()(Gn,ze,bt,{[`${Gn}-with-help`]:yr||wr.length||Yn.length,[`${Gn}-has-feedback`]:Zr&&wt,[`${Gn}-has-success`]:Zr==="success",[`${Gn}-has-warning`]:Zr==="warning",[`${Gn}-has-error`]:Zr==="error",[`${Gn}-is-validating`]:Zr==="validating",[`${Gn}-hidden`]:Ft,[`${Gn}-${dr}`]:dr});return fe.createElement("div",{className:Qr,style:Pe,ref:Cr},fe.createElement(qt.Z,Object.assign({className:`${Gn}-row`},(0,nn.Z)(Jn,["_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:In},Fe,{requiredMark:Qn,required:Tn!=null?Tn:er,prefixCls:vt,vertical:Er})),fe.createElement(Me,Object.assign({},Fe,xt,{errors:wr,warnings:Yn,prefixCls:vt,status:Zr,help:It,marginBottom:Yr,onErrorVisibleChanged:Ur}),fe.createElement(b.qI.Provider,{value:lr},fe.createElement(Jt,{prefixCls:vt,meta:xt,errors:xt.errors,warnings:xt.warnings,hasFeedback:wt,validateStatus:Zr},On)))),!!Yr&&fe.createElement("div",{className:`${Gn}-margin-offset`,style:{marginBottom:-Yr}}))}const Cn="__SPLIT__",Fn=null;function zn(Fe,vt){const ze=Object.keys(Fe),bt=Object.keys(vt);return ze.length===bt.length&&ze.every(Pe=>{const It=Fe[Pe],$t=vt[Pe];return It===$t||typeof It=="function"||typeof $t=="function"})}const Zn=fe.memo(Fe=>{let{children:vt}=Fe;return vt},(Fe,vt)=>zn(Fe.control,vt.control)&&Fe.update===vt.update&&Fe.childProps.length===vt.childProps.length&&Fe.childProps.every((ze,bt)=>ze===vt.childProps[bt]));function Xn(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function _n(Fe){const{name:vt,noStyle:ze,className:bt,dependencies:Pe,prefixCls:It,shouldUpdate:$t,rules:Vt,children:St,required:xt,label:wt,messageVariables:Ft,trigger:On="onChange",validateTrigger:In,hidden:Tn,help:er,layout:lr}=Fe,{getPrefixCls:dr}=fe.useContext(Yt.E_),{name:Jn}=fe.useContext(b.q3),Gn=ke(St),Qn=typeof Gn=="function",cr=fe.useContext(b.qI),{validateTrigger:Er}=fe.useContext(gt.FieldContext),Cr=In!==void 0?In:Er,wr=vt!=null,Yn=dr("form",It),yr=(0,Ze.Z)(Yn),[mr,Vr,Yr]=lt(Yn,yr),_r=(0,ft.ln)("Form.Item"),Ur=fe.useContext(gt.ListContext),oi=fe.useRef(null),[Zr,Qr]=we({}),[Or,ti]=(0,re.Z)(()=>Xn()),ci=Lr=>{const sr=Ur==null?void 0:Ur.getKey(Lr.name);if(ti(Lr.destroy?Xn():Lr,!0),ze&&er!==!1&&cr){let Dn=Lr.name;if(Lr.destroy)Dn=oi.current||Dn;else if(sr!==void 0){const[jn,Kn]=sr;Dn=[jn].concat((0,We.Z)(Kn)),oi.current=Dn}cr(Lr,Dn)}},$i=(Lr,sr)=>{Qr(Dn=>{const jn=Object.assign({},Dn),kn=[].concat((0,We.Z)(Lr.name.slice(0,-1)),(0,We.Z)(sr)).join(Cn);return Lr.destroy?delete jn[kn]:jn[kn]=Lr,jn})},[vi,xi]=fe.useMemo(()=>{const Lr=(0,We.Z)(Or.errors),sr=(0,We.Z)(Or.warnings);return Object.values(Zr).forEach(Dn=>{Lr.push.apply(Lr,(0,We.Z)(Dn.errors||[])),sr.push.apply(sr,(0,We.Z)(Dn.warnings||[]))}),[Lr,sr]},[Zr,Or.errors,Or.warnings]),hi=De();function bi(Lr,sr,Dn){return ze&&!Tn?fe.createElement(Jt,{prefixCls:Yn,hasFeedback:Fe.hasFeedback,validateStatus:Fe.validateStatus,meta:Or,errors:vi,warnings:xi,noStyle:!0},Lr):fe.createElement(mn,Object.assign({key:"row"},Fe,{className:Ee()(bt,Yr,yr,Vr),prefixCls:Yn,fieldId:sr,isRequired:Dn,errors:vi,warnings:xi,meta:Or,onSubItemMetaChange:$i,layout:lr}),Lr)}if(!wr&&!Qn&&!Pe)return mr(bi(Gn));let Ar={};return typeof wt=="string"?Ar.label=wt:vt&&(Ar.label=String(vt)),Ft&&(Ar=Object.assign(Object.assign({},Ar),Ft)),mr(fe.createElement(gt.Field,Object.assign({},Fe,{messageVariables:Ar,trigger:On,validateTrigger:Cr,onMetaChange:ci}),(Lr,sr,Dn)=>{const jn=rt(vt).length&&sr?sr.name:[],Kn=_t(jn,Jn),kn=xt!==void 0?xt:!!(Vt!=null&&Vt.some($n=>{if($n&&typeof $n=="object"&&$n.required&&!$n.warningOnly)return!0;if(typeof $n=="function"){const Mn=$n(Dn);return(Mn==null?void 0:Mn.required)&&!(Mn!=null&&Mn.warningOnly)}return!1})),or=Object.assign({},Lr);let br=null;if(Array.isArray(Gn)&&wr)br=Gn;else if(!(Qn&&(!($t||Pe)||wr))){if(!(Pe&&!Qn&&!wr))if(fe.isValidElement(Gn)){const $n=Object.assign(Object.assign({},Gn.props),or);if($n.id||($n.id=Kn),er||vi.length>0||xi.length>0||Fe.extra){const tr=[];(er||vi.length>0)&&tr.push(`${Kn}_help`),Fe.extra&&tr.push(`${Kn}_extra`),$n["aria-describedby"]=tr.join(" ")}vi.length>0&&($n["aria-invalid"]="true"),kn&&($n["aria-required"]="true"),(0,le.Yr)(Gn)&&($n.ref=hi(jn,Gn)),new Set([].concat((0,We.Z)(rt(On)),(0,We.Z)(rt(Cr)))).forEach(tr=>{$n[tr]=function(){for(var Jr,Ei,pi,Ni,Ii,Pi=arguments.length,Fi=new Array(Pi),ki=0;ki<Pi;ki++)Fi[ki]=arguments[ki];(pi=or[tr])===null||pi===void 0||(Jr=pi).call.apply(Jr,[or].concat(Fi)),(Ii=(Ni=Gn.props)[tr])===null||Ii===void 0||(Ei=Ii).call.apply(Ei,[Ni].concat(Fi))}});const Un=[$n["aria-required"],$n["aria-invalid"],$n["aria-describedby"]];br=fe.createElement(Zn,{control:or,update:Gn,childProps:Un},(0,ye.Tm)(Gn,$n))}else Qn&&($t||Pe)&&!wr?br=Gn(Dn):br=Gn}return bi(br,Kn,kn)}))}const pr=_n;pr.useStatus=Ye;var ar=pr,sn=function(Fe,vt){var ze={};for(var bt in Fe)Object.prototype.hasOwnProperty.call(Fe,bt)&&vt.indexOf(bt)<0&&(ze[bt]=Fe[bt]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,bt=Object.getOwnPropertySymbols(Fe);Pe<bt.length;Pe++)vt.indexOf(bt[Pe])<0&&Object.prototype.propertyIsEnumerable.call(Fe,bt[Pe])&&(ze[bt[Pe]]=Fe[bt[Pe]]);return ze},Hn=Fe=>{var{prefixCls:vt,children:ze}=Fe,bt=sn(Fe,["prefixCls","children"]);const{getPrefixCls:Pe}=fe.useContext(Yt.E_),It=Pe("form",vt),$t=fe.useMemo(()=>({prefixCls:It,status:"error"}),[It]);return fe.createElement(gt.List,Object.assign({},bt),(Vt,St,xt)=>fe.createElement(b.Rk.Provider,{value:$t},ze(Vt.map(wt=>Object.assign(Object.assign({},wt),{fieldKey:wt.key})),St,{errors:xt.errors,warnings:xt.warnings})))};function An(){const{form:Fe}=fe.useContext(b.q3);return Fe}const ut=ce;ut.Item=ar,ut.List=Hn,ut.ErrorList=Ke,ut.useForm=Tt,ut.useFormInstance=An,ut.useWatch=gt.useWatch,ut.Provider=b.RV,ut.create=()=>{};var Ot=ut},4875:function(wn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Mt}});var b=ee(59301),We=ee(84105),fe=ee(87395),Ue=ee(92310),Ee=ee.n(Ue),xe=ee(60499),Ie=ee(18642),Ze=ee(43749),Ce=ee(72190),ue=ee(42244),tt=ee(38705),Le=ee(17212);function Rt(){return typeof BigInt=="function"}function it(Me){return!Me&&Me!==0&&!Number.isNaN(Me)||!String(Me).trim()}function $e(Me){var st=Me.trim(),Ct=st.startsWith("-");Ct&&(st=st.slice(1)),st=st.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),st.startsWith(".")&&(st="0".concat(st));var Wt=st||"0",cn=Wt.split("."),Sn=cn[0]||"0",Bn=cn[1]||"0";Sn==="0"&&Bn==="0"&&(Ct=!1);var Rn=Ct?"-":"";return{negative:Ct,negativeStr:Rn,trimStr:Wt,integerStr:Sn,decimalStr:Bn,fullStr:"".concat(Rn).concat(Wt)}}function Te(Me){var st=String(Me);return!Number.isNaN(Number(st))&&st.includes("e")}function Oe(Me){var st=String(Me);if(Te(Me)){var Ct=Number(st.slice(st.indexOf("e-")+2)),Wt=st.match(/\.(\d+)/);return Wt!=null&&Wt[1]&&(Ct+=Wt[1].length),Ct}return st.includes(".")&&pt(st)?st.length-st.indexOf(".")-1:0}function Xe(Me){var st=String(Me);if(Te(Me)){if(Me>Number.MAX_SAFE_INTEGER)return String(Rt()?BigInt(Me).toString():Number.MAX_SAFE_INTEGER);if(Me<Number.MIN_SAFE_INTEGER)return String(Rt()?BigInt(Me).toString():Number.MIN_SAFE_INTEGER);st=Me.toFixed(Oe(st))}return $e(st).fullStr}function pt(Me){return typeof Me=="number"?!Number.isNaN(Me):Me?/^\s*-?\d+(\.\d+)?\s*$/.test(Me)||/^\s*-?\d+\.\s*$/.test(Me)||/^\s*-?\.\d+\s*$/.test(Me):!1}var At=function(){function Me(st){if((0,tt.Z)(this,Me),(0,Ie.Z)(this,"origin",""),(0,Ie.Z)(this,"negative",void 0),(0,Ie.Z)(this,"integer",void 0),(0,Ie.Z)(this,"decimal",void 0),(0,Ie.Z)(this,"decimalLen",void 0),(0,Ie.Z)(this,"empty",void 0),(0,Ie.Z)(this,"nan",void 0),it(st)){this.empty=!0;return}if(this.origin=String(st),st==="-"||Number.isNaN(st)){this.nan=!0;return}var Ct=st;if(Te(Ct)&&(Ct=Number(Ct)),Ct=typeof Ct=="string"?Ct:Xe(Ct),pt(Ct)){var Wt=$e(Ct);this.negative=Wt.negative;var cn=Wt.trimStr.split(".");this.integer=BigInt(cn[0]);var Sn=cn[1]||"0";this.decimal=BigInt(Sn),this.decimalLen=Sn.length}else this.nan=!0}return(0,Le.Z)(Me,[{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(Ct){var Wt="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(Ct,"0"));return BigInt(Wt)}},{key:"negate",value:function(){var Ct=new Me(this.toString());return Ct.negative=!Ct.negative,Ct}},{key:"cal",value:function(Ct,Wt,cn){var Sn=Math.max(this.getDecimalStr().length,Ct.getDecimalStr().length),Bn=this.alignDecimal(Sn),Rn=Ct.alignDecimal(Sn),gn=Wt(Bn,Rn).toString(),Nn=cn(Sn),dn=$e(gn),Xt=dn.negativeStr,rn=dn.trimStr,an="".concat(Xt).concat(rn.padStart(Nn+1,"0"));return new Me("".concat(an.slice(0,-Nn),".").concat(an.slice(-Nn)))}},{key:"add",value:function(Ct){if(this.isInvalidate())return new Me(Ct);var Wt=new Me(Ct);return Wt.isInvalidate()?this:this.cal(Wt,function(cn,Sn){return cn+Sn},function(cn){return cn})}},{key:"multi",value:function(Ct){var Wt=new Me(Ct);return this.isInvalidate()||Wt.isInvalidate()?new Me(NaN):this.cal(Wt,function(cn,Sn){return cn*Sn},function(cn){return cn*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(Ct){return this.toString()===(Ct==null?void 0:Ct.toString())}},{key:"lessEquals",value:function(Ct){return this.add(Ct.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var Ct=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return Ct?this.isInvalidate()?"":$e("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),Me}(),je=function(){function Me(st){if((0,tt.Z)(this,Me),(0,Ie.Z)(this,"origin",""),(0,Ie.Z)(this,"number",void 0),(0,Ie.Z)(this,"empty",void 0),it(st)){this.empty=!0;return}this.origin=String(st),this.number=Number(st)}return(0,Le.Z)(Me,[{key:"negate",value:function(){return new Me(-this.toNumber())}},{key:"add",value:function(Ct){if(this.isInvalidate())return new Me(Ct);var Wt=Number(Ct);if(Number.isNaN(Wt))return this;var cn=this.number+Wt;if(cn>Number.MAX_SAFE_INTEGER)return new Me(Number.MAX_SAFE_INTEGER);if(cn<Number.MIN_SAFE_INTEGER)return new Me(Number.MIN_SAFE_INTEGER);var Sn=Math.max(Oe(this.number),Oe(Wt));return new Me(cn.toFixed(Sn))}},{key:"multi",value:function(Ct){var Wt=Number(Ct);if(this.isInvalidate()||Number.isNaN(Wt))return new Me(NaN);var cn=this.number*Wt;if(cn>Number.MAX_SAFE_INTEGER)return new Me(Number.MAX_SAFE_INTEGER);if(cn<Number.MIN_SAFE_INTEGER)return new Me(Number.MIN_SAFE_INTEGER);var Sn=Math.max(Oe(this.number),Oe(Wt));return new Me(cn.toFixed(Sn))}},{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(Ct){return this.toNumber()===(Ct==null?void 0:Ct.toNumber())}},{key:"lessEquals",value:function(Ct){return this.add(Ct.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var Ct=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return Ct?this.isInvalidate()?"":Xe(this.number):this.origin}}]),Me}();function Be(Me){return Rt()?new At(Me):new je(Me)}function Je(Me,st,Ct){var Wt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(Me==="")return"";var cn=$e(Me),Sn=cn.negativeStr,Bn=cn.integerStr,Rn=cn.decimalStr,gn="".concat(st).concat(Rn),Nn="".concat(Sn).concat(Bn);if(Ct>=0){var dn=Number(Rn[Ct]);if(dn>=5&&!Wt){var Xt=Be(Me).add("".concat(Sn,"0.").concat("0".repeat(Ct)).concat(10-dn));return Je(Xt.toString(),st,Ct,Wt)}return Ct===0?Nn:"".concat(Nn).concat(st).concat(Rn.padEnd(Ct,"0").slice(0,Ct))}return gn===".0"?Nn:"".concat(Nn).concat(gn)}var nt=Be,zt=ee(36901),yt=ee(34280);function ot(Me,st){return typeof Proxy!="undefined"&&Me?new Proxy(Me,{get:function(Wt,cn){if(st[cn])return st[cn];var Sn=Wt[cn];return typeof Sn=="function"?Sn.bind(Wt):Sn}}):Me}var ct=ee(8654),Se=ee(48736);function lt(Me,st){var Ct=(0,b.useRef)(null);function Wt(){try{var Sn=Me.selectionStart,Bn=Me.selectionEnd,Rn=Me.value,gn=Rn.substring(0,Sn),Nn=Rn.substring(Bn);Ct.current={start:Sn,end:Bn,value:Rn,beforeTxt:gn,afterTxt:Nn}}catch(dn){}}function cn(){if(Me&&Ct.current&&st)try{var Sn=Me.value,Bn=Ct.current,Rn=Bn.beforeTxt,gn=Bn.afterTxt,Nn=Bn.start,dn=Sn.length;if(Sn.startsWith(Rn))dn=Rn.length;else if(Sn.endsWith(gn))dn=Sn.length-Ct.current.afterTxt.length;else{var Xt=Rn[Nn-1],rn=Sn.indexOf(Xt,Nn-1);rn!==-1&&(dn=rn+1)}Me.setSelectionRange(dn,dn)}catch(an){(0,Se.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(an.message))}}return[Wt,cn]}var Ge=ee(49658),de=function(){var st=(0,b.useState)(!1),Ct=(0,Ce.Z)(st,2),Wt=Ct[0],cn=Ct[1];return(0,yt.Z)(function(){cn((0,Ge.Z)())},[]),Wt},Dt=de,Ke=ee(16089),gt=200,Yt=600;function Ne(Me){var st=Me.prefixCls,Ct=Me.upNode,Wt=Me.downNode,cn=Me.upDisabled,Sn=Me.downDisabled,Bn=Me.onStep,Rn=b.useRef(),gn=b.useRef([]),Nn=b.useRef();Nn.current=Bn;var dn=function(){clearTimeout(Rn.current)},Xt=function(zn,Zn){zn.preventDefault(),dn(),Nn.current(Zn);function Xn(){Nn.current(Zn),Rn.current=setTimeout(Xn,gt)}Rn.current=setTimeout(Xn,Yt)};b.useEffect(function(){return function(){dn(),gn.current.forEach(function(Fn){return Ke.Z.cancel(Fn)})}},[]);var rn=Dt();if(rn)return null;var an="".concat(st,"-handler"),Jt=Ee()(an,"".concat(an,"-up"),(0,Ie.Z)({},"".concat(an,"-up-disabled"),cn)),pn=Ee()(an,"".concat(an,"-down"),(0,Ie.Z)({},"".concat(an,"-down-disabled"),Sn)),mn=function(){return gn.current.push((0,Ke.Z)(dn))},Cn={unselectable:"on",role:"button",onMouseUp:mn,onMouseLeave:mn};return b.createElement("div",{className:"".concat(an,"-wrap")},b.createElement("span",(0,xe.Z)({},Cn,{onMouseDown:function(zn){Xt(zn,!0)},"aria-label":"Increase Value","aria-disabled":cn,className:Jt}),Ct||b.createElement("span",{unselectable:"on",className:"".concat(st,"-handler-up-inner")})),b.createElement("span",(0,xe.Z)({},Cn,{onMouseDown:function(zn){Xt(zn,!1)},"aria-label":"Decrease Value","aria-disabled":Sn,className:pn}),Wt||b.createElement("span",{unselectable:"on",className:"".concat(st,"-handler-down-inner")})))}function me(Me){var st=typeof Me=="number"?Xe(Me):$e(Me).fullStr,Ct=st.includes(".");return Ct?$e(st.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:Me+"0"}var Pt=ee(30292),Ut=function(){var Me=(0,b.useRef)(0),st=function(){Ke.Z.cancel(Me.current)};return(0,b.useEffect)(function(){return st},[]),function(Ct){st(),Me.current=(0,Ke.Z)(function(){Ct()})}},kt=["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"],et=function(st,Ct){return st||Ct.isEmpty()?Ct.toString():Ct.toNumber()},rt=function(st){var Ct=nt(st);return Ct.isInvalidate()?null:Ct},_t=b.forwardRef(function(Me,st){var Ct=Me.prefixCls,Wt=Me.className,cn=Me.style,Sn=Me.min,Bn=Me.max,Rn=Me.step,gn=Rn===void 0?1:Rn,Nn=Me.defaultValue,dn=Me.value,Xt=Me.disabled,rn=Me.readOnly,an=Me.upHandler,Jt=Me.downHandler,pn=Me.keyboard,mn=Me.changeOnWheel,Cn=mn===void 0?!1:mn,Fn=Me.controls,zn=Fn===void 0?!0:Fn,Zn=Me.classNames,Xn=Me.stringMode,_n=Me.parser,pr=Me.formatter,ar=Me.precision,sn=Me.decimalSeparator,bn=Me.onChange,Hn=Me.onInput,An=Me.onPressEnter,ut=Me.onStep,Ot=Me.changeOnBlur,Fe=Ot===void 0?!0:Ot,vt=Me.domRef,ze=(0,ue.Z)(Me,kt),bt="".concat(Ct,"-input"),Pe=b.useRef(null),It=b.useState(!1),$t=(0,Ce.Z)(It,2),Vt=$t[0],St=$t[1],xt=b.useRef(!1),wt=b.useRef(!1),Ft=b.useRef(!1),On=b.useState(function(){return nt(dn!=null?dn:Nn)}),In=(0,Ce.Z)(On,2),Tn=In[0],er=In[1];function lr(Kn){dn===void 0&&er(Kn)}var dr=b.useCallback(function(Kn,kn){if(!kn)return ar>=0?ar:Math.max(Oe(Kn),Oe(gn))},[ar,gn]),Jn=b.useCallback(function(Kn){var kn=String(Kn);if(_n)return _n(kn);var or=kn;return sn&&(or=or.replace(sn,".")),or.replace(/[^\w.-]+/g,"")},[_n,sn]),Gn=b.useRef(""),Qn=b.useCallback(function(Kn,kn){if(pr)return pr(Kn,{userTyping:kn,input:String(Gn.current)});var or=typeof Kn=="number"?Xe(Kn):Kn;if(!kn){var br=dr(or,kn);if(pt(or)&&(sn||br>=0)){var $n=sn||".";or=Je(or,$n,br)}}return or},[pr,dr,sn]),cr=b.useState(function(){var Kn=Nn!=null?Nn:dn;return Tn.isInvalidate()&&["string","number"].includes((0,Ze.Z)(Kn))?Number.isNaN(Kn)?"":Kn:Qn(Tn.toString(),!1)}),Er=(0,Ce.Z)(cr,2),Cr=Er[0],wr=Er[1];Gn.current=Cr;function Yn(Kn,kn){wr(Qn(Kn.isInvalidate()?Kn.toString(!1):Kn.toString(!kn),kn))}var yr=b.useMemo(function(){return rt(Bn)},[Bn,ar]),mr=b.useMemo(function(){return rt(Sn)},[Sn,ar]),Vr=b.useMemo(function(){return!yr||!Tn||Tn.isInvalidate()?!1:yr.lessEquals(Tn)},[yr,Tn]),Yr=b.useMemo(function(){return!mr||!Tn||Tn.isInvalidate()?!1:Tn.lessEquals(mr)},[mr,Tn]),_r=lt(Pe.current,Vt),Ur=(0,Ce.Z)(_r,2),oi=Ur[0],Zr=Ur[1],Qr=function(kn){return yr&&!kn.lessEquals(yr)?yr:mr&&!mr.lessEquals(kn)?mr:null},Or=function(kn){return!Qr(kn)},ti=function(kn,or){var br=kn,$n=Or(br)||br.isEmpty();if(!br.isEmpty()&&!or&&(br=Qr(br)||br,$n=!0),!rn&&!Xt&&$n){var Mn=br.toString(),Un=dr(Mn,or);return Un>=0&&(br=nt(Je(Mn,".",Un)),Or(br)||(br=nt(Je(Mn,".",Un,!0)))),br.equals(Tn)||(lr(br),bn==null||bn(br.isEmpty()?null:et(Xn,br)),dn===void 0&&Yn(br,or)),br}return Tn},ci=Ut(),$i=function Kn(kn){if(oi(),Gn.current=kn,wr(kn),!wt.current){var or=Jn(kn),br=nt(or);br.isNaN()||ti(br,!0)}Hn==null||Hn(kn),ci(function(){var $n=kn;_n||($n=kn.replace(/。/g,".")),$n!==kn&&Kn($n)})},vi=function(){wt.current=!0},xi=function(){wt.current=!1,$i(Pe.current.value)},hi=function(kn){$i(kn.target.value)},bi=function(kn){var or;if(!(kn&&Vr||!kn&&Yr)){xt.current=!1;var br=nt(Ft.current?me(gn):gn);kn||(br=br.negate());var $n=(Tn||nt(0)).add(br.toString()),Mn=ti($n,!1);ut==null||ut(et(Xn,Mn),{offset:Ft.current?me(gn):gn,type:kn?"up":"down"}),(or=Pe.current)===null||or===void 0||or.focus()}},Ar=function(kn){var or=nt(Jn(Cr)),br;or.isNaN()?br=ti(Tn,kn):br=ti(or,kn),dn!==void 0?Yn(Tn,!1):br.isNaN()||Yn(br,!1)},Lr=function(){xt.current=!0},sr=function(kn){var or=kn.key,br=kn.shiftKey;xt.current=!0,Ft.current=br,or==="Enter"&&(wt.current||(xt.current=!1),Ar(!1),An==null||An(kn)),pn!==!1&&!wt.current&&["Up","ArrowUp","Down","ArrowDown"].includes(or)&&(bi(or==="Up"||or==="ArrowUp"),kn.preventDefault())},Dn=function(){xt.current=!1,Ft.current=!1};b.useEffect(function(){if(Cn&&Vt){var Kn=function(br){bi(br.deltaY<0),br.preventDefault()},kn=Pe.current;if(kn)return kn.addEventListener("wheel",Kn,{passive:!1}),function(){return kn.removeEventListener("wheel",Kn)}}});var jn=function(){Fe&&Ar(!1),St(!1),xt.current=!1};return(0,yt.o)(function(){Tn.isInvalidate()||Yn(Tn,!1)},[ar,pr]),(0,yt.o)(function(){var Kn=nt(dn);er(Kn);var kn=nt(Jn(Cr));(!Kn.equals(kn)||!xt.current||pr)&&Yn(Kn,xt.current)},[dn]),(0,yt.o)(function(){pr&&Zr()},[Cr]),b.createElement("div",{ref:vt,className:Ee()(Ct,Wt,(0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)({},"".concat(Ct,"-focused"),Vt),"".concat(Ct,"-disabled"),Xt),"".concat(Ct,"-readonly"),rn),"".concat(Ct,"-not-a-number"),Tn.isNaN()),"".concat(Ct,"-out-of-range"),!Tn.isInvalidate()&&!Or(Tn))),style:cn,onFocus:function(){St(!0)},onBlur:jn,onKeyDown:sr,onKeyUp:Dn,onCompositionStart:vi,onCompositionEnd:xi,onBeforeInput:Lr},zn&&b.createElement(Ne,{prefixCls:Ct,upNode:an,downNode:Jt,upDisabled:Vr,downDisabled:Yr,onStep:bi}),b.createElement("div",{className:"".concat(bt,"-wrap")},b.createElement("input",(0,xe.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":Sn,"aria-valuemax":Bn,"aria-valuenow":Tn.isInvalidate()?null:Tn.toString(),step:gn},ze,{ref:(0,ct.sQ)(Pe,st),className:bt,value:Cr,onChange:hi,disabled:Xt,readOnly:rn}))))}),Qe=b.forwardRef(function(Me,st){var Ct=Me.disabled,Wt=Me.style,cn=Me.prefixCls,Sn=cn===void 0?"rc-input-number":cn,Bn=Me.value,Rn=Me.prefix,gn=Me.suffix,Nn=Me.addonBefore,dn=Me.addonAfter,Xt=Me.className,rn=Me.classNames,an=(0,ue.Z)(Me,ge),Jt=b.useRef(null),pn=b.useRef(null),mn=b.useRef(null),Cn=function(zn){mn.current&&(0,Pt.nH)(mn.current,zn)};return b.useImperativeHandle(st,function(){return ot(mn.current,{focus:Cn,nativeElement:Jt.current.nativeElement||pn.current})}),b.createElement(zt.BaseInput,{className:Xt,triggerFocus:Cn,prefixCls:Sn,value:Bn,disabled:Ct,style:Wt,prefix:Rn,suffix:gn,addonAfter:dn,addonBefore:Nn,classNames:rn,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:Jt},b.createElement(_t,(0,xe.Z)({prefixCls:Sn,disabled:Ct,ref:mn,domRef:pn,className:rn==null?void 0:rn.input},an)))}),Bt=Qe,qe=Bt,tn=ee(62487),Tt=ee(82855),ae=ee(48755),ne=ee(60840),te=ee(2171),oe=ee(83397),ce=ee(31756),re=ee(56553),le=ee(24971),ye=ee(70045),ft=ee(36237),Ae=ee(53075),ke=ee(64910),Ve=ee(39082),Ye=ee(63356),mt=ee(56119),we=ee(16931),De=ee(51636),Zt=ee(17835);const Ht=Me=>{var st;const Ct=(st=Me.handleVisible)!==null&&st!==void 0?st:"auto",Wt=Me.controlHeightSM-Me.lineWidth*2;return Object.assign(Object.assign({},(0,ke.T)(Me)),{controlWidth:90,handleWidth:Wt,handleFontSize:Me.fontSize/2,handleVisible:Ct,handleActiveBg:Me.colorFillAlter,handleBg:Me.colorBgContainer,filledHandleBg:new Zt.FastColor(Me.colorFillSecondary).onBackground(Me.colorBgContainer).toHexString(),handleHoverColor:Me.colorPrimary,handleBorderColor:Me.colorBorder,handleOpacity:Ct===!0?1:0,handleVisibleWidth:Ct===!0?Wt:0})},nn=(Me,st)=>{let{componentCls:Ct,borderRadiusSM:Wt,borderRadiusLG:cn}=Me;const Sn=st==="lg"?cn:Wt;return{[`&-${st}`]:{[`${Ct}-handler-wrap`]:{borderStartEndRadius:Sn,borderEndEndRadius:Sn},[`${Ct}-handler-up`]:{borderStartEndRadius:Sn},[`${Ct}-handler-down`]:{borderEndEndRadius:Sn}}}},qt=Me=>{const{componentCls:st,lineWidth:Ct,lineType:Wt,borderRadius:cn,inputFontSizeSM:Sn,inputFontSizeLG:Bn,controlHeightLG:Rn,controlHeightSM:gn,colorError:Nn,paddingInlineSM:dn,paddingBlockSM:Xt,paddingBlockLG:rn,paddingInlineLG:an,colorTextDescription:Jt,motionDurationMid:pn,handleHoverColor:mn,handleOpacity:Cn,paddingInline:Fn,paddingBlock:zn,handleBg:Zn,handleActiveBg:Xn,colorTextDisabled:_n,borderRadiusSM:pr,borderRadiusLG:ar,controlWidth:sn,handleBorderColor:bn,filledHandleBg:Hn,lineHeightLG:An,calc:ut}=Me;return[{[st]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ye.Wf)(Me)),(0,Ae.ik)(Me)),{display:"inline-block",width:sn,margin:0,padding:0,borderRadius:cn}),(0,Ve.qG)(Me,{[`${st}-handler-wrap`]:{background:Zn,[`${st}-handler-down`]:{borderBlockStart:`${(0,ft.unit)(Ct)} ${Wt} ${bn}`}}})),(0,Ve.H8)(Me,{[`${st}-handler-wrap`]:{background:Hn,[`${st}-handler-down`]:{borderBlockStart:`${(0,ft.unit)(Ct)} ${Wt} ${bn}`}},"&:focus-within":{[`${st}-handler-wrap`]:{background:Zn}}})),(0,Ve.vc)(Me,{[`${st}-handler-wrap`]:{background:Zn,[`${st}-handler-down`]:{borderBlockStart:`${(0,ft.unit)(Ct)} ${Wt} ${bn}`}}})),(0,Ve.Mu)(Me)),{"&-rtl":{direction:"rtl",[`${st}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:Bn,lineHeight:An,borderRadius:ar,[`input${st}-input`]:{height:ut(Rn).sub(ut(Ct).mul(2)).equal(),padding:`${(0,ft.unit)(rn)} ${(0,ft.unit)(an)}`}},"&-sm":{padding:0,fontSize:Sn,borderRadius:pr,[`input${st}-input`]:{height:ut(gn).sub(ut(Ct).mul(2)).equal(),padding:`${(0,ft.unit)(Xt)} ${(0,ft.unit)(dn)}`}},"&-out-of-range":{[`${st}-input-wrap`]:{input:{color:Nn}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,Ye.Wf)(Me)),(0,Ae.s7)(Me)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${st}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${st}-group-addon`]:{borderRadius:ar,fontSize:Me.fontSizeLG}},"&-sm":{[`${st}-group-addon`]:{borderRadius:pr}}},(0,Ve.ir)(Me)),(0,Ve.S5)(Me)),{[`&:not(${st}-compact-first-item):not(${st}-compact-last-item)${st}-compact-item`]:{[`${st}, ${st}-group-addon`]:{borderRadius:0}},[`&:not(${st}-compact-last-item)${st}-compact-first-item`]:{[`${st}, ${st}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${st}-compact-first-item)${st}-compact-last-item`]:{[`${st}, ${st}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${st}-input`]:{cursor:"not-allowed"},[st]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ye.Wf)(Me)),{width:"100%",padding:`${(0,ft.unit)(zn)} ${(0,ft.unit)(Fn)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:cn,outline:0,transition:`all ${pn} linear`,appearance:"textfield",fontSize:"inherit"}),(0,Ae.nz)(Me.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${st}-handler-wrap, &-focused ${st}-handler-wrap`]:{width:Me.handleWidth,opacity:1}})},{[st]:Object.assign(Object.assign(Object.assign({[`${st}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:Me.handleVisibleWidth,opacity:Cn,height:"100%",borderStartStartRadius:0,borderStartEndRadius:cn,borderEndEndRadius:cn,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${pn}`,overflow:"hidden",[`${st}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
|
|
|
${st}-handler-up-inner,
|
|
|
${st}-handler-down-inner
|
|
|
`]:{marginInlineEnd:0,fontSize:Me.handleFontSize}}},[`${st}-handler`]:{height:"50%",overflow:"hidden",color:Jt,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${(0,ft.unit)(Ct)} ${Wt} ${bn}`,transition:`all ${pn} linear`,"&:active":{background:Xn},"&:hover":{height:"60%",[`
|
|
|
${st}-handler-up-inner,
|
|
|
${st}-handler-down-inner
|
|
|
`]:{color:mn}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,Ye.Ro)()),{color:Jt,transition:`all ${pn} linear`,userSelect:"none"})},[`${st}-handler-up`]:{borderStartEndRadius:cn},[`${st}-handler-down`]:{borderEndEndRadius:cn}},nn(Me,"lg")),nn(Me,"sm")),{"&-disabled, &-readonly":{[`${st}-handler-wrap`]:{display:"none"},[`${st}-input`]:{color:"inherit"}},[`
|
|
|
${st}-handler-up-disabled,
|
|
|
${st}-handler-down-disabled
|
|
|
`]:{cursor:"not-allowed"},[`
|
|
|
${st}-handler-up-disabled:hover &-handler-up-inner,
|
|
|
${st}-handler-down-disabled:hover &-handler-down-inner
|
|
|
`]:{color:_n}})}]},Et=Me=>{const{componentCls:st,paddingBlock:Ct,paddingInline:Wt,inputAffixPadding:cn,controlWidth:Sn,borderRadiusLG:Bn,borderRadiusSM:Rn,paddingInlineLG:gn,paddingInlineSM:Nn,paddingBlockLG:dn,paddingBlockSM:Xt,motionDurationMid:rn}=Me;return{[`${st}-affix-wrapper`]:Object.assign(Object.assign({[`input${st}-input`]:{padding:`${(0,ft.unit)(Ct)} 0`}},(0,Ae.ik)(Me)),{position:"relative",display:"inline-flex",alignItems:"center",width:Sn,padding:0,paddingInlineStart:Wt,"&-lg":{borderRadius:Bn,paddingInlineStart:gn,[`input${st}-input`]:{padding:`${(0,ft.unit)(dn)} 0`}},"&-sm":{borderRadius:Rn,paddingInlineStart:Nn,[`input${st}-input`]:{padding:`${(0,ft.unit)(Xt)} 0`}},[`&:not(${st}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${st}-disabled`]:{background:"transparent"},[`> div${st}`]:{width:"100%",border:"none",outline:"none",[`&${st}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${st}-handler-wrap`]:{zIndex:2},[st]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:cn},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:Wt,marginInlineStart:cn,transition:`margin ${rn}`}},[`&:hover ${st}-handler-wrap, &-focused ${st}-handler-wrap`]:{width:Me.handleWidth,opacity:1},[`&:not(${st}-affix-wrapper-without-controls):hover ${st}-suffix`]:{marginInlineEnd:Me.calc(Me.handleWidth).add(Wt).equal()}})}};var on=(0,we.I$)("InputNumber",Me=>{const st=(0,De.mergeToken)(Me,(0,ke.e)(Me));return[qt(st),Et(st),(0,mt.c)(st)]},Ht,{unitless:{handleOpacity:!0}}),Kt=function(Me,st){var Ct={};for(var Wt in Me)Object.prototype.hasOwnProperty.call(Me,Wt)&&st.indexOf(Wt)<0&&(Ct[Wt]=Me[Wt]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var cn=0,Wt=Object.getOwnPropertySymbols(Me);cn<Wt.length;cn++)st.indexOf(Wt[cn])<0&&Object.prototype.propertyIsEnumerable.call(Me,Wt[cn])&&(Ct[Wt[cn]]=Me[Wt[cn]]);return Ct};const He=b.forwardRef((Me,st)=>{const{getPrefixCls:Ct,direction:Wt}=b.useContext(ae.E_),cn=b.useRef(null);b.useImperativeHandle(st,()=>cn.current);const{className:Sn,rootClassName:Bn,size:Rn,disabled:gn,prefixCls:Nn,addonBefore:dn,addonAfter:Xt,prefix:rn,suffix:an,bordered:Jt,readOnly:pn,status:mn,controls:Cn,variant:Fn}=Me,zn=Kt(Me,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),Zn=Ct("input-number",Nn),Xn=(0,oe.Z)(Zn),[_n,pr,ar]=on(Zn,Xn),{compactSize:sn,compactItemClassnames:bn}=(0,ye.ri)(Zn,Wt);let Hn=b.createElement(fe.Z,{className:`${Zn}-handler-up-inner`}),An=b.createElement(We.Z,{className:`${Zn}-handler-down-inner`});const ut=typeof Cn=="boolean"?Cn:void 0;typeof Cn=="object"&&(Hn=typeof Cn.upIcon=="undefined"?Hn:b.createElement("span",{className:`${Zn}-handler-up-inner`},Cn.upIcon),An=typeof Cn.downIcon=="undefined"?An:b.createElement("span",{className:`${Zn}-handler-down-inner`},Cn.downIcon));const{hasFeedback:Ot,status:Fe,isFormItemInput:vt,feedbackIcon:ze}=b.useContext(re.aM),bt=(0,Tt.F)(Fe,mn),Pe=(0,ce.Z)(In=>{var Tn;return(Tn=Rn!=null?Rn:sn)!==null&&Tn!==void 0?Tn:In}),It=b.useContext(te.Z),$t=gn!=null?gn:It,[Vt,St]=(0,le.Z)("inputNumber",Fn,Jt),xt=Ot&&b.createElement(b.Fragment,null,ze),wt=Ee()({[`${Zn}-lg`]:Pe==="large",[`${Zn}-sm`]:Pe==="small",[`${Zn}-rtl`]:Wt==="rtl",[`${Zn}-in-form-item`]:vt},pr),Ft=`${Zn}-group`,On=b.createElement(qe,Object.assign({ref:cn,disabled:$t,className:Ee()(ar,Xn,Sn,Bn,bn),upHandler:Hn,downHandler:An,prefixCls:Zn,readOnly:pn,controls:ut,prefix:rn,suffix:xt||an,addonBefore:dn&&b.createElement(tn.Z,{form:!0,space:!0},dn),addonAfter:Xt&&b.createElement(tn.Z,{form:!0,space:!0},Xt),classNames:{input:wt,variant:Ee()({[`${Zn}-${Vt}`]:St},(0,Tt.Z)(Zn,bt,Ot)),affixWrapper:Ee()({[`${Zn}-affix-wrapper-sm`]:Pe==="small",[`${Zn}-affix-wrapper-lg`]:Pe==="large",[`${Zn}-affix-wrapper-rtl`]:Wt==="rtl",[`${Zn}-affix-wrapper-without-controls`]:Cn===!1||$t},pr),wrapper:Ee()({[`${Ft}-rtl`]:Wt==="rtl"},pr),groupWrapper:Ee()({[`${Zn}-group-wrapper-sm`]:Pe==="small",[`${Zn}-group-wrapper-lg`]:Pe==="large",[`${Zn}-group-wrapper-rtl`]:Wt==="rtl",[`${Zn}-group-wrapper-${Vt}`]:St},(0,Tt.Z)(`${Zn}-group-wrapper`,bt,Ot),pr)}},zn));return _n(On)}),ht=He,at=Me=>b.createElement(ne.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},b.createElement(He,Object.assign({},Me)));ht._InternalPanelDoNotUseOrYouWillBeFired=at;var Mt=ht},49397:function(wn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return je}});var b=ee(59301),We=ee(92310),fe=ee.n(We),Ue=ee(36901),Ee=ee(8654),xe=ee(62487),Ie=ee(86013),Ze=ee(82855),Ce=ee(48755),ue=ee(2171),tt=ee(83397),Le=ee(31756),Rt=ee(56553),it=ee(24971),$e=ee(70045),Te=ee(23826),Oe=ee(53075);function Xe(Be){return!!(Be.prefix||Be.suffix||Be.allowClear||Be.showCount)}var pt=function(Be,Je){var nt={};for(var zt in Be)Object.prototype.hasOwnProperty.call(Be,zt)&&Je.indexOf(zt)<0&&(nt[zt]=Be[zt]);if(Be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var yt=0,zt=Object.getOwnPropertySymbols(Be);yt<zt.length;yt++)Je.indexOf(zt[yt])<0&&Object.prototype.propertyIsEnumerable.call(Be,zt[yt])&&(nt[zt[yt]]=Be[zt[yt]]);return nt},je=(0,b.forwardRef)((Be,Je)=>{const{prefixCls:nt,bordered:zt=!0,status:yt,size:ot,disabled:ct,onBlur:Se,onFocus:lt,suffix:Ge,allowClear:de,addonAfter:Dt,addonBefore:Ke,className:gt,style:Yt,styles:Ne,rootClassName:me,onChange:Pt,classNames:Ut,variant:kt}=Be,ge=pt(Be,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:et,direction:rt,allowClear:_t,autoComplete:Qe,className:Bt,style:qe,classNames:tn,styles:Tt}=(0,Ce.dj)("input"),ae=et("input",nt),ne=(0,b.useRef)(null),te=(0,tt.Z)(ae),[oe,ce,re]=(0,Oe.TI)(ae,me),[le]=(0,Oe.ZP)(ae,te),{compactSize:ye,compactItemClassnames:ft}=(0,$e.ri)(ae,rt),Ae=(0,Le.Z)(Mt=>{var Me;return(Me=ot!=null?ot:ye)!==null&&Me!==void 0?Me:Mt}),ke=b.useContext(ue.Z),Ve=ct!=null?ct:ke,{status:Ye,hasFeedback:mt,feedbackIcon:we}=(0,b.useContext)(Rt.aM),De=(0,Ze.F)(Ye,yt),Zt=Xe(Be)||!!mt,Ht=(0,b.useRef)(Zt),nn=(0,Te.Z)(ne,!0),qt=Mt=>{nn(),Se==null||Se(Mt)},Et=Mt=>{nn(),lt==null||lt(Mt)},on=Mt=>{nn(),Pt==null||Pt(Mt)},Kt=(mt||Ge)&&b.createElement(b.Fragment,null,Ge,mt&&we),He=(0,Ie.Z)(de!=null?de:_t),[ht,at]=(0,it.Z)("input",kt,zt);return oe(le(b.createElement(Ue.default,Object.assign({ref:(0,Ee.sQ)(Je,ne),prefixCls:ae,autoComplete:Qe},ge,{disabled:Ve,onBlur:qt,onFocus:Et,style:Object.assign(Object.assign({},qe),Yt),styles:Object.assign(Object.assign({},Tt),Ne),suffix:Kt,allowClear:He,className:fe()(gt,me,re,te,ft,Bt),onChange:on,addonBefore:Ke&&b.createElement(xe.Z,{form:!0,space:!0},Ke),addonAfter:Dt&&b.createElement(xe.Z,{form:!0,space:!0},Dt),classNames:Object.assign(Object.assign(Object.assign({},Ut),tn),{input:fe()({[`${ae}-sm`]:Ae==="small",[`${ae}-lg`]:Ae==="large",[`${ae}-rtl`]:rt==="rtl"},Ut==null?void 0:Ut.input,tn.input,ce),variant:fe()({[`${ae}-${ht}`]:at},(0,Ze.Z)(ae,De)),affixWrapper:fe()({[`${ae}-affix-wrapper-sm`]:Ae==="small",[`${ae}-affix-wrapper-lg`]:Ae==="large",[`${ae}-affix-wrapper-rtl`]:rt==="rtl"},ce),wrapper:fe()({[`${ae}-group-rtl`]:rt==="rtl"},ce),groupWrapper:fe()({[`${ae}-group-wrapper-sm`]:Ae==="small",[`${ae}-group-wrapper-lg`]:Ae==="large",[`${ae}-group-wrapper-rtl`]:rt==="rtl",[`${ae}-group-wrapper-${ht}`]:at},(0,Ze.Z)(`${ae}-group-wrapper`,De,mt),ce)})}))))})},79809:function(wn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Je}});var b=ee(59301),We=ee(92310),fe=ee.n(We),Ue=ee(22711),Ee=ee(86013),xe=ee(82855),Ie=ee(48755),Ze=ee(2171),Ce=ee(83397),ue=ee(31756),tt=ee(56553),Le=ee(24971),Rt=ee(70045),it=ee(30292),$e=ee(53075),Te=ee(16931),Oe=ee(51636),Xe=ee(64910);const pt=nt=>{const{componentCls:zt,paddingLG:yt}=nt,ot=`${zt}-textarea`;return{[`textarea${zt}`]:{maxWidth:"100%",height:"auto",minHeight:nt.controlHeight,lineHeight:nt.lineHeight,verticalAlign:"bottom",transition:`all ${nt.motionDurationSlow}`,resize:"vertical",[`&${zt}-mouse-active`]:{transition:`all ${nt.motionDurationSlow}, height 0s, width 0s`}},[`${zt}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[ot]:{position:"relative","&-show-count":{[`> ${zt}`]:{height:"100%"},[`${zt}-data-count`]:{position:"absolute",bottom:nt.calc(nt.fontSize).mul(nt.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:nt.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
|
|
|
&-allow-clear > ${zt},
|
|
|
&-affix-wrapper${ot}-has-feedback ${zt}
|
|
|
`]:{paddingInlineEnd:yt},[`&-affix-wrapper${zt}-affix-wrapper`]:{padding:0,[`> textarea${zt}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:nt.calc(nt.controlHeight).sub(nt.calc(nt.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${zt}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${zt}-clear-icon`]:{position:"absolute",insetInlineEnd:nt.paddingInline,insetBlockStart:nt.paddingXS},[`${ot}-suffix`]:{position:"absolute",top:0,insetInlineEnd:nt.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${zt}-affix-wrapper-sm`]:{[`${zt}-suffix`]:{[`${zt}-clear-icon`]:{insetInlineEnd:nt.paddingInlineSM}}}}}};var At=(0,Te.I$)(["Input","TextArea"],nt=>{const zt=(0,Oe.mergeToken)(nt,(0,Xe.e)(nt));return[pt(zt)]},Xe.T,{resetFont:!1}),je=function(nt,zt){var yt={};for(var ot in nt)Object.prototype.hasOwnProperty.call(nt,ot)&&zt.indexOf(ot)<0&&(yt[ot]=nt[ot]);if(nt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,ot=Object.getOwnPropertySymbols(nt);ct<ot.length;ct++)zt.indexOf(ot[ct])<0&&Object.prototype.propertyIsEnumerable.call(nt,ot[ct])&&(yt[ot[ct]]=nt[ot[ct]]);return yt},Je=(0,b.forwardRef)((nt,zt)=>{var yt;const{prefixCls:ot,bordered:ct=!0,size:Se,disabled:lt,status:Ge,allowClear:de,classNames:Dt,rootClassName:Ke,className:gt,style:Yt,styles:Ne,variant:me,showCount:Pt,onMouseDown:Ut,onResize:kt}=nt,ge=je(nt,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:et,direction:rt,allowClear:_t,autoComplete:Qe,className:Bt,style:qe,classNames:tn,styles:Tt}=(0,Ie.dj)("textArea"),ae=b.useContext(Ze.Z),ne=lt!=null?lt:ae,{status:te,hasFeedback:oe,feedbackIcon:ce}=b.useContext(tt.aM),re=(0,xe.F)(te,Ge),le=b.useRef(null);b.useImperativeHandle(zt,()=>{var at;return{resizableTextArea:(at=le.current)===null||at===void 0?void 0:at.resizableTextArea,focus:Mt=>{var Me,st;(0,it.nH)((st=(Me=le.current)===null||Me===void 0?void 0:Me.resizableTextArea)===null||st===void 0?void 0:st.textArea,Mt)},blur:()=>{var Mt;return(Mt=le.current)===null||Mt===void 0?void 0:Mt.blur()}}});const ye=et("input",ot),ft=(0,Ce.Z)(ye),[Ae,ke,Ve]=(0,$e.TI)(ye,Ke),[Ye]=At(ye,ft),{compactSize:mt,compactItemClassnames:we}=(0,Rt.ri)(ye,rt),De=(0,ue.Z)(at=>{var Mt;return(Mt=Se!=null?Se:mt)!==null&&Mt!==void 0?Mt:at}),[Zt,Ht]=(0,Le.Z)("textArea",me,ct),nn=(0,Ee.Z)(de!=null?de:_t),[qt,Et]=b.useState(!1),[on,Kt]=b.useState(!1),He=at=>{Et(!0),Ut==null||Ut(at);const Mt=()=>{Et(!1),document.removeEventListener("mouseup",Mt)};document.addEventListener("mouseup",Mt)},ht=at=>{var Mt,Me;if(kt==null||kt(at),qt&&typeof getComputedStyle=="function"){const st=(Me=(Mt=le.current)===null||Mt===void 0?void 0:Mt.nativeElement)===null||Me===void 0?void 0:Me.querySelector("textarea");st&&getComputedStyle(st).resize==="both"&&Kt(!0)}};return Ae(Ye(b.createElement(Ue.default,Object.assign({autoComplete:Qe},ge,{style:Object.assign(Object.assign({},qe),Yt),styles:Object.assign(Object.assign({},Tt),Ne),disabled:ne,allowClear:nn,className:fe()(Ve,ft,gt,Ke,we,Bt,on&&`${ye}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},Dt),tn),{textarea:fe()({[`${ye}-sm`]:De==="small",[`${ye}-lg`]:De==="large"},ke,Dt==null?void 0:Dt.textarea,tn.textarea,qt&&`${ye}-mouse-active`),variant:fe()({[`${ye}-${Zt}`]:Ht},(0,xe.Z)(ye,re)),affixWrapper:fe()(`${ye}-textarea-affix-wrapper`,{[`${ye}-affix-wrapper-rtl`]:rt==="rtl",[`${ye}-affix-wrapper-sm`]:De==="small",[`${ye}-affix-wrapper-lg`]:De==="large",[`${ye}-textarea-show-count`]:Pt||((yt=nt.count)===null||yt===void 0?void 0:yt.show)},ke)}),prefixCls:ye,suffix:oe&&b.createElement("span",{className:`${ye}-textarea-suffix`},ce),showCount:Pt,ref:le,onResize:ht,onMouseDown:He}))))})},23826:function(wn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return We}});var b=ee(59301);function We(fe,Ue){const Ee=(0,b.useRef)([]),xe=()=>{Ee.current.push(setTimeout(()=>{var Ie,Ze,Ce,ue;!((Ie=fe.current)===null||Ie===void 0)&&Ie.input&&((Ze=fe.current)===null||Ze===void 0?void 0:Ze.input.getAttribute("type"))==="password"&&(!((Ce=fe.current)===null||Ce===void 0)&&Ce.input.hasAttribute("value"))&&((ue=fe.current)===null||ue===void 0||ue.input.removeAttribute("value"))}))};return(0,b.useEffect)(()=>(Ue&&xe(),()=>Ee.current.forEach(Ie=>{Ie&&clearTimeout(Ie)})),[]),xe}},37568:function(wn,Qt,ee){"use strict";ee.d(Qt,{default:function(){return tn}});var b=ee(59301),We=ee(92310),fe=ee.n(We),Ue=ee(48755),Ee=ee(56553),xe=ee(53075),Ze=Tt=>{const{getPrefixCls:ae,direction:ne}=(0,b.useContext)(Ue.E_),{prefixCls:te,className:oe}=Tt,ce=ae("input-group",te),re=ae("input"),[le,ye,ft]=(0,xe.ZP)(re),Ae=fe()(ce,ft,{[`${ce}-lg`]:Tt.size==="large",[`${ce}-sm`]:Tt.size==="small",[`${ce}-compact`]:Tt.compact,[`${ce}-rtl`]:ne==="rtl"},ye,oe),ke=(0,b.useContext)(Ee.aM),Ve=(0,b.useMemo)(()=>Object.assign(Object.assign({},ke),{isFormItemInput:!1}),[ke]);return le(b.createElement("span",{className:Ae,style:Tt.style,onMouseEnter:Tt.onMouseEnter,onMouseLeave:Tt.onMouseLeave,onFocus:Tt.onFocus,onBlur:Tt.onBlur},b.createElement(Ee.aM.Provider,{value:Ve},Tt.children)))},Ce=ee(49397),ue=ee(77654),tt=ee(6089),Le=ee(26112),Rt=ee(82855),it=ee(31756),$e=ee(16931),Te=ee(51636),Oe=ee(64910);const Xe=Tt=>{const{componentCls:ae,paddingXS:ne}=Tt;return{[ae]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:ne,"&-rtl":{direction:"rtl"},[`${ae}-input`]:{textAlign:"center",paddingInline:Tt.paddingXXS},[`&${ae}-sm ${ae}-input`]:{paddingInline:Tt.calc(Tt.paddingXXS).div(2).equal()},[`&${ae}-lg ${ae}-input`]:{paddingInline:Tt.paddingXS}}}};var pt=(0,$e.I$)(["Input","OTP"],Tt=>{const ae=(0,Te.mergeToken)(Tt,(0,Oe.e)(Tt));return[Xe(ae)]},Oe.T),At=ee(16089),je=function(Tt,ae){var ne={};for(var te in Tt)Object.prototype.hasOwnProperty.call(Tt,te)&&ae.indexOf(te)<0&&(ne[te]=Tt[te]);if(Tt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,te=Object.getOwnPropertySymbols(Tt);oe<te.length;oe++)ae.indexOf(te[oe])<0&&Object.prototype.propertyIsEnumerable.call(Tt,te[oe])&&(ne[te[oe]]=Tt[te[oe]]);return ne},Je=b.forwardRef((Tt,ae)=>{const{value:ne,onChange:te,onActiveChange:oe,index:ce,mask:re}=Tt,le=je(Tt,["value","onChange","onActiveChange","index","mask"]),ye=ne&&typeof re=="string"?re:ne,ft=mt=>{te(ce,mt.target.value)},Ae=b.useRef(null);b.useImperativeHandle(ae,()=>Ae.current);const ke=()=>{(0,At.Z)(()=>{var mt;const we=(mt=Ae.current)===null||mt===void 0?void 0:mt.input;document.activeElement===we&&we&&we.select()})},Ve=mt=>{const{key:we,ctrlKey:De,metaKey:Zt}=mt;we==="ArrowLeft"?oe(ce-1):we==="ArrowRight"?oe(ce+1):we==="z"&&(De||Zt)&&mt.preventDefault(),ke()},Ye=mt=>{mt.key==="Backspace"&&!ne&&oe(ce-1),ke()};return b.createElement(Ce.Z,Object.assign({type:re===!0?"password":"text"},le,{ref:Ae,value:ye,onInput:ft,onFocus:ke,onKeyDown:Ve,onKeyUp:Ye,onMouseDown:ke,onMouseUp:ke}))}),nt=function(Tt,ae){var ne={};for(var te in Tt)Object.prototype.hasOwnProperty.call(Tt,te)&&ae.indexOf(te)<0&&(ne[te]=Tt[te]);if(Tt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,te=Object.getOwnPropertySymbols(Tt);oe<te.length;oe++)ae.indexOf(te[oe])<0&&Object.prototype.propertyIsEnumerable.call(Tt,te[oe])&&(ne[te[oe]]=Tt[te[oe]]);return ne};function zt(Tt){return(Tt||"").split("")}const yt=Tt=>{const{index:ae,prefixCls:ne,separator:te}=Tt,oe=typeof te=="function"?te(ae):te;return oe?b.createElement("span",{className:`${ne}-separator`},oe):null};var ct=b.forwardRef((Tt,ae)=>{const{prefixCls:ne,length:te=6,size:oe,defaultValue:ce,value:re,onChange:le,formatter:ye,separator:ft,variant:Ae,disabled:ke,status:Ve,autoFocus:Ye,mask:mt,type:we,onInput:De,inputMode:Zt}=Tt,Ht=nt(Tt,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:nn,direction:qt}=b.useContext(Ue.E_),Et=nn("otp",ne),on=(0,Le.Z)(Ht,{aria:!0,data:!0,attr:!0}),[Kt,He,ht]=pt(Et),at=(0,it.Z)(rn=>oe!=null?oe:rn),Mt=b.useContext(Ee.aM),Me=(0,Rt.F)(Mt.status,Ve),st=b.useMemo(()=>Object.assign(Object.assign({},Mt),{status:Me,hasFeedback:!1,feedbackIcon:null}),[Mt,Me]),Ct=b.useRef(null),Wt=b.useRef({});b.useImperativeHandle(ae,()=>({focus:()=>{var rn;(rn=Wt.current[0])===null||rn===void 0||rn.focus()},blur:()=>{var rn;for(let an=0;an<te;an+=1)(rn=Wt.current[an])===null||rn===void 0||rn.blur()},nativeElement:Ct.current}));const cn=rn=>ye?ye(rn):rn,[Sn,Bn]=b.useState(()=>zt(cn(ce||"")));b.useEffect(()=>{re!==void 0&&Bn(zt(re))},[re]);const Rn=(0,tt.Z)(rn=>{Bn(rn),De&&De(rn),le&&rn.length===te&&rn.every(an=>an)&&rn.some((an,Jt)=>Sn[Jt]!==an)&&le(rn.join(""))}),gn=(0,tt.Z)((rn,an)=>{let Jt=(0,ue.Z)(Sn);for(let mn=0;mn<rn;mn+=1)Jt[mn]||(Jt[mn]="");an.length<=1?Jt[rn]=an:Jt=Jt.slice(0,rn).concat(zt(an)),Jt=Jt.slice(0,te);for(let mn=Jt.length-1;mn>=0&&!Jt[mn];mn-=1)Jt.pop();const pn=cn(Jt.map(mn=>mn||" ").join(""));return Jt=zt(pn).map((mn,Cn)=>mn===" "&&!Jt[Cn]?Jt[Cn]:mn),Jt}),Nn=(rn,an)=>{var Jt;const pn=gn(rn,an),mn=Math.min(rn+an.length,te-1);mn!==rn&&pn[rn]!==void 0&&((Jt=Wt.current[mn])===null||Jt===void 0||Jt.focus()),Rn(pn)},dn=rn=>{var an;(an=Wt.current[rn])===null||an===void 0||an.focus()},Xt={variant:Ae,disabled:ke,status:Me,mask:mt,type:we,inputMode:Zt};return Kt(b.createElement("div",Object.assign({},on,{ref:Ct,className:fe()(Et,{[`${Et}-sm`]:at==="small",[`${Et}-lg`]:at==="large",[`${Et}-rtl`]:qt==="rtl"},ht,He)}),b.createElement(Ee.aM.Provider,{value:st},Array.from({length:te}).map((rn,an)=>{const Jt=`otp-${an}`,pn=Sn[an]||"";return b.createElement(b.Fragment,{key:Jt},b.createElement(Je,Object.assign({ref:mn=>{Wt.current[an]=mn},index:an,size:at,htmlSize:1,className:`${Et}-input`,onChange:Nn,value:pn,onActiveChange:dn,autoFocus:an===0&&Ye},Xt)),an<te-1&&b.createElement(yt,{separator:ft,index:an,prefixCls:Et}))}))))}),Se=ee(73331),lt=ee(15277),Ge=ee(2738),de=ee(8654),Dt=ee(2171),Ke=ee(23826),gt=function(Tt,ae){var ne={};for(var te in Tt)Object.prototype.hasOwnProperty.call(Tt,te)&&ae.indexOf(te)<0&&(ne[te]=Tt[te]);if(Tt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,te=Object.getOwnPropertySymbols(Tt);oe<te.length;oe++)ae.indexOf(te[oe])<0&&Object.prototype.propertyIsEnumerable.call(Tt,te[oe])&&(ne[te[oe]]=Tt[te[oe]]);return ne};const Yt=Tt=>Tt?b.createElement(lt.Z,null):b.createElement(Se.Z,null),Ne={click:"onClick",hover:"onMouseOver"};var Pt=b.forwardRef((Tt,ae)=>{const{disabled:ne,action:te="click",visibilityToggle:oe=!0,iconRender:ce=Yt}=Tt,re=b.useContext(Dt.Z),le=ne!=null?ne:re,ye=typeof oe=="object"&&oe.visible!==void 0,[ft,Ae]=(0,b.useState)(()=>ye?oe.visible:!1),ke=(0,b.useRef)(null);b.useEffect(()=>{ye&&Ae(oe.visible)},[ye,oe]);const Ve=(0,Ke.Z)(ke),Ye=()=>{var at;if(le)return;ft&&Ve();const Mt=!ft;Ae(Mt),typeof oe=="object"&&((at=oe.onVisibleChange)===null||at===void 0||at.call(oe,Mt))},mt=at=>{const Mt=Ne[te]||"",Me=ce(ft),st={[Mt]:Ye,className:`${at}-icon`,key:"passwordIcon",onMouseDown:Ct=>{Ct.preventDefault()},onMouseUp:Ct=>{Ct.preventDefault()}};return b.cloneElement(b.isValidElement(Me)?Me:b.createElement("span",null,Me),st)},{className:we,prefixCls:De,inputPrefixCls:Zt,size:Ht}=Tt,nn=gt(Tt,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:qt}=b.useContext(Ue.E_),Et=qt("input",Zt),on=qt("input-password",De),Kt=oe&&mt(on),He=fe()(on,we,{[`${on}-${Ht}`]:!!Ht}),ht=Object.assign(Object.assign({},(0,Ge.Z)(nn,["suffix","iconRender","visibilityToggle"])),{type:ft?"text":"password",className:He,prefixCls:Et,suffix:Kt});return Ht&&(ht.size=Ht),b.createElement(Ce.Z,Object.assign({ref:(0,de.sQ)(ae,ke)},ht))}),Ut=ee(47472),kt=ee(22703),ge=ee(7939),et=ee(70045),rt=function(Tt,ae){var ne={};for(var te in Tt)Object.prototype.hasOwnProperty.call(Tt,te)&&ae.indexOf(te)<0&&(ne[te]=Tt[te]);if(Tt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,te=Object.getOwnPropertySymbols(Tt);oe<te.length;oe++)ae.indexOf(te[oe])<0&&Object.prototype.propertyIsEnumerable.call(Tt,te[oe])&&(ne[te[oe]]=Tt[te[oe]]);return ne},Qe=b.forwardRef((Tt,ae)=>{const{prefixCls:ne,inputPrefixCls:te,className:oe,size:ce,suffix:re,enterButton:le=!1,addonAfter:ye,loading:ft,disabled:Ae,onSearch:ke,onChange:Ve,onCompositionStart:Ye,onCompositionEnd:mt}=Tt,we=rt(Tt,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:De,direction:Zt}=b.useContext(Ue.E_),Ht=b.useRef(!1),nn=De("input-search",ne),qt=De("input",te),{compactSize:Et}=(0,et.ri)(nn,Zt),on=(0,it.Z)(Nn=>{var dn;return(dn=ce!=null?ce:Et)!==null&&dn!==void 0?dn:Nn}),Kt=b.useRef(null),He=Nn=>{Nn!=null&&Nn.target&&Nn.type==="click"&&ke&&ke(Nn.target.value,Nn,{source:"clear"}),Ve==null||Ve(Nn)},ht=Nn=>{var dn;document.activeElement===((dn=Kt.current)===null||dn===void 0?void 0:dn.input)&&Nn.preventDefault()},at=Nn=>{var dn,Xt;ke&&ke((Xt=(dn=Kt.current)===null||dn===void 0?void 0:dn.input)===null||Xt===void 0?void 0:Xt.value,Nn,{source:"input"})},Mt=Nn=>{Ht.current||ft||at(Nn)},Me=typeof le=="boolean"?b.createElement(Ut.Z,null):null,st=`${nn}-button`;let Ct;const Wt=le||{},cn=Wt.type&&Wt.type.__ANT_BUTTON===!0;cn||Wt.type==="button"?Ct=(0,kt.Tm)(Wt,Object.assign({onMouseDown:ht,onClick:Nn=>{var dn,Xt;(Xt=(dn=Wt==null?void 0:Wt.props)===null||dn===void 0?void 0:dn.onClick)===null||Xt===void 0||Xt.call(dn,Nn),at(Nn)},key:"enterButton"},cn?{className:st,size:on}:{})):Ct=b.createElement(ge.ZP,{className:st,type:le?"primary":void 0,size:on,disabled:Ae,key:"enterButton",onMouseDown:ht,onClick:at,loading:ft,icon:Me},le),ye&&(Ct=[Ct,(0,kt.Tm)(ye,{key:"addonAfter"})]);const Sn=fe()(nn,{[`${nn}-rtl`]:Zt==="rtl",[`${nn}-${on}`]:!!on,[`${nn}-with-button`]:!!le},oe),Bn=Object.assign(Object.assign({},we),{className:Sn,prefixCls:qt,type:"search"}),Rn=Nn=>{Ht.current=!0,Ye==null||Ye(Nn)},gn=Nn=>{Ht.current=!1,mt==null||mt(Nn)};return b.createElement(Ce.Z,Object.assign({ref:(0,de.sQ)(Kt,ae),onPressEnter:Mt},Bn,{size:on,onCompositionStart:Rn,onCompositionEnd:gn,addonAfter:Ct,suffix:re,onChange:He,disabled:Ae}))}),Bt=ee(79809);const qe=Ce.Z;qe.Group=Ze,qe.Search=Qe,qe.TextArea=Bt.Z,qe.Password=Pt,qe.OTP=ct;var tn=qe},24303:function(wn,Qt,ee){"use strict";ee.d(Qt,{D:function(){return nt},Z:function(){return ot}});var b=ee(59301),We=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"},Ue=fe,Ee=ee(7657),xe=function(Se,lt){return b.createElement(Ee.Z,(0,We.Z)({},Se,{ref:lt,icon:Ue}))},Ie=b.forwardRef(xe),Ze=Ie,Ce=ee(33853),ue=ee(38819),tt=ee(92310),Le=ee.n(tt),Rt=ee(2738),it=ee(48755),$e=ee(6989),Te=ee(36237),Oe=ee(48923),Xe=ee(16931);const pt=ct=>{const{componentCls:Se,siderBg:lt,motionDurationMid:Ge,motionDurationSlow:de,antCls:Dt,triggerHeight:Ke,triggerColor:gt,triggerBg:Yt,headerHeight:Ne,zeroTriggerWidth:me,zeroTriggerHeight:Pt,borderRadiusLG:Ut,lightSiderBg:kt,lightTriggerColor:ge,lightTriggerBg:et,bodyBg:rt}=ct;return{[Se]:{position:"relative",minWidth:0,background:lt,transition:`all ${Ge}, background 0s`,"&-has-trigger":{paddingBottom:Ke},"&-right":{order:1},[`${Se}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${Dt}-menu${Dt}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${Se}-children`]:{overflow:"hidden"},[`${Se}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:Ke,color:gt,lineHeight:(0,Te.unit)(Ke),textAlign:"center",background:Yt,cursor:"pointer",transition:`all ${Ge}`},[`${Se}-zero-width-trigger`]:{position:"absolute",top:Ne,insetInlineEnd:ct.calc(me).mul(-1).equal(),zIndex:1,width:me,height:Pt,color:gt,fontSize:ct.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:lt,borderRadius:`0 ${(0,Te.unit)(Ut)} ${(0,Te.unit)(Ut)} 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:ct.calc(me).mul(-1).equal(),borderRadius:`${(0,Te.unit)(Ut)} 0 0 ${(0,Te.unit)(Ut)}`}},"&-light":{background:kt,[`${Se}-trigger`]:{color:ge,background:et},[`${Se}-zero-width-trigger`]:{color:ge,background:et,border:`1px solid ${rt}`,borderInlineStart:0}}}}};var At=(0,Xe.I$)(["Layout","Sider"],ct=>[pt(ct)],Oe.eh,{deprecatedTokens:Oe.jn}),je=function(ct,Se){var lt={};for(var Ge in ct)Object.prototype.hasOwnProperty.call(ct,Ge)&&Se.indexOf(Ge)<0&&(lt[Ge]=ct[Ge]);if(ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var de=0,Ge=Object.getOwnPropertySymbols(ct);de<Ge.length;de++)Se.indexOf(Ge[de])<0&&Object.prototype.propertyIsEnumerable.call(ct,Ge[de])&&(lt[Ge[de]]=ct[Ge[de]]);return lt};const Be={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},Je=ct=>!Number.isNaN(Number.parseFloat(ct))&&isFinite(ct),nt=b.createContext({}),zt=(()=>{let ct=0;return function(){let Se=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return ct+=1,`${Se}${ct}`}})();var ot=b.forwardRef((ct,Se)=>{const{prefixCls:lt,className:Ge,trigger:de,children:Dt,defaultCollapsed:Ke=!1,theme:gt="dark",style:Yt={},collapsible:Ne=!1,reverseArrow:me=!1,width:Pt=200,collapsedWidth:Ut=80,zeroWidthTriggerStyle:kt,breakpoint:ge,onCollapse:et,onBreakpoint:rt}=ct,_t=je(ct,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Qe}=(0,b.useContext)($e.V),[Bt,qe]=(0,b.useState)("collapsed"in ct?ct.collapsed:Ke),[tn,Tt]=(0,b.useState)(!1);(0,b.useEffect)(()=>{"collapsed"in ct&&qe(ct.collapsed)},[ct.collapsed]);const ae=(on,Kt)=>{"collapsed"in ct||qe(on),et==null||et(on,Kt)},{getPrefixCls:ne,direction:te}=(0,b.useContext)(it.E_),oe=ne("layout-sider",lt),[ce,re,le]=At(oe),ye=(0,b.useRef)(null);ye.current=on=>{Tt(on.matches),rt==null||rt(on.matches),Bt!==on.matches&&ae(on.matches,"responsive")},(0,b.useEffect)(()=>{function on(He){return ye.current(He)}let Kt;if(typeof window!="undefined"){const{matchMedia:He}=window;if(He&&ge&&ge in Be){Kt=He(`screen and (max-width: ${Be[ge]})`);try{Kt.addEventListener("change",on)}catch(ht){Kt.addListener(on)}on(Kt)}}return()=>{try{Kt==null||Kt.removeEventListener("change",on)}catch(He){Kt==null||Kt.removeListener(on)}}},[ge]),(0,b.useEffect)(()=>{const on=zt("ant-sider-");return Qe.addSider(on),()=>Qe.removeSider(on)},[]);const ft=()=>{ae(!Bt,"clickTrigger")},Ae=(0,Rt.Z)(_t,["collapsed"]),ke=Bt?Ut:Pt,Ve=Je(ke)?`${ke}px`:String(ke),Ye=parseFloat(String(Ut||0))===0?b.createElement("span",{onClick:ft,className:Le()(`${oe}-zero-width-trigger`,`${oe}-zero-width-trigger-${me?"right":"left"}`),style:kt},de||b.createElement(Ze,null)):null,mt=te==="rtl"==!me,Zt={expanded:mt?b.createElement(ue.Z,null):b.createElement(Ce.Z,null),collapsed:mt?b.createElement(Ce.Z,null):b.createElement(ue.Z,null)}[Bt?"collapsed":"expanded"],Ht=de!==null?Ye||b.createElement("div",{className:`${oe}-trigger`,onClick:ft,style:{width:Ve}},de||Zt):null,nn=Object.assign(Object.assign({},Yt),{flex:`0 0 ${Ve}`,maxWidth:Ve,minWidth:Ve,width:Ve}),qt=Le()(oe,`${oe}-${gt}`,{[`${oe}-collapsed`]:!!Bt,[`${oe}-has-trigger`]:Ne&&de!==null&&!Ye,[`${oe}-below`]:!!tn,[`${oe}-zero-width`]:parseFloat(Ve)===0},Ge,re,le),Et=b.useMemo(()=>({siderCollapsed:Bt}),[Bt]);return ce(b.createElement(nt.Provider,{value:Et},b.createElement("aside",Object.assign({className:qt},Ae,{style:nn,ref:Se}),b.createElement("div",{className:`${oe}-children`},Dt),Ne||tn&&Ye?Ht:null)))})},6989:function(wn,Qt,ee){"use strict";ee.d(Qt,{V:function(){return We}});var b=ee(59301);const We=b.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}})},48923:function(wn,Qt,ee){"use strict";ee.d(Qt,{eh:function(){return Ue},jn:function(){return Ee}});var b=ee(36237),We=ee(16931);const fe=xe=>{const{antCls:Ie,componentCls:Ze,colorText:Ce,footerBg:ue,headerHeight:tt,headerPadding:Le,headerColor:Rt,footerPadding:it,fontSize:$e,bodyBg:Te,headerBg:Oe}=xe;return{[Ze]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Te,"&, *":{boxSizing:"border-box"},[`&${Ze}-has-sider`]:{flexDirection:"row",[`> ${Ze}, > ${Ze}-content`]:{width:0}},[`${Ze}-header, &${Ze}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${Ze}-header`]:{height:tt,padding:Le,color:Rt,lineHeight:(0,b.unit)(tt),background:Oe,[`${Ie}-menu`]:{lineHeight:"inherit"}},[`${Ze}-footer`]:{padding:it,color:Ce,fontSize:$e,background:ue},[`${Ze}-content`]:{flex:"auto",color:Ce,minHeight:0}}},Ue=xe=>{const{colorBgLayout:Ie,controlHeight:Ze,controlHeightLG:Ce,colorText:ue,controlHeightSM:tt,marginXXS:Le,colorTextLightSolid:Rt,colorBgContainer:it}=xe,$e=Ce*1.25;return{colorBgHeader:"#001529",colorBgBody:Ie,colorBgTrigger:"#002140",bodyBg:Ie,headerBg:"#001529",headerHeight:Ze*2,headerPadding:`0 ${$e}px`,headerColor:ue,footerPadding:`${tt}px ${$e}px`,footerBg:Ie,siderBg:"#001529",triggerHeight:Ce+Le*2,triggerBg:"#002140",triggerColor:Rt,zeroTriggerWidth:Ce,zeroTriggerHeight:Ce,lightSiderBg:it,lightTriggerBg:it,lightTriggerColor:ue}},Ee=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];Qt.ZP=(0,We.I$)("Layout",xe=>[fe(xe)],Ue,{deprecatedTokens:Ee})},78857:function(wn,Qt,ee){"use strict";ee.d(Qt,{J:function(){return xe}});var b=ee(59301),We=ee(8654),fe=ee(62487),Ue=function(Ie,Ze){var Ce={};for(var ue in Ie)Object.prototype.hasOwnProperty.call(Ie,ue)&&Ze.indexOf(ue)<0&&(Ce[ue]=Ie[ue]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tt=0,ue=Object.getOwnPropertySymbols(Ie);tt<ue.length;tt++)Ze.indexOf(ue[tt])<0&&Object.prototype.propertyIsEnumerable.call(Ie,ue[tt])&&(Ce[ue[tt]]=Ie[ue[tt]]);return Ce};const Ee=b.createContext(null),xe=b.forwardRef((Ie,Ze)=>{const{children:Ce}=Ie,ue=Ue(Ie,["children"]),tt=b.useContext(Ee),Le=b.useMemo(()=>Object.assign(Object.assign({},tt),ue),[tt,ue.prefixCls,ue.mode,ue.selectable,ue.rootClassName]),Rt=(0,We.t4)(Ce),it=(0,We.x1)(Ze,Rt?(0,We.C4)(Ce):null);return b.createElement(Ee.Provider,{value:Le},b.createElement(fe.Z,{space:!0},Rt?b.cloneElement(Ce,{ref:it}):Ce))});Qt.Z=Ee},93041:function(wn,Qt,ee){"use strict";ee.d(Qt,{default:function(){return ce}});var b=ee(59301),We=ee(28321),fe=ee(24303),Ue=ee(18785),Ee=ee(92310),xe=ee.n(Ee),Ie=ee(6089),Ze=ee(2738),Ce=ee(86641),ue=ee(22703),tt=ee(48755),Le=ee(83397),it=(0,b.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),$e=function(re,le){var ye={};for(var ft in re)Object.prototype.hasOwnProperty.call(re,ft)&&le.indexOf(ft)<0&&(ye[ft]=re[ft]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,ft=Object.getOwnPropertySymbols(re);Ae<ft.length;Ae++)le.indexOf(ft[Ae])<0&&Object.prototype.propertyIsEnumerable.call(re,ft[Ae])&&(ye[ft[Ae]]=re[ft[Ae]]);return ye},Oe=re=>{const{prefixCls:le,className:ye,dashed:ft}=re,Ae=$e(re,["prefixCls","className","dashed"]),{getPrefixCls:ke}=b.useContext(tt.E_),Ve=ke("menu",le),Ye=xe()({[`${Ve}-item-divider-dashed`]:!!ft},ye);return b.createElement(We.iz,Object.assign({className:Ye},Ae))},Xe=ee(11592),pt=ee(25399),je=re=>{var le;const{className:ye,children:ft,icon:Ae,title:ke,danger:Ve,extra:Ye}=re,{prefixCls:mt,firstLevel:we,direction:De,disableMenuItemTitleTooltip:Zt,inlineCollapsed:Ht}=b.useContext(it),nn=ht=>{const at=ft==null?void 0:ft[0],Mt=b.createElement("span",{className:xe()(`${mt}-title-content`,{[`${mt}-title-content-with-extra`]:!!Ye||Ye===0})},ft);return(!Ae||b.isValidElement(ft)&&ft.type==="span")&&ft&&ht&&we&&typeof at=="string"?b.createElement("div",{className:`${mt}-inline-collapsed-noicon`},at.charAt(0)):Mt},{siderCollapsed:qt}=b.useContext(fe.D);let Et=ke;typeof ke=="undefined"?Et=we?ft:"":ke===!1&&(Et="");const on={title:Et};!qt&&!Ht&&(on.title=null,on.open=!1);const Kt=(0,Xe.Z)(ft).length;let He=b.createElement(We.ck,Object.assign({},(0,Ze.Z)(re,["title","icon","danger"]),{className:xe()({[`${mt}-item-danger`]:Ve,[`${mt}-item-only-child`]:(Ae?Kt+1:Kt)===1},ye),title:typeof ke=="string"?ke:void 0}),(0,ue.Tm)(Ae,{className:xe()(b.isValidElement(Ae)?(le=Ae.props)===null||le===void 0?void 0:le.className:"",`${mt}-item-icon`)}),nn(Ht));return Zt||(He=b.createElement(pt.Z,Object.assign({},on,{placement:De==="rtl"?"left":"right",classNames:{root:`${mt}-inline-collapsed-tooltip`}}),He)),He},Be=ee(78857),Je=ee(36237),nt=ee(17835),zt=ee(63356),yt=ee(34961),ot=ee(46e3),ct=ee(34925),Se=ee(16931),lt=ee(51636),de=re=>{const{componentCls:le,motionDurationSlow:ye,horizontalLineHeight:ft,colorSplit:Ae,lineWidth:ke,lineType:Ve,itemPaddingInline:Ye}=re;return{[`${le}-horizontal`]:{lineHeight:ft,border:0,borderBottom:`${(0,Je.unit)(ke)} ${Ve} ${Ae}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${le}-item, ${le}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Ye},[`> ${le}-item:hover,
|
|
|
> ${le}-item-active,
|
|
|
> ${le}-submenu ${le}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${le}-item, ${le}-submenu-title`]:{transition:[`border-color ${ye}`,`background ${ye}`].join(",")},[`${le}-submenu-arrow`]:{display:"none"}}}},Ke=re=>{let{componentCls:le,menuArrowOffset:ye,calc:ft}=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,Je.unit)(ft(ye).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${(0,Je.unit)(ye)})`}}}}};const gt=re=>Object.assign({},(0,zt.oN)(re));var Ne=(re,le)=>{const{componentCls:ye,itemColor:ft,itemSelectedColor:Ae,subMenuItemSelectedColor:ke,groupTitleColor:Ve,itemBg:Ye,subMenuItemBg:mt,itemSelectedBg:we,activeBarHeight:De,activeBarWidth:Zt,activeBarBorderWidth:Ht,motionDurationSlow:nn,motionEaseInOut:qt,motionEaseOut:Et,itemPaddingInline:on,motionDurationMid:Kt,itemHoverColor:He,lineType:ht,colorSplit:at,itemDisabledColor:Mt,dangerItemColor:Me,dangerItemHoverColor:st,dangerItemSelectedColor:Ct,dangerItemActiveBg:Wt,dangerItemSelectedBg:cn,popupBg:Sn,itemHoverBg:Bn,itemActiveBg:Rn,menuSubMenuBg:gn,horizontalItemSelectedColor:Nn,horizontalItemSelectedBg:dn,horizontalItemBorderRadius:Xt,horizontalItemHoverBg:rn}=re;return{[`${ye}-${le}, ${ye}-${le} > ${ye}`]:{color:ft,background:Ye,[`&${ye}-root:focus-visible`]:Object.assign({},gt(re)),[`${ye}-item`]:{"&-group-title, &-extra":{color:Ve}},[`${ye}-submenu-selected > ${ye}-submenu-title`]:{color:ke},[`${ye}-item, ${ye}-submenu-title`]:{color:ft,[`&:not(${ye}-item-disabled):focus-visible`]:Object.assign({},gt(re))},[`${ye}-item-disabled, ${ye}-submenu-disabled`]:{color:`${Mt} !important`},[`${ye}-item:not(${ye}-item-selected):not(${ye}-submenu-selected)`]:{[`&:hover, > ${ye}-submenu-title:hover`]:{color:He}},[`&:not(${ye}-horizontal)`]:{[`${ye}-item:not(${ye}-item-selected)`]:{"&:hover":{backgroundColor:Bn},"&:active":{backgroundColor:Rn}},[`${ye}-submenu-title`]:{"&:hover":{backgroundColor:Bn},"&:active":{backgroundColor:Rn}}},[`${ye}-item-danger`]:{color:Me,[`&${ye}-item:hover`]:{[`&:not(${ye}-item-selected):not(${ye}-submenu-selected)`]:{color:st}},[`&${ye}-item:active`]:{background:Wt}},[`${ye}-item a`]:{"&, &:hover":{color:"inherit"}},[`${ye}-item-selected`]:{color:Ae,[`&${ye}-item-danger`]:{color:Ct},"a, a:hover":{color:"inherit"}},[`& ${ye}-item-selected`]:{backgroundColor:we,[`&${ye}-item-danger`]:{backgroundColor:cn}},[`&${ye}-submenu > ${ye}`]:{backgroundColor:gn},[`&${ye}-popup > ${ye}`]:{backgroundColor:Sn},[`&${ye}-submenu-popup > ${ye}`]:{backgroundColor:Sn},[`&${ye}-horizontal`]:Object.assign(Object.assign({},le==="dark"?{borderBottom:0}:{}),{[`> ${ye}-item, > ${ye}-submenu`]:{top:Ht,marginTop:re.calc(Ht).mul(-1).equal(),marginBottom:0,borderRadius:Xt,"&::after":{position:"absolute",insetInline:on,bottom:0,borderBottom:`${(0,Je.unit)(De)} solid transparent`,transition:`border-color ${nn} ${qt}`,content:'""'},"&:hover, &-active, &-open":{background:rn,"&::after":{borderBottomWidth:De,borderBottomColor:Nn}},"&-selected":{color:Nn,backgroundColor:dn,"&:hover":{backgroundColor:dn},"&::after":{borderBottomWidth:De,borderBottomColor:Nn}}}}),[`&${ye}-root`]:{[`&${ye}-inline, &${ye}-vertical`]:{borderInlineEnd:`${(0,Je.unit)(Ht)} ${ht} ${at}`}},[`&${ye}-inline`]:{[`${ye}-sub${ye}-inline`]:{background:mt},[`${ye}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${(0,Je.unit)(Zt)} solid ${Ae}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Kt} ${Et}`,`opacity ${Kt} ${Et}`].join(","),content:'""'},[`&${ye}-item-danger`]:{"&::after":{borderInlineEndColor:Ct}}},[`${ye}-selected, ${ye}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Kt} ${qt}`,`opacity ${Kt} ${qt}`].join(",")}}}}}};const me=re=>{const{componentCls:le,itemHeight:ye,itemMarginInline:ft,padding:Ae,menuArrowSize:ke,marginXS:Ve,itemMarginBlock:Ye,itemWidth:mt,itemPaddingInline:we}=re,De=re.calc(ke).add(Ae).add(Ve).equal();return{[`${le}-item`]:{position:"relative",overflow:"hidden"},[`${le}-item, ${le}-submenu-title`]:{height:ye,lineHeight:(0,Je.unit)(ye),paddingInline:we,overflow:"hidden",textOverflow:"ellipsis",marginInline:ft,marginBlock:Ye,width:mt},[`> ${le}-item,
|
|
|
> ${le}-submenu > ${le}-submenu-title`]:{height:ye,lineHeight:(0,Je.unit)(ye)},[`${le}-item-group-list ${le}-submenu-title,
|
|
|
${le}-submenu-title`]:{paddingInlineEnd:De}}};var Ut=re=>{const{componentCls:le,iconCls:ye,itemHeight:ft,colorTextLightSolid:Ae,dropdownWidth:ke,controlHeightLG:Ve,motionEaseOut:Ye,paddingXL:mt,itemMarginInline:we,fontSizeLG:De,motionDurationFast:Zt,motionDurationSlow:Ht,paddingXS:nn,boxShadowSecondary:qt,collapsedWidth:Et,collapsedIconSize:on}=re,Kt={height:ft,lineHeight:(0,Je.unit)(ft),listStylePosition:"inside",listStyleType:"disc"};return[{[le]:{"&-inline, &-vertical":Object.assign({[`&${le}-root`]:{boxShadow:"none"}},me(re))},[`${le}-submenu-popup`]:{[`${le}-vertical`]:Object.assign(Object.assign({},me(re)),{boxShadow:qt})}},{[`${le}-submenu-popup ${le}-vertical${le}-sub`]:{minWidth:ke,maxHeight:`calc(100vh - ${(0,Je.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 ${Ht}`,`background ${Ht}`,`padding ${Zt} ${Ye}`].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`]:Kt,[`& ${le}-item-group-title`]:{paddingInlineStart:mt}},[`${le}-item`]:Kt}},{[`${le}-inline-collapsed`]:{width:Et,[`&${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,Je.unit)(re.calc(on).div(2).equal())} - ${(0,Je.unit)(we)})`,textOverflow:"clip",[`
|
|
|
${le}-submenu-arrow,
|
|
|
${le}-submenu-expand-icon
|
|
|
`]:{opacity:0},[`${le}-item-icon, ${ye}`]:{margin:0,fontSize:on,lineHeight:(0,Je.unit)(ft),"+ span":{display:"inline-block",opacity:0}}},[`${le}-item-icon, ${ye}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${le}-item-icon, ${ye}`]:{display:"none"},"a, a:hover":{color:Ae}},[`${le}-item-group-title`]:Object.assign(Object.assign({},zt.vS),{paddingInline:nn})}}]};const kt=re=>{const{componentCls:le,motionDurationSlow:ye,motionDurationMid:ft,motionEaseInOut:Ae,motionEaseOut:ke,iconCls:Ve,iconSize:Ye,iconMarginInlineEnd:mt}=re;return{[`${le}-item, ${le}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${ye}`,`background ${ye}`,`padding calc(${ye} + 0.1s) ${Ae}`].join(","),[`${le}-item-icon, ${Ve}`]:{minWidth:Ye,fontSize:Ye,transition:[`font-size ${ft} ${ke}`,`margin ${ye} ${Ae}`,`color ${ye}`].join(","),"+ span":{marginInlineStart:mt,opacity:1,transition:[`opacity ${ye} ${Ae}`,`margin ${ye}`,`color ${ye}`].join(",")}},[`${le}-item-icon`]:Object.assign({},(0,zt.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:ye,motionEaseInOut:ft,borderRadius:Ae,menuArrowSize:ke,menuArrowOffset:Ve}=re;return{[`${le}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:re.margin,width:ke,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${ye} ${ft}, opacity ${ye}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:re.calc(ke).mul(.6).equal(),height:re.calc(ke).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:Ae,transition:[`background ${ye} ${ft}`,`transform ${ye} ${ft}`,`top ${ye} ${ft}`,`color ${ye} ${ft}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${(0,Je.unit)(re.calc(Ve).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${(0,Je.unit)(Ve)})`}}}}},et=re=>{const{antCls:le,componentCls:ye,fontSize:ft,motionDurationSlow:Ae,motionDurationMid:ke,motionEaseInOut:Ve,paddingXS:Ye,padding:mt,colorSplit:we,lineWidth:De,zIndexPopup:Zt,borderRadiusLG:Ht,subMenuItemBorderRadius:nn,menuArrowSize:qt,menuArrowOffset:Et,lineType:on,groupTitleLineHeight:Kt,groupTitleFontSize:He}=re;return[{"":{[ye]:Object.assign(Object.assign({},(0,zt.dF)()),{"&-hidden":{display:"none"}})},[`${ye}-submenu-hidden`]:{display:"none"}},{[ye]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,zt.Wf)(re)),(0,zt.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:ft,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Ae} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${ye}-item`]:{flex:"none"}},[`${ye}-item, ${ye}-submenu, ${ye}-submenu-title`]:{borderRadius:re.itemBorderRadius},[`${ye}-item-group-title`]:{padding:`${(0,Je.unit)(Ye)} ${(0,Je.unit)(mt)}`,fontSize:He,lineHeight:Kt,transition:`all ${Ae}`},[`&-horizontal ${ye}-submenu`]:{transition:[`border-color ${Ae} ${Ve}`,`background ${Ae} ${Ve}`].join(",")},[`${ye}-submenu, ${ye}-submenu-inline`]:{transition:[`border-color ${Ae} ${Ve}`,`background ${Ae} ${Ve}`,`padding ${ke} ${Ve}`].join(",")},[`${ye}-submenu ${ye}-sub`]:{cursor:"initial",transition:[`background ${Ae} ${Ve}`,`padding ${Ae} ${Ve}`].join(",")},[`${ye}-title-content`]:{transition:`color ${Ae}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${le}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${ye}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:re.padding}},[`${ye}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${ye}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:we,borderStyle:on,borderWidth:0,borderTopWidth:De,marginBlock:De,padding:0,"&-dashed":{borderStyle:"dashed"}}}),kt(re)),{[`${ye}-item-group`]:{[`${ye}-item-group-list`]:{margin:0,padding:0,[`${ye}-item, ${ye}-submenu-title`]:{paddingInline:`${(0,Je.unit)(re.calc(ft).mul(2).equal())} ${(0,Je.unit)(mt)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Zt,borderRadius:Ht,boxShadow:"none",transformOrigin:"0 0",[`&${ye}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${ye}`]:Object.assign(Object.assign(Object.assign({borderRadius:Ht},kt(re)),ge(re)),{[`${ye}-item, ${ye}-submenu > ${ye}-submenu-title`]:{borderRadius:nn},[`${ye}-submenu-title::after`]:{transition:`transform ${Ae} ${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 ${ye}-submenu-arrow,
|
|
|
&-inline ${ye}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${(0,Je.unit)(Et)})`},"&::after":{transform:`rotate(45deg) translateX(${(0,Je.unit)(re.calc(Et).mul(-1).equal())})`}},[`${ye}-submenu-open${ye}-submenu-inline > ${ye}-submenu-title > ${ye}-submenu-arrow`]:{transform:`translateY(${(0,Je.unit)(re.calc(qt).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${(0,Je.unit)(re.calc(Et).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${(0,Je.unit)(Et)})`}}})},{[`${le}-layout-header`]:{[ye]:{lineHeight:"inherit"}}}]},rt=re=>{var le,ye,ft;const{colorPrimary:Ae,colorError:ke,colorTextDisabled:Ve,colorErrorBg:Ye,colorText:mt,colorTextDescription:we,colorBgContainer:De,colorFillAlter:Zt,colorFillContent:Ht,lineWidth:nn,lineWidthBold:qt,controlItemBgActive:Et,colorBgTextHover:on,controlHeightLG:Kt,lineHeight:He,colorBgElevated:ht,marginXXS:at,padding:Mt,fontSize:Me,controlHeightSM:st,fontSizeLG:Ct,colorTextLightSolid:Wt,colorErrorHover:cn}=re,Sn=(le=re.activeBarWidth)!==null&&le!==void 0?le:0,Bn=(ye=re.activeBarBorderWidth)!==null&&ye!==void 0?ye:nn,Rn=(ft=re.itemMarginInline)!==null&&ft!==void 0?ft:re.marginXXS,gn=new nt.FastColor(Wt).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:re.zIndexPopupBase+50,radiusItem:re.borderRadiusLG,itemBorderRadius:re.borderRadiusLG,radiusSubMenuItem:re.borderRadiusSM,subMenuItemBorderRadius:re.borderRadiusSM,colorItemText:mt,itemColor:mt,colorItemTextHover:mt,itemHoverColor:mt,colorItemTextHoverHorizontal:Ae,horizontalItemHoverColor:Ae,colorGroupTitle:we,groupTitleColor:we,colorItemTextSelected:Ae,itemSelectedColor:Ae,subMenuItemSelectedColor:Ae,colorItemTextSelectedHorizontal:Ae,horizontalItemSelectedColor:Ae,colorItemBg:De,itemBg:De,colorItemBgHover:on,itemHoverBg:on,colorItemBgActive:Ht,itemActiveBg:Et,colorSubItemBg:Zt,subMenuItemBg:Zt,colorItemBgSelected:Et,itemSelectedBg:Et,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:Sn,colorActiveBarHeight:qt,activeBarHeight:qt,colorActiveBarBorderSize:nn,activeBarBorderWidth:Bn,colorItemTextDisabled:Ve,itemDisabledColor:Ve,colorDangerItemText:ke,dangerItemColor:ke,colorDangerItemTextHover:ke,dangerItemHoverColor:ke,colorDangerItemTextSelected:ke,dangerItemSelectedColor:ke,colorDangerItemBgActive:Ye,dangerItemActiveBg:Ye,colorDangerItemBgSelected:Ye,dangerItemSelectedBg:Ye,itemMarginInline:Rn,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Kt,groupTitleLineHeight:He,collapsedWidth:Kt*2,popupBg:ht,itemMarginBlock:at,itemPaddingInline:Mt,horizontalLineHeight:`${Kt*1.15}px`,iconSize:Me,iconMarginInlineEnd:st-Me,collapsedIconSize:Ct,groupTitleFontSize:Me,darkItemDisabledColor:new nt.FastColor(Wt).setA(.25).toRgbString(),darkItemColor:gn,darkDangerItemColor:ke,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Wt,darkItemSelectedBg:Ae,darkDangerItemSelectedBg:ke,darkItemHoverBg:"transparent",darkGroupTitleColor:gn,darkItemHoverColor:Wt,darkDangerItemHoverColor:cn,darkDangerItemSelectedColor:Wt,darkDangerItemActiveBg:ke,itemWidth:Sn?`calc(100% + ${Bn}px)`:`calc(100% - ${Rn*2}px)`}};var _t=function(re){let le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:re,ye=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return(0,Se.I$)("Menu",Ae=>{const{colorBgElevated:ke,controlHeightLG:Ve,fontSize:Ye,darkItemColor:mt,darkDangerItemColor:we,darkItemBg:De,darkSubMenuItemBg:Zt,darkItemSelectedColor:Ht,darkItemSelectedBg:nn,darkDangerItemSelectedBg:qt,darkItemHoverBg:Et,darkGroupTitleColor:on,darkItemHoverColor:Kt,darkItemDisabledColor:He,darkDangerItemHoverColor:ht,darkDangerItemSelectedColor:at,darkDangerItemActiveBg:Mt,popupBg:Me,darkPopupBg:st}=Ae,Ct=Ae.calc(Ye).div(7).mul(5).equal(),Wt=(0,lt.mergeToken)(Ae,{menuArrowSize:Ct,menuHorizontalHeight:Ae.calc(Ve).mul(1.15).equal(),menuArrowOffset:Ae.calc(Ct).mul(.25).equal(),menuSubMenuBg:ke,calc:Ae.calc,popupBg:Me}),cn=(0,lt.mergeToken)(Wt,{itemColor:mt,itemHoverColor:Kt,groupTitleColor:on,itemSelectedColor:Ht,subMenuItemSelectedColor:Ht,itemBg:De,popupBg:st,subMenuItemBg:Zt,itemActiveBg:"transparent",itemSelectedBg:nn,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Et,itemDisabledColor:He,dangerItemColor:we,dangerItemHoverColor:ht,dangerItemSelectedColor:at,dangerItemActiveBg:Mt,dangerItemSelectedBg:qt,menuSubMenuBg:Zt,horizontalItemSelectedColor:Ht,horizontalItemSelectedBg:nn});return[et(Wt),de(Wt),Ut(Wt),Ne(Wt,"light"),Ne(cn,"dark"),Ke(Wt),(0,yt.Z)(Wt),(0,ot.oN)(Wt,"slide-up"),(0,ot.oN)(Wt,"slide-down"),(0,ct._y)(Wt,"zoom-big")]},rt,{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:ye,unitless:{groupTitleLineHeight:!0}})(re,le)},Qe=ee(75030),qe=re=>{var le;const{popupClassName:ye,icon:ft,title:Ae,theme:ke}=re,Ve=b.useContext(it),{prefixCls:Ye,inlineCollapsed:mt,theme:we}=Ve,De=(0,We.Xl)();let Zt;if(!ft)Zt=mt&&!De.length&&Ae&&typeof Ae=="string"?b.createElement("div",{className:`${Ye}-inline-collapsed-noicon`},Ae.charAt(0)):b.createElement("span",{className:`${Ye}-title-content`},Ae);else{const qt=b.isValidElement(Ae)&&Ae.type==="span";Zt=b.createElement(b.Fragment,null,(0,ue.Tm)(ft,{className:xe()(b.isValidElement(ft)?(le=ft.props)===null||le===void 0?void 0:le.className:"",`${Ye}-item-icon`)}),qt?Ae:b.createElement("span",{className:`${Ye}-title-content`},Ae))}const Ht=b.useMemo(()=>Object.assign(Object.assign({},Ve),{firstLevel:!1}),[Ve]),[nn]=(0,Qe.Cn)("Menu");return b.createElement(it.Provider,{value:Ht},b.createElement(We.Wd,Object.assign({},(0,Ze.Z)(re,["icon"]),{title:Zt,popupClassName:xe()(Ye,ye,`${Ye}-${ke||we}`),popupStyle:Object.assign({zIndex:nn},re.popupStyle)})))},tn=function(re,le){var ye={};for(var ft in re)Object.prototype.hasOwnProperty.call(re,ft)&&le.indexOf(ft)<0&&(ye[ft]=re[ft]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,ft=Object.getOwnPropertySymbols(re);Ae<ft.length;Ae++)le.indexOf(ft[Ae])<0&&Object.prototype.propertyIsEnumerable.call(re,ft[Ae])&&(ye[ft[Ae]]=re[ft[Ae]]);return ye};function Tt(re){return re===null||re===!1}const ae={item:je,submenu:qe,divider:Oe};var te=(0,b.forwardRef)((re,le)=>{var ye;const ft=b.useContext(Be.Z),Ae=ft||{},{getPrefixCls:ke,getPopupContainer:Ve,direction:Ye,menu:mt}=b.useContext(tt.E_),we=ke(),{prefixCls:De,className:Zt,style:Ht,theme:nn="light",expandIcon:qt,_internalDisableMenuItemTitleTooltip:Et,inlineCollapsed:on,siderCollapsed:Kt,rootClassName:He,mode:ht,selectable:at,onClick:Mt,overflowedIndicatorPopupClassName:Me}=re,st=tn(re,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Ct=(0,Ze.Z)(st,["collapsedWidth"]);(ye=Ae.validator)===null||ye===void 0||ye.call(Ae,{mode:ht});const Wt=(0,Ie.Z)(function(){var mn;Mt==null||Mt.apply(void 0,arguments),(mn=Ae.onClick)===null||mn===void 0||mn.call(Ae)}),cn=Ae.mode||ht,Sn=at!=null?at:Ae.selectable,Bn=on!=null?on:Kt,Rn={horizontal:{motionName:`${we}-slide-up`},inline:(0,Ce.Z)(we),other:{motionName:`${we}-zoom-big`}},gn=ke("menu",De||Ae.prefixCls),Nn=(0,Le.Z)(gn),[dn,Xt,rn]=_t(gn,Nn,!ft),an=xe()(`${gn}-${nn}`,mt==null?void 0:mt.className,Zt),Jt=b.useMemo(()=>{var mn,Cn;if(typeof qt=="function"||Tt(qt))return qt||null;if(typeof Ae.expandIcon=="function"||Tt(Ae.expandIcon))return Ae.expandIcon||null;if(typeof(mt==null?void 0:mt.expandIcon)=="function"||Tt(mt==null?void 0:mt.expandIcon))return(mt==null?void 0:mt.expandIcon)||null;const Fn=(mn=qt!=null?qt:Ae==null?void 0:Ae.expandIcon)!==null&&mn!==void 0?mn:mt==null?void 0:mt.expandIcon;return(0,ue.Tm)(Fn,{className:xe()(`${gn}-submenu-expand-icon`,b.isValidElement(Fn)?(Cn=Fn.props)===null||Cn===void 0?void 0:Cn.className:void 0)})},[qt,Ae==null?void 0:Ae.expandIcon,mt==null?void 0:mt.expandIcon,gn]),pn=b.useMemo(()=>({prefixCls:gn,inlineCollapsed:Bn||!1,direction:Ye,firstLevel:!0,theme:nn,mode:cn,disableMenuItemTitleTooltip:Et}),[gn,Bn,Ye,Et,nn]);return dn(b.createElement(Be.Z.Provider,{value:null},b.createElement(it.Provider,{value:pn},b.createElement(We.ZP,Object.assign({getPopupContainer:Ve,overflowedIndicator:b.createElement(Ue.Z,null),overflowedIndicatorPopupClassName:xe()(gn,`${gn}-${nn}`,Me),mode:cn,selectable:Sn,onClick:Wt},Ct,{inlineCollapsed:Bn,style:Object.assign(Object.assign({},mt==null?void 0:mt.style),Ht),className:an,prefixCls:gn,direction:Ye,defaultMotions:Rn,expandIcon:Jt,ref:le,rootClassName:xe()(He,Xt,Ae.rootClassName,rn,Nn),_internalComponents:ae})))))});const oe=(0,b.forwardRef)((re,le)=>{const ye=(0,b.useRef)(null),ft=b.useContext(fe.D);return(0,b.useImperativeHandle)(le,()=>({menu:ye.current,focus:Ae=>{var ke;(ke=ye.current)===null||ke===void 0||ke.focus(Ae)}})),b.createElement(te,Object.assign({ref:ye},re,ft))});oe.Item=je,oe.SubMenu=qe,oe.Divider=Oe,oe.ItemGroup=We.BW;var ce=oe},31709:function(wn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return mt}});var b=ee(59301),We=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"},Ue=fe,Ee=ee(7657),xe=function(De,Zt){return b.createElement(Ee.Z,(0,We.Z)({},De,{ref:Zt,icon:Ue}))},Ie=b.forwardRef(xe),Ze=Ie,Ce=ee(49198),ue=ee(33853),tt=ee(38819),Le=ee(92310),Rt=ee.n(Le),it=ee(18642),$e=ee(43749),Te=ee(85899),Oe=ee(72190),Xe=ee(18929),pt=ee(10228),At=ee(26112),je=ee(48736),Be=ee(17119),Je=[10,20,50,100],nt=function(De){var Zt=De.pageSizeOptions,Ht=Zt===void 0?Je:Zt,nn=De.locale,qt=De.changeSize,Et=De.pageSize,on=De.goButton,Kt=De.quickGo,He=De.rootPrefixCls,ht=De.disabled,at=De.buildOptionText,Mt=De.showSizeChanger,Me=De.sizeChangerRender,st=b.useState(""),Ct=(0,Oe.Z)(st,2),Wt=Ct[0],cn=Ct[1],Sn=function(){return!Wt||Number.isNaN(Wt)?void 0:Number(Wt)},Bn=typeof at=="function"?at:function(pn){return"".concat(pn," ").concat(nn.items_per_page)},Rn=function(mn){cn(mn.target.value)},gn=function(mn){on||Wt===""||(cn(""),!(mn.relatedTarget&&(mn.relatedTarget.className.indexOf("".concat(He,"-item-link"))>=0||mn.relatedTarget.className.indexOf("".concat(He,"-item"))>=0))&&(Kt==null||Kt(Sn())))},Nn=function(mn){Wt!==""&&(mn.keyCode===pt.Z.ENTER||mn.type==="click")&&(cn(""),Kt==null||Kt(Sn()))},dn=function(){return Ht.some(function(mn){return mn.toString()===Et.toString()})?Ht:Ht.concat([Et]).sort(function(mn,Cn){var Fn=Number.isNaN(Number(mn))?0:Number(mn),zn=Number.isNaN(Number(Cn))?0:Number(Cn);return Fn-zn})},Xt="".concat(He,"-options");if(!Mt&&!Kt)return null;var rn=null,an=null,Jt=null;return Mt&&Me&&(rn=Me({disabled:ht,size:Et,onSizeChange:function(mn){qt==null||qt(Number(mn))},"aria-label":nn.page_size,className:"".concat(Xt,"-size-changer"),options:dn().map(function(pn){return{label:Bn(pn),value:pn}})})),Kt&&(on&&(Jt=typeof on=="boolean"?b.createElement("button",{type:"button",onClick:Nn,onKeyUp:Nn,disabled:ht,className:"".concat(Xt,"-quick-jumper-button")},nn.jump_to_confirm):b.createElement("span",{onClick:Nn,onKeyUp:Nn},on)),an=b.createElement("div",{className:"".concat(Xt,"-quick-jumper")},nn.jump_to,b.createElement("input",{disabled:ht,type:"text",value:Wt,onChange:Rn,onKeyUp:Nn,onBlur:gn,"aria-label":nn.page}),nn.page,Jt)),b.createElement("li",{className:Xt},rn,an)},zt=nt,yt=function(De){var Zt=De.rootPrefixCls,Ht=De.page,nn=De.active,qt=De.className,Et=De.showTitle,on=De.onClick,Kt=De.onKeyPress,He=De.itemRender,ht="".concat(Zt,"-item"),at=Rt()(ht,"".concat(ht,"-").concat(Ht),(0,it.Z)((0,it.Z)({},"".concat(ht,"-active"),nn),"".concat(ht,"-disabled"),!Ht),qt),Mt=function(){on(Ht)},Me=function(Wt){Kt(Wt,on,Ht)},st=He(Ht,"page",b.createElement("a",{rel:"nofollow"},Ht));return st?b.createElement("li",{title:Et?String(Ht):null,className:at,onClick:Mt,onKeyDown:Me,tabIndex:0},st):null},ot=yt,ct=function(De,Zt,Ht){return Ht};function Se(){}function lt(we){var De=Number(we);return typeof De=="number"&&!Number.isNaN(De)&&isFinite(De)&&Math.floor(De)===De}function Ge(we,De,Zt){var Ht=typeof we=="undefined"?De:we;return Math.floor((Zt-1)/Ht)+1}var de=function(De){var Zt=De.prefixCls,Ht=Zt===void 0?"rc-pagination":Zt,nn=De.selectPrefixCls,qt=nn===void 0?"rc-select":nn,Et=De.className,on=De.current,Kt=De.defaultCurrent,He=Kt===void 0?1:Kt,ht=De.total,at=ht===void 0?0:ht,Mt=De.pageSize,Me=De.defaultPageSize,st=Me===void 0?10:Me,Ct=De.onChange,Wt=Ct===void 0?Se:Ct,cn=De.hideOnSinglePage,Sn=De.align,Bn=De.showPrevNextJumpers,Rn=Bn===void 0?!0:Bn,gn=De.showQuickJumper,Nn=De.showLessItems,dn=De.showTitle,Xt=dn===void 0?!0:dn,rn=De.onShowSizeChange,an=rn===void 0?Se:rn,Jt=De.locale,pn=Jt===void 0?Be.Z:Jt,mn=De.style,Cn=De.totalBoundaryShowSizeChanger,Fn=Cn===void 0?50:Cn,zn=De.disabled,Zn=De.simple,Xn=De.showTotal,_n=De.showSizeChanger,pr=_n===void 0?at>Fn:_n,ar=De.sizeChangerRender,sn=De.pageSizeOptions,bn=De.itemRender,Hn=bn===void 0?ct:bn,An=De.jumpPrevIcon,ut=De.jumpNextIcon,Ot=De.prevIcon,Fe=De.nextIcon,vt=b.useRef(null),ze=(0,Xe.Z)(10,{value:Mt,defaultValue:st}),bt=(0,Oe.Z)(ze,2),Pe=bt[0],It=bt[1],$t=(0,Xe.Z)(1,{value:on,defaultValue:He,postState:function(Hr){return Math.max(1,Math.min(Hr,Ge(void 0,Pe,at)))}}),Vt=(0,Oe.Z)($t,2),St=Vt[0],xt=Vt[1],wt=b.useState(St),Ft=(0,Oe.Z)(wt,2),On=Ft[0],In=Ft[1];(0,b.useEffect)(function(){In(St)},[St]);var Tn=Wt!==Se,er="current"in De,lr=Math.max(1,St-(Nn?3:5)),dr=Math.min(Ge(void 0,Pe,at),St+(Nn?3:5));function Jn(qr,Hr){var Qi=qr||b.createElement("button",{type:"button","aria-label":Hr,className:"".concat(Ht,"-item-link")});return typeof qr=="function"&&(Qi=b.createElement(qr,(0,Te.Z)({},De))),Qi}function Gn(qr){var Hr=qr.target.value,Qi=Ge(void 0,Pe,at),qi;return Hr===""?qi=Hr:Number.isNaN(Number(Hr))?qi=On:Hr>=Qi?qi=Qi:qi=Number(Hr),qi}function Qn(qr){return lt(qr)&&qr!==St&<(at)&&at>0}var cr=at>Pe?gn:!1;function Er(qr){(qr.keyCode===pt.Z.UP||qr.keyCode===pt.Z.DOWN)&&qr.preventDefault()}function Cr(qr){var Hr=Gn(qr);switch(Hr!==On&&In(Hr),qr.keyCode){case pt.Z.ENTER:yr(Hr);break;case pt.Z.UP:yr(Hr-1);break;case pt.Z.DOWN:yr(Hr+1);break;default:break}}function wr(qr){yr(Gn(qr))}function Yn(qr){var Hr=Ge(qr,Pe,at),Qi=St>Hr&&Hr!==0?Hr:St;It(qr),In(Qi),an==null||an(St,qr),xt(Qi),Wt==null||Wt(Qi,qr)}function yr(qr){if(Qn(qr)&&!zn){var Hr=Ge(void 0,Pe,at),Qi=qr;return qr>Hr?Qi=Hr:qr<1&&(Qi=1),Qi!==On&&In(Qi),xt(Qi),Wt==null||Wt(Qi,Pe),Qi}return St}var mr=St>1,Vr=St<Ge(void 0,Pe,at);function Yr(){mr&&yr(St-1)}function _r(){Vr&&yr(St+1)}function Ur(){yr(lr)}function oi(){yr(dr)}function Zr(qr,Hr){if(qr.key==="Enter"||qr.charCode===pt.Z.ENTER||qr.keyCode===pt.Z.ENTER){for(var Qi=arguments.length,qi=new Array(Qi>2?Qi-2:0),ai=2;ai<Qi;ai++)qi[ai-2]=arguments[ai];Hr.apply(void 0,qi)}}function Qr(qr){Zr(qr,Yr)}function Or(qr){Zr(qr,_r)}function ti(qr){Zr(qr,Ur)}function ci(qr){Zr(qr,oi)}function $i(qr){var Hr=Hn(qr,"prev",Jn(Ot,"prev page"));return b.isValidElement(Hr)?b.cloneElement(Hr,{disabled:!mr}):Hr}function vi(qr){var Hr=Hn(qr,"next",Jn(Fe,"next page"));return b.isValidElement(Hr)?b.cloneElement(Hr,{disabled:!Vr}):Hr}function xi(qr){(qr.type==="click"||qr.keyCode===pt.Z.ENTER)&&yr(On)}var hi=null,bi=(0,At.Z)(De,{aria:!0,data:!0}),Ar=Xn&&b.createElement("li",{className:"".concat(Ht,"-total-text")},Xn(at,[at===0?0:(St-1)*Pe+1,St*Pe>at?at:St*Pe])),Lr=null,sr=Ge(void 0,Pe,at);if(cn&&at<=Pe)return null;var Dn=[],jn={rootPrefixCls:Ht,onClick:yr,onKeyPress:Zr,showTitle:Xt,itemRender:Hn,page:-1},Kn=St-1>0?St-1:0,kn=St+1<sr?St+1:sr,or=gn&&gn.goButton,br=(0,$e.Z)(Zn)==="object"?Zn.readOnly:!Zn,$n=or,Mn=null;Zn&&(or&&(typeof or=="boolean"?$n=b.createElement("button",{type:"button",onClick:xi,onKeyUp:xi},pn.jump_to_confirm):$n=b.createElement("span",{onClick:xi,onKeyUp:xi},or),$n=b.createElement("li",{title:Xt?"".concat(pn.jump_to).concat(St,"/").concat(sr):null,className:"".concat(Ht,"-simple-pager")},$n)),Mn=b.createElement("li",{title:Xt?"".concat(St,"/").concat(sr):null,className:"".concat(Ht,"-simple-pager")},br?On:b.createElement("input",{type:"text","aria-label":pn.jump_to,value:On,disabled:zn,onKeyDown:Er,onKeyUp:Cr,onChange:Cr,onBlur:wr,size:3}),b.createElement("span",{className:"".concat(Ht,"-slash")},"/"),sr));var Un=Nn?1:2;if(sr<=3+Un*2){sr||Dn.push(b.createElement(ot,(0,We.Z)({},jn,{key:"noPager",page:1,className:"".concat(Ht,"-item-disabled")})));for(var tr=1;tr<=sr;tr+=1)Dn.push(b.createElement(ot,(0,We.Z)({},jn,{key:tr,page:tr,active:St===tr})))}else{var Jr=Nn?pn.prev_3:pn.prev_5,Ei=Nn?pn.next_3:pn.next_5,pi=Hn(lr,"jump-prev",Jn(An,"prev page")),Ni=Hn(dr,"jump-next",Jn(ut,"next page"));Rn&&(hi=pi?b.createElement("li",{title:Xt?Jr:null,key:"prev",onClick:Ur,tabIndex:0,onKeyDown:ti,className:Rt()("".concat(Ht,"-jump-prev"),(0,it.Z)({},"".concat(Ht,"-jump-prev-custom-icon"),!!An))},pi):null,Lr=Ni?b.createElement("li",{title:Xt?Ei:null,key:"next",onClick:oi,tabIndex:0,onKeyDown:ci,className:Rt()("".concat(Ht,"-jump-next"),(0,it.Z)({},"".concat(Ht,"-jump-next-custom-icon"),!!ut))},Ni):null);var Ii=Math.max(1,St-Un),Pi=Math.min(St+Un,sr);St-1<=Un&&(Pi=1+Un*2),sr-St<=Un&&(Ii=sr-Un*2);for(var Fi=Ii;Fi<=Pi;Fi+=1)Dn.push(b.createElement(ot,(0,We.Z)({},jn,{key:Fi,page:Fi,active:St===Fi})));if(St-1>=Un*2&&St!==3&&(Dn[0]=b.cloneElement(Dn[0],{className:Rt()("".concat(Ht,"-item-after-jump-prev"),Dn[0].props.className)}),Dn.unshift(hi)),sr-St>=Un*2&&St!==sr-2){var ki=Dn[Dn.length-1];Dn[Dn.length-1]=b.cloneElement(ki,{className:Rt()("".concat(Ht,"-item-before-jump-next"),ki.props.className)}),Dn.push(Lr)}Ii!==1&&Dn.unshift(b.createElement(ot,(0,We.Z)({},jn,{key:1,page:1}))),Pi!==sr&&Dn.push(b.createElement(ot,(0,We.Z)({},jn,{key:sr,page:sr})))}var Bi=$i(Kn);if(Bi){var lo=!mr||!sr;Bi=b.createElement("li",{title:Xt?pn.prev_page:null,onClick:Yr,tabIndex:lo?null:0,onKeyDown:Qr,className:Rt()("".concat(Ht,"-prev"),(0,it.Z)({},"".concat(Ht,"-disabled"),lo)),"aria-disabled":lo},Bi)}var xo=vi(kn);if(xo){var Do,To;Zn?(Do=!Vr,To=mr?0:null):(Do=!Vr||!sr,To=Do?null:0),xo=b.createElement("li",{title:Xt?pn.next_page:null,onClick:_r,tabIndex:To,onKeyDown:Or,className:Rt()("".concat(Ht,"-next"),(0,it.Z)({},"".concat(Ht,"-disabled"),Do)),"aria-disabled":Do},xo)}var Co=Rt()(Ht,Et,(0,it.Z)((0,it.Z)((0,it.Z)((0,it.Z)((0,it.Z)({},"".concat(Ht,"-start"),Sn==="start"),"".concat(Ht,"-center"),Sn==="center"),"".concat(Ht,"-end"),Sn==="end"),"".concat(Ht,"-simple"),Zn),"".concat(Ht,"-disabled"),zn));return b.createElement("ul",(0,We.Z)({className:Co,style:mn,ref:vt},bi),Ar,Bi,Zn?Mn:Dn,xo,b.createElement(zt,{locale:pn,rootPrefixCls:Ht,disabled:zn,selectPrefixCls:qt,changeSize:Yn,pageSize:Pe,pageSizeOptions:sn,quickGo:cr?yr:null,goButton:$n,showSizeChanger:pr,sizeChangerRender:ar}))},Dt=de,Ke=ee(61852),gt=ee(48755),Yt=ee(31756),Ne=ee(13783),me=ee(9017),Pt=ee(82326),Ut=ee(57700),kt=ee(36237),ge=ee(53075),et=ee(64910),rt=ee(39082),_t=ee(63356),Qe=ee(51636),Bt=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,kt.unit)(we.itemSizeSM)},[`&${De}-mini ${De}-item`]:{minWidth:we.itemSizeSM,height:we.itemSizeSM,margin:0,lineHeight:(0,kt.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,kt.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,kt.unit)(we.itemSizeSM)}},[`&${De}-mini ${De}-jump-prev, &${De}-mini ${De}-jump-next`]:{height:we.itemSizeSM,marginInlineEnd:0,lineHeight:(0,kt.unit)(we.itemSizeSM)},[`&${De}-mini ${De}-options`]:{marginInlineStart:we.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:we.miniOptionsSizeChangerTop},"&-quick-jumper":{height:we.itemSizeSM,lineHeight:(0,kt.unit)(we.itemSizeSM),input:Object.assign(Object.assign({},(0,ge.x0)(we)),{width:we.paginationMiniQuickJumperInputWidth,height:we.controlHeightSM})}}}},Tt=we=>{const{componentCls:De}=we;return{[`
|
|
|
&${De}-simple ${De}-prev,
|
|
|
&${De}-simple ${De}-next
|
|
|
`]:{height:we.itemSizeSM,lineHeight:(0,kt.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,kt.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,kt.unit)(we.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:we.itemInputBg,border:`${(0,kt.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,kt.unit)(we.inputOutlineOffset)} 0 ${(0,kt.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,kt.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,kt.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,kt.unit)(we.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},(0,ge.ik)(we)),(0,rt.$U)(we,{borderColor:we.colorBorder,hoverBorderColor:we.colorPrimaryHover,activeBorderColor:we.colorPrimary,activeShadow:we.activeShadow})),{"&[disabled]":Object.assign({},(0,rt.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,kt.unit)(we.calc(we.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:we.itemBg,border:`${(0,kt.unit)(we.lineWidth)} ${we.lineType} transparent`,borderRadius:we.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${(0,kt.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,_t.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,kt.unit)(we.calc(we.itemSize).sub(2).equal()),verticalAlign:"middle"}}),ne(we)),ae(we)),Tt(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,_t.Qy)(we)),[`${De}-jump-prev, ${De}-jump-next`]:{"&:focus-visible":Object.assign({[`${De}-item-link-icon`]:{opacity:1},[`${De}-item-ellipsis`]:{opacity:0}},(0,_t.oN)(we))},[`${De}-prev, ${De}-next`]:{[`&:focus-visible ${De}-item-link`]:Object.assign({},(0,_t.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,et.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,et.e)(we));var le=(0,Bt.I$)("Pagination",we=>{const De=re(we);return[te(De),oe(De)]},ce);const ye=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,kt.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 ft=(0,Bt.bk)(["Pagination","bordered"],we=>{const De=re(we);return[ye(De)]},ce);function Ae(we){return(0,b.useMemo)(()=>typeof we=="boolean"?[we,{}]:we&&typeof we=="object"?[!0,we]:[void 0,void 0],[we])}var ke=function(we,De){var Zt={};for(var Ht in we)Object.prototype.hasOwnProperty.call(we,Ht)&&De.indexOf(Ht)<0&&(Zt[Ht]=we[Ht]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nn=0,Ht=Object.getOwnPropertySymbols(we);nn<Ht.length;nn++)De.indexOf(Ht[nn])<0&&Object.prototype.propertyIsEnumerable.call(we,Ht[nn])&&(Zt[Ht[nn]]=we[Ht[nn]]);return Zt},Ye=we=>{const{align:De,prefixCls:Zt,selectPrefixCls:Ht,className:nn,rootClassName:qt,style:Et,size:on,locale:Kt,responsive:He,showSizeChanger:ht,selectComponentClass:at,pageSizeOptions:Mt}=we,Me=ke(we,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:st}=(0,Ne.Z)(He),[,Ct]=(0,Ut.ZP)(),{getPrefixCls:Wt,direction:cn,showSizeChanger:Sn,className:Bn,style:Rn}=(0,gt.dj)("pagination"),gn=Wt("pagination",Zt),[Nn,dn,Xt]=le(gn),rn=(0,Yt.Z)(on),an=rn==="small"||!!(st&&!rn&&He),[Jt]=(0,me.Z)("Pagination",Ke.Z),pn=Object.assign(Object.assign({},Jt),Kt),[mn,Cn]=Ae(ht),[Fn,zn]=Ae(Sn),Zn=mn!=null?mn:Fn,Xn=Cn!=null?Cn:zn,_n=at||Pt.default,pr=b.useMemo(()=>Mt?Mt.map(ut=>Number(ut)):void 0,[Mt]),ar=ut=>{var Ot;const{disabled:Fe,size:vt,onSizeChange:ze,"aria-label":bt,className:Pe,options:It}=ut,{className:$t,onChange:Vt}=Xn||{},St=(Ot=It.find(xt=>String(xt.value)===String(vt)))===null||Ot===void 0?void 0:Ot.value;return b.createElement(_n,Object.assign({disabled:Fe,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:xt=>xt.parentNode,"aria-label":bt,options:It},Xn,{value:St,onChange:(xt,wt)=>{ze==null||ze(xt),Vt==null||Vt(xt,wt)},size:an?"small":"middle",className:Rt()(Pe,$t)}))},sn=b.useMemo(()=>{const ut=b.createElement("span",{className:`${gn}-item-ellipsis`},"\u2022\u2022\u2022"),Ot=b.createElement("button",{className:`${gn}-item-link`,type:"button",tabIndex:-1},cn==="rtl"?b.createElement(tt.Z,null):b.createElement(ue.Z,null)),Fe=b.createElement("button",{className:`${gn}-item-link`,type:"button",tabIndex:-1},cn==="rtl"?b.createElement(ue.Z,null):b.createElement(tt.Z,null)),vt=b.createElement("a",{className:`${gn}-item-link`},b.createElement("div",{className:`${gn}-item-container`},cn==="rtl"?b.createElement(Ce.Z,{className:`${gn}-item-link-icon`}):b.createElement(Ze,{className:`${gn}-item-link-icon`}),ut)),ze=b.createElement("a",{className:`${gn}-item-link`},b.createElement("div",{className:`${gn}-item-container`},cn==="rtl"?b.createElement(Ze,{className:`${gn}-item-link-icon`}):b.createElement(Ce.Z,{className:`${gn}-item-link-icon`}),ut));return{prevIcon:Ot,nextIcon:Fe,jumpPrevIcon:vt,jumpNextIcon:ze}},[cn,gn]),bn=Wt("select",Ht),Hn=Rt()({[`${gn}-${De}`]:!!De,[`${gn}-mini`]:an,[`${gn}-rtl`]:cn==="rtl",[`${gn}-bordered`]:Ct.wireframe},Bn,nn,qt,dn,Xt),An=Object.assign(Object.assign({},Rn),Et);return Nn(b.createElement(b.Fragment,null,Ct.wireframe&&b.createElement(ft,{prefixCls:gn}),b.createElement(Dt,Object.assign({},sn,Me,{style:An,prefixCls:gn,selectPrefixCls:bn,className:Hn,locale:pn,pageSizeOptions:pr,showSizeChanger:Zn,sizeChangerRender:ar}))))},mt=Ye},89787:function(wn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Kt}});var b=ee(59301),We=ee(17835),fe=ee(29679),Ue=ee(40001),Ee=ee(19248),xe=ee(99267),Ie=ee(92310),Ze=ee.n(Ie),Ce=ee(2738),ue=ee(48755),tt=ee(60499),Le=ee(85899),Rt=ee(42244),it={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},$e=function(){var ht=(0,b.useRef)([]),at=(0,b.useRef)(null);return(0,b.useEffect)(function(){var Mt=Date.now(),Me=!1;ht.current.forEach(function(st){if(st){Me=!0;var Ct=st.style;Ct.transitionDuration=".3s, .3s, .3s, .06s",at.current&&Mt-at.current<100&&(Ct.transitionDuration="0s, 0s")}}),Me&&(at.current=Date.now())}),ht.current},Te=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],Oe=function(ht){var at=(0,Le.Z)((0,Le.Z)({},it),ht),Mt=at.className,Me=at.percent,st=at.prefixCls,Ct=at.strokeColor,Wt=at.strokeLinecap,cn=at.strokeWidth,Sn=at.style,Bn=at.trailColor,Rn=at.trailWidth,gn=at.transition,Nn=(0,Rt.Z)(at,Te);delete Nn.gapPosition;var dn=Array.isArray(Me)?Me:[Me],Xt=Array.isArray(Ct)?Ct:[Ct],rn=$e(),an=cn/2,Jt=100-cn/2,pn="M ".concat(Wt==="round"?an:0,",").concat(an,`
|
|
|
L `).concat(Wt==="round"?Jt:100,",").concat(an),mn="0 0 100 ".concat(cn),Cn=0;return b.createElement("svg",(0,tt.Z)({className:Ze()("".concat(st,"-line"),Mt),viewBox:mn,preserveAspectRatio:"none",style:Sn},Nn),b.createElement("path",{className:"".concat(st,"-line-trail"),d:pn,strokeLinecap:Wt,stroke:Bn,strokeWidth:Rn||cn,fillOpacity:"0"}),dn.map(function(Fn,zn){var Zn=1;switch(Wt){case"round":Zn=1-cn/100;break;case"square":Zn=1-cn/2/100;break;default:Zn=1;break}var Xn={strokeDasharray:"".concat(Fn*Zn,"px, 100px"),strokeDashoffset:"-".concat(Cn,"px"),transition:gn||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},_n=Xt[zn]||Xt[Xt.length-1];return Cn+=Fn,b.createElement("path",{key:zn,className:"".concat(st,"-line-path"),d:pn,strokeLinecap:Wt,stroke:_n,strokeWidth:cn,fillOpacity:"0",ref:function(ar){rn[zn]=ar},style:Xn})}))},Xe=Oe,pt=ee(43749),At=ee(72190),je=ee(47273),Be=0,Je=(0,je.Z)();function nt(){var He;return Je?(He=Be,Be+=1):He="TEST_OR_SSR",He}var zt=function(He){var ht=b.useState(),at=(0,At.Z)(ht,2),Mt=at[0],Me=at[1];return b.useEffect(function(){Me("rc_progress_".concat(nt()))},[]),He||Mt},yt=function(ht){var at=ht.bg,Mt=ht.children;return b.createElement("div",{style:{width:"100%",height:"100%",background:at}},Mt)};function ot(He,ht){return Object.keys(He).map(function(at){var Mt=parseFloat(at),Me="".concat(Math.floor(Mt*ht),"%");return"".concat(He[at]," ").concat(Me)})}var ct=b.forwardRef(function(He,ht){var at=He.prefixCls,Mt=He.color,Me=He.gradientId,st=He.radius,Ct=He.style,Wt=He.ptg,cn=He.strokeLinecap,Sn=He.strokeWidth,Bn=He.size,Rn=He.gapDegree,gn=Mt&&(0,pt.Z)(Mt)==="object",Nn=gn?"#FFF":void 0,dn=Bn/2,Xt=b.createElement("circle",{className:"".concat(at,"-circle-path"),r:st,cx:dn,cy:dn,stroke:Nn,strokeLinecap:cn,strokeWidth:Sn,opacity:Wt===0?0:1,style:Ct,ref:ht});if(!gn)return Xt;var rn="".concat(Me,"-conic"),an=Rn?"".concat(180+Rn/2,"deg"):"0deg",Jt=ot(Mt,(360-Rn)/360),pn=ot(Mt,1),mn="conic-gradient(from ".concat(an,", ").concat(Jt.join(", "),")"),Cn="linear-gradient(to ".concat(Rn?"bottom":"top",", ").concat(pn.join(", "),")");return b.createElement(b.Fragment,null,b.createElement("mask",{id:rn},Xt),b.createElement("foreignObject",{x:0,y:0,width:Bn,height:Bn,mask:"url(#".concat(rn,")")},b.createElement(yt,{bg:Cn},b.createElement(yt,{bg:mn}))))}),Se=ct,lt=100,Ge=function(ht,at,Mt,Me,st,Ct,Wt,cn,Sn,Bn){var Rn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,gn=Mt/100*360*((360-Ct)/360),Nn=Ct===0?0:{bottom:0,top:180,left:90,right:-90}[Wt],dn=(100-Me)/100*at;Sn==="round"&&Me!==100&&(dn+=Bn/2,dn>=at&&(dn=at-.01));var Xt=lt/2;return{stroke:typeof cn=="string"?cn:void 0,strokeDasharray:"".concat(at,"px ").concat(ht),strokeDashoffset:dn+Rn,transform:"rotate(".concat(st+gn+Nn,"deg)"),transformOrigin:"".concat(Xt,"px ").concat(Xt,"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 Dt(He){var ht=He!=null?He:[];return Array.isArray(ht)?ht:[ht]}var Ke=function(ht){var at=(0,Le.Z)((0,Le.Z)({},it),ht),Mt=at.id,Me=at.prefixCls,st=at.steps,Ct=at.strokeWidth,Wt=at.trailWidth,cn=at.gapDegree,Sn=cn===void 0?0:cn,Bn=at.gapPosition,Rn=at.trailColor,gn=at.strokeLinecap,Nn=at.style,dn=at.className,Xt=at.strokeColor,rn=at.percent,an=(0,Rt.Z)(at,de),Jt=lt/2,pn=zt(Mt),mn="".concat(pn,"-gradient"),Cn=Jt-Ct/2,Fn=Math.PI*2*Cn,zn=Sn>0?90+Sn/2:-90,Zn=Fn*((360-Sn)/360),Xn=(0,pt.Z)(st)==="object"?st:{count:st,gap:2},_n=Xn.count,pr=Xn.gap,ar=Dt(rn),sn=Dt(Xt),bn=sn.find(function(ze){return ze&&(0,pt.Z)(ze)==="object"}),Hn=bn&&(0,pt.Z)(bn)==="object",An=Hn?"butt":gn,ut=Ge(Fn,Zn,0,100,zn,Sn,Bn,Rn,An,Ct),Ot=$e(),Fe=function(){var bt=0;return ar.map(function(Pe,It){var $t=sn[It]||sn[sn.length-1],Vt=Ge(Fn,Zn,bt,Pe,zn,Sn,Bn,$t,An,Ct);return bt+=Pe,b.createElement(Se,{key:It,color:$t,ptg:Pe,radius:Cn,prefixCls:Me,gradientId:mn,style:Vt,strokeLinecap:An,strokeWidth:Ct,gapDegree:Sn,ref:function(xt){Ot[It]=xt},size:lt})}).reverse()},vt=function(){var bt=Math.round(_n*(ar[0]/100)),Pe=100/_n,It=0;return new Array(_n).fill(null).map(function($t,Vt){var St=Vt<=bt-1?sn[0]:Rn,xt=St&&(0,pt.Z)(St)==="object"?"url(#".concat(mn,")"):void 0,wt=Ge(Fn,Zn,It,Pe,zn,Sn,Bn,St,"butt",Ct,pr);return It+=(Zn-wt.strokeDashoffset+pr)*100/Zn,b.createElement("circle",{key:Vt,className:"".concat(Me,"-circle-path"),r:Cn,cx:Jt,cy:Jt,stroke:xt,strokeWidth:Ct,opacity:1,style:wt,ref:function(On){Ot[Vt]=On}})})};return b.createElement("svg",(0,tt.Z)({className:Ze()("".concat(Me,"-circle"),dn),viewBox:"0 0 ".concat(lt," ").concat(lt),style:Nn,id:Mt,role:"presentation"},an),!_n&&b.createElement("circle",{className:"".concat(Me,"-circle-trail"),r:Cn,cx:Jt,cy:Jt,stroke:Rn,strokeLinecap:An,strokeWidth:Wt||Ct,style:ut}),_n?vt():Fe())},gt=Ke,Yt={Line:Xe,Circle:gt},Ne=ee(25399),me=ee(68361);function Pt(He){return!He||He<0?0:He>100?100:He}function Ut(He){let{success:ht,successPercent:at}=He,Mt=at;return ht&&"progress"in ht&&(Mt=ht.progress),ht&&"percent"in ht&&(Mt=ht.percent),Mt}const kt=He=>{let{percent:ht,success:at,successPercent:Mt}=He;const Me=Pt(Ut({success:at,successPercent:Mt}));return[Me,Pt(Pt(ht)-Me)]},ge=He=>{let{success:ht={},strokeColor:at}=He;const{strokeColor:Mt}=ht;return[Mt||me.presetPrimaryColors.green,at||null]},et=(He,ht,at)=>{var Mt,Me,st,Ct;let Wt=-1,cn=-1;if(ht==="step"){const Sn=at.steps,Bn=at.strokeWidth;typeof He=="string"||typeof He=="undefined"?(Wt=He==="small"?2:14,cn=Bn!=null?Bn:8):typeof He=="number"?[Wt,cn]=[He,He]:[Wt=14,cn=8]=Array.isArray(He)?He:[He.width,He.height],Wt*=Sn}else if(ht==="line"){const Sn=at==null?void 0:at.strokeWidth;typeof He=="string"||typeof He=="undefined"?cn=Sn||(He==="small"?6:8):typeof He=="number"?[Wt,cn]=[He,He]:[Wt=-1,cn=8]=Array.isArray(He)?He:[He.width,He.height]}else(ht==="circle"||ht==="dashboard")&&(typeof He=="string"||typeof He=="undefined"?[Wt,cn]=He==="small"?[60,60]:[120,120]:typeof He=="number"?[Wt,cn]=[He,He]:Array.isArray(He)&&(Wt=(Me=(Mt=He[0])!==null&&Mt!==void 0?Mt:He[1])!==null&&Me!==void 0?Me:120,cn=(Ct=(st=He[0])!==null&&st!==void 0?st:He[1])!==null&&Ct!==void 0?Ct:120));return[Wt,cn]},rt=3,_t=He=>rt/He*100;var Bt=He=>{const{prefixCls:ht,trailColor:at=null,strokeLinecap:Mt="round",gapPosition:Me,gapDegree:st,width:Ct=120,type:Wt,children:cn,success:Sn,size:Bn=Ct,steps:Rn}=He,[gn,Nn]=et(Bn,"circle");let{strokeWidth:dn}=He;dn===void 0&&(dn=Math.max(_t(gn),6));const Xt={width:gn,height:Nn,fontSize:gn*.15+6},rn=b.useMemo(()=>{if(st||st===0)return st;if(Wt==="dashboard")return 75},[st,Wt]),an=kt(He),Jt=Me||Wt==="dashboard"&&"bottom"||void 0,pn=Object.prototype.toString.call(He.strokeColor)==="[object Object]",mn=ge({success:Sn,strokeColor:He.strokeColor}),Cn=Ze()(`${ht}-inner`,{[`${ht}-circle-gradient`]:pn}),Fn=b.createElement(gt,{steps:Rn,percent:Rn?an[1]:an,strokeWidth:dn,trailWidth:dn,strokeColor:Rn?mn[1]:mn,strokeLinecap:Mt,trailColor:at,prefixCls:ht,gapDegree:rn,gapPosition:Jt}),zn=gn<=20,Zn=b.createElement("div",{className:Cn,style:Xt},Fn,!zn&&cn);return zn?b.createElement(Ne.Z,{title:cn},Zn):Zn},qe=ee(36237),tn=ee(63356),Tt=ee(16931),ae=ee(51636);const ne="--progress-line-stroke-color",te="--progress-percent",oe=He=>{const ht=He?"100%":"-100%";return new qe.Keyframes(`antProgress${He?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${ht}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${ht}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},ce=He=>{const{componentCls:ht,iconCls:at}=He;return{[ht]:Object.assign(Object.assign({},(0,tn.Wf)(He)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:He.fontSize},[`${ht}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${ht}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:He.remainingColor,borderRadius:He.lineBorderRadius},[`${ht}-inner:not(${ht}-circle-gradient)`]:{[`${ht}-circle-path`]:{stroke:He.defaultColor}},[`${ht}-success-bg, ${ht}-bg`]:{position:"relative",background:He.defaultColor,borderRadius:He.lineBorderRadius,transition:`all ${He.motionDurationSlow} ${He.motionEaseInOutCirc}`},[`${ht}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${ht}-text`]:{width:"max-content",marginInlineStart:0,marginTop:He.marginXXS}},[`${ht}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${ne})`]},height:"100%",width:`calc(1 / var(${te}) * 100%)`,display:"block"},[`&${ht}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${ht}-text-inner`]:{color:He.colorWhite,[`&${ht}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${ht}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:He.colorSuccess},[`${ht}-text`]:{display:"inline-block",marginInlineStart:He.marginXS,color:He.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[at]:{fontSize:He.fontSize},[`&${ht}-text-outer`]:{width:"max-content"},[`&${ht}-text-outer${ht}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:He.marginXS}},[`${ht}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${(0,qe.unit)(He.paddingXXS)}`,[`&${ht}-text-start`]:{justifyContent:"start"},[`&${ht}-text-end`]:{justifyContent:"end"}},[`&${ht}-status-active`]:{[`${ht}-bg::before`]:{position:"absolute",inset:0,backgroundColor:He.colorBgContainer,borderRadius:He.lineBorderRadius,opacity:0,animationName:oe(),animationDuration:He.progressActiveMotionDuration,animationTimingFunction:He.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${ht}-rtl${ht}-status-active`]:{[`${ht}-bg::before`]:{animationName:oe(!0)}},[`&${ht}-status-exception`]:{[`${ht}-bg`]:{backgroundColor:He.colorError},[`${ht}-text`]:{color:He.colorError}},[`&${ht}-status-exception ${ht}-inner:not(${ht}-circle-gradient)`]:{[`${ht}-circle-path`]:{stroke:He.colorError}},[`&${ht}-status-success`]:{[`${ht}-bg`]:{backgroundColor:He.colorSuccess},[`${ht}-text`]:{color:He.colorSuccess}},[`&${ht}-status-success ${ht}-inner:not(${ht}-circle-gradient)`]:{[`${ht}-circle-path`]:{stroke:He.colorSuccess}}})}},re=He=>{const{componentCls:ht,iconCls:at}=He;return{[ht]:{[`${ht}-circle-trail`]:{stroke:He.remainingColor},[`&${ht}-circle ${ht}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${ht}-circle ${ht}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:He.circleTextColor,fontSize:He.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[at]:{fontSize:He.circleIconFontSize}},[`${ht}-circle&-status-exception`]:{[`${ht}-text`]:{color:He.colorError}},[`${ht}-circle&-status-success`]:{[`${ht}-text`]:{color:He.colorSuccess}}},[`${ht}-inline-circle`]:{lineHeight:1,[`${ht}-inner`]:{verticalAlign:"bottom"}}}},le=He=>{const{componentCls:ht}=He;return{[ht]:{[`${ht}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:He.progressStepMinWidth,marginInlineEnd:He.progressStepMarginInlineEnd,backgroundColor:He.remainingColor,transition:`all ${He.motionDurationSlow}`,"&-active":{backgroundColor:He.defaultColor}}}}}},ye=He=>{const{componentCls:ht,iconCls:at}=He;return{[ht]:{[`${ht}-small&-line, ${ht}-small&-line ${ht}-text ${at}`]:{fontSize:He.fontSizeSM}}}},ft=He=>({circleTextColor:He.colorText,defaultColor:He.colorInfo,remainingColor:He.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${He.fontSize/He.fontSizeSM}em`});var Ae=(0,Tt.I$)("Progress",He=>{const ht=He.calc(He.marginXXS).div(2).equal(),at=(0,ae.mergeToken)(He,{progressStepMarginInlineEnd:ht,progressStepMinWidth:ht,progressActiveMotionDuration:"2.4s"});return[ce(at),re(at),le(at),ye(at)]},ft),ke=function(He,ht){var at={};for(var Mt in He)Object.prototype.hasOwnProperty.call(He,Mt)&&ht.indexOf(Mt)<0&&(at[Mt]=He[Mt]);if(He!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,Mt=Object.getOwnPropertySymbols(He);Me<Mt.length;Me++)ht.indexOf(Mt[Me])<0&&Object.prototype.propertyIsEnumerable.call(He,Mt[Me])&&(at[Mt[Me]]=He[Mt[Me]]);return at};const Ve=He=>{let ht=[];return Object.keys(He).forEach(at=>{const Mt=parseFloat(at.replace(/%/g,""));Number.isNaN(Mt)||ht.push({key:Mt,value:He[at]})}),ht=ht.sort((at,Mt)=>at.key-Mt.key),ht.map(at=>{let{key:Mt,value:Me}=at;return`${Me} ${Mt}%`}).join(", ")},Ye=(He,ht)=>{const{from:at=me.presetPrimaryColors.blue,to:Mt=me.presetPrimaryColors.blue,direction:Me=ht==="rtl"?"to left":"to right"}=He,st=ke(He,["from","to","direction"]);if(Object.keys(st).length!==0){const Wt=Ve(st),cn=`linear-gradient(${Me}, ${Wt})`;return{background:cn,[ne]:cn}}const Ct=`linear-gradient(${Me}, ${at}, ${Mt})`;return{background:Ct,[ne]:Ct}};var we=He=>{const{prefixCls:ht,direction:at,percent:Mt,size:Me,strokeWidth:st,strokeColor:Ct,strokeLinecap:Wt="round",children:cn,trailColor:Sn=null,percentPosition:Bn,success:Rn}=He,{align:gn,type:Nn}=Bn,dn=Ct&&typeof Ct!="string"?Ye(Ct,at):{[ne]:Ct,background:Ct},Xt=Wt==="square"||Wt==="butt"?0:void 0,rn=Me!=null?Me:[-1,st||(Me==="small"?6:8)],[an,Jt]=et(rn,"line",{strokeWidth:st}),pn={backgroundColor:Sn||void 0,borderRadius:Xt},mn=Object.assign(Object.assign({width:`${Pt(Mt)}%`,height:Jt,borderRadius:Xt},dn),{[te]:Pt(Mt)/100}),Cn=Ut(He),Fn={width:`${Pt(Cn)}%`,height:Jt,borderRadius:Xt,backgroundColor:Rn==null?void 0:Rn.strokeColor},zn={width:an<0?"100%":an},Zn=b.createElement("div",{className:`${ht}-inner`,style:pn},b.createElement("div",{className:Ze()(`${ht}-bg`,`${ht}-bg-${Nn}`),style:mn},Nn==="inner"&&cn),Cn!==void 0&&b.createElement("div",{className:`${ht}-success-bg`,style:Fn})),Xn=Nn==="outer"&&gn==="start",_n=Nn==="outer"&&gn==="end";return Nn==="outer"&&gn==="center"?b.createElement("div",{className:`${ht}-layout-bottom`},Zn,cn):b.createElement("div",{className:`${ht}-outer`,style:zn},Xn&&cn,Zn,_n&&cn)},Zt=He=>{const{size:ht,steps:at,rounding:Mt=Math.round,percent:Me=0,strokeWidth:st=8,strokeColor:Ct,trailColor:Wt=null,prefixCls:cn,children:Sn}=He,Bn=Mt(at*(Me/100)),Rn=ht==="small"?2:14,gn=ht!=null?ht:[Rn,st],[Nn,dn]=et(gn,"step",{steps:at,strokeWidth:st}),Xt=Nn/at,rn=Array.from({length:at});for(let an=0;an<at;an++){const Jt=Array.isArray(Ct)?Ct[an]:Ct;rn[an]=b.createElement("div",{key:an,className:Ze()(`${cn}-steps-item`,{[`${cn}-steps-item-active`]:an<=Bn-1}),style:{backgroundColor:an<=Bn-1?Jt:Wt,width:Xt,height:dn}})}return b.createElement("div",{className:`${cn}-steps-outer`},rn,Sn)},Ht=function(He,ht){var at={};for(var Mt in He)Object.prototype.hasOwnProperty.call(He,Mt)&&ht.indexOf(Mt)<0&&(at[Mt]=He[Mt]);if(He!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,Mt=Object.getOwnPropertySymbols(He);Me<Mt.length;Me++)ht.indexOf(Mt[Me])<0&&Object.prototype.propertyIsEnumerable.call(He,Mt[Me])&&(at[Mt[Me]]=He[Mt[Me]]);return at};const nn=null,qt=["normal","exception","active","success"];var on=b.forwardRef((He,ht)=>{const{prefixCls:at,className:Mt,rootClassName:Me,steps:st,strokeColor:Ct,percent:Wt=0,size:cn="default",showInfo:Sn=!0,type:Bn="line",status:Rn,format:gn,style:Nn,percentPosition:dn={}}=He,Xt=Ht(He,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:rn="end",type:an="outer"}=dn,Jt=Array.isArray(Ct)?Ct[0]:Ct,pn=typeof Ct=="string"||Array.isArray(Ct)?Ct:void 0,mn=b.useMemo(()=>{if(Jt){const Fe=typeof Jt=="string"?Jt:Object.values(Jt)[0];return new We.FastColor(Fe).isLight()}return!1},[Ct]),Cn=b.useMemo(()=>{var Fe,vt;const ze=Ut(He);return parseInt(ze!==void 0?(Fe=ze!=null?ze:0)===null||Fe===void 0?void 0:Fe.toString():(vt=Wt!=null?Wt:0)===null||vt===void 0?void 0:vt.toString(),10)},[Wt,He.success,He.successPercent]),Fn=b.useMemo(()=>!qt.includes(Rn)&&Cn>=100?"success":Rn||"normal",[Rn,Cn]),{getPrefixCls:zn,direction:Zn,progress:Xn}=b.useContext(ue.E_),_n=zn("progress",at),[pr,ar,sn]=Ae(_n),bn=Bn==="line",Hn=bn&&!st,An=b.useMemo(()=>{if(!Sn)return null;const Fe=Ut(He);let vt;const ze=gn||(Pe=>`${Pe}%`),bt=bn&&mn&&an==="inner";return an==="inner"||gn||Fn!=="exception"&&Fn!=="success"?vt=ze(Pt(Wt),Pt(Fe)):Fn==="exception"?vt=bn?b.createElement(Ee.Z,null):b.createElement(xe.Z,null):Fn==="success"&&(vt=bn?b.createElement(fe.Z,null):b.createElement(Ue.Z,null)),b.createElement("span",{className:Ze()(`${_n}-text`,{[`${_n}-text-bright`]:bt,[`${_n}-text-${rn}`]:Hn,[`${_n}-text-${an}`]:Hn}),title:typeof vt=="string"?vt:void 0},vt)},[Sn,Wt,Cn,Fn,Bn,_n,gn]);let ut;Bn==="line"?ut=st?b.createElement(Zt,Object.assign({},He,{strokeColor:pn,prefixCls:_n,steps:typeof st=="object"?st.count:st}),An):b.createElement(we,Object.assign({},He,{strokeColor:Jt,prefixCls:_n,direction:Zn,percentPosition:{align:rn,type:an}}),An):(Bn==="circle"||Bn==="dashboard")&&(ut=b.createElement(Bt,Object.assign({},He,{strokeColor:Jt,prefixCls:_n,progressStatus:Fn}),An));const Ot=Ze()(_n,`${_n}-status-${Fn}`,{[`${_n}-${Bn==="dashboard"&&"circle"||Bn}`]:Bn!=="line",[`${_n}-inline-circle`]:Bn==="circle"&&et(cn,"circle")[0]<=20,[`${_n}-line`]:Hn,[`${_n}-line-align-${rn}`]:Hn,[`${_n}-line-position-${an}`]:Hn,[`${_n}-steps`]:st,[`${_n}-show-info`]:Sn,[`${_n}-${cn}`]:typeof cn=="string",[`${_n}-rtl`]:Zn==="rtl"},Xn==null?void 0:Xn.className,Mt,Me,ar,sn);return pr(b.createElement("div",Object.assign({ref:ht,style:Object.assign(Object.assign({},Xn==null?void 0:Xn.style),Nn),className:Ot,role:"progressbar","aria-valuenow":Cn,"aria-valuemin":0,"aria-valuemax":100},(0,Ce.Z)(Xt,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),ut))}),Kt=on},63139:function(wn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return kt}});var b=ee(59301),We=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"},Ue=fe,Ee=ee(7657),xe=function(et,rt){return b.createElement(Ee.Z,(0,We.Z)({},et,{ref:rt,icon:Ue}))},Ie=b.forwardRef(xe),Ze=Ie,Ce=ee(92310),ue=ee.n(Ce),tt=ee(18642),Le=ee(72190),Rt=ee(42244),it=ee(18929),$e=ee(10228),Te=ee(26112);function Oe(ge,et){var rt=ge.disabled,_t=ge.prefixCls,Qe=ge.character,Bt=ge.characterRender,qe=ge.index,tn=ge.count,Tt=ge.value,ae=ge.allowHalf,ne=ge.focused,te=ge.onHover,oe=ge.onClick,ce=function(Ye){te(Ye,qe)},re=function(Ye){oe(Ye,qe)},le=function(Ye){Ye.keyCode===$e.Z.ENTER&&oe(Ye,qe)},ye=qe+1,ft=new Set([_t]);Tt===0&&qe===0&&ne?ft.add("".concat(_t,"-focused")):ae&&Tt+.5>=ye&&Tt<ye?(ft.add("".concat(_t,"-half")),ft.add("".concat(_t,"-active")),ne&&ft.add("".concat(_t,"-focused"))):(ye<=Tt?ft.add("".concat(_t,"-full")):ft.add("".concat(_t,"-zero")),ye===Tt&&ne&&ft.add("".concat(_t,"-focused")));var Ae=typeof Qe=="function"?Qe(ge):Qe,ke=b.createElement("li",{className:ue()(Array.from(ft)),ref:et},b.createElement("div",{onClick:rt?null:re,onKeyDown:rt?null:le,onMouseMove:rt?null:ce,role:"radio","aria-checked":Tt>qe?"true":"false","aria-posinset":qe+1,"aria-setsize":tn,tabIndex:rt?-1:0},b.createElement("div",{className:"".concat(_t,"-first")},Ae),b.createElement("div",{className:"".concat(_t,"-second")},Ae)));return Bt&&(ke=Bt(ke,ge)),ke}var Xe=b.forwardRef(Oe);function pt(){var ge=b.useRef({});function et(_t){return ge.current[_t]}function rt(_t){return function(Qe){ge.current[_t]=Qe}}return[et,rt]}function At(ge){var et=ge.pageXOffset,rt="scrollLeft";if(typeof et!="number"){var _t=ge.document;et=_t.documentElement[rt],typeof et!="number"&&(et=_t.body[rt])}return et}function je(ge){var et,rt,_t=ge.ownerDocument,Qe=_t.body,Bt=_t&&_t.documentElement,qe=ge.getBoundingClientRect();return et=qe.left,rt=qe.top,et-=Bt.clientLeft||Qe.clientLeft||0,rt-=Bt.clientTop||Qe.clientTop||0,{left:et,top:rt}}function Be(ge){var et=je(ge),rt=ge.ownerDocument,_t=rt.defaultView||rt.parentWindow;return et.left+=At(_t),et.left}var Je=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function nt(ge,et){var rt=ge.prefixCls,_t=rt===void 0?"rc-rate":rt,Qe=ge.className,Bt=ge.defaultValue,qe=ge.value,tn=ge.count,Tt=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,ye=le===void 0?"\u2605":le,ft=ge.characterRender,Ae=ge.disabled,ke=ge.direction,Ve=ke===void 0?"ltr":ke,Ye=ge.tabIndex,mt=Ye===void 0?0:Ye,we=ge.autoFocus,De=ge.onHoverChange,Zt=ge.onChange,Ht=ge.onFocus,nn=ge.onBlur,qt=ge.onKeyDown,Et=ge.onMouseLeave,on=(0,Rt.Z)(ge,Je),Kt=pt(),He=(0,Le.Z)(Kt,2),ht=He[0],at=He[1],Mt=b.useRef(null),Me=function(){if(!Ae){var An;(An=Mt.current)===null||An===void 0||An.focus()}};b.useImperativeHandle(et,function(){return{focus:Me,blur:function(){if(!Ae){var An;(An=Mt.current)===null||An===void 0||An.blur()}}}});var st=(0,it.Z)(Bt||0,{value:qe}),Ct=(0,Le.Z)(st,2),Wt=Ct[0],cn=Ct[1],Sn=(0,it.Z)(null),Bn=(0,Le.Z)(Sn,2),Rn=Bn[0],gn=Bn[1],Nn=function(An,ut){var Ot=Ve==="rtl",Fe=An+1;if(ne){var vt=ht(An),ze=Be(vt),bt=vt.clientWidth;(Ot&&ut-ze>bt/2||!Ot&&ut-ze<bt/2)&&(Fe-=.5)}return Fe},dn=function(An){cn(An),Zt==null||Zt(An)},Xt=b.useState(!1),rn=(0,Le.Z)(Xt,2),an=rn[0],Jt=rn[1],pn=function(){Jt(!0),Ht==null||Ht()},mn=function(){Jt(!1),nn==null||nn()},Cn=b.useState(null),Fn=(0,Le.Z)(Cn,2),zn=Fn[0],Zn=Fn[1],Xn=function(An,ut){var Ot=Nn(ut,An.pageX);Ot!==Rn&&(Zn(Ot),gn(null)),De==null||De(Ot)},_n=function(An){Ae||(Zn(null),gn(null),De==null||De(void 0)),An&&(Et==null||Et(An))},pr=function(An,ut){var Ot=Nn(ut,An.pageX),Fe=!1;oe&&(Fe=Ot===Wt),_n(),dn(Fe?0:Ot),gn(Fe?Ot:null)},ar=function(An){var ut=An.keyCode,Ot=Ve==="rtl",Fe=ne?.5:1;re&&(ut===$e.Z.RIGHT&&Wt<Tt&&!Ot?(dn(Wt+Fe),An.preventDefault()):ut===$e.Z.LEFT&&Wt>0&&!Ot||ut===$e.Z.RIGHT&&Wt>0&&Ot?(dn(Wt-Fe),An.preventDefault()):ut===$e.Z.LEFT&&Wt<Tt&&Ot&&(dn(Wt+Fe),An.preventDefault())),qt==null||qt(An)};b.useEffect(function(){we&&!Ae&&Me()},[]);var sn=new Array(Tt).fill(0).map(function(Hn,An){return b.createElement(Xe,{ref:at(An),index:An,count:Tt,disabled:Ae,prefixCls:"".concat(_t,"-star"),allowHalf:ne,value:zn===null?Wt:zn,onClick:pr,onHover:Xn,key:Hn||An,character:ye,characterRender:ft,focused:an})}),bn=ue()(_t,Qe,(0,tt.Z)((0,tt.Z)({},"".concat(_t,"-disabled"),Ae),"".concat(_t,"-rtl"),Ve==="rtl"));return b.createElement("ul",(0,We.Z)({className:bn,onMouseLeave:_n,tabIndex:Ae?-1:mt,onFocus:Ae?null:pn,onBlur:Ae?null:mn,onKeyDown:Ae?null:ar,ref:Mt},(0,Te.Z)(on,{aria:!0,data:!0,attr:!0})),sn)}var zt=b.forwardRef(nt),yt=zt,ot=ee(48755),ct=ee(25399),Se=ee(36237),lt=ee(63356),Ge=ee(16931),de=ee(51636);const Dt=ge=>{const{componentCls:et}=ge;return{[`${et}-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,Se.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 ${et}-star-first, &-half ${et}-star-second`]:{opacity:1},[`&-half ${et}-star-first, &-full ${et}-star-second`]:{color:"inherit"}}}},Ke=ge=>({[`&-rtl${ge.componentCls}`]:{direction:"rtl"}}),gt=ge=>{const{componentCls:et}=ge;return{[et]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,lt.Wf)(ge)),{display:"inline-block",margin:0,padding:0,color:ge.starColor,fontSize:ge.starSize,lineHeight:1,listStyle:"none",outline:"none",[`&-disabled${et} ${et}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),Dt(ge)),Ke(ge))}},Yt=ge=>({starColor:ge.yellow6,starSize:ge.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:ge.colorFillContent});var Ne=(0,Ge.I$)("Rate",ge=>{const et=(0,de.mergeToken)(ge,{});return[gt(et)]},Yt),me=ee(2171),Pt=function(ge,et){var rt={};for(var _t in ge)Object.prototype.hasOwnProperty.call(ge,_t)&&et.indexOf(_t)<0&&(rt[_t]=ge[_t]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qe=0,_t=Object.getOwnPropertySymbols(ge);Qe<_t.length;Qe++)et.indexOf(_t[Qe])<0&&Object.prototype.propertyIsEnumerable.call(ge,_t[Qe])&&(rt[_t[Qe]]=ge[_t[Qe]]);return rt},kt=b.forwardRef((ge,et)=>{const{prefixCls:rt,className:_t,rootClassName:Qe,style:Bt,tooltips:qe,character:tn=b.createElement(Ze,null),disabled:Tt}=ge,ae=Pt(ge,["prefixCls","className","rootClassName","style","tooltips","character","disabled"]),ne=(Ye,mt)=>{let{index:we}=mt;return qe?b.createElement(ct.Z,{title:qe[we]},Ye):Ye},{getPrefixCls:te,direction:oe,rate:ce}=b.useContext(ot.E_),re=te("rate",rt),[le,ye,ft]=Ne(re),Ae=Object.assign(Object.assign({},ce==null?void 0:ce.style),Bt),ke=b.useContext(me.Z),Ve=Tt!=null?Tt:ke;return le(b.createElement(yt,Object.assign({ref:et,character:tn,characterRender:ne,disabled:Ve},ae,{className:ue()(_t,Qe,ye,ft,ce==null?void 0:ce.className),style:Ae,prefixCls:re,direction:oe})))})},82326:function(wn,Qt,ee){"use strict";var b=ee(59301),We=ee(92310),fe=ee.n(We),Ue=ee(37463),Ee=ee(2738),xe=ee(75030),Ie=ee(86641),Ze=ee(45915),Ce=ee(82855),ue=ee(48755),tt=ee(38406),Le=ee(2171),Rt=ee(83397),it=ee(31756),$e=ee(56553),Te=ee(24971),Oe=ee(70045),Xe=ee(57700),pt=ee(1722),At=ee(90376),je=ee(68525),Be=ee(90005),Je=function(ct,Se){var lt={};for(var Ge in ct)Object.prototype.hasOwnProperty.call(ct,Ge)&&Se.indexOf(Ge)<0&&(lt[Ge]=ct[Ge]);if(ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var de=0,Ge=Object.getOwnPropertySymbols(ct);de<Ge.length;de++)Se.indexOf(Ge[de])<0&&Object.prototype.propertyIsEnumerable.call(ct,Ge[de])&&(lt[Ge[de]]=ct[Ge[de]]);return lt};const nt="SECRET_COMBOBOX_MODE_DO_NOT_USE",zt=(ct,Se)=>{var lt;const{prefixCls:Ge,bordered:de,className:Dt,rootClassName:Ke,getPopupContainer:gt,popupClassName:Yt,dropdownClassName:Ne,listHeight:me=256,placement:Pt,listItemHeight:Ut,size:kt,disabled:ge,notFoundContent:et,status:rt,builtinPlacements:_t,dropdownMatchSelectWidth:Qe,popupMatchSelectWidth:Bt,direction:qe,style:tn,allowClear:Tt,variant:ae,dropdownStyle:ne,transitionName:te,tagRender:oe,maxCount:ce,prefix:re}=ct,le=Je(ct,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix"]),{getPopupContainer:ye,getPrefixCls:ft,renderEmpty:Ae,direction:ke,virtual:Ve,popupMatchSelectWidth:Ye,popupOverflow:mt}=b.useContext(ue.E_),we=(0,ue.dj)("select"),[,De]=(0,Xe.ZP)(),Zt=Ut!=null?Ut:De==null?void 0:De.controlHeight,Ht=ft("select",Ge),nn=ft(),qt=qe!=null?qe:ke,{compactSize:Et,compactItemClassnames:on}=(0,Oe.ri)(Ht,qt),[Kt,He]=(0,Te.Z)("select",ae,de),ht=(0,Rt.Z)(Ht),[at,Mt,Me]=(0,At.Z)(Ht,ht),st=b.useMemo(()=>{const{mode:ar}=ct;if(ar!=="combobox")return ar===nt?"combobox":ar},[ct.mode]),Ct=st==="multiple"||st==="tags",Wt=(0,Be.Z)(ct.suffixIcon,ct.showArrow),cn=(lt=Bt!=null?Bt:Qe)!==null&<!==void 0?lt:Ye,{status:Sn,hasFeedback:Bn,isFormItemInput:Rn,feedbackIcon:gn}=b.useContext($e.aM),Nn=(0,Ce.F)(Sn,rt);let dn;et!==void 0?dn=et:st==="combobox"?dn=null:dn=(Ae==null?void 0:Ae("Select"))||b.createElement(tt.Z,{componentName:"Select"});const{suffixIcon:Xt,itemIcon:rn,removeIcon:an,clearIcon:Jt}=(0,je.Z)(Object.assign(Object.assign({},le),{multiple:Ct,hasFeedback:Bn,feedbackIcon:gn,showSuffixIcon:Wt,prefixCls:Ht,componentName:"Select"})),pn=Tt===!0?{clearIcon:Jt}:Tt,mn=(0,Ee.Z)(le,["suffixIcon","itemIcon"]),Cn=fe()(Yt||Ne,{[`${Ht}-dropdown-${qt}`]:qt==="rtl"},Ke,Me,ht,Mt),Fn=(0,it.Z)(ar=>{var sn;return(sn=kt!=null?kt:Et)!==null&&sn!==void 0?sn:ar}),zn=b.useContext(Le.Z),Zn=ge!=null?ge:zn,Xn=fe()({[`${Ht}-lg`]:Fn==="large",[`${Ht}-sm`]:Fn==="small",[`${Ht}-rtl`]:qt==="rtl",[`${Ht}-${Kt}`]:He,[`${Ht}-in-form-item`]:Rn},(0,Ce.Z)(Ht,Nn,Bn),on,we.className,Dt,Ke,Me,ht,Mt),_n=b.useMemo(()=>Pt!==void 0?Pt:qt==="rtl"?"bottomRight":"bottomLeft",[Pt,qt]),[pr]=(0,xe.Cn)("SelectLike",ne==null?void 0:ne.zIndex);return at(b.createElement(Ue.ZP,Object.assign({ref:Se,virtual:Ve,showSearch:we.showSearch},mn,{style:Object.assign(Object.assign({},we.style),tn),dropdownMatchSelectWidth:cn,transitionName:(0,Ie.m)(nn,"slide-up",te),builtinPlacements:(0,pt.Z)(_t,mt),listHeight:me,listItemHeight:Zt,mode:st,prefixCls:Ht,placement:_n,direction:qt,prefix:re,suffixIcon:Xt,menuItemSelectedIcon:rn,removeIcon:an,allowClear:pn,notFoundContent:dn,className:Xn,getPopupContainer:gt||ye,dropdownClassName:Cn,disabled:Zn,dropdownStyle:Object.assign(Object.assign({},ne),{zIndex:pr}),maxCount:Ct?ce:void 0,tagRender:Ct?oe:void 0})))},yt=b.forwardRef(zt),ot=(0,Ze.Z)(yt,"dropdownAlign");yt.SECRET_COMBOBOX_MODE_DO_NOT_USE=nt,yt.Option=Ue.Wx,yt.OptGroup=Ue.Xo,yt._InternalPanelDoNotUseOrYouWillBeFired=ot,Qt.default=yt},1722:function(wn,Qt){"use strict";const ee=We=>{const Ue={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:We==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},Ue),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},Ue),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},Ue),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},Ue),{points:["br","tr"],offset:[0,-4]})}};function b(We,fe){return We||ee(fe)}Qt.Z=b},90376:function(wn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Ge}});var b=ee(63356),We=ee(56119),fe=ee(16931),Ue=ee(51636),Ee=ee(46e3),xe=ee(93873);const Ie=de=>{const{optionHeight:Dt,optionFontSize:Ke,optionLineHeight:gt,optionPadding:Yt}=de;return{position:"relative",display:"block",minHeight:Dt,padding:Yt,color:de.colorText,fontWeight:"normal",fontSize:Ke,lineHeight:gt,boxSizing:"border-box"}};var Ce=de=>{const{antCls:Dt,componentCls:Ke}=de,gt=`${Ke}-item`,Yt=`&${Dt}-slide-up-enter${Dt}-slide-up-enter-active`,Ne=`&${Dt}-slide-up-appear${Dt}-slide-up-appear-active`,me=`&${Dt}-slide-up-leave${Dt}-slide-up-leave-active`,Pt=`${Ke}-dropdown-placement-`,Ut=`${gt}-option-selected`;return[{[`${Ke}-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}${Pt}bottomLeft,
|
|
|
${Ne}${Pt}bottomLeft
|
|
|
`]:{animationName:Ee.fJ},[`
|
|
|
${Yt}${Pt}topLeft,
|
|
|
${Ne}${Pt}topLeft,
|
|
|
${Yt}${Pt}topRight,
|
|
|
${Ne}${Pt}topRight
|
|
|
`]:{animationName:Ee.Qt},[`${me}${Pt}bottomLeft`]:{animationName:Ee.Uw},[`
|
|
|
${me}${Pt}topLeft,
|
|
|
${me}${Pt}topRight
|
|
|
`]:{animationName:Ee.ly},"&-hidden":{display:"none"},[gt]:Object.assign(Object.assign({},Ie(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(${gt}-option-disabled)`]:{backgroundColor:de.optionActiveBg},[`&-selected:not(${gt}-option-disabled)`]:{color:de.optionSelectedColor,fontWeight:de.optionSelectedFontWeight,backgroundColor:de.optionSelectedBg,[`${gt}-option-state`]:{color:de.colorPrimary}},"&-disabled":{[`&${gt}-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({},Ie(de)),{color:de.colorTextDisabled})}),[`${Ut}:has(+ ${Ut})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${Ut}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},(0,Ee.oN)(de,"slide-up"),(0,Ee.oN)(de,"slide-down"),(0,xe.Fm)(de,"move-up"),(0,xe.Fm)(de,"move-down")]},ue=ee(26743),tt=ee(36237);function Le(de,Dt){const{componentCls:Ke,inputPaddingHorizontalBase:gt,borderRadius:Yt}=de,Ne=de.calc(de.controlHeight).sub(de.calc(de.lineWidth).mul(2)).equal(),me=Dt?`${Ke}-${Dt}`:"";return{[`${Ke}-single${me}`]:{fontSize:de.fontSize,height:de.controlHeight,[`${Ke}-selector`]:Object.assign(Object.assign({},(0,b.Wf)(de,!0)),{display:"flex",borderRadius:Yt,flex:"1 1 auto",[`${Ke}-selection-wrap:after`]:{lineHeight:(0,tt.unit)(Ne)},[`${Ke}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
|
|
|
${Ke}-selection-item,
|
|
|
${Ke}-selection-placeholder
|
|
|
`]:{display:"block",padding:0,lineHeight:(0,tt.unit)(Ne),transition:`all ${de.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${Ke}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${Ke}-selection-item:empty:after`,`${Ke}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
|
|
&${Ke}-show-arrow ${Ke}-selection-item,
|
|
|
&${Ke}-show-arrow ${Ke}-selection-search,
|
|
|
&${Ke}-show-arrow ${Ke}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:de.showArrowPaddingInlineEnd},[`&${Ke}-open ${Ke}-selection-item`]:{color:de.colorTextPlaceholder},[`&:not(${Ke}-customize-input)`]:{[`${Ke}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${(0,tt.unit)(gt)}`,[`${Ke}-selection-search-input`]:{height:Ne,fontSize:de.fontSize},"&:after":{lineHeight:(0,tt.unit)(Ne)}}},[`&${Ke}-customize-input`]:{[`${Ke}-selector`]:{"&:after":{display:"none"},[`${Ke}-selection-search`]:{position:"static",width:"100%"},[`${Ke}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${(0,tt.unit)(gt)}`,"&:after":{display:"none"}}}}}}}function Rt(de){const{componentCls:Dt}=de,Ke=de.calc(de.controlPaddingHorizontalSM).sub(de.lineWidth).equal();return[Le(de),Le((0,Ue.mergeToken)(de,{controlHeight:de.controlHeightSM,borderRadius:de.borderRadiusSM}),"sm"),{[`${Dt}-single${Dt}-sm`]:{[`&:not(${Dt}-customize-input)`]:{[`${Dt}-selector`]:{padding:`0 ${(0,tt.unit)(Ke)}`},[`&${Dt}-show-arrow ${Dt}-selection-search`]:{insetInlineEnd:de.calc(Ke).add(de.calc(de.fontSize).mul(1.5)).equal()},[`
|
|
|
&${Dt}-show-arrow ${Dt}-selection-item,
|
|
|
&${Dt}-show-arrow ${Dt}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:de.calc(de.fontSize).mul(1.5).equal()}}}},Le((0,Ue.mergeToken)(de,{controlHeight:de.singleItemHeightLG,fontSize:de.fontSizeLG,borderRadius:de.borderRadiusLG}),"lg")]}const it=de=>{const{fontSize:Dt,lineHeight:Ke,lineWidth:gt,controlHeight:Yt,controlHeightSM:Ne,controlHeightLG:me,paddingXXS:Pt,controlPaddingHorizontal:Ut,zIndexPopupBase:kt,colorText:ge,fontWeightStrong:et,controlItemBgActive:rt,controlItemBgHover:_t,colorBgContainer:Qe,colorFillSecondary:Bt,colorBgContainerDisabled:qe,colorTextDisabled:tn,colorPrimaryHover:Tt,colorPrimary:ae,controlOutline:ne}=de,te=Pt*2,oe=gt*2,ce=Math.min(Yt-te,Yt-oe),re=Math.min(Ne-te,Ne-oe),le=Math.min(me-te,me-oe);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(Pt/2),zIndexPopup:kt+50,optionSelectedColor:ge,optionSelectedFontWeight:et,optionSelectedBg:rt,optionActiveBg:_t,optionPadding:`${(Yt-Dt*Ke)/2}px ${Ut}px`,optionFontSize:Dt,optionLineHeight:Ke,optionHeight:Yt,selectorBg:Qe,clearBg:Qe,singleItemHeightLG:me,multipleItemBg:Bt,multipleItemBorderColor:"transparent",multipleItemHeight:ce,multipleItemHeightSM:re,multipleItemHeightLG:le,multipleSelectorBgDisabled:qe,multipleItemColorDisabled:tn,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(de.fontSize*1.25),hoverBorderColor:Tt,activeBorderColor:ae,activeOutlineColor:ne,selectAffixPadding:Pt}},$e=(de,Dt)=>{const{componentCls:Ke,antCls:gt,controlOutlineWidth:Yt}=de;return{[`&:not(${Ke}-customize-input) ${Ke}-selector`]:{border:`${(0,tt.unit)(de.lineWidth)} ${de.lineType} ${Dt.borderColor}`,background:de.selectorBg},[`&:not(${Ke}-disabled):not(${Ke}-customize-input):not(${gt}-pagination-size-changer)`]:{[`&:hover ${Ke}-selector`]:{borderColor:Dt.hoverBorderHover},[`${Ke}-focused& ${Ke}-selector`]:{borderColor:Dt.activeBorderColor,boxShadow:`0 0 0 ${(0,tt.unit)(Yt)} ${Dt.activeOutlineColor}`,outline:0},[`${Ke}-prefix`]:{color:Dt.color}}}},Te=(de,Dt)=>({[`&${de.componentCls}-status-${Dt.status}`]:Object.assign({},$e(de,Dt))}),Oe=de=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},$e(de,{borderColor:de.colorBorder,hoverBorderHover:de.hoverBorderColor,activeBorderColor:de.activeBorderColor,activeOutlineColor:de.activeOutlineColor,color:de.colorText})),Te(de,{status:"error",borderColor:de.colorError,hoverBorderHover:de.colorErrorHover,activeBorderColor:de.colorError,activeOutlineColor:de.colorErrorOutline,color:de.colorError})),Te(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,tt.unit)(de.lineWidth)} ${de.lineType} ${de.multipleItemBorderColor}`}})}),Xe=(de,Dt)=>{const{componentCls:Ke,antCls:gt}=de;return{[`&:not(${Ke}-customize-input) ${Ke}-selector`]:{background:Dt.bg,border:`${(0,tt.unit)(de.lineWidth)} ${de.lineType} transparent`,color:Dt.color},[`&:not(${Ke}-disabled):not(${Ke}-customize-input):not(${gt}-pagination-size-changer)`]:{[`&:hover ${Ke}-selector`]:{background:Dt.hoverBg},[`${Ke}-focused& ${Ke}-selector`]:{background:de.selectorBg,borderColor:Dt.activeBorderColor,outline:0}}}},pt=(de,Dt)=>({[`&${de.componentCls}-status-${Dt.status}`]:Object.assign({},Xe(de,Dt))}),At=de=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},Xe(de,{bg:de.colorFillTertiary,hoverBg:de.colorFillSecondary,activeBorderColor:de.activeBorderColor,color:de.colorText})),pt(de,{status:"error",bg:de.colorErrorBg,hoverBg:de.colorErrorBgHover,activeBorderColor:de.colorError,color:de.colorError})),pt(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,tt.unit)(de.lineWidth)} ${de.lineType} ${de.colorSplit}`}})}),je=de=>({"&-borderless":{[`${de.componentCls}-selector`]:{background:"transparent",border:`${(0,tt.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,tt.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}}}}),Be=(de,Dt)=>{const{componentCls:Ke,antCls:gt}=de;return{[`&:not(${Ke}-customize-input) ${Ke}-selector`]:{borderWidth:`0 0 ${(0,tt.unit)(de.lineWidth)} 0`,borderStyle:`none none ${de.lineType} none`,borderColor:Dt.borderColor,background:de.selectorBg,borderRadius:0},[`&:not(${Ke}-disabled):not(${Ke}-customize-input):not(${gt}-pagination-size-changer)`]:{[`&:hover ${Ke}-selector`]:{borderColor:Dt.hoverBorderHover},[`${Ke}-focused& ${Ke}-selector`]:{borderColor:Dt.activeBorderColor,outline:0},[`${Ke}-prefix`]:{color:Dt.color}}}},Je=(de,Dt)=>({[`&${de.componentCls}-status-${Dt.status}`]:Object.assign({},Be(de,Dt))}),nt=de=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},Be(de,{borderColor:de.colorBorder,hoverBorderHover:de.hoverBorderColor,activeBorderColor:de.activeBorderColor,activeOutlineColor:de.activeOutlineColor,color:de.colorText})),Je(de,{status:"error",borderColor:de.colorError,hoverBorderHover:de.colorErrorHover,activeBorderColor:de.colorError,activeOutlineColor:de.colorErrorOutline,color:de.colorError})),Je(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,tt.unit)(de.lineWidth)} ${de.lineType} ${de.multipleItemBorderColor}`}})});var yt=de=>({[de.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},Oe(de)),At(de)),je(de)),nt(de))});const ot=de=>{const{componentCls:Dt}=de;return{position:"relative",transition:`all ${de.motionDurationMid} ${de.motionEaseInOut}`,input:{cursor:"pointer"},[`${Dt}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${Dt}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},ct=de=>{const{componentCls:Dt}=de;return{[`${Dt}-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"}}}},Se=de=>{const{antCls:Dt,componentCls:Ke,inputPaddingHorizontalBase:gt,iconCls:Yt}=de;return{[Ke]:Object.assign(Object.assign({},(0,b.Wf)(de)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${Ke}-customize-input) ${Ke}-selector`]:Object.assign(Object.assign({},ot(de)),ct(de)),[`${Ke}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},b.vS),{[`> ${Dt}-typography`]:{display:"inline"}}),[`${Ke}-selection-placeholder`]:Object.assign(Object.assign({},b.vS),{flex:1,color:de.colorTextPlaceholder,pointerEvents:"none"}),[`${Ke}-arrow`]:Object.assign(Object.assign({},(0,b.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:gt,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(${Ke}-suffix)`]:{pointerEvents:"auto"}},[`${Ke}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${Ke}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${Ke}-prefix`]:{flex:"none",marginInlineEnd:de.selectAffixPadding},[`${Ke}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:gt,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 ${Ke}-clear`]:{opacity:1,background:de.colorBgBase,borderRadius:"50%"}}),[`${Ke}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${Ke}-has-feedback`]:{[`${Ke}-clear`]:{insetInlineEnd:de.calc(gt).add(de.fontSize).add(de.paddingXS).equal()}}}}}},lt=de=>{const{componentCls:Dt}=de;return[{[Dt]:{[`&${Dt}-in-form-item`]:{width:"100%"}}},Se(de),Rt(de),(0,ue.ZP)(de),Ce(de),{[`${Dt}-rtl`]:{direction:"rtl"}},(0,We.c)(de,{borderElCls:`${Dt}-selector`,focusElCls:`${Dt}-focused`})]};var Ge=(0,fe.I$)("Select",(de,Dt)=>{let{rootPrefixCls:Ke}=Dt;const gt=(0,Ue.mergeToken)(de,{rootPrefixCls:Ke,inputPaddingHorizontalBase:de.calc(de.paddingSM).sub(1).equal(),multipleSelectItemHeight:de.multipleItemHeight,selectHeight:de.controlHeight});return[lt(gt),yt(gt)]},it,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}})},26743:function(wn,Qt,ee){"use strict";ee.d(Qt,{_z:function(){return xe},gp:function(){return Ue}});var b=ee(36237),We=ee(63356),fe=ee(51636);const Ue=ue=>{const{multipleSelectItemHeight:tt,paddingXXS:Le,lineWidth:Rt,INTERNAL_FIXED_ITEM_MARGIN:it}=ue,$e=ue.max(ue.calc(Le).sub(Rt).equal(),0),Te=ue.max(ue.calc($e).sub(it).equal(),0);return{basePadding:$e,containerPadding:Te,itemHeight:(0,b.unit)(tt),itemLineHeight:(0,b.unit)(ue.calc(tt).sub(ue.calc(ue.lineWidth).mul(2)).equal())}},Ee=ue=>{const{multipleSelectItemHeight:tt,selectHeight:Le,lineWidth:Rt}=ue;return ue.calc(Le).sub(tt).div(2).sub(Rt).equal()},xe=ue=>{const{componentCls:tt,iconCls:Le,borderRadiusSM:Rt,motionDurationSlow:it,paddingXS:$e,multipleItemColorDisabled:Te,multipleItemBorderColorDisabled:Oe,colorIcon:Xe,colorIconHover:pt,INTERNAL_FIXED_ITEM_MARGIN:At}=ue;return{[`${tt}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${tt}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:At,borderRadius:Rt,cursor:"default",transition:`font-size ${it}, line-height ${it}, height ${it}`,marginInlineEnd:ue.calc(At).mul(2).equal(),paddingInlineStart:$e,paddingInlineEnd:ue.calc($e).div(2).equal(),[`${tt}-disabled&`]:{color:Te,borderColor:Oe,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:ue.calc($e).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,We.Ro)()),{display:"inline-flex",alignItems:"center",color:Xe,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${Le}`]:{verticalAlign:"-0.2em"},"&:hover":{color:pt}})}}}},Ie=(ue,tt)=>{const{componentCls:Le,INTERNAL_FIXED_ITEM_MARGIN:Rt}=ue,it=`${Le}-selection-overflow`,$e=ue.multipleSelectItemHeight,Te=Ee(ue),Oe=tt?`${Le}-${tt}`:"",Xe=Ue(ue);return{[`${Le}-multiple${Oe}`]:Object.assign(Object.assign({},xe(ue)),{[`${Le}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:Xe.basePadding,paddingBlock:Xe.containerPadding,borderRadius:ue.borderRadius,[`${Le}-disabled&`]:{background:ue.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${(0,b.unit)(Rt)} 0`,lineHeight:(0,b.unit)($e),visibility:"hidden",content:'"\\a0"'}},[`${Le}-selection-item`]:{height:Xe.itemHeight,lineHeight:(0,b.unit)(Xe.itemLineHeight)},[`${Le}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:(0,b.unit)($e),marginBlock:Rt}},[`${Le}-prefix`]:{marginInlineStart:ue.calc(ue.inputPaddingHorizontalBase).sub(Xe.basePadding).equal()},[`${it}-item + ${it}-item,
|
|
|
${Le}-prefix + ${Le}-selection-wrap
|
|
|
`]:{[`${Le}-selection-search`]:{marginInlineStart:0},[`${Le}-selection-placeholder`]:{insetInlineStart:0}},[`${it}-item-suffix`]:{minHeight:Xe.itemHeight,marginBlock:Rt},[`${Le}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:ue.calc(ue.inputPaddingHorizontalBase).sub(Te).equal(),"\n &-input,\n &-mirror\n ":{height:$e,fontFamily:ue.fontFamily,lineHeight:(0,b.unit)($e),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"}},[`${Le}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:ue.calc(ue.inputPaddingHorizontalBase).sub(Xe.basePadding).equal(),insetInlineEnd:ue.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${ue.motionDurationSlow}`}})}};function Ze(ue,tt){const{componentCls:Le}=ue,Rt=tt?`${Le}-${tt}`:"",it={[`${Le}-multiple${Rt}`]:{fontSize:ue.fontSize,[`${Le}-selector`]:{[`${Le}-show-search&`]:{cursor:"text"}},[`
|
|
|
&${Le}-show-arrow ${Le}-selector,
|
|
|
&${Le}-allow-clear ${Le}-selector
|
|
|
`]:{paddingInlineEnd:ue.calc(ue.fontSizeIcon).add(ue.controlPaddingHorizontal).equal()}}};return[Ie(ue,tt),it]}const Ce=ue=>{const{componentCls:tt}=ue,Le=(0,fe.mergeToken)(ue,{selectHeight:ue.controlHeightSM,multipleSelectItemHeight:ue.multipleItemHeightSM,borderRadius:ue.borderRadiusSM,borderRadiusSM:ue.borderRadiusXS}),Rt=(0,fe.mergeToken)(ue,{fontSize:ue.fontSizeLG,selectHeight:ue.controlHeightLG,multipleSelectItemHeight:ue.multipleItemHeightLG,borderRadius:ue.borderRadiusLG,borderRadiusSM:ue.borderRadius});return[Ze(ue),Ze(Le,"sm"),{[`${tt}-multiple${tt}-sm`]:{[`${tt}-selection-placeholder`]:{insetInline:ue.calc(ue.controlPaddingHorizontalSM).sub(ue.lineWidth).equal()},[`${tt}-selection-search`]:{marginInlineStart:2}}},Ze(Rt,"lg")]};Qt.ZP=Ce},68525:function(wn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Ze}});var b=ee(59301),We=ee(40001),fe=ee(19248),Ue=ee(99267),Ee=ee(84105),xe=ee(58617),Ie=ee(47472);function Ze(Ce){let{suffixIcon:ue,clearIcon:tt,menuItemSelectedIcon:Le,removeIcon:Rt,loading:it,multiple:$e,hasFeedback:Te,prefixCls:Oe,showSuffixIcon:Xe,feedbackIcon:pt,showArrow:At,componentName:je}=Ce;const Be=tt!=null?tt:b.createElement(fe.Z,null),Je=ot=>ue===null&&!Te&&!At?null:b.createElement(b.Fragment,null,Xe!==!1&&ot,Te&&pt);let nt=null;if(ue!==void 0)nt=Je(ue);else if(it)nt=Je(b.createElement(xe.Z,{spin:!0}));else{const ot=`${Oe}-suffix`;nt=ct=>{let{open:Se,showSearch:lt}=ct;return Je(Se&<?b.createElement(Ie.Z,{className:ot}):b.createElement(Ee.Z,{className:ot}))}}let zt=null;Le!==void 0?zt=Le:$e?zt=b.createElement(We.Z,null):zt=null;let yt=null;return Rt!==void 0?yt=Rt:yt=b.createElement(Ue.Z,null),{clearIcon:Be,suffixIcon:nt,itemIcon:zt,removeIcon:yt}}},90005:function(wn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return b}});function b(We,fe){return fe!==void 0?fe:We!==null}},11938:function(wn,Qt,ee){"use strict";ee.d(Qt,{default:function(){return ct}});var b=ee(59301),We=ee(40192),fe=ee(22703),Ue=ee(92310),Ee=ee.n(Ue),xe=ee(26112),Ie=ee(48755),Ze=ee(458),ue=Se=>{const{value:lt,formatter:Ge,precision:de,decimalSeparator:Dt,groupSeparator:Ke="",prefixCls:gt}=Se;let Yt;if(typeof Ge=="function")Yt=Ge(lt);else{const Ne=String(lt),me=Ne.match(/^(-?)(\d*)(\.(\d+))?$/);if(!me||Ne==="-")Yt=Ne;else{const Pt=me[1];let Ut=me[2]||"0",kt=me[4]||"";Ut=Ut.replace(/\B(?=(\d{3})+(?!\d))/g,Ke),typeof de=="number"&&(kt=kt.padEnd(de,"0").slice(0,de>0?de:0)),kt&&(kt=`${Dt}${kt}`),Yt=[b.createElement("span",{key:"int",className:`${gt}-content-value-int`},Pt,Ut),kt&&b.createElement("span",{key:"decimal",className:`${gt}-content-value-decimal`},kt)]}}return b.createElement("span",{className:`${gt}-content-value`},Yt)},tt=ee(63356),Le=ee(16931),Rt=ee(51636);const it=Se=>{const{componentCls:lt,marginXXS:Ge,padding:de,colorTextDescription:Dt,titleFontSize:Ke,colorTextHeading:gt,contentFontSize:Yt,fontFamily:Ne}=Se;return{[lt]:Object.assign(Object.assign({},(0,tt.Wf)(Se)),{[`${lt}-title`]:{marginBottom:Ge,color:Dt,fontSize:Ke},[`${lt}-skeleton`]:{paddingTop:de},[`${lt}-content`]:{color:gt,fontSize:Yt,fontFamily:Ne,[`${lt}-content-value`]:{display:"inline-block",direction:"ltr"},[`${lt}-content-prefix, ${lt}-content-suffix`]:{display:"inline-block"},[`${lt}-content-prefix`]:{marginInlineEnd:Ge},[`${lt}-content-suffix`]:{marginInlineStart:Ge}}})}},$e=Se=>{const{fontSizeHeading3:lt,fontSize:Ge}=Se;return{titleFontSize:Ge,contentFontSize:lt}};var Te=(0,Le.I$)("Statistic",Se=>{const lt=(0,Rt.mergeToken)(Se,{});return[it(lt)]},$e),Oe=function(Se,lt){var Ge={};for(var de in Se)Object.prototype.hasOwnProperty.call(Se,de)&<.indexOf(de)<0&&(Ge[de]=Se[de]);if(Se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Dt=0,de=Object.getOwnPropertySymbols(Se);Dt<de.length;Dt++)lt.indexOf(de[Dt])<0&&Object.prototype.propertyIsEnumerable.call(Se,de[Dt])&&(Ge[de[Dt]]=Se[de[Dt]]);return Ge},pt=Se=>{const{prefixCls:lt,className:Ge,rootClassName:de,style:Dt,valueStyle:Ke,value:gt=0,title:Yt,valueRender:Ne,prefix:me,suffix:Pt,loading:Ut=!1,formatter:kt,precision:ge,decimalSeparator:et=".",groupSeparator:rt=",",onMouseEnter:_t,onMouseLeave:Qe}=Se,Bt=Oe(Se,["prefixCls","className","rootClassName","style","valueStyle","value","title","valueRender","prefix","suffix","loading","formatter","precision","decimalSeparator","groupSeparator","onMouseEnter","onMouseLeave"]),{getPrefixCls:qe,direction:tn,className:Tt,style:ae}=(0,Ie.dj)("statistic"),ne=qe("statistic",lt),[te,oe,ce]=Te(ne),re=b.createElement(ue,{decimalSeparator:et,groupSeparator:rt,prefixCls:ne,formatter:kt,precision:ge,value:gt}),le=Ee()(ne,{[`${ne}-rtl`]:tn==="rtl"},Tt,Ge,de,oe,ce),ye=(0,xe.Z)(Bt,{aria:!0,data:!0});return te(b.createElement("div",Object.assign({},ye,{className:le,style:Object.assign(Object.assign({},ae),Dt),onMouseEnter:_t,onMouseLeave:Qe}),Yt&&b.createElement("div",{className:`${ne}-title`},Yt),b.createElement(Ze.Z,{paragraph:!1,loading:Ut,className:`${ne}-skeleton`},b.createElement("div",{style:Ke,className:`${ne}-content`},me&&b.createElement("span",{className:`${ne}-content-prefix`},me),Ne?Ne(re):re,Pt&&b.createElement("span",{className:`${ne}-content-suffix`},Pt)))))};const At=[["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 je(Se,lt){let Ge=Se;const de=/\[[^\]]*]/g,Dt=(lt.match(de)||[]).map(Ne=>Ne.slice(1,-1)),Ke=lt.replace(de,"[]"),gt=At.reduce((Ne,me)=>{let[Pt,Ut]=me;if(Ne.includes(Pt)){const kt=Math.floor(Ge/Ut);return Ge-=kt*Ut,Ne.replace(new RegExp(`${Pt}+`,"g"),ge=>{const et=ge.length;return kt.toString().padStart(et,"0")})}return Ne},Ke);let Yt=0;return gt.replace(de,()=>{const Ne=Dt[Yt];return Yt+=1,Ne})}function Be(Se,lt){const{format:Ge=""}=lt,de=new Date(Se).getTime(),Dt=Date.now(),Ke=Math.max(de-Dt,0);return je(Ke,Ge)}var Je=function(Se,lt){var Ge={};for(var de in Se)Object.prototype.hasOwnProperty.call(Se,de)&<.indexOf(de)<0&&(Ge[de]=Se[de]);if(Se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Dt=0,de=Object.getOwnPropertySymbols(Se);Dt<de.length;Dt++)lt.indexOf(de[Dt])<0&&Object.prototype.propertyIsEnumerable.call(Se,de[Dt])&&(Ge[de[Dt]]=Se[de[Dt]]);return Ge};const nt=1e3/30;function zt(Se){return new Date(Se).getTime()}const yt=Se=>{const{value:lt,format:Ge="HH:mm:ss",onChange:de,onFinish:Dt}=Se,Ke=Je(Se,["value","format","onChange","onFinish"]),gt=(0,We.Z)(),Yt=b.useRef(null),Ne=()=>{Dt==null||Dt(),Yt.current&&(clearInterval(Yt.current),Yt.current=null)},me=()=>{const kt=zt(lt);kt>=Date.now()&&(Yt.current=setInterval(()=>{gt(),de==null||de(kt-Date.now()),kt<Date.now()&&Ne()},nt))};b.useEffect(()=>(me(),()=>{Yt.current&&(clearInterval(Yt.current),Yt.current=null)}),[lt]);const Pt=(kt,ge)=>Be(kt,Object.assign(Object.assign({},ge),{format:Ge})),Ut=kt=>(0,fe.Tm)(kt,{title:void 0});return b.createElement(pt,Object.assign({},Ke,{value:lt,valueRender:Ut,formatter:Pt}))};var ot=b.memo(yt);pt.Countdown=ot;var ct=pt},58755:function(wn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Dt}});var b=ee(59301),We=ee(58617),fe=ee(92310),Ue=ee.n(fe),Ee=ee(60499),xe=ee(18642),Ie=ee(72190),Ze=ee(42244),Ce=ee(18929),ue=ee(10228),tt=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Le=b.forwardRef(function(Ke,gt){var Yt,Ne=Ke.prefixCls,me=Ne===void 0?"rc-switch":Ne,Pt=Ke.className,Ut=Ke.checked,kt=Ke.defaultChecked,ge=Ke.disabled,et=Ke.loadingIcon,rt=Ke.checkedChildren,_t=Ke.unCheckedChildren,Qe=Ke.onClick,Bt=Ke.onChange,qe=Ke.onKeyDown,tn=(0,Ze.Z)(Ke,tt),Tt=(0,Ce.Z)(!1,{value:Ut,defaultValue:kt}),ae=(0,Ie.Z)(Tt,2),ne=ae[0],te=ae[1];function oe(ye,ft){var Ae=ne;return ge||(Ae=ye,te(Ae),Bt==null||Bt(Ae,ft)),Ae}function ce(ye){ye.which===ue.Z.LEFT?oe(!1,ye):ye.which===ue.Z.RIGHT&&oe(!0,ye),qe==null||qe(ye)}function re(ye){var ft=oe(!ne,ye);Qe==null||Qe(ft,ye)}var le=Ue()(me,Pt,(Yt={},(0,xe.Z)(Yt,"".concat(me,"-checked"),ne),(0,xe.Z)(Yt,"".concat(me,"-disabled"),ge),Yt));return b.createElement("button",(0,Ee.Z)({},tn,{type:"button",role:"switch","aria-checked":ne,disabled:ge,className:le,ref:gt,onKeyDown:ce,onClick:re}),et,b.createElement("span",{className:"".concat(me,"-inner")},b.createElement("span",{className:"".concat(me,"-inner-checked")},rt),b.createElement("span",{className:"".concat(me,"-inner-unchecked")},_t)))});Le.displayName="Switch";var Rt=Le,it=ee(12919),$e=ee(48755),Te=ee(2171),Oe=ee(31756),Xe=ee(36237),pt=ee(17835),At=ee(63356),je=ee(16931),Be=ee(51636);const Je=Ke=>{const{componentCls:gt,trackHeightSM:Yt,trackPadding:Ne,trackMinWidthSM:me,innerMinMarginSM:Pt,innerMaxMarginSM:Ut,handleSizeSM:kt,calc:ge}=Ke,et=`${gt}-inner`,rt=(0,Xe.unit)(ge(kt).add(ge(Ne).mul(2)).equal()),_t=(0,Xe.unit)(ge(Ut).mul(2).equal());return{[gt]:{[`&${gt}-small`]:{minWidth:me,height:Yt,lineHeight:(0,Xe.unit)(Yt),[`${gt}-inner`]:{paddingInlineStart:Ut,paddingInlineEnd:Pt,[`${et}-checked, ${et}-unchecked`]:{minHeight:Yt},[`${et}-checked`]:{marginInlineStart:`calc(-100% + ${rt} - ${_t})`,marginInlineEnd:`calc(100% - ${rt} + ${_t})`},[`${et}-unchecked`]:{marginTop:ge(Yt).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${gt}-handle`]:{width:kt,height:kt},[`${gt}-loading-icon`]:{top:ge(ge(kt).sub(Ke.switchLoadingIconSize)).div(2).equal(),fontSize:Ke.switchLoadingIconSize},[`&${gt}-checked`]:{[`${gt}-inner`]:{paddingInlineStart:Pt,paddingInlineEnd:Ut,[`${et}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${et}-unchecked`]:{marginInlineStart:`calc(100% - ${rt} + ${_t})`,marginInlineEnd:`calc(-100% + ${rt} - ${_t})`}},[`${gt}-handle`]:{insetInlineStart:`calc(100% - ${(0,Xe.unit)(ge(kt).add(Ne).equal())})`}},[`&:not(${gt}-disabled):active`]:{[`&:not(${gt}-checked) ${et}`]:{[`${et}-unchecked`]:{marginInlineStart:ge(Ke.marginXXS).div(2).equal(),marginInlineEnd:ge(Ke.marginXXS).mul(-1).div(2).equal()}},[`&${gt}-checked ${et}`]:{[`${et}-checked`]:{marginInlineStart:ge(Ke.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:ge(Ke.marginXXS).div(2).equal()}}}}}}},nt=Ke=>{const{componentCls:gt,handleSize:Yt,calc:Ne}=Ke;return{[gt]:{[`${gt}-loading-icon${Ke.iconCls}`]:{position:"relative",top:Ne(Ne(Yt).sub(Ke.fontSize)).div(2).equal(),color:Ke.switchLoadingIconColor,verticalAlign:"top"},[`&${gt}-checked ${gt}-loading-icon`]:{color:Ke.switchColor}}}},zt=Ke=>{const{componentCls:gt,trackPadding:Yt,handleBg:Ne,handleShadow:me,handleSize:Pt,calc:Ut}=Ke,kt=`${gt}-handle`;return{[gt]:{[kt]:{position:"absolute",top:Yt,insetInlineStart:Yt,width:Pt,height:Pt,transition:`all ${Ke.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:Ne,borderRadius:Ut(Pt).div(2).equal(),boxShadow:me,transition:`all ${Ke.switchDuration} ease-in-out`,content:'""'}},[`&${gt}-checked ${kt}`]:{insetInlineStart:`calc(100% - ${(0,Xe.unit)(Ut(Pt).add(Yt).equal())})`},[`&:not(${gt}-disabled):active`]:{[`${kt}::before`]:{insetInlineEnd:Ke.switchHandleActiveInset,insetInlineStart:0},[`&${gt}-checked ${kt}::before`]:{insetInlineEnd:0,insetInlineStart:Ke.switchHandleActiveInset}}}}},yt=Ke=>{const{componentCls:gt,trackHeight:Yt,trackPadding:Ne,innerMinMargin:me,innerMaxMargin:Pt,handleSize:Ut,calc:kt}=Ke,ge=`${gt}-inner`,et=(0,Xe.unit)(kt(Ut).add(kt(Ne).mul(2)).equal()),rt=(0,Xe.unit)(kt(Pt).mul(2).equal());return{[gt]:{[ge]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:Pt,paddingInlineEnd:me,transition:`padding-inline-start ${Ke.switchDuration} ease-in-out, padding-inline-end ${Ke.switchDuration} ease-in-out`,[`${ge}-checked, ${ge}-unchecked`]:{display:"block",color:Ke.colorTextLightSolid,fontSize:Ke.fontSizeSM,transition:`margin-inline-start ${Ke.switchDuration} ease-in-out, margin-inline-end ${Ke.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:Yt},[`${ge}-checked`]:{marginInlineStart:`calc(-100% + ${et} - ${rt})`,marginInlineEnd:`calc(100% - ${et} + ${rt})`},[`${ge}-unchecked`]:{marginTop:kt(Yt).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${gt}-checked ${ge}`]:{paddingInlineStart:me,paddingInlineEnd:Pt,[`${ge}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${ge}-unchecked`]:{marginInlineStart:`calc(100% - ${et} + ${rt})`,marginInlineEnd:`calc(-100% + ${et} - ${rt})`}},[`&:not(${gt}-disabled):active`]:{[`&:not(${gt}-checked) ${ge}`]:{[`${ge}-unchecked`]:{marginInlineStart:kt(Ne).mul(2).equal(),marginInlineEnd:kt(Ne).mul(-1).mul(2).equal()}},[`&${gt}-checked ${ge}`]:{[`${ge}-checked`]:{marginInlineStart:kt(Ne).mul(-1).mul(2).equal(),marginInlineEnd:kt(Ne).mul(2).equal()}}}}}},ot=Ke=>{const{componentCls:gt,trackHeight:Yt,trackMinWidth:Ne}=Ke;return{[gt]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,At.Wf)(Ke)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:Ne,height:Yt,lineHeight:(0,Xe.unit)(Yt),verticalAlign:"middle",background:Ke.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${Ke.motionDurationMid}`,userSelect:"none",[`&:hover:not(${gt}-disabled)`]:{background:Ke.colorTextTertiary}}),(0,At.Qy)(Ke)),{[`&${gt}-checked`]:{background:Ke.switchColor,[`&:hover:not(${gt}-disabled)`]:{background:Ke.colorPrimaryHover}},[`&${gt}-loading, &${gt}-disabled`]:{cursor:"not-allowed",opacity:Ke.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${gt}-rtl`]:{direction:"rtl"}})}},ct=Ke=>{const{fontSize:gt,lineHeight:Yt,controlHeight:Ne,colorWhite:me}=Ke,Pt=gt*Yt,Ut=Ne/2,kt=2,ge=Pt-kt*2,et=Ut-kt*2;return{trackHeight:Pt,trackHeightSM:Ut,trackMinWidth:ge*2+kt*4,trackMinWidthSM:et*2+kt*2,trackPadding:kt,handleBg:me,handleSize:ge,handleSizeSM:et,handleShadow:`0 2px 4px 0 ${new pt.FastColor("#00230b").setA(.2).toRgbString()}`,innerMinMargin:ge/2,innerMaxMargin:ge+kt+kt*2,innerMinMarginSM:et/2,innerMaxMarginSM:et+kt+kt*2}};var Se=(0,je.I$)("Switch",Ke=>{const gt=(0,Be.mergeToken)(Ke,{switchDuration:Ke.motionDurationMid,switchColor:Ke.colorPrimary,switchDisabledOpacity:Ke.opacityLoading,switchLoadingIconSize:Ke.calc(Ke.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${Ke.opacityLoading})`,switchHandleActiveInset:"-30%"});return[ot(gt),yt(gt),zt(gt),nt(gt),Je(gt)]},ct),lt=function(Ke,gt){var Yt={};for(var Ne in Ke)Object.prototype.hasOwnProperty.call(Ke,Ne)&>.indexOf(Ne)<0&&(Yt[Ne]=Ke[Ne]);if(Ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var me=0,Ne=Object.getOwnPropertySymbols(Ke);me<Ne.length;me++)gt.indexOf(Ne[me])<0&&Object.prototype.propertyIsEnumerable.call(Ke,Ne[me])&&(Yt[Ne[me]]=Ke[Ne[me]]);return Yt};const de=b.forwardRef((Ke,gt)=>{const{prefixCls:Yt,size:Ne,disabled:me,loading:Pt,className:Ut,rootClassName:kt,style:ge,checked:et,value:rt,defaultChecked:_t,defaultValue:Qe,onChange:Bt}=Ke,qe=lt(Ke,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[tn,Tt]=(0,Ce.Z)(!1,{value:et!=null?et:rt,defaultValue:_t!=null?_t:Qe}),{getPrefixCls:ae,direction:ne,switch:te}=b.useContext($e.E_),oe=b.useContext(Te.Z),ce=(me!=null?me:oe)||Pt,re=ae("switch",Yt),le=b.createElement("div",{className:`${re}-handle`},Pt&&b.createElement(We.Z,{className:`${re}-loading-icon`})),[ye,ft,Ae]=Se(re),ke=(0,Oe.Z)(Ne),Ve=Ue()(te==null?void 0:te.className,{[`${re}-small`]:ke==="small",[`${re}-loading`]:Pt,[`${re}-rtl`]:ne==="rtl"},Ut,kt,ft,Ae),Ye=Object.assign(Object.assign({},te==null?void 0:te.style),ge),mt=function(){Tt(arguments.length<=0?void 0:arguments[0]),Bt==null||Bt.apply(void 0,arguments)};return ye(b.createElement(it.Z,{component:"Switch"},b.createElement(Rt,Object.assign({},qe,{checked:tn,onChange:mt,prefixCls:re,className:Ve,style:Ye,disabled:ce,ref:gt,loadingIcon:le}))))});de.__ANT_SWITCH=!0;var Dt=de},70858:function(wn,Qt,ee){"use strict";ee.d(Qt,{default:function(){return mc}});var b=ee(59301),We={},fe="rc-table-internal-hook",Ue=ee(72190),Ee=ee(6089),xe=ee(34280),Ie=ee(13697),Ze=ee(4676);function Ce(ve){var pe=b.createContext(void 0),_e=function(Nt){var jt=Nt.value,ln=Nt.children,en=b.useRef(jt);en.current=jt;var fn=b.useState(function(){return{getValue:function(){return en.current},listeners:new Set}}),un=(0,Ue.Z)(fn,1),Ln=un[0];return(0,xe.Z)(function(){(0,Ze.unstable_batchedUpdates)(function(){Ln.listeners.forEach(function(Pn){Pn(jt)})})},[jt]),b.createElement(pe.Provider,{value:Ln},ln)};return{Context:pe,Provider:_e,defaultValue:ve}}function ue(ve,pe){var _e=(0,Ee.Z)(typeof pe=="function"?pe:function(Pn){if(pe===void 0)return Pn;if(!Array.isArray(pe))return Pn[pe];var En={};return pe.forEach(function(yn){En[yn]=Pn[yn]}),En}),dt=b.useContext(ve==null?void 0:ve.Context),Nt=dt||{},jt=Nt.listeners,ln=Nt.getValue,en=b.useRef();en.current=_e(dt?ln():ve==null?void 0:ve.defaultValue);var fn=b.useState({}),un=(0,Ue.Z)(fn,2),Ln=un[1];return(0,xe.Z)(function(){if(!dt)return;function Pn(En){var yn=_e(En);(0,Ie.Z)(en.current,yn,!0)||Ln({})}return jt.add(Pn),function(){jt.delete(Pn)}},[dt]),en.current}var tt=ee(60499),Le=ee(8654);function Rt(){var ve=b.createContext(null);function pe(){return b.useContext(ve)}function _e(Nt,jt){var ln=(0,Le.Yr)(Nt),en=function(un,Ln){var Pn=ln?{ref:Ln}:{},En=b.useRef(0),yn=b.useRef(un),vn=pe();return vn!==null?b.createElement(Nt,(0,tt.Z)({},un,Pn)):((!jt||jt(yn.current,un))&&(En.current+=1),yn.current=un,b.createElement(ve.Provider,{value:En.current},b.createElement(Nt,(0,tt.Z)({},un,Pn))))};return ln?b.forwardRef(en):en}function dt(Nt,jt){var ln=(0,Le.Yr)(Nt),en=function(un,Ln){var Pn=ln?{ref:Ln}:{};return pe(),b.createElement(Nt,(0,tt.Z)({},un,Pn))};return ln?b.memo(b.forwardRef(en),jt):b.memo(en,jt)}return{makeImmutable:_e,responseImmutable:dt,useImmutableMark:pe}}var it=Rt(),$e=it.makeImmutable,Te=it.responseImmutable,Oe=it.useImmutableMark,Xe=Rt(),pt=Xe.makeImmutable,At=Xe.responseImmutable,je=Xe.useImmutableMark,Be=Ce(),Je=Be;function nt(ve,pe){var _e=React.useRef(0);_e.current+=1;var dt=React.useRef(ve),Nt=[];Object.keys(ve||{}).map(function(ln){var en;(ve==null?void 0:ve[ln])!==((en=dt.current)===null||en===void 0?void 0:en[ln])&&Nt.push(ln)}),dt.current=ve;var jt=React.useRef([]);return Nt.length&&(jt.current=Nt),React.useDebugValue(_e.current),React.useDebugValue(jt.current.join(", ")),pe&&console.log("".concat(pe,":"),_e.current,jt.current),_e.current}var zt=null,yt=null,ot=ee(43749),ct=ee(85899),Se=ee(18642),lt=ee(92310),Ge=ee.n(lt),de=ee(80547),Dt=ee(97938),Ke=ee(48736),gt=b.createContext({renderWithProps:!1}),Yt=gt,Ne="RC_TABLE_KEY";function me(ve){return ve==null?[]:Array.isArray(ve)?ve:[ve]}function Pt(ve){var pe=[],_e={};return ve.forEach(function(dt){for(var Nt=dt||{},jt=Nt.key,ln=Nt.dataIndex,en=jt||me(ln).join("-")||Ne;_e[en];)en="".concat(en,"_next");_e[en]=!0,pe.push(en)}),pe}function Ut(ve){return ve!=null}function kt(ve){return typeof ve=="number"&&!Number.isNaN(ve)}function ge(ve){return ve&&(0,ot.Z)(ve)==="object"&&!Array.isArray(ve)&&!b.isValidElement(ve)}function et(ve,pe,_e,dt,Nt,jt){var ln=b.useContext(Yt),en=je(),fn=(0,de.Z)(function(){if(Ut(dt))return[dt];var un=pe==null||pe===""?[]:Array.isArray(pe)?pe:[pe],Ln=(0,Dt.Z)(ve,un),Pn=Ln,En=void 0;if(Nt){var yn=Nt(Ln,ve,_e);ge(yn)?(Pn=yn.children,En=yn.props,ln.renderWithProps=!0):Pn=yn}return[Pn,En]},[en,ve,dt,pe,Nt,_e],function(un,Ln){if(jt){var Pn=(0,Ue.Z)(un,2),En=Pn[1],yn=(0,Ue.Z)(Ln,2),vn=yn[1];return jt(vn,En)}return ln.renderWithProps?!0:!(0,Ie.Z)(un,Ln,!0)});return fn}function rt(ve,pe,_e,dt){var Nt=ve+pe-1;return ve<=dt&&Nt>=_e}function _t(ve,pe){return ue(Je,function(_e){var dt=rt(ve,pe||1,_e.hoverStartRow,_e.hoverEndRow);return[dt,_e.onHover]})}var Qe=ee(70425),Bt=function(pe){var _e=pe.ellipsis,dt=pe.rowType,Nt=pe.children,jt,ln=_e===!0?{showTitle:!0}:_e;return ln&&(ln.showTitle||dt==="header")&&(typeof Nt=="string"||typeof Nt=="number"?jt=Nt.toString():b.isValidElement(Nt)&&typeof Nt.props.children=="string"&&(jt=Nt.props.children)),jt};function qe(ve){var pe,_e,dt,Nt,jt,ln,en,fn,un=ve.component,Ln=ve.children,Pn=ve.ellipsis,En=ve.scope,yn=ve.prefixCls,vn=ve.className,nr=ve.align,Wn=ve.record,rr=ve.render,ur=ve.dataIndex,ir=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,kr=ve.lastFixLeft,Br=ve.firstFixRight,gr=ve.lastFixRight,fr=ve.appendNode,Mr=ve.additionalProps,Rr=Mr===void 0?{}:Mr,Xr=ve.isSticky,xr="".concat(yn,"-cell"),wi=ue(Je,["supportSticky","allColumnsFixedLeft","rowHoverable"]),Oi=wi.supportSticky,yo=wi.allColumnsFixedLeft,fo=wi.rowHoverable,ro=et(Wn,ur,ir,Ln,rr,vr),ho=(0,Ue.Z)(ro,2),So=ho[0],Di=ho[1],Ti={},wo=typeof Gr=="number"&&Oi,Bo=typeof zr=="number"&&Oi;wo&&(Ti.position="sticky",Ti.left=Gr),Bo&&(Ti.position="sticky",Ti.right=zr);var jr=(pe=(_e=(dt=Di==null?void 0:Di.colSpan)!==null&&dt!==void 0?dt:Rr.colSpan)!==null&&_e!==void 0?_e:Dr)!==null&&pe!==void 0?pe:1,di=(Nt=(jt=(ln=Di==null?void 0:Di.rowSpan)!==null&&ln!==void 0?ln:Rr.rowSpan)!==null&&jt!==void 0?jt:mi)!==null&&Nt!==void 0?Nt:1,Fr=_t(Sr,di),Tr=(0,Ue.Z)(Fr,2),Ri=Tr[0],_i=Tr[1],co=(0,Qe.zX)(function(eo){var Ji;Wn&&_i(Sr,Sr+di-1),Rr==null||(Ji=Rr.onMouseEnter)===null||Ji===void 0||Ji.call(Rr,eo)}),to=(0,Qe.zX)(function(eo){var Ji;Wn&&_i(-1,-1),Rr==null||(Ji=Rr.onMouseLeave)===null||Ji===void 0||Ji.call(Rr,eo)});if(jr===0||di===0)return null;var Eo=(en=Rr.title)!==null&&en!==void 0?en:Bt({rowType:Nr,ellipsis:Pn,children:So}),Ao=Ge()(xr,vn,(fn={},(0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)(fn,"".concat(xr,"-fix-left"),wo&&Oi),"".concat(xr,"-fix-left-first"),ii&&Oi),"".concat(xr,"-fix-left-last"),kr&&Oi),"".concat(xr,"-fix-left-all"),kr&&yo&&Oi),"".concat(xr,"-fix-right"),Bo&&Oi),"".concat(xr,"-fix-right-first"),Br&&Oi),"".concat(xr,"-fix-right-last"),gr&&Oi),"".concat(xr,"-ellipsis"),Pn),"".concat(xr,"-with-append"),fr),"".concat(xr,"-fix-sticky"),(wo||Bo)&&Xr&&Oi),(0,Se.Z)(fn,"".concat(xr,"-row-hover"),!Di&&Ri)),Rr.className,Di==null?void 0:Di.className),Kr={};nr&&(Kr.textAlign=nr);var ei=(0,ct.Z)((0,ct.Z)((0,ct.Z)((0,ct.Z)({},Di==null?void 0:Di.style),Ti),Kr),Rr.style),Gi=So;return(0,ot.Z)(Gi)==="object"&&!Array.isArray(Gi)&&!b.isValidElement(Gi)&&(Gi=null),Pn&&(kr||Br)&&(Gi=b.createElement("span",{className:"".concat(xr,"-content")},Gi)),b.createElement(un,(0,tt.Z)({},Di,Rr,{className:Ao,style:ei,title:Eo,scope:En,onMouseEnter:fo?co:void 0,onMouseLeave:fo?to:void 0,colSpan:jr!==1?jr:null,rowSpan:di!==1?di:null}),fr,Gi)}var tn=b.memo(qe);function Tt(ve,pe,_e,dt,Nt){var jt=_e[ve]||{},ln=_e[pe]||{},en,fn;jt.fixed==="left"?en=dt.left[Nt==="rtl"?pe:ve]:ln.fixed==="right"&&(fn=dt.right[Nt==="rtl"?ve:pe]);var un=!1,Ln=!1,Pn=!1,En=!1,yn=_e[pe+1],vn=_e[ve-1],nr=yn&&!yn.fixed||vn&&!vn.fixed||_e.every(function(vr){return vr.fixed==="left"});if(Nt==="rtl"){if(en!==void 0){var Wn=vn&&vn.fixed==="left";En=!Wn&&nr}else if(fn!==void 0){var rr=yn&&yn.fixed==="right";Pn=!rr&&nr}}else if(en!==void 0){var ur=yn&&yn.fixed==="left";un=!ur&&nr}else if(fn!==void 0){var ir=vn&&vn.fixed==="right";Ln=!ir&&nr}return{fixLeft:en,fixRight:fn,lastFixLeft:un,firstFixRight:Ln,lastFixRight:Pn,firstFixLeft:En,isSticky:dt.isSticky}}var ae=b.createContext({}),ne=ae;function te(ve){var pe=ve.className,_e=ve.index,dt=ve.children,Nt=ve.colSpan,jt=Nt===void 0?1:Nt,ln=ve.rowSpan,en=ve.align,fn=ue(Je,["prefixCls","direction"]),un=fn.prefixCls,Ln=fn.direction,Pn=b.useContext(ne),En=Pn.scrollColumnIndex,yn=Pn.stickyOffsets,vn=Pn.flattenColumns,nr=_e+jt-1,Wn=nr+1===En?jt+1:jt,rr=Tt(_e,_e+Wn-1,vn,yn,Ln);return b.createElement(tn,(0,tt.Z)({className:pe,index:_e,component:"td",prefixCls:un,record:null,dataIndex:null,align:en,colSpan:Wn,rowSpan:ln,render:function(){return dt}},rr))}var oe=ee(42244),ce=["children"];function re(ve){var pe=ve.children,_e=(0,oe.Z)(ve,ce);return b.createElement("tr",_e,pe)}function le(ve){var pe=ve.children;return pe}le.Row=re,le.Cell=te;var ye=le;function ft(ve){var pe=ve.children,_e=ve.stickyOffsets,dt=ve.flattenColumns,Nt=ue(Je,"prefixCls"),jt=dt.length-1,ln=dt[jt],en=b.useMemo(function(){return{stickyOffsets:_e,flattenColumns:dt,scrollColumnIndex:ln!=null&&ln.scrollbar?jt:null}},[ln,dt,jt,_e]);return b.createElement(ne.Provider,{value:en},b.createElement("tfoot",{className:"".concat(Nt,"-summary")},pe))}var Ae=At(ft),ke=ye,Ve=ee(29301),Ye=ee(24514),mt=ee(75152),we=ee(26112);function De(ve,pe,_e,dt,Nt,jt,ln){ve.push({record:pe,indent:_e,index:ln});var en=jt(pe),fn=Nt==null?void 0:Nt.has(en);if(pe&&Array.isArray(pe[dt])&&fn)for(var un=0;un<pe[dt].length;un+=1)De(ve,pe[dt][un],_e+1,dt,Nt,jt,un)}function Zt(ve,pe,_e,dt){var Nt=b.useMemo(function(){if(_e!=null&&_e.size){for(var jt=[],ln=0;ln<(ve==null?void 0:ve.length);ln+=1){var en=ve[ln];De(jt,en,0,pe,_e,dt,ln)}return jt}return ve==null?void 0:ve.map(function(fn,un){return{record:fn,indent:0,index:un}})},[ve,pe,_e,dt]);return Nt}function Ht(ve,pe,_e,dt){var Nt=ue(Je,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),jt=Nt.flattenColumns,ln=Nt.expandableType,en=Nt.expandedKeys,fn=Nt.childrenColumnName,un=Nt.onTriggerExpand,Ln=Nt.rowExpandable,Pn=Nt.onRow,En=Nt.expandRowByClick,yn=Nt.rowClassName,vn=ln==="nest",nr=ln==="row"&&(!Ln||Ln(ve)),Wn=nr||vn,rr=en&&en.has(pe),ur=fn&&ve&&ve[fn],ir=(0,Qe.zX)(un),vr=Pn==null?void 0:Pn(ve,_e),Sr=vr==null?void 0:vr.onClick,Nr=function(zr){En&&Wn&&un(ve,zr);for(var ii=arguments.length,kr=new Array(ii>1?ii-1:0),Br=1;Br<ii;Br++)kr[Br-1]=arguments[Br];Sr==null||Sr.apply(void 0,[zr].concat(kr))},Dr;typeof yn=="string"?Dr=yn:typeof yn=="function"&&(Dr=yn(ve,_e,dt));var mi=Pt(jt);return(0,ct.Z)((0,ct.Z)({},Nt),{},{columnsKey:mi,nestExpandable:vn,expanded:rr,hasNestChildren:ur,record:ve,onTriggerExpand:ir,rowSupportExpand:nr,expandable:Wn,rowProps:(0,ct.Z)((0,ct.Z)({},vr),{},{className:Ge()(Dr,vr==null?void 0:vr.className),onClick:Nr})})}function nn(ve){var pe=ve.prefixCls,_e=ve.children,dt=ve.component,Nt=ve.cellComponent,jt=ve.className,ln=ve.expanded,en=ve.colSpan,fn=ve.isEmpty,un=ue(Je,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),Ln=un.scrollbarSize,Pn=un.fixHeader,En=un.fixColumn,yn=un.componentWidth,vn=un.horizonScroll,nr=_e;return(fn?vn&&yn:En)&&(nr=b.createElement("div",{style:{width:yn-(Pn&&!fn?Ln:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(pe,"-expanded-row-fixed")},nr)),b.createElement(dt,{className:jt,style:{display:ln?null:"none"}},b.createElement(tn,{component:Nt,prefixCls:pe,colSpan:en},nr))}var qt=nn;function Et(ve){var pe=ve.prefixCls,_e=ve.record,dt=ve.onExpand,Nt=ve.expanded,jt=ve.expandable,ln="".concat(pe,"-row-expand-icon");if(!jt)return b.createElement("span",{className:Ge()(ln,"".concat(pe,"-row-spaced"))});var en=function(un){dt(_e,un),un.stopPropagation()};return b.createElement("span",{className:Ge()(ln,(0,Se.Z)((0,Se.Z)({},"".concat(pe,"-row-expanded"),Nt),"".concat(pe,"-row-collapsed"),!Nt)),onClick:en})}function on(ve,pe,_e){var dt=[];function Nt(jt){(jt||[]).forEach(function(ln,en){dt.push(pe(ln,en)),Nt(ln[_e])})}return Nt(ve),dt}function Kt(ve,pe,_e,dt){return typeof ve=="string"?ve:typeof ve=="function"?ve(pe,_e,dt):""}function He(ve,pe,_e,dt,Nt){var jt=ve.record,ln=ve.prefixCls,en=ve.columnsKey,fn=ve.fixedInfoList,un=ve.expandIconColumnIndex,Ln=ve.nestExpandable,Pn=ve.indentSize,En=ve.expandIcon,yn=ve.expanded,vn=ve.hasNestChildren,nr=ve.onTriggerExpand,Wn=en[_e],rr=fn[_e],ur;_e===(un||0)&&Ln&&(ur=b.createElement(b.Fragment,null,b.createElement("span",{style:{paddingLeft:"".concat(Pn*dt,"px")},className:"".concat(ln,"-row-indent indent-level-").concat(dt)}),En({prefixCls:ln,expanded:yn,expandable:vn,record:jt,onExpand:nr})));var ir;return pe.onCell&&(ir=pe.onCell(jt,Nt)),{key:Wn,fixedInfo:rr,appendCellNode:ur,additionalCellProps:ir||{}}}function ht(ve){var pe=ve.className,_e=ve.style,dt=ve.record,Nt=ve.index,jt=ve.renderIndex,ln=ve.rowKey,en=ve.indent,fn=en===void 0?0:en,un=ve.rowComponent,Ln=ve.cellComponent,Pn=ve.scopeCellComponent,En=Ht(dt,ln,Nt,fn),yn=En.prefixCls,vn=En.flattenColumns,nr=En.expandedRowClassName,Wn=En.expandedRowRender,rr=En.rowProps,ur=En.expanded,ir=En.rowSupportExpand,vr=b.useRef(!1);vr.current||(vr.current=ur);var Sr=Kt(nr,dt,Nt,fn),Nr=b.createElement(un,(0,tt.Z)({},rr,{"data-row-key":ln,className:Ge()(pe,"".concat(yn,"-row"),"".concat(yn,"-row-level-").concat(fn),rr==null?void 0:rr.className,(0,Se.Z)({},Sr,fn>=1)),style:(0,ct.Z)((0,ct.Z)({},_e),rr==null?void 0:rr.style)}),vn.map(function(Gr,zr){var ii=Gr.render,kr=Gr.dataIndex,Br=Gr.className,gr=He(En,Gr,zr,fn,Nt),fr=gr.key,Mr=gr.fixedInfo,Rr=gr.appendCellNode,Xr=gr.additionalCellProps;return b.createElement(tn,(0,tt.Z)({className:Br,ellipsis:Gr.ellipsis,align:Gr.align,scope:Gr.rowScope,component:Gr.rowScope?Pn:Ln,prefixCls:yn,key:fr,record:dt,index:Nt,renderIndex:jt,dataIndex:kr,render:ii,shouldCellUpdate:Gr.shouldCellUpdate},Mr,{appendNode:Rr,additionalProps:Xr}))})),Dr;if(ir&&(vr.current||ur)){var mi=Wn(dt,Nt,fn+1,ur);Dr=b.createElement(qt,{expanded:ur,className:Ge()("".concat(yn,"-expanded-row"),"".concat(yn,"-expanded-row-level-").concat(fn+1),Sr),prefixCls:yn,component:un,cellComponent:Ln,colSpan:vn.length,isEmpty:!1},mi)}return b.createElement(b.Fragment,null,Nr,Dr)}var at=At(ht);function Mt(ve){var pe=ve.columnKey,_e=ve.onColumnResize,dt=b.useRef();return(0,xe.Z)(function(){dt.current&&_e(pe,dt.current.offsetWidth)},[]),b.createElement(Ve.Z,{data:pe},b.createElement("td",{ref:dt,style:{padding:0,border:0,height:0}},b.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}var Me=ee(29194);function st(ve){var pe=ve.prefixCls,_e=ve.columnsKey,dt=ve.onColumnResize,Nt=b.useRef(null);return b.createElement("tr",{"aria-hidden":"true",className:"".concat(pe,"-measure-row"),style:{height:0,fontSize:0},ref:Nt},b.createElement(Ve.Z.Collection,{onBatchResize:function(ln){(0,Me.Z)(Nt.current)&&ln.forEach(function(en){var fn=en.data,un=en.size;dt(fn,un.offsetWidth)})}},_e.map(function(jt){return b.createElement(Mt,{key:jt,columnKey:jt,onColumnResize:dt})})))}function Ct(ve){var pe=ve.data,_e=ve.measureColumnWidth,dt=ue(Je,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),Nt=dt.prefixCls,jt=dt.getComponent,ln=dt.onColumnResize,en=dt.flattenColumns,fn=dt.getRowKey,un=dt.expandedKeys,Ln=dt.childrenColumnName,Pn=dt.emptyNode,En=Zt(pe,Ln,un,fn),yn=b.useRef({renderWithProps:!1}),vn=jt(["body","wrapper"],"tbody"),nr=jt(["body","row"],"tr"),Wn=jt(["body","cell"],"td"),rr=jt(["body","cell"],"th"),ur;pe.length?ur=En.map(function(vr,Sr){var Nr=vr.record,Dr=vr.indent,mi=vr.index,Gr=fn(Nr,Sr);return b.createElement(at,{key:Gr,rowKey:Gr,record:Nr,index:Sr,renderIndex:mi,rowComponent:nr,cellComponent:Wn,scopeCellComponent:rr,indent:Dr})}):ur=b.createElement(qt,{expanded:!0,className:"".concat(Nt,"-placeholder"),prefixCls:Nt,component:nr,cellComponent:Wn,colSpan:en.length,isEmpty:!0},Pn);var ir=Pt(en);return b.createElement(Yt.Provider,{value:yn.current},b.createElement(vn,{className:"".concat(Nt,"-tbody")},_e&&b.createElement(st,{prefixCls:Nt,columnsKey:ir,onColumnResize:ln}),ur))}var Wt=At(Ct),cn=["expandable"],Sn="RC_TABLE_INTERNAL_COL_DEFINE";function Bn(ve){var pe=ve.expandable,_e=(0,oe.Z)(ve,cn),dt;return"expandable"in ve?dt=(0,ct.Z)((0,ct.Z)({},_e),pe):dt=_e,dt.showExpandColumn===!1&&(dt.expandIconColumnIndex=-1),dt}var Rn=["columnType"];function gn(ve){for(var pe=ve.colWidths,_e=ve.columns,dt=ve.columCount,Nt=ue(Je,["tableLayout"]),jt=Nt.tableLayout,ln=[],en=dt||_e.length,fn=!1,un=en-1;un>=0;un-=1){var Ln=pe[un],Pn=_e&&_e[un],En=void 0,yn=void 0;if(Pn&&(En=Pn[Sn],jt==="auto"&&(yn=Pn.minWidth)),Ln||yn||En||fn){var vn=En||{},nr=vn.columnType,Wn=(0,oe.Z)(vn,Rn);ln.unshift(b.createElement("col",(0,tt.Z)({key:un,style:{width:Ln,minWidth:yn}},Wn))),fn=!0}}return b.createElement("colgroup",null,ln)}var Nn=gn,dn=ee(77654),Xt=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function rn(ve,pe){return(0,b.useMemo)(function(){for(var _e=[],dt=0;dt<pe;dt+=1){var Nt=ve[dt];if(Nt!==void 0)_e[dt]=Nt;else return null}return _e},[ve.join("_"),pe])}var an=b.forwardRef(function(ve,pe){var _e=ve.className,dt=ve.noData,Nt=ve.columns,jt=ve.flattenColumns,ln=ve.colWidths,en=ve.columCount,fn=ve.stickyOffsets,un=ve.direction,Ln=ve.fixHeader,Pn=ve.stickyTopOffset,En=ve.stickyBottomOffset,yn=ve.stickyClassName,vn=ve.onScroll,nr=ve.maxContentScroll,Wn=ve.children,rr=(0,oe.Z)(ve,Xt),ur=ue(Je,["prefixCls","scrollbarSize","isSticky","getComponent"]),ir=ur.prefixCls,vr=ur.scrollbarSize,Sr=ur.isSticky,Nr=ur.getComponent,Dr=Nr(["header","table"],"table"),mi=Sr&&!Ln?0:vr,Gr=b.useRef(null),zr=b.useCallback(function(Xr){(0,Le.mH)(pe,Xr),(0,Le.mH)(Gr,Xr)},[]);b.useEffect(function(){var Xr;function xr(wi){var Oi=wi,yo=Oi.currentTarget,fo=Oi.deltaX;fo&&(vn({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 jt.every(function(Xr){return Xr.width})},[jt]),kr=jt[jt.length-1],Br={fixed:kr?kr.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(ir,"-cell-scrollbar")}}},gr=(0,b.useMemo)(function(){return mi?[].concat((0,dn.Z)(Nt),[Br]):Nt},[mi,Nt]),fr=(0,b.useMemo)(function(){return mi?[].concat((0,dn.Z)(jt),[Br]):jt},[mi,jt]),Mr=(0,b.useMemo)(function(){var Xr=fn.right,xr=fn.left;return(0,ct.Z)((0,ct.Z)({},fn),{},{left:un==="rtl"?[].concat((0,dn.Z)(xr.map(function(wi){return wi+mi})),[0]):xr,right:un==="rtl"?Xr:[].concat((0,dn.Z)(Xr.map(function(wi){return wi+mi})),[0]),isSticky:Sr})},[mi,fn,Sr]),Rr=rn(ln,en);return b.createElement("div",{style:(0,ct.Z)({overflow:"hidden"},Sr?{top:Pn,bottom:En}:{}),ref:zr,className:Ge()(_e,(0,Se.Z)({},yn,!!yn))},b.createElement(Dr,{style:{tableLayout:"fixed",visibility:dt||Rr?null:"hidden"}},(!dt||!nr||ii)&&b.createElement(Nn,{colWidths:Rr?[].concat((0,dn.Z)(Rr),[mi]):[],columCount:en+1,columns:fr}),Wn((0,ct.Z)((0,ct.Z)({},rr),{},{stickyOffsets:Mr,columns:gr,flattenColumns:fr}))))}),Jt=b.memo(an),pn=function(pe){var _e=pe.cells,dt=pe.stickyOffsets,Nt=pe.flattenColumns,jt=pe.rowComponent,ln=pe.cellComponent,en=pe.onHeaderRow,fn=pe.index,un=ue(Je,["prefixCls","direction"]),Ln=un.prefixCls,Pn=un.direction,En;en&&(En=en(_e.map(function(vn){return vn.column}),fn));var yn=Pt(_e.map(function(vn){return vn.column}));return b.createElement(jt,En,_e.map(function(vn,nr){var Wn=vn.column,rr=Tt(vn.colStart,vn.colEnd,Nt,dt,Pn),ur;return Wn&&Wn.onHeaderCell&&(ur=vn.column.onHeaderCell(Wn)),b.createElement(tn,(0,tt.Z)({},vn,{scope:Wn.title?vn.colSpan>1?"colgroup":"col":null,ellipsis:Wn.ellipsis,align:Wn.align,component:ln,prefixCls:Ln,key:yn[nr]},rr,{additionalProps:ur,rowType:"header"}))}))},mn=pn;function Cn(ve){var pe=[];function _e(ln,en){var fn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;pe[fn]=pe[fn]||[];var un=en,Ln=ln.filter(Boolean).map(function(Pn){var En={key:Pn.key,className:Pn.className||"",children:Pn.title,column:Pn,colStart:un},yn=1,vn=Pn.children;return vn&&vn.length>0&&(yn=_e(vn,un,fn+1).reduce(function(nr,Wn){return nr+Wn},0),En.hasSubColumns=!0),"colSpan"in Pn&&(yn=Pn.colSpan),"rowSpan"in Pn&&(En.rowSpan=Pn.rowSpan),En.colSpan=yn,En.colEnd=En.colStart+yn-1,pe[fn].push(En),un+=yn,yn});return Ln}_e(ve,0);for(var dt=pe.length,Nt=function(en){pe[en].forEach(function(fn){!("rowSpan"in fn)&&!fn.hasSubColumns&&(fn.rowSpan=dt-en)})},jt=0;jt<dt;jt+=1)Nt(jt);return pe}var Fn=function(pe){var _e=pe.stickyOffsets,dt=pe.columns,Nt=pe.flattenColumns,jt=pe.onHeaderRow,ln=ue(Je,["prefixCls","getComponent"]),en=ln.prefixCls,fn=ln.getComponent,un=b.useMemo(function(){return Cn(dt)},[dt]),Ln=fn(["header","wrapper"],"thead"),Pn=fn(["header","row"],"tr"),En=fn(["header","cell"],"th");return b.createElement(Ln,{className:"".concat(en,"-thead")},un.map(function(yn,vn){var nr=b.createElement(mn,{key:vn,flattenColumns:Nt,cells:yn,stickyOffsets:_e,rowComponent:Pn,cellComponent:En,onHeaderRow:jt,index:vn});return nr}))},zn=At(Fn),Zn=ee(11592);function Xn(ve){var pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof pe=="number"?pe:pe.endsWith("%")?ve*parseFloat(pe)/100:null}function _n(ve,pe,_e){return b.useMemo(function(){if(pe&&pe>0){var dt=0,Nt=0;ve.forEach(function(En){var yn=Xn(pe,En.width);yn?dt+=yn:Nt+=1});var jt=Math.max(pe,_e),ln=Math.max(jt-dt,Nt),en=Nt,fn=ln/Nt,un=0,Ln=ve.map(function(En){var yn=(0,ct.Z)({},En),vn=Xn(pe,yn.width);if(vn)yn.width=vn;else{var nr=Math.floor(fn);yn.width=en===1?ln:nr,ln-=nr,en-=1}return un+=yn.width,yn});if(un<jt){var Pn=jt/un;ln=jt,Ln.forEach(function(En,yn){var vn=Math.floor(En.width*Pn);En.width=yn===Ln.length-1?ln:vn,ln-=vn})}return[Ln,Math.max(un,jt)]}return[ve,pe]},[ve,pe,_e])}var pr=["children"],ar=["fixed"];function sn(ve){return(0,Zn.Z)(ve).filter(function(pe){return b.isValidElement(pe)}).map(function(pe){var _e=pe.key,dt=pe.props,Nt=dt.children,jt=(0,oe.Z)(dt,pr),ln=(0,ct.Z)({key:_e},jt);return Nt&&(ln.children=sn(Nt)),ln})}function bn(ve){return ve.filter(function(pe){return pe&&(0,ot.Z)(pe)==="object"&&!pe.hidden}).map(function(pe){var _e=pe.children;return _e&&_e.length>0?(0,ct.Z)((0,ct.Z)({},pe),{},{children:bn(_e)}):pe})}function Hn(ve){var pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return ve.filter(function(_e){return _e&&(0,ot.Z)(_e)==="object"}).reduce(function(_e,dt,Nt){var jt=dt.fixed,ln=jt===!0?"left":jt,en="".concat(pe,"-").concat(Nt),fn=dt.children;return fn&&fn.length>0?[].concat((0,dn.Z)(_e),(0,dn.Z)(Hn(fn,en).map(function(un){return(0,ct.Z)({fixed:ln},un)}))):[].concat((0,dn.Z)(_e),[(0,ct.Z)((0,ct.Z)({key:en},dt),{},{fixed:ln})])},[])}function An(ve){return ve.map(function(pe){var _e=pe.fixed,dt=(0,oe.Z)(pe,ar),Nt=_e;return _e==="left"?Nt="right":_e==="right"&&(Nt="left"),(0,ct.Z)({fixed:Nt},dt)})}function ut(ve,pe){var _e=ve.prefixCls,dt=ve.columns,Nt=ve.children,jt=ve.expandable,ln=ve.expandedKeys,en=ve.columnTitle,fn=ve.getRowKey,un=ve.onTriggerExpand,Ln=ve.expandIcon,Pn=ve.rowExpandable,En=ve.expandIconColumnIndex,yn=ve.direction,vn=ve.expandRowByClick,nr=ve.columnWidth,Wn=ve.fixed,rr=ve.scrollWidth,ur=ve.clientWidth,ir=b.useMemo(function(){var kr=dt||sn(Nt)||[];return bn(kr.slice())},[dt,Nt]),vr=b.useMemo(function(){if(jt){var kr=ir.slice();if(!kr.includes(We)){var Br=En||0;Br>=0&&(Br||Wn==="left"||!Wn)&&kr.splice(Br,0,We),Wn==="right"&&kr.splice(ir.length,0,We)}var gr=kr.indexOf(We);kr=kr.filter(function(Xr,xr){return Xr!==We||xr===gr});var fr=ir[gr],Mr;Wn?Mr=Wn:Mr=fr?fr.fixed:null;var Rr=(0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)({},Sn,{className:"".concat(_e,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",en),"fixed",Mr),"className","".concat(_e,"-row-expand-icon-cell")),"width",nr),"render",function(xr,wi,Oi){var yo=fn(wi,Oi),fo=ln.has(yo),ro=Pn?Pn(wi):!0,ho=Ln({prefixCls:_e,expanded:fo,expandable:ro,record:wi,onExpand:un});return vn?b.createElement("span",{onClick:function(Di){return Di.stopPropagation()}},ho):ho});return kr.map(function(Xr){return Xr===We?Rr:Xr})}return ir.filter(function(Xr){return Xr!==We})},[jt,ir,fn,ln,Ln,yn]),Sr=b.useMemo(function(){var kr=vr;return pe&&(kr=pe(kr)),kr.length||(kr=[{render:function(){return null}}]),kr},[pe,vr,yn]),Nr=b.useMemo(function(){return yn==="rtl"?An(Hn(Sr)):Hn(Sr)},[Sr,yn,rr]),Dr=b.useMemo(function(){for(var kr=-1,Br=Nr.length-1;Br>=0;Br-=1){var gr=Nr[Br].fixed;if(gr==="left"||gr===!0){kr=Br;break}}if(kr>=0)for(var fr=0;fr<=kr;fr+=1){var Mr=Nr[fr].fixed;if(Mr!=="left"&&Mr!==!0)return!0}var Rr=Nr.findIndex(function(wi){var Oi=wi.fixed;return Oi==="right"});if(Rr>=0)for(var Xr=Rr;Xr<Nr.length;Xr+=1){var xr=Nr[Xr].fixed;if(xr!=="right")return!0}return!1},[Nr]),mi=_n(Nr,rr,ur),Gr=(0,Ue.Z)(mi,2),zr=Gr[0],ii=Gr[1];return[Sr,zr,ii,Dr]}var Ot=ut;function Fe(ve,pe,_e){var dt=Bn(ve),Nt=dt.expandIcon,jt=dt.expandedRowKeys,ln=dt.defaultExpandedRowKeys,en=dt.defaultExpandAllRows,fn=dt.expandedRowRender,un=dt.onExpand,Ln=dt.onExpandedRowsChange,Pn=dt.childrenColumnName,En=Nt||Et,yn=Pn||"children",vn=b.useMemo(function(){return fn?"row":ve.expandable&&ve.internalHooks===fe&&ve.expandable.__PARENT_RENDER_ICON__||pe.some(function(Sr){return Sr&&(0,ot.Z)(Sr)==="object"&&Sr[yn]})?"nest":!1},[!!fn,pe]),nr=b.useState(function(){return ln||(en?on(pe,_e,yn):[])}),Wn=(0,Ue.Z)(nr,2),rr=Wn[0],ur=Wn[1],ir=b.useMemo(function(){return new Set(jt||rr||[])},[jt,rr]),vr=b.useCallback(function(Sr){var Nr=_e(Sr,pe.indexOf(Sr)),Dr,mi=ir.has(Nr);mi?(ir.delete(Nr),Dr=(0,dn.Z)(ir)):Dr=[].concat((0,dn.Z)(ir),[Nr]),ur(Dr),un&&un(!mi,Sr),Ln&&Ln(Dr)},[_e,ir,pe,un,Ln]);return[dt,vn,ir,En,yn,vr]}function vt(ve,pe,_e){var dt=ve.map(function(Nt,jt){return Tt(jt,jt,ve,pe,_e)});return(0,de.Z)(function(){return dt},[dt],function(Nt,jt){return!(0,Ie.Z)(Nt,jt)})}function ze(ve){var pe=(0,b.useRef)(ve),_e=(0,b.useState)({}),dt=(0,Ue.Z)(_e,2),Nt=dt[1],jt=(0,b.useRef)(null),ln=(0,b.useRef)([]);function en(fn){ln.current.push(fn);var un=Promise.resolve();jt.current=un,un.then(function(){if(jt.current===un){var Ln=ln.current,Pn=pe.current;ln.current=[],Ln.forEach(function(En){pe.current=En(pe.current)}),jt.current=null,Pn!==pe.current&&Nt({})}})}return(0,b.useEffect)(function(){return function(){jt.current=null}},[]),[pe.current,en]}function bt(ve){var pe=(0,b.useRef)(ve||null),_e=(0,b.useRef)();function dt(){window.clearTimeout(_e.current)}function Nt(ln){pe.current=ln,dt(),_e.current=window.setTimeout(function(){pe.current=null,_e.current=void 0},100)}function jt(){return pe.current}return(0,b.useEffect)(function(){return dt},[]),[Nt,jt]}function Pe(){var ve=b.useState(-1),pe=(0,Ue.Z)(ve,2),_e=pe[0],dt=pe[1],Nt=b.useState(-1),jt=(0,Ue.Z)(Nt,2),ln=jt[0],en=jt[1],fn=b.useCallback(function(un,Ln){dt(un),en(Ln)},[]);return[_e,ln,fn]}var It=ee(47273),$t=(0,It.Z)()?window:null;function Vt(ve,pe){var _e=(0,ot.Z)(ve)==="object"?ve:{},dt=_e.offsetHeader,Nt=dt===void 0?0:dt,jt=_e.offsetSummary,ln=jt===void 0?0:jt,en=_e.offsetScroll,fn=en===void 0?0:en,un=_e.getContainer,Ln=un===void 0?function(){return $t}:un,Pn=Ln()||$t,En=!!ve;return b.useMemo(function(){return{isSticky:En,stickyClassName:En?"".concat(pe,"-sticky-holder"):"",offsetHeader:Nt,offsetSummary:ln,offsetScroll:fn,container:Pn}},[En,fn,Nt,ln,pe,Pn])}function St(ve,pe,_e){var dt=(0,b.useMemo)(function(){var Nt=pe.length,jt=function(un,Ln,Pn){for(var En=[],yn=0,vn=un;vn!==Ln;vn+=Pn)En.push(yn),pe[vn].fixed&&(yn+=ve[vn]||0);return En},ln=jt(0,Nt,1),en=jt(Nt-1,-1,-1).reverse();return _e==="rtl"?{left:en,right:ln}:{left:ln,right:en}},[ve,pe,_e]);return dt}var xt=St;function wt(ve){var pe=ve.className,_e=ve.children;return b.createElement("div",{className:pe},_e)}var Ft=wt,On=ee(8224),In=ee(16089),Tn=ee(76846);function er(ve){var pe=(0,Tn.bn)(ve),_e=pe.getBoundingClientRect(),dt=document.documentElement;return{left:_e.left+(window.pageXOffset||dt.scrollLeft)-(dt.clientLeft||document.body.clientLeft||0),top:_e.top+(window.pageYOffset||dt.scrollTop)-(dt.clientTop||document.body.clientTop||0)}}var lr=function(pe,_e){var dt,Nt,jt=pe.scrollBodyRef,ln=pe.onScroll,en=pe.offsetScroll,fn=pe.container,un=pe.direction,Ln=ue(Je,"prefixCls"),Pn=((dt=jt.current)===null||dt===void 0?void 0:dt.scrollWidth)||0,En=((Nt=jt.current)===null||Nt===void 0?void 0:Nt.clientWidth)||0,yn=Pn&&En*(En/Pn),vn=b.useRef(),nr=ze({scrollLeft:0,isHiddenScrollBar:!0}),Wn=(0,Ue.Z)(nr,2),rr=Wn[0],ur=Wn[1],ir=b.useRef({delta:0,x:0}),vr=b.useState(!1),Sr=(0,Ue.Z)(vr,2),Nr=Sr[0],Dr=Sr[1],mi=b.useRef(null);b.useEffect(function(){return function(){In.Z.cancel(mi.current)}},[]);var Gr=function(){Dr(!1)},zr=function(fr){fr.persist(),ir.current.delta=fr.pageX-rr.scrollLeft,ir.current.x=0,Dr(!0),fr.preventDefault()},ii=function(fr){var Mr,Rr=fr||((Mr=window)===null||Mr===void 0?void 0:Mr.event),Xr=Rr.buttons;if(!Nr||Xr===0){Nr&&Dr(!1);return}var xr=ir.current.x+fr.pageX-ir.current.x-ir.current.delta,wi=un==="rtl";xr=Math.max(wi?yn-En:0,Math.min(wi?0:En-yn,xr));var Oi=!wi||Math.abs(xr)+Math.abs(yn)<En;Oi&&(ln({scrollLeft:xr/En*(Pn+2)}),ir.current.x=fr.pageX)},kr=function(){In.Z.cancel(mi.current),mi.current=(0,In.Z)(function(){if(jt.current){var fr=er(jt.current).top,Mr=fr+jt.current.offsetHeight,Rr=fn===window?document.documentElement.scrollTop+window.innerHeight:er(fn).top+fn.clientHeight;Mr-(0,mt.Z)()<=Rr||fr>=Rr-en?ur(function(Xr){return(0,ct.Z)((0,ct.Z)({},Xr),{},{isHiddenScrollBar:!0})}):ur(function(Xr){return(0,ct.Z)((0,ct.Z)({},Xr),{},{isHiddenScrollBar:!1})})}})},Br=function(fr){ur(function(Mr){return(0,ct.Z)((0,ct.Z)({},Mr),{},{scrollLeft:fr/Pn*En||0})})};return b.useImperativeHandle(_e,function(){return{setScrollLeft:Br,checkScrollBarVisible:kr}}),b.useEffect(function(){var gr=(0,On.Z)(document.body,"mouseup",Gr,!1),fr=(0,On.Z)(document.body,"mousemove",ii,!1);return kr(),function(){gr.remove(),fr.remove()}},[yn,Nr]),b.useEffect(function(){if(jt.current){for(var gr=[],fr=(0,Tn.bn)(jt.current);fr;)gr.push(fr),fr=fr.parentElement;return gr.forEach(function(Mr){return Mr.addEventListener("scroll",kr,!1)}),window.addEventListener("resize",kr,!1),window.addEventListener("scroll",kr,!1),fn.addEventListener("scroll",kr,!1),function(){gr.forEach(function(Mr){return Mr.removeEventListener("scroll",kr)}),window.removeEventListener("resize",kr),window.removeEventListener("scroll",kr),fn.removeEventListener("scroll",kr)}}},[fn]),b.useEffect(function(){rr.isHiddenScrollBar||ur(function(gr){var fr=jt.current;return fr?(0,ct.Z)((0,ct.Z)({},gr),{},{scrollLeft:fr.scrollLeft/fr.scrollWidth*fr.clientWidth}):gr})},[rr.isHiddenScrollBar]),Pn<=En||!yn||rr.isHiddenScrollBar?null:b.createElement("div",{style:{height:(0,mt.Z)(),width:En,bottom:en},className:"".concat(Ln,"-sticky-scroll")},b.createElement("div",{onMouseDown:zr,ref:vn,className:Ge()("".concat(Ln,"-sticky-scroll-bar"),(0,Se.Z)({},"".concat(Ln,"-sticky-scroll-bar-active"),Nr)),style:{width:"".concat(yn,"px"),transform:"translate3d(".concat(rr.scrollLeft,"px, 0, 0)")}}))},dr=b.forwardRef(lr);function Jn(ve){return null}var Gn=Jn;function Qn(ve){return null}var cr=Qn,Er="rc-table",Cr=[],wr={};function Yn(){return"No Data"}function yr(ve,pe){var _e=(0,ct.Z)({rowKey:"key",prefixCls:Er,emptyText:Yn},ve),dt=_e.prefixCls,Nt=_e.className,jt=_e.rowClassName,ln=_e.style,en=_e.data,fn=_e.rowKey,un=_e.scroll,Ln=_e.tableLayout,Pn=_e.direction,En=_e.title,yn=_e.footer,vn=_e.summary,nr=_e.caption,Wn=_e.id,rr=_e.showHeader,ur=_e.components,ir=_e.emptyText,vr=_e.onRow,Sr=_e.onHeaderRow,Nr=_e.onScroll,Dr=_e.internalHooks,mi=_e.transformColumns,Gr=_e.internalRefs,zr=_e.tailor,ii=_e.getContainerWidth,kr=_e.sticky,Br=_e.rowHoverable,gr=Br===void 0?!0:Br,fr=en||Cr,Mr=!!fr.length,Rr=Dr===fe,Xr=b.useCallback(function(ji,Ui){return(0,Dt.Z)(ur,ji)||Ui},[ur]),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,Ue.Z)(Oi,3),fo=yo[0],ro=yo[1],ho=yo[2],So=Fe(_e,fr,xr),Di=(0,Ue.Z)(So,6),Ti=Di[0],wo=Di[1],Bo=Di[2],jr=Di[3],di=Di[4],Fr=Di[5],Tr=un==null?void 0:un.x,Ri=b.useState(0),_i=(0,Ue.Z)(Ri,2),co=_i[0],to=_i[1],Eo=Ot((0,ct.Z)((0,ct.Z)((0,ct.Z)({},_e),Ti),{},{expandable:!!Ti.expandedRowRender,columnTitle:Ti.columnTitle,expandedKeys:Bo,getRowKey:xr,onTriggerExpand:Fr,expandIcon:jr,expandIconColumnIndex:Ti.expandIconColumnIndex,direction:Pn,scrollWidth:Rr&&zr&&typeof Tr=="number"?Tr:null,clientWidth:co}),Rr?mi:null),Ao=(0,Ue.Z)(Eo,4),Kr=Ao[0],ei=Ao[1],Gi=Ao[2],eo=Ao[3],Ji=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(pe,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(kt(na)){var sl;(sl=po.current)===null||sl===void 0||sl.scrollTo({top:na})}else{var Qa,Nl=Ml!=null?Ml:xr(fr[Ia]);(Qa=po.current.querySelector('[data-row-key="'.concat(Nl,'"]')))===null||Qa===void 0||Qa.scrollIntoView()}}else(ta=po.current)!==null&&ta!==void 0&&ta.scrollTo&&po.current.scrollTo(Ui)}}});var no=b.useRef(),io=b.useState(!1),$o=(0,Ue.Z)(io,2),bo=$o[0],Hi=$o[1],mo=b.useState(!1),Xi=(0,Ue.Z)(mo,2),Qo=Xi[0],Lo=Xi[1],ua=b.useState(new Map),ga=(0,Ue.Z)(ua,2),Ua=ga[0],oo=ga[1],Wl=Pt(ei),da=Wl.map(function(ji){return Ua.get(ji)}),Ba=b.useMemo(function(){return da},[da.join("_")]),wa=xt(Ba,ei,Pn),ya=un&&Ut(un.y),ao=un&&Ut(Ji)||!!Ti.fixed,Ea=ao&&ei.some(function(ji){var Ui=ji.fixed;return Ui}),al=b.useRef(),Ga=Vt(kr,dt),Xa=Ga.isSticky,is=Ga.offsetHeader,os=Ga.offsetSummary,as=Ga.offsetScroll,ls=Ga.stickyClassName,Is=Ga.container,yi=b.useMemo(function(){return vn==null?void 0:vn(fr)},[vn,fr]),Li=(ya||Xa)&&b.isValidElement(yi)&&yi.type===ye&&yi.props.fixed,vo,Po,Uo;ya&&(Po={overflowY:Mr?"scroll":"auto",maxHeight:un.y}),ao&&(vo={overflowX:"auto"},ya||(Po={overflowY:"hidden"}),Uo={width:Ji===!0?"auto":Ji,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})},[]),Fa=bt(null),ea=(0,Ue.Z)(Fa,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,Ee.Z)(function(ji){var Ui=ji.currentTarget,ta=ji.scrollLeft,Ia=Pn==="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 Qa=Ui||va.current;if(Qa){var Nl=Rr&&zr&&typeof Ji=="number"?Ji:Qa.scrollWidth,Fs=Qa.clientWidth;if(Nl===Fs){Hi(!1),Lo(!1);return}Ia?(Hi(-na<Nl-Fs),Lo(-na>0)):(Hi(na>0),Lo(na<Nl-Fs))}}),ss=(0,Ee.Z)(function(ji){vl(ji),Nr==null||Nr(ji)}),gl=function(){if(ao&&po.current){var Ui;vl({currentTarget:(0,Tn.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;Rr&&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,en,Kr.length]),b.useEffect(function(){cs.current=!0},[]);var Ds=b.useState(0),Js=(0,Ue.Z)(Ds,2),ll=Js[0],Ts=Js[1],vc=b.useState(!0),Ms=(0,Ue.Z)(vc,2),Vl=Ms[0],gc=Ms[1];(0,xe.Z)(function(){(!zr||!Rr)&&(po.current instanceof Element?Ts((0,mt.o)(po.current).width):Ts((0,mt.o)(zi.current).width)),gc((0,Ye.G)("position","sticky"))},[]),b.useEffect(function(){Rr&&Gr&&(Gr.body.current=po.current)});var yc=b.useCallback(function(ji){return b.createElement(b.Fragment,null,b.createElement(zn,ji),Li==="top"&&b.createElement(Ae,ji,yi))},[Li,yi]),_l=b.useCallback(function(ji){return b.createElement(Ae,ji,yi)},[yi]),Ns=Xr(["table"],"table"),Ul=b.useMemo(function(){return Ln||(Ea?Ji==="max-content"?"auto":"fixed":ya||Xa||ei.some(function(ji){var Ui=ji.ellipsis;return Ui})?"fixed":"auto")},[ya,Ea,ei,Ln,Xa]),ks,Gl={colWidths:Ba,columCount:ei.length,stickyOffsets:wa,onHeaderRow:Sr,fixHeader:ya,scroll:un},Bs=b.useMemo(function(){return Mr?null:typeof ir=="function"?ir():ir},[Mr,ir]),Qs=b.createElement(Wt,{data:fr,measureColumnWidth:ya||ao||Xa}),Ls=b.createElement(Nn,{colWidths:ei.map(function(ji){var Ui=ji.width;return Ui}),columns:ei}),Rs=nr!=null?b.createElement("caption",{className:"".concat(dt,"-caption")},nr):void 0,bc=(0,we.Z)(_e,{data:!0}),us=(0,we.Z)(_e,{aria:!0});if(ya||Xa){var yl;typeof wi=="function"?(yl=wi(fr,{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,ct.Z)((0,ct.Z)({},vo),Po),onScroll:ss,ref:po,className:Ge()("".concat(dt,"-body"))},b.createElement(Ns,(0,tt.Z)({style:(0,ct.Z)((0,ct.Z)({},Uo),{},{tableLayout:Ul})},us),Rs,Ls,Qs,!Li&&yi&&b.createElement(Ae,{stickyOffsets:wa,flattenColumns:ei},yi)));var Tl=(0,ct.Z)((0,ct.Z)((0,ct.Z)({noData:!fr.length,maxContentScroll:ao&&Ji==="max-content"},Gl),zo),{},{direction:Pn,stickyClassName:ls,onScroll:vl});ks=b.createElement(b.Fragment,null,rr!==!1&&b.createElement(Jt,(0,tt.Z)({},Tl,{stickyTopOffset:is,className:"".concat(dt,"-header"),ref:va}),yc),yl,Li&&Li!=="top"&&b.createElement(Jt,(0,tt.Z)({},Tl,{stickyBottomOffset:os,className:"".concat(dt,"-summary"),ref:no}),_l),Xa&&po.current&&po.current instanceof Element&&b.createElement(dr,{ref:al,offsetScroll:as,scrollBodyRef:po,onScroll:vl,container:Is,direction:Pn}))}else ks=b.createElement("div",{style:(0,ct.Z)((0,ct.Z)({},vo),Po),className:Ge()("".concat(dt,"-content")),onScroll:vl,ref:po},b.createElement(Ns,(0,tt.Z)({style:(0,ct.Z)((0,ct.Z)({},Uo),{},{tableLayout:Ul})},us),Rs,Ls,rr!==!1&&b.createElement(zn,(0,tt.Z)({},Gl,zo)),Qs,yi&&b.createElement(Ae,{stickyOffsets:wa,flattenColumns:ei},yi)));var As=b.createElement("div",(0,tt.Z)({className:Ge()(dt,Nt,(0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)({},"".concat(dt,"-rtl"),Pn==="rtl"),"".concat(dt,"-ping-left"),bo),"".concat(dt,"-ping-right"),Qo),"".concat(dt,"-layout-fixed"),Ln==="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:Wn,ref:Io},bc),En&&b.createElement(Ft,{className:"".concat(dt,"-title")},En(fr)),b.createElement("div",{ref:zi,className:"".concat(dt,"-container")},ks),yn&&b.createElement(Ft,{className:"".concat(dt,"-footer")},yn(fr)));ao&&(As=b.createElement(Ve.Z,{onResize:Os},As));var $s=vt(ei,wa,Pn),xc=b.useMemo(function(){return{scrollX:Ji,prefixCls:dt,getComponent:Xr,scrollbarSize:ll,direction:Pn,fixedInfoList:$s,isSticky:Xa,supportSticky:Vl,componentWidth:co,fixHeader:ya,fixColumn:Ea,horizonScroll:ao,tableLayout:Ul,rowClassName:jt,expandedRowClassName:Ti.expandedRowClassName,expandIcon:jr,expandableType:wo,expandRowByClick:Ti.expandRowByClick,expandedRowRender:Ti.expandedRowRender,onTriggerExpand:Fr,expandIconColumnIndex:Ti.expandIconColumnIndex,indentSize:Ti.indentSize,allColumnsFixedLeft:ei.every(function(ji){return ji.fixed==="left"}),emptyNode:Bs,columns:Kr,flattenColumns:ei,onColumnResize:Ho,hoverStartRow:fo,hoverEndRow:ro,onHover:ho,rowExpandable:Ti.rowExpandable,onRow:vr,getRowKey:xr,expandedKeys:Bo,childrenColumnName:di,rowHoverable:gr}},[Ji,dt,Xr,ll,Pn,$s,Xa,Vl,co,ya,Ea,ao,Ul,jt,Ti.expandedRowClassName,jr,wo,Ti.expandRowByClick,Ti.expandedRowRender,Fr,Ti.expandIconColumnIndex,Ti.indentSize,Bs,Kr,ei,Ho,fo,ro,ho,Ti.rowExpandable,vr,xr,Bo,di,gr]);return b.createElement(Je.Provider,{value:xc},As)}var mr=b.forwardRef(yr);function Vr(ve){return pt(mr,ve)}var Yr=Vr();Yr.EXPAND_COLUMN=We,Yr.INTERNAL_HOOKS=fe,Yr.Column=Gn,Yr.ColumnGroup=cr,Yr.Summary=ke;var _r=Yr,Ur=ee(48911),oi=Ce(null),Zr=Ce(null);function Qr(ve,pe,_e){var dt=pe||1;return _e[ve+dt]-(_e[ve]||0)}function Or(ve){var pe=ve.rowInfo,_e=ve.column,dt=ve.colIndex,Nt=ve.indent,jt=ve.index,ln=ve.component,en=ve.renderIndex,fn=ve.record,un=ve.style,Ln=ve.className,Pn=ve.inverse,En=ve.getHeight,yn=_e.render,vn=_e.dataIndex,nr=_e.className,Wn=_e.width,rr=ue(Zr,["columnsOffset"]),ur=rr.columnsOffset,ir=He(pe,_e,dt,Nt,jt),vr=ir.key,Sr=ir.fixedInfo,Nr=ir.appendCellNode,Dr=ir.additionalCellProps,mi=Dr.style,Gr=Dr.colSpan,zr=Gr===void 0?1:Gr,ii=Dr.rowSpan,kr=ii===void 0?1:ii,Br=dt-1,gr=Qr(Br,zr,ur),fr=zr>1?Wn-gr:0,Mr=(0,ct.Z)((0,ct.Z)((0,ct.Z)({},mi),un),{},{flex:"0 0 ".concat(gr,"px"),width:"".concat(gr,"px"),marginRight:fr,pointerEvents:"auto"}),Rr=b.useMemo(function(){return Pn?kr<=1:zr===0||kr===0||kr>1},[kr,zr,Pn]);Rr?Mr.visibility="hidden":Pn&&(Mr.height=En==null?void 0:En(kr));var Xr=Rr?function(){return null}:yn,xr={};return(kr===0||zr===0)&&(xr.rowSpan=1,xr.colSpan=1),b.createElement(tn,(0,tt.Z)({className:Ge()(nr,Ln),ellipsis:_e.ellipsis,align:_e.align,scope:_e.rowScope,component:ln,prefixCls:pe.prefixCls,key:vr,record:fn,index:jt,renderIndex:en,dataIndex:vn,render:Xr,shouldCellUpdate:_e.shouldCellUpdate},Sr,{appendNode:Nr,additionalProps:(0,ct.Z)((0,ct.Z)({},Dr),{},{style:Mr},xr)}))}var ti=Or,ci=["data","index","className","rowKey","style","extra","getHeight"],$i=b.forwardRef(function(ve,pe){var _e=ve.data,dt=ve.index,Nt=ve.className,jt=ve.rowKey,ln=ve.style,en=ve.extra,fn=ve.getHeight,un=(0,oe.Z)(ve,ci),Ln=_e.record,Pn=_e.indent,En=_e.index,yn=ue(Je,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),vn=yn.scrollX,nr=yn.flattenColumns,Wn=yn.prefixCls,rr=yn.fixColumn,ur=yn.componentWidth,ir=ue(oi,["getComponent"]),vr=ir.getComponent,Sr=Ht(Ln,jt,dt,Pn),Nr=vr(["body","row"],"div"),Dr=vr(["body","cell"],"div"),mi=Sr.rowSupportExpand,Gr=Sr.expanded,zr=Sr.rowProps,ii=Sr.expandedRowRender,kr=Sr.expandedRowClassName,Br;if(mi&&Gr){var gr=ii(Ln,dt,Pn+1,Gr),fr=Kt(kr,Ln,dt,Pn),Mr={};rr&&(Mr={style:(0,Se.Z)({},"--virtual-width","".concat(ur,"px"))});var Rr="".concat(Wn,"-expanded-row-cell");Br=b.createElement(Nr,{className:Ge()("".concat(Wn,"-expanded-row"),"".concat(Wn,"-expanded-row-level-").concat(Pn+1),fr)},b.createElement(tn,{component:Dr,prefixCls:Wn,className:Ge()(Rr,(0,Se.Z)({},"".concat(Rr,"-fixed"),rr)),additionalProps:Mr},gr))}var Xr=(0,ct.Z)((0,ct.Z)({},ln),{},{width:vn});en&&(Xr.position="absolute",Xr.pointerEvents="none");var xr=b.createElement(Nr,(0,tt.Z)({},zr,un,{"data-row-key":jt,ref:mi?null:pe,className:Ge()(Nt,"".concat(Wn,"-row"),zr==null?void 0:zr.className,(0,Se.Z)({},"".concat(Wn,"-row-extra"),en)),style:(0,ct.Z)((0,ct.Z)({},Xr),zr==null?void 0:zr.style)}),nr.map(function(wi,Oi){return b.createElement(ti,{key:Oi,component:Dr,rowInfo:Sr,column:wi,colIndex:Oi,indent:Pn,index:dt,renderIndex:En,record:Ln,inverse:en,getHeight:fn})}));return mi?b.createElement("div",{ref:pe},xr,Br):xr}),vi=At($i),xi=vi,hi=b.forwardRef(function(ve,pe){var _e=ve.data,dt=ve.onScroll,Nt=ue(Je,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),jt=Nt.flattenColumns,ln=Nt.onColumnResize,en=Nt.getRowKey,fn=Nt.expandedKeys,un=Nt.prefixCls,Ln=Nt.childrenColumnName,Pn=Nt.scrollX,En=Nt.direction,yn=ue(oi),vn=yn.sticky,nr=yn.scrollY,Wn=yn.listItemHeight,rr=yn.getComponent,ur=yn.onScroll,ir=b.useRef(),vr=Zt(_e,Ln,fn,en),Sr=b.useMemo(function(){var Br=0;return jt.map(function(gr){var fr=gr.width,Mr=gr.key;return Br+=fr,[Mr,fr,Br]})},[jt]),Nr=b.useMemo(function(){return Sr.map(function(Br){return Br[2]})},[Sr]);b.useEffect(function(){Sr.forEach(function(Br){var gr=(0,Ue.Z)(Br,2),fr=gr[0],Mr=gr[1];ln(fr,Mr)})},[Sr]),b.useImperativeHandle(pe,function(){var Br,gr={scrollTo:function(Mr){var Rr;(Rr=ir.current)===null||Rr===void 0||Rr.scrollTo(Mr)},nativeElement:(Br=ir.current)===null||Br===void 0?void 0:Br.nativeElement};return Object.defineProperty(gr,"scrollLeft",{get:function(){var Mr;return((Mr=ir.current)===null||Mr===void 0?void 0:Mr.getScrollInfo().x)||0},set:function(Mr){var Rr;(Rr=ir.current)===null||Rr===void 0||Rr.scrollTo({left:Mr})}}),gr});var Dr=function(gr,fr){var Mr,Rr=(Mr=vr[fr])===null||Mr===void 0?void 0:Mr.record,Xr=gr.onCell;if(Xr){var xr,wi=Xr(Rr,fr);return(xr=wi==null?void 0:wi.rowSpan)!==null&&xr!==void 0?xr:1}return 1},mi=function(gr){var fr=gr.start,Mr=gr.end,Rr=gr.getSize,Xr=gr.offsetY;if(Mr<0)return null;for(var xr=jt.filter(function(jr){return Dr(jr,fr)===0}),wi=fr,Oi=function(di){if(xr=xr.filter(function(Fr){return Dr(Fr,di)===0}),!xr.length)return wi=di,1},yo=fr;yo>=0&&!Oi(yo);yo-=1);for(var fo=jt.filter(function(jr){return Dr(jr,Mr)!==1}),ro=Mr,ho=function(di){if(fo=fo.filter(function(Fr){return Dr(Fr,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 Fr=vr[di];if(!Fr)return 1;jt.some(function(Tr){return Dr(Tr,di)>1})&&Di.push(di)},wo=wi;wo<=ro;wo+=1)Ti(wo);var Bo=Di.map(function(jr){var di=vr[jr],Fr=en(di.record,jr),Tr=function(co){var to=jr+co-1,Eo=en(vr[to].record,to),Ao=Rr(Fr,Eo);return Ao.bottom-Ao.top},Ri=Rr(Fr);return b.createElement(xi,{key:jr,data:di,rowKey:Fr,index:jr,style:{top:-Xr+Ri.top},extra:!0,getHeight:Tr})});return Bo},Gr=b.useMemo(function(){return{columnsOffset:Nr}},[Nr]),zr="".concat(un,"-tbody"),ii=rr(["body","wrapper"]),kr={};return vn&&(kr.position="sticky",kr.bottom=0,(0,ot.Z)(vn)==="object"&&vn.offsetScroll&&(kr.bottom=vn.offsetScroll)),b.createElement(Zr.Provider,{value:Gr},b.createElement(Ur.Z,{fullHeight:!1,ref:ir,prefixCls:"".concat(zr,"-virtual"),styles:{horizontalScrollBar:kr},className:zr,height:nr,itemHeight:Wn||24,data:vr,itemKey:function(gr){return en(gr.record)},component:ii,scrollWidth:Pn,direction:En,onVirtualScroll:function(gr){var fr,Mr=gr.x;dt({currentTarget:(fr=ir.current)===null||fr===void 0?void 0:fr.nativeElement,scrollLeft:Mr})},onScroll:ur,extraRender:mi},function(Br,gr,fr){var Mr=en(Br.record,gr);return b.createElement(xi,{data:Br,rowKey:Mr,index:gr,style:fr.style})}))}),bi=At(hi),Ar=bi,Lr=function(pe,_e){var dt=_e.ref,Nt=_e.onScroll;return b.createElement(Ar,{ref:dt,data:pe,onScroll:Nt})};function sr(ve,pe){var _e=ve.data,dt=ve.columns,Nt=ve.scroll,jt=ve.sticky,ln=ve.prefixCls,en=ln===void 0?Er:ln,fn=ve.className,un=ve.listItemHeight,Ln=ve.components,Pn=ve.onScroll,En=Nt||{},yn=En.x,vn=En.y;typeof yn!="number"&&(yn=1),typeof vn!="number"&&(vn=500);var nr=(0,Qe.zX)(function(ur,ir){return(0,Dt.Z)(Ln,ur)||ir}),Wn=(0,Qe.zX)(Pn),rr=b.useMemo(function(){return{sticky:jt,scrollY:vn,listItemHeight:un,getComponent:nr,onScroll:Wn}},[jt,vn,un,nr,Wn]);return b.createElement(oi.Provider,{value:rr},b.createElement(_r,(0,tt.Z)({},ve,{className:Ge()(fn,"".concat(en,"-virtual")),scroll:(0,ct.Z)((0,ct.Z)({},Nt),{},{x:yn}),components:(0,ct.Z)((0,ct.Z)({},Ln),{},{body:_e!=null&&_e.length?Lr:void 0}),columns:dt,internalHooks:fe,tailor:!0,ref:pe})))}var Dn=b.forwardRef(sr);function jn(ve){return pt(Dn,ve)}var Kn=jn(),kn=null,br=ve=>null,Mn=ve=>null,Un=ee(84105),tr=ee(82661),Jr=ee(34643),Ei=ee(34061),pi=ee(18929);function Ni(ve){const[pe,_e]=(0,b.useState)(null);return[(0,b.useCallback)((jt,ln,en)=>{const fn=pe!=null?pe:jt,un=Math.min(fn||0,jt),Ln=Math.max(fn||0,jt),Pn=ln.slice(un,Ln+1).map(vn=>ve(vn)),En=Pn.some(vn=>!en.has(vn)),yn=[];return Pn.forEach(vn=>{En?(en.has(vn)||yn.push(vn),en.add(vn)):(en.delete(vn),yn.push(vn))}),_e(En?Ln:null),yn},[pe]),jt=>{_e(jt)}]}var Ii=ee(32383),Pi=ee(62673),Fi=ee(75727),ki=ee(47889);const Bi={},lo="SELECT_ALL",xo="SELECT_INVERT",Do="SELECT_NONE",To=[],Co=(ve,pe)=>{let _e=[];return(pe||[]).forEach(dt=>{_e.push(dt),dt&&typeof dt=="object"&&ve in dt&&(_e=[].concat((0,dn.Z)(_e),(0,dn.Z)(Co(ve,dt[ve]))))}),_e};var Hr=(ve,pe)=>{const{preserveSelectedRowKeys:_e,selectedRowKeys:dt,defaultSelectedRowKeys:Nt,getCheckboxProps:jt,onChange:ln,onSelect:en,onSelectAll:fn,onSelectInvert:un,onSelectNone:Ln,onSelectMultiple:Pn,columnWidth:En,type:yn,selections:vn,fixed:nr,renderCell:Wn,hideSelectAll:rr,checkStrictly:ur=!0}=pe||{},{prefixCls:ir,data:vr,pageData:Sr,getRecordByKey:Nr,getRowKey:Dr,expandType:mi,childrenColumnName:Gr,locale:zr,getPopupContainer:ii}=ve,kr=(0,Ii.ln)("Table"),[Br,gr]=Ni(jr=>jr),[fr,Mr]=(0,pi.Z)(dt||Nt||To,{value:dt}),Rr=b.useRef(new Map),Xr=(0,b.useCallback)(jr=>{if(_e){const di=new Map;jr.forEach(Fr=>{let Tr=Nr(Fr);!Tr&&Rr.current.has(Fr)&&(Tr=Rr.current.get(Fr)),di.set(Fr,Tr)}),Rr.current=di}},[Nr,_e]);b.useEffect(()=>{Xr(fr)},[fr]);const xr=(0,b.useMemo)(()=>Co(Gr,Sr),[Gr,Sr]),{keyEntities:wi}=(0,b.useMemo)(()=>{if(ur)return{keyEntities:null};let jr=vr;if(_e){const di=new Set(xr.map((Tr,Ri)=>Dr(Tr,Ri))),Fr=Array.from(Rr.current).reduce((Tr,Ri)=>{let[_i,co]=Ri;return di.has(_i)?Tr:Tr.concat(co)},[]);jr=[].concat((0,dn.Z)(jr),(0,dn.Z)(Fr))}return(0,Ei.I8)(jr,{externalGetKey:Dr,childrenPropName:Gr})},[vr,Dr,ur,Gr,_e,xr]),Oi=(0,b.useMemo)(()=>{const jr=new Map;return xr.forEach((di,Fr)=>{const Tr=Dr(di,Fr),Ri=(jt?jt(di):null)||{};jr.set(Tr,Ri)}),jr},[xr,Dr,jt]),yo=(0,b.useCallback)(jr=>{const di=Dr(jr);let Fr;return Oi.has(di)?Fr=Oi.get(Dr(jr)):Fr=jt?jt(jr):void 0,!!(Fr!=null&&Fr.disabled)},[Oi,Dr]),[fo,ro]=(0,b.useMemo)(()=>{if(ur)return[fr||[],[]];const{checkedKeys:jr,halfCheckedKeys:di}=(0,Jr.S)(fr,!0,wi,yo);return[jr||[],di]},[fr,ur,wi,yo]),ho=(0,b.useMemo)(()=>{const jr=yn==="radio"?fo.slice(0,1):fo;return new Set(jr)},[fo,yn]),So=(0,b.useMemo)(()=>yn==="radio"?new Set:new Set(ro),[ro,yn]);b.useEffect(()=>{pe||Mr(To)},[!!pe]);const Di=(0,b.useCallback)((jr,di)=>{let Fr,Tr;Xr(jr),_e?(Fr=jr,Tr=jr.map(Ri=>Rr.current.get(Ri))):(Fr=[],Tr=[],jr.forEach(Ri=>{const _i=Nr(Ri);_i!==void 0&&(Fr.push(Ri),Tr.push(_i))})),Mr(Fr),ln==null||ln(Fr,Tr,{type:di})},[Mr,Nr,ln,_e]),Ti=(0,b.useCallback)((jr,di,Fr,Tr)=>{if(en){const Ri=Fr.map(_i=>Nr(_i));en(Nr(jr),di,Ri,Tr)}Di(Fr,"single")},[en,Nr,Di]),wo=(0,b.useMemo)(()=>!vn||rr?null:(vn===!0?[lo,xo,Do]:vn).map(di=>di===lo?{key:"all",text:zr.selectionAll,onSelect(){Di(vr.map((Fr,Tr)=>Dr(Fr,Tr)).filter(Fr=>{const Tr=Oi.get(Fr);return!(Tr!=null&&Tr.disabled)||ho.has(Fr)}),"all")}}:di===xo?{key:"invert",text:zr.selectInvert,onSelect(){const Fr=new Set(ho);Sr.forEach((Ri,_i)=>{const co=Dr(Ri,_i),to=Oi.get(co);to!=null&&to.disabled||(Fr.has(co)?Fr.delete(co):Fr.add(co))});const Tr=Array.from(Fr);un&&(kr.deprecated(!1,"onSelectInvert","onChange"),un(Tr)),Di(Tr,"invert")}}:di===Do?{key:"none",text:zr.selectNone,onSelect(){Ln==null||Ln(),Di(Array.from(ho).filter(Fr=>{const Tr=Oi.get(Fr);return Tr==null?void 0:Tr.disabled}),"none")}}:di).map(di=>Object.assign(Object.assign({},di),{onSelect:function(){for(var Fr,Tr,Ri=arguments.length,_i=new Array(Ri),co=0;co<Ri;co++)_i[co]=arguments[co];(Tr=di.onSelect)===null||Tr===void 0||(Fr=Tr).call.apply(Fr,[di].concat(_i)),gr(null)}})),[vn,ho,Sr,Dr,un,Di]);return[(0,b.useCallback)(jr=>{var di;if(!pe)return jr.filter(zi=>zi!==Bi);let Fr=(0,dn.Z)(jr);const Tr=new Set(ho),Ri=xr.map(Dr).filter(zi=>!Oi.get(zi).disabled),_i=Ri.every(zi=>Tr.has(zi)),co=Ri.some(zi=>Tr.has(zi)),to=()=>{const zi=[];_i?Ri.forEach(io=>{Tr.delete(io),zi.push(io)}):Ri.forEach(io=>{Tr.has(io)||(Tr.add(io),zi.push(io))});const no=Array.from(Tr);fn==null||fn(!_i,no.map(io=>Nr(io)),zi.map(io=>Nr(io))),Di(no,"all"),gr(null)};let Eo,Ao;if(yn!=="radio"){let zi;if(wo){const Hi={getPopupContainer:ii,items:wo.map((mo,Xi)=>{const{key:Qo,text:Lo,onSelect:ua}=mo;return{key:Qo!=null?Qo:Xi,onClick:()=>{ua==null||ua(Ri)},label:Lo}})};zi=b.createElement("div",{className:`${ir}-selection-extra`},b.createElement(Fi.Z,{menu:Hi,getPopupContainer:ii},b.createElement("span",null,b.createElement(Un.Z,null))))}const no=xr.map((Hi,mo)=>{const Xi=Dr(Hi,mo),Qo=Oi.get(Xi)||{};return Object.assign({checked:Tr.has(Xi)},Qo)}).filter(Hi=>{let{disabled:mo}=Hi;return mo}),io=!!no.length&&no.length===xr.length,$o=io&&no.every(Hi=>{let{checked:mo}=Hi;return mo}),bo=io&&no.some(Hi=>{let{checked:mo}=Hi;return mo});Ao=b.createElement(Pi.default,{checked:io?$o:!!xr.length&&_i,indeterminate:io?!$o&&bo:!_i&&co,onChange:to,disabled:xr.length===0||io,"aria-label":zi?"Custom selection":"Select all",skipGroup:!0}),Eo=!rr&&b.createElement("div",{className:`${ir}-selection`},Ao,zi)}let Kr;yn==="radio"?Kr=(zi,no,io)=>{const $o=Dr(no,io),bo=Tr.has($o),Hi=Oi.get($o);return{node:b.createElement(ki.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($o)||Ti($o,!0,[$o],mo.nativeEvent),(Xi=Hi==null?void 0:Hi.onChange)===null||Xi===void 0||Xi.call(Hi,mo)}})),checked:bo}}:Kr=(zi,no,io)=>{var $o;const bo=Dr(no,io),Hi=Tr.has(bo),mo=So.has(bo),Xi=Oi.get(bo);let Qo;return mi==="nest"?Qo=mo:Qo=($o=Xi==null?void 0:Xi.indeterminate)!==null&&$o!==void 0?$o:mo,{node:b.createElement(Pi.default,Object.assign({},Xi,{indeterminate:Qo,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=Ri.findIndex(da=>da===bo),Wl=fo.some(da=>Ri.includes(da));if(Ua&&ur&&Wl){const da=Br(oo,Ri,Tr),Ba=Array.from(Tr);Pn==null||Pn(!Hi,Ba.map(wa=>Nr(wa)),da.map(wa=>Nr(wa))),Di(Ba,"multiple")}else{const da=fo;if(ur){const Ba=Hi?(0,tr._5)(da,bo):(0,tr.L0)(da,bo);Ti(bo,!Hi,Ba,ga)}else{const Ba=(0,Jr.S)([].concat((0,dn.Z)(da),[bo]),!0,wi,yo),{checkedKeys:wa,halfCheckedKeys:ya}=Ba;let ao=wa;if(Hi){const Ea=new Set(wa);Ea.delete(bo),ao=(0,Jr.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:$o,checked:bo}=Kr(zi,no,io);return Wn?Wn(bo,no,io,$o):$o};if(!Fr.includes(Bi))if(Fr.findIndex(zi=>{var no;return((no=zi[Sn])===null||no===void 0?void 0:no.columnType)==="EXPAND_COLUMN"})===0){const[zi,...no]=Fr;Fr=[zi,Bi].concat((0,dn.Z)(no))}else Fr=[Bi].concat((0,dn.Z)(Fr));const Gi=Fr.indexOf(Bi);Fr=Fr.filter((zi,no)=>zi!==Bi||no===Gi);const eo=Fr[Gi-1],Ji=Fr[Gi+1];let zo=nr;zo===void 0&&((Ji==null?void 0:Ji.fixed)!==void 0?zo=Ji.fixed:(eo==null?void 0:eo.fixed)!==void 0&&(zo=eo.fixed)),zo&&eo&&((di=eo[Sn])===null||di===void 0?void 0:di.columnType)==="EXPAND_COLUMN"&&eo.fixed===void 0&&(eo.fixed=zo);const Io=Ge()(`${ir}-selection-col`,{[`${ir}-selection-col-with-dropdown`]:vn&&yn==="checkbox"}),va=()=>pe!=null&&pe.columnTitle?typeof pe.columnTitle=="function"?pe.columnTitle(Ao):pe.columnTitle:Eo,po={fixed:zo,width:En,className:`${ir}-selection-column`,title:va(),render:ei,onCell:pe.onCell,[Sn]:{className:Io}};return Fr.map(zi=>zi===Bi?po:zi)},[Dr,xr,pe,fo,ho,So,En,wo,mi,Oi,Pn,Ti,yo]),ho]},Qi=ee(2738);function qi(ve,pe){return ve._antProxy=ve._antProxy||{},Object.keys(pe).forEach(_e=>{if(!(_e in ve._antProxy)){const dt=ve[_e];ve._antProxy[_e]=dt,ve[_e]=pe[_e]}}),ve}function ai(ve,pe){return(0,b.useImperativeHandle)(ve,()=>{const _e=pe(),{nativeElement:dt}=_e;return typeof Proxy!="undefined"?new Proxy(dt,{get(Nt,jt){return _e[jt]?_e[jt]:Reflect.get(Nt,jt)}}):qi(dt,_e)})}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 pe=>{const{prefixCls:_e,onExpand:dt,record:Nt,expanded:jt,expandable:ln}=pe,en=`${_e}-row-expand-icon`;return b.createElement("button",{type:"button",onClick:fn=>{dt(Nt,fn),fn.stopPropagation()},className:Ge()(en,{[`${en}-spaced`]:!ln,[`${en}-expanded`]:ln&&jt,[`${en}-collapsed`]:ln&&!jt}),"aria-label":jt?ve.collapse:ve.expand,"aria-expanded":jt})}}var si=el;function Ci(ve){return(_e,dt)=>{const Nt=_e.querySelector(`.${ve}-container`);let jt=dt;if(Nt){const ln=getComputedStyle(Nt),en=parseInt(ln.borderLeftWidth,10),fn=parseInt(ln.borderRightWidth,10);jt=dt-en-fn}return jt}}const ni=(ve,pe)=>"key"in ve&&ve.key!==void 0&&ve.key!==null?ve.key:ve.dataIndex?Array.isArray(ve.dataIndex)?ve.dataIndex.join("."):ve.dataIndex:pe;function ui(ve,pe){return pe?`${pe}-${ve}`:`${ve}`}const Vi=(ve,pe)=>typeof ve=="function"?ve(pe):ve,so=(ve,pe)=>{const _e=Vi(ve,pe);return Object.prototype.toString.call(_e)==="[object Object]"?"":_e};var Ra={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=Ra,Yo=ee(7657),No=function(pe,_e){return b.createElement(Yo.Z,(0,tt.Z)({},pe,{ref:_e,icon:oa}))},Ta=b.forwardRef(No),Za=Ta,pa=ee(9981),za=ee(40192);function Ya(ve){const pe=b.useRef(ve),_e=(0,za.Z)();return[()=>pe.current,dt=>{pe.current=dt,_e()}]}var Ma=ee(7939),dl=ee(584),ms=ee(93041),Jl=ee(78857),Ha=ee(18287),tl=ee(47472),Na=ee(49397),Bl=ve=>{const{value:pe,filterSearch:_e,tablePrefixCls:dt,locale:Nt,onChange:jt}=ve;return _e?b.createElement("div",{className:`${dt}-filter-dropdown-search`},b.createElement(Na.Z,{prefix:b.createElement(tl.Z,null),placeholder:Nt.filterSearchPlaceholder,onChange:jt,value:pe,htmlSize:1,className:`${dt}-filter-dropdown-search-input`})):null},Ql=ee(10228);const ql=ve=>{const{keyCode:pe}=ve;pe===Ql.Z.ENTER&&ve.stopPropagation()};var Ll=b.forwardRef((ve,pe)=>b.createElement("div",{className:ve.className,onClick:_e=>_e.stopPropagation(),onKeyDown:ql,ref:pe},ve.children));function ja(ve){let pe=[];return(ve||[]).forEach(_e=>{let{value:dt,children:Nt}=_e;pe.push(dt),Nt&&(pe=[].concat((0,dn.Z)(pe),(0,dn.Z)(ja(Nt))))}),pe}function fl(ve){return ve.some(pe=>{let{children:_e}=pe;return _e})}function xl(ve,pe){return typeof pe=="string"||typeof pe=="number"?pe==null?void 0:pe.toString().toLowerCase().includes(ve.trim().toLowerCase()):!1}function Rl(ve){let{filters:pe,prefixCls:_e,filteredKeys:dt,filterMultiple:Nt,searchValue:jt,filterSearch:ln}=ve;return pe.map((en,fn)=>{const un=String(en.value);if(en.children)return{key:un||fn,label:en.text,popupClassName:`${_e}-dropdown-submenu`,children:Rl({filters:en.children,prefixCls:_e,filteredKeys:dt,filterMultiple:Nt,searchValue:jt,filterSearch:ln})};const Ln=Nt?Pi.default:ki.ZP,Pn={key:en.value!==void 0?un:fn,label:b.createElement(b.Fragment,null,b.createElement(Ln,{checked:dt.includes(un)}),b.createElement("span",null,en.text))};return jt.trim()?typeof ln=="function"?ln(jt,en)?Pn:null:xl(jt,en.text)?Pn:null:Pn})}function hl(ve){return ve||[]}var es=ve=>{var pe,_e,dt,Nt;const{tablePrefixCls:jt,prefixCls:ln,column:en,dropdownPrefixCls:fn,columnKey:un,filterOnClose:Ln,filterMultiple:Pn,filterMode:En="menu",filterSearch:yn=!1,filterState:vn,triggerFilter:nr,locale:Wn,children:rr,getPopupContainer:ur,rootClassName:ir}=ve,{filterResetToDefaultFilteredValue:vr,defaultFilteredValue:Sr,filterDropdownProps:Nr={},filterDropdownOpen:Dr,filterDropdownVisible:mi,onFilterDropdownVisibleChange:Gr,onFilterDropdownOpenChange:zr}=en,[ii,kr]=b.useState(!1),Br=!!(vn&&(!((pe=vn.filteredKeys)===null||pe===void 0)&&pe.length||vn.forceFiltered)),gr=Kr=>{var ei;kr(Kr),(ei=Nr.onOpenChange)===null||ei===void 0||ei.call(Nr,Kr),zr==null||zr(Kr),Gr==null||Gr(Kr)},fr=(Nt=(dt=(_e=Nr.open)!==null&&_e!==void 0?_e:Dr)!==null&&dt!==void 0?dt:mi)!==null&&Nt!==void 0?Nt:ii,Mr=vn==null?void 0:vn.filteredKeys,[Rr,Xr]=Ya(hl(Mr)),xr=Kr=>{let{selectedKeys:ei}=Kr;Xr(ei)},wi=(Kr,ei)=>{let{node:Gi,checked:eo}=ei;xr(Pn?{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&&(!vn||!vn.filteredKeys)||(0,Ie.Z)(ei,vn==null?void 0:vn.filteredKeys,!0))return null;nr({column:en,key:un,filteredKeys:ei})},Ti=()=>{gr(!1),Di(Rr())},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)):[])},Bo=function(){let{closeDropdown:Kr}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};Kr&&gr(!1),Di(Rr())},jr=(Kr,ei)=>{ei.source==="trigger"&&(Kr&&Mr!==void 0&&Xr(hl(Mr)),gr(Kr),!Kr&&!en.filterDropdown&&Ln&&Ti())},di=Ge()({[`${fn}-menu-without-submenu`]:!fl(en.filters||[])}),Fr=Kr=>{if(Kr.target.checked){const ei=ja(en==null?void 0:en.filters).map(Gi=>String(Gi));Xr(ei)}else Xr([])},Tr=Kr=>{let{filters:ei}=Kr;return(ei||[]).map((Gi,eo)=>{const Ji=String(Gi.value),zo={title:Gi.text,key:Gi.value!==void 0?Ji:String(eo)};return Gi.children&&(zo.children=Tr({filters:Gi.children})),zo})},Ri=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=>Ri(Gi)))||[]})};let _i;const{direction:co,renderEmpty:to}=b.useContext(Yi.E_);if(typeof en.filterDropdown=="function")_i=en.filterDropdown({prefixCls:`${fn}-custom`,setSelectedKeys:Kr=>xr({selectedKeys:Kr}),selectedKeys:Rr(),confirm:Bo,clearFilters:wo,filters:en.filters,visible:fr,close:()=>{gr(!1)}});else if(en.filterDropdown)_i=en.filterDropdown;else{const Kr=Rr()||[],ei=()=>{var eo,Ji;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:Wn.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if((en.filters||[]).length===0)return zo;if(En==="tree")return b.createElement(b.Fragment,null,b.createElement(Bl,{filterSearch:yn,value:ro,onChange:So,tablePrefixCls:jt,locale:Wn}),b.createElement("div",{className:`${jt}-filter-dropdown-tree`},Pn?b.createElement(Pi.default,{checked:Kr.length===ja(en.filters).length,indeterminate:Kr.length>0&&Kr.length<ja(en.filters).length,className:`${jt}-filter-dropdown-checkall`,onChange:Fr},(Ji=Wn==null?void 0:Wn.filterCheckall)!==null&&Ji!==void 0?Ji:Wn==null?void 0:Wn.filterCheckAll):null,b.createElement(Ha.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:Pn,checkStrictly:!Pn,className:`${fn}-menu`,onCheck:wi,checkedKeys:Kr,selectedKeys:Kr,showIcon:!1,treeData:Tr({filters:en.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:ro.trim()?po=>typeof yn=="function"?yn(ro,Ri(po)):xl(ro,po.title):void 0})));const Io=Rl({filters:en.filters||[],filterSearch:yn,prefixCls:ln,filteredKeys:Rr(),filterMultiple:Pn,searchValue:ro}),va=Io.every(po=>po===null);return b.createElement(b.Fragment,null,b.createElement(Bl,{filterSearch:yn,value:ro,onChange:So,tablePrefixCls:jt,locale:Wn}),va?zo:b.createElement(ms.default,{selectable:!0,multiple:Pn,prefixCls:`${fn}-menu`,className:di,onSelect:xr,onDeselect:xr,selectedKeys:Kr,getPopupContainer:ur,openKeys:Oi,onOpenChange:fo,items:Io}))},Gi=()=>vr?(0,Ie.Z)((Sr||[]).map(eo=>String(eo)),Kr,!0):Kr.length===0;_i=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()},Wn.filterReset),b.createElement(Ma.ZP,{type:"primary",size:"small",onClick:Ti},Wn.filterConfirm)))}en.filterDropdown&&(_i=b.createElement(Jl.J,{selectable:void 0},_i)),_i=b.createElement(Ll,{className:`${ln}-dropdown`},_i);const Eo=()=>{let Kr;return typeof en.filterIcon=="function"?Kr=en.filterIcon(Br):en.filterIcon?Kr=en.filterIcon:Kr=b.createElement(Za,null),b.createElement("span",{role:"button",tabIndex:-1,className:Ge()(`${ln}-trigger`,{active:Br}),onClick:ei=>{ei.stopPropagation()}},Kr)},Ao=(0,pa.Z)({trigger:["click"],placement:co==="rtl"?"bottomLeft":"bottomRight",children:Eo(),getPopupContainer:ur},Object.assign(Object.assign({},Nr),{rootClassName:Ge()(ir,Nr.rootClassName),open:fr,onOpenChange:jr,dropdownRender:()=>typeof(Nr==null?void 0:Nr.dropdownRender)=="function"?Nr.dropdownRender(_i):_i}));return b.createElement("div",{className:`${ln}-column`},b.createElement("span",{className:`${jt}-column-title`},rr),b.createElement(Fi.Z,Object.assign({},Ao)))};const nl=(ve,pe,_e)=>{let dt=[];return(ve||[]).forEach((Nt,jt)=>{var ln;const en=ui(jt,_e);if(Nt.filters||"filterDropdown"in Nt||"onFilter"in Nt)if("filteredValue"in Nt){let fn=Nt.filteredValue;"filterDropdown"in Nt||(fn=(ln=fn==null?void 0:fn.map(String))!==null&&ln!==void 0?ln:fn),dt.push({column:Nt,key:ni(Nt,en),filteredKeys:fn,forceFiltered:Nt.filtered})}else dt.push({column:Nt,key:ni(Nt,en),filteredKeys:pe&&Nt.defaultFilteredValue?Nt.defaultFilteredValue:void 0,forceFiltered:Nt.filtered});"children"in Nt&&(dt=[].concat((0,dn.Z)(dt),(0,dn.Z)(nl(Nt.children,pe,en))))}),dt};function aa(ve,pe,_e,dt,Nt,jt,ln,en,fn){return _e.map((un,Ln)=>{const Pn=ui(Ln,en),{filterOnClose:En=!0,filterMultiple:yn=!0,filterMode:vn,filterSearch:nr}=un;let Wn=un;if(Wn.filters||Wn.filterDropdown){const rr=ni(Wn,Pn),ur=dt.find(ir=>{let{key:vr}=ir;return rr===vr});Wn=Object.assign(Object.assign({},Wn),{title:ir=>b.createElement(es,{tablePrefixCls:ve,prefixCls:`${ve}-filter`,dropdownPrefixCls:pe,column:Wn,columnKey:rr,filterState:ur,filterOnClose:En,filterMultiple:yn,filterMode:vn,filterSearch:nr,triggerFilter:jt,locale:Nt,getPopupContainer:ln,rootClassName:fn},Vi(un.title,ir))})}return"children"in Wn&&(Wn=Object.assign(Object.assign({},Wn),{children:aa(ve,pe,Wn.children,dt,Nt,jt,ln,Pn,fn)})),Wn})}const Ki=ve=>{const pe={};return ve.forEach(_e=>{let{key:dt,filteredKeys:Nt,column:jt}=_e;const ln=dt,{filters:en,filterDropdown:fn}=jt;if(fn)pe[ln]=Nt||null;else if(Array.isArray(Nt)){const un=ja(en);pe[ln]=un.filter(Ln=>Nt.includes(String(Ln)))}else pe[ln]=null}),pe},Si=(ve,pe,_e)=>pe.reduce((Nt,jt)=>{const{column:{onFilter:ln,filters:en},filteredKeys:fn}=jt;return ln&&fn&&fn.length?Nt.map(un=>Object.assign({},un)).filter(un=>fn.some(Ln=>{const Pn=ja(en),En=Pn.findIndex(vn=>String(vn)===String(Ln)),yn=En!==-1?Pn[En]:Ln;return un[_e]&&(un[_e]=Si(un[_e],pe,_e)),ln(yn,un)})):Nt},ve),Ko=ve=>ve.flatMap(pe=>"children"in pe?[pe].concat((0,dn.Z)(Ko(pe.children||[]))):[pe]);var ko=ve=>{const{prefixCls:pe,dropdownPrefixCls:_e,mergedColumns:dt,onFilterChange:Nt,getPopupContainer:jt,locale:ln,rootClassName:en}=ve,fn=(0,Ii.ln)("Table"),un=b.useMemo(()=>Ko(dt||[]),[dt]),[Ln,Pn]=b.useState(()=>nl(un,!0)),En=b.useMemo(()=>{const Wn=nl(un,!1);if(Wn.length===0)return Wn;let rr=!0,ur=!0;if(Wn.forEach(ir=>{let{filteredKeys:vr}=ir;vr!==void 0?rr=!1:ur=!1}),rr){const ir=(un||[]).map((vr,Sr)=>ni(vr,ui(Sr)));return Ln.filter(vr=>{let{key:Sr}=vr;return ir.includes(Sr)}).map(vr=>{const Sr=un[ir.findIndex(Nr=>Nr===vr.key)];return Object.assign(Object.assign({},vr),{column:Object.assign(Object.assign({},vr.column),Sr),forceFiltered:Sr.filtered})})}return Wn},[un,Ln]),yn=b.useMemo(()=>Ki(En),[En]),vn=Wn=>{const rr=En.filter(ur=>{let{key:ir}=ur;return ir!==Wn.key});rr.push(Wn),Pn(rr),Nt(Ki(rr),rr)};return[Wn=>aa(pe,_e,Wn,En,ln,vn,jt,void 0,en),En,yn]},Aa=(ve,pe,_e)=>{const dt=b.useRef({});function Nt(jt){var ln;if(!dt.current||dt.current.data!==ve||dt.current.childrenColumnName!==pe||dt.current.getRowKey!==_e){let fn=function(un){un.forEach((Ln,Pn)=>{const En=_e(Ln,Pn);en.set(En,Ln),Ln&&typeof Ln=="object"&&pe in Ln&&fn(Ln[pe]||[])})};const en=new Map;fn(ve),dt.current={data:ve,childrenColumnName:pe,kvMap:en,getRowKey:_e}}return(ln=dt.current.kvMap)===null||ln===void 0?void 0:ln.get(jt)}return[Nt]},ka=function(ve,pe){var _e={};for(var dt in ve)Object.prototype.hasOwnProperty.call(ve,dt)&&pe.indexOf(dt)<0&&(_e[dt]=ve[dt]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Nt=0,dt=Object.getOwnPropertySymbols(ve);Nt<dt.length;Nt++)pe.indexOf(dt[Nt])<0&&Object.prototype.propertyIsEnumerable.call(ve,dt[Nt])&&(_e[dt[Nt]]=ve[dt[Nt]]);return _e};const Wa=10;function xa(ve,pe){const _e={current:ve.current,pageSize:ve.pageSize};return Object.keys(pe&&typeof pe=="object"?pe:{}).forEach(Nt=>{const jt=ve[Nt];typeof jt!="function"&&(_e[Nt]=jt)}),_e}function Ca(ve,pe,_e){const dt=_e&&typeof _e=="object"?_e:{},{total:Nt=0}=dt,jt=ka(dt,["total"]),[ln,en]=(0,b.useState)(()=>({current:"defaultCurrent"in jt?jt.defaultCurrent:1,pageSize:"defaultPageSize"in jt?jt.defaultPageSize:Wa})),fn=(0,pa.Z)(ln,jt,{total:Nt>0?Nt:ve}),un=Math.ceil((Nt||ve)/fn.pageSize);fn.current>un&&(fn.current=un||1);const Ln=(En,yn)=>{en({current:En!=null?En:1,pageSize:yn||fn.pageSize})},Pn=(En,yn)=>{var vn;_e&&((vn=_e.onChange)===null||vn===void 0||vn.call(_e,En,yn)),Ln(En,yn),pe(En,yn||(fn==null?void 0:fn.pageSize))};return _e===!1?[{},()=>{}]:[Object.assign(Object.assign({},fn),{onChange:Pn}),Ln]}var $a=Ca,rl=ee(89489),gs=ee(59477),ys=ee(25399);const Cl="ascend",Ja="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,pe)=>pe?ve[ve.indexOf(pe)+1]:ve[0],Va=(ve,pe,_e)=>{let dt=[];const Nt=(jt,ln)=>{dt.push({column:jt,key:ni(jt,ln),multiplePriority:Ka(jt),sortOrder:jt.sortOrder})};return(ve||[]).forEach((jt,ln)=>{const en=ui(ln,_e);jt.children?("sortOrder"in jt&&Nt(jt,en),dt=[].concat((0,dn.Z)(dt),(0,dn.Z)(Va(jt.children,pe,en)))):jt.sorter&&("sortOrder"in jt?Nt(jt,en):pe&&jt.defaultSortOrder&&dt.push({column:jt,key:ni(jt,en),multiplePriority:Ka(jt),sortOrder:jt.defaultSortOrder}))}),dt},$l=(ve,pe,_e,dt,Nt,jt,ln,en)=>(pe||[]).map((un,Ln)=>{const Pn=ui(Ln,en);let En=un;if(En.sorter){const yn=En.sortDirections||Nt,vn=En.showSorterTooltip===void 0?ln:En.showSorterTooltip,nr=ni(En,Pn),Wn=_e.find(Gr=>{let{key:zr}=Gr;return zr===nr}),rr=Wn?Wn.sortOrder:null,ur=il(yn,rr);let ir;if(un.sortIcon)ir=un.sortIcon({sortOrder:rr});else{const Gr=yn.includes(Cl)&&b.createElement(gs.Z,{className:Ge()(`${ve}-column-sorter-up`,{active:rr===Cl})}),zr=yn.includes(Ja)&&b.createElement(rl.Z,{className:Ge()(`${ve}-column-sorter-down`,{active:rr===Ja})});ir=b.createElement("span",{className:Ge()(`${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}=jt||{};let Dr=vr;ur===Ja?Dr=Nr:ur===Cl&&(Dr=Sr);const mi=typeof vn=="object"?Object.assign({title:Dr},vn):{title:Dr};En=Object.assign(Object.assign({},En),{className:Ge()(En.className,{[`${ve}-column-sort`]:rr}),title:Gr=>{const zr=`${ve}-column-sorters`,ii=b.createElement("span",{className:`${ve}-column-title`},Vi(un.title,Gr)),kr=b.createElement("div",{className:zr},ii,ir);return vn?typeof vn!="boolean"&&(vn==null?void 0:vn.target)==="sorter-icon"?b.createElement("div",{className:`${zr} ${ve}-column-sorters-tooltip-target-sorter`},ii,b.createElement(ys.Z,Object.assign({},mi),ir)):b.createElement(ys.Z,Object.assign({},mi),kr):kr},onHeaderCell:Gr=>{var zr;const ii=((zr=un.onHeaderCell)===null||zr===void 0?void 0:zr.call(un,Gr))||{},kr=ii.onClick,Br=ii.onKeyDown;ii.onClick=Mr=>{dt({column:un,key:nr,sortOrder:ur,multiplePriority:Ka(un)}),kr==null||kr(Mr)},ii.onKeyDown=Mr=>{Mr.keyCode===Ql.Z.ENTER&&(dt({column:un,key:nr,sortOrder:ur,multiplePriority:Ka(un)}),Br==null||Br(Mr))};const gr=so(un.title,{}),fr=gr==null?void 0:gr.toString();return rr&&(ii["aria-sort"]=rr==="ascend"?"ascending":"descending"),ii["aria-label"]=fr||"",ii.className=Ge()(ii.className,`${ve}-column-has-sorters`),ii.tabIndex=0,un.ellipsis&&(ii.title=(gr!=null?gr:"").toString()),ii}})}return"children"in En&&(En=Object.assign(Object.assign({},En),{children:$l(ve,En.children,_e,dt,Nt,jt,ln,Pn)})),En}),Hs=ve=>{const{column:pe,sortOrder:_e}=ve;return{column:pe,order:_e,field:pe.dataIndex,columnKey:pe.key}},bs=ve=>{const pe=ve.filter(_e=>{let{sortOrder:dt}=_e;return dt}).map(Hs);if(pe.length===0&&ve.length){const _e=ve.length-1;return Object.assign(Object.assign({},Hs(ve[_e])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return pe.length<=1?pe[0]||{}:pe},pl=(ve,pe,_e)=>{const dt=pe.slice().sort((ln,en)=>en.multiplePriority-ln.multiplePriority),Nt=ve.slice(),jt=dt.filter(ln=>{let{column:{sorter:en},sortOrder:fn}=ln;return sa(en)&&fn});return jt.length?Nt.sort((ln,en)=>{for(let fn=0;fn<jt.length;fn+=1){const un=jt[fn],{column:{sorter:Ln},sortOrder:Pn}=un,En=sa(Ln);if(En&&Pn){const yn=En(ln,en,Pn);if(yn!==0)return Pn===Cl?yn:-yn}}return 0}).map(ln=>{const en=ln[_e];return en?Object.assign(Object.assign({},ln),{[_e]:pl(en,pe,_e)}):ln}):Nt};var js=ve=>{const{prefixCls:pe,mergedColumns:_e,sortDirections:dt,tableLocale:Nt,showSorterTooltip:jt,onSorterChange:ln}=ve,[en,fn]=b.useState(Va(_e,!0)),un=(nr,Wn)=>{const rr=[];return nr.forEach((ur,ir)=>{const vr=ui(ir,Wn);if(rr.push(ni(ur,vr)),Array.isArray(ur.children)){const Sr=un(ur.children,vr);rr.push.apply(rr,(0,dn.Z)(Sr))}}),rr},Ln=b.useMemo(()=>{let nr=!0;const Wn=Va(_e,!1);if(!Wn.length){const vr=un(_e);return en.filter(Sr=>{let{key:Nr}=Sr;return vr.includes(Nr)})}const rr=[];function ur(vr){nr?rr.push(vr):rr.push(Object.assign(Object.assign({},vr),{sortOrder:null}))}let ir=null;return Wn.forEach(vr=>{ir===null?(ur(vr),vr.sortOrder&&(vr.multiplePriority===!1?nr=!1:ir=!0)):(ir&&vr.multiplePriority!==!1||(nr=!1),ur(vr))}),rr},[_e,en]),Pn=b.useMemo(()=>{var nr,Wn;const rr=Ln.map(ur=>{let{column:ir,sortOrder:vr}=ur;return{column:ir,order:vr}});return{sortColumns:rr,sortColumn:(nr=rr[0])===null||nr===void 0?void 0:nr.column,sortOrder:(Wn=rr[0])===null||Wn===void 0?void 0:Wn.order}},[Ln]),En=nr=>{let Wn;nr.multiplePriority===!1||!Ln.length||Ln[0].multiplePriority===!1?Wn=[nr]:Wn=[].concat((0,dn.Z)(Ln.filter(rr=>{let{key:ur}=rr;return ur!==nr.key})),[nr]),fn(Wn),ln(bs(Wn),Wn)};return[nr=>$l(pe,nr,Ln,En,dt,Nt,jt),Ln,Pn,()=>bs(Ln)]};const Fl=(ve,pe)=>ve.map(dt=>{const Nt=Object.assign({},dt);return Nt.title=Vi(dt.title,pe),"children"in Nt&&(Nt.children=Fl(Nt.children,pe)),Nt});var xs=ve=>[b.useCallback(_e=>Fl(_e,ve),[ve])],Ws=Vr((ve,pe)=>{const{_renderTimes:_e}=ve,{_renderTimes:dt}=pe;return _e!==dt}),Sl=jn((ve,pe)=>{const{_renderTimes:_e}=ve,{_renderTimes:dt}=pe;return _e!==dt}),ri=ee(36237),wl=ee(17835),ol=ee(63356),oc=ee(16931),ac=ee(51636),Cs=ve=>{const{componentCls:pe,lineWidth:_e,lineType:dt,tableBorderColor:Nt,tableHeaderBg:jt,tablePaddingVertical:ln,tablePaddingHorizontal:en,calc:fn}=ve,un=`${(0,ri.unit)(_e)} ${dt} ${Nt}`,Ln=(Pn,En,yn)=>({[`&${pe}-${Pn}`]:{[`> ${pe}-container`]:{[`> ${pe}-content, > ${pe}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${pe}-expanded-row-fixed`]:{margin:`${(0,ri.unit)(fn(En).mul(-1).equal())}
|
|
|
${(0,ri.unit)(fn(fn(yn).add(_e)).mul(-1).equal())}`}}}}}});return{[`${pe}-wrapper`]:{[`${pe}${pe}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${pe}-title`]:{border:un,borderBottom:0},[`> ${pe}-container`]:{borderInlineStart:un,borderTop:un,[`
|
|
|
> ${pe}-content,
|
|
|
> ${pe}-header,
|
|
|
> ${pe}-body,
|
|
|
> ${pe}-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:un},"> thead":{"> tr:not(:last-child) > th":{borderBottom:un},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${pe}-cell-fix-right-first::after`]:{borderInlineEnd:un}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${pe}-expanded-row-fixed`]:{margin:`${(0,ri.unit)(fn(ln).mul(-1).equal())} ${(0,ri.unit)(fn(fn(en).add(_e)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:_e,bottom:0,borderInlineEnd:un,content:'""'}}}}}},[`&${pe}-scroll-horizontal`]:{[`> ${pe}-container > ${pe}-body`]:{"> table > tbody":{[`
|
|
|
> tr${pe}-expanded-row,
|
|
|
> tr${pe}-placeholder
|
|
|
`]:{"> th, > td":{borderInlineEnd:0}}}}}},Ln("middle",ve.tablePaddingVerticalMiddle,ve.tablePaddingHorizontalMiddle)),Ln("small",ve.tablePaddingVerticalSmall,ve.tablePaddingHorizontalSmall)),{[`> ${pe}-footer`]:{border:un,borderTop:0}}),[`${pe}-cell`]:{[`${pe}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${(0,ri.unit)(_e)} 0 ${(0,ri.unit)(_e)} ${jt}`}},[`${pe}-bordered ${pe}-cell-scrollbar`]:{borderInlineEnd:un}}}},El=ve=>{const{componentCls:pe}=ve;return{[`${pe}-wrapper`]:{[`${pe}-cell-ellipsis`]:Object.assign(Object.assign({},ol.vS),{wordBreak:"keep-all",[`
|
|
|
&${pe}-cell-fix-left-last,
|
|
|
&${pe}-cell-fix-right-first
|
|
|
`]:{overflow:"visible",[`${pe}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${pe}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},lc=ve=>{const{componentCls:pe}=ve;return{[`${pe}-wrapper`]:{[`${pe}-tbody > tr${pe}-placeholder`]:{textAlign:"center",color:ve.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:ve.colorBgContainer}}}}},_s=ve=>{const{componentCls:pe,antCls:_e,motionDurationSlow:dt,lineWidth:Nt,paddingXS:jt,lineType:ln,tableBorderColor:en,tableExpandIconBg:fn,tableExpandColumnWidth:un,borderRadius:Ln,tablePaddingVertical:Pn,tablePaddingHorizontal:En,tableExpandedRowBg:yn,paddingXXS:vn,expandIconMarginTop:nr,expandIconSize:Wn,expandIconHalfInner:rr,expandIconScale:ur,calc:ir}=ve,vr=`${(0,ri.unit)(Nt)} ${ln} ${en}`,Sr=ir(vn).sub(Nt).equal();return{[`${pe}-wrapper`]:{[`${pe}-expand-icon-col`]:{width:un},[`${pe}-row-expand-icon-cell`]:{textAlign:"center",[`${pe}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${pe}-row-indent`]:{height:1,float:"left"},[`${pe}-row-expand-icon`]:Object.assign(Object.assign({},(0,ol.Nd)(ve)),{position:"relative",float:"left",width:Wn,height:Wn,color:"inherit",lineHeight:(0,ri.unit)(Wn),background:fn,border:vr,borderRadius:Ln,transform:`scale(${ur})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${dt} ease-out`,content:'""'},"&::before":{top:rr,insetInlineEnd:Sr,insetInlineStart:Sr,height:Nt},"&::after":{top:Sr,bottom:Sr,insetInlineStart:rr,width:Nt,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${pe}-row-indent + ${pe}-row-expand-icon`]:{marginTop:nr,marginInlineEnd:jt},[`tr${pe}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:yn}},[`${_e}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${pe}-expanded-row-fixed`]:{position:"relative",margin:`${(0,ri.unit)(ir(Pn).mul(-1).equal())} ${(0,ri.unit)(ir(En).mul(-1).equal())}`,padding:`${(0,ri.unit)(Pn)} ${(0,ri.unit)(En)}`}}}},Us=ve=>{const{componentCls:pe,antCls:_e,iconCls:dt,tableFilterDropdownWidth:Nt,tableFilterDropdownSearchWidth:jt,paddingXXS:ln,paddingXS:en,colorText:fn,lineWidth:un,lineType:Ln,tableBorderColor:Pn,headerIconColor:En,fontSizeSM:yn,tablePaddingHorizontal:vn,borderRadius:nr,motionDurationSlow:Wn,colorTextDescription:rr,colorPrimary:ur,tableHeaderFilterActiveBg:ir,colorTextDisabled:vr,tableFilterDropdownBg:Sr,tableFilterDropdownHeight:Nr,controlItemBgHover:Dr,controlItemBgActive:mi,boxShadowSecondary:Gr,filterDropdownMenuBg:zr,calc:ii}=ve,kr=`${_e}-dropdown`,Br=`${pe}-filter-dropdown`,gr=`${_e}-tree`,fr=`${(0,ri.unit)(un)} ${Ln} ${Pn}`;return[{[`${pe}-wrapper`]:{[`${pe}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${pe}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:ii(ln).mul(-1).equal(),marginInline:`${(0,ri.unit)(ln)} ${(0,ri.unit)(ii(vn).div(2).mul(-1).equal())}`,padding:`0 ${(0,ri.unit)(ln)}`,color:En,fontSize:yn,borderRadius:nr,cursor:"pointer",transition:`all ${Wn}`,"&:hover":{color:rr,background:ir},"&.active":{color:ur}}}},{[`${_e}-dropdown`]:{[Br]:Object.assign(Object.assign({},(0,ol.Wf)(ve)),{minWidth:Nt,backgroundColor:Sr,borderRadius:nr,boxShadow:Gr,overflow:"hidden",[`${kr}-menu`]:{maxHeight:Nr,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:zr,"&:empty::after":{display:"block",padding:`${(0,ri.unit)(en)} 0`,color:vr,fontSize:yn,textAlign:"center",content:'"Not Found"'}},[`${Br}-tree`]:{paddingBlock:`${(0,ri.unit)(en)} 0`,paddingInline:en,[gr]:{padding:0},[`${gr}-treenode ${gr}-node-content-wrapper:hover`]:{backgroundColor:Dr},[`${gr}-treenode-checkbox-checked ${gr}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:mi}}},[`${Br}-search`]:{padding:en,borderBottom:fr,"&-input":{input:{minWidth:jt},[dt]:{color:vr}}},[`${Br}-checkall`]:{width:"100%",marginBottom:ln,marginInlineStart:ln},[`${Br}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${(0,ri.unit)(ii(en).sub(un).equal())} ${(0,ri.unit)(en)}`,overflow:"hidden",borderTop:fr}})}},{[`${_e}-dropdown ${Br}, ${Br}-submenu`]:{[`${_e}-checkbox-wrapper + span`]:{paddingInlineStart:en,color:fn},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},Zl=ve=>{const{componentCls:pe,lineWidth:_e,colorSplit:dt,motionDurationSlow:Nt,zIndexTableFixed:jt,tableBg:ln,zIndexTableSticky:en,calc:fn}=ve,un=dt;return{[`${pe}-wrapper`]:{[`
|
|
|
${pe}-cell-fix-left,
|
|
|
${pe}-cell-fix-right
|
|
|
`]:{position:"sticky !important",zIndex:jt,background:ln},[`
|
|
|
${pe}-cell-fix-left-first::after,
|
|
|
${pe}-cell-fix-left-last::after
|
|
|
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:fn(_e).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${Nt}`,content:'""',pointerEvents:"none"},[`${pe}-cell-fix-left-all::after`]:{display:"none"},[`
|
|
|
${pe}-cell-fix-right-first::after,
|
|
|
${pe}-cell-fix-right-last::after
|
|
|
`]:{position:"absolute",top:0,bottom:fn(_e).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${Nt}`,content:'""',pointerEvents:"none"},[`${pe}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:fn(en).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${Nt}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${pe}-ping-left`]:{[`&:not(${pe}-has-fix-left) ${pe}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${un}`},[`
|
|
|
${pe}-cell-fix-left-first::after,
|
|
|
${pe}-cell-fix-left-last::after
|
|
|
`]:{boxShadow:`inset 10px 0 8px -8px ${un}`},[`${pe}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${pe}-ping-right`]:{[`&:not(${pe}-has-fix-right) ${pe}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${un}`},[`
|
|
|
${pe}-cell-fix-right-first::after,
|
|
|
${pe}-cell-fix-right-last::after
|
|
|
`]:{boxShadow:`inset -10px 0 8px -8px ${un}`}},[`${pe}-fixed-column-gapped`]:{[`
|
|
|
${pe}-cell-fix-left-first::after,
|
|
|
${pe}-cell-fix-left-last::after,
|
|
|
${pe}-cell-fix-right-first::after,
|
|
|
${pe}-cell-fix-right-last::after
|
|
|
`]:{boxShadow:"none"}}}}},zl=ve=>{const{componentCls:pe,antCls:_e,margin:dt}=ve;return{[`${pe}-wrapper`]:{[`${pe}-pagination${_e}-pagination`]:{margin:`${(0,ri.unit)(dt)} 0`},[`${pe}-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:pe,tableRadius:_e}=ve;return{[`${pe}-wrapper`]:{[pe]:{[`${pe}-title, ${pe}-header`]:{borderRadius:`${(0,ri.unit)(_e)} ${(0,ri.unit)(_e)} 0 0`},[`${pe}-title + ${pe}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${pe}-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:_e,borderStartEndRadius:_e,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:_e},"> *:last-child":{borderStartEndRadius:_e}}},"&-footer":{borderRadius:`0 0 ${(0,ri.unit)(_e)} ${(0,ri.unit)(_e)}`}}}}},Xs=ve=>{const{componentCls:pe}=ve;return{[`${pe}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${pe}-pagination-left`]:{justifyContent:"flex-end"},[`${pe}-pagination-right`]:{justifyContent:"flex-start"},[`${pe}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${pe}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${pe}-row-indent`]:{float:"right"}}}}},ml=ve=>{const{componentCls:pe,antCls:_e,iconCls:dt,fontSizeIcon:Nt,padding:jt,paddingXS:ln,headerIconColor:en,headerIconHoverColor:fn,tableSelectionColumnWidth:un,tableSelectedRowBg:Ln,tableSelectedRowHoverBg:Pn,tableRowHoverBg:En,tablePaddingHorizontal:yn,calc:vn}=ve;return{[`${pe}-wrapper`]:{[`${pe}-selection-col`]:{width:un,[`&${pe}-selection-col-with-dropdown`]:{width:vn(un).add(Nt).add(vn(jt).div(4)).equal()}},[`${pe}-bordered ${pe}-selection-col`]:{width:vn(un).add(vn(ln).mul(2)).equal(),[`&${pe}-selection-col-with-dropdown`]:{width:vn(un).add(Nt).add(vn(jt).div(4)).add(vn(ln).mul(2)).equal()}},[`
|
|
|
table tr th${pe}-selection-column,
|
|
|
table tr td${pe}-selection-column,
|
|
|
${pe}-selection-column
|
|
|
`]:{paddingInlineEnd:ve.paddingXS,paddingInlineStart:ve.paddingXS,textAlign:"center",[`${_e}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${pe}-selection-column${pe}-cell-fix-left`]:{zIndex:vn(ve.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${pe}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${pe}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${pe}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${ve.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:(0,ri.unit)(vn(yn).div(4).equal()),[dt]:{color:en,fontSize:Nt,verticalAlign:"baseline","&:hover":{color:fn}}},[`${pe}-tbody`]:{[`${pe}-row`]:{[`&${pe}-row-selected`]:{[`> ${pe}-cell`]:{background:Ln,"&-row-hover":{background:Pn}}},[`> ${pe}-cell-row-hover`]:{background:En}}}}}},cc=ve=>{const{componentCls:pe,tableExpandColumnWidth:_e,calc:dt}=ve,Nt=(jt,ln,en,fn)=>({[`${pe}${pe}-${jt}`]:{fontSize:fn,[`
|
|
|
${pe}-title,
|
|
|
${pe}-footer,
|
|
|
${pe}-cell,
|
|
|
${pe}-thead > tr > th,
|
|
|
${pe}-tbody > tr > th,
|
|
|
${pe}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{padding:`${(0,ri.unit)(ln)} ${(0,ri.unit)(en)}`},[`${pe}-filter-trigger`]:{marginInlineEnd:(0,ri.unit)(dt(en).div(2).mul(-1).equal())},[`${pe}-expanded-row-fixed`]:{margin:`${(0,ri.unit)(dt(ln).mul(-1).equal())} ${(0,ri.unit)(dt(en).mul(-1).equal())}`},[`${pe}-tbody`]:{[`${pe}-wrapper:only-child ${pe}`]:{marginBlock:(0,ri.unit)(dt(ln).mul(-1).equal()),marginInline:`${(0,ri.unit)(dt(_e).sub(en).equal())} ${(0,ri.unit)(dt(en).mul(-1).equal())}`}},[`${pe}-selection-extra`]:{paddingInlineStart:(0,ri.unit)(dt(en).div(4).equal())}}});return{[`${pe}-wrapper`]:Object.assign(Object.assign({},Nt("middle",ve.tablePaddingVerticalMiddle,ve.tablePaddingHorizontalMiddle,ve.tableFontSizeMiddle)),Nt("small",ve.tablePaddingVerticalSmall,ve.tablePaddingHorizontalSmall,ve.tableFontSizeSmall))}},uc=ve=>{const{componentCls:pe,marginXXS:_e,fontSizeIcon:dt,headerIconColor:Nt,headerIconHoverColor:jt}=ve;return{[`${pe}-wrapper`]:{[`${pe}-thead th${pe}-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},[`
|
|
|
&${pe}-cell-fix-left:hover,
|
|
|
&${pe}-cell-fix-right:hover
|
|
|
`]:{background:ve.tableFixedHeaderSortActiveBg}},[`${pe}-thead th${pe}-column-sort`]:{background:ve.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${pe}-column-sort`]:{background:ve.tableBodySortBg},[`${pe}-column-title`]:{position:"relative",zIndex:1,flex:1,minWidth:0},[`${pe}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${pe}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${pe}-column-sorter`]:{marginInlineStart:_e,color:Nt,fontSize:0,transition:`color ${ve.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:dt,"&.active":{color:ve.colorPrimary}},[`${pe}-column-sorter-up + ${pe}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${pe}-column-sorters:hover ${pe}-column-sorter`]:{color:jt}}}},dc=ve=>{const{componentCls:pe,opacityLoading:_e,tableScrollThumbBg:dt,tableScrollThumbBgHover:Nt,tableScrollThumbSize:jt,tableScrollBg:ln,zIndexTableSticky:en,stickyScrollBarBorderRadius:fn,lineWidth:un,lineType:Ln,tableBorderColor:Pn}=ve,En=`${(0,ri.unit)(un)} ${Ln} ${Pn}`;return{[`${pe}-wrapper`]:{[`${pe}-sticky`]:{"&-holder":{position:"sticky",zIndex:en,background:ve.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${(0,ri.unit)(jt)} !important`,zIndex:en,display:"flex",alignItems:"center",background:ln,borderTop:En,opacity:_e,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:jt,backgroundColor:dt,borderRadius:fn,transition:`all ${ve.motionDurationSlow}, transform 0s`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:Nt}}}}}}},ma=ve=>{const{componentCls:pe,lineWidth:_e,tableBorderColor:dt,calc:Nt}=ve,jt=`${(0,ri.unit)(_e)} ${ve.lineType} ${dt}`;return{[`${pe}-wrapper`]:{[`${pe}-summary`]:{position:"relative",zIndex:ve.zIndexTableFixed,background:ve.tableBg,"> tr":{"> th, > td":{borderBottom:jt}}},[`div${pe}-summary`]:{boxShadow:`0 ${(0,ri.unit)(Nt(_e).mul(-1).equal())} 0 ${dt}`}}}},ca=ve=>{const{componentCls:pe,motionDurationMid:_e,lineWidth:dt,lineType:Nt,tableBorderColor:jt,calc:ln}=ve,en=`${(0,ri.unit)(dt)} ${Nt} ${jt}`,fn=`${pe}-expanded-row-cell`;return{[`${pe}-wrapper`]:{[`${pe}-tbody-virtual`]:{[`${pe}-tbody-virtual-holder-inner`]:{[`
|
|
|
& > ${pe}-row,
|
|
|
& > div:not(${pe}-row) > ${pe}-row
|
|
|
`]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${pe}-cell`]:{borderBottom:en,transition:`background ${_e}`},[`${pe}-expanded-row`]:{[`${fn}${fn}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${(0,ri.unit)(dt)})`,borderInlineEnd:"none"}}},[`${pe}-bordered`]:{[`${pe}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:en,position:"absolute"},[`${pe}-cell`]:{borderInlineEnd:en,[`&${pe}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:ln(dt).mul(-1).equal(),borderInlineStart:en}}},[`&${pe}-virtual`]:{[`${pe}-placeholder ${pe}-cell`]:{borderInlineEnd:en,borderBottom:en}}}}}};const _o=ve=>{const{componentCls:pe,fontWeightStrong:_e,tablePaddingVertical:dt,tablePaddingHorizontal:Nt,tableExpandColumnWidth:jt,lineWidth:ln,lineType:en,tableBorderColor:fn,tableFontSize:un,tableBg:Ln,tableRadius:Pn,tableHeaderTextColor:En,motionDurationMid:yn,tableHeaderBg:vn,tableHeaderCellSplitColor:nr,tableFooterTextColor:Wn,tableFooterBg:rr,calc:ur}=ve,ir=`${(0,ri.unit)(ln)} ${en} ${fn}`;return{[`${pe}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,ol.dF)()),{[pe]:Object.assign(Object.assign({},(0,ol.Wf)(ve)),{fontSize:un,background:Ln,borderRadius:`${(0,ri.unit)(Pn)} ${(0,ri.unit)(Pn)} 0 0`,scrollbarColor:`${ve.tableScrollThumbBg} ${ve.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${(0,ri.unit)(Pn)} ${(0,ri.unit)(Pn)} 0 0`,borderCollapse:"separate",borderSpacing:0},[`
|
|
|
${pe}-cell,
|
|
|
${pe}-thead > tr > th,
|
|
|
${pe}-tbody > tr > th,
|
|
|
${pe}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{position:"relative",padding:`${(0,ri.unit)(dt)} ${(0,ri.unit)(Nt)}`,overflowWrap:"break-word"},[`${pe}-title`]:{padding:`${(0,ri.unit)(dt)} ${(0,ri.unit)(Nt)}`},[`${pe}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:En,fontWeight:_e,textAlign:"start",background:vn,borderBottom:ir,transition:`background ${yn} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${pe}-selection-column):not(${pe}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:nr,transform:"translateY(-50%)",transition:`background-color ${yn}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${pe}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${yn}, border-color ${yn}`,borderBottom:ir,[`
|
|
|
> ${pe}-wrapper:only-child,
|
|
|
> ${pe}-expanded-row-fixed > ${pe}-wrapper:only-child
|
|
|
`]:{[pe]:{marginBlock:(0,ri.unit)(ur(dt).mul(-1).equal()),marginInline:`${(0,ri.unit)(ur(jt).sub(Nt).equal())}
|
|
|
${(0,ri.unit)(ur(Nt).mul(-1).equal())}`,[`${pe}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:En,fontWeight:_e,textAlign:"start",background:vn,borderBottom:ir,transition:`background ${yn} ease`}}},[`${pe}-footer`]:{padding:`${(0,ri.unit)(dt)} ${(0,ri.unit)(Nt)}`,color:Wn,background:rr}})}},jl=ve=>{const{colorFillAlter:pe,colorBgContainer:_e,colorTextHeading:dt,colorFillSecondary:Nt,colorFillContent:jt,controlItemBgActive:ln,controlItemBgActiveHover:en,padding:fn,paddingSM:un,paddingXS:Ln,colorBorderSecondary:Pn,borderRadiusLG:En,controlHeight:yn,colorTextPlaceholder:vn,fontSize:nr,fontSizeSM:Wn,lineHeight:rr,lineWidth:ur,colorIcon:ir,colorIconHover:vr,opacityLoading:Sr,controlInteractiveSize:Nr}=ve,Dr=new wl.FastColor(Nt).onBackground(_e).toHexString(),mi=new wl.FastColor(jt).onBackground(_e).toHexString(),Gr=new wl.FastColor(pe).onBackground(_e).toHexString(),zr=new wl.FastColor(ir),ii=new wl.FastColor(vr),kr=Nr/2-ur,Br=kr*2+ur*3;return{headerBg:Gr,headerColor:dt,headerSortActiveBg:Dr,headerSortHoverBg:mi,bodySortBg:Gr,rowHoverBg:Gr,rowSelectedBg:ln,rowSelectedHoverBg:en,rowExpandedBg:pe,cellPaddingBlock:fn,cellPaddingInline:fn,cellPaddingBlockMD:un,cellPaddingInlineMD:Ln,cellPaddingBlockSM:Ln,cellPaddingInlineSM:Ln,borderColor:Pn,headerBorderRadius:En,footerBg:Gr,footerColor:dt,cellFontSize:nr,cellFontSizeMD:nr,cellFontSizeSM:nr,headerSplitColor:Pn,fixedHeaderSortActiveBg:Dr,headerFilterHoverBg:jt,filterDropdownMenuBg:_e,filterDropdownBg:_e,expandIconBg:_e,selectionColumnWidth:yn,stickyScrollBarBg:vn,stickyScrollBarBorderRadius:100,expandIconMarginTop:(nr*rr-ur*3)/2-Math.ceil((Wn*1.4-ur*3)/2),headerIconColor:zr.clone().setA(zr.a*Sr).toRgbString(),headerIconHoverColor:ii.clone().setA(ii.a*Sr).toRgbString(),expandIconHalfInner:kr,expandIconSize:Br,expandIconScale:Nr/Br}},Ys=2;var rs=(0,oc.I$)("Table",ve=>{const{colorTextHeading:pe,colorSplit:_e,colorBgContainer:dt,controlInteractiveSize:Nt,headerBg:jt,headerColor:ln,headerSortActiveBg:en,headerSortHoverBg:fn,bodySortBg:un,rowHoverBg:Ln,rowSelectedBg:Pn,rowSelectedHoverBg:En,rowExpandedBg:yn,cellPaddingBlock:vn,cellPaddingInline:nr,cellPaddingBlockMD:Wn,cellPaddingInlineMD:rr,cellPaddingBlockSM:ur,cellPaddingInlineSM:ir,borderColor:vr,footerBg:Sr,footerColor:Nr,headerBorderRadius:Dr,cellFontSize:mi,cellFontSizeMD:Gr,cellFontSizeSM:zr,headerSplitColor:ii,fixedHeaderSortActiveBg:kr,headerFilterHoverBg:Br,filterDropdownBg:gr,expandIconBg:fr,selectionColumnWidth:Mr,stickyScrollBarBg:Rr,calc:Xr}=ve,xr=(0,ac.mergeToken)(ve,{tableFontSize:mi,tableBg:dt,tableRadius:Dr,tablePaddingVertical:vn,tablePaddingHorizontal:nr,tablePaddingVerticalMiddle:Wn,tablePaddingHorizontalMiddle:rr,tablePaddingVerticalSmall:ur,tablePaddingHorizontalSmall:ir,tableBorderColor:vr,tableHeaderTextColor:ln,tableHeaderBg:jt,tableFooterTextColor:Nr,tableFooterBg:Sr,tableHeaderCellSplitColor:ii,tableHeaderSortBg:en,tableHeaderSortHoverBg:fn,tableBodySortBg:un,tableFixedHeaderSortActiveBg:kr,tableHeaderFilterActiveBg:Br,tableFilterDropdownBg:gr,tableRowHoverBg:Ln,tableSelectedRowBg:Pn,tableSelectedRowHoverBg:En,zIndexTableFixed:Ys,zIndexTableSticky:Xr(Ys).add(1).equal({unit:!1}),tableFontSizeMiddle:Gr,tableFontSizeSmall:zr,tableSelectionColumnWidth:Mr,tableExpandIconBg:fr,tableExpandColumnWidth:Xr(Nt).add(Xr(ve.padding).mul(2)).equal(),tableExpandedRowBg:yn,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:Rr,tableScrollThumbBgHover:pe,tableScrollBg:_e});return[_o(xr),zl(xr),ma(xr),uc(xr),Us(xr),Cs(xr),Gs(xr),_s(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,pe)=>{var _e,dt;const{prefixCls:Nt,className:jt,rootClassName:ln,style:en,size:fn,bordered:un,dropdownPrefixCls:Ln,dataSource:Pn,pagination:En,rowSelection:yn,rowKey:vn="key",rowClassName:nr,columns:Wn,children:rr,childrenColumnName:ur,onChange:ir,getPopupContainer:vr,loading:Sr,expandIcon:Nr,expandable:Dr,expandedRowRender:mi,expandIconColumnIndex:Gr,indentSize:zr,scroll:ii,sortDirections:kr,locale:Br,showSorterTooltip:gr={target:"full-header"},virtual:fr}=ve,Mr=(0,Ii.ln)("Table"),Rr=b.useMemo(()=>Wn||sn(rr),[Wn,rr]),Xr=b.useMemo(()=>Rr.some(yi=>yi.responsive),[Rr]),xr=(0,Zo.Z)(Xr),wi=b.useMemo(()=>{const yi=new Set(Object.keys(xr).filter(Li=>xr[Li]));return Rr.filter(Li=>!Li.responsive||Li.responsive.some(vo=>yi.has(vo)))},[Rr,xr]),Oi=(0,Qi.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),Br),Bo=Pn||fc,jr=So("table",Nt),di=So("dropdown",Ln),[,Fr]=(0,ul.ZP)(),Tr=(0,Zi.Z)(jr),[Ri,_i,co]=rs(jr,Tr),to=Object.assign(Object.assign({childrenColumnName:ur,expandIconColumnIndex:Gr},Dr),{expandIcon:(_e=Dr==null?void 0:Dr.expandIcon)!==null&&_e!==void 0?_e:(dt=ro==null?void 0:ro.expandable)===null||dt===void 0?void 0:dt.expandIcon}),{childrenColumnName:Eo="children"}=to,Ao=b.useMemo(()=>Bo.some(yi=>yi==null?void 0:yi[Eo])?"nest":mi||Dr!=null&&Dr.expandedRowRender?"row":null,[Bo]),Kr={body:b.useRef(null)},ei=Ci(jr),Gi=b.useRef(null),eo=b.useRef(null);ai(pe,()=>Object.assign(Object.assign({},eo.current),{nativeElement:Gi.current}));const Ji=b.useMemo(()=>typeof vn=="function"?vn:yi=>yi==null?void 0:yi[vn],[vn]),[zo]=Aa(Bo,Eo,Ji),Io={},va=function(yi,Li){let vo=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Po,Uo,Ho,Fa;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),En&&((Ho=En.onChange)===null||Ho===void 0||Ho.call(En,1,(Fa=ea.pagination)===null||Fa===void 0?void 0:Fa.pageSize))),ii&&ii.scrollToFirstRowOnChange!==!1&&Kr.body.current&&(0,Wi.Z)(0,{getContainer:()=>Kr.body.current}),ir==null||ir(ea.pagination,ea.filters,ea.sorter,{currentDataSource:Si(pl(Bo,ea.sorterStates,Eo),ea.filterStates,Eo),action:Li})},po=(yi,Li)=>{va({sorter:yi,sorterStates:Li},"sort",!1)},[zi,no,io,$o]=js({prefixCls:jr,mergedColumns:wi,onSorterChange:po,sortDirections:kr||["ascend","descend"],tableLocale:wo,showSorterTooltip:gr}),bo=b.useMemo(()=>pl(Bo,no,Eo),[Bo,no]);Io.sorter=$o(),Io.sorterStates=no;const Hi=(yi,Li)=>{va({filters:yi,filterStates:Li},"filter",!0)},[mo,Xi,Qo]=ko({prefixCls:jr,locale:wo,dropdownPrefixCls:di,mergedColumns:wi,onFilterChange:Hi,getPopupContainer:vr||Di,rootClassName:Ge()(ln,Tr)}),Lo=Si(bo,Xi,Eo);Io.filters=Qo,Io.filterStates=Xi;const ua=b.useMemo(()=>{const yi={};return Object.keys(Qo).forEach(Li=>{Qo[Li]!==null&&(yi[Li]=Qo[Li])}),Object.assign(Object.assign({},io),{filters:yi})},[io,Qo]),[ga]=xs(ua),Ua=(yi,Li)=>{va({pagination:Object.assign(Object.assign({},Io.pagination),{current:yi,pageSize:Li})},"paginate")},[oo,Wl]=$a(Lo.length,Ua,En);Io.pagination=En===!1?{}:xa(oo,En),Io.resetPagination=Wl;const da=b.useMemo(()=>{if(En===!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)},[!!En,Lo,oo==null?void 0:oo.current,oo==null?void 0:oo.pageSize,oo==null?void 0:oo.total]),[Ba,wa]=Hr({prefixCls:jr,data:Lo,pageData:da,getRowKey:Ji,getRecordByKey:zo,expandType:Ao,childrenColumnName:Eo,locale:wo,getPopupContainer:vr||Di},yn),ya=(yi,Li,vo)=>{let Po;return typeof nr=="function"?Po=Ge()(nr(yi,Li,vo)):Po=Ge()(nr),Ge()({[`${jr}-row-selected`]:wa.has(Ji(yi,Li))},Po)};to.__PARENT_RENDER_ICON__=to.expandIcon,to.expandIcon=to.expandIcon||Nr||si(wo),Ao==="nest"&&to.expandIconColumnIndex===void 0?to.expandIconColumnIndex=yn?1:0:to.expandIconColumnIndex>0&&yn&&(to.expandIconColumnIndex-=1),typeof to.indentSize!="number"&&(to.indentSize=typeof zr=="number"?zr:15);const ao=b.useCallback(yi=>ga(Ba(mo(zi(yi)))),[zi,mo,Ba]);let Ea,al;if(En!==!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:Ge()(`${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")),Fa=Po.every(ea=>`${ea}`=="none");!Uo&&!Ho&&!Fa&&(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=Ge()(co,Tr,`${jr}-wrapper`,ro==null?void 0:ro.className,{[`${jr}-wrapper-rtl`]:fo==="rtl"},jt,ln,_i),is=Object.assign(Object.assign({},ro==null?void 0:ro.style),en),os=typeof(Br==null?void 0:Br.emptyText)!="undefined"?Br.emptyText:(ho==null?void 0:ho("Table"))||b.createElement(gi.Z,{componentName:"Table"}),as=fr?Sl:Ws,ls={},Is=b.useMemo(()=>{const{fontSize:yi,lineHeight:Li,lineWidth:vo,padding:Po,paddingXS:Uo,paddingSM:Ho}=Fr,Fa=Math.floor(yi*Li);switch(Ti){case"middle":return Ho*2+Fa+vo;case"small":return Uo*2+Fa+vo;default:return Po*2+Fa+vo}},[Fr,Ti]);return fr&&(ls.listItemHeight=Is),Ri(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:Ge()({[`${jr}-middle`]:Ti==="middle",[`${jr}-small`]:Ti==="small",[`${jr}-bordered`]:un,[`${jr}-empty`]:Bo.length===0},co,Tr,_i),data:da,rowKey:Ji,rowClassName:ya,emptyText:os,internalHooks:fe,internalRefs:Kr,transformColumns:ao,getContainerWidth:ei})),al)))};var pc=b.forwardRef(hc);const ws=(ve,pe)=>{const _e=b.useRef(0);return _e.current+=1,b.createElement(pc,Object.assign({},ve,{ref:pe,_renderTimes:_e.current}))},_a=b.forwardRef(ws);_a.SELECTION_COLUMN=Bi,_a.EXPAND_COLUMN=We,_a.SELECTION_ALL=lo,_a.SELECTION_INVERT=xo,_a.SELECTION_NONE=Do,_a.Column=br,_a.ColumnGroup=Mn,_a.Summary=ke;var Es=_a,mc=Es},96599:function(wn,Qt,ee){"use strict";ee.d(Qt,{default:function(){return Ge}});var b=ee(59301),We=ee(92310),fe=ee.n(We),Ue=ee(2738),Ee=ee(29509),xe=ee(78776),Ie=ee(22703),Ze=ee(12919),Ce=ee(48755),ue=ee(36237),tt=ee(17835),Le=ee(63356),Rt=ee(51636),it=ee(16931);const $e=de=>{const{paddingXXS:Dt,lineWidth:Ke,tagPaddingHorizontal:gt,componentCls:Yt,calc:Ne}=de,me=Ne(gt).sub(Ke).equal(),Pt=Ne(Dt).sub(Ke).equal();return{[Yt]:Object.assign(Object.assign({},(0,Le.Wf)(de)),{display:"inline-block",height:"auto",marginInlineEnd:de.marginXS,paddingInline:me,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:Pt,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:me}}),[`${Yt}-borderless`]:{borderColor:"transparent",background:de.tagBorderlessBg}}},Te=de=>{const{lineWidth:Dt,fontSizeIcon:Ke,calc:gt}=de,Yt=de.fontSizeSM;return(0,Rt.mergeToken)(de,{tagFontSize:Yt,tagLineHeight:(0,ue.unit)(gt(de.lineHeightSM).mul(Yt).equal()),tagIconSize:gt(Ke).sub(gt(Dt).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:de.defaultBg})},Oe=de=>({defaultBg:new tt.FastColor(de.colorFillQuaternary).onBackground(de.colorBgContainer).toHexString(),defaultColor:de.colorText});var Xe=(0,it.I$)("Tag",de=>{const Dt=Te(de);return $e(Dt)},Oe),pt=function(de,Dt){var Ke={};for(var gt in de)Object.prototype.hasOwnProperty.call(de,gt)&&Dt.indexOf(gt)<0&&(Ke[gt]=de[gt]);if(de!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Yt=0,gt=Object.getOwnPropertySymbols(de);Yt<gt.length;Yt++)Dt.indexOf(gt[Yt])<0&&Object.prototype.propertyIsEnumerable.call(de,gt[Yt])&&(Ke[gt[Yt]]=de[gt[Yt]]);return Ke},je=b.forwardRef((de,Dt)=>{const{prefixCls:Ke,style:gt,className:Yt,checked:Ne,onChange:me,onClick:Pt}=de,Ut=pt(de,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:kt,tag:ge}=b.useContext(Ce.E_),et=tn=>{me==null||me(!Ne),Pt==null||Pt(tn)},rt=kt("tag",Ke),[_t,Qe,Bt]=Xe(rt),qe=fe()(rt,`${rt}-checkable`,{[`${rt}-checkable-checked`]:Ne},ge==null?void 0:ge.className,Yt,Qe,Bt);return _t(b.createElement("span",Object.assign({},Ut,{ref:Dt,style:Object.assign(Object.assign({},gt),ge==null?void 0:ge.style),className:qe,onClick:et})))}),Be=ee(93427);const Je=de=>(0,Be.Z)(de,(Dt,Ke)=>{let{textColor:gt,lightBorderColor:Yt,lightColor:Ne,darkColor:me}=Ke;return{[`${de.componentCls}${de.componentCls}-${Dt}`]:{color:gt,background:Ne,borderColor:Yt,"&-inverse":{color:de.colorTextLightSolid,background:me,borderColor:me},[`&${de.componentCls}-borderless`]:{borderColor:"transparent"}}}});var nt=(0,it.bk)(["Tag","preset"],de=>{const Dt=Te(de);return Je(Dt)},Oe);function zt(de){return typeof de!="string"?de:de.charAt(0).toUpperCase()+de.slice(1)}const yt=(de,Dt,Ke)=>{const gt=zt(Ke);return{[`${de.componentCls}${de.componentCls}-${Dt}`]:{color:de[`color${Ke}`],background:de[`color${gt}Bg`],borderColor:de[`color${gt}Border`],[`&${de.componentCls}-borderless`]:{borderColor:"transparent"}}}};var ot=(0,it.bk)(["Tag","status"],de=>{const Dt=Te(de);return[yt(Dt,"success","Success"),yt(Dt,"processing","Info"),yt(Dt,"error","Error"),yt(Dt,"warning","Warning")]},Oe),ct=function(de,Dt){var Ke={};for(var gt in de)Object.prototype.hasOwnProperty.call(de,gt)&&Dt.indexOf(gt)<0&&(Ke[gt]=de[gt]);if(de!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Yt=0,gt=Object.getOwnPropertySymbols(de);Yt<gt.length;Yt++)Dt.indexOf(gt[Yt])<0&&Object.prototype.propertyIsEnumerable.call(de,gt[Yt])&&(Ke[gt[Yt]]=de[gt[Yt]]);return Ke};const lt=b.forwardRef((de,Dt)=>{const{prefixCls:Ke,className:gt,rootClassName:Yt,style:Ne,children:me,icon:Pt,color:Ut,onClose:kt,bordered:ge=!0,visible:et}=de,rt=ct(de,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:_t,direction:Qe,tag:Bt}=b.useContext(Ce.E_),[qe,tn]=b.useState(!0),Tt=(0,Ue.Z)(rt,["closeIcon","closable"]);b.useEffect(()=>{et!==void 0&&tn(et)},[et]);const ae=(0,Ee.o2)(Ut),ne=(0,Ee.yT)(Ut),te=ae||ne,oe=Object.assign(Object.assign({backgroundColor:Ut&&!te?Ut:void 0},Bt==null?void 0:Bt.style),Ne),ce=_t("tag",Ke),[re,le,ye]=Xe(ce),ft=fe()(ce,Bt==null?void 0:Bt.className,{[`${ce}-${Ut}`]:te,[`${ce}-has-color`]:Ut&&!te,[`${ce}-hidden`]:!qe,[`${ce}-rtl`]:Qe==="rtl",[`${ce}-borderless`]:!ge},gt,Yt,le,ye),Ae=De=>{De.stopPropagation(),kt==null||kt(De),!De.defaultPrevented&&tn(!1)},[,ke]=(0,xe.Z)((0,xe.w)(de),(0,xe.w)(Bt),{closable:!1,closeIconRender:De=>{const Zt=b.createElement("span",{className:`${ce}-close-icon`,onClick:Ae},De);return(0,Ie.wm)(De,Zt,Ht=>({onClick:nn=>{var qt;(qt=Ht==null?void 0:Ht.onClick)===null||qt===void 0||qt.call(Ht,nn),Ae(nn)},className:fe()(Ht==null?void 0:Ht.className,`${ce}-close-icon`)}))}}),Ve=typeof rt.onClick=="function"||me&&me.type==="a",Ye=Pt||null,mt=Ye?b.createElement(b.Fragment,null,Ye,me&&b.createElement("span",null,me)):me,we=b.createElement("span",Object.assign({},Tt,{ref:Dt,className:ft,style:oe}),mt,ke,ae&&b.createElement(nt,{key:"preset",prefixCls:ce}),ne&&b.createElement(ot,{key:"status",prefixCls:ce}));return re(Ve?b.createElement(Ze.Z,{component:"Tag"},we):we)});lt.CheckableTag=je;var Ge=lt},18287:function(wn,Qt,ee){"use strict";ee.d(Qt,{default:function(){return kt}});var b=ee(87632),We=ee(77654),fe=ee(59301),Ue=ee(52671),Ee=ee(8657),xe=ee(60499),Ie={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"},Ze=Ie,Ce=ee(7657),ue=function(et,rt){return fe.createElement(Ce.Z,(0,xe.Z)({},et,{ref:rt,icon:Ze}))},tt=fe.forwardRef(ue),Le=tt,Rt=ee(92310),it=ee.n(Rt),$e=ee(82661),Te=ee(34061),Oe=ee(48755),Xe=ee(56082),pt=ee(86641),At=ee(57700),je=ee(12425);const Be=4;function Je(ge){const{dropPosition:et,dropLevelOffset:rt,prefixCls:_t,indent:Qe,direction:Bt="ltr"}=ge,qe=Bt==="ltr"?"left":"right",tn=Bt==="ltr"?"right":"left",Tt={[qe]:-rt*Qe+Be,[tn]:0};switch(et){case-1:Tt.top=-3;break;case 1:Tt.bottom=-3;break;default:Tt.bottom=-3,Tt[qe]=Qe+Be;break}return fe.createElement("div",{style:Tt,className:`${_t}-drop-indicator`})}var nt=Je,zt=ee(85278),ot=fe.forwardRef((ge,et)=>{var rt;const{getPrefixCls:_t,direction:Qe,virtual:Bt,tree:qe}=fe.useContext(Oe.E_),{prefixCls:tn,className:Tt,showIcon:ae=!1,showLine:ne,switcherIcon:te,switcherLoadingIcon:oe,blockNode:ce=!1,children:re,checkable:le=!1,selectable:ye=!0,draggable:ft,motion:Ae,style:ke}=ge,Ve=_t("tree",tn),Ye=_t(),mt=Ae!=null?Ae:Object.assign(Object.assign({},(0,pt.Z)(Ye)),{motionAppear:!1}),we=Object.assign(Object.assign({},ge),{checkable:le,selectable:ye,showIcon:ae,motion:mt,blockNode:ce,showLine:!!ne,dropIndicatorRender:nt}),[De,Zt,Ht]=(0,je.ZP)(Ve),[,nn]=(0,At.ZP)(),qt=nn.paddingXS/2+(((rt=nn.Tree)===null||rt===void 0?void 0:rt.titleHeight)||nn.controlHeightSM),Et=fe.useMemo(()=>{if(!ft)return!1;let Kt={};switch(typeof ft){case"function":Kt.nodeDraggable=ft;break;case"object":Kt=Object.assign({},ft);break;default:break}return Kt.icon!==!1&&(Kt.icon=Kt.icon||fe.createElement(Xe.Z,null)),Kt},[ft]),on=Kt=>fe.createElement(zt.Z,{prefixCls:Ve,switcherIcon:te,switcherLoadingIcon:oe,treeNodeProps:Kt,showLine:ne});return De(fe.createElement(b.ZP,Object.assign({itemHeight:qt,ref:et,virtual:Bt},we,{style:Object.assign(Object.assign({},qe==null?void 0:qe.style),ke),prefixCls:Ve,className:it()({[`${Ve}-icon-hide`]:!ae,[`${Ve}-block-node`]:ce,[`${Ve}-unselectable`]:!ye,[`${Ve}-rtl`]:Qe==="rtl"},qe==null?void 0:qe.className,Tt,Zt,Ht),direction:Qe,checkable:le&&fe.createElement("span",{className:`${Ve}-checkbox-inner`}),selectable:ye,switcherIcon:on,draggable:Et}),re))});const ct=0,Se=1,lt=2;function Ge(ge,et,rt){const{key:_t,children:Qe}=rt;function Bt(qe){const tn=qe[_t],Tt=qe[Qe];et(tn,qe)!==!1&&Ge(Tt||[],et,rt)}ge.forEach(Bt)}function de(ge){let{treeData:et,expandedKeys:rt,startKey:_t,endKey:Qe,fieldNames:Bt}=ge;const qe=[];let tn=ct;if(_t&&_t===Qe)return[_t];if(!_t||!Qe)return[];function Tt(ae){return ae===_t||ae===Qe}return Ge(et,ae=>{if(tn===lt)return!1;if(Tt(ae)){if(qe.push(ae),tn===ct)tn=Se;else if(tn===Se)return tn=lt,!1}else tn===Se&&qe.push(ae);return rt.includes(ae)},(0,Te.w$)(Bt)),qe}function Dt(ge,et,rt){const _t=(0,We.Z)(et),Qe=[];return Ge(ge,(Bt,qe)=>{const tn=_t.indexOf(Bt);return tn!==-1&&(Qe.push(qe),_t.splice(tn,1)),!!_t.length},(0,Te.w$)(rt)),Qe}var Ke=function(ge,et){var rt={};for(var _t in ge)Object.prototype.hasOwnProperty.call(ge,_t)&&et.indexOf(_t)<0&&(rt[_t]=ge[_t]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qe=0,_t=Object.getOwnPropertySymbols(ge);Qe<_t.length;Qe++)et.indexOf(_t[Qe])<0&&Object.prototype.propertyIsEnumerable.call(ge,_t[Qe])&&(rt[_t[Qe]]=ge[_t[Qe]]);return rt};function gt(ge){const{isLeaf:et,expanded:rt}=ge;return et?fe.createElement(Ue.Z,null):rt?fe.createElement(Ee.Z,null):fe.createElement(Le,null)}function Yt(ge){let{treeData:et,children:rt}=ge;return et||(0,Te.zn)(rt)}const Ne=(ge,et)=>{var{defaultExpandAll:rt,defaultExpandParent:_t,defaultExpandedKeys:Qe}=ge,Bt=Ke(ge,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const qe=fe.useRef(null),tn=fe.useRef(null),Tt=()=>{const{keyEntities:De}=(0,Te.I8)(Yt(Bt));let Zt;return rt?Zt=Object.keys(De):_t?Zt=(0,$e.r7)(Bt.expandedKeys||Qe||[],De):Zt=Bt.expandedKeys||Qe||[],Zt},[ae,ne]=fe.useState(Bt.selectedKeys||Bt.defaultSelectedKeys||[]),[te,oe]=fe.useState(()=>Tt());fe.useEffect(()=>{"selectedKeys"in Bt&&ne(Bt.selectedKeys)},[Bt.selectedKeys]),fe.useEffect(()=>{"expandedKeys"in Bt&&oe(Bt.expandedKeys)},[Bt.expandedKeys]);const ce=(De,Zt)=>{var Ht;return"expandedKeys"in Bt||oe(De),(Ht=Bt.onExpand)===null||Ht===void 0?void 0:Ht.call(Bt,De,Zt)},re=(De,Zt)=>{var Ht;const{multiple:nn,fieldNames:qt}=Bt,{node:Et,nativeEvent:on}=Zt,{key:Kt=""}=Et,He=Yt(Bt),ht=Object.assign(Object.assign({},Zt),{selected:!0}),at=(on==null?void 0:on.ctrlKey)||(on==null?void 0:on.metaKey),Mt=on==null?void 0:on.shiftKey;let Me;nn&&at?(Me=De,qe.current=Kt,tn.current=Me,ht.selectedNodes=Dt(He,Me,qt)):nn&&Mt?(Me=Array.from(new Set([].concat((0,We.Z)(tn.current||[]),(0,We.Z)(de({treeData:He,expandedKeys:te,startKey:Kt,endKey:qe.current,fieldNames:qt}))))),ht.selectedNodes=Dt(He,Me,qt)):(Me=[Kt],qe.current=Kt,tn.current=Me,ht.selectedNodes=Dt(He,Me,qt)),(Ht=Bt.onSelect)===null||Ht===void 0||Ht.call(Bt,Me,ht),"selectedKeys"in Bt||ne(Me)},{getPrefixCls:le,direction:ye}=fe.useContext(Oe.E_),{prefixCls:ft,className:Ae,showIcon:ke=!0,expandAction:Ve="click"}=Bt,Ye=Ke(Bt,["prefixCls","className","showIcon","expandAction"]),mt=le("tree",ft),we=it()(`${mt}-directory`,{[`${mt}-directory-rtl`]:ye==="rtl"},Ae);return fe.createElement(ot,Object.assign({icon:gt,ref:et,blockNode:!0},Ye,{showIcon:ke,expandAction:Ve,prefixCls:mt,className:we,expandedKeys:te,selectedKeys:ae,onSelect:re,onExpand:ce}))};var Pt=fe.forwardRef(Ne);const Ut=ot;Ut.DirectoryTree=Pt,Ut.TreeNode=b.OF;var kt=Ut},12425:function(wn,Qt,ee){"use strict";ee.d(Qt,{ZP:function(){return $e},Yk:function(){return Le},TM:function(){return Rt}});var b=ee(36237),We=ee(36170),fe=ee(63356),Ue=ee(34961),Ee=ee(51636),xe=ee(16931);const Ie=Te=>{let{treeCls:Oe,treeNodeCls:Xe,directoryNodeSelectedBg:pt,directoryNodeSelectedColor:At,motionDurationMid:je,borderRadius:Be,controlItemBgHover:Je}=Te;return{[`${Oe}${Oe}-directory ${Xe}`]:{[`${Oe}-node-content-wrapper`]:{position:"static",[`> *:not(${Oe}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${je}`,content:'""',borderRadius:Be},"&:hover:before":{background:Je}},[`${Oe}-switcher, ${Oe}-checkbox, ${Oe}-draggable-icon`]:{zIndex:1},"&-selected":{[`${Oe}-switcher, ${Oe}-draggable-icon`]:{color:At},[`${Oe}-node-content-wrapper`]:{color:At,background:"transparent","&:before, &:hover:before":{background:pt}}}}}},Ze=new b.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),Ce=(Te,Oe)=>({[`.${Te}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${Oe.motionDurationSlow}`}}}),ue=(Te,Oe)=>({[`.${Te}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:Oe.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${(0,b.unit)(Oe.lineWidthBold)} solid ${Oe.colorPrimary}`,borderRadius:"50%",content:'""'}}}),tt=(Te,Oe)=>{const{treeCls:Xe,treeNodeCls:pt,treeNodePadding:At,titleHeight:je,indentSize:Be,nodeSelectedBg:Je,nodeHoverBg:nt,colorTextQuaternary:zt,controlItemBgActiveDisabled:yt}=Oe;return{[Xe]:Object.assign(Object.assign({},(0,fe.Wf)(Oe)),{background:Oe.colorBgContainer,borderRadius:Oe.borderRadius,transition:`background-color ${Oe.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${Xe}-rtl ${Xe}-switcher_close ${Xe}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${Xe}-active-focused)`]:Object.assign({},(0,fe.oN)(Oe)),[`${Xe}-list-holder-inner`]:{alignItems:"flex-start"},[`&${Xe}-block-node`]:{[`${Xe}-list-holder-inner`]:{alignItems:"stretch",[`${Xe}-node-content-wrapper`]:{flex:"auto"},[`${pt}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${Oe.colorPrimary}`,opacity:0,animationName:Ze,animationDuration:Oe.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:Oe.borderRadius}}},[pt]:{display:"flex",alignItems:"flex-start",marginBottom:At,lineHeight:(0,b.unit)(je),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:At},[`&-disabled ${Xe}-node-content-wrapper`]:{color:Oe.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${Xe}-checkbox-disabled + ${Xe}-node-selected,&${pt}-disabled${pt}-selected ${Xe}-node-content-wrapper`]:{backgroundColor:yt},[`${Xe}-checkbox-disabled`]:{pointerEvents:"unset"},[`&:not(${pt}-disabled)`]:{[`${Xe}-node-content-wrapper`]:{"&:hover":{color:Oe.nodeHoverColor}}},[`&-active ${Xe}-node-content-wrapper`]:{background:Oe.controlItemBgHover},[`&:not(${pt}-disabled).filter-node ${Xe}-title`]:{color:Oe.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",[`${Xe}-draggable-icon`]:{flexShrink:0,width:je,textAlign:"center",visibility:"visible",color:zt},[`&${pt}-disabled ${Xe}-draggable-icon`]:{visibility:"hidden"}}},[`${Xe}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:Be}},[`${Xe}-draggable-icon`]:{visibility:"hidden"},[`${Xe}-switcher, ${Xe}-checkbox`]:{marginInlineEnd:Oe.calc(Oe.calc(je).sub(Oe.controlInteractiveSize)).div(2).equal()},[`${Xe}-switcher`]:Object.assign(Object.assign({},Ce(Te,Oe)),{position:"relative",flex:"none",alignSelf:"stretch",width:je,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${Oe.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:je,height:je,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:Oe.borderRadius,transition:`all ${Oe.motionDurationSlow}`},[`&:not(${Xe}-switcher-noop):hover:before`]:{backgroundColor:Oe.colorBgTextHover},[`&_close ${Xe}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:Oe.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:Oe.calc(je).div(2).equal(),bottom:Oe.calc(At).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${Oe.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:Oe.calc(Oe.calc(je).div(2).equal()).mul(.8).equal(),height:Oe.calc(je).div(2).equal(),borderBottom:`1px solid ${Oe.colorBorder}`,content:'""'}}}),[`${Xe}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:je,paddingBlock:0,paddingInline:Oe.paddingXS,background:"transparent",borderRadius:Oe.borderRadius,cursor:"pointer",transition:`all ${Oe.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},ue(Te,Oe)),{"&:hover":{backgroundColor:nt},[`&${Xe}-node-selected`]:{color:Oe.nodeSelectedColor,backgroundColor:Je},[`${Xe}-iconEle`]:{display:"inline-block",width:je,height:je,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${Xe}-unselectable ${Xe}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${pt}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${Oe.colorPrimary}`},"&-show-line":{[`${Xe}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:Oe.calc(je).div(2).equal(),bottom:Oe.calc(At).mul(-1).equal(),borderInlineEnd:`1px solid ${Oe.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${Xe}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${pt}-leaf-last ${Xe}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${(0,b.unit)(Oe.calc(je).div(2).equal())} !important`}})}},Le=function(Te,Oe){let Xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const pt=`.${Te}`,At=`${pt}-treenode`,je=Oe.calc(Oe.paddingXS).div(2).equal(),Be=(0,Ee.mergeToken)(Oe,{treeCls:pt,treeNodeCls:At,treeNodePadding:je});return[tt(Te,Be),Xe&&Ie(Be)].filter(Boolean)},Rt=Te=>{const{controlHeightSM:Oe,controlItemBgHover:Xe,controlItemBgActive:pt}=Te,At=Oe;return{titleHeight:At,indentSize:At,nodeHoverBg:Xe,nodeHoverColor:Te.colorText,nodeSelectedBg:pt,nodeSelectedColor:Te.colorText}},it=Te=>{const{colorTextLightSolid:Oe,colorPrimary:Xe}=Te;return Object.assign(Object.assign({},Rt(Te)),{directoryNodeSelectedColor:Oe,directoryNodeSelectedBg:Xe})};var $e=(0,xe.I$)("Tree",(Te,Oe)=>{let{prefixCls:Xe}=Oe;return[{[Te.componentCls]:(0,We.C2)(`${Xe}-checkbox`,Te)},Le(Xe,Te),(0,Ue.Z)(Te)]},it)},85278:function(wn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Oe}});var b=ee(59301),We=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"},Ue=fe,Ee=ee(7657),xe=function(pt,At){return b.createElement(Ee.Z,(0,We.Z)({},pt,{ref:At,icon:Ue}))},Ie=b.forwardRef(xe),Ze=Ie,Ce=ee(52671),ue=ee(58617),tt=ee(15075),Le=ee(43531),Rt=ee(92310),it=ee.n(Rt),$e=ee(22703),Oe=Xe=>{const{prefixCls:pt,switcherIcon:At,treeNodeProps:je,showLine:Be,switcherLoadingIcon:Je}=Xe,{isLeaf:nt,expanded:zt,loading:yt}=je;if(yt)return b.isValidElement(Je)?Je:b.createElement(ue.Z,{className:`${pt}-switcher-loading-icon`});let ot;if(Be&&typeof Be=="object"&&(ot=Be.showLeafIcon),nt){if(!Be)return null;if(typeof ot!="boolean"&&ot){const lt=typeof ot=="function"?ot(je):ot,Ge=`${pt}-switcher-line-custom-icon`;return b.isValidElement(lt)?(0,$e.Tm)(lt,{className:it()(lt.props.className||"",Ge)}):lt}return ot?b.createElement(Ce.Z,{className:`${pt}-switcher-line-icon`}):b.createElement("span",{className:`${pt}-switcher-leaf-line`})}const ct=`${pt}-switcher-icon`,Se=typeof At=="function"?At(je):At;return b.isValidElement(Se)?(0,$e.Tm)(Se,{className:it()(Se.props.className||"",ct)}):Se!==void 0?Se:Be?zt?b.createElement(tt.Z,{className:`${pt}-switcher-line-icon`}):b.createElement(Le.Z,{className:`${pt}-switcher-line-icon`}):b.createElement(Ze,{className:ct})}},94968:function(wn,Qt,ee){"use strict";ee.d(Qt,{default:function(){return bt}});var b=ee(59301),We=ee(77654),fe=ee(4676),Ue=ee(92310),Ee=ee.n(Ue),xe=ee(60499),Ie=ee(38705),Ze=ee(17212),Ce=ee(15793),ue=ee(39153),tt=ee(55401),Le=ee(18642),Rt=ee(85899),it=ee(42244),$e=ee(43749),Te=ee(73001),Oe=ee(11576),Xe=ee(26112),pt=ee(48736),At=function(Pe,It){if(Pe&&It){var $t=Array.isArray(It)?It:It.split(","),Vt=Pe.name||"",St=Pe.type||"",xt=St.replace(/\/.*$/,"");return $t.some(function(wt){var Ft=wt.trim();if(/^\*(\/\*)?$/.test(wt))return!0;if(Ft.charAt(0)==="."){var On=Vt.toLowerCase(),In=Ft.toLowerCase(),Tn=[In];return(In===".jpg"||In===".jpeg")&&(Tn=[".jpg",".jpeg"]),Tn.some(function(er){return On.endsWith(er)})}return/\/\*$/.test(Ft)?xt===Ft.replace(/\/.*$/,""):St===Ft?!0:/^\w+$/.test(Ft)?((0,pt.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Ft,"'.Skip for check.")),!0):!1})}return!0};function je(Pe,It){var $t="cannot ".concat(Pe.method," ").concat(Pe.action," ").concat(It.status,"'"),Vt=new Error($t);return Vt.status=It.status,Vt.method=Pe.method,Vt.url=Pe.action,Vt}function Be(Pe){var It=Pe.responseText||Pe.response;if(!It)return It;try{return JSON.parse(It)}catch($t){return It}}function Je(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 $t=new FormData;Pe.data&&Object.keys(Pe.data).forEach(function(St){var xt=Pe.data[St];if(Array.isArray(xt)){xt.forEach(function(wt){$t.append("".concat(St,"[]"),wt)});return}$t.append(St,xt)}),Pe.file instanceof Blob?$t.append(Pe.filename,Pe.file,Pe.file.name):$t.append(Pe.filename,Pe.file),It.onerror=function(xt){Pe.onError(xt)},It.onload=function(){return It.status<200||It.status>=300?Pe.onError(je(Pe,It),Be(It)):Pe.onSuccess(Be(It),It)},It.open(Pe.method,Pe.action,!0),Pe.withCredentials&&"withCredentials"in It&&(It.withCredentials=!0);var Vt=Pe.headers||{};return Vt["X-Requested-With"]!==null&&It.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Vt).forEach(function(St){Vt[St]!==null&&It.setRequestHeader(St,Vt[St])}),It.send($t),{abort:function(){It.abort()}}}var nt=function(){var Pe=(0,Oe.Z)((0,Te.Z)().mark(function It($t,Vt){var St,xt,wt,Ft,On,In,Tn,er;return(0,Te.Z)().wrap(function(dr){for(;;)switch(dr.prev=dr.next){case 0:In=function(){return In=(0,Oe.Z)((0,Te.Z)().mark(function Gn(Qn){return(0,Te.Z)().wrap(function(Er){for(;;)switch(Er.prev=Er.next){case 0:return Er.abrupt("return",new Promise(function(Cr){Qn.file(function(wr){Vt(wr)?(Qn.fullPath&&!wr.webkitRelativePath&&(Object.defineProperties(wr,{webkitRelativePath:{writable:!0}}),wr.webkitRelativePath=Qn.fullPath.replace(/^\//,""),Object.defineProperties(wr,{webkitRelativePath:{writable:!1}})),Cr(wr)):Cr(null)})}));case 1:case"end":return Er.stop()}},Gn)})),In.apply(this,arguments)},On=function(Gn){return In.apply(this,arguments)},Ft=function(){return Ft=(0,Oe.Z)((0,Te.Z)().mark(function Gn(Qn){var cr,Er,Cr,wr,Yn;return(0,Te.Z)().wrap(function(mr){for(;;)switch(mr.prev=mr.next){case 0:cr=Qn.createReader(),Er=[];case 2:return mr.next=5,new Promise(function(Vr){cr.readEntries(Vr,function(){return Vr([])})});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()}},Gn)})),Ft.apply(this,arguments)},wt=function(Gn){return Ft.apply(this,arguments)},St=[],xt=[],$t.forEach(function(Jn){return xt.push(Jn.webkitGetAsEntry())}),Tn=function(){var Jn=(0,Oe.Z)((0,Te.Z)().mark(function Gn(Qn,cr){var Er,Cr;return(0,Te.Z)().wrap(function(Yn){for(;;)switch(Yn.prev=Yn.next){case 0:if(Qn){Yn.next=2;break}return Yn.abrupt("return");case 2:if(Qn.path=cr||"",!Qn.isFile){Yn.next=10;break}return Yn.next=6,On(Qn);case 6:Er=Yn.sent,Er&&St.push(Er),Yn.next=15;break;case 10:if(!Qn.isDirectory){Yn.next=15;break}return Yn.next=13,wt(Qn);case 13:Cr=Yn.sent,xt.push.apply(xt,(0,We.Z)(Cr));case 15:case"end":return Yn.stop()}},Gn)}));return function(Qn,cr){return Jn.apply(this,arguments)}}(),er=0;case 9:if(!(er<xt.length)){dr.next=15;break}return dr.next=12,Tn(xt[er]);case 12:er++,dr.next=9;break;case 15:return dr.abrupt("return",St);case 16:case"end":return dr.stop()}},It)}));return function($t,Vt){return Pe.apply(this,arguments)}}(),zt=nt,yt=+new Date,ot=0;function ct(){return"rc-upload-".concat(yt,"-").concat(++ot)}var Se=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],lt=function(Pe){(0,ue.Z)($t,Pe);var It=(0,tt.Z)($t);function $t(){var Vt;(0,Ie.Z)(this,$t);for(var St=arguments.length,xt=new Array(St),wt=0;wt<St;wt++)xt[wt]=arguments[wt];return Vt=It.call.apply(It,[this].concat(xt)),(0,Le.Z)((0,Ce.Z)(Vt),"state",{uid:ct()}),(0,Le.Z)((0,Ce.Z)(Vt),"reqs",{}),(0,Le.Z)((0,Ce.Z)(Vt),"fileInput",void 0),(0,Le.Z)((0,Ce.Z)(Vt),"_isMounted",void 0),(0,Le.Z)((0,Ce.Z)(Vt),"onChange",function(Ft){var On=Vt.props,In=On.accept,Tn=On.directory,er=Ft.target.files,lr=(0,We.Z)(er).filter(function(dr){return!Tn||At(dr,In)});Vt.uploadFiles(lr),Vt.reset()}),(0,Le.Z)((0,Ce.Z)(Vt),"onClick",function(Ft){var On=Vt.fileInput;if(On){var In=Ft.target,Tn=Vt.props.onClick;if(In&&In.tagName==="BUTTON"){var er=On.parentNode;er.focus(),In.blur()}On.click(),Tn&&Tn(Ft)}}),(0,Le.Z)((0,Ce.Z)(Vt),"onKeyDown",function(Ft){Ft.key==="Enter"&&Vt.onClick(Ft)}),(0,Le.Z)((0,Ce.Z)(Vt),"onFileDrop",function(){var Ft=(0,Oe.Z)((0,Te.Z)().mark(function On(In){var Tn,er,lr;return(0,Te.Z)().wrap(function(Jn){for(;;)switch(Jn.prev=Jn.next){case 0:if(Tn=Vt.props.multiple,In.preventDefault(),In.type!=="dragover"){Jn.next=4;break}return Jn.abrupt("return");case 4:if(!Vt.props.directory){Jn.next=11;break}return Jn.next=7,zt(Array.prototype.slice.call(In.dataTransfer.items),function(Gn){return At(Gn,Vt.props.accept)});case 7:er=Jn.sent,Vt.uploadFiles(er),Jn.next=14;break;case 11:lr=(0,We.Z)(In.dataTransfer.files).filter(function(Gn){return At(Gn,Vt.props.accept)}),Tn===!1&&(lr=lr.slice(0,1)),Vt.uploadFiles(lr);case 14:case"end":return Jn.stop()}},On)}));return function(On){return Ft.apply(this,arguments)}}()),(0,Le.Z)((0,Ce.Z)(Vt),"uploadFiles",function(Ft){var On=(0,We.Z)(Ft),In=On.map(function(Tn){return Tn.uid=ct(),Vt.processFile(Tn,On)});Promise.all(In).then(function(Tn){var er=Vt.props.onBatchStart;er==null||er(Tn.map(function(lr){var dr=lr.origin,Jn=lr.parsedFile;return{file:dr,parsedFile:Jn}})),Tn.filter(function(lr){return lr.parsedFile!==null}).forEach(function(lr){Vt.post(lr)})})}),(0,Le.Z)((0,Ce.Z)(Vt),"processFile",function(){var Ft=(0,Oe.Z)((0,Te.Z)().mark(function On(In,Tn){var er,lr,dr,Jn,Gn,Qn,cr,Er,Cr;return(0,Te.Z)().wrap(function(Yn){for(;;)switch(Yn.prev=Yn.next){case 0:if(er=Vt.props.beforeUpload,lr=In,!er){Yn.next=14;break}return Yn.prev=3,Yn.next=6,er(In,Tn);case 6:lr=Yn.sent,Yn.next=12;break;case 9:Yn.prev=9,Yn.t0=Yn.catch(3),lr=!1;case 12:if(lr!==!1){Yn.next=14;break}return Yn.abrupt("return",{origin:In,parsedFile:null,action:null,data:null});case 14:if(dr=Vt.props.action,typeof dr!="function"){Yn.next=21;break}return Yn.next=18,dr(In);case 18:Jn=Yn.sent,Yn.next=22;break;case 21:Jn=dr;case 22:if(Gn=Vt.props.data,typeof Gn!="function"){Yn.next=29;break}return Yn.next=26,Gn(In);case 26:Qn=Yn.sent,Yn.next=30;break;case 29:Qn=Gn;case 30:return cr=((0,$e.Z)(lr)==="object"||typeof lr=="string")&&lr?lr:In,cr instanceof File?Er=cr:Er=new File([cr],In.name,{type:In.type}),Cr=Er,Cr.uid=In.uid,Yn.abrupt("return",{origin:In,data:Qn,parsedFile:Cr,action:Jn});case 35:case"end":return Yn.stop()}},On,null,[[3,9]])}));return function(On,In){return Ft.apply(this,arguments)}}()),(0,Le.Z)((0,Ce.Z)(Vt),"saveFileInput",function(Ft){Vt.fileInput=Ft}),Vt}return(0,Ze.Z)($t,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(St){var xt=this,wt=St.data,Ft=St.origin,On=St.action,In=St.parsedFile;if(this._isMounted){var Tn=this.props,er=Tn.onStart,lr=Tn.customRequest,dr=Tn.name,Jn=Tn.headers,Gn=Tn.withCredentials,Qn=Tn.method,cr=Ft.uid,Er=lr||Je,Cr={action:On,filename:dr,data:wt,file:In,headers:Jn,withCredentials:Gn,method:Qn||"post",onProgress:function(Yn){var yr=xt.props.onProgress;yr==null||yr(Yn,In)},onSuccess:function(Yn,yr){var mr=xt.props.onSuccess;mr==null||mr(Yn,In,yr),delete xt.reqs[cr]},onError:function(Yn,yr){var mr=xt.props.onError;mr==null||mr(Yn,yr,In),delete xt.reqs[cr]}};er(Ft),this.reqs[cr]=Er(Cr)}}},{key:"reset",value:function(){this.setState({uid:ct()})}},{key:"abort",value:function(St){var xt=this.reqs;if(St){var wt=St.uid?St.uid:St;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 St=this.props,xt=St.component,wt=St.prefixCls,Ft=St.className,On=St.classNames,In=On===void 0?{}:On,Tn=St.disabled,er=St.id,lr=St.name,dr=St.style,Jn=St.styles,Gn=Jn===void 0?{}:Jn,Qn=St.multiple,cr=St.accept,Er=St.capture,Cr=St.children,wr=St.directory,Yn=St.openFileDialogOnClick,yr=St.onMouseEnter,mr=St.onMouseLeave,Vr=St.hasControlInside,Yr=(0,it.Z)(St,Se),_r=Ee()((0,Le.Z)((0,Le.Z)((0,Le.Z)({},wt,!0),"".concat(wt,"-disabled"),Tn),Ft,Ft)),Ur=wr?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},oi=Tn?{}:{onClick:Yn?this.onClick:function(){},onKeyDown:Yn?this.onKeyDown:function(){},onMouseEnter:yr,onMouseLeave:mr,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:Vr?void 0:"0"};return b.createElement(xt,(0,xe.Z)({},oi,{className:_r,role:Vr?void 0:"button",style:dr}),b.createElement("input",(0,xe.Z)({},(0,Xe.Z)(Yr,{aria:!0,data:!0}),{id:er,name:lr,disabled:Tn,type:"file",ref:this.saveFileInput,onClick:function(Qr){return Qr.stopPropagation()},key:this.state.uid,style:(0,Rt.Z)({display:"none"},Gn.input),className:In.input,accept:cr},Ur,{multiple:Qn,onChange:this.onChange},Er!=null?{capture:Er}:{})),Cr)}}]),$t}(b.Component),Ge=lt;function de(){}var Dt=function(Pe){(0,ue.Z)($t,Pe);var It=(0,tt.Z)($t);function $t(){var Vt;(0,Ie.Z)(this,$t);for(var St=arguments.length,xt=new Array(St),wt=0;wt<St;wt++)xt[wt]=arguments[wt];return Vt=It.call.apply(It,[this].concat(xt)),(0,Le.Z)((0,Ce.Z)(Vt),"uploader",void 0),(0,Le.Z)((0,Ce.Z)(Vt),"saveUploader",function(Ft){Vt.uploader=Ft}),Vt}return(0,Ze.Z)($t,[{key:"abort",value:function(St){this.uploader.abort(St)}},{key:"render",value:function(){return b.createElement(Ge,(0,xe.Z)({},this.props,{ref:this.saveUploader}))}}]),$t}(b.Component);(0,Le.Z)(Dt,"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 Ke=Dt,gt=Ke,Yt=ee(18929),Ne=ee(48755),me=ee(2171),Pt=ee(9017),Ut=ee(85981),kt=ee(63356),ge=ee(34961),et=ee(16931),rt=ee(51636),_t=ee(36237),Bt=Pe=>{const{componentCls:It,iconCls:$t}=Pe;return{[`${It}-wrapper`]:{[`${It}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:Pe.colorFillAlter,border:`${(0,_t.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,_t.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,[$t]:{color:Pe.colorPrimary,fontSize:Pe.uploadThumbnailSize}},[`p${It}-text`]:{margin:`0 0 ${(0,_t.unit)(Pe.marginXXS)}`,color:Pe.colorTextHeading,fontSize:Pe.fontSizeLG},[`p${It}-hint`]:{color:Pe.colorTextDescription,fontSize:Pe.fontSize},[`&${It}-disabled`]:{[`p${It}-drag-icon ${$t},
|
|
|
p${It}-text,
|
|
|
p${It}-hint
|
|
|
`]:{color:Pe.colorTextDisabled}}}}}},tn=Pe=>{const{componentCls:It,iconCls:$t,fontSize:Vt,lineHeight:St,calc:xt}=Pe,wt=`${It}-list-item`,Ft=`${wt}-actions`,On=`${wt}-action`;return{[`${It}-wrapper`]:{[`${It}-list`]:Object.assign(Object.assign({},(0,kt.dF)()),{lineHeight:Pe.lineHeight,[wt]:{position:"relative",height:xt(Pe.lineHeight).mul(Vt).equal(),marginTop:Pe.marginXS,fontSize:Vt,display:"flex",alignItems:"center",transition:`background-color ${Pe.motionDurationSlow}`,borderRadius:Pe.borderRadiusSM,"&:hover":{backgroundColor:Pe.controlItemBgHover},[`${wt}-name`]:Object.assign(Object.assign({},kt.vS),{padding:`0 ${(0,_t.unit)(Pe.paddingXS)}`,lineHeight:St,flex:"auto",transition:`all ${Pe.motionDurationSlow}`}),[Ft]:{whiteSpace:"nowrap",[On]:{opacity:0},[$t]:{color:Pe.actionsColor,transition:`all ${Pe.motionDurationSlow}`},[`
|
|
|
${On}:focus-visible,
|
|
|
&.picture ${On}
|
|
|
`]:{opacity:1}},[`${It}-icon ${$t}`]:{color:Pe.colorTextDescription,fontSize:Vt},[`${wt}-progress`]:{position:"absolute",bottom:Pe.calc(Pe.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:xt(Vt).add(Pe.paddingXS).equal(),fontSize:Vt,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${wt}:hover ${On}`]:{opacity:1},[`${wt}-error`]:{color:Pe.colorError,[`${wt}-name, ${It}-icon ${$t}`]:{color:Pe.colorError},[Ft]:{[`${$t}, ${$t}:hover`]:{color:Pe.colorError},[On]:{opacity:1}}},[`${It}-list-item-container`]:{transition:`opacity ${Pe.motionDurationSlow}, height ${Pe.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Tt=ee(99495),ne=Pe=>{const{componentCls:It}=Pe,$t=new _t.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:Pe.calc(Pe.marginXS).div(-2).equal()}}),Vt=new _t.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:Pe.calc(Pe.marginXS).div(-2).equal()}}),St=`${It}-animate-inline`;return[{[`${It}-wrapper`]:{[`${St}-appear, ${St}-enter, ${St}-leave`]:{animationDuration:Pe.motionDurationSlow,animationTimingFunction:Pe.motionEaseInOutCirc,animationFillMode:"forwards"},[`${St}-appear, ${St}-enter`]:{animationName:$t},[`${St}-leave`]:{animationName:Vt}}},{[`${It}-wrapper`]:(0,Tt.J$)(Pe)},$t,Vt]},te=ee(68361);const oe=Pe=>{const{componentCls:It,iconCls:$t,uploadThumbnailSize:Vt,uploadProgressOffset:St,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(Vt).add(xt(Pe.lineWidth).mul(2)).add(xt(Pe.paddingXS).mul(2)).equal(),padding:Pe.paddingXS,border:`${(0,_t.unit)(Pe.lineWidth)} ${Pe.lineType} ${Pe.colorBorder}`,borderRadius:Pe.borderRadiusLG,"&:hover":{background:"transparent"},[`${Ft}-thumbnail`]:Object.assign(Object.assign({},kt.vS),{width:Vt,height:Vt,lineHeight:(0,_t.unit)(xt(Vt).add(Pe.paddingSM).equal()),textAlign:"center",flex:"none",[$t]:{fontSize:Pe.fontSizeHeading2,color:Pe.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${Ft}-progress`]:{bottom:St,width:`calc(100% - ${(0,_t.unit)(xt(Pe.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:xt(Vt).add(Pe.paddingXS).equal()}},[`${Ft}-error`]:{borderColor:Pe.colorError,[`${Ft}-thumbnail ${$t}`]:{[`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:St}}},[`${wt}${wt}-picture-circle ${Ft}`]:{[`&, &::before, ${Ft}-thumbnail`]:{borderRadius:"50%"}}}}},ce=Pe=>{const{componentCls:It,iconCls:$t,fontSizeLG:Vt,colorTextLightSolid:St,calc:xt}=Pe,wt=`${It}-list`,Ft=`${wt}-item`,On=Pe.uploadPicCardSize;return{[`
|
|
|
${It}-wrapper${It}-picture-card-wrapper,
|
|
|
${It}-wrapper${It}-picture-circle-wrapper
|
|
|
`]:Object.assign(Object.assign({},(0,kt.dF)()),{display:"block",[`${It}${It}-select`]:{width:On,height:On,textAlign:"center",verticalAlign:"top",backgroundColor:Pe.colorFillAlter,border:`${(0,_t.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:On,height:On,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[Ft]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${(0,_t.unit)(xt(Pe.paddingXS).mul(2).equal())})`,height:`calc(100% - ${(0,_t.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}`,[`
|
|
|
${$t}-eye,
|
|
|
${$t}-download,
|
|
|
${$t}-delete
|
|
|
`]:{zIndex:10,width:Vt,margin:`0 ${(0,_t.unit)(Pe.marginXXS)}`,fontSize:Vt,cursor:"pointer",transition:`all ${Pe.motionDurationSlow}`,color:St,"&:hover":{color:St},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,_t.unit)(xt(Pe.paddingXS).mul(2).equal())})`},[`${Ft}-uploading`]:{[`&${Ft}`]:{backgroundColor:Pe.colorFillAlter},[`&::before, ${$t}-eye, ${$t}-download, ${$t}-delete`]:{display:"none"}},[`${Ft}-progress`]:{bottom:Pe.marginXL,width:`calc(100% - ${(0,_t.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 ye=Pe=>{const{componentCls:It,colorTextDisabled:$t}=Pe;return{[`${It}-wrapper`]:Object.assign(Object.assign({},(0,kt.Wf)(Pe)),{[It]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${It}-select`]:{display:"inline-block"},[`${It}-hidden`]:{display:"none"},[`${It}-disabled`]:{color:$t,cursor:"not-allowed"}})}},ft=Pe=>({actionsColor:Pe.colorTextDescription});var Ae=(0,et.I$)("Upload",Pe=>{const{fontSizeHeading3:It,fontHeight:$t,lineWidth:Vt,controlHeightLG:St,calc:xt}=Pe,wt=(0,rt.mergeToken)(Pe,{uploadThumbnailSize:xt(It).mul(2).equal(),uploadProgressOffset:xt(xt($t).div(2)).add(Vt).equal(),uploadPicCardSize:xt(St).mul(2.55).equal()});return[ye(wt),Bt(wt),oe(wt),ce(wt),tn(wt),ne(wt),le(wt),(0,ge.Z)(wt)]},ft),ke={icon:function(It,$t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:$t}},{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=ke,Ye=ee(7657),mt=function(It,$t){return b.createElement(Ye.Z,(0,xe.Z)({},It,{ref:$t,icon:Ve}))},we=b.forwardRef(mt),De=we,Zt=ee(58617),Ht={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=Ht,qt=function(It,$t){return b.createElement(Ye.Z,(0,xe.Z)({},It,{ref:$t,icon:nn}))},Et=b.forwardRef(qt),on=Et,Kt={icon:function(It,$t){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:$t}},{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:$t}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:$t}},{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"},He=Kt,ht=function(It,$t){return b.createElement(Ye.Z,(0,xe.Z)({},It,{ref:$t,icon:He}))},at=b.forwardRef(ht),Mt=at,Me=ee(77900),st=ee(2738),Ct=ee(40192),Wt=ee(86641),cn=ee(22703),Sn=ee(7939);function Bn(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 Rn(Pe,It){const $t=(0,We.Z)(It),Vt=$t.findIndex(St=>{let{uid:xt}=St;return xt===Pe.uid});return Vt===-1?$t.push(Pe):$t[Vt]=Pe,$t}function gn(Pe,It){const $t=Pe.uid!==void 0?"uid":"name";return It.filter(Vt=>Vt[$t]===Pe[$t])[0]}function Nn(Pe,It){const $t=Pe.uid!==void 0?"uid":"name",Vt=It.filter(St=>St[$t]!==Pe[$t]);return Vt.length===It.length?null:Vt}const dn=function(){const It=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),Vt=It[It.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(Vt)||[""])[0]},Xt=Pe=>Pe.indexOf("image/")===0,rn=Pe=>{if(Pe.type&&!Pe.thumbUrl)return Xt(Pe.type);const It=Pe.thumbUrl||Pe.url||"",$t=dn(It);return/^data:image\//.test(It)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test($t)?!0:!(/^data:/.test(It)||$t)},an=200;function Jt(Pe){return new Promise(It=>{if(!Pe.type||!Xt(Pe.type)){It("");return}const $t=document.createElement("canvas");$t.width=an,$t.height=an,$t.style.cssText=`position: fixed; left: 0; top: 0; width: ${an}px; height: ${an}px; z-index: 9999; display: none;`,document.body.appendChild($t);const Vt=$t.getContext("2d"),St=new Image;if(St.onload=()=>{const{width:xt,height:wt}=St;let Ft=an,On=an,In=0,Tn=0;xt>wt?(On=wt*(an/xt),Tn=-(On-Ft)/2):(Ft=xt*(an/wt),In=-(Ft-On)/2),Vt.drawImage(St,In,Tn,Ft,On);const er=$t.toDataURL();document.body.removeChild($t),window.URL.revokeObjectURL(St.src),It(er)},St.crossOrigin="anonymous",Pe.type.startsWith("image/svg+xml")){const xt=new FileReader;xt.onload=()=>{xt.result&&typeof xt.result=="string"&&(St.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 St.src=window.URL.createObjectURL(Pe)})}var pn=ee(26227),mn=ee(41464),Cn=ee(15277),Fn=ee(89787),zn=ee(25399),Xn=b.forwardRef((Pe,It)=>{let{prefixCls:$t,className:Vt,style:St,locale:xt,listType:wt,file:Ft,items:On,progress:In,iconRender:Tn,actionIconRender:er,itemRender:lr,isImgUrl:dr,showPreviewIcon:Jn,showRemoveIcon:Gn,showDownloadIcon:Qn,previewIcon:cr,removeIcon:Er,downloadIcon:Cr,extra:wr,onPreview:Yn,onDownload:yr,onClose:mr}=Pe;var Vr,Yr;const{status:_r}=Ft,[Ur,oi]=b.useState(_r);b.useEffect(()=>{_r!=="removed"&&oi(_r)},[_r]);const[Zr,Qr]=b.useState(!1);b.useEffect(()=>{const Mn=setTimeout(()=>{Qr(!0)},300);return()=>{clearTimeout(Mn)}},[]);const Or=Tn(Ft);let ti=b.createElement("div",{className:`${$t}-icon`},Or);if(wt==="picture"||wt==="picture-card"||wt==="picture-circle")if(Ur==="uploading"||!Ft.thumbUrl&&!Ft.url){const Mn=Ee()(`${$t}-list-item-thumbnail`,{[`${$t}-list-item-file`]:Ur!=="uploading"});ti=b.createElement("div",{className:Mn},Or)}else{const Mn=dr!=null&&dr(Ft)?b.createElement("img",{src:Ft.thumbUrl||Ft.url,alt:Ft.name,className:`${$t}-list-item-image`,crossOrigin:Ft.crossOrigin}):Or,Un=Ee()(`${$t}-list-item-thumbnail`,{[`${$t}-list-item-file`]:dr&&!dr(Ft)});ti=b.createElement("a",{className:Un,onClick:tr=>Yn(Ft,tr),href:Ft.url||Ft.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Mn)}const ci=Ee()(`${$t}-list-item`,`${$t}-list-item-${Ur}`),$i=typeof Ft.linkProps=="string"?JSON.parse(Ft.linkProps):Ft.linkProps,vi=(typeof Gn=="function"?Gn(Ft):Gn)?er((typeof Er=="function"?Er(Ft):Er)||b.createElement(pn.Z,null),()=>mr(Ft),$t,xt.removeFile,!0):null,xi=(typeof Qn=="function"?Qn(Ft):Qn)&&Ur==="done"?er((typeof Cr=="function"?Cr(Ft):Cr)||b.createElement(mn.Z,null),()=>yr(Ft),$t,xt.downloadFile):null,hi=wt!=="picture-card"&&wt!=="picture-circle"&&b.createElement("span",{key:"download-delete",className:Ee()(`${$t}-list-item-actions`,{picture:wt==="picture"})},xi,vi),bi=typeof wr=="function"?wr(Ft):wr,Ar=bi&&b.createElement("span",{className:`${$t}-list-item-extra`},bi),Lr=Ee()(`${$t}-list-item-name`),sr=Ft.url?b.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Lr,title:Ft.name},$i,{href:Ft.url,onClick:Mn=>Yn(Ft,Mn)}),Ft.name,Ar):b.createElement("span",{key:"view",className:Lr,onClick:Mn=>Yn(Ft,Mn),title:Ft.name},Ft.name,Ar),Dn=(typeof Jn=="function"?Jn(Ft):Jn)&&(Ft.url||Ft.thumbUrl)?b.createElement("a",{href:Ft.url||Ft.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:Mn=>Yn(Ft,Mn),title:xt.previewFile},typeof cr=="function"?cr(Ft):cr||b.createElement(Cn.Z,null)):null,jn=(wt==="picture-card"||wt==="picture-circle")&&Ur!=="uploading"&&b.createElement("span",{className:`${$t}-list-item-actions`},Dn,Ur==="done"&&xi,vi),{getPrefixCls:Kn}=b.useContext(Ne.E_),kn=Kn(),or=b.createElement("div",{className:ci},ti,sr,hi,jn,Zr&&b.createElement(Me.default,{motionName:`${kn}-fade`,visible:Ur==="uploading",motionDeadline:2e3},Mn=>{let{className:Un}=Mn;const tr="percent"in Ft?b.createElement(Fn.Z,Object.assign({},In,{type:"line",percent:Ft.percent,"aria-label":Ft["aria-label"],"aria-labelledby":Ft["aria-labelledby"]})):null;return b.createElement("div",{className:Ee()(`${$t}-list-item-progress`,Un)},tr)})),br=Ft.response&&typeof Ft.response=="string"?Ft.response:((Vr=Ft.error)===null||Vr===void 0?void 0:Vr.statusText)||((Yr=Ft.error)===null||Yr===void 0?void 0:Yr.message)||xt.uploadError,$n=Ur==="error"?b.createElement(zn.Z,{title:br,getPopupContainer:Mn=>Mn.parentNode},or):or;return b.createElement("div",{className:Ee()(`${$t}-list-item-container`,Vt),style:St,ref:It},lr?lr($n,Ft,On,{download:yr.bind(null,Ft),preview:Yn.bind(null,Ft),remove:mr.bind(null,Ft)}):$n)});const _n=(Pe,It)=>{const{listType:$t="text",previewFile:Vt=Jt,onPreview:St,onDownload:xt,onRemove:wt,locale:Ft,iconRender:On,isImageUrl:In=rn,prefixCls:Tn,items:er=[],showPreviewIcon:lr=!0,showRemoveIcon:dr=!0,showDownloadIcon:Jn=!1,removeIcon:Gn,previewIcon:Qn,downloadIcon:cr,extra:Er,progress:Cr={size:[-1,2],showInfo:!1},appendAction:wr,appendActionVisible:Yn=!0,itemRender:yr,disabled:mr}=Pe,Vr=(0,Ct.Z)(),[Yr,_r]=b.useState(!1),Ur=["picture-card","picture-circle"].includes($t);b.useEffect(()=>{$t.startsWith("picture")&&(er||[]).forEach(Ar=>{!(Ar.originFileObj instanceof File||Ar.originFileObj instanceof Blob)||Ar.thumbUrl!==void 0||(Ar.thumbUrl="",Vt==null||Vt(Ar.originFileObj).then(Lr=>{Ar.thumbUrl=Lr||"",Vr()}))})},[$t,er,Vt]),b.useEffect(()=>{_r(!0)},[]);const oi=(Ar,Lr)=>{if(St)return Lr==null||Lr.preventDefault(),St(Ar)},Zr=Ar=>{typeof xt=="function"?xt(Ar):Ar.url&&window.open(Ar.url)},Qr=Ar=>{wt==null||wt(Ar)},Or=Ar=>{if(On)return On(Ar,$t);const Lr=Ar.status==="uploading";if($t.startsWith("picture")){const sr=$t==="picture"?b.createElement(Zt.Z,null):Ft.uploading,Dn=In!=null&&In(Ar)?b.createElement(Mt,null):b.createElement(De,null);return Lr?sr:Dn}return Lr?b.createElement(Zt.Z,null):b.createElement(on,null)},ti=(Ar,Lr,sr,Dn,jn)=>{const Kn={type:"text",size:"small",title:Dn,onClick:kn=>{var or,br;Lr(),b.isValidElement(Ar)&&((br=(or=Ar.props).onClick)===null||br===void 0||br.call(or,kn))},className:`${sr}-list-item-action`};return jn&&(Kn.disabled=mr),b.isValidElement(Ar)?b.createElement(Sn.ZP,Object.assign({},Kn,{icon:(0,cn.Tm)(Ar,Object.assign(Object.assign({},Ar.props),{onClick:()=>{}}))})):b.createElement(Sn.ZP,Object.assign({},Kn),b.createElement("span",null,Ar))};b.useImperativeHandle(It,()=>({handlePreview:oi,handleDownload:Zr}));const{getPrefixCls:ci}=b.useContext(Ne.E_),$i=ci("upload",Tn),vi=ci(),xi=Ee()(`${$i}-list`,`${$i}-list-${$t}`),hi=b.useMemo(()=>(0,st.Z)((0,Wt.Z)(vi),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[vi]),bi=Object.assign(Object.assign({},Ur?{}:hi),{motionDeadline:2e3,motionName:`${$i}-${Ur?"animate-inline":"animate"}`,keys:(0,We.Z)(er.map(Ar=>({key:Ar.uid,file:Ar}))),motionAppear:Yr});return b.createElement("div",{className:xi},b.createElement(Me.CSSMotionList,Object.assign({},bi,{component:!1}),Ar=>{let{key:Lr,file:sr,className:Dn,style:jn}=Ar;return b.createElement(Xn,{key:Lr,locale:Ft,prefixCls:$i,className:Dn,style:jn,file:sr,items:er,progress:Cr,listType:$t,isImgUrl:In,showPreviewIcon:lr,showRemoveIcon:dr,showDownloadIcon:Jn,removeIcon:Gn,previewIcon:Qn,downloadIcon:cr,extra:Er,iconRender:Or,actionIconRender:ti,itemRender:yr,onPreview:oi,onDownload:Zr,onClose:Qr})}),wr&&b.createElement(Me.default,Object.assign({},bi,{visible:Yn,forceRender:!0}),Ar=>{let{className:Lr,style:sr}=Ar;return(0,cn.Tm)(wr,Dn=>({className:Ee()(Dn.className,Lr),style:Object.assign(Object.assign(Object.assign({},sr),{pointerEvents:Lr?"none":void 0}),Dn.style)}))}))};var ar=b.forwardRef(_n),sn=function(Pe,It,$t,Vt){function St(xt){return xt instanceof $t?xt:new $t(function(wt){wt(xt)})}return new($t||($t=Promise))(function(xt,wt){function Ft(Tn){try{In(Vt.next(Tn))}catch(er){wt(er)}}function On(Tn){try{In(Vt.throw(Tn))}catch(er){wt(er)}}function In(Tn){Tn.done?xt(Tn.value):St(Tn.value).then(Ft,On)}In((Vt=Vt.apply(Pe,It||[])).next())})};const bn=`__LIST_IGNORE_${Date.now()}__`,Hn=(Pe,It)=>{const{fileList:$t,defaultFileList:Vt,onRemove:St,showUploadList:xt=!0,listType:wt="text",onPreview:Ft,onDownload:On,onChange:In,onDrop:Tn,previewFile:er,disabled:lr,locale:dr,iconRender:Jn,isImageUrl:Gn,progress:Qn,prefixCls:cr,className:Er,type:Cr="select",children:wr,style:Yn,itemRender:yr,maxCount:mr,data:Vr={},multiple:Yr=!1,hasControlInside:_r=!0,action:Ur="",accept:oi="",supportServerRender:Zr=!0,rootClassName:Qr}=Pe,Or=b.useContext(me.Z),ti=lr!=null?lr:Or,[ci,$i]=(0,Yt.Z)(Vt||[],{value:$t,postState:ai=>ai!=null?ai:[]}),[vi,xi]=b.useState("drop"),hi=b.useRef(null),bi=b.useRef(null);b.useMemo(()=>{const ai=Date.now();($t||[]).forEach((Wi,Yi)=>{!Wi.uid&&!Object.isFrozen(Wi)&&(Wi.uid=`__AUTO__${ai}_${Yi}__`)})},[$t]);const Ar=(ai,Wi,Yi)=>{let gi=(0,We.Z)(Wi),Zi=!1;mr===1?gi=gi.slice(-1):mr&&(Zi=gi.length>mr,gi=gi.slice(0,mr)),(0,fe.flushSync)(()=>{$i(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)(()=>{In==null||In(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[bn],Mi===bn)return Object.defineProperty(ai,bn,{value:!0,configurable:!0}),!1;typeof Mi=="object"&&Mi&&(Zi=Mi)}return gi&&(Zi=yield gi(Zi)),Zi}),sr=ai=>{const Wi=ai.filter(Zi=>!Zi.file[bn]);if(!Wi.length)return;const Yi=Wi.map(Zi=>Bn(Zi.file));let gi=(0,We.Z)(ci);Yi.forEach(Zi=>{gi=Rn(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}Ar(Zo,gi)})},Dn=(ai,Wi,Yi)=>{try{typeof ai=="string"&&(ai=JSON.parse(ai))}catch(Mi){}if(!gn(Wi,ci))return;const gi=Bn(Wi);gi.status="done",gi.percent=100,gi.response=ai,gi.xhr=Yi;const Zi=Rn(gi,ci);Ar(gi,Zi)},jn=(ai,Wi)=>{if(!gn(Wi,ci))return;const Yi=Bn(Wi);Yi.status="uploading",Yi.percent=ai.percent;const gi=Rn(Yi,ci);Ar(Yi,gi,ai)},Kn=(ai,Wi,Yi)=>{if(!gn(Yi,ci))return;const gi=Bn(Yi);gi.error=ai,gi.response=Wi,gi.status="error";const Zi=Rn(gi,ci);Ar(gi,Zi)},kn=ai=>{let Wi;Promise.resolve(typeof St=="function"?St(ai):St).then(Yi=>{var gi;if(Yi===!1)return;const Zi=Nn(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),Ar(Wi,Zi))})},or=ai=>{xi(ai.type),ai.type==="drop"&&(Tn==null||Tn(ai))};b.useImperativeHandle(It,()=>({onBatchStart:sr,onSuccess:Dn,onProgress:jn,onError:Kn,fileList:ci,upload:hi.current,nativeElement:bi.current}));const{getPrefixCls:br,direction:$n,upload:Mn}=b.useContext(Ne.E_),Un=br("upload",cr),tr=Object.assign(Object.assign({onBatchStart:sr,onError:Kn,onProgress:jn,onSuccess:Dn},Pe),{data:Vr,multiple:Yr,action:Ur,accept:oi,supportServerRender:Zr,prefixCls:Un,disabled:ti,beforeUpload:Lr,onChange:void 0,hasControlInside:_r});delete tr.className,delete tr.style,(!wr||ti)&&delete tr.id;const Jr=`${Un}-wrapper`,[Ei,pi,Ni]=Ae(Un,Jr),[Ii]=(0,Pt.Z)("Upload",Ut.Z.Upload),{showRemoveIcon:Pi,showPreviewIcon:Fi,showDownloadIcon:ki,removeIcon:Bi,previewIcon:lo,downloadIcon:xo,extra:Do}=typeof xt=="boolean"?{}:xt,To=typeof Pi=="undefined"?!ti:Pi,Co=(ai,Wi)=>xt?b.createElement(ar,{prefixCls:Un,listType:wt,items:ci,previewFile:er,onPreview:Ft,onDownload:On,onRemove:kn,showRemoveIcon:To,showPreviewIcon:Fi,showDownloadIcon:ki,removeIcon:Bi,previewIcon:lo,downloadIcon:xo,iconRender:Jn,extra:Do,locale:Object.assign(Object.assign({},Ii),dr),isImageUrl:Gn,progress:Qn,appendAction:ai,appendActionVisible:Wi,itemRender:yr,disabled:ti}):ai,qr=Ee()(Jr,Er,Qr,pi,Ni,Mn==null?void 0:Mn.className,{[`${Un}-rtl`]:$n==="rtl",[`${Un}-picture-card-wrapper`]:wt==="picture-card",[`${Un}-picture-circle-wrapper`]:wt==="picture-circle"}),Hr=Object.assign(Object.assign({},Mn==null?void 0:Mn.style),Yn);if(Cr==="drag"){const ai=Ee()(pi,Un,`${Un}-drag`,{[`${Un}-drag-uploading`]:ci.some(Wi=>Wi.status==="uploading"),[`${Un}-drag-hover`]:vi==="dragover",[`${Un}-disabled`]:ti,[`${Un}-rtl`]:$n==="rtl"});return Ei(b.createElement("span",{className:qr,ref:bi},b.createElement("div",{className:ai,style:Hr,onDrop:or,onDragOver:or,onDragLeave:or},b.createElement(gt,Object.assign({},tr,{ref:hi,className:`${Un}-btn`}),b.createElement("div",{className:`${Un}-drag-container`},wr))),Co()))}const Qi=Ee()(Un,`${Un}-select`,{[`${Un}-disabled`]:ti,[`${Un}-hidden`]:!wr}),qi=b.createElement("div",{className:Qi},b.createElement(gt,Object.assign({},tr,{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(Hn),Ot=function(Pe,It){var $t={};for(var Vt in Pe)Object.prototype.hasOwnProperty.call(Pe,Vt)&&It.indexOf(Vt)<0&&($t[Vt]=Pe[Vt]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var St=0,Vt=Object.getOwnPropertySymbols(Pe);St<Vt.length;St++)It.indexOf(Vt[St])<0&&Object.prototype.propertyIsEnumerable.call(Pe,Vt[St])&&($t[Vt[St]]=Pe[Vt[St]]);return $t},vt=b.forwardRef((Pe,It)=>{var{style:$t,height:Vt,hasControlInside:St=!1}=Pe,xt=Ot(Pe,["style","height","hasControlInside"]);return b.createElement(ut,Object.assign({ref:It,hasControlInside:St},xt,{type:"drag",style:Object.assign(Object.assign({},$t),{height:Vt})}))});const ze=ut;ze.Dragger=vt,ze.LIST_IGNORE=bn;var bt=ze},99498:function(wn,Qt,ee){(function(b){b(ee(89780))})(function(b){b.defineOption("placeholder","",function(Ze,Ce,ue){var tt=ue&&ue!=b.Init;if(Ce&&!tt)Ze.on("blur",Ee),Ze.on("change",xe),Ze.on("swapDoc",xe),b.on(Ze.getInputField(),"compositionupdate",Ze.state.placeholderCompose=function(){Ue(Ze)}),xe(Ze);else if(!Ce&&tt){Ze.off("blur",Ee),Ze.off("change",xe),Ze.off("swapDoc",xe),b.off(Ze.getInputField(),"compositionupdate",Ze.state.placeholderCompose),We(Ze);var Le=Ze.getWrapperElement();Le.className=Le.className.replace(" CodeMirror-empty","")}Ce&&!Ze.hasFocus()&&Ee(Ze)});function We(Ze){Ze.state.placeholder&&(Ze.state.placeholder.parentNode.removeChild(Ze.state.placeholder),Ze.state.placeholder=null)}function fe(Ze){We(Ze);var Ce=Ze.state.placeholder=document.createElement("pre");Ce.style.cssText="height: 0; overflow: visible",Ce.style.direction=Ze.getOption("direction"),Ce.className="CodeMirror-placeholder CodeMirror-line-like";var ue=Ze.getOption("placeholder");typeof ue=="string"&&(ue=document.createTextNode(ue)),Ce.appendChild(ue),Ze.display.lineSpace.insertBefore(Ce,Ze.display.lineSpace.firstChild)}function Ue(Ze){setTimeout(function(){var Ce=!1,ue=Ze.getInputField();ue.nodeName=="TEXTAREA"?Ce=!ue.value:Ze.lineCount()==1&&(Ce=!/[^\u200b]/.test(ue.querySelector(".CodeMirror-line").textContent)),Ce?fe(Ze):We(Ze)},20)}function Ee(Ze){Ie(Ze)&&fe(Ze)}function xe(Ze){var Ce=Ze.getWrapperElement(),ue=Ie(Ze);Ce.className=Ce.className.replace(" CodeMirror-empty","")+(ue?" CodeMirror-empty":""),ue?fe(Ze):We(Ze)}function Ie(Ze){return Ze.lineCount()===1&&Ze.getLine(0)===""}})},25717:function(wn,Qt,ee){(function(b){b(ee(89780))})(function(b){var We={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},fe=b.Pos;b.defineOption("autoCloseBrackets",!1,function($e,Te,Oe){Oe&&Oe!=b.Init&&($e.removeKeyMap(Ee),$e.state.closeBrackets=null),Te&&(xe(Ue(Te,"pairs")),$e.state.closeBrackets=Te,$e.addKeyMap(Ee))});function Ue($e,Te){return Te=="pairs"&&typeof $e=="string"?$e:typeof $e=="object"&&$e[Te]!=null?$e[Te]:We[Te]}var Ee={Backspace:Ce,Enter:ue};function xe($e){for(var Te=0;Te<$e.length;Te++){var Oe=$e.charAt(Te),Xe="'"+Oe+"'";Ee[Xe]||(Ee[Xe]=Ie(Oe))}}xe(We.pairs+"`");function Ie($e){return function(Te){return Le(Te,$e)}}function Ze($e){var Te=$e.state.closeBrackets;if(!Te||Te.override)return Te;var Oe=$e.getModeAt($e.getCursor());return Oe.closeBrackets||Te}function Ce($e){var Te=Ze($e);if(!Te||$e.getOption("disableInput"))return b.Pass;for(var Oe=Ue(Te,"pairs"),Xe=$e.listSelections(),pt=0;pt<Xe.length;pt++){if(!Xe[pt].empty())return b.Pass;var At=Rt($e,Xe[pt].head);if(!At||Oe.indexOf(At)%2!=0)return b.Pass}for(var pt=Xe.length-1;pt>=0;pt--){var je=Xe[pt].head;$e.replaceRange("",fe(je.line,je.ch-1),fe(je.line,je.ch+1),"+delete")}}function ue($e){var Te=Ze($e),Oe=Te&&Ue(Te,"explode");if(!Oe||$e.getOption("disableInput"))return b.Pass;for(var Xe=$e.listSelections(),pt=0;pt<Xe.length;pt++){if(!Xe[pt].empty())return b.Pass;var At=Rt($e,Xe[pt].head);if(!At||Oe.indexOf(At)%2!=0)return b.Pass}$e.operation(function(){var je=$e.lineSeparator()||`
|
|
|
`;$e.replaceSelection(je+je,null),$e.execCommand("goCharLeft"),Xe=$e.listSelections();for(var Be=0;Be<Xe.length;Be++){var Je=Xe[Be].head.line;$e.indentLine(Je,null,!0),$e.indentLine(Je+1,null,!0)}})}function tt($e){var Te=b.cmpPos($e.anchor,$e.head)>0;return{anchor:new fe($e.anchor.line,$e.anchor.ch+(Te?-1:1)),head:new fe($e.head.line,$e.head.ch+(Te?1:-1))}}function Le($e,Te){var Oe=Ze($e);if(!Oe||$e.getOption("disableInput"))return b.Pass;var Xe=Ue(Oe,"pairs"),pt=Xe.indexOf(Te);if(pt==-1)return b.Pass;for(var At=Ue(Oe,"closeBefore"),je=Ue(Oe,"triples"),Be=Xe.charAt(pt+1)==Te,Je=$e.listSelections(),nt=pt%2==0,zt,yt=0;yt<Je.length;yt++){var ot=Je[yt],ct=ot.head,Se,lt=$e.getRange(ct,fe(ct.line,ct.ch+1));if(nt&&!ot.empty())Se="surround";else if((Be||!nt)&<==Te)Be&&it($e,ct)?Se="both":je.indexOf(Te)>=0&&$e.getRange(ct,fe(ct.line,ct.ch+3))==Te+Te+Te?Se="skipThree":Se="skip";else if(Be&&ct.ch>1&&je.indexOf(Te)>=0&&$e.getRange(fe(ct.line,ct.ch-2),ct)==Te+Te){if(ct.ch>2&&/\bstring/.test($e.getTokenTypeAt(fe(ct.line,ct.ch-2))))return b.Pass;Se="addFour"}else if(Be){var Ge=ct.ch==0?" ":$e.getRange(fe(ct.line,ct.ch-1),ct);if(!b.isWordChar(lt)&&Ge!=Te&&!b.isWordChar(Ge))Se="both";else return b.Pass}else if(nt&&(lt.length===0||/\s/.test(lt)||At.indexOf(lt)>-1))Se="both";else return b.Pass;if(!zt)zt=Se;else if(zt!=Se)return b.Pass}var de=pt%2?Xe.charAt(pt-1):Te,Dt=pt%2?Te:Xe.charAt(pt+1);$e.operation(function(){if(zt=="skip")$e.execCommand("goCharRight");else if(zt=="skipThree")for(var Ke=0;Ke<3;Ke++)$e.execCommand("goCharRight");else if(zt=="surround"){for(var gt=$e.getSelections(),Ke=0;Ke<gt.length;Ke++)gt[Ke]=de+gt[Ke]+Dt;$e.replaceSelections(gt,"around"),gt=$e.listSelections().slice();for(var Ke=0;Ke<gt.length;Ke++)gt[Ke]=tt(gt[Ke]);$e.setSelections(gt)}else zt=="both"?($e.replaceSelection(de+Dt,null),$e.triggerElectric(de+Dt),$e.execCommand("goCharLeft")):zt=="addFour"&&($e.replaceSelection(de+de+de+de,"before"),$e.execCommand("goCharRight"))})}function Rt($e,Te){var Oe=$e.getRange(fe(Te.line,Te.ch-1),fe(Te.line,Te.ch+1));return Oe.length==2?Oe:null}function it($e,Te){var Oe=$e.getTokenAt(fe(Te.line,Te.ch+1));return/\bstring/.test(Oe.type)&&Oe.start==Te.ch&&(Te.ch==0||!/\bstring/.test($e.getTokenTypeAt(Te)))}})},6313:function(wn,Qt,ee){(function(b){b(ee(89780),ee(32855))})(function(b){b.defineOption("autoCloseTags",!1,function(Ce,ue,tt){if(tt!=b.Init&&tt&&Ce.removeKeyMap("autoCloseTags"),!!ue){var Le={name:"autoCloseTags"};(typeof ue!="object"||ue.whenClosing!==!1)&&(Le["'/'"]=function(Rt){return xe(Rt)}),(typeof ue!="object"||ue.whenOpening!==!1)&&(Le["'>'"]=function(Rt){return Ue(Rt)}),Ce.addKeyMap(Le)}});var We=["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 Ue(Ce){if(Ce.getOption("disableInput"))return b.Pass;for(var ue=Ce.listSelections(),tt=[],Le=Ce.getOption("autoCloseTags"),Rt=0;Rt<ue.length;Rt++){if(!ue[Rt].empty())return b.Pass;var it=ue[Rt].head,$e=Ce.getTokenAt(it),Te=b.innerMode(Ce.getMode(),$e.state),Oe=Te.state,Xe=Te.mode.xmlCurrentTag&&Te.mode.xmlCurrentTag(Oe),pt=Xe&&Xe.name;if(!pt)return b.Pass;var At=Te.mode.configuration=="html",je=typeof Le=="object"&&Le.dontCloseTags||At&&We,Be=typeof Le=="object"&&Le.indentTags||At&&fe;$e.end>it.ch&&(pt=pt.slice(0,pt.length-$e.end+it.ch));var Je=pt.toLowerCase();if(!pt||$e.type=="string"&&($e.end!=it.ch||!/[\"\']/.test($e.string.charAt($e.string.length-1))||$e.string.length==1)||$e.type=="tag"&&Xe.close||$e.string.indexOf("/")==it.ch-$e.start-1||je&&Ie(je,Je)>-1||Ze(Ce,Te.mode.xmlCurrentContext&&Te.mode.xmlCurrentContext(Oe)||[],pt,it,!0))return b.Pass;var nt=typeof Le=="object"&&Le.emptyTags;if(nt&&Ie(nt,pt)>-1){tt[Rt]={text:"/>",newPos:b.Pos(it.line,it.ch+2)};continue}var zt=Be&&Ie(Be,Je)>-1;tt[Rt]={indent:zt,text:">"+(zt?`
|
|
|
|
|
|
`:"")+"</"+pt+">",newPos:zt?b.Pos(it.line+1,0):b.Pos(it.line,it.ch+1)}}for(var yt=typeof Le=="object"&&Le.dontIndentOnAutoClose,Rt=ue.length-1;Rt>=0;Rt--){var ot=tt[Rt];Ce.replaceRange(ot.text,ue[Rt].head,ue[Rt].anchor,"+insert");var ct=Ce.listSelections().slice(0);ct[Rt]={head:ot.newPos,anchor:ot.newPos},Ce.setSelections(ct),!yt&&ot.indent&&(Ce.indentLine(ot.newPos.line,null,!0),Ce.indentLine(ot.newPos.line+1,null,!0))}}function Ee(Ce,ue){for(var tt=Ce.listSelections(),Le=[],Rt=ue?"/":"</",it=Ce.getOption("autoCloseTags"),$e=typeof it=="object"&&it.dontIndentOnSlash,Te=0;Te<tt.length;Te++){if(!tt[Te].empty())return b.Pass;var Oe=tt[Te].head,Xe=Ce.getTokenAt(Oe),pt=b.innerMode(Ce.getMode(),Xe.state),At=pt.state;if(ue&&(Xe.type=="string"||Xe.string.charAt(0)!="<"||Xe.start!=Oe.ch-1))return b.Pass;var je,Be=pt.mode.name!="xml"&&Ce.getMode().name=="htmlmixed";if(Be&&pt.mode.name=="javascript")je=Rt+"script";else if(Be&&pt.mode.name=="css")je=Rt+"style";else{var Je=pt.mode.xmlCurrentContext&&pt.mode.xmlCurrentContext(At);if(!Je||Je.length&&Ze(Ce,Je,Je[Je.length-1],Oe))return b.Pass;je=Rt+Je[Je.length-1]}Ce.getLine(Oe.line).charAt(Xe.end)!=">"&&(je+=">"),Le[Te]=je}if(Ce.replaceSelections(Le),tt=Ce.listSelections(),!$e)for(var Te=0;Te<tt.length;Te++)(Te==tt.length-1||tt[Te].head.line<tt[Te+1].head.line)&&Ce.indentLine(tt[Te].head.line)}function xe(Ce){return Ce.getOption("disableInput")?b.Pass:Ee(Ce,!0)}b.commands.closeTag=function(Ce){return Ee(Ce)};function Ie(Ce,ue){if(Ce.indexOf)return Ce.indexOf(ue);for(var tt=0,Le=Ce.length;tt<Le;++tt)if(Ce[tt]==ue)return tt;return-1}function Ze(Ce,ue,tt,Le,Rt){if(!b.scanForClosingTag)return!1;var it=Math.min(Ce.lastLine()+1,Le.line+500),$e=b.scanForClosingTag(Ce,Le,null,it);if(!$e||$e.tag!=tt)return!1;for(var Te=Rt?1:0,Oe=ue.length-1;Oe>=0&&ue[Oe]==tt;Oe--)++Te;Le=$e.to;for(var Oe=1;Oe<Te;Oe++){var Xe=b.scanForClosingTag(Ce,Le,null,it);if(!Xe||Xe.tag!=tt)return!1;Le=Xe.to}return!0}})},32855:function(wn,Qt,ee){(function(b){b(ee(89780))})(function(b){"use strict";var We=b.Pos;function fe(Oe,Xe){return Oe.line-Xe.line||Oe.ch-Xe.ch}var Ue="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",Ee=Ue+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",xe=new RegExp("<(/?)(["+Ue+"]["+Ee+"]*)","g");function Ie(Oe,Xe,pt,At){this.line=Xe,this.ch=pt,this.cm=Oe,this.text=Oe.getLine(Xe),this.min=At?Math.max(At.from,Oe.firstLine()):Oe.firstLine(),this.max=At?Math.min(At.to-1,Oe.lastLine()):Oe.lastLine()}function Ze(Oe,Xe){var pt=Oe.cm.getTokenTypeAt(We(Oe.line,Xe));return pt&&/\btag\b/.test(pt)}function Ce(Oe){if(!(Oe.line>=Oe.max))return Oe.ch=0,Oe.text=Oe.cm.getLine(++Oe.line),!0}function ue(Oe){if(!(Oe.line<=Oe.min))return Oe.text=Oe.cm.getLine(--Oe.line),Oe.ch=Oe.text.length,!0}function tt(Oe){for(;;){var Xe=Oe.text.indexOf(">",Oe.ch);if(Xe==-1){if(Ce(Oe))continue;return}if(!Ze(Oe,Xe+1)){Oe.ch=Xe+1;continue}var pt=Oe.text.lastIndexOf("/",Xe),At=pt>-1&&!/\S/.test(Oe.text.slice(pt+1,Xe));return Oe.ch=Xe+1,At?"selfClose":"regular"}}function Le(Oe){for(;;){var Xe=Oe.ch?Oe.text.lastIndexOf("<",Oe.ch-1):-1;if(Xe==-1){if(ue(Oe))continue;return}if(!Ze(Oe,Xe+1)){Oe.ch=Xe;continue}xe.lastIndex=Xe,Oe.ch=Xe;var pt=xe.exec(Oe.text);if(pt&&pt.index==Xe)return pt}}function Rt(Oe){for(;;){xe.lastIndex=Oe.ch;var Xe=xe.exec(Oe.text);if(!Xe){if(Ce(Oe))continue;return}if(!Ze(Oe,Xe.index+1)){Oe.ch=Xe.index+1;continue}return Oe.ch=Xe.index+Xe[0].length,Xe}}function it(Oe){for(;;){var Xe=Oe.ch?Oe.text.lastIndexOf(">",Oe.ch-1):-1;if(Xe==-1){if(ue(Oe))continue;return}if(!Ze(Oe,Xe+1)){Oe.ch=Xe;continue}var pt=Oe.text.lastIndexOf("/",Xe),At=pt>-1&&!/\S/.test(Oe.text.slice(pt+1,Xe));return Oe.ch=Xe+1,At?"selfClose":"regular"}}function $e(Oe,Xe){for(var pt=[];;){var At=Rt(Oe),je,Be=Oe.line,Je=Oe.ch-(At?At[0].length:0);if(!At||!(je=tt(Oe)))return;if(je!="selfClose")if(At[1]){for(var nt=pt.length-1;nt>=0;--nt)if(pt[nt]==At[2]){pt.length=nt;break}if(nt<0&&(!Xe||Xe==At[2]))return{tag:At[2],from:We(Be,Je),to:We(Oe.line,Oe.ch)}}else pt.push(At[2])}}function Te(Oe,Xe){for(var pt=[];;){var At=it(Oe);if(!At)return;if(At=="selfClose"){Le(Oe);continue}var je=Oe.line,Be=Oe.ch,Je=Le(Oe);if(!Je)return;if(Je[1])pt.push(Je[2]);else{for(var nt=pt.length-1;nt>=0;--nt)if(pt[nt]==Je[2]){pt.length=nt;break}if(nt<0&&(!Xe||Xe==Je[2]))return{tag:Je[2],from:We(Oe.line,Oe.ch),to:We(je,Be)}}}}b.registerHelper("fold","xml",function(Oe,Xe){for(var pt=new Ie(Oe,Xe.line,0);;){var At=Rt(pt);if(!At||pt.line!=Xe.line)return;var je=tt(pt);if(!je)return;if(!At[1]&&je!="selfClose"){var Be=We(pt.line,pt.ch),Je=$e(pt,At[2]);return Je&&fe(Je.from,Be)>0?{from:Be,to:Je.from}:null}}}),b.findMatchingTag=function(Oe,Xe,pt){var At=new Ie(Oe,Xe.line,Xe.ch,pt);if(!(At.text.indexOf(">")==-1&&At.text.indexOf("<")==-1)){var je=tt(At),Be=je&&We(At.line,At.ch),Je=je&&Le(At);if(!(!je||!Je||fe(At,Xe)>0)){var nt={from:We(At.line,At.ch),to:Be,tag:Je[2]};return je=="selfClose"?{open:nt,close:null,at:"open"}:Je[1]?{open:Te(At,Je[2]),close:nt,at:"close"}:(At=new Ie(Oe,Be.line,Be.ch,pt),{open:nt,close:$e(At,Je[2]),at:"open"})}}},b.findEnclosingTag=function(Oe,Xe,pt,At){for(var je=new Ie(Oe,Xe.line,Xe.ch,pt);;){var Be=Te(je,At);if(!Be)break;var Je=new Ie(Oe,Xe.line,Xe.ch,pt),nt=$e(Je,Be.tag);if(nt)return{open:Be,close:nt}}},b.scanForClosingTag=function(Oe,Xe,pt,At){var je=new Ie(Oe,Xe.line,Xe.ch,At?{from:0,to:At}:null);return $e(je,pt)}})},89780:function(wn){(function(Qt,ee){wn.exports=ee()})(this,function(){"use strict";var Qt=navigator.userAgent,ee=navigator.platform,b=/gecko\/\d/i.test(Qt),We=/MSIE \d/.test(Qt),fe=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Qt),Ue=/Edge\/(\d+)/.exec(Qt),Ee=We||fe||Ue,xe=Ee&&(We?document.documentMode||6:+(Ue||fe)[1]),Ie=!Ue&&/WebKit\//.test(Qt),Ze=Ie&&/Qt\/\d+\.\d+/.test(Qt),Ce=!Ue&&/Chrome\//.test(Qt),ue=/Opera\//.test(Qt),tt=/Apple Computer/.test(navigator.vendor),Le=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Qt),Rt=/PhantomJS/.test(Qt),it=!Ue&&/AppleWebKit/.test(Qt)&&/Mobile\/\w+/.test(Qt),$e=/Android/.test(Qt),Te=it||$e||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Qt),Oe=it||/Mac/.test(ee),Xe=/\bCrOS\b/.test(Qt),pt=/win/i.test(ee),At=ue&&Qt.match(/Version\/(\d*\.\d*)/);At&&(At=Number(At[1])),At&&At>=15&&(ue=!1,Ie=!0);var je=Oe&&(Ze||ue&&(At==null||At<12.11)),Be=b||Ee&&xe>=9;function Je(a){return new RegExp("(^|\\s)"+a+"(?:$|\\s)\\s*")}var nt=function(a,y){var E=a.className,x=Je(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 zt(a){for(var y=a.childNodes.length;y>0;--y)a.removeChild(a.firstChild);return a}function yt(a,y){return zt(a).appendChild(y)}function ot(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 ct(a,y,E,x){var z=ot(a,y,E,x);return z.setAttribute("role","presentation"),z}var Se;document.createRange?Se=function(a,y,E,x){var z=document.createRange();return z.setEnd(x||a,E),z.setStart(a,y),z}:Se=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 lt(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 Ge(){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;Je(y).test(E)||(a.className+=(E?" ":"")+y)}function Dt(a,y){for(var E=a.split(" "),x=0;x<E.length;x++)E[x]&&!Je(E[x]).test(y)&&(y+=" "+E[x]);return y}var Ke=function(a){a.select()};it?Ke=function(a){a.selectionStart=0,a.selectionEnd=a.value.length}:Ee&&(Ke=function(a){try{a.select()}catch(y){}});function gt(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 Ne(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 me=function(){this.id=null,this.f=null,this.time=0,this.handler=gt(this.onTimeout,this)};me.prototype.onTimeout=function(a){a.id=0,a.time<=+new Date?a.f():setTimeout(a.handler,a.time-+new Date)},me.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 Pt(a,y){for(var E=0;E<a.length;++E)if(a[E]==y)return E;return-1}var Ut=50,kt={toString:function(){return"CodeMirror.Pass"}},ge={scroll:!1},et={origin:"*mouse"},rt={origin:"+move"};function _t(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 Bt(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 Tt(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 ye(a){return a.charCodeAt(0)>=768&&le.test(a)}function ft(a,y,E){for(;(E<0?y>0:y<a.length)&&ye(a.charAt(y));)y+=E;return y}function Ae(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 ke(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 Ye(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 mt=function(){var a="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",y="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function E(Re){return Re<=247?a.charAt(Re):1424<=Re&&Re<=1524?"R":1536<=Re&&Re<=1785?y.charAt(Re-1536):1774<=Re&&Re<=2220?"r":8192<=Re&&Re<=8203?"w":Re==8204?"b":"L"}var x=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,z=/[stwN]/,ie=/[LRr]/,se=/[Lb1n]/,he=/[1n]/;function be(Re,Lt,Gt){this.level=Re,this.from=Lt,this.to=Gt}return function(Re,Lt){var Gt=Lt=="ltr"?"L":"R";if(Re.length==0||Lt=="ltr"&&!x.test(Re))return!1;for(var xn=Re.length,hn=[],Vn=0;Vn<xn;++Vn)hn.push(E(Re.charCodeAt(Vn)));for(var qn=0,hr=Gt;qn<xn;++qn){var Ir=hn[qn];Ir=="m"?hn[qn]=hr:hr=Ir}for(var $r=0,Pr=Gt;$r<xn;++$r){var Wr=hn[$r];Wr=="1"&&Pr=="r"?hn[$r]="n":ie.test(Wr)&&(Pr=Wr,Wr=="r"&&(hn[$r]="R"))}for(var fi=1,li=hn[0];fi<xn-1;++fi){var Ai=hn[fi];Ai=="+"&&li=="1"&&hn[fi+1]=="1"?hn[fi]="1":Ai==","&&li==hn[fi+1]&&(li=="1"||li=="n")&&(hn[fi]=li),li=Ai}for(var go=0;go<xn;++go){var ra=hn[go];if(ra==",")hn[go]="N";else if(ra=="%"){var Ro=void 0;for(Ro=go+1;Ro<xn&&hn[Ro]=="%";++Ro);for(var La=go&&hn[go-1]=="!"||Ro<xn&&hn[Ro]=="1"?"1":"N",Pa=go;Pa<Ro;++Pa)hn[Pa]=La;go=Ro-1}}for(var Go=0,Oa=Gt;Go<xn;++Go){var fa=hn[Go];Oa=="L"&&fa=="1"?hn[Go]="L":ie.test(fa)&&(Oa=fa)}for(var qo=0;qo<xn;++qo)if(z.test(hn[qo])){var Xo=void 0;for(Xo=qo+1;Xo<xn&&z.test(hn[Xo]);++Xo);for(var Fo=(qo?hn[qo-1]:Gt)=="L",Da=(Xo<xn?hn[Xo]:Gt)=="L",hs=Fo==Da?Fo?"L":"R":Gt,kl=qo;kl<Xo;++kl)hn[kl]=hs;qo=Xo-1}for(var ba=[],cl,ia=0;ia<xn;)if(se.test(hn[ia])){var Ec=ia;for(++ia;ia<xn&&se.test(hn[ia]);++ia);ba.push(new be(0,Ec,ia))}else{var bl=ia,Xl=ba.length,Yl=Lt=="rtl"?1:0;for(++ia;ia<xn&&hn[ia]!="L";++ia);for(var Sa=bl;Sa<ia;)if(he.test(hn[Sa])){bl<Sa&&(ba.splice(Xl,0,new be(1,bl,Sa)),Xl+=Yl);var ps=Sa;for(++Sa;Sa<ia&&he.test(hn[Sa]);++Sa);ba.splice(Xl,0,new be(2,ps,Sa)),Xl+=Yl,bl=Sa}else++Sa;bl<ia&&ba.splice(Xl,0,new be(1,bl,ia))}return Lt=="ltr"&&(ba[0].level==1&&(cl=Re.match(/^\s+/))&&(ba[0].from=cl[0].length,ba.unshift(new be(0,0,cl[0].length))),qe(ba).level==1&&(cl=Re.match(/\s+$/))&&(qe(ba).to-=cl[0].length,ba.push(new be(0,xn-cl[0].length,xn)))),Lt=="rtl"?ba.reverse():ba}}();function we(a,y){var E=a.order;return E==null&&(E=a.order=mt(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 Ht(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=Pt(z,E);ie>-1&&(x[y]=z.slice(0,ie).concat(z.slice(ie+1)))}}}function qt(a,y){var E=Ht(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 Et(a,y,E){return typeof y=="string"&&(y={type:y,preventDefault:function(){this.defaultPrevented=!0}}),qt(a,E||y.type,a,y),Mt(y)||y.codemirrorIgnore}function on(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)Pt(E,y[x])==-1&&E.push(y[x])}function Kt(a,y){return Ht(a,y).length>0}function He(a){a.prototype.on=function(y,E){Zt(this,y,E)},a.prototype.off=function(y,E){nn(this,y,E)}}function ht(a){a.preventDefault?a.preventDefault():a.returnValue=!1}function at(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0}function Mt(a){return a.defaultPrevented!=null?a.defaultPrevented:a.returnValue==!1}function Me(a){ht(a),at(a)}function st(a){return a.target||a.srcElement}function Ct(a){var y=a.which;return y==null&&(a.button&1?y=1:a.button&2?y=3:a.button&4&&(y=2)),Oe&&a.ctrlKey&&y==1&&(y=3),y}var Wt=function(){if(Ee&&xe<9)return!1;var a=ot("div");return"draggable"in a||"dragDrop"in a}(),cn;function Sn(a){if(cn==null){var y=ot("span","\u200B");yt(a,ot("span",[y,document.createTextNode("x")])),a.firstChild.offsetHeight!=0&&(cn=y.offsetWidth<=1&&y.offsetHeight>2&&!(Ee&&xe<8))}var E=cn?ot("span","\u200B"):ot("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return E.setAttribute("cm-text",""),E}var Bn;function Rn(a){if(Bn!=null)return Bn;var y=yt(a,document.createTextNode("A\u062EA")),E=Se(y,0,1).getBoundingClientRect(),x=Se(y,1,2).getBoundingClientRect();return zt(a),!E||E.left==E.right?!1:Bn=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/)},Nn=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=ot("div");return"oncopy"in a?!0:(a.setAttribute("oncopy","return;"),typeof a.oncopy=="function")}(),Xt=null;function rn(a){if(Xt!=null)return Xt;var y=yt(a,ot("span","x")),E=y.getBoundingClientRect(),x=Se(y,0,1).getBoundingClientRect();return Xt=Math.abs(E.left-x.left)>1}var an={},Jt={};function pn(a,y){arguments.length>2&&(y.dependencies=Array.prototype.slice.call(arguments,2)),an[a]=y}function mn(a,y){Jt[a]=y}function Cn(a){if(typeof a=="string"&&Jt.hasOwnProperty(a))a=Jt[a];else if(a&&typeof a.name=="string"&&Jt.hasOwnProperty(a.name)){var y=Jt[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 Cn("application/xml");if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(a))return Cn("application/json")}return typeof a=="string"?{name:a}:a||{name:"null"}}function Fn(a,y){y=Cn(y);var E=an[y.name];if(!E)return Fn(a,"text/plain");var x=E(a,y);if(zn.hasOwnProperty(y.name)){var z=zn[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 zn={};function Zn(a,y){var E=zn.hasOwnProperty(a)?zn[a]:zn[a]={};Yt(y,E)}function Xn(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 _n(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 pr(a,y,E){return a.startState?a.startState(y,E):!0}var ar=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};ar.prototype.eol=function(){return this.pos>=this.string.length},ar.prototype.sol=function(){return this.pos==this.lineStart},ar.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},ar.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},ar.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},ar.prototype.eatWhile=function(a){for(var y=this.pos;this.eat(a););return this.pos>y},ar.prototype.eatSpace=function(){for(var a=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>a},ar.prototype.skipToEnd=function(){this.pos=this.string.length},ar.prototype.skipTo=function(a){var y=this.string.indexOf(a,this.pos);if(y>-1)return this.pos=y,!0},ar.prototype.backUp=function(a){this.pos-=a},ar.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Ne(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Ne(this.string,this.lineStart,this.tabSize):0)},ar.prototype.indentation=function(){return Ne(this.string,null,this.tabSize)-(this.lineStart?Ne(this.string,this.lineStart,this.tabSize):0)},ar.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)}},ar.prototype.current=function(){return this.string.slice(this.start,this.pos)},ar.prototype.hideFirstChars=function(a,y){this.lineStart+=a;try{return y()}finally{this.lineStart-=a}},ar.prototype.lookAhead=function(a){var y=this.lineOracle;return y&&y.lookAhead(a)},ar.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 bn(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 Hn(a,y,E){var x=[];return a.iter(y,E,function(z){x.push(z.text)}),x}function An(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=Pt(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 Ot(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],be=he.height;if(y<be)break;y-=be}return E+se}function Fe(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 $t(a,y){return bt(a,y)<0?y:a}function Vt(a,y){return bt(a,y)<0?a:y}function St(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 On=function(a,y){this.state=a,this.lookAhead=y},In=function(a,y,E,x){this.state=y,this.doc=a,this.line=E,this.maxLookAhead=x||0,this.baseTokens=null,this.baseTokenPos=1};In.prototype.lookAhead=function(a){var y=this.doc.getLine(this.line+a);return y!=null&&a>this.maxLookAhead&&(this.maxLookAhead=a),y},In.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}},In.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},In.fromSaved=function(a,y,E){return y instanceof On?new In(a,Xn(a.mode,y.state),E,y.lookAhead):new In(a,Xn(a.mode,y),E)},In.prototype.save=function(a){var y=a!==!1?Xn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new On(y,this.maxLookAhead):y};function Tn(a,y,E,x){var z=[a.state.modeGen],ie={};Cr(a,y.text,a.doc.mode,E,function(Re,Lt){return z.push(Re,Lt)},ie,x);for(var se=E.state,he=function(Re){E.baseTokens=z;var Lt=a.state.overlays[Re],Gt=1,xn=0;E.state=!0,Cr(a,y.text,Lt.mode,E,function(hn,Vn){for(var qn=Gt;xn<hn;){var hr=z[Gt];hr>hn&&z.splice(Gt,1,hn,z[Gt+1],hr),Gt+=2,xn=Math.min(hn,hr)}if(Vn)if(Lt.opaque)z.splice(qn,Gt-qn,hn,"overlay "+Vn),Gt=qn+2;else for(;qn<Gt;qn+=2){var Ir=z[qn+1];z[qn+1]=(Ir?Ir+" ":"")+"overlay "+Vn}},ie),E.state=se,E.baseTokens=null,E.baseTokenPos=1},be=0;be<a.state.overlays.length;++be)he(be);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=lr(a,ut(y)),z=y.text.length>a.options.maxHighlightLength&&Xn(a.doc.mode,x.state),ie=Tn(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 lr(a,y,E){var x=a.doc,z=a.display;if(!x.mode.startState)return new In(x,!0,y);var ie=wr(a,y,E),se=ie>x.first&&sn(x,ie-1).stateAfter,he=se?In.fromSaved(x,se,ie):new In(x,pr(x.mode),ie);return x.iter(ie,y,function(be){dr(a,be.text,he);var Re=he.line;be.stateAfter=Re==y-1||Re%5==0||Re>=z.viewFrom&&Re<z.viewTo?he.save():null,he.nextLine()}),E&&(x.modeFrontier=he.line),he}function dr(a,y,E,x){var z=a.doc.mode,ie=new ar(y,a.options.tabSize,E);for(ie.start=ie.pos=x||0,y==""&&Jn(z,E.state);!ie.eol();)Gn(z,ie,E.state),ie.start=ie.pos}function Jn(a,y){if(a.blankLine)return a.blankLine(y);if(a.innerMode){var E=_n(a,y);if(E.mode.blankLine)return E.mode.blankLine(E.state)}}function Gn(a,y,E,x){for(var z=0;z<10;z++){x&&(x[0]=_n(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 Qn=function(a,y,E){this.start=a.start,this.end=a.pos,this.string=a.current(),this.type=y||null,this.state=E};function cr(a,y,E,x){var z=a.doc,ie=z.mode,se;y=xt(z,y);var he=sn(z,y.line),be=lr(a,y.line,E),Re=new ar(he.text,a.options.tabSize,be),Lt;for(x&&(Lt=[]);(x||Re.pos<y.ch)&&!Re.eol();)Re.start=Re.pos,se=Gn(ie,Re,be.state),x&&Lt.push(new Qn(Re,se,Xn(z.mode,be.state)));return x?Lt:new Qn(Re,se,be.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 be=0,Re=null,Lt=new ar(y,a.options.tabSize,x),Gt,xn=a.options.addModeClass&&[null];for(y==""&&Er(Jn(E,x.state),ie);!Lt.eol();){if(Lt.pos>a.options.maxHighlightLength?(he=!1,se&&dr(a,y,x,Lt.pos),Lt.pos=y.length,Gt=null):Gt=Er(Gn(E,Lt,x.state,xn),ie),xn){var hn=xn[0].name;hn&&(Gt="m-"+(Gt?hn+" "+Gt:hn))}if(!he||Re!=Gt){for(;be<Lt.start;)be=Math.min(Lt.start,be+5e3),z(be,Re);Re=Gt}Lt.start=Lt.pos}for(;be<Lt.pos;){var Vn=Math.min(Lt.pos,be+5e3);z(Vn,Re),be=Vn}}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 be=sn(ie,he-1),Re=be.stateAfter;if(Re&&(!E||he+(Re instanceof On?Re.lookAhead:0)<=ie.modeFrontier))return he;var Lt=Ne(be.text,null,a.options.tabSize);(z==null||x>Lt)&&(z=he-1,x=Lt)}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 On)||x+z.lookAhead<y)){E=x+1;break}}a.highlightFrontier=Math.min(a.highlightFrontier,E)}}var yr=!1,mr=!1;function Vr(){yr=!0}function Yr(){mr=!0}function _r(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 Qr(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 be=ie.to==null||(se.inclusiveRight?ie.to>=y:ie.to>y);(x||(x=[])).push(new _r(se,ie.from,be?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 be=ie.from==null||(se.inclusiveLeft?ie.from<=y:ie.from<y);(x||(x=[])).push(new _r(se,be?null:ie.from-y,ie.to==null?null:ie.to-y))}}return x}function ti(a,y){if(y.full)return null;var E=Fe(a,y.from.line)&&sn(a,y.from.line).markedSpans,x=Fe(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=Qr(E,z,se),be=Or(x,ie,se),Re=y.text.length==1,Lt=qe(y.text).length+(Re?z:0);if(he)for(var Gt=0;Gt<he.length;++Gt){var xn=he[Gt];if(xn.to==null){var hn=Ur(be,xn.marker);hn?Re&&(xn.to=hn.to==null?null:hn.to+Lt):xn.to=z}}if(be)for(var Vn=0;Vn<be.length;++Vn){var qn=be[Vn];if(qn.to!=null&&(qn.to+=Lt),qn.from==null){var hr=Ur(he,qn.marker);hr||(qn.from=Lt,Re&&(he||(he=[])).push(qn))}else qn.from+=Lt,Re&&(he||(he=[])).push(qn)}he&&(he=ci(he)),be&&be!=he&&(be=ci(be));var Ir=[he];if(!Re){var $r=y.text.length-2,Pr;if($r>0&&he)for(var Wr=0;Wr<he.length;++Wr)he[Wr].to==null&&(Pr||(Pr=[])).push(new _r(he[Wr].marker,null,null));for(var fi=0;fi<$r;++fi)Ir.push(Pr);Ir.push(be)}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 $i(a,y,E){var x=null;if(a.iter(y.line,E.line+1,function(hn){if(hn.markedSpans)for(var Vn=0;Vn<hn.markedSpans.length;++Vn){var qn=hn.markedSpans[Vn].marker;qn.readOnly&&(!x||Pt(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),be=0;be<z.length;++be){var Re=z[be];if(!(bt(Re.to,he.from)<0||bt(Re.from,he.to)>0)){var Lt=[be,1],Gt=bt(Re.from,he.from),xn=bt(Re.to,he.to);(Gt<0||!se.inclusiveLeft&&!Gt)&&Lt.push({from:Re.from,to:he.from}),(xn>0||!se.inclusiveRight&&!xn)&&Lt.push({from:he.to,to:Re.to}),z.splice.apply(z,Lt),be+=Lt.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 Ar(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||Ar(x,z.marker)<0)&&(x=z.marker);return x}function sr(a){return Lr(a,!0)}function Dn(a){return Lr(a,!1)}function jn(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||Ar(x,ie.marker)<0)&&(x=ie.marker)}return x}function Kn(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 be=se[he];if(be.marker.collapsed){var Re=be.marker.find(0),Lt=bt(Re.from,E)||hi(be.marker)-hi(z),Gt=bt(Re.to,x)||bi(be.marker)-bi(z);if(!(Lt>=0&&Gt<=0||Lt<=0&&Gt>=0)&&(Lt<=0&&(be.marker.inclusiveRight&&z.inclusiveLeft?bt(Re.to,E)>=0:bt(Re.to,E)>0)||Lt>=0&&(be.marker.inclusiveRight&&z.inclusiveLeft?bt(Re.from,x)<=0:bt(Re.from,x)<0)))return!0}}}function kn(a){for(var y;y=sr(a);)a=y.find(-1,!0).line;return a}function or(a){for(var y;y=Dn(a);)a=y.find(1,!0).line;return a}function br(a){for(var y,E;y=Dn(a);)a=y.find(1,!0).line,(E||(E=[])).push(a);return E}function $n(a,y){var E=sn(a,y),x=kn(E);return E==x?y:ut(x)}function Mn(a,y){if(y>a.lastLine())return y;var E=sn(a,y),x;if(!Un(a,E))return y;for(;x=Dn(E);)E=x.find(1,!0).line;return ut(E)+1}function Un(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&&tr(a,y,x))return!0}}}function tr(a,y,E){if(E.to==null){var x=E.marker.find(1,!0);return tr(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)&&tr(a,y,z))return!0}function Jr(a){a=kn(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=sr(x);){var z=E.find(0,!0);x=z.from.line,y+=z.from.ch-z.to.ch}for(x=a;E=Dn(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)},He(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&&An(a,z)}function Pi(a){a.parent=null,vi(a)}var Fi={},ki={};function Bi(a,y){if(!a||/^\s*$/.test(a))return null;var E=y.addModeClass?ki:Fi;return E[a]||(E[a]=a.replace(/\S+/g,"cm-$&"))}function lo(a,y){var E=ct("span",null,null,Ie?"padding-right: .1px":null),x={pre:ct("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,Rn(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=Dt(ie.styleClasses.bgClass,x.bgClass||"")),ie.styleClasses.textClass&&(x.textClass=Dt(ie.styleClasses.textClass,x.textClass||""))),x.map.length==0&&x.map.push(0,0,x.content.appendChild(Sn(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(Ie){var be=x.content.lastChild;(/\bcm-tab\b/.test(be.className)||be.querySelector&&be.querySelector(".cm-tab"))&&(x.content.className="cm-tab-wrap-hack")}return qt(a,"renderLine",a,y.line,x.pre),x.pre.className&&(x.textClass=Dt(x.pre.className,x.textClass||"")),x}function xo(a){var y=ot("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,be=a.cm.state.specialChars,Re=!1,Lt;if(!be.test(y))a.col+=y.length,Lt=document.createTextNode(he),a.map.push(a.pos,a.pos+y.length,Lt),Ee&&xe<9&&(Re=!0),a.pos+=y.length;else{Lt=document.createDocumentFragment();for(var Gt=0;;){be.lastIndex=Gt;var xn=be.exec(y),hn=xn?xn.index-Gt:y.length-Gt;if(hn){var Vn=document.createTextNode(he.slice(Gt,Gt+hn));Ee&&xe<9?Lt.appendChild(ot("span",[Vn])):Lt.appendChild(Vn),a.map.push(a.pos,a.pos+hn,Vn),a.col+=hn,a.pos+=hn}if(!xn)break;Gt+=hn+1;var qn=void 0;if(xn[0]==" "){var hr=a.cm.options.tabSize,Ir=hr-a.col%hr;qn=Lt.appendChild(ot("span",Bt(Ir),"cm-tab")),qn.setAttribute("role","presentation"),qn.setAttribute("cm-text"," "),a.col+=Ir}else xn[0]=="\r"||xn[0]==`
|
|
|
`?(qn=Lt.appendChild(ot("span",xn[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),qn.setAttribute("cm-text",xn[0]),a.col+=1):(qn=a.cm.options.specialCharPlaceholder(xn[0]),qn.setAttribute("cm-text",xn[0]),Ee&&xe<9?Lt.appendChild(ot("span",[qn])):Lt.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||Re||ie||se){var $r=E||"";x&&($r+=x),z&&($r+=z);var Pr=ot("span",[Lt],$r,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(Lt)}}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,be){z=z?z+" cm-force-border":"cm-force-border";for(var Re=E.pos,Lt=Re+x.length;;){for(var Gt=void 0,xn=0;xn<y.length&&(Gt=y[xn],!(Gt.to>Re&&Gt.from<=Re));xn++);if(Gt.to>=Lt)return a(E,x,z,ie,se,he,be);a(E,x.slice(0,Gt.to-Re),z,ie,null,he,be),ie=null,x=x.slice(Gt.to-Re),Re=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]),Bi(E[se+1],y.cm.options));return}for(var he=z.length,be=0,Re=1,Lt="",Gt,xn,hn=0,Vn,qn,hr,Ir,$r;;){if(hn==be){Vn=qn=hr=xn="",$r=null,Ir=null,hn=1/0;for(var Pr=[],Wr=void 0,fi=0;fi<x.length;++fi){var li=x[fi],Ai=li.marker;if(Ai.type=="bookmark"&&li.from==be&&Ai.widgetNode)Pr.push(Ai);else if(li.from<=be&&(li.to==null||li.to>be||Ai.collapsed&&li.to==be&&li.from==be)){if(li.to!=null&&li.to!=be&&hn>li.to&&(hn=li.to,qn=""),Ai.className&&(Vn+=" "+Ai.className),Ai.css&&(xn=(xn?xn+";":"")+Ai.css),Ai.startStyle&&li.from==be&&(hr+=" "+Ai.startStyle),Ai.endStyle&&li.to==hn&&(Wr||(Wr=[])).push(Ai.endStyle,li.to),Ai.title&&(($r||($r={})).title=Ai.title),Ai.attributes)for(var go in Ai.attributes)($r||($r={}))[go]=Ai.attributes[go];Ai.collapsed&&(!Ir||Ar(Ir.marker,Ai)<0)&&(Ir=li)}else li.from>be&&hn>li.from&&(hn=li.from)}if(Wr)for(var ra=0;ra<Wr.length;ra+=2)Wr[ra+1]==hn&&(qn+=" "+Wr[ra]);if(!Ir||Ir.from==be)for(var Ro=0;Ro<Pr.length;++Ro)qr(y,0,Pr[Ro]);if(Ir&&(Ir.from||0)==be){if(qr(y,(Ir.to==null?he+1:Ir.to)-be,Ir.marker,Ir.from==null),Ir.to==null)return;Ir.to==be&&(Ir=!1)}}if(be>=he)break;for(var La=Math.min(he,hn);;){if(Lt){var Pa=be+Lt.length;if(!Ir){var Go=Pa>La?Lt.slice(0,La-be):Lt;y.addToken(y,Go,Gt?Gt+Vn:Vn,hr,be+Go.length==hn?qn:"",xn,$r)}if(Pa>=La){Lt=Lt.slice(La-be),be=La;break}be=Pa,hr=""}Lt=z.slice(ie,ie=E[Re++]),Gt=Bi(E[Re++],y.cm.options)}}}function Qi(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=Un(a,y)}function qi(a,y,E){for(var x=[],z,ie=y;ie<E;ie=z){var se=new Qi(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=Ht(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=ot("div",null,null,"position: relative"),a.text.parentNode&&a.text.parentNode.replaceChild(a.node,a.text),a.node.appendChild(a.text),Ee&&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(ot("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=ot("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=ot("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(ot("div",vt(a.options,E),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+x.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+a.display.lineNumInnerWidth+"px"))),ie)for(var be=0;be<a.display.gutterSpecs.length;++be){var Re=a.display.gutterSpecs[be].className,Lt=ie.hasOwnProperty(Re)&&ie[Re];Lt&&he.appendChild(ot("div",[Lt],"CodeMirror-gutter-elt","left: "+x.gutterLeft[Re]+"px; width: "+x.gutterWidth[Re]+"px"))}}}function ni(a,y,E){y.alignable&&(y.alignable=null);for(var x=Je("CodeMirror-linewidget"),z=y.node.firstChild,ie=void 0;z;z=ie)ie=z.nextSibling,x.test(z.className)&&y.node.removeChild(z);Vi(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),Vi(a,y,x),y.node}function Vi(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 be=he[se],Re=ot("div",[be.node],"CodeMirror-linewidget"+(be.className?" "+be.className:""));be.handleMouseEvents||Re.setAttribute("cm-ignore-events","true"),Ra(be,Re,E,x),a.display.input.setUneditable(Re),z&&be.above?ie.insertBefore(Re,E.gutter||E.text):ie.appendChild(Re),Mi(be,"redraw")}}function Ra(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(!lt(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;"),yt(y.display.measure,ot("div",[a.node],null,E))}return a.height=a.node.parentNode.offsetHeight}function Yo(a,y){for(var E=st(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=yt(a.measure,ot("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 Ut-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 be=se[he],Re=se[he+1];Math.abs(be.bottom-Re.bottom)>2&&ie.push((be.bottom+Re.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=kn(y);var E=ut(y),x=a.display.externalMeasured=new Qi(a.doc,y,E);x.lineN=E;var z=x.built=lo(a,x);return x.text=z.pre,yt(a.display.lineMeasure,z.pre),x}function Jl(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 Bl(a,y,E){for(var x,z,ie,se,he,be,Re=0;Re<a.length;Re+=3)if(he=a[Re],be=a[Re+1],y<he?(z=0,ie=1,se="left"):y<be?(z=y-he,ie=z+1):(Re==a.length-3||y==be&&a[Re+3]>y)&&(ie=be-he,z=ie-1,y>=be&&(se="right")),z!=null){if(x=a[Re+2],he==be&&E==(x.insertLeft?"left":"right")&&(se=E),E=="left"&&z==0)for(;Re&&a[Re-2]==a[Re-3]&&a[Re-1].insertLeft;)x=a[(Re-=3)+2],se="left";if(E=="right"&&z==be-he)for(;Re<a.length-3&&a[Re+3]==a[Re+4]&&!a[Re+5].insertLeft;)x=a[(Re+=3)+2],se="right";break}return{node:x,start:z,end:ie,collapse:se,coverStart:he,coverEnd:be}}function Ql(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=Bl(y.map,E,x),ie=z.node,se=z.start,he=z.end,be=z.collapse,Re;if(ie.nodeType==3){for(var Lt=0;Lt<4;Lt++){for(;se&&ye(y.line.text.charAt(z.coverStart+se));)--se;for(;z.coverStart+he<z.coverEnd&&ye(y.line.text.charAt(z.coverStart+he));)++he;if(Ee&&xe<9&&se==0&&he==z.coverEnd-z.coverStart?Re=ie.parentNode.getBoundingClientRect():Re=Ql(Se(ie,se,he).getClientRects(),x),Re.left||Re.right||se==0)break;he=se,se=se-1,be="right"}Ee&&xe<11&&(Re=zs(a.display.measure,Re))}else{se>0&&(be=x="right");var Gt;a.options.lineWrapping&&(Gt=ie.getClientRects()).length>1?Re=Gt[x=="right"?Gt.length-1:0]:Re=ie.getBoundingClientRect()}if(Ee&&xe<9&&!se&&(!Re||!Re.left&&!Re.right)){var xn=ie.parentNode.getClientRects()[0];xn?Re={left:xn.left,right:xn.left+$a(a.display),top:xn.top,bottom:xn.bottom}:Re=vs}for(var hn=Re.top-y.rect.top,Vn=Re.bottom-y.rect.top,qn=(hn+Vn)/2,hr=y.view.measure.heights,Ir=0;Ir<hr.length-1&&!(qn<hr[Ir]);Ir++);var $r=Ir?hr[Ir-1]:0,Pr=hr[Ir],Wr={left:(be=="right"?Re.right:Re.left)-y.rect.left,right:(be=="left"?Re.left:Re.right)-y.rect.left,top:$r,bottom:Pr};return!Re.left&&!Re.right&&(Wr.bogus=!0),a.options.singleCursorHeightPerLine||(Wr.rtop=hn,Wr.rbottom=Vn),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,zt(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 Ce&&$e?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Rl(){return Ce&&$e?-(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 Al(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=Jr(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:Rl());var be=he.left+(x=="window"?0:xl());E.left+=be,E.right+=be}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-=Rl();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)),Al(a,x,Jl(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(Vn,qn){var hr=Na(a,z,Vn,qn?"right":"left",ie);return qn?hr.left=hr.right:hr.right=hr.left,Al(a,x,hr,E)}var he=we(x,a.doc.direction),be=y.ch,Re=y.sticky;if(be>=x.text.length?(be=x.text.length,Re="before"):be<=0&&(be=0,Re="after"),!he)return se(Re=="before"?be-1:be,Re=="before");function Lt(Vn,qn,hr){var Ir=he[qn],$r=Ir.level==1;return se(hr?Vn-1:Vn,$r!=hr)}var Gt=Ye(he,be,Re),xn=Ve,hn=Lt(be,Gt,Re=="before");return xn!=null&&(hn.other=Lt(be,xn,Re!="before")),hn}function Ki(a,y){var E=0;y=xt(a.doc,y),a.options.lineWrapping||(E=$a(a.display)*y.ch);var x=sn(a.doc,y.line),z=Jr(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=Ot(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=Aa(a,se,z,y,E),be=jn(se,he.ch+(he.xRel>0||he.outside>0?1:0));if(!be)return he;var Re=be.find(1);if(Re.line==z)return Re;se=sn(x,z=Re.line)}}function la(a,y,E,x){x-=hl(y);var z=y.text.length,ie=Ae(function(se){return Na(a,E,se-1).bottom<=x},z,0);return z=Ae(function(se){return Na(a,E,se).top>x},ie,z),{begin:ie,end:z}}function ko(a,y,E,x){E||(E=tl(a,y));var z=Al(a,y,Na(a,E,x),"line").top;return la(a,y,E,z)}function Vo(a,y,E,x){return a.bottom<=E?!1:a.top>E?!0:(x?a.left:a.right)>y}function Aa(a,y,E,x,z){z-=Jr(y);var ie=tl(a,y),se=hl(y),he=0,be=y.text.length,Re=!0,Lt=we(y,a.doc.direction);if(Lt){var Gt=(a.options.lineWrapping?Wa:ka)(a,y,E,ie,Lt,x,z);Re=Gt.level!=1,he=Re?Gt.from:Gt.to-1,be=Re?Gt.to:Gt.from-1}var xn=null,hn=null,Vn=Ae(function(fi){var li=Na(a,ie,fi);return li.top+=se,li.bottom+=se,Vo(li,x,z,!1)?(li.top<=z&&li.left<=x&&(xn=fi,hn=li),!0):!1},he,be),qn,hr,Ir=!1;if(hn){var $r=x-hn.left<hn.right-x,Pr=$r==Re;Vn=xn+(Pr?0:1),hr=Pr?"after":"before",qn=$r?hn.left:hn.right}else{!Re&&(Vn==be||Vn==he)&&Vn++,hr=Vn==0?"after":Vn==y.text.length?"before":Na(a,ie,Vn-(Re?1:0)).bottom+se<=z==Re?"after":"before";var Wr=aa(a,ze(E,Vn,hr),"line",y,ie);qn=Wr.left,Ir=z<Wr.top?-1:z>=Wr.bottom?1:0}return Vn=ft(y.text,Vn,1),Si(E,Vn,hr,Ir,x-qn)}function ka(a,y,E,x,z,ie,se){var he=Ae(function(Gt){var xn=z[Gt],hn=xn.level!=1;return Vo(aa(a,ze(E,hn?xn.to:xn.from,hn?"before":"after"),"line",y,x),ie,se,!0)},0,z.length-1),be=z[he];if(he>0){var Re=be.level!=1,Lt=aa(a,ze(E,Re?be.from:be.to,Re?"after":"before"),"line",y,x);Vo(Lt,ie,se,!0)&&Lt.top>se&&(be=z[he-1])}return be}function Wa(a,y,E,x,z,ie,se){var he=la(a,y,x,se),be=he.begin,Re=he.end;/\s/.test(y.text.charAt(Re-1))&&Re--;for(var Lt=null,Gt=null,xn=0;xn<z.length;xn++){var hn=z[xn];if(!(hn.from>=Re||hn.to<=be)){var Vn=hn.level!=1,qn=Na(a,x,Vn?Math.min(Re,hn.to)-1:Math.max(be,hn.from)).right,hr=qn<ie?ie-qn+1e9:qn-ie;(!Lt||Gt>hr)&&(Lt=hn,Gt=hr)}}return Lt||(Lt=z[z.length-1]),Lt.from<be&&(Lt={from:be,to:Lt.to,level:Lt.level}),Lt.to>Re&&(Lt={from:Lt.from,to:Re,level:Lt.level}),Lt}var xa;function Ca(a){if(a.cachedTextHeight!=null)return a.cachedTextHeight;if(xa==null){xa=ot("pre",null,"CodeMirror-line-like");for(var y=0;y<49;++y)xa.appendChild(document.createTextNode("x")),xa.appendChild(ot("br"));xa.appendChild(document.createTextNode("x"))}yt(a.measure,xa);var E=xa.offsetHeight/50;return E>3&&(a.cachedTextHeight=E),zt(a.measure),E||1}function $a(a){if(a.cachedCharWidth!=null)return a.cachedCharWidth;var y=ot("span","xxxxxxxxxx"),E=ot("pre",[y],"CodeMirror-line-like");yt(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/$a(a.display)-3);return function(z){if(Un(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&&An(x,z)})}function Ja(a,y,E,x){var z=a.display;if(!E&&st(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 be=Ko(a,ie,se),Re;if(x&&be.xRel>0&&(Re=sn(a.doc,be.line).text).length==be.ch){var Lt=Ne(Re,Re.length,a.options.tabSize)-Re.length;be=ze(be.line,Math.max(0,Math.round((ie-Za(a.display).left)/$a(a.display))-Lt))}return be}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&&$n(a.doc,y)<z.viewTo&&Va(a);else if(E<=z.viewFrom)mr&&Mn(a.doc,E+x)>z.viewFrom?Va(a):(z.viewFrom+=x,z.viewTo+=x);else if(y<=z.viewFrom&&E>=z.viewTo)Va(a);else if(y<=z.viewFrom){var ie=$l(a,E,E+x,1);ie?(z.view=z.view.slice(ie.index),z.viewFrom=ie.lineN,z.viewTo+=x):Va(a)}else if(E>=z.viewTo){var se=$l(a,y,y,-1);se?(z.view=z.view.slice(0,se.index),z.viewTo=se.lineN):Va(a)}else{var he=$l(a,y,y,-1),be=$l(a,E,E+x,1);he&&be?(z.view=z.view.slice(0,he.index).concat(qi(a,he.lineN,be.lineN)).concat(z.view.slice(be.index)),z.viewTo+=x):Va(a)}var Re=z.externalMeasured;Re&&(E<Re.lineN?Re.lineN+=x:y<Re.lineN+Re.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=[]);Pt(se,E)==-1&&se.push(E)}}}function Va(a){a.display.viewFrom=a.display.viewTo=a.doc.first,a.display.view=[],a.display.viewOffset=0}function $l(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,be=0;be<z;be++)he+=se[be].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(;$n(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 be=he.empty();(be||a.options.showCursorWhenSelecting)&&js(a,he.head,z),be||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(ot("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(ot("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 Fl(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,be=Math.max(x.sizerWidth,za(a)-x.sizer.offsetLeft)-se.right,Re=z.direction=="ltr";function Lt(Pr,Wr,fi,li){Wr<0&&(Wr=0),Wr=Math.round(Wr),li=Math.round(li),ie.appendChild(ot("div",null,"CodeMirror-selected","position: absolute; left: "+Pr+`px;
|
|
|
top: `+Wr+"px; width: "+(fi==null?be-Pr:fi)+`px;
|
|
|
height: `+(li-Wr)+"px"))}function Gt(Pr,Wr,fi){var li=sn(z,Pr),Ai=li.text.length,go,ra;function Ro(Go,Oa){return nl(a,ze(Pr,Go),"div",li,Oa)}function La(Go,Oa,fa){var qo=ko(a,li,null,Go),Xo=Oa=="ltr"==(fa=="after")?"left":"right",Fo=fa=="after"?qo.begin:qo.end-(/\s/.test(li.text.charAt(qo.end-1))?2:1);return Ro(Fo,Xo)[Xo]}var Pa=we(li,z.direction);return ke(Pa,Wr||0,fi==null?Ai:fi,function(Go,Oa,fa,qo){var Xo=fa=="ltr",Fo=Ro(Go,Xo?"left":"right"),Da=Ro(Oa-1,Xo?"right":"left"),hs=Wr==null&&Go==0,kl=fi==null&&Oa==Ai,ba=qo==0,cl=!Pa||qo==Pa.length-1;if(Da.top-Fo.top<=3){var ia=(Re?hs:kl)&&ba,Ec=(Re?kl:hs)&&cl,bl=ia?he:(Xo?Fo:Da).left,Xl=Ec?be:(Xo?Da:Fo).right;Lt(bl,Fo.top,Xl-bl,Fo.bottom)}else{var Yl,Sa,ps,Ic;Xo?(Yl=Re&&hs&&ba?he:Fo.left,Sa=Re?be:La(Go,fa,"before"),ps=Re?he:La(Oa,fa,"after"),Ic=Re&&kl&&cl?be:Da.right):(Yl=Re?La(Go,fa,"before"):he,Sa=!Re&&hs&&ba?be:Fo.right,ps=!Re&&kl&&cl?he:Da.left,Ic=Re?La(Oa,fa,"after"):be),Lt(Yl,Fo.top,Sa-Yl,Fo.bottom),Fo.bottom<Da.top&&Lt(he,Fo.bottom,null,Da.top),Lt(ps,Da.top,Ic-ps,Da.bottom)}(!go||Fl(Fo,go)<0)&&(go=Fo),Fl(Da,go)<0&&(go=Da),(!ra||Fl(Fo,ra)<0)&&(ra=Fo),Fl(Da,ra)<0&&(ra=Da)}),{start:go,end:ra}}var xn=y.from(),hn=y.to();if(xn.line==hn.line)Gt(xn.line,xn.ch,hn.ch);else{var Vn=sn(z,xn.line),qn=sn(z,hn.line),hr=kn(Vn)==kn(qn),Ir=Gt(xn.line,xn.ch,hr?Vn.text.length+1:null).end,$r=Gt(hn.line,hr?0:null,hn.ch).start;hr&&(Ir.top<$r.top-2?(Lt(Ir.right,Ir.top,null,Ir.bottom),Lt(he,$r.top,$r.left,$r.bottom)):Lt(Ir.right,Ir.top,$r.left-Ir.right,Ir.bottom)),Ir.bottom<$r.top&&Lt(he,Ir.bottom,null,$r.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||(qt(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(),Ie&&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&&(qt(a,"blur",a,y),a.state.focused=!1,nt(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(Ee&&xe<8){var be=z.node.offsetTop+z.node.offsetHeight;se=be-E,E=be}else{var Re=z.node.getBoundingClientRect();se=Re.bottom-Re.top,!ie&&z.text.firstChild&&(he=z.text.firstChild.getBoundingClientRect().right-Re.left-1)}var Lt=z.line.height-se;if((Lt>.005||Lt<-.005)&&(An(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 xn=Math.ceil(he/$a(a.display));xn>a.display.maxLineLength&&(a.display.maxLineLength=xn,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=Ot(y,x),se=Ot(y,z);if(E&&E.ensure){var he=E.ensure.from.line,be=E.ensure.to.line;he<ie?(ie=he,se=Ot(y,Jr(sn(y,he))+a.wrapper.clientHeight)):Math.min(be,y.lastLine())>=se&&(ie=Ot(y,Jr(sn(y,be))-a.wrapper.clientHeight),se=be)}return{from:ie,to:Math.max(se,ie+1)}}function oc(a,y){if(!Et(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&&!Rt){var ie=ot("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),be=!E||E==y?he:aa(a,E);z={left:Math.min(he.left,be.left),top:Math.min(he.top,be.top)-x,right:Math.max(he.left,be.left),bottom:Math.max(he.bottom,be.bottom)+x};var Re=Cs(a,z),Lt=a.doc.scrollTop,Gt=a.doc.scrollLeft;if(Re.scrollTop!=null&&(ns(a,Re.scrollTop),Math.abs(a.doc.scrollTop-Lt)>1&&(se=!0)),Re.scrollLeft!=null&&(Il(a,Re.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),be=y.top<x,Re=y.bottom>he-x;if(y.top<z)se.scrollTop=be?0:y.top;else if(y.bottom>z+ie){var Lt=Math.min(y.top,(Re?he:y.bottom)-ie);Lt!=z&&(se.scrollTop=Lt)}var Gt=a.options.fixedGutter?0:E.gutters.offsetWidth,xn=a.curOp&&a.curOp.scrollLeft!=null?a.curOp.scrollLeft:E.scroller.scrollLeft-Gt,hn=za(a)-E.gutters.offsetWidth,Vn=y.right-y.left>hn;return Vn&&(y.right=y.left+hn),y.left<10?se.scrollLeft=0:y.left<xn?se.scrollLeft=Math.max(0,y.left+Gt-(Vn?0:10)):y.right>hn+xn-3&&(se.scrollLeft=y.right+(Vn?0:10)-hn),se}function Vs(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);_s(a,E,x,y.margin)}}function _s(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,_e(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=ot("div",[ot("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),z=this.horiz=ot("div",[ot("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,Ee&&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=Oe&&!Le?"12px":"18px";this.horiz.style.height=this.vert.style.width=a,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new me,this.disableVert=new me},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&&nt(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=Jl(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==Ge();a.preparedSelection&&y.display.input.showSelection(a.preparedSelection,E),(a.updatedDisplay||a.startHeight!=y.doc.height)&&Hl(y,a.barMeasure),a.updatedDisplay&&pe(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&&_a(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||qt(ie[he],"hide");if(se)for(var be=0;be<se.length;++be)se[be].lines.length&&qt(se[be],"unhide");E.wrapper.offsetHeight&&(x.scrollTop=y.display.scroller.scrollTop),a.changeObjs&&qt(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 Jo(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 _o(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,gt(Ys,a))}function Ys(a){var y=a.doc;if(!(y.highlightFrontier>=a.display.viewTo)){var E=+new Date+a.options.workTime,x=lr(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?Xn(y.mode,x.state):null,be=Tn(a,ie,x,!0);he&&(x.state=he),ie.styles=be.styles;var Re=ie.styleClasses,Lt=be.classes;Lt?ie.styleClasses=Lt:Re&&(ie.styleClasses=null);for(var Gt=!se||se.length!=ie.styles.length||Re!=Lt&&(!Re||!Lt||Re.bgClass!=Lt.bgClass||Re.textClass!=Lt.textClass),xn=0;!Gt&&xn<se.length;++xn)Gt=se[xn]!=ie.styles[xn];Gt&&z.push(x.line),ie.stateAfter=x.save(),x.nextLine()}else ie.text.length<=a.options.maxHighlightLength&&dr(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){Kt(a,y)&&this.events.push(arguments)},rs.prototype.finish=function(){for(var a=0;a<this.events.length;a++)qt.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=Ge();if(!y||!lt(a.display.lineDiv,y))return null;var E={activeElt:y};if(window.getSelection){var x=window.getSelection();x.anchorNode&&x.extend&<(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==Ge())&&(a.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(a.activeElt.nodeName)&&a.anchorNode&<(document.body,a.anchorNode)&<(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 Va(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)&&(Va(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=$n(a.doc,ie),se=Mn(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=Jr(sn(a.doc,E.viewFrom)),a.display.mover.style.top=E.viewOffset+"px";var be=bs(a);if(!he&&be==0&&!y.force&&E.renderedView==E.view&&(E.updateLineNumbers==null||E.updateLineNumbers>=E.viewTo))return!1;var Re=hc(a);return be>4&&(E.lineDiv.style.display="none"),mc(a,E.updateLineNumbers,y.dims),be>4&&(E.lineDiv.style.display=""),E.renderedView=E.view,pc(Re),zt(E.cursorDiv),zt(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 _a(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),pe(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),_a(a,E);var x=Zl(a);pl(a),Hl(a,x),pe(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(Vn){var qn=Vn.nextSibling;return Ie&&Oe&&a.display.currentWheelTarget==Vn?Vn.style.display="none":Vn.parentNode.removeChild(Vn),qn}for(var be=x.view,Re=x.viewFrom,Lt=0;Lt<be.length;Lt++){var Gt=be[Lt];if(!Gt.hidden)if(!Gt.node||Gt.node.parentNode!=ie){var xn=ui(a,Gt,Re,E);ie.insertBefore(xn,se)}else{for(;se!=Gt.node;)se=he(se);var hn=z&&y!=null&&y<=Re&&Gt.lineNumber;Gt.changes&&(Pt(Gt.changes,"gutter")>-1&&(hn=!1),ha(a,Gt,Re,E)),hn&&(zt(Gt.lineNumber),Gt.lineNumber.appendChild(document.createTextNode(vt(a.options,Re)))),se=Gt.node.nextSibling}Re+=Gt.size}for(;se;)se=he(se)}function ve(a){var y=a.gutters.offsetWidth;a.sizer.style.marginLeft=y+"px"}function pe(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 _e(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 be=0;be<he.length;be++)he[be].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(ot("div",[ot("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 Nt(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 jt(a){var y=a.gutters,E=a.gutterSpecs;zt(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(ot("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){jt(a.display),sa(a),_e(a)}function en(a,y,E,x){var z=this;this.input=E,z.scrollbarFiller=ot("div",null,"CodeMirror-scrollbar-filler"),z.scrollbarFiller.setAttribute("cm-not-content","true"),z.gutterFiller=ot("div",null,"CodeMirror-gutter-filler"),z.gutterFiller.setAttribute("cm-not-content","true"),z.lineDiv=ct("div",null,"CodeMirror-code"),z.selectionDiv=ot("div",null,null,"position: relative; z-index: 1"),z.cursorDiv=ot("div",null,"CodeMirror-cursors"),z.measure=ot("div",null,"CodeMirror-measure"),z.lineMeasure=ot("div",null,"CodeMirror-measure"),z.lineSpace=ct("div",[z.measure,z.lineMeasure,z.selectionDiv,z.cursorDiv,z.lineDiv],null,"position: relative; outline: none");var ie=ct("div",[z.lineSpace],"CodeMirror-lines");z.mover=ot("div",[ie],null,"position: relative"),z.sizer=ot("div",[z.mover],"CodeMirror-sizer"),z.sizerWidth=null,z.heightForcer=ot("div",null,null,"position: absolute; height: "+Ut+"px; width: 1px;"),z.gutters=ot("div",null,"CodeMirror-gutters"),z.lineGutter=null,z.scroller=ot("div",[z.sizer,z.heightForcer,z.gutters],"CodeMirror-scroll"),z.scroller.setAttribute("tabIndex","-1"),z.wrapper=ot("div",[z.scrollbarFiller,z.gutterFiller,z.scroller],"CodeMirror"),Ee&&xe<8&&(z.gutters.style.zIndex=-1,z.scroller.style.paddingRight=0),!Ie&&!(b&&Te)&&(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=Nt(x.gutters,x.lineNumbers),jt(z),E.init(z)}var fn=0,un=null;Ee?un=-.53:b?un=15:Ce?un=-.7:tt&&(un=-1/3);function Ln(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 Pn(a){var y=Ln(a);return y.x*=un,y.y*=un,y}function En(a,y){var E=Ln(y),x=E.x,z=E.y,ie=a.display,se=ie.scroller,he=se.scrollWidth>se.clientWidth,be=se.scrollHeight>se.clientHeight;if(x&&he||z&&be){if(z&&Oe&&Ie){e:for(var Re=y.target,Lt=ie.view;Re!=se;Re=Re.parentNode)for(var Gt=0;Gt<Lt.length;Gt++)if(Lt[Gt].node==Re){a.display.currentWheelTarget=Re;break e}}if(x&&!b&&!ue&&un!=null){z&&be&&ns(a,Math.max(0,se.scrollTop+z*un)),Il(a,Math.max(0,se.scrollLeft+x*un)),(!z||z&&be)&&ht(y),ie.wheelStartX=null;return}if(z&&un!=null){var xn=z*un,hn=a.doc.scrollTop,Vn=hn+ie.wrapper.clientHeight;xn<0?hn=Math.max(0,hn+xn-50):Vn=Math.min(a.doc.height,Vn+xn+50),Es(a,{top:hn,bottom:Vn})}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,hr=se.scrollTop-ie.wheelStartY,Ir=hr&&ie.wheelDY&&hr/ie.wheelDY||qn&&ie.wheelDX&&qn/ie.wheelDX;ie.wheelStartX=ie.wheelStartY=null,Ir&&(un=(un*fn+Ir)/(fn+1),++fn)}},200)):(ie.wheelDX+=x,ie.wheelDY+=z))}}var yn=function(a,y){this.ranges=a,this.primIndex=y};yn.prototype.primary=function(){return this.ranges[this.primIndex]},yn.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},yn.prototype.deepCopy=function(){for(var a=[],y=0;y<this.ranges.length;y++)a[y]=new vn(It(this.ranges[y].anchor),It(this.ranges[y].head));return new yn(a,this.primIndex)},yn.prototype.somethingSelected=function(){for(var a=0;a<this.ranges.length;a++)if(!this.ranges[a].empty())return!0;return!1},yn.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 vn=function(a,y){this.anchor=a,this.head=y};vn.prototype.from=function(){return Vt(this.anchor,this.head)},vn.prototype.to=function(){return $t(this.anchor,this.head)},vn.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function nr(a,y,E){var x=a&&a.options.selectionsMayTouch,z=y[E];y.sort(function(xn,hn){return bt(xn.from(),hn.from())}),E=Pt(y,z);for(var ie=1;ie<y.length;ie++){var se=y[ie],he=y[ie-1],be=bt(he.to(),se.from());if(x&&!se.empty()?be>0:be>=0){var Re=Vt(he.from(),se.from()),Lt=$t(he.to(),se.to()),Gt=he.empty()?se.from()==se.head:he.from()==he.head;ie<=E&&--E,y.splice(--ie,2,new vn(Gt?Lt:Re,Gt?Re:Lt))}}return new yn(y,E)}function Wn(a,y){return new yn([new vn(a,y||a)],0)}function rr(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 ur(a,y){if(bt(a,y.from)<0)return a;if(bt(a,y.to)<=0)return rr(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+=rr(y).ch-y.to.ch),ze(E,x)}function ir(a,y){for(var E=[],x=0;x<a.sel.ranges.length;x++){var z=a.sel.ranges[x];E.push(new vn(ur(z.anchor,y),ur(z.head,y)))}return nr(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],be=vr(he.from,z,ie),Re=vr(rr(he),z,ie);if(z=he.to,ie=Re,E=="around"){var Lt=a.sel.ranges[se],Gt=bt(Lt.head,Lt.anchor)<0;x[se]=new vn(Gt?Re:be,Gt?be:Re)}else x[se]=new vn(be,be)}return new yn(x,a.sel.primIndex)}function Nr(a){a.doc.mode=Fn(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($r){return E?E[$r]:null}function ie($r,Pr,Wr){Ii($r,Pr,Wr,x),Mi($r,"change",$r,y)}function se($r,Pr){for(var Wr=[],fi=$r;fi<Pr;++fi)Wr.push(new Ni(Re[fi],z(fi),x));return Wr}var he=y.from,be=y.to,Re=y.text,Lt=sn(a,he.line),Gt=sn(a,be.line),xn=qe(Re),hn=z(Re.length-1),Vn=be.line-he.line;if(y.full)a.insert(0,se(0,Re.length)),a.remove(Re.length,a.size-Re.length);else if(mi(a,y)){var qn=se(0,Re.length-1);ie(Gt,Gt.text,hn),Vn&&a.remove(he.line,Vn),qn.length&&a.insert(he.line,qn)}else if(Lt==Gt)if(Re.length==1)ie(Lt,Lt.text.slice(0,he.ch)+xn+Lt.text.slice(be.ch),hn);else{var hr=se(1,Re.length-1);hr.push(new Ni(xn+Lt.text.slice(be.ch),hn,x)),ie(Lt,Lt.text.slice(0,he.ch)+Re[0],z(0)),a.insert(he.line+1,hr)}else if(Re.length==1)ie(Lt,Lt.text.slice(0,he.ch)+Re[0]+Gt.text.slice(be.ch),z(0)),a.remove(he.line+1,Vn);else{ie(Lt,Lt.text.slice(0,he.ch)+Re[0],z(0)),ie(Gt,xn+Gt.text.slice(be.ch),hn);var Ir=se(1,Re.length-1);Vn>1&&a.remove(he.line+1,Vn-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 be=z.linked[he];if(be.doc!=ie){var Re=se&&be.sharedHist;E&&!Re||(y(be.doc,Re),x(be.doc,z,Re))}}}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),kr(a),a.options.lineWrapping||pi(a),a.options.mode=y.modeOption,sa(a)}function kr(a){(a.doc.direction=="rtl"?de:nt)(a.display.lineDiv,"CodeMirror-rtl")}function Br(a){ma(a,function(){kr(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 fr(a,y){var E={from:It(y.from),to:rr(y),text:bn(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 Rr(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=Rr(z,z.lastOp==x)))he=qe(se.changes),bt(y.from,y.to)==0&&bt(y.from,he.to)==0?he.to=rr(y):se.changes.push(fr(a,y));else{var be=qe(z.done);for((!be||!be.ranges)&&Oi(a.sel,z.done),se={changes:[fr(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||qt(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 be=se[he],Re=0;Re<ie.length;++Re)if(ie[Re].marker==be.marker)continue e;ie.push(be)}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?yn.prototype.deepCopy.call(ie):ie);continue}var se=ie.changes,he=[];x.push({changes:he});for(var be=0;be<se.length;++be){var Re=se[be],Lt=void 0;if(he.push({from:Re.from,to:Re.to,text:Re.text}),y)for(var Gt in Re)(Lt=Gt.match(/^spans_(\d+)$/))&&Pt(y,Number(Lt[1]))>-1&&(qe(he)[Gt]=Re[Gt],delete Re[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 vn(z,y)}else return new vn(E||y,y)}function Ti(a,y,E,x,z){z==null&&(z=a.cm&&(a.cm.display.shift||a.extend)),Tr(a,new yn([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=nr(a.cm,x,a.sel.primIndex);Tr(a,se,E)}function Bo(a,y,E,x){var z=a.sel.ranges.slice(0);z[y]=E,Tr(a,nr(a.cm,z,a.sel.primIndex),x)}function jr(a,y,E,x){Tr(a,Wn(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 vn(xt(a,z[ie].anchor),xt(a,z[ie].head))},origin:E&&E.origin};return qt(a,"beforeSelectionChange",a,x),a.cm&&qt(a.cm,"beforeSelectionChange",a.cm,x),x.ranges!=y.ranges?nr(a.cm,x.ranges,x.ranges.length-1):y}function Fr(a,y,E){var x=a.history.done,z=qe(x);z&&z.ranges?(x[x.length-1]=y,Ri(a,y,E)):Tr(a,y,E)}function Tr(a,y,E){Ri(a,y,E),wi(a,a.sel,a.cm?a.cm.curOp.id:NaN,E)}function Ri(a,y,E){(Kt(a,"beforeSelectionChange")||a.cm&&Kt(a.cm,"beforeSelectionChange"))&&(y=di(a,y,E));var x=E&&E.bias||(bt(y.primary().head,a.sel.primary().head)<0?-1:1);_i(a,to(a,y,x,!0)),!(E&&E.scroll===!1)&&a.cm&&El(a.cm)}function _i(a,y){y.equals(a.sel)||(a.sel=y,a.cm&&(a.cm.curOp.updateInput=1,a.cm.curOp.selectionChanged=!0,on(a.cm)),Mi(a,"cursorActivity",a))}function co(a){_i(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],be=Ao(a,se.anchor,he&&he.anchor,E,x),Re=Ao(a,se.head,he&&he.head,E,x);(z||be!=se.anchor||Re!=se.head)&&(z||(z=y.ranges.slice(0,ie)),z[ie]=new vn(be,Re))}return z?nr(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],be=he.marker,Re="selectLeft"in be?!be.selectLeft:be.inclusiveLeft,Lt="selectRight"in be?!be.selectRight:be.inclusiveRight;if((he.from==null||(Re?he.from<=y.ch:he.from<y.ch))&&(he.to==null||(Lt?he.to>=y.ch:he.to>y.ch))){if(z&&(qt(be,"beforeCursorEnter"),be.explicitlyCleared))if(ie.markedSpans){--se;continue}else break;if(!be.atomic)continue;if(E){var Gt=be.find(x<0?1:-1),xn=void 0;if((x<0?Lt:Re)&&(Gt=Kr(a,Gt,-x,Gt&&Gt.line==y.line?ie:null)),Gt&&Gt.line==y.line&&(xn=bt(Gt,E))&&(x<0?xn<0:xn>0))return Eo(a,Gt,y,x,z)}var hn=be.find(x<0?-1:1);return(x<0?Re:Lt)&&(hn=Kr(a,hn,x,hn.line==y.line?ie:null)),hn?Eo(a,hn,y,x,z):null}}return y}function Ao(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)}),qt(a,"beforeChange",a,x),a.cm&&qt(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 Jo(a.cm,eo)(a,y,E);if(a.cm.state.suppressEdits)return}if(!((Kt(a,"beforeChange")||a.cm&&Kt(a.cm,"beforeChange"))&&(y=Gi(a,y,!0),!y))){var x=yr&&!E&&$i(a,y.from,y.to);if(x)for(var z=x.length-1;z>=0;--z)Ji(a,{from:x[z].from,to:x[z].to,text:z?[""]:y.text,origin:y.origin});else Ji(a,y)}}function Ji(a,y){if(!(y.text.length==1&&y.text[0]==""&&bt(y.from,y.to)==0)){var E=ir(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&&Pt(x,z.history)==-1&&($o(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,be=y=="undo"?z.undone:z.done,Re=0;Re<he.length&&(ie=he[Re],!(E?ie.ranges&&!ie.equals(a.sel):!ie.ranges));Re++);if(Re!=he.length){for(z.lastOrigin=z.lastSelOrigin=null;;)if(ie=he.pop(),ie.ranges){if(Oi(ie,be),E&&!ie.equals(a.sel)){Tr(a,ie,{clearRedo:!1});return}se=ie}else if(x){he.push(ie);return}else break;var Lt=[];Oi(se,be),be.push({changes:Lt,generation:z.generation}),z.generation=ie.generation||++z.maxGeneration;for(var Gt=Kt(a,"beforeChange")||a.cm&&Kt(a.cm,"beforeChange"),xn=function(qn){var hr=ie.changes[qn];if(hr.origin=y,Gt&&!Gi(a,hr,!1))return he.length=0,{};Lt.push(fr(a,hr));var Ir=qn?ir(a,hr):qe(he);va(a,hr,Ir,ho(a,hr)),!qn&&a.cm&&a.cm.scrollIntoView({from:hr.from,to:rr(hr)});var $r=[];zr(a,function(Pr,Wr){!Wr&&Pt($r,Pr.history)==-1&&($o(Pr.history,hr),$r.push(Pr.history)),va(Pr,hr,null,ho(Pr,hr))})},hn=ie.changes.length-1;hn>=0;--hn){var Vn=xn(hn);if(Vn)return Vn.v}}}}function Io(a,y){if(y!=0&&(a.first+=y,a.sel=new yn(tn(a.sel.ranges,function(z){return new vn(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 Jo(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=bn(a,y.from,y.to),E||(E=ir(a,y)),a.cm?po(a.cm,y,x):Gr(a,y,x),Ri(a,E,ge),a.cantEdit&&Ao(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,be=ie.line;a.options.lineWrapping||(be=ut(kn(sn(x,ie.line))),x.iter(be,se.line+1,function(hn){if(hn==z.maxLine)return he=!0,!0})),x.sel.contains(y.from,y.to)>-1&&on(a),Gr(x,y,E,ys(a)),a.options.lineWrapping||(x.iter(be,ie.line+y.text.length,function(hn){var Vn=Ei(hn);Vn>z.maxLineLength&&(z.maxLine=hn,z.maxLineLength=Vn,z.maxLineChanged=!0,he=!1)}),he&&(a.curOp.updateMaxLine=!0)),Yn(x,ie.line),jl(a,400);var Re=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,Re);var Lt=Kt(a,"changes"),Gt=Kt(a,"change");if(Gt||Lt){var xn={from:ie,to:se,text:y.text,removed:y.removed,origin:y.origin};Gt&&Mi(a,"change",a,xn),Lt&&(a.curOp.changeObjs||(a.curOp.changeObjs=[])).push(xn)}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 be=0;be<ie.changes.length;++be){var Re=ie.changes[be];if(E<Re.from.line)Re.from=ze(Re.from.line+x,Re.from.ch),Re.to=ze(Re.to.line+x,Re.to.ch);else if(y<=Re.to.line){se=!1;break}}se||(a.splice(0,z+1),z=0)}}function $o(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,St(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 be=new Hi(z.lines.slice(he,he+=25));z.height-=be.height,this.children.splice(++x,0,be),be.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=Pt(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);An(E,Math.max(0,E.height-ie)),a&&(ma(a,function(){Qo(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&&(Un(this.doc,x)||An(x,x.height+z),E&&ma(E,function(){E.curOp.forceUpdate=!0,Qo(E,x,z),Mi(E,"lineWidgetChanged",E,a,ut(x))}))},He(Xi);function Qo(a,y,E){Jr(y)<(a.curOp&&a.curOp.scrollTop||a.doc.scrollTop)&&Vs(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&&!Un(a,se)){var be=Jr(se)<a.scrollTop;An(se,se.height+oa(z)),be&&Vs(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),Kt(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&&!Un(this.doc,se)&&a&&An(se,Ca(a.display))}if(a&&this.collapsed&&!a.options.lineWrapping)for(var be=0;be<this.lines.length;++be){var Re=kn(this.lines[be]),Lt=Ei(Re);Lt>a.display.maxLineLength&&(a.display.maxLine=Re,a.display.maxLineLength=Lt,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,!Un(E.doc,z)&&E.height!=null){var he=E.height;E.height=null;var be=oa(E)-he;be&&An(z,z.height+be)}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||Pt(y.maybeHiddenMarkers,this)==-1)&&(y.maybeUnhiddenMarkers||(y.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(a)},ga.prototype.detachLine=function(a){if(this.lines.splice(Pt(this.lines,a),1),!this.lines.length&&this.doc.cm){var y=this.doc.cm.curOp;(y.maybeHiddenMarkers||(y.maybeHiddenMarkers=[])).push(this)}},He(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 Jo(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=ct("span",[ie.replacedWith],"CodeMirror-widget"),x.handleMouseEvents||ie.widgetNode.setAttribute("cm-ignore-events","true"),x.insertLeft&&(ie.widgetNode.insertLeft=!0)),ie.collapsed){if(Kn(a,y.line,y,E,ie)||y.line!=E.line&&Kn(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,be=a.cm,Re;if(a.iter(he,E.line+1,function(Gt){be&&ie.collapsed&&!be.options.lineWrapping&&kn(Gt)==be.display.maxLine&&(Re=!0),ie.collapsed&&he!=y.line&&An(Gt,0),Zr(Gt,new _r(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){Un(a,Gt)&&An(Gt,0)}),ie.clearOnEnter&&Zt(ie,"beforeCursorEnter",function(){return ie.clear()}),ie.readOnly&&(Vr(),(a.history.done.length||a.history.undone.length)&&a.clearHistory()),ie.collapsed&&(ie.id=++ua,ie.atomic=!0),be){if(Re&&(be.curOp.updateMaxLine=!0),ie.collapsed)sa(be,y.line,E.line+1);else if(ie.className||ie.startStyle||ie.endStyle||ie.css||ie.attributes||ie.title)for(var Lt=y.line;Lt<=E.line;Lt++)il(be,Lt,"text");ie.atomic&&co(be.doc),Mi(be,"markerAdded",be,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)},He(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(be){he&&(x.widgetNode=he.cloneNode(!0)),ie.push(Ua(be,xt(be,y),xt(be,E),x,z));for(var Re=0;Re<be.linked.length;++Re)if(be.linked[Re].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 Ba(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(be){return ie.push(be)});for(var se=0;se<z.markers.length;se++){var he=z.markers[se];Pt(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=Wn(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,Wn(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=Hn(this,this.first,this.first+this.size);return a===!1?y:y.join(a||this.lineSeparator())},setValue:_o(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,Wn(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=bn(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(Fe(this,a))return sn(this,a)},getLineNumber:function(a){return ut(a)},getLineHandleVisualStart:function(a){return typeof a=="number"&&(a=sn(this,a)),kn(a)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(a){return 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:_o(function(a,y,E){jr(this,xt(this,typeof a=="number"?ze(a,y||0):a),null,E)}),setSelection:_o(function(a,y,E){jr(this,xt(this,a),xt(this,y||a),E)}),extendSelection:_o(function(a,y,E){Ti(this,xt(this,a),y&&xt(this,y),E)}),extendSelections:_o(function(a,y){wo(this,Ft(this,a),y)}),extendSelectionsBy:_o(function(a,y){var E=tn(this.sel.ranges,a);wo(this,Ft(this,E),y)}),setSelections:_o(function(a,y,E){if(a.length){for(var x=[],z=0;z<a.length;z++)x[z]=new vn(xt(this,a[z].anchor),xt(this,a[z].head));y==null&&(y=Math.min(a.length-1,this.sel.primIndex)),Tr(this,nr(this.cm,x,y),E)}}),addSelection:_o(function(a,y,E){var x=this.sel.ranges.slice(0);x.push(new vn(xt(this,a),xt(this,y||a))),Tr(this,nr(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=bn(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=bn(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:_o(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),be=x.length-1;be>=0;be--)eo(this,x[be]);he?Fr(this,he):this.cm&&El(this.cm)}),undo:_o(function(){zo(this,"undo")}),redo:_o(function(){zo(this,"redo")}),undoSelection:_o(function(){zo(this,"undo",!0)}),redoSelection:_o(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:_o(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:_o(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(!Fe(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:_o(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(Je(E).test(x[z]))return!1;x[z]+=" "+E}return!0})}),removeLineClass:_o(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(Je(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:_o(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 be=se[he];!(be.to!=null&&z==a.line&&a.ch>=be.to||be.from==null&&z!=a.line||be.from!=null&&z==y.line&&be.from>=y.ch)&&(!E||E(be.marker))&&x.push(be.marker.parent||be.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(Hn(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(Hn(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}],Ba(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:_o(function(a){a!="rtl"&&(a="ltr"),a!=this.direction&&(this.direction=a,this.iter(function(y){return y.order=null}),this.cm&&Br(this.cm))})}),ao.prototype.eachLine=ao.prototype.iter;var Ea=0;function al(a){var y=this;if(is(y),!(Et(y,a)||Yo(y.display,a))){ht(a),Ee&&(Ea=+new Date);var E=Ja(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&&Jo(y,function(){E=xt(y.doc,E);var hn={from:E,to:E,text:y.doc.splitLines(ie.filter(function(Vn){return Vn!=null}).join(y.doc.lineSeparator())),origin:"paste"};eo(y.doc,hn),Fr(y.doc,Wn(xt(y.doc,E),xt(y.doc,rr(hn))))})()},be=function(hn,Vn){if(y.options.allowDropFileTypes&&Pt(y.options.allowDropFileTypes,hn.type)==-1){he();return}var qn=new FileReader;qn.onerror=function(){return he()},qn.onload=function(){var hr=qn.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(hr)){he();return}ie[Vn]=hr,he()},qn.readAsText(hn)},Re=0;Re<x.length;Re++)be(x[Re],Re);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 Lt=a.dataTransfer.getData("Text");if(Lt){var Gt;if(y.state.draggingText&&!y.state.draggingText.copy&&(Gt=y.listSelections()),Ri(y.doc,Wn(E,E)),Gt)for(var xn=0;xn<Gt.length;++xn)zi(y.doc,"",Gt[xn].anchor,Gt[xn].head,"drag");y.replaceSelection(Lt,"around","paste"),y.display.input.focus()}}catch(hn){}}}}function Ga(a,y){if(Ee&&(!a.state.draggingText||+new Date-Ea<100)){Me(y);return}if(!(Et(a,y)||Yo(a.display,y))&&(y.dataTransfer.setData("Text",a.getSelection()),y.dataTransfer.effectAllowed="copyMove",y.dataTransfer.setDragImage&&!tt)){var E=ot("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=Ja(a,y);if(E){var x=document.createDocumentFragment();js(a,E,x),a.display.dragCursor||(a.display.dragCursor=ot("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),a.display.lineSpace.insertBefore(a.display.dragCursor,a.display.cursorDiv)),yt(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=Oe?Ho.macDefault:Ho.pcDefault;function Fa(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(" "),Fa),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 be=y[he];if(!be)y[he]=se;else if(be!=se)throw new Error("Inconsistent bindings for "+he)}delete a[E]}for(var Re in y)a[Re]=y[Re];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),(je?y.metaKey:y.ctrlKey)&&x!="Ctrl"&&(a="Ctrl-"+a),(je?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=ft(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),be=he?"after":"before",Re;if(se.level>0||y.doc.direction=="rtl"){var Lt=tl(y,E);Re=z<0?E.text.length-1:0;var Gt=Na(y,Lt,Re).top;Re=Ae(function(xn){return Na(y,Lt,xn).top==Gt},z<0==(se.level==1)?se.from:se.to-1,Re),be=="before"&&(Re=Os(E,Re,1))}else Re=z<0?se.to:se.from;return new ze(x,Re,be)}}return new ze(x,z<0?E.text.length:0,z<0?"before":"after")}function Js(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=Ye(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,$r){return Os(y,Ir instanceof ze?Ir.ch:Ir,$r)},be,Re=function(Ir){return a.options.lineWrapping?(be=be||tl(a,y),ko(a,y,be,Ir)):{begin:0,end:y.text.length}},Lt=Re(E.sticky=="before"?he(E,-1):E.ch);if(a.doc.direction=="rtl"||se.level==1){var Gt=se.level==1==x<0,xn=he(E,Gt?1:-1);if(xn!=null&&(Gt?xn<=se.to&&xn<=Lt.end:xn>=se.from&&xn>=Lt.begin)){var hn=Gt?"before":"after";return new ze(E.line,xn,hn)}}var Vn=function(Ir,$r,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+=$r){var fi=z[Ir],li=$r>0==(fi.level!=1),Ai=li?Pr.begin:he(Pr.end,-1);if(fi.from<=Ai&&Ai<fi.to||(Ai=li?fi.from:he(fi.to,-1),Pr.begin<=Ai&&Ai<Pr.end))return Wr(Ai,li)}},qn=Vn(ie+x,x,Lt);if(qn)return qn;var hr=x>0?Lt.end:he(Lt.begin,-1);return hr!=null&&!(x>0&&hr==y.text.length)&&(qn=Vn(x>0?0:z.length-1,x,Re(hr)),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")},rt)},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")},rt)},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},rt)},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=Ne(a.getLine(ie.line),ie.ch,x);y.push(Bt(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 vn(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=kn(E);return x!=E&&(y=ut(x)),Ds(!0,a,x,y,1)}function vc(a,y){var E=sn(a.doc,y),x=or(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 Vl(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)!=kt}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 me;function _l(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")&&(ht(E),xs(a)),!!z}function Ul(a,y){var E=vl(y,!0);return E?y.shiftKey&&!a.state.keySeq?_l(a,"Shift-"+E,y,function(x){return Vl(a,x,!0)})||_l(a,E,y,function(x){if(typeof x=="string"?/^go[A-Z]/.test(x):x.motion)return Vl(a,x)}):_l(a,E,y,function(x){return Vl(a,x)}):!1}function ks(a,y,E){return _l(a,"'"+E+"'",y,function(x){return Vl(a,x,!0)})}var Gl=null;function Bs(a){var y=this;if(!(a.target&&a.target!=y.display.input.getField())&&(y.curOp.focus=Ge(),!Et(y,a))){Ee&&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&&(Oe?a.metaKey:a.ctrlKey)&&y.replaceSelection("",null,"cut")),b&&!Oe&&!x&&E==46&&a.shiftKey&&!a.ctrlKey&&document.execCommand&&document.execCommand("cut"),E==18&&!/\bCodeMirror-crosshair\b/.test(y.display.lineDiv.className)&&Qs(y)}}function Qs(a){var y=a.display.lineDiv;de(y,"CodeMirror-crosshair");function E(x){(x.keyCode==18||!x.altKey)&&(nt(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),Et(this,a)}function Rs(a){var y=this;if(!(a.target&&a.target!=y.display.input.getField())&&!(Yo(y.display,a)||Et(y,a)||a.ctrlKey&&!a.altKey||Oe&&a.metaKey)){var E=a.keyCode,x=a.charCode;if(ue&&E==Gl){Gl=null,ht(a);return}if(!(ue&&(!a.which||a.which<10)&&Ul(y,a))){var z=String.fromCharCode(x==null?E:x);z!="\b"&&(ks(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 As(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 $s(a){var y=this,E=y.display;if(!(Et(y,a)||E.activeTouch&&E.input.supportsTouch())){if(E.input.ensurePolled(),E.shift=a.shiftKey,Yo(E,a)){Ie||(E.scroller.draggable=!1,setTimeout(function(){return E.scroller.draggable=!0},100));return}if(!Qa(y,a)){var x=Ja(y,a),z=Ct(a),ie=x?As(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):st(a)==E.scroller&&ht(a):z==2?(x&&Ti(y.doc,x),setTimeout(function(){return E.input.focus()},20)):z==3&&(Be?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,_l(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)!=kt}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=Xe?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=Oe?E.metaKey:E.ctrlKey),z.moveOnDrag==null&&(z.moveOnDrag=!(Oe?E.altKey:E.ctrlKey)),z}function Ui(a,y,E,x){Ee?setTimeout(gt(ic,a),0):a.curOp.focus=Ge();var z=ji(a,E,x),ie=a.doc.sel,se;a.options.dragDrop&&Wt&&!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=Jo(a,function(Re){Ie&&(z.scroller.draggable=!1),a.state.draggingText=!1,nn(z.wrapper.ownerDocument,"mouseup",se),nn(z.wrapper.ownerDocument,"mousemove",he),nn(z.scroller,"dragstart",be),nn(z.scroller,"drop",se),ie||(ht(Re),x.addNew||Ti(a.doc,E,null,null,x.extend),Ie&&!tt||Ee&&xe==9?setTimeout(function(){z.wrapper.ownerDocument.body.focus({preventScroll:!0}),z.input.focus()},20):z.input.focus())}),he=function(Re){ie=ie||Math.abs(y.clientX-Re.clientX)+Math.abs(y.clientY-Re.clientY)>=10},be=function(){return ie=!0};Ie&&(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",be),Zt(z.scroller,"drop",se),Ws(a),setTimeout(function(){return z.input.focus()},20)}function Ia(a,y,E){if(E=="char")return new vn(y,y);if(E=="word")return a.findWordAt(y);if(E=="line")return new vn(ze(y.line,0),xt(a.doc,ze(y.line+1,0)));var x=E(a,y);return new vn(x.from,x.to)}function na(a,y,E,x){var z=a.display,ie=a.doc;ht(y);var se,he,be=ie.sel,Re=be.ranges;if(x.addNew&&!x.extend?(he=ie.sel.contains(E),he>-1?se=Re[he]:se=new vn(E,E)):(se=ie.sel.primary(),he=ie.sel.primIndex),x.unit=="rectangle")x.addNew||(se=new vn(E,E)),E=Ja(a,y,!0,!0),he=-1;else{var Lt=Ia(a,E,x.unit);x.extend?se=Di(se,Lt.anchor,Lt.head,x.extend):se=Lt}x.addNew?he==-1?(he=Re.length,Tr(ie,nr(a,Re.concat([se]),he),{scroll:!1,origin:"*mouse"})):Re.length>1&&Re[he].empty()&&x.unit=="char"&&!x.extend?(Tr(ie,nr(a,Re.slice(0,he).concat(Re.slice(he+1)),0),{scroll:!1,origin:"*mouse"}),be=ie.sel):Bo(ie,he,se,et):(he=0,Tr(ie,new yn([se],0),et),be=ie.sel);var Gt=E;function xn(Pr){if(bt(Gt,Pr)!=0)if(Gt=Pr,x.unit=="rectangle"){for(var Wr=[],fi=a.options.tabSize,li=Ne(sn(ie,E.line).text,E.ch,fi),Ai=Ne(sn(ie,Pr.line).text,Pr.ch,fi),go=Math.min(li,Ai),ra=Math.max(li,Ai),Ro=Math.min(E.line,Pr.line),La=Math.min(a.lastLine(),Math.max(E.line,Pr.line));Ro<=La;Ro++){var Pa=sn(ie,Ro).text,Go=_t(Pa,go,fi);go==ra?Wr.push(new vn(ze(Ro,Go),ze(Ro,Go))):Pa.length>Go&&Wr.push(new vn(ze(Ro,Go),ze(Ro,_t(Pa,ra,fi))))}Wr.length||Wr.push(new vn(E,E)),Tr(ie,nr(a,be.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=Vt(Oa.from(),fa.anchor)):(Xo=fa.anchor,qo=$t(Oa.to(),fa.head));var Fo=be.ranges.slice(0);Fo[he]=Ml(a,new vn(xt(ie,qo),Xo)),Tr(ie,nr(a,Fo,he),et)}}var hn=z.wrapper.getBoundingClientRect(),Vn=0;function qn(Pr){var Wr=++Vn,fi=Ja(a,Pr,!0,x.unit=="rectangle");if(fi)if(bt(fi,Gt)!=0){a.curOp.focus=Ge(),xn(fi);var li=ol(z,ie);(fi.line>=li.to||fi.line<li.from)&&setTimeout(Jo(a,function(){Vn==Wr&&qn(Pr)}),150)}else{var Ai=Pr.clientY<hn.top?-20:Pr.clientY>hn.bottom?20:0;Ai&&setTimeout(Jo(a,function(){Vn==Wr&&(z.scroller.scrollTop+=Ai,qn(Pr))}),50)}}function hr(Pr){a.state.selectingText=!1,Vn=1/0,Pr&&(ht(Pr),z.input.focus()),nn(z.wrapper.ownerDocument,"mousemove",Ir),nn(z.wrapper.ownerDocument,"mouseup",$r),ie.history.lastSelOrigin=null}var Ir=Jo(a,function(Pr){Pr.buttons===0||!Ct(Pr)?hr(Pr):qn(Pr)}),$r=Jo(a,hr);a.state.selectingText=$r,Zt(z.wrapper.ownerDocument,"mousemove",Ir),Zt(z.wrapper.ownerDocument,"mouseup",$r)}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=Ye(ie,E.ch,E.sticky),he=ie[se];if(he.from!=E.ch&&he.to!=E.ch)return y;var be=se+(he.from==E.ch==(he.level!=1)?0:1);if(be==0||be==ie.length)return y;var Re;if(x.line!=E.line)Re=(x.line-E.line)*(a.doc.direction=="ltr"?1:-1)>0;else{var Lt=Ye(ie,x.ch,x.sticky),Gt=Lt-se||(x.ch-E.ch)*(he.level==1?-1:1);Lt==be-1||Lt==be?Re=Gt<0:Re=Gt>0}var xn=ie[be+(Re?-1:0)],hn=Re==(xn.level==1),Vn=hn?xn.from:xn.to,qn=hn?"after":"before";return E.ch==Vn&&E.sticky==qn?y:new vn(new ze(E.line,Vn,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(xn){return!1}if(z>=Math.floor(a.display.gutters.getBoundingClientRect().right))return!1;x&&ht(y);var se=a.display,he=se.lineDiv.getBoundingClientRect();if(ie>he.bottom||!Kt(a,E))return Mt(y);ie-=he.top-se.viewOffset;for(var be=0;be<a.display.gutterSpecs.length;++be){var Re=se.gutters.childNodes[be];if(Re&&Re.getBoundingClientRect().right>=z){var Lt=Ot(a.doc,ie),Gt=a.display.gutterSpecs[be];return qt(a,E,a,Lt,Gt.className,y),Mt(y)}}}function Qa(a,y){return sl(a,y,"gutterClick",!0)}function Nl(a,y){Yo(a.display,y)||Fs(a,y)||Et(a,y,"contextmenu")||Be||a.display.input.onContextMenu(y)}function Fs(a,y){return Kt(a,"gutterContextMenu")?sl(a,y,"gutterContextMenu",!1):!1}function kc(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"}},Bc={},qs={};function jc(a){var y=a.optionHandlers;function E(x,z,ie,se){a.defaults[x]=z,ie&&(y[x]=se?function(he,be,Re){Re!=ds&&ie(he,be,Re)}: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(be){for(var Re=0;;){var Lt=be.text.indexOf(z,Re);if(Lt==-1)break;Re=Lt+z.length,ie.push(ze(se,Lt))}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",Te?"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",!pt),E("wholeLineUpdateBefore",!0),E("theme","default",function(x){kc(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=Nt(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=Nt(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):(nt(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(Bc,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 en(a,x,z,y);ie.wrapper.CodeMirror=this,kc(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 me,keySeq:null,specialChars:null},y.autofocus&&!Te&&ie.input.focus(),Ee&&xe<11&&setTimeout(function(){return E.display.input.reset(!0)},20),Vc(this),ls(),ml(this),this.curOp.forceUpdate=!0,ii(this,x),y.autofocus&&!Te||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),Ie&&y.lineWrapping&&getComputedStyle(ie.lineDiv).textRendering=="optimizelegibility"&&(ie.lineDiv.style.textRendering="auto")}Oo.defaults=Bc,Oo.optionHandlers=qs;function Vc(a){var y=a.display;Zt(y.scroller,"mousedown",Jo(a,$s)),Ee&&xe<11?Zt(y.scroller,"dblclick",Jo(a,function(be){if(!Et(a,be)){var Re=Ja(a,be);if(!(!Re||Qa(a,be)||Yo(a.display,be))){ht(be);var Lt=a.findWordAt(Re);Ti(a.doc,Lt.anchor,Lt.head)}}})):Zt(y.scroller,"dblclick",function(be){return Et(a,be)||ht(be)}),Zt(y.scroller,"contextmenu",function(be){return Nl(a,be)}),Zt(y.input.getField(),"contextmenu",function(be){y.scroller.contains(be.target)||Nl(a,be)});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(be){if(be.touches.length!=1)return!1;var Re=be.touches[0];return Re.radiusX<=1&&Re.radiusY<=1}function se(be,Re){if(Re.left==null)return!0;var Lt=Re.left-be.left,Gt=Re.top-be.top;return Lt*Lt+Gt*Gt>20*20}Zt(y.scroller,"touchstart",function(be){if(!Et(a,be)&&!ie(be)&&!Qa(a,be)){y.input.ensurePolled(),clearTimeout(E);var Re=+new Date;y.activeTouch={start:Re,moved:!1,prev:Re-x.end<=300?x:null},be.touches.length==1&&(y.activeTouch.left=be.touches[0].pageX,y.activeTouch.top=be.touches[0].pageY)}}),Zt(y.scroller,"touchmove",function(){y.activeTouch&&(y.activeTouch.moved=!0)}),Zt(y.scroller,"touchend",function(be){var Re=y.activeTouch;if(Re&&!Yo(y,be)&&Re.left!=null&&!Re.moved&&new Date-Re.start<300){var Lt=a.coordsChar(y.activeTouch,"page"),Gt;!Re.prev||se(Re,Re.prev)?Gt=new vn(Lt,Lt):!Re.prev.prev||se(Re,Re.prev.prev)?Gt=a.findWordAt(Lt):Gt=new vn(ze(Lt.line,0),xt(a.doc,ze(Lt.line+1,0))),a.setSelection(Gt.anchor,Gt.head),a.focus(),ht(be)}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),qt(a,"scroll",a))}),Zt(y.scroller,"mousewheel",function(be){return En(a,be)}),Zt(y.scroller,"DOMMouseScroll",function(be){return En(a,be)}),Zt(y.wrapper,"scroll",function(){return y.wrapper.scrollTop=y.wrapper.scrollLeft=0}),y.dragFunctions={enter:function(be){Et(a,be)||Me(be)},over:function(be){Et(a,be)||(Xa(a,be),Me(be))},start:function(be){return Ga(a,be)},drop:Jo(a,al),leave:function(be){Et(a,be)||is(a)}};var he=y.input.getField();Zt(he,"keyup",function(be){return Ls.call(a,be)}),Zt(he,"keydown",Jo(a,Bs)),Zt(he,"keypress",Jo(a,Rs)),Zt(he,"focus",function(be){return Ks(a,be)}),Zt(he,"blur",function(be){return Sl(a,be)})}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=lr(a,y).state:E="prev");var se=a.options.tabSize,he=sn(z,y),be=Ne(he.text,null,se);he.stateAfter&&(he.stateAfter=null);var Re=he.text.match(/^\s*/)[0],Lt;if(!x&&!/\S/.test(he.text))Lt=0,E="not";else if(E=="smart"&&(Lt=z.mode.indent(ie,he.text.slice(Re.length),he.text),Lt==kt||Lt>150)){if(!x)return;E="prev"}E=="prev"?y>z.first?Lt=Ne(sn(z,y-1).text,null,se):Lt=0:E=="add"?Lt=be+a.options.indentUnit:E=="subtract"?Lt=be-a.options.indentUnit:typeof E=="number"&&(Lt=be+E),Lt=Math.max(0,Lt);var Gt="",xn=0;if(a.options.indentWithTabs)for(var hn=Math.floor(Lt/se);hn;--hn)xn+=se,Gt+=" ";if(xn<Lt&&(Gt+=Bt(Lt-xn)),Gt!=Re)return zi(z,Gt,ze(y,0),ze(y,Re.length),"+input"),he.stateAfter=null,!0;for(var Vn=0;Vn<z.sel.ranges.length;Vn++){var qn=z.sel.ranges[Vn];if(qn.head.line==y&&qn.head.ch<Re.length){var hr=ze(y,Re.length);Bo(z,Vn,new vn(hr,hr));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,be=gn(y),Re=null;if(he&&x.ranges.length>1)if(qa&&qa.text.join(`
|
|
|
`)==y){if(x.ranges.length%qa.text.length==0){Re=[];for(var Lt=0;Lt<qa.text.length;Lt++)Re.push(ie.splitLines(qa.text[Lt]))}}else be.length==x.ranges.length&&a.options.pasteLinesPerSelection&&(Re=tn(be,function(Ir){return[Ir]}));for(var Gt=a.curOp.updateInput,xn=x.ranges.length-1;xn>=0;xn--){var hn=x.ranges[xn],Vn=hn.from(),qn=hn.to();hn.empty()&&(E&&E>0?Vn=ze(Vn.line,Vn.ch-E):a.state.overwrite&&!he?qn=ze(qn.line,Math.min(sn(ie,qn.line).text.length,qn.ch+qe(be).length)):he&&qa&&qa.lineWise&&qa.text.join(`
|
|
|
`)==be.join(`
|
|
|
`)&&(Vn=qn=ze(Vn.line,0)));var hr={from:Vn,to:qn,text:Re?Re[xn%Re.length]:be,origin:z||(he?"paste":a.state.cutIncoming>se?"cut":"+input")};eo(a.doc,hr),Mi(a,"inputRead",a,hr)}y&&!he&&Rc(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 Rc(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 Ac(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 $c(a,y,E,x){a.setAttribute("autocorrect",E?"":"off"),a.setAttribute("autocapitalize",x?"":"off"),a.setAttribute("spellcheck",!!y)}function Fc(){var a=ot("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),y=ot("div",[a],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return Ie?a.style.width="1000px":a.setAttribute("wrap","off"),it&&(a.style.border="1px solid black"),$c(a),y}function _c(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)&&Jo(this,y[x])(this,z,se),qt(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.");Tt(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"),Fe(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 be=he.from(),Re=he.to(),Lt=Math.max(ie,be.line);ie=Math.min(this.lastLine(),Re.line-(Re.ch?0:1))+1;for(var Gt=Lt;Gt<ie;++Gt)Zs(this,Gt,x);var xn=this.doc.sel.ranges;be.ch==0&&z.length==xn.length&&xn[se].from().ch>0&&Bo(this.doc,se,new vn(be,xn[se].to()),ge)}}}),getTokenAt:function(x,z){return cr(this,x,z)},getLineTokens:function(x,z){return cr(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,be;if(he==0)be=z[2];else for(;;){var Re=ie+se>>1;if((Re?z[Re*2-1]:0)>=he)se=Re;else if(z[Re*2+1]<he)ie=Re+1;else{be=z[Re*2+2];break}}var Lt=be?be.indexOf("overlay "):-1;return Lt<0?be:Lt==0?null:be.slice(0,Lt-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 be=0;be<he[z].length;be++){var Re=se[he[z][be]];Re&&ie.push(Re)}else he.helperType&&se[he.helperType]?ie.push(se[he.helperType]):se[he.name]&&ie.push(se[he.name]);for(var Lt=0;Lt<se._global.length;Lt++){var Gt=se._global[Lt];Gt.pred(he,this)&&Pt(ie,Gt.val)==-1&&ie.push(Gt.val)}return ie},getStateAfter:function(x,z){var ie=this.doc;return x=St(ie,x==null?ie.first+ie.size-1:x),lr(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,Ot(this.doc,x+this.display.viewOffset)},heightAtLine:function(x,z,ie){var se=!1,he;if(typeof x=="number"){var be=this.doc.first+this.doc.size-1;x<this.doc.first?x=this.doc.first:x>be&&(x=be,se=!0),he=sn(this.doc,x)}else he=x;return Al(this,he,{top:0,left:0},z||"page",ie||se).top+(se?this.doc.height-Jr(he):0)},defaultTextHeight:function(){return Ca(this.display)},defaultCharWidth:function(){return $a(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(x,z,ie,se,he){var be=this.display;x=aa(this,xt(this.doc,x));var Re=x.bottom,Lt=x.left;if(z.style.position="absolute",z.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(z),be.sizer.appendChild(z),se=="over")Re=x.top;else if(se=="above"||se=="near"){var Gt=Math.max(be.wrapper.clientHeight,this.doc.height),xn=Math.max(be.sizer.clientWidth,be.lineSpace.clientWidth);(se=="above"||x.bottom+z.offsetHeight>Gt)&&x.top>z.offsetHeight?Re=x.top-z.offsetHeight:x.bottom+z.offsetHeight<=Gt&&(Re=x.bottom),Lt+z.offsetWidth>xn&&(Lt=xn-z.offsetWidth)}z.style.top=Re+"px",z.style.left=z.style.right="",he=="right"?(Lt=be.sizer.clientWidth-z.offsetWidth,z.style.right="0px"):(he=="left"?Lt=0:he=="middle"&&(Lt=(be.sizer.clientWidth-z.offsetWidth)/2),z.style.left=Lt+"px"),ie&&Oc(this,{left:Lt,top:Re,right:Lt+z.offsetWidth,bottom:Re+z.offsetHeight})},triggerOnKeyDown:ca(Bs),triggerOnKeyPress:ca(Rs),triggerOnKeyUp:Ls,triggerOnMouseDown:ca($s),execCommand:function(x){if(ll.hasOwnProperty(x))return ll[x].call(null,this)},triggerElectric:ca(function(x){Rc(this,x)}),findPosH:function(x,z,ie,se){var he=1;z<0&&(he=-1,z=-z);for(var be=xt(this.doc,x),Re=0;Re<z&&(be=wc(this.doc,be,he,ie,se),!be.hitSide);++Re);return be},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()},rt)}),deleteH:ca(function(x,z){var ie=this.doc.sel,se=this.doc;ie.somethingSelected()?se.replaceSelection("",null,"+delete"):gl(this,function(he){var be=wc(se,he.head,x,z,!1);return x<0?{from:be,to:he.head}:{from:he.head,to:be}})}),findPosV:function(x,z,ie,se){var he=1,be=se;z<0&&(he=-1,z=-z);for(var Re=xt(this.doc,x),Lt=0;Lt<z;++Lt){var Gt=aa(this,Re,"div");if(be==null?be=Gt.left:Gt.left=be,Re=Zc(this,Gt,he,ie),Re.hitSide)break}return Re},moveV:ca(function(x,z){var ie=this,se=this.doc,he=[],be=!this.display.shift&&!se.extend&&se.sel.somethingSelected();if(se.extendSelectionsBy(function(Lt){if(be)return x<0?Lt.from():Lt.to();var Gt=aa(ie,Lt.head,"div");Lt.goalColumn!=null&&(Gt.left=Lt.goalColumn),he.push(Gt.left);var xn=Zc(ie,Gt,x,z);return z=="page"&&Lt==se.sel.primary()&&Vs(ie,nl(ie,xn,"div").top-Gt.top),xn},rt),he.length)for(var Re=0;Re<se.sel.ranges.length;Re++)se.sel.ranges[Re].goalColumn=he[Re]}),findWordAt:function(x){var z=this.doc,ie=sn(z,x.line).text,se=x.ch,he=x.ch;if(ie){var be=this.getHelper(x,"wordChars");(x.sticky=="before"||he==ie.length)&&se?--se:++he;for(var Re=ie.charAt(se),Lt=ce(Re,be)?function(Gt){return ce(Gt,be)}:/\s/.test(Re)?function(Gt){return/\s/.test(Gt)}:function(Gt){return!/\s/.test(Gt)&&!ce(Gt)};se>0&&Lt(ie.charAt(se-1));)--se;for(;he<ie.length&&Lt(ie.charAt(he));)++he}return new vn(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"):nt(this.display.cursorDiv,"CodeMirror-overwrite"),qt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Ge()},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):_s(this,x.from,x.to,x.margin)}),setSize:ca(function(x,z){var ie=this,se=function(be){return typeof be=="number"||/^\d+$/.test(String(be))?be+"px":be};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(be){if(be.widgets){for(var Re=0;Re<be.widgets.length;Re++)if(be.widgets[Re].noHScroll){il(ie,he,"widget");break}}++he}),this.curOp.forceUpdate=!0,qt(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),qt(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}},He(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),be=z&&a.direction=="rtl"?-E:E;function Re(){var $r=y.line+be;return $r<a.first||$r>=a.first+a.size?!1:(y=new ze($r,y.ch,y.sticky),he=sn(a,$r))}function Lt($r){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=Js(a.cm,he,y,E):Pr=cs(he,y,E);if(Pr==null)if(!$r&&Re())y=Ds(z,a.cm,he,y.line,be);else return!1;else y=Pr;return!0}if(x=="char"||x=="codepoint")Lt();else if(x=="column")Lt(!0);else if(x=="word"||x=="group")for(var Gt=null,xn=x=="group",hn=a.cm&&a.cm.getHelper(y,"wordChars"),Vn=!0;!(E<0&&!Lt(!Vn));Vn=!1){var qn=he.text.charAt(y.ch)||`
|
|
|
`,hr=ce(qn,hn)?"w":xn&&qn==`
|
|
|
`?"n":!xn||/\s/.test(qn)?null:"p";if(xn&&!Vn&&!hr&&(hr="s"),Gt&&Gt!=hr){E<0&&(E=1,Lt(),y.sticky="after");break}if(hr&&(Gt=hr),E>0&&!Lt(!Vn))break}var Ir=Ao(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),be=Math.max(he-.5*Ca(a.display),3);se=(E>0?y.bottom:y.top)+E*be}else x=="line"&&(se=E>0?y.bottom+3:y.top-3);for(var Re;Re=Ko(a,ie,se),!!Re.outside;){if(E<0?se<=0:se>=z.height){Re.hitSide=!0;break}se+=E*5}return Re}var uo=function(a){this.cm=a,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new me,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;$c(z,x.options.spellcheck,x.options.autocorrect,x.options.autocapitalize);function ie(he){for(var be=he.target;be;be=be.parentNode){if(be==z)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(be.className))break}return!1}Zt(z,"paste",function(he){!ie(he)||Et(x,he)||Lc(he,x)||xe<=11&&setTimeout(Jo(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)||Et(x,he))){if(x.somethingSelected())ec({lineWise:!1,text:x.getSelections()}),he.type=="cut"&&x.replaceSelection("",null,"cut");else if(x.options.lineWiseCopyCut){var be=Ac(x);ec({lineWise:!0,text:be.text}),he.type=="cut"&&x.operation(function(){x.setSelections(be.ranges,0,ge),x.replaceSelection("",null,"cut")})}else return;if(he.clipboardData){he.clipboardData.clearData();var Re=qa.text.join(`
|
|
|
`);if(he.clipboardData.setData("Text",Re),he.clipboardData.getData("Text")==Re){he.preventDefault();return}}var Lt=Fc(),Gt=Lt.firstChild;x.display.lineSpace.insertBefore(Lt,x.display.lineSpace.firstChild),Gt.value=qa.text.join(`
|
|
|
`);var xn=document.activeElement;Ke(Gt),setTimeout(function(){x.display.lineSpace.removeChild(Lt),xn.focus(),xn==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(Vt(ie,se),x)==0&&bt($t(ie,se),z)==0)){var he=y.display.view,be=x.line>=y.display.viewFrom&&zc(y,x)||{node:he[0].measure.map[2],offset:0},Re=z.line<y.display.viewTo&&zc(y,z);if(!Re){var Lt=he[he.length-1].measure,Gt=Lt.maps?Lt.maps[Lt.maps.length-1]:Lt.map;Re={node:Gt[Gt.length-1],offset:Gt[Gt.length-2]-Gt[Gt.length-3]}}if(!be||!Re){a.removeAllRanges();return}var xn=a.rangeCount&&a.getRangeAt(0),hn;try{hn=Se(be.node,be.offset,Re.offset,Re.node)}catch(Vn){}hn&&(!b&&y.state.focused?(a.collapse(be.node,be.offset),hn.collapsed||(a.removeAllRanges(),a.addRange(hn))):(a.removeAllRanges(),a.addRange(hn)),xn&&a.anchorNode==null?a.addRange(xn):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){yt(this.cm.display.cursorDiv,a.cursors),yt(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 lt(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($e&&Ce&&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,Wn(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 be=Ka(a,z.line),Re,Lt;if(be==y.view.length-1?(Re=y.viewTo-1,Lt=y.lineDiv.lastChild):(Re=ut(y.view[be+1].line)-1,Lt=y.view[be+1].node.previousSibling),!he)return!1;for(var Gt=a.doc.splitLines(Gc(a,he,Lt,se,Re)),xn=bn(a.doc,ze(se,0),ze(Re,sn(a.doc,Re).text.length));Gt.length>1&&xn.length>1;)if(qe(Gt)==qe(xn))Gt.pop(),xn.pop(),Re--;else if(Gt[0]==xn[0])Gt.shift(),xn.shift(),se++;else break;for(var hn=0,Vn=0,qn=Gt[0],hr=xn[0],Ir=Math.min(qn.length,hr.length);hn<Ir&&qn.charCodeAt(hn)==hr.charCodeAt(hn);)++hn;for(var $r=qe(Gt),Pr=qe(xn),Wr=Math.min($r.length-(Gt.length==1?hn:0),Pr.length-(xn.length==1?hn:0));Vn<Wr&&$r.charCodeAt($r.length-Vn-1)==Pr.charCodeAt(Pr.length-Vn-1);)++Vn;if(Gt.length==1&&xn.length==1&&se==x.line)for(;hn&&hn>x.ch&&$r.charCodeAt($r.length-Vn-1)==Pr.charCodeAt(Pr.length-Vn-1);)hn--,Vn++;Gt[Gt.length-1]=$r.slice(0,$r.length-Vn).replace(/^\u200b+/,""),Gt[0]=Gt[0].slice(hn).replace(/\u200b+$/,"");var fi=ze(se,hn),li=ze(Re,xn.length?qe(xn).length-Vn: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()||Jo(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=Ye(ie,y.ch);se=he%2?"right":"left"}var be=Bl(z.map,y.ch,se);return be.offset=be.collapse=="right"?be.end:be.start,be}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(),be=!1;function Re(hn){return function(Vn){return Vn.id==hn}}function Lt(){se&&(ie+=he,be&&(ie+=he),se=be=!1)}function Gt(hn){hn&&(Lt(),ie+=hn)}function xn(hn){if(hn.nodeType==1){var Vn=hn.getAttribute("cm-text");if(Vn){Gt(Vn);return}var qn=hn.getAttribute("cm-marker"),hr;if(qn){var Ir=a.findMarks(ze(x,0),ze(z+1,0),Re(+qn));Ir.length&&(hr=Ir[0].find(0))&&Gt(bn(a.doc,hr.from,hr.to).join(he));return}if(hn.getAttribute("contenteditable")=="false")return;var $r=/^(pre|div|p|li|table|br)$/i.test(hn.nodeName);if(!/^br$/i.test(hn.nodeName)&&hn.textContent.length==0)return;$r&&Lt();for(var Pr=0;Pr<hn.childNodes.length;Pr++)xn(hn.childNodes[Pr]);/^(pre|p)$/i.test(hn.nodeName)&&(be=!0),$r&&(se=!0)}else hn.nodeType==3&&Gt(hn.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;xn(y),y!=E;)y=y.nextSibling,be=!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||!lt(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 be=a.measure,Re=be.maps;function Lt(hr,Ir,$r){for(var Pr=-1;Pr<(Re?Re.length:0);Pr++)for(var Wr=Pr<0?be.map:Re[Pr],fi=0;fi<Wr.length;fi+=3){var li=Wr[fi+2];if(li==hr||li==Ir){var Ai=ut(Pr<0?a.line:a.rest[Pr]),go=Wr[fi]+$r;return($r<0||li!=hr)&&(go=Wr[fi+($r?1:0)]),ze(Ai,go)}}}var Gt=Lt(se,he,E);if(Gt)return fs(Gt,z);for(var xn=he.nextSibling,hn=se?se.nodeValue.length-E:0;xn;xn=xn.nextSibling){if(Gt=Lt(xn,xn.firstChild,0),Gt)return fs(ze(Gt.line,Gt.ch-hn),z);hn+=xn.textContent.length}for(var Vn=he.previousSibling,qn=E;Vn;Vn=Vn.previousSibling){if(Gt=Lt(Vn,Vn.firstChild,-1),Gt)return fs(ze(Gt.line,Gt.ch+qn),z);qn+=Vn.textContent.length}}var jo=function(a){this.cm=a,this.prevInput="",this.pollingFast=!1,this.polling=new me,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),it&&(z.style.width="0px"),Zt(z,"input",function(){Ee&&xe>=9&&y.hasSelection&&(y.hasSelection=null),E.poll()}),Zt(z,"paste",function(se){Et(x,se)||Lc(se,x)||(x.state.pasteIncoming=+new Date,E.fastPoll())});function ie(se){if(!Et(x,se)){if(x.somethingSelected())ec({lineWise:!1,text:x.getSelections()});else if(x.options.lineWiseCopyCut){var he=Ac(x);ec({lineWise:!0,text:he.text}),se.type=="cut"?x.setSelections(he.ranges,null,ge):(E.prevInput="",z.value=he.text.join(`
|
|
|
`),Ke(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)||Et(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)||ht(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=Fc(),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;yt(E.cursorDiv,a.cursors),yt(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&&Ke(this.textarea),Ee&&xe>=9&&(this.hasSelection=E)}else a||(this.prevInput=this.textarea.value="",Ee&&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"&&(!Te||Ge()!=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||Nn(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(Ee&&xe>=9&&this.hasSelection===z||Oe&&/[\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(){Ee&&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=Ja(E,a),se=x.scroller.scrollTop;if(!ie||ue)return;var he=E.options.resetSelectionOnContextMenu;he&&E.doc.sel.contains(ie)==-1&&Jo(E,Tr)(E.doc,Wn(ie),ge);var be=z.style.cssText,Re=y.wrapper.style.cssText,Lt=y.wrapper.offsetParent.getBoundingClientRect();y.wrapper.style.cssText="position: static",z.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
|
top: `+(a.clientY-Lt.top-5)+"px; left: "+(a.clientX-Lt.left-5)+`px;
|
|
|
z-index: 1000; background: `+(Ee?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Gt;Ie&&(Gt=window.scrollY),x.input.focus(),Ie&&window.scrollTo(null,Gt),x.input.reset(),E.somethingSelected()||(z.value=y.prevInput=" "),y.contextMenuPending=hn,x.selForContextMenu=E.doc.sel,clearTimeout(x.detectingSelectAll);function xn(){if(z.selectionStart!=null){var qn=E.somethingSelected(),hr="\u200B"+(qn?z.value:"");z.value="\u21DA",z.value=hr,y.prevInput=qn?"":"\u200B",z.selectionStart=1,z.selectionEnd=hr.length,x.selForContextMenu=E.doc.sel}}function hn(){if(y.contextMenuPending==hn&&(y.contextMenuPending=!1,y.wrapper.style.cssText=Re,z.style.cssText=be,Ee&&xe<9&&x.scrollbars.setScrollTop(x.scroller.scrollTop=se),z.selectionStart!=null)){(!Ee||Ee&&xe<9)&&xn();var qn=0,hr=function(){x.selForContextMenu==E.doc.sel&&z.selectionStart==0&&z.selectionEnd>0&&y.prevInput=="\u200B"?Jo(E,ei)(E):qn++<10?x.detectingSelectAll=setTimeout(hr,500):(x.selForContextMenu=null,x.input.reset())};x.detectingSelectAll=setTimeout(hr,200)}}if(Ee&&xe>=9&&xn(),Be){Me(a);var Vn=function(){nn(window,"mouseup",Vn),setTimeout(hn,20)};Zt(window,"mouseup",Vn)}else setTimeout(hn,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=Ge();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(be){}}y.finishInit=function(be){be.save=x,be.getTextArea=function(){return a},be.toTextArea=function(){be.toTextArea=isNaN,x(),a.parentNode.removeChild(be.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(be){return a.parentNode.insertBefore(be,a.nextSibling)},y);return he}function Jc(a){a.off=nn,a.on=Zt,a.wheelEventPixels=Pn,a.Doc=ao,a.splitLines=gn,a.countColumn=Ne,a.findColumn=_t,a.isWordChar=oe,a.Pass=kt,a.signal=qt,a.Line=Ni,a.changeEnd=rr,a.scrollbarModel=sc,a.Pos=ze,a.cmpPos=bt,a.modes=an,a.mimeModes=Jt,a.resolveMode=Cn,a.getMode=Fn,a.modeExtensions=zn,a.extendMode=Zn,a.copyState=Xn,a.startState=pr,a.innerMode=_n,a.commands=ll,a.keyMap=Ho,a.keyName=vl,a.isModifierKey=Ps,a.lookupKey=Dl,a.normalizeKeyMap=ea,a.StringStream=ar,a.SharedTextMarker=oo,a.TextMarker=ga,a.LineWidget=Xi,a.e_preventDefault=ht,a.e_stopPropagation=at,a.e_stop=Me,a.addClass=de,a.contains=lt,a.rmClass=nt,a.keyNames=Li}jc(Oo),_c(Oo);var Qc="iter insert remove copy getEditor constructor".split(" ");for(var nc in ao.prototype)ao.prototype.hasOwnProperty(nc)&&Pt(Qc,nc)<0&&(Oo.prototype[nc]=function(a){return function(){return a.apply(this.doc,arguments)}}(ao.prototype[nc]));return He(ao),Oo.inputStyles={textarea:jo,contenteditable:uo},Oo.defineMode=function(a){!Oo.defaults.mode&&a!="null"&&(Oo.defaults.mode=a),pn.apply(this,arguments)},Oo.defineMIME=mn,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,Jc(Oo),Oo.version="5.58.2",Oo})},25419:function(wn,Qt,ee){(function(b){b(ee(89780),ee(15525),ee(98101))})(function(b){"use strict";b.defineMode("markdown",function(We,fe){var Ue=b.getMode(We,"text/html"),Ee=Ue.name=="null";function xe(Ne){if(b.findModeByName){var me=b.findModeByName(Ne);me&&(Ne=me.mime||me.mimes[0])}var Pt=b.getMode(We,Ne);return Pt.name=="null"?null:Pt}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 Ie={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 Ze in Ie)Ie.hasOwnProperty(Ze)&&fe.tokenTypeOverrides[Ze]&&(Ie[Ze]=fe.tokenTypeOverrides[Ze]);var Ce=/^([*\-_])(?:\s*\1){2,}\s*$/,ue=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,tt=/^\[(x| )\](?=\s)/i,Le=fe.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,Rt=/^ {0,3}(?:\={1,}|-{2,})\s*$/,it=/^[^#!\[\]*_\\<>` "'(~:]+/,$e=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,Te=/^\s*\[[^\]]+?\]:.*$/,Oe=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,Xe=" ";function pt(Ne,me,Pt){return me.f=me.inline=Pt,Pt(Ne,me)}function At(Ne,me,Pt){return me.f=me.block=Pt,Pt(Ne,me)}function je(Ne){return!Ne||!/\S/.test(Ne.string)}function Be(Ne){if(Ne.linkTitle=!1,Ne.linkHref=!1,Ne.linkText=!1,Ne.em=!1,Ne.strong=!1,Ne.strikethrough=!1,Ne.quote=0,Ne.indentedCode=!1,Ne.f==nt){var me=Ee;if(!me){var Pt=b.innerMode(Ue,Ne.htmlState);me=Pt.mode.name=="xml"&&Pt.state.tagStart===null&&!Pt.state.context&&Pt.state.tokenize.isInText}me&&(Ne.f=ct,Ne.block=Je,Ne.htmlState=null)}return Ne.trailingSpace=0,Ne.trailingSpaceNewLine=!1,Ne.prevLine=Ne.thisLine,Ne.thisLine={stream:null},null}function Je(Ne,me){var Pt=Ne.column()===me.indentation,Ut=je(me.prevLine.stream),kt=me.indentedCode,ge=me.prevLine.hr,et=me.list!==!1,rt=(me.listStack[me.listStack.length-1]||0)+3;me.indentedCode=!1;var _t=me.indentation;if(me.indentationDiff===null&&(me.indentationDiff=me.indentation,et)){for(me.list=null;_t<me.listStack[me.listStack.length-1];)me.listStack.pop(),me.listStack.length?me.indentation=me.listStack[me.listStack.length-1]:me.list=!1;me.list!==!1&&(me.indentationDiff=_t-me.listStack[me.listStack.length-1])}var Qe=!Ut&&!ge&&!me.prevLine.header&&(!et||!kt)&&!me.prevLine.fencedCodeEnd,Bt=(me.list===!1||ge||Ut)&&me.indentation<=rt&&Ne.match(Ce),qe=null;if(me.indentationDiff>=4&&(kt||me.prevLine.fencedCodeEnd||me.prevLine.header||Ut))return Ne.skipToEnd(),me.indentedCode=!0,Ie.code;if(Ne.eatSpace())return null;if(Pt&&me.indentation<=rt&&(qe=Ne.match(Le))&&qe[1].length<=6)return me.quote=0,me.header=qe[1].length,me.thisLine.header=!0,fe.highlightFormatting&&(me.formatting="header"),me.f=me.inline,yt(me);if(me.indentation<=rt&&Ne.eat(">"))return me.quote=Pt?1:me.quote+1,fe.highlightFormatting&&(me.formatting="quote"),Ne.eatSpace(),yt(me);if(!Bt&&!me.setext&&Pt&&me.indentation<=rt&&(qe=Ne.match(ue))){var tn=qe[1]?"ol":"ul";return me.indentation=_t+Ne.current().length,me.list=!0,me.quote=0,me.listStack.push(me.indentation),me.em=!1,me.strong=!1,me.code=!1,me.strikethrough=!1,fe.taskLists&&Ne.match(tt,!1)&&(me.taskList=!0),me.f=me.inline,fe.highlightFormatting&&(me.formatting=["list","list-"+tn]),yt(me)}else{if(Pt&&me.indentation<=rt&&(qe=Ne.match($e,!0)))return me.quote=0,me.fencedEndRE=new RegExp(qe[1]+"+ *$"),me.localMode=fe.fencedCodeBlockHighlighting&&xe(qe[2]||fe.fencedCodeBlockDefaultMode),me.localMode&&(me.localState=b.startState(me.localMode)),me.f=me.block=zt,fe.highlightFormatting&&(me.formatting="code-block"),me.code=-1,yt(me);if(me.setext||(!Qe||!et)&&!me.quote&&me.list===!1&&!me.code&&!Bt&&!Te.test(Ne.string)&&(qe=Ne.lookAhead(1))&&(qe=qe.match(Rt)))return me.setext?(me.header=me.setext,me.setext=0,Ne.skipToEnd(),fe.highlightFormatting&&(me.formatting="header")):(me.header=qe[0].charAt(0)=="="?1:2,me.setext=me.header),me.thisLine.header=!0,me.f=me.inline,yt(me);if(Bt)return Ne.skipToEnd(),me.hr=!0,me.thisLine.hr=!0,Ie.hr;if(Ne.peek()==="[")return pt(Ne,me,Dt)}return pt(Ne,me,me.inline)}function nt(Ne,me){var Pt=Ue.token(Ne,me.htmlState);if(!Ee){var Ut=b.innerMode(Ue,me.htmlState);(Ut.mode.name=="xml"&&Ut.state.tagStart===null&&!Ut.state.context&&Ut.state.tokenize.isInText||me.md_inside&&Ne.current().indexOf(">")>-1)&&(me.f=ct,me.block=Je,me.htmlState=null)}return Pt}function zt(Ne,me){var Pt=me.listStack[me.listStack.length-1]||0,Ut=me.indentation<Pt,kt=Pt+3;if(me.fencedEndRE&&me.indentation<=kt&&(Ut||Ne.match(me.fencedEndRE))){fe.highlightFormatting&&(me.formatting="code-block");var ge;return Ut||(ge=yt(me)),me.localMode=me.localState=null,me.block=Je,me.f=ct,me.fencedEndRE=null,me.code=0,me.thisLine.fencedCodeEnd=!0,Ut?At(Ne,me,me.block):ge}else return me.localMode?me.localMode.token(Ne,me.localState):(Ne.skipToEnd(),Ie.code)}function yt(Ne){var me=[];if(Ne.formatting){me.push(Ie.formatting),typeof Ne.formatting=="string"&&(Ne.formatting=[Ne.formatting]);for(var Pt=0;Pt<Ne.formatting.length;Pt++)me.push(Ie.formatting+"-"+Ne.formatting[Pt]),Ne.formatting[Pt]==="header"&&me.push(Ie.formatting+"-"+Ne.formatting[Pt]+"-"+Ne.header),Ne.formatting[Pt]==="quote"&&(!fe.maxBlockquoteDepth||fe.maxBlockquoteDepth>=Ne.quote?me.push(Ie.formatting+"-"+Ne.formatting[Pt]+"-"+Ne.quote):me.push("error"))}if(Ne.taskOpen)return me.push("meta"),me.length?me.join(" "):null;if(Ne.taskClosed)return me.push("property"),me.length?me.join(" "):null;if(Ne.linkHref?me.push(Ie.linkHref,"url"):(Ne.strong&&me.push(Ie.strong),Ne.em&&me.push(Ie.em),Ne.strikethrough&&me.push(Ie.strikethrough),Ne.emoji&&me.push(Ie.emoji),Ne.linkText&&me.push(Ie.linkText),Ne.code&&me.push(Ie.code),Ne.image&&me.push(Ie.image),Ne.imageAltText&&me.push(Ie.imageAltText,"link"),Ne.imageMarker&&me.push(Ie.imageMarker)),Ne.header&&me.push(Ie.header,Ie.header+"-"+Ne.header),Ne.quote&&(me.push(Ie.quote),!fe.maxBlockquoteDepth||fe.maxBlockquoteDepth>=Ne.quote?me.push(Ie.quote+"-"+Ne.quote):me.push(Ie.quote+"-"+fe.maxBlockquoteDepth)),Ne.list!==!1){var Ut=(Ne.listStack.length-1)%3;Ut?Ut===1?me.push(Ie.list2):me.push(Ie.list3):me.push(Ie.list1)}return Ne.trailingSpaceNewLine?me.push("trailing-space-new-line"):Ne.trailingSpace&&me.push("trailing-space-"+(Ne.trailingSpace%2?"a":"b")),me.length?me.join(" "):null}function ot(Ne,me){if(Ne.match(it,!0))return yt(me)}function ct(Ne,me){var Pt=me.text(Ne,me);if(typeof Pt!="undefined")return Pt;if(me.list)return me.list=null,yt(me);if(me.taskList){var Ut=Ne.match(tt,!0)[1]===" ";return Ut?me.taskOpen=!0:me.taskClosed=!0,fe.highlightFormatting&&(me.formatting="task"),me.taskList=!1,yt(me)}if(me.taskOpen=!1,me.taskClosed=!1,me.header&&Ne.match(/^#+$/,!0))return fe.highlightFormatting&&(me.formatting="header"),yt(me);var kt=Ne.next();if(me.linkTitle){me.linkTitle=!1;var ge=kt;kt==="("&&(ge=")"),ge=(ge+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var et="^\\s*(?:[^"+ge+"\\\\]+|\\\\\\\\|\\\\.)"+ge;if(Ne.match(new RegExp(et),!0))return Ie.linkHref}if(kt==="`"){var rt=me.formatting;fe.highlightFormatting&&(me.formatting="code"),Ne.eatWhile("`");var _t=Ne.current().length;if(me.code==0&&(!me.quote||_t==1))return me.code=_t,yt(me);if(_t==me.code){var Qe=yt(me);return me.code=0,Qe}else return me.formatting=rt,yt(me)}else if(me.code)return yt(me);if(kt==="\\"&&(Ne.next(),fe.highlightFormatting)){var Bt=yt(me),qe=Ie.formatting+"-escape";return Bt?Bt+" "+qe:qe}if(kt==="!"&&Ne.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return me.imageMarker=!0,me.image=!0,fe.highlightFormatting&&(me.formatting="image"),yt(me);if(kt==="["&&me.imageMarker&&Ne.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return me.imageMarker=!1,me.imageAltText=!0,fe.highlightFormatting&&(me.formatting="image"),yt(me);if(kt==="]"&&me.imageAltText){fe.highlightFormatting&&(me.formatting="image");var Bt=yt(me);return me.imageAltText=!1,me.image=!1,me.inline=me.f=lt,Bt}if(kt==="["&&!me.image)return me.linkText&&Ne.match(/^.*?\]/)||(me.linkText=!0,fe.highlightFormatting&&(me.formatting="link")),yt(me);if(kt==="]"&&me.linkText){fe.highlightFormatting&&(me.formatting="link");var Bt=yt(me);return me.linkText=!1,me.inline=me.f=Ne.match(/\(.*?\)| ?\[.*?\]/,!1)?lt:ct,Bt}if(kt==="<"&&Ne.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){me.f=me.inline=Se,fe.highlightFormatting&&(me.formatting="link");var Bt=yt(me);return Bt?Bt+=" ":Bt="",Bt+Ie.linkInline}if(kt==="<"&&Ne.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){me.f=me.inline=Se,fe.highlightFormatting&&(me.formatting="link");var Bt=yt(me);return Bt?Bt+=" ":Bt="",Bt+Ie.linkEmail}if(fe.xml&&kt==="<"&&Ne.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var tn=Ne.string.indexOf(">",Ne.pos);if(tn!=-1){var Tt=Ne.string.substring(Ne.start,tn);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Tt)&&(me.md_inside=!0)}return Ne.backUp(1),me.htmlState=b.startState(Ue),At(Ne,me,nt)}if(fe.xml&&kt==="<"&&Ne.match(/^\/\w*?>/))return me.md_inside=!1,"tag";if(kt==="*"||kt==="_"){for(var ae=1,ne=Ne.pos==1?" ":Ne.string.charAt(Ne.pos-2);ae<3&&Ne.eat(kt);)ae++;var te=Ne.peek()||" ",oe=!/\s/.test(te)&&(!Oe.test(te)||/\s/.test(ne)||Oe.test(ne)),ce=!/\s/.test(ne)&&(!Oe.test(ne)||/\s/.test(te)||Oe.test(te)),re=null,le=null;if(ae%2&&(!me.em&&oe&&(kt==="*"||!ce||Oe.test(ne))?re=!0:me.em==kt&&ce&&(kt==="*"||!oe||Oe.test(te))&&(re=!1)),ae>1&&(!me.strong&&oe&&(kt==="*"||!ce||Oe.test(ne))?le=!0:me.strong==kt&&ce&&(kt==="*"||!oe||Oe.test(te))&&(le=!1)),le!=null||re!=null){fe.highlightFormatting&&(me.formatting=re==null?"strong":le==null?"em":"strong em"),re===!0&&(me.em=kt),le===!0&&(me.strong=kt);var Qe=yt(me);return re===!1&&(me.em=!1),le===!1&&(me.strong=!1),Qe}}else if(kt===" "&&(Ne.eat("*")||Ne.eat("_"))){if(Ne.peek()===" ")return yt(me);Ne.backUp(1)}if(fe.strikethrough){if(kt==="~"&&Ne.eatWhile(kt)){if(me.strikethrough){fe.highlightFormatting&&(me.formatting="strikethrough");var Qe=yt(me);return me.strikethrough=!1,Qe}else if(Ne.match(/^[^\s]/,!1))return me.strikethrough=!0,fe.highlightFormatting&&(me.formatting="strikethrough"),yt(me)}else if(kt===" "&&Ne.match(/^~~/,!0)){if(Ne.peek()===" ")return yt(me);Ne.backUp(2)}}if(fe.emoji&&kt===":"&&Ne.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){me.emoji=!0,fe.highlightFormatting&&(me.formatting="emoji");var ye=yt(me);return me.emoji=!1,ye}return kt===" "&&(Ne.match(/^ +$/,!1)?me.trailingSpace++:me.trailingSpace&&(me.trailingSpaceNewLine=!0)),yt(me)}function Se(Ne,me){var Pt=Ne.next();if(Pt===">"){me.f=me.inline=ct,fe.highlightFormatting&&(me.formatting="link");var Ut=yt(me);return Ut?Ut+=" ":Ut="",Ut+Ie.linkInline}return Ne.match(/^[^>]+/,!0),Ie.linkInline}function lt(Ne,me){if(Ne.eatSpace())return null;var Pt=Ne.next();return Pt==="("||Pt==="["?(me.f=me.inline=de(Pt==="("?")":"]"),fe.highlightFormatting&&(me.formatting="link-string"),me.linkHref=!0,yt(me)):"error"}var Ge={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function de(Ne){return function(me,Pt){var Ut=me.next();if(Ut===Ne){Pt.f=Pt.inline=ct,fe.highlightFormatting&&(Pt.formatting="link-string");var kt=yt(Pt);return Pt.linkHref=!1,kt}return me.match(Ge[Ne]),Pt.linkHref=!0,yt(Pt)}}function Dt(Ne,me){return Ne.match(/^([^\]\\]|\\.)*\]:/,!1)?(me.f=Ke,Ne.next(),fe.highlightFormatting&&(me.formatting="link"),me.linkText=!0,yt(me)):pt(Ne,me,ct)}function Ke(Ne,me){if(Ne.match(/^\]:/,!0)){me.f=me.inline=gt,fe.highlightFormatting&&(me.formatting="link");var Pt=yt(me);return me.linkText=!1,Pt}return Ne.match(/^([^\]\\]|\\.)+/,!0),Ie.linkText}function gt(Ne,me){return Ne.eatSpace()?null:(Ne.match(/^[^\s]+/,!0),Ne.peek()===void 0?me.linkTitle=!0:Ne.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),me.f=me.inline=ct,Ie.linkHref+" url")}var Yt={startState:function(){return{f:Je,prevLine:{stream:null},thisLine:{stream:null},block:Je,htmlState:null,indentation:0,inline:ct,text:ot,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(Ne){return{f:Ne.f,prevLine:Ne.prevLine,thisLine:Ne.thisLine,block:Ne.block,htmlState:Ne.htmlState&&b.copyState(Ue,Ne.htmlState),indentation:Ne.indentation,localMode:Ne.localMode,localState:Ne.localMode?b.copyState(Ne.localMode,Ne.localState):null,inline:Ne.inline,text:Ne.text,formatting:!1,linkText:Ne.linkText,linkTitle:Ne.linkTitle,linkHref:Ne.linkHref,code:Ne.code,em:Ne.em,strong:Ne.strong,strikethrough:Ne.strikethrough,emoji:Ne.emoji,header:Ne.header,setext:Ne.setext,hr:Ne.hr,taskList:Ne.taskList,list:Ne.list,listStack:Ne.listStack.slice(0),quote:Ne.quote,indentedCode:Ne.indentedCode,trailingSpace:Ne.trailingSpace,trailingSpaceNewLine:Ne.trailingSpaceNewLine,md_inside:Ne.md_inside,fencedEndRE:Ne.fencedEndRE}},token:function(Ne,me){if(me.formatting=!1,Ne!=me.thisLine.stream){if(me.header=0,me.hr=!1,Ne.match(/^\s*$/,!0))return Be(me),null;if(me.prevLine=me.thisLine,me.thisLine={stream:Ne},me.taskList=!1,me.trailingSpace=0,me.trailingSpaceNewLine=!1,!me.localState&&(me.f=me.block,me.f!=nt)){var Pt=Ne.match(/^\s*/,!0)[0].replace(/\t/g,Xe).length;if(me.indentation=Pt,me.indentationDiff=null,Pt>0)return null}}return me.f(Ne,me)},innerMode:function(Ne){return Ne.block==nt?{state:Ne.htmlState,mode:Ue}:Ne.localState?{state:Ne.localState,mode:Ne.localMode}:{state:Ne,mode:Yt}},indent:function(Ne,me,Pt){return Ne.block==nt&&Ue.indent?Ue.indent(Ne.htmlState,me,Pt):Ne.localState&&Ne.localMode.indent?Ne.localMode.indent(Ne.localState,me,Pt):b.Pass},blankLine:Be,getType:yt,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Yt},"xml"),b.defineMIME("text/markdown","markdown"),b.defineMIME("text/x-markdown","markdown")})},98101:function(wn,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 We=0;We<b.modeInfo.length;We++){var fe=b.modeInfo[We];fe.mimes&&(fe.mime=fe.mimes[0])}b.findModeByMIME=function(Ue){Ue=Ue.toLowerCase();for(var Ee=0;Ee<b.modeInfo.length;Ee++){var xe=b.modeInfo[Ee];if(xe.mime==Ue)return xe;if(xe.mimes){for(var Ie=0;Ie<xe.mimes.length;Ie++)if(xe.mimes[Ie]==Ue)return xe}}if(/\+xml$/.test(Ue))return b.findModeByMIME("application/xml");if(/\+json$/.test(Ue))return b.findModeByMIME("application/json")},b.findModeByExtension=function(Ue){Ue=Ue.toLowerCase();for(var Ee=0;Ee<b.modeInfo.length;Ee++){var xe=b.modeInfo[Ee];if(xe.ext){for(var Ie=0;Ie<xe.ext.length;Ie++)if(xe.ext[Ie]==Ue)return xe}}},b.findModeByFileName=function(Ue){for(var Ee=0;Ee<b.modeInfo.length;Ee++){var xe=b.modeInfo[Ee];if(xe.file&&xe.file.test(Ue))return xe}var Ie=Ue.lastIndexOf("."),Ze=Ie>-1&&Ue.substring(Ie+1,Ue.length);if(Ze)return b.findModeByExtension(Ze)},b.findModeByName=function(Ue){Ue=Ue.toLowerCase();for(var Ee=0;Ee<b.modeInfo.length;Ee++){var xe=b.modeInfo[Ee];if(xe.name.toLowerCase()==Ue)return xe;if(xe.alias){for(var Ie=0;Ie<xe.alias.length;Ie++)if(xe.alias[Ie].toLowerCase()==Ue)return xe}}}})},67549:function(wn,Qt,ee){(function(b){b(ee(89780))})(function(b){"use strict";b.defineMode("stex",function(We,fe){"use strict";function Ue(it,$e){it.cmdState.push($e)}function Ee(it){return it.cmdState.length>0?it.cmdState[it.cmdState.length-1]:null}function xe(it){var $e=it.cmdState.pop();$e&&$e.closeBracket()}function Ie(it){for(var $e=it.cmdState,Te=$e.length-1;Te>=0;Te--){var Oe=$e[Te];if(Oe.name!="DEFAULT")return Oe}return{styleIdentifier:function(){return null}}}function Ze(it,$e,Te){return function(){this.name=it,this.bracketNo=0,this.style=$e,this.styles=Te,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var Ce={};Ce.importmodule=Ze("importmodule","tag",["string","builtin"]),Ce.documentclass=Ze("documentclass","tag",["","atom"]),Ce.usepackage=Ze("usepackage","tag",["atom"]),Ce.begin=Ze("begin","tag",["atom"]),Ce.end=Ze("end","tag",["atom"]),Ce.label=Ze("label","tag",["atom"]),Ce.ref=Ze("ref","tag",["atom"]),Ce.eqref=Ze("eqref","tag",["atom"]),Ce.cite=Ze("cite","tag",["atom"]),Ce.bibitem=Ze("bibitem","tag",["atom"]),Ce.Bibitem=Ze("Bibitem","tag",["atom"]),Ce.RBibitem=Ze("RBibitem","tag",["atom"]),Ce.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function ue(it,$e){it.f=$e}function tt(it,$e){var Te;if(it.match(/^\\[a-zA-Z@]+/)){var Oe=it.current().slice(1);return Te=Ce.hasOwnProperty(Oe)?Ce[Oe]:Ce.DEFAULT,Te=new Te,Ue($e,Te),ue($e,Rt),Te.style}if(it.match(/^\\[$&%#{}_]/)||it.match(/^\\[,;!\/\\]/))return"tag";if(it.match("\\["))return ue($e,function(pt,At){return Le(pt,At,"\\]")}),"keyword";if(it.match("\\("))return ue($e,function(pt,At){return Le(pt,At,"\\)")}),"keyword";if(it.match("$$"))return ue($e,function(pt,At){return Le(pt,At,"$$")}),"keyword";if(it.match("$"))return ue($e,function(pt,At){return Le(pt,At,"$")}),"keyword";var Xe=it.next();if(Xe=="%")return it.skipToEnd(),"comment";if(Xe=="}"||Xe=="]"){if(Te=Ee($e),Te)Te.closeBracket(Xe),ue($e,Rt);else return"error";return"bracket"}else return Xe=="{"||Xe=="["?(Te=Ce.DEFAULT,Te=new Te,Ue($e,Te),"bracket"):/\d/.test(Xe)?(it.eatWhile(/[\w.%]/),"atom"):(it.eatWhile(/[\w\-_]/),Te=Ie($e),Te.name=="begin"&&(Te.argument=it.current()),Te.styleIdentifier())}function Le(it,$e,Te){if(it.eatSpace())return null;if(Te&&it.match(Te))return ue($e,tt),"keyword";if(it.match(/^\\[a-zA-Z@]+/))return"tag";if(it.match(/^[a-zA-Z]+/))return"variable-2";if(it.match(/^\\[$&%#{}_]/)||it.match(/^\\[,;!\/]/)||it.match(/^[\^_&]/))return"tag";if(it.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(it.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var Oe=it.next();return Oe=="{"||Oe=="}"||Oe=="["||Oe=="]"||Oe=="("||Oe==")"?"bracket":Oe=="%"?(it.skipToEnd(),"comment"):"error"}function Rt(it,$e){var Te=it.peek(),Oe;return Te=="{"||Te=="["?(Oe=Ee($e),Oe.openBracket(Te),it.eat(Te),ue($e,tt),"bracket"):/[ \t\r]/.test(Te)?(it.eat(Te),null):(ue($e,tt),xe($e),tt(it,$e))}return{startState:function(){var it=fe.inMathMode?function($e,Te){return Le($e,Te)}:tt;return{cmdState:[],f:it}},copyState:function(it){return{cmdState:it.cmdState.slice(),f:it.f}},token:function(it,$e){return $e.f(it,$e)},blankLine:function(it){it.f=tt,it.cmdState.length=0},lineComment:"%"}}),b.defineMIME("text/x-stex","stex"),b.defineMIME("text/x-latex","stex")})},15525:function(wn,Qt,ee){(function(b){b(ee(89780))})(function(b){"use strict";var We={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(Ue,Ee){var xe=Ue.indentUnit,Ie={},Ze=Ee.htmlMode?We:fe;for(var Ce in Ze)Ie[Ce]=Ze[Ce];for(var Ce in Ee)Ie[Ce]=Ee[Ce];var ue,tt;function Le(Se,lt){function Ge(Ke){return lt.tokenize=Ke,Ke(Se,lt)}var de=Se.next();if(de=="<")return Se.eat("!")?Se.eat("[")?Se.match("CDATA[")?Ge($e("atom","]]>")):null:Se.match("--")?Ge($e("comment","-->")):Se.match("DOCTYPE",!0,!0)?(Se.eatWhile(/[\w\._\-]/),Ge(Te(1))):null:Se.eat("?")?(Se.eatWhile(/[\w\._\-]/),lt.tokenize=$e("meta","?>"),"meta"):(ue=Se.eat("/")?"closeTag":"openTag",lt.tokenize=Rt,"tag bracket");if(de=="&"){var Dt;return Se.eat("#")?Se.eat("x")?Dt=Se.eatWhile(/[a-fA-F\d]/)&&Se.eat(";"):Dt=Se.eatWhile(/[\d]/)&&Se.eat(";"):Dt=Se.eatWhile(/[\w\.\-:]/)&&Se.eat(";"),Dt?"atom":"error"}else return Se.eatWhile(/[^&<]/),null}Le.isInText=!0;function Rt(Se,lt){var Ge=Se.next();if(Ge==">"||Ge=="/"&&Se.eat(">"))return lt.tokenize=Le,ue=Ge==">"?"endTag":"selfcloseTag","tag bracket";if(Ge=="=")return ue="equals",null;if(Ge=="<"){lt.tokenize=Le,lt.state=At,lt.tagName=lt.tagStart=null;var de=lt.tokenize(Se,lt);return de?de+" tag error":"tag error"}else return/[\'\"]/.test(Ge)?(lt.tokenize=it(Ge),lt.stringStartCol=Se.column(),lt.tokenize(Se,lt)):(Se.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function it(Se){var lt=function(Ge,de){for(;!Ge.eol();)if(Ge.next()==Se){de.tokenize=Rt;break}return"string"};return lt.isInAttribute=!0,lt}function $e(Se,lt){return function(Ge,de){for(;!Ge.eol();){if(Ge.match(lt)){de.tokenize=Le;break}Ge.next()}return Se}}function Te(Se){return function(lt,Ge){for(var de;(de=lt.next())!=null;){if(de=="<")return Ge.tokenize=Te(Se+1),Ge.tokenize(lt,Ge);if(de==">")if(Se==1){Ge.tokenize=Le;break}else return Ge.tokenize=Te(Se-1),Ge.tokenize(lt,Ge)}return"meta"}}function Oe(Se,lt,Ge){this.prev=Se.context,this.tagName=lt,this.indent=Se.indented,this.startOfLine=Ge,(Ie.doNotIndent.hasOwnProperty(lt)||Se.context&&Se.context.noIndent)&&(this.noIndent=!0)}function Xe(Se){Se.context&&(Se.context=Se.context.prev)}function pt(Se,lt){for(var Ge;;){if(!Se.context||(Ge=Se.context.tagName,!Ie.contextGrabbers.hasOwnProperty(Ge)||!Ie.contextGrabbers[Ge].hasOwnProperty(lt)))return;Xe(Se)}}function At(Se,lt,Ge){return Se=="openTag"?(Ge.tagStart=lt.column(),je):Se=="closeTag"?Be:At}function je(Se,lt,Ge){return Se=="word"?(Ge.tagName=lt.current(),tt="tag",zt):Ie.allowMissingTagName&&Se=="endTag"?(tt="tag bracket",zt(Se,lt,Ge)):(tt="error",je)}function Be(Se,lt,Ge){if(Se=="word"){var de=lt.current();return Ge.context&&Ge.context.tagName!=de&&Ie.implicitlyClosed.hasOwnProperty(Ge.context.tagName)&&Xe(Ge),Ge.context&&Ge.context.tagName==de||Ie.matchClosing===!1?(tt="tag",Je):(tt="tag error",nt)}else return Ie.allowMissingTagName&&Se=="endTag"?(tt="tag bracket",Je(Se,lt,Ge)):(tt="error",nt)}function Je(Se,lt,Ge){return Se!="endTag"?(tt="error",Je):(Xe(Ge),At)}function nt(Se,lt,Ge){return tt="error",Je(Se,lt,Ge)}function zt(Se,lt,Ge){if(Se=="word")return tt="attribute",yt;if(Se=="endTag"||Se=="selfcloseTag"){var de=Ge.tagName,Dt=Ge.tagStart;return Ge.tagName=Ge.tagStart=null,Se=="selfcloseTag"||Ie.autoSelfClosers.hasOwnProperty(de)?pt(Ge,de):(pt(Ge,de),Ge.context=new Oe(Ge,de,Dt==Ge.indented)),At}return tt="error",zt}function yt(Se,lt,Ge){return Se=="equals"?ot:(Ie.allowMissing||(tt="error"),zt(Se,lt,Ge))}function ot(Se,lt,Ge){return Se=="string"?ct:Se=="word"&&Ie.allowUnquoted?(tt="string",zt):(tt="error",zt(Se,lt,Ge))}function ct(Se,lt,Ge){return Se=="string"?ct:zt(Se,lt,Ge)}return{startState:function(Se){var lt={tokenize:Le,state:At,indented:Se||0,tagName:null,tagStart:null,context:null};return Se!=null&&(lt.baseIndent=Se),lt},token:function(Se,lt){if(!lt.tagName&&Se.sol()&&(lt.indented=Se.indentation()),Se.eatSpace())return null;ue=null;var Ge=lt.tokenize(Se,lt);return(Ge||ue)&&Ge!="comment"&&(tt=null,lt.state=lt.state(ue||Ge,Se,lt),tt&&(Ge=tt=="error"?Ge+" error":tt)),Ge},indent:function(Se,lt,Ge){var de=Se.context;if(Se.tokenize.isInAttribute)return Se.tagStart==Se.indented?Se.stringStartCol+1:Se.indented+xe;if(de&&de.noIndent)return b.Pass;if(Se.tokenize!=Rt&&Se.tokenize!=Le)return Ge?Ge.match(/^(\s*)/)[0].length:0;if(Se.tagName)return Ie.multilineTagIndentPastTag!==!1?Se.tagStart+Se.tagName.length+2:Se.tagStart+xe*(Ie.multilineTagIndentFactor||1);if(Ie.alignCDATA&&/<!\[CDATA\[/.test(lt))return 0;var Dt=lt&&/^<(\/)?([\w_:\.-]*)/.exec(lt);if(Dt&&Dt[1])for(;de;)if(de.tagName==Dt[2]){de=de.prev;break}else if(Ie.implicitlyClosed.hasOwnProperty(de.tagName))de=de.prev;else break;else if(Dt)for(;de;){var Ke=Ie.contextGrabbers[de.tagName];if(Ke&&Ke.hasOwnProperty(Dt[2]))de=de.prev;else break}for(;de&&de.prev&&!de.startOfLine;)de=de.prev;return de?de.indent+xe:Se.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:Ie.htmlMode?"html":"xml",helperType:Ie.htmlMode?"html":"xml",skipAttribute:function(Se){Se.state==ot&&(Se.state=zt)},xmlCurrentTag:function(Se){return Se.tagName?{name:Se.tagName,close:Se.type=="closeTag"}:null},xmlCurrentContext:function(Se){for(var lt=[],Ge=Se.context;Ge;Ge=Ge.prev)Ge.tagName&<.push(Ge.tagName);return lt.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(wn,Qt,ee){"use strict";ee.d(Qt,{hP:function(){return Tt}});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 We(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(Ae){try{ft(oe.next(Ae))}catch(ke){re(ke)}}function ye(Ae){try{ft(oe.throw(Ae))}catch(ke){re(ke)}}function ft(Ae){var ke;Ae.done?ce(Ae.value):(ke=Ae.value,ke instanceof te?ke:new te(function(Ve){Ve(ke)})).then(le,ye)}ft((oe=oe.apply(ae,ne||[])).next())})}function Ue(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:ye(0),throw:ye(1),return:ye(2)},typeof Symbol=="function"&&(re[Symbol.iterator]=function(){return this}),re;function ye(ft){return function(Ae){return function(ke){if(te)throw new TypeError("Generator is already executing.");for(;le;)try{if(te=1,oe&&(ce=2&ke[0]?oe.return:ke[0]?oe.throw||((ce=oe.return)&&ce.call(oe),0):oe.next)&&!(ce=ce.call(oe,ke[1])).done)return ce;switch(oe=0,ce&&(ke=[2&ke[0],ce.value]),ke[0]){case 0:case 1:ce=ke;break;case 4:return le.label++,{value:ke[1],done:!1};case 5:le.label++,oe=ke[1],ke=[0];continue;case 7:ke=le.ops.pop(),le.trys.pop();continue;default:if(ce=le.trys,!((ce=ce.length>0&&ce[ce.length-1])||ke[0]!==6&&ke[0]!==2)){le=0;continue}if(ke[0]===3&&(!ce||ke[1]>ce[0]&&ke[1]<ce[3])){le.label=ke[1];break}if(ke[0]===6&&le.label<ce[1]){le.label=ce[1],ce=ke;break}if(ce&&le.label<ce[2]){le.label=ce[2],le.ops.push(ke);break}ce[2]&&le.ops.pop(),le.trys.pop();continue}ke=ne.call(ae,le)}catch(Ve){ke=[6,Ve],oe=0}finally{te=ce=0}if(5&ke[0])throw ke[1];return{value:ke[0]?ke[1]:void 0,done:!0}}([ft,Ae])}}}function Ee(){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,ye=re.length;le<ye;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],ye=re[1];ne.setAttribute(le,ye)}},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,ye){var ft=document.createElementNS("http://www.w3.org/2000/svg","marker");return ae.setAttributes(ft,[["id",ne],["orient",te],["markerWidth",oe.toString()],["markerHeight",ce.toString()],["refX",re.toString()],["refY",le.toString()]]),ft.appendChild(ye),ft},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}(),Ie=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}(),Ze=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 ye=document.createElementNS("http://www.w3.org/2000/svg","svg");ye.setAttribute("xmlns","http://www.w3.org/2000/svg"),ye.setAttribute("width",te.width.baseVal.valueAsString),ye.setAttribute("height",te.height.baseVal.valueAsString),ye.setAttribute("viewBox","0 0 "+te.viewBox.baseVal.width.toString()+" "+te.viewBox.baseVal.height.toString()),ye.innerHTML=te.innerHTML,ce.naturalSize===!0?(ye.width.baseVal.value=ne.naturalWidth,ye.height.baseVal.value=ne.naturalHeight):ce.width!==void 0&&ce.height!==void 0&&(ye.width.baseVal.value=ce.width,ye.height.baseVal.value=ce.height),le.width=ye.width.baseVal.value,le.height=ye.height.baseVal.value;var ft=ye.outerHTML,Ae=le.getContext("2d");ce.markersOnly!==!0&&Ae.drawImage(ne,0,0,le.width,le.height);var ke=window.URL,Ve=new Image(le.width,le.height);Ve.setAttribute("crossOrigin","anonymous");var Ye=new Blob([ft],{type:"image/svg+xml"}),mt=ke.createObjectURL(Ye);Ve.onload=function(){Ae.drawImage(Ve,0,0),ke.revokeObjectURL(mt);var we=le.toDataURL(ce.imageType,ce.imageQuality);re(we)},Ve.src=mt})},ae}(),Ce=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 tt("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new tt("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
|
from {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
`)),this.addRule(new tt("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
|
from {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
`)),this.addClass(new Le("fade_in",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
|
`)),this.addClass(new Le("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}(),tt=function(ae,ne){this.selector=ae,this.style=ne},Le=function(ae,ne){this.localName=ae,this.style=ne},Rt=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 Le("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 Le("toolbar_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new Le("toolbar-block",`
|
|
|
display: inline-block;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new Le("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 Le("toolbar-overflow-block_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`));var ne=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new Le("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 Le("toolbar_button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new Le("toolbar_active_button",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new tt("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`)),this.styles.addRule(new tt("."+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}(),it=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 Le("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 Le("toolbox_colors",`
|
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
|
`));var te=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new Le("toolbox-button-row",`
|
|
|
display: flex;
|
|
|
cursor: default;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new Le("toolbox-button-row_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new Le("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 Le("toolbox-panel-row_colors",`
|
|
|
background-color: `+((ne=this.uiStyleSettings.toolboxBackgroundColor)!==null&&ne!==void 0?ne:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new Le("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 Le("toolbox-button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new Le("toolbox-active-button_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.styles.addRule(new tt("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new tt("."+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 ye=document.createElement("div");ye.className=ce.toolboxButtonStyleClass.name+" "+((le=ce.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&le!==void 0?le:ce.toolboxButtonStyleColorsClass.name),ye.innerHTML=re.icon,ye.title=re.title,ye.addEventListener("click",function(){ce.panelButtonClick(re)}),ce.panelButtons.push(ye),ce.buttonRow.appendChild(ye)}),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 ye,ft;re.className=te.toolboxButtonStyleClass.name+" "+(le===oe?""+((ye=te.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&ye!==void 0?ye:te.toolboxActiveButtonStyleColorsClass.name):""+((ft=te.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&ft!==void 0?ft:te.toolboxButtonStyleColorsClass.name))})},ae}(),$e=function(ae,ne){this.title=ae,this.icon=ne},Te=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 We(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 ye=document.createElement("div");return ye.style.display="inline-block",ye.style.width=re-2+"px",ye.style.height=re-2+"px",ye.style.backgroundColor=te,ye.style.borderRadius=re/2+"px",te==="transparent"&&(ye.style.fill=this.uiStyleSettings.toolboxAccentColor,ye.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(ye),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}($e),Oe=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}(),Xe=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}(),pt=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}(),At=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}(),je=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 We(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 Xe,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 pt;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,ye=this.height+this.CB_DISTANCE-te/2,ft=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,ft,ce),this.positionGrip(this.controlGrips.centerLeft.visual,oe,le),this.positionGrip(this.controlGrips.centerRight.visual,ft,le),this.positionGrip(this.controlGrips.bottomLeft.visual,oe,ye),this.positionGrip(this.controlGrips.bottomCenter.visual,re,ye),this.positionGrip(this.controlGrips.bottomRight.visual,ft,ye),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:At.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:At.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(At.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,oe.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(At.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}(Oe),Be=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 We(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}(je),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 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 We(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 ye=document.createElement("div");ye.style.minHeight="20px",ye.style.flexGrow="2",ye.style.display="flex",ye.style.alignItems="center";var ft=document.createElement("hr");ft.style.minWidth="20px",ft.style.border="0px",ft.style.borderTop=ce+"px solid "+te.uiStyleSettings.toolboxColor,ft.style.flexGrow="2",ye.appendChild(ft),re.appendChild(ye),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}($e),nt=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 We(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 ye=`<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=ye,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}($e),zt=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 Te("Line color",ce.defaultColorSet,ce.defaultColor),re.strokePanel.onColorChanged=re.setStrokeColor,re.strokeWidthPanel=new Je("Line width",ce.defaultStrokeWidths,ce.defaultStrokeWidth),re.strokeWidthPanel.onWidthChanged=re.setStrokeWidth,re.strokeStylePanel=new nt("Line style",ce.defaultStrokeDasharrays,ce.defaultStrokeDasharray),re.strokeStylePanel.onStyleChanged=re.setStrokeDasharray,re}return We(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}(Be),yt=function(){this.defaultColorSet=["#EF4444","#10B981","#2563EB","#FFFF00","#7C3AED","#F472B6","#000000","#FFFFFF"],this.defaultColor=this.defaultColorSet[0],this.defaultFillColor=this.defaultColorSet[0],this.defaultStrokeColor=this.defaultColorSet[7],this.defaultHighlightColor=this.defaultColorSet[3],this.defaultStrokeWidth=3,this.defaultStrokeDasharray="",this.defaultHighlightOpacity=.5,this.defaultFontFamily="Helvetica, Arial, sans-serif",this.defaultStrokeWidths=[1,2,3,5,10],this.defaultStrokeDasharrays=["","3","12 3","9 6 3 6"],this.defaultOpacitySteps=[.1,.25,.5,.75,1],this.displayMode="inline",this.defaultFontFamilies=['Times, "Times New Roman", serif',"Helvetica, Arial, sans-serif",'Courier, "Courier New", monospace',"cursive","fantasy"],this.popupMargin=30,this.newFreehandMarkerOnPointerUp=!1,this.defaultColorsFollowCurrentColors=!1,this.freehandPixelRatio=1,this.disableRotation=!1,this.defaultCaptionFontSize="1rem",this.defaultCaptionText="Text"},ot=function(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 We(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 pt;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}(Oe),ct=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 Te("Line color",ce.defaultColorSet,ce.defaultColor),re.strokePanel.onColorChanged=re.setStrokeColor,re.strokeWidthPanel=new Je("Line width",ce.defaultStrokeWidths,ce.defaultStrokeWidth),re.strokeWidthPanel.onWidthChanged=re.setStrokeWidth,re.strokeStylePanel=new nt("Line style",ce.defaultStrokeDasharrays,ce.defaultStrokeDasharray),re.strokeStylePanel.onStyleChanged=re.setStrokeDasharray,re}return We(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}(ot),Se=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 We(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 ye=document.createElement("div");ye.style.whiteSpace="nowrap",ye.style.overflow="hidden",ye.style.textOverflow="ellipsis",ye.innerHTML="The quick brown fox jumps over the lazy dog",le.appendChild(ye),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}($e),lt=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 Te("Color",ce.defaultColorSet,ce.defaultColor),re.colorPanel.onColorChanged=re.setColor,re.fontFamilyPanel=new Se("Font",ce.defaultFontFamilies,ce.defaultFontFamily),re.fontFamilyPanel.onFontChanged=re.setFont,re}return We(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}(je),Ge=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 Te("Color",ce.defaultColorSet,ce.defaultColor),re.colorPanel.onColorChanged=re.setColor,re.lineWidthPanel=new Je("Line width",ce.defaultStrokeWidths,ce.defaultStrokeWidth),re.lineWidthPanel.onWidthChanged=re.setLineWidth,re}return We(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],ye=oe[3],ft=!1,Ae=0;Ae<this.canvasElement.height;Ae++)for(var ke=0;ke<this.canvasElement.width;ke++)te.data[Ae*this.canvasElement.width*4+4*ke+3]>0&&(ft=!0,Ae<re&&(re=Ae),ke<ce&&(ce=ke),Ae>ye&&(ye=Ae),ke>le&&(le=ke));if(ft){this.left=ce/this.pixelRatio,this.top=re/this.pixelRatio,this.width=(le-ce)/this.pixelRatio,this.height=(ye-re)/this.pixelRatio;var Ve=document.createElement("canvas");Ve.width=le-ce,Ve.height=ye-re,Ve.getContext("2d").putImageData(this.canvasContext.getImageData(ce,re,le-ce,ye-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}(je),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 We(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(ye){var ft="both";switch(ye){case 0:ft="both";break;case 1:ft="start";break;case 2:ft="end";break;case 3:ft="none"}var Ae=document.createElement("div");if(Ae.style.display="flex",Ae.style.flexGrow="2",Ae.style.alignItems="center",Ae.style.justifyContent="space-between",Ae.style.padding="5px",Ae.style.borderWidth="2px",Ae.style.borderStyle="solid",Ae.style.borderColor=ft===re.currentType?re.uiStyleSettings.toolboxAccentColor:"transparent",Ae.addEventListener("click",function(){te.setCurrentType(ft,Ae)}),oe.appendChild(Ae),ft==="both"||ft==="start"){var ke=document.createElement("div");ke.style.display="flex",ke.style.alignItems="center",ke.style.minHeight="20px",ke.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>`,ke.style.marginLeft="5px",Ae.appendChild(ke)}var Ve=document.createElement("div");Ve.style.display="flex",Ve.style.alignItems="center",Ve.style.minHeight="20px",Ve.style.flexGrow="2";var Ye=document.createElement("hr");if(Ye.style.minWidth="20px",Ye.style.border="0px",Ye.style.borderTop="3px solid "+(re.uiStyleSettings!==void 0?re.uiStyleSettings.toolboxColor:"#eeeeee"),Ye.style.flexGrow="2",Ve.appendChild(Ye),Ae.appendChild(Ve),ft==="both"||ft==="end"){var mt=document.createElement("div");mt.style.display="flex",mt.style.alignItems="center",mt.style.minHeight="20px",mt.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>`,mt.style.marginRight="5px",Ae.appendChild(mt)}re.typeBoxes.push(Ae)},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}($e),Dt=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 We(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}(ct),Ke=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 Te("Color",ce.defaultColorSet,ce.defaultFillColor),re.fillPanel.onColorChanged=re.setFillColor,re}return We(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}(Be),gt=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 We(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}($e),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 Te("Color",ce.defaultColorSet,re.fillColor),re.fillPanel.onColorChanged=re.setFillColor,re.opacityPanel=new gt("Opacity",ce.defaultOpacitySteps,re.opacity),re.opacityPanel.onOpacityChanged=re.setOpacity,re}return We(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}(Ke),Ne='<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>',me='<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>',Pt=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 Te("Text color",ce.defaultColorSet,re.color,Ne),re.colorPanel.onColorChanged=re.setColor,re.bgColorPanel=new Te("Fill color",ce.defaultColorSet,re.bgColor,me),re.bgColorPanel.onColorChanged=re.setBgColor,re.fontFamilyPanel=new Se("Font",ce.defaultFontFamilies,ce.defaultFontFamily),re.fontFamilyPanel.onFontChanged=re.setFont,re.tipGrip=new pt,re.tipGrip.visual.transform.baseVal.appendItem(xe.createTransform()),re.controlBox.appendChild(re.tipGrip.visual),re}return We(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}(lt),Ut=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 Te("Line color",Ee(ce.defaultColorSet,["transparent"]),ce.defaultColor),re.strokePanel.onColorChanged=re.setStrokeColor,re.fillPanel=new Te("Fill color",Ee(ce.defaultColorSet,["transparent"]),re.fillColor,me),re.fillPanel.onColorChanged=re.setFillColor,re.strokeWidthPanel=new Je("Line width",ce.defaultStrokeWidths,ce.defaultStrokeWidth),re.strokeWidthPanel.onWidthChanged=re.setStrokeWidth,re.strokeStylePanel=new nt("Line style",ce.defaultStrokeDasharrays,ce.defaultStrokeDasharray),re.strokeStylePanel.onStyleChanged=re.setStrokeDasharray,re.opacityPanel=new gt("Opacity",ce.defaultOpacitySteps,re.opacity),re.opacityPanel.onOpacityChanged=re.setOpacity,re}return We(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}(je),kt=function(ae){function ne(te,oe,ce){return ae.call(this,te,oe,ce)||this}return We(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}(ct),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 We(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}(Ut),et=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}(),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.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 Te("Line color",ce.defaultColorSet,ce.defaultColor),re.strokePanel.onColorChanged=re.setStrokeColor,re.strokeWidthPanel=new Je("Line width",ce.defaultStrokeWidths,ce.defaultStrokeWidth),re.strokeWidthPanel.onWidthChanged=re.setStrokeWidth,re.strokeStylePanel=new nt("Line style",ce.defaultStrokeDasharrays,ce.defaultStrokeDasharray),re.strokeStylePanel.onStyleChanged=re.setStrokeDasharray,re}return We(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}(ot),_t=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 Te("Line color",Ee(ce.defaultColorSet,["transparent"]),re.strokeColor),re.strokePanel.onColorChanged=re.setStrokeColor,re.fillPanel=new Te("Fill color",Ee(ce.defaultColorSet,["transparent"]),re.fillColor,me),re.fillPanel.onColorChanged=re.setFillColor,re.strokeWidthPanel=new Je("Line width",ce.defaultStrokeWidths,ce.defaultStrokeWidth),re.strokeWidthPanel.onWidthChanged=re.setStrokeWidth,re.strokeStylePanel=new nt("Line style",ce.defaultStrokeDasharrays,ce.defaultStrokeDasharray),re.strokeStylePanel.onStyleChanged=re.setStrokeDasharray,re.fontFamilyPanel=new Se("Font",ce.defaultFontFamilies,ce.defaultFontFamily),re.fontFamilyPanel.onFontChanged=re.setFont,re.textColorPanel=new Te("Text color",ce.defaultColorSet,re.textColor,Ne),re.textColorPanel.onColorChanged=re.setTextColor,re}return We(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}(je),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}(),Bt=function(ae){function ne(te,oe,ce){var re=ae.call(this,te,!1)||this;return re.dataUrl=oe,re.state=ce,re}return We(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 We(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}(),Tt=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 yt,this._isOpen=!1,this.undoRedoManager=new et,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[zt,Ge,Dt,lt,ge,Ut,Yt,Pt,kt,Ke,ct,rt,_t]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[zt,Ge,Dt,lt,Ut,Yt,Pt]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"BASIC_MARKER_TYPES",{get:function(){return[zt,Ge,Dt,lt,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(),Ie.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},ae.prototype.show=function(){var ne=this;this.styles.styleSheetRoot===void 0&&Ce.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Ce.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 Ue(this,function(te){switch(te.label){case 0:return this.setCurrentMarker(),(ne=new Ze).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 lt?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 Rt(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 it(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 ye=new qe(ne,void 0,!0);le(ye),ye.defaultPrevented&&(te=!0)}),!te)){this.setCurrentMarker();for(var oe=function(le){var ye=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(ft){return ft(new qe(ne,ye))})},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 Ue(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 Bt(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 Ge&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(Ge):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){Ie.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(wn,Qt,ee){"use strict";ee.d(Qt,{ZP:function(){return Ie}});var b=ee(72190),We=ee(59301),fe=ee(47273),Ue=0,Ee=(0,fe.Z)();function xe(){var Ze;return Ee?(Ze=Ue,Ue+=1):Ze="TEST_OR_SSR",Ze}function Ie(Ze){var Ce=We.useState(),ue=(0,b.Z)(Ce,2),tt=ue[0],Le=ue[1];return We.useEffect(function(){Le("rc_select_".concat(xe()))},[]),Ze||tt}},37463:function(wn,Qt,ee){"use strict";ee.d(Qt,{Ac:function(){return Et},Xo:function(){return Kt},Wx:function(){return ht},ZP:function(){return An},lk:function(){return At}});var b=ee(60499),We=ee(77654),fe=ee(18642),Ue=ee(85899),Ee=ee(72190),xe=ee(42244),Ie=ee(43749),Ze=ee(18929),Ce=ee(48736),ue=ee(59301),tt=ee(92310),Le=ee.n(tt),Rt=ee(34280),it=ee(49658),$e=ee(8654),Te=function(Ot){var Fe=Ot.className,vt=Ot.customizeIcon,ze=Ot.customizeIconProps,bt=Ot.children,Pe=Ot.onMouseDown,It=Ot.onClick,$t=typeof vt=="function"?vt(ze):vt;return ue.createElement("span",{className:Fe,onMouseDown:function(St){St.preventDefault(),Pe==null||Pe(St)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:It,"aria-hidden":!0},$t!==void 0?$t:ue.createElement("span",{className:Le()(Fe.split(/\s+/).map(function(Vt){return"".concat(Vt,"-icon")}))},bt))},Oe=Te,Xe=function(Ot,Fe,vt,ze,bt){var Pe=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,It=arguments.length>6?arguments[6]:void 0,$t=arguments.length>7?arguments[7]:void 0,Vt=ue.useMemo(function(){if((0,Ie.Z)(ze)==="object")return ze.clearIcon;if(bt)return bt},[ze,bt]),St=ue.useMemo(function(){return!!(!Pe&&ze&&(vt.length||It)&&!($t==="combobox"&&It===""))},[ze,Pe,vt.length,It,$t]);return{allowClear:St,clearIcon:ue.createElement(Oe,{className:"".concat(Ot,"-clear"),onMouseDown:Fe,customizeIcon:Vt},"\xD7")}},pt=ue.createContext(null);function At(){return ue.useContext(pt)}function je(){var ut=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Ot=ue.useState(!1),Fe=(0,Ee.Z)(Ot,2),vt=Fe[0],ze=Fe[1],bt=ue.useRef(null),Pe=function(){window.clearTimeout(bt.current)};ue.useEffect(function(){return Pe},[]);var It=function(Vt,St){Pe(),bt.current=window.setTimeout(function(){ze(Vt),St&&St()},ut)};return[vt,It,Pe]}function Be(){var ut=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Ot=ue.useRef(null),Fe=ue.useRef(null);ue.useEffect(function(){return function(){window.clearTimeout(Fe.current)}},[]);function vt(ze){(ze||Ot.current===null)&&(Ot.current=ze),window.clearTimeout(Fe.current),Fe.current=window.setTimeout(function(){Ot.current=null},ut)}return[function(){return Ot.current},vt]}function Je(ut,Ot,Fe,vt){var ze=ue.useRef(null);ze.current={open:Ot,triggerOpen:Fe,customizedTrigger:vt},ue.useEffect(function(){function bt(Pe){var It;if(!((It=ze.current)!==null&&It!==void 0&&It.customizedTrigger)){var $t=Pe.target;$t.shadowRoot&&Pe.composed&&($t=Pe.composedPath()[0]||$t),ze.current.open&&ut().filter(function(Vt){return Vt}).every(function(Vt){return!Vt.contains($t)&&Vt!==$t})&&ze.current.triggerOpen(!1)}}return window.addEventListener("mousedown",bt),function(){return window.removeEventListener("mousedown",bt)}},[])}var nt=ee(10228);function zt(ut){return ut&&![nt.Z.ESC,nt.Z.SHIFT,nt.Z.BACKSPACE,nt.Z.TAB,nt.Z.WIN_KEY,nt.Z.ALT,nt.Z.META,nt.Z.WIN_KEY_RIGHT,nt.Z.CTRL,nt.Z.SEMICOLON,nt.Z.EQUALS,nt.Z.CAPS_LOCK,nt.Z.CONTEXT_MENU,nt.Z.F1,nt.Z.F2,nt.Z.F3,nt.Z.F4,nt.Z.F5,nt.Z.F6,nt.Z.F7,nt.Z.F8,nt.Z.F9,nt.Z.F10,nt.Z.F11,nt.Z.F12].includes(ut)}var yt=ee(26112),ot=ee(83836);function ct(ut,Ot,Fe){var vt=(0,Ue.Z)((0,Ue.Z)({},ut),Fe?Ot:{});return Object.keys(Ot).forEach(function(ze){var bt=Ot[ze];typeof bt=="function"&&(vt[ze]=function(){for(var Pe,It=arguments.length,$t=new Array(It),Vt=0;Vt<It;Vt++)$t[Vt]=arguments[Vt];return bt.apply(void 0,$t),(Pe=ut[ze])===null||Pe===void 0?void 0:Pe.call.apply(Pe,[ut].concat($t))})}),vt}var Se=ct,lt=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],Ge=function(Ot,Fe){var vt=Ot.prefixCls,ze=Ot.id,bt=Ot.inputElement,Pe=Ot.autoFocus,It=Ot.autoComplete,$t=Ot.editable,Vt=Ot.activeDescendantId,St=Ot.value,xt=Ot.open,wt=Ot.attrs,Ft=(0,xe.Z)(Ot,lt),On=bt||ue.createElement("input",null),In=On,Tn=In.ref,er=In.props;return(0,Ce.Kp)(!("maxLength"in On.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),On=ue.cloneElement(On,(0,Ue.Z)((0,Ue.Z)((0,Ue.Z)({type:"search"},Se(Ft,er,!0)),{},{id:ze,ref:(0,$e.sQ)(Fe,Tn),autoComplete:It||"off",autoFocus:Pe,className:Le()("".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?Vt:void 0},wt),{},{value:$t?St:"",readOnly:!$t,unselectable:$t?null:"on",style:(0,Ue.Z)((0,Ue.Z)({},er.style),{},{opacity:$t?null:0})})),On},de=ue.forwardRef(Ge),Dt=de;function Ke(ut){return Array.isArray(ut)?ut:ut!==void 0?[ut]:[]}var gt=typeof window!="undefined"&&window.document&&window.document.documentElement,Yt=gt;function Ne(ut){return ut!=null}function me(ut){return!ut&&ut!==0}function Pt(ut){return["string","number"].includes((0,Ie.Z)(ut))}function Ut(ut){var Ot=void 0;return ut&&(Pt(ut.title)?Ot=ut.title.toString():Pt(ut.label)&&(Ot=ut.label.toString())),Ot}function kt(ut,Ot){Yt?ue.useLayoutEffect(ut,Ot):ue.useEffect(ut,Ot)}function ge(ut){var Ot;return(Ot=ut.key)!==null&&Ot!==void 0?Ot:ut.value}var et=function(Ot){Ot.preventDefault(),Ot.stopPropagation()},rt=function(Ot){var Fe=Ot.id,vt=Ot.prefixCls,ze=Ot.values,bt=Ot.open,Pe=Ot.searchValue,It=Ot.autoClearSearchValue,$t=Ot.inputRef,Vt=Ot.placeholder,St=Ot.disabled,xt=Ot.mode,wt=Ot.showSearch,Ft=Ot.autoFocus,On=Ot.autoComplete,In=Ot.activeDescendantId,Tn=Ot.tabIndex,er=Ot.removeIcon,lr=Ot.maxTagCount,dr=Ot.maxTagTextLength,Jn=Ot.maxTagPlaceholder,Gn=Jn===void 0?function(Kn){return"+ ".concat(Kn.length," ...")}:Jn,Qn=Ot.tagRender,cr=Ot.onToggleOpen,Er=Ot.onRemove,Cr=Ot.onInputChange,wr=Ot.onInputPaste,Yn=Ot.onInputKeyDown,yr=Ot.onInputMouseDown,mr=Ot.onInputCompositionStart,Vr=Ot.onInputCompositionEnd,Yr=Ot.onInputBlur,_r=ue.useRef(null),Ur=(0,ue.useState)(0),oi=(0,Ee.Z)(Ur,2),Zr=oi[0],Qr=oi[1],Or=(0,ue.useState)(!1),ti=(0,Ee.Z)(Or,2),ci=ti[0],$i=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);kt(function(){Qr(_r.current.scrollWidth)},[xi]);var bi=function(kn,or,br,$n,Mn){return ue.createElement("span",{title:Ut(kn),className:Le()("".concat(vi,"-item"),(0,fe.Z)({},"".concat(vi,"-item-disabled"),br))},ue.createElement("span",{className:"".concat(vi,"-item-content")},or),$n&&ue.createElement(Oe,{className:"".concat(vi,"-item-remove"),onMouseDown:et,onClick:Mn,customizeIcon:er},"\xD7"))},Ar=function(kn,or,br,$n,Mn,Un){var tr=function(Ei){et(Ei),cr(!bt)};return ue.createElement("span",{onMouseDown:tr},Qn({label:or,value:kn,disabled:br,closable:$n,onClose:Mn,isMaxTag:!!Un}))},Lr=function(kn){var or=kn.disabled,br=kn.label,$n=kn.value,Mn=!St&&!or,Un=br;if(typeof dr=="number"&&(typeof br=="string"||typeof br=="number")){var tr=String(Un);tr.length>dr&&(Un="".concat(tr.slice(0,dr),"..."))}var Jr=function(pi){pi&&pi.stopPropagation(),Er(kn)};return typeof Qn=="function"?Ar($n,Un,or,Mn,Jr):bi(kn,Un,or,Mn,Jr)},sr=function(kn){if(!ze.length)return null;var or=typeof Gn=="function"?Gn(kn):Gn;return typeof Qn=="function"?Ar(void 0,or,!1,!1,void 0,!0):bi({title:or},or,!1)},Dn=ue.createElement("div",{className:"".concat(vi,"-search"),style:{width:Zr},onFocus:function(){$i(!0)},onBlur:function(){$i(!1)}},ue.createElement(Dt,{ref:$t,open:bt,prefixCls:vt,id:Fe,inputElement:null,disabled:St,autoFocus:Ft,autoComplete:On,editable:hi,activeDescendantId:In,value:xi,onKeyDown:Yn,onMouseDown:yr,onChange:Cr,onPaste:wr,onCompositionStart:mr,onCompositionEnd:Vr,onBlur:Yr,tabIndex:Tn,attrs:(0,yt.Z)(Ot,!0)}),ue.createElement("span",{ref:_r,className:"".concat(vi,"-search-mirror"),"aria-hidden":!0},xi,"\xA0")),jn=ue.createElement(ot.Z,{prefixCls:"".concat(vi,"-overflow"),data:ze,renderItem:Lr,renderRest:sr,suffix:Dn,itemKey:ge,maxCount:lr});return ue.createElement("span",{className:"".concat(vi,"-wrap")},jn,!ze.length&&!xi&&ue.createElement("span",{className:"".concat(vi,"-placeholder")},Vt))},_t=rt,Qe=function(Ot){var Fe=Ot.inputElement,vt=Ot.prefixCls,ze=Ot.id,bt=Ot.inputRef,Pe=Ot.disabled,It=Ot.autoFocus,$t=Ot.autoComplete,Vt=Ot.activeDescendantId,St=Ot.mode,xt=Ot.open,wt=Ot.values,Ft=Ot.placeholder,On=Ot.tabIndex,In=Ot.showSearch,Tn=Ot.searchValue,er=Ot.activeValue,lr=Ot.maxLength,dr=Ot.onInputKeyDown,Jn=Ot.onInputMouseDown,Gn=Ot.onInputChange,Qn=Ot.onInputPaste,cr=Ot.onInputCompositionStart,Er=Ot.onInputCompositionEnd,Cr=Ot.onInputBlur,wr=Ot.title,Yn=ue.useState(!1),yr=(0,Ee.Z)(Yn,2),mr=yr[0],Vr=yr[1],Yr=St==="combobox",_r=Yr||In,Ur=wt[0],oi=Tn||"";Yr&&er&&!mr&&(oi=er),ue.useEffect(function(){Yr&&Vr(!1)},[Yr,er]);var Zr=St!=="combobox"&&!xt&&!In?!1:!!oi,Qr=wr===void 0?Ut(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(Dt,{ref:bt,prefixCls:vt,id:ze,open:xt,inputElement:Fe,disabled:Pe,autoFocus:It,autoComplete:$t,editable:_r,activeDescendantId:Vt,value:oi,onKeyDown:dr,onMouseDown:Jn,onChange:function(ci){Vr(!0),Gn(ci)},onPaste:Qn,onCompositionStart:cr,onCompositionEnd:Er,onBlur:Cr,tabIndex:On,attrs:(0,yt.Z)(Ot,!0),maxLength:Yr?lr:void 0})),!Yr&&Ur?ue.createElement("span",{className:"".concat(vt,"-selection-item"),title:Qr,style:Zr?{visibility:"hidden"}:void 0},Ur.label):null,Or)},Bt=Qe,qe=function(Ot,Fe){var vt=(0,ue.useRef)(null),ze=(0,ue.useRef)(!1),bt=Ot.prefixCls,Pe=Ot.open,It=Ot.mode,$t=Ot.showSearch,Vt=Ot.tokenWithEnter,St=Ot.disabled,xt=Ot.prefix,wt=Ot.autoClearSearchValue,Ft=Ot.onSearch,On=Ot.onSearchSubmit,In=Ot.onToggleOpen,Tn=Ot.onInputKeyDown,er=Ot.onInputBlur,lr=Ot.domRef;ue.useImperativeHandle(Fe,function(){return{focus:function(Qr){vt.current.focus(Qr)},blur:function(){vt.current.blur()}}});var dr=Be(0),Jn=(0,Ee.Z)(dr,2),Gn=Jn[0],Qn=Jn[1],cr=function(Qr){var Or=Qr.which,ti=vt.current instanceof HTMLTextAreaElement;!ti&&Pe&&(Or===nt.Z.UP||Or===nt.Z.DOWN)&&Qr.preventDefault(),Tn&&Tn(Qr),Or===nt.Z.ENTER&&It==="tags"&&!ze.current&&!Pe&&(On==null||On(Qr.target.value)),!(ti&&!Pe&&~[nt.Z.UP,nt.Z.DOWN,nt.Z.LEFT,nt.Z.RIGHT].indexOf(Or))&&zt(Or)&&In(!0)},Er=function(){Qn(!0)},Cr=(0,ue.useRef)(null),wr=function(Qr){Ft(Qr,!0,ze.current)!==!1&&In(!0)},Yn=function(){ze.current=!0},yr=function(Qr){ze.current=!1,It!=="combobox"&&wr(Qr.target.value)},mr=function(Qr){var Or=Qr.target.value;if(Vt&&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)},Vr=function(Qr){var Or=Qr.clipboardData,ti=Or==null?void 0:Or.getData("text");Cr.current=ti||""},Yr=function(Qr){var Or=Qr.target;if(Or!==vt.current){var ti=document.body.style.msTouchAction!==void 0;ti?setTimeout(function(){vt.current.focus()}):vt.current.focus()}},_r=function(Qr){var Or=Gn();Qr.target!==vt.current&&!Or&&!(It==="combobox"&&St)&&Qr.preventDefault(),(It!=="combobox"&&(!$t||!Or)||!Pe)&&(Pe&&wt!==!1&&Ft("",!0,!1),In())},Ur={inputRef:vt,onInputKeyDown:cr,onInputMouseDown:Er,onInputChange:mr,onInputPaste:Vr,onInputCompositionStart:Yn,onInputCompositionEnd:yr,onInputBlur:er},oi=It==="multiple"||It==="tags"?ue.createElement(_t,(0,b.Z)({},Ot,Ur)):ue.createElement(Bt,(0,b.Z)({},Ot,Ur));return ue.createElement("div",{ref:lr,className:"".concat(bt,"-selector"),onClick:Yr,onMouseDown:_r},xt&&ue.createElement("div",{className:"".concat(bt,"-prefix")},xt),oi)},tn=ue.forwardRef(qe),Tt=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(Ot){var Fe=Ot===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Fe,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Fe,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Fe,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Fe,adjustY:1},htmlRegion:"scroll"}}},oe=function(Ot,Fe){var vt=Ot.prefixCls,ze=Ot.disabled,bt=Ot.visible,Pe=Ot.children,It=Ot.popupElement,$t=Ot.animation,Vt=Ot.transitionName,St=Ot.dropdownStyle,xt=Ot.dropdownClassName,wt=Ot.direction,Ft=wt===void 0?"ltr":wt,On=Ot.placement,In=Ot.builtinPlacements,Tn=Ot.dropdownMatchSelectWidth,er=Ot.dropdownRender,lr=Ot.dropdownAlign,dr=Ot.getPopupContainer,Jn=Ot.empty,Gn=Ot.getTriggerDOMNode,Qn=Ot.onPopupVisibleChange,cr=Ot.onPopupMouseEnter,Er=(0,xe.Z)(Ot,ne),Cr="".concat(vt,"-dropdown"),wr=It;er&&(wr=er(It));var Yn=ue.useMemo(function(){return In||te(Tn)},[In,Tn]),yr=$t?"".concat(Cr,"-").concat($t):Vt,mr=typeof Tn=="number",Vr=ue.useMemo(function(){return mr?null:Tn===!1?"minWidth":"width"},[Tn,mr]),Yr=St;mr&&(Yr=(0,Ue.Z)((0,Ue.Z)({},Yr),{},{width:Tn}));var _r=ue.useRef(null);return ue.useImperativeHandle(Fe,function(){return{getPopupElement:function(){var oi;return(oi=_r.current)===null||oi===void 0?void 0:oi.popupElement}}}),ue.createElement(ae.Z,(0,b.Z)({},Er,{showAction:Qn?["click"]:[],hideAction:Qn?["click"]:[],popupPlacement:On||(Ft==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Yn,prefixCls:Cr,popupTransitionName:yr,popup:ue.createElement("div",{onMouseEnter:cr},wr),ref:_r,stretch:Vr,popupAlign:lr,popupVisible:bt,getPopupContainer:dr,popupClassName:Le()(xt,(0,fe.Z)({},"".concat(Cr,"-empty"),Jn)),popupStyle:Yr,getTriggerDOMNode:Gn,onPopupVisibleChange:Qn}),Pe)},ce=ue.forwardRef(oe),re=ce,le=ee(48745);function ye(ut,Ot){var Fe=ut.key,vt;return"value"in ut&&(vt=ut.value),Fe!=null?Fe:vt!==void 0?vt:"rc-index-key-".concat(Ot)}function ft(ut){return typeof ut!="undefined"&&!Number.isNaN(ut)}function Ae(ut,Ot){var Fe=ut||{},vt=Fe.label,ze=Fe.value,bt=Fe.options,Pe=Fe.groupLabel,It=vt||(Ot?"children":"label");return{label:It,value:ze||"value",options:bt||"options",groupLabel:Pe||It}}function ke(ut){var Ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Fe=Ot.fieldNames,vt=Ot.childrenAsData,ze=[],bt=Ae(Fe,!1),Pe=bt.label,It=bt.value,$t=bt.options,Vt=bt.groupLabel;function St(xt,wt){Array.isArray(xt)&&xt.forEach(function(Ft){if(wt||!($t in Ft)){var On=Ft[It];ze.push({key:ye(Ft,ze.length),groupOption:wt,data:Ft,label:Ft[Pe],value:On})}else{var In=Ft[Vt];In===void 0&&vt&&(In=Ft.label),ze.push({key:ye(Ft,ze.length),group:!0,data:Ft,label:In}),St(Ft[$t],!0)}})}return St(ut,!1),ze}function Ve(ut){var Ot=(0,Ue.Z)({},ut);return"props"in Ot||Object.defineProperty(Ot,"props",{get:function(){return(0,Ce.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Ot}}),Ot}var Ye=function(Ot,Fe,vt){if(!Fe||!Fe.length)return null;var ze=!1,bt=function It($t,Vt){var St=(0,le.Z)(Vt),xt=St[0],wt=St.slice(1);if(!xt)return[$t];var Ft=$t.split(xt);return ze=ze||Ft.length>1,Ft.reduce(function(On,In){return[].concat((0,We.Z)(On),(0,We.Z)(It(In,wt)))},[]).filter(Boolean)},Pe=bt(Ot,Fe);return ze?typeof vt!="undefined"?Pe.slice(0,vt):Pe:null},mt=ue.createContext(null),we=mt;function De(ut){var Ot=ut.visible,Fe=ut.values;if(!Ot)return null;var vt=50;return ue.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(Fe.slice(0,vt).map(function(ze){var bt=ze.label,Pe=ze.value;return["number","string"].includes((0,Ie.Z)(bt))?bt:Pe}).join(", ")),Fe.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"],Ht=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],nn=function(Ot){return Ot==="tags"||Ot==="multiple"},qt=ue.forwardRef(function(ut,Ot){var Fe,vt=ut.id,ze=ut.prefixCls,bt=ut.className,Pe=ut.showSearch,It=ut.tagRender,$t=ut.direction,Vt=ut.omitDomProps,St=ut.displayValues,xt=ut.onDisplayValuesChange,wt=ut.emptyOptions,Ft=ut.notFoundContent,On=Ft===void 0?"Not Found":Ft,In=ut.onClear,Tn=ut.mode,er=ut.disabled,lr=ut.loading,dr=ut.getInputElement,Jn=ut.getRawInputElement,Gn=ut.open,Qn=ut.defaultOpen,cr=ut.onDropdownVisibleChange,Er=ut.activeValue,Cr=ut.onActiveValueChange,wr=ut.activeDescendantId,Yn=ut.searchValue,yr=ut.autoClearSearchValue,mr=ut.onSearch,Vr=ut.onSearchSplit,Yr=ut.tokenSeparators,_r=ut.allowClear,Ur=ut.prefix,oi=ut.suffixIcon,Zr=ut.clearIcon,Qr=ut.OptionList,Or=ut.animation,ti=ut.transitionName,ci=ut.dropdownStyle,$i=ut.dropdownClassName,vi=ut.dropdownMatchSelectWidth,xi=ut.dropdownRender,hi=ut.dropdownAlign,bi=ut.placement,Ar=ut.builtinPlacements,Lr=ut.getPopupContainer,sr=ut.showAction,Dn=sr===void 0?[]:sr,jn=ut.onFocus,Kn=ut.onBlur,kn=ut.onKeyUp,or=ut.onKeyDown,br=ut.onMouseDown,$n=(0,xe.Z)(ut,Zt),Mn=nn(Tn),Un=(Pe!==void 0?Pe:Mn)||Tn==="combobox",tr=(0,Ue.Z)({},$n);Ht.forEach(function(Ki){delete tr[Ki]}),Vt==null||Vt.forEach(function(Ki){delete tr[Ki]});var Jr=ue.useState(!1),Ei=(0,Ee.Z)(Jr,2),pi=Ei[0],Ni=Ei[1];ue.useEffect(function(){Ni((0,it.Z)())},[]);var Ii=ue.useRef(null),Pi=ue.useRef(null),Fi=ue.useRef(null),ki=ue.useRef(null),Bi=ue.useRef(null),lo=ue.useRef(!1),xo=je(),Do=(0,Ee.Z)(xo,3),To=Do[0],Co=Do[1],qr=Do[2];ue.useImperativeHandle(Ot,function(){var Ki,Si;return{focus:(Ki=ki.current)===null||Ki===void 0?void 0:Ki.focus,blur:(Si=ki.current)===null||Si===void 0?void 0:Si.blur,scrollTo:function(la){var ko;return(ko=Bi.current)===null||ko===void 0?void 0:ko.scrollTo(la)},nativeElement:Ii.current||Pi.current}});var Hr=ue.useMemo(function(){var Ki;if(Tn!=="combobox")return Yn;var Si=(Ki=St[0])===null||Ki===void 0?void 0:Ki.value;return typeof Si=="string"||typeof Si=="number"?String(Si):""},[Yn,Tn,St]),Qi=Tn==="combobox"&&typeof dr=="function"&&dr()||null,qi=typeof Jn=="function"&&Jn(),ai=(0,$e.x1)(Pi,qi==null||(Fe=qi.props)===null||Fe===void 0?void 0:Fe.ref),Wi=ue.useState(!1),Yi=(0,Ee.Z)(Wi,2),gi=Yi[0],Zi=Yi[1];(0,Rt.Z)(function(){Zi(!0)},[]);var Mi=(0,Ze.Z)(!1,{defaultValue:Qn,value:Gn}),Zo=(0,Ee.Z)(Mi,2),ha=Zo[0],Wo=Zo[1],Mo=gi?ha:!1,ul=!On&&wt;(er||ul&&Mo&&Tn==="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&&(cr==null||cr(Si)))},[er,Mo,Wo,cr]),Ci=ue.useMemo(function(){return(Yr||[]).some(function(Ki){return[`
|
|
|
`,`\r
|
|
|
`].includes(Ki)})},[Yr]),ni=ue.useContext(we)||{},ui=ni.maxCount,Vi=ni.rawValues,so=function(Si,Ko,la){if(!(Mn&&ft(ui)&&(Vi==null?void 0:Vi.size)>=ui)){var ko=!0,Vo=Si;Cr==null||Cr(null);var Aa=Ye(Si,Yr,ft(ui)?ui-Vi.size:void 0),ka=la?null:Aa;return Tn!=="combobox"&&ka&&(Vo="",Vr==null||Vr(ka),si(!1),ko=!1),mr&&Hr!==Vo&&mr(Vo,{source:Ko?"typing":"effect"}),ko}},Ra=function(Si){!Si||!Si.trim()||mr(Si,{source:"submit"})};ue.useEffect(function(){!Mo&&!Mn&&Tn!=="combobox"&&so("",!1,!1)},[Mo]),ue.useEffect(function(){ha&&er&&Wo(!1),er&&!lo.current&&Co(!1)},[er]);var oa=Be(),Yo=(0,Ee.Z)(oa,2),No=Yo[0],Ta=Yo[1],Za=ue.useRef(!1),pa=function(Si){var Ko=No(),la=Si.key,ko=la==="Enter";if(ko&&(Tn!=="combobox"&&Si.preventDefault(),Mo||si(!0)),Ta(!!Hr),la==="Backspace"&&!Ko&&Mn&&!Hr&&St.length){for(var Vo=(0,We.Z)(St),Aa=null,ka=Vo.length-1;ka>=0;ka-=1){var Wa=Vo[ka];if(!Wa.disabled){Vo.splice(ka,1),Aa=Wa;break}}Aa&&xt(Vo,{type:"remove",values:[Aa]})}for(var xa=arguments.length,Ca=new Array(xa>1?xa-1:0),$a=1;$a<xa;$a++)Ca[$a-1]=arguments[$a];if(Mo&&(!ko||!Za.current)){var rl;ko&&(Za.current=!0),(rl=Bi.current)===null||rl===void 0||rl.onKeyDown.apply(rl,[Si].concat(Ca))}or==null||or.apply(void 0,[Si].concat(Ca))},za=function(Si){for(var Ko=arguments.length,la=new Array(Ko>1?Ko-1:0),ko=1;ko<Ko;ko++)la[ko-1]=arguments[ko];if(Mo){var Vo;(Vo=Bi.current)===null||Vo===void 0||Vo.onKeyUp.apply(Vo,[Si].concat(la))}Si.key==="Enter"&&(Za.current=!1),kn==null||kn.apply(void 0,[Si].concat(la))},Ya=function(Si){var Ko=St.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||(jn&&!dl.current&&jn.apply(void 0,arguments),Dn.includes("focus")&&si(!0)),dl.current=!0},Jl=function(){lo.current=!0,Co(!1,function(){dl.current=!1,lo.current=!1,si(!1)}),!er&&(Hr&&(Tn==="tags"?mr(Hr,{source:"submit"}):Tn==="multiple"&&mr("",{source:"blur"})),Kn&&Kn.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,ko=(Ko=Fi.current)===null||Ko===void 0?void 0:Ko.getPopupElement();if(ko&&ko.contains(la)){var Vo=setTimeout(function(){var xa=Ha.indexOf(Vo);if(xa!==-1&&Ha.splice(xa,1),qr(),!pi&&!ko.contains(document.activeElement)){var Ca;(Ca=ki.current)===null||Ca===void 0||Ca.focus()}});Ha.push(Vo)}for(var Aa=arguments.length,ka=new Array(Aa>1?Aa-1:0),Wa=1;Wa<Aa;Wa++)ka[Wa-1]=arguments[Wa];br==null||br.apply(void 0,[Si].concat(ka))},Na=ue.useState({}),vs=(0,Ee.Z)(Na,2),Bl=vs[1];function Ql(){Bl({})}var ql;qi&&(ql=function(Si){si(Si)}),Je(function(){var Ki;return[Ii.current,(Ki=Fi.current)===null||Ki===void 0?void 0:Ki.getPopupElement()]},el,si,!!qi);var zs=ue.useMemo(function(){return(0,Ue.Z)((0,Ue.Z)({},ut),{},{notFoundContent:On,open:Mo,triggerOpen:el,id:vt,showSearch:Un,multiple:Mn,toggleOpen:si})},[ut,On,el,Mo,vt,Un,Mn,si]),Ll=!!oi||lr,ja;Ll&&(ja=ue.createElement(Oe,{className:Le()("".concat(ze,"-arrow"),(0,fe.Z)({},"".concat(ze,"-arrow-loading"),lr)),customizeIcon:oi,customizeIconProps:{loading:lr,searchValue:Hr,open:Mo,focused:To,showSearch:Un}}));var fl=function(){var Si;In==null||In(),(Si=ki.current)===null||Si===void 0||Si.focus(),xt([],{type:"clear",values:St}),so("",!1,!1)},xl=Xe(ze,fl,St,_r,Zr,er,Hr,Tn),Rl=xl.allowClear,hl=xl.clearIcon,Al=ue.createElement(Qr,{ref:Bi}),es=Le()(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"),Mn),"".concat(ze,"-single"),!Mn),"".concat(ze,"-allow-clear"),_r),"".concat(ze,"-show-arrow"),Ll),"".concat(ze,"-disabled"),er),"".concat(ze,"-loading"),lr),"".concat(ze,"-open"),Mo),"".concat(ze,"-customize-input"),Qi),"".concat(ze,"-show-search"),Un)),nl=ue.createElement(re,{ref:Fi,disabled:er,prefixCls:ze,visible:el,popupElement:Al,animation:Or,transitionName:ti,dropdownStyle:ci,dropdownClassName:$i,direction:$t,dropdownMatchSelectWidth:vi,dropdownRender:xi,dropdownAlign:hi,placement:bi,builtinPlacements:Ar,getPopupContainer:Lr,empty:wt,getTriggerDOMNode:function(Si){return Pi.current||Si},onPopupVisibleChange:ql,onPopupMouseEnter:Ql},qi?ue.cloneElement(qi,{ref:ai}):ue.createElement(Tt,(0,b.Z)({},ut,{domRef:Pi,prefixCls:ze,inputElement:Qi,ref:ki,id:vt,prefix:Ur,showSearch:Un,autoClearSearchValue:yr,mode:Tn,activeDescendantId:wr,tagRender:It,values:St,open:Mo,onToggleOpen:si,activeValue:Er,searchValue:Hr,onSearch:so,onSearchSubmit:Ra,onRemove:Ya,tokenWithEnter:Ci,onInputBlur:Ma}))),aa;return qi?aa=nl:aa=ue.createElement("div",(0,b.Z)({className:es},tr,{ref:Ii,onMouseDown:tl,onKeyDown:pa,onKeyUp:za,onFocus:ms,onBlur:Jl}),ue.createElement(De,{visible:To&&!Mo,values:St}),nl,ja,Rl&&hl),ue.createElement(pt.Provider,{value:zs},aa)}),Et=qt,on=function(){return null};on.isSelectOptGroup=!0;var Kt=on,He=function(){return null};He.isSelectOption=!0;var ht=He,at=ee(80547),Mt=ee(2738),Me=ee(48911);function st(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Ct=["disabled","title","children","style","className"];function Wt(ut){return typeof ut=="string"||typeof ut=="number"}var cn=function(Ot,Fe){var vt=At(),ze=vt.prefixCls,bt=vt.id,Pe=vt.open,It=vt.multiple,$t=vt.mode,Vt=vt.searchValue,St=vt.toggleOpen,xt=vt.notFoundContent,wt=vt.onPopupScroll,Ft=ue.useContext(we),On=Ft.maxCount,In=Ft.flattenOptions,Tn=Ft.onActiveValue,er=Ft.defaultActiveFirstOption,lr=Ft.onSelect,dr=Ft.menuItemSelectedIcon,Jn=Ft.rawValues,Gn=Ft.fieldNames,Qn=Ft.virtual,cr=Ft.direction,Er=Ft.listHeight,Cr=Ft.listItemHeight,wr=Ft.optionRender,Yn="".concat(ze,"-item"),yr=(0,at.Z)(function(){return In},[Pe,In],function(sr,Dn){return Dn[0]&&sr[1]!==Dn[1]}),mr=ue.useRef(null),Vr=ue.useMemo(function(){return It&&ft(On)&&(Jn==null?void 0:Jn.size)>=On},[It,On,Jn==null?void 0:Jn.size]),Yr=function(Dn){Dn.preventDefault()},_r=function(Dn){var jn;(jn=mr.current)===null||jn===void 0||jn.scrollTo(typeof Dn=="number"?{index:Dn}:Dn)},Ur=ue.useCallback(function(sr){return $t==="combobox"?!1:Jn.has(sr)},[$t,(0,We.Z)(Jn).toString(),Jn.size]),oi=function(Dn){for(var jn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Kn=yr.length,kn=0;kn<Kn;kn+=1){var or=(Dn+kn*jn+Kn)%Kn,br=yr[or]||{},$n=br.group,Mn=br.data;if(!$n&&!(Mn!=null&&Mn.disabled)&&(Ur(Mn.value)||!Vr))return or}return-1},Zr=ue.useState(function(){return oi(0)}),Qr=(0,Ee.Z)(Zr,2),Or=Qr[0],ti=Qr[1],ci=function(Dn){var jn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;ti(Dn);var Kn={source:jn?"keyboard":"mouse"},kn=yr[Dn];if(!kn){Tn(null,-1,Kn);return}Tn(kn.value,Dn,Kn)};(0,ue.useEffect)(function(){ci(er!==!1?oi(0):-1)},[yr.length,Vt]);var $i=ue.useCallback(function(sr){return $t==="combobox"?String(sr).toLowerCase()===Vt.toLowerCase():Jn.has(sr)},[$t,Vt,(0,We.Z)(Jn).toString(),Jn.size]);(0,ue.useEffect)(function(){var sr=setTimeout(function(){if(!It&&Pe&&Jn.size===1){var jn=Array.from(Jn)[0],Kn=yr.findIndex(function(kn){var or=kn.data;return Vt?String(or.value).startsWith(Vt):or.value===jn});Kn!==-1&&(ci(Kn),_r(Kn))}});if(Pe){var Dn;(Dn=mr.current)===null||Dn===void 0||Dn.scrollTo(void 0)}return function(){return clearTimeout(sr)}},[Pe,Vt]);var vi=function(Dn){Dn!==void 0&&lr(Dn,{selected:!Jn.has(Dn)}),It||St(!1)};if(ue.useImperativeHandle(Fe,function(){return{onKeyDown:function(Dn){var jn=Dn.which,Kn=Dn.ctrlKey;switch(jn){case nt.Z.N:case nt.Z.P:case nt.Z.UP:case nt.Z.DOWN:{var kn=0;if(jn===nt.Z.UP?kn=-1:jn===nt.Z.DOWN?kn=1:st()&&Kn&&(jn===nt.Z.N?kn=1:jn===nt.Z.P&&(kn=-1)),kn!==0){var or=oi(Or+kn,kn);_r(or),ci(or,!0)}break}case nt.Z.TAB:case nt.Z.ENTER:{var br,$n=yr[Or];$n&&!($n!=null&&(br=$n.data)!==null&&br!==void 0&&br.disabled)&&!Vr?vi($n.value):vi(void 0),Pe&&Dn.preventDefault();break}case nt.Z.ESC:St(!1),Pe&&Dn.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Dn){_r(Dn)}}}),yr.length===0)return ue.createElement("div",{role:"listbox",id:"".concat(bt,"_list"),className:"".concat(Yn,"-empty"),onMouseDown:Yr},xt);var xi=Object.keys(Gn).map(function(sr){return Gn[sr]}),hi=function(Dn){return Dn.label};function bi(sr,Dn){var jn=sr.group;return{role:jn?"presentation":"option",id:"".concat(bt,"_list_").concat(Dn)}}var Ar=function(Dn){var jn=yr[Dn];if(!jn)return null;var Kn=jn.data||{},kn=Kn.value,or=jn.group,br=(0,yt.Z)(Kn,!0),$n=hi(jn);return jn?ue.createElement("div",(0,b.Z)({"aria-label":typeof $n=="string"&&!or?$n:null},br,{key:Dn},bi(jn,Dn),{"aria-selected":$i(kn)}),kn):null},Lr={role:"listbox",id:"".concat(bt,"_list")};return ue.createElement(ue.Fragment,null,Qn&&ue.createElement("div",(0,b.Z)({},Lr,{style:{height:0,width:0,overflow:"hidden"}}),Ar(Or-1),Ar(Or),Ar(Or+1)),ue.createElement(Me.Z,{itemKey:"key",ref:mr,data:yr,height:Er,itemHeight:Cr,fullHeight:!1,onMouseDown:Yr,onScroll:wt,virtual:Qn,direction:cr,innerProps:Qn?null:Lr},function(sr,Dn){var jn=sr.group,Kn=sr.groupOption,kn=sr.data,or=sr.label,br=sr.value,$n=kn.key;if(jn){var Mn,Un=(Mn=kn.title)!==null&&Mn!==void 0?Mn:Wt(or)?or.toString():void 0;return ue.createElement("div",{className:Le()(Yn,"".concat(Yn,"-group"),kn.className),title:Un},or!==void 0?or:$n)}var tr=kn.disabled,Jr=kn.title,Ei=kn.children,pi=kn.style,Ni=kn.className,Ii=(0,xe.Z)(kn,Ct),Pi=(0,Mt.Z)(Ii,xi),Fi=Ur(br),ki=tr||!Fi&&Vr,Bi="".concat(Yn,"-option"),lo=Le()(Yn,Bi,Ni,(0,fe.Z)((0,fe.Z)((0,fe.Z)((0,fe.Z)({},"".concat(Bi,"-grouped"),Kn),"".concat(Bi,"-active"),Or===Dn&&!ki),"".concat(Bi,"-disabled"),ki),"".concat(Bi,"-selected"),Fi)),xo=hi(sr),Do=!dr||typeof dr=="function"||Fi,To=typeof xo=="number"?xo:xo||br,Co=Wt(To)?To.toString():void 0;return Jr!==void 0&&(Co=Jr),ue.createElement("div",(0,b.Z)({},(0,yt.Z)(Pi),Qn?{}:bi(sr,Dn),{"aria-selected":$i(br),className:lo,title:Co,onMouseMove:function(){Or===Dn||ki||ci(Dn)},onClick:function(){ki||vi(br)},style:pi}),ue.createElement("div",{className:"".concat(Bi,"-content")},typeof wr=="function"?wr(sr,{index:Dn}):To),ue.isValidElement(dr)||Fi,Do&&ue.createElement(Oe,{className:"".concat(Yn,"-option-state"),customizeIcon:dr,customizeIconProps:{value:br,disabled:ki,isSelected:Fi}},Fi?"\u2713":null))}))},Sn=ue.forwardRef(cn),Bn=Sn,Rn=function(ut,Ot){var Fe=ue.useRef({values:new Map,options:new Map}),vt=ue.useMemo(function(){var bt=Fe.current,Pe=bt.values,It=bt.options,$t=ut.map(function(xt){if(xt.label===void 0){var wt;return(0,Ue.Z)((0,Ue.Z)({},xt),{},{label:(wt=Pe.get(xt.value))===null||wt===void 0?void 0:wt.label})}return xt}),Vt=new Map,St=new Map;return $t.forEach(function(xt){Vt.set(xt.value,xt),St.set(xt.value,Ot.get(xt.value)||It.get(xt.value))}),Fe.current.values=Vt,Fe.current.options=St,$t},[ut,Ot]),ze=ue.useCallback(function(bt){return Ot.get(bt)||Fe.current.options.get(bt)},[Ot]);return[vt,ze]};function gn(ut,Ot){return Ke(ut).join("").toUpperCase().includes(Ot)}var Nn=function(ut,Ot,Fe,vt,ze){return ue.useMemo(function(){if(!Fe||vt===!1)return ut;var bt=Ot.options,Pe=Ot.label,It=Ot.value,$t=[],Vt=typeof vt=="function",St=Fe.toUpperCase(),xt=Vt?vt:function(Ft,On){return ze?gn(On[ze],St):On[bt]?gn(On[Pe!=="children"?Pe:"label"],St):gn(On[It],St)},wt=Vt?function(Ft){return Ve(Ft)}:function(Ft){return Ft};return ut.forEach(function(Ft){if(Ft[bt]){var On=xt(Fe,wt(Ft));if(On)$t.push(Ft);else{var In=Ft[bt].filter(function(Tn){return xt(Fe,wt(Tn))});In.length&&$t.push((0,Ue.Z)((0,Ue.Z)({},Ft),{},(0,fe.Z)({},bt,In)))}return}xt(Fe,wt(Ft))&&$t.push(Ft)}),$t},[ut,vt,ze,Fe,Ot])},dn=ee(6551),Xt=ee(11592),rn=["children","value"],an=["children"];function Jt(ut){var Ot=ut,Fe=Ot.key,vt=Ot.props,ze=vt.children,bt=vt.value,Pe=(0,xe.Z)(vt,rn);return(0,Ue.Z)({key:Fe,value:bt!==void 0?bt:Fe,children:ze},Pe)}function pn(ut){var Ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Xt.Z)(ut).map(function(Fe,vt){if(!ue.isValidElement(Fe)||!Fe.type)return null;var ze=Fe,bt=ze.type.isSelectOptGroup,Pe=ze.key,It=ze.props,$t=It.children,Vt=(0,xe.Z)(It,an);return Ot||!bt?Jt(Fe):(0,Ue.Z)((0,Ue.Z)({key:"__RC_SELECT_GRP__".concat(Pe===null?vt:Pe,"__"),label:Pe},Vt),{},{options:pn($t)})}).filter(function(Fe){return Fe})}var mn=function(Ot,Fe,vt,ze,bt){return ue.useMemo(function(){var Pe=Ot,It=!Ot;It&&(Pe=pn(Fe));var $t=new Map,Vt=new Map,St=function(Ft,On,In){In&&typeof In=="string"&&Ft.set(On[In],On)},xt=function wt(Ft){for(var On=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,In=0;In<Ft.length;In+=1){var Tn=Ft[In];!Tn[vt.options]||On?($t.set(Tn[vt.value],Tn),St(Vt,Tn,vt.label),St(Vt,Tn,ze),St(Vt,Tn,bt)):wt(Tn[vt.options],!0)}};return xt(Pe),{options:Pe,valueOptions:$t,labelOptions:Vt}},[Ot,Fe,vt,ze,bt])},Cn=mn;function Fn(ut){var Ot=ue.useRef();Ot.current=ut;var Fe=ue.useCallback(function(){return Ot.current.apply(Ot,arguments)},[]);return Fe}function zn(ut){var Ot=ut.mode,Fe=ut.options,vt=ut.children,ze=ut.backfill,bt=ut.allowClear,Pe=ut.placeholder,It=ut.getInputElement,$t=ut.showSearch,Vt=ut.onSearch,St=ut.defaultOpen,xt=ut.autoFocus,wt=ut.labelInValue,Ft=ut.value,On=ut.inputValue,In=ut.optionLabelProp,Tn=isMultiple(Ot),er=$t!==void 0?$t:Tn||Ot==="combobox",lr=Fe||convertChildrenToData(vt);if(warning(Ot!=="tags"||lr.every(function(Qn){return!Qn.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Ot==="tags"||Ot==="combobox"){var dr=lr.some(function(Qn){return Qn.options?Qn.options.some(function(cr){return typeof("value"in cr?cr.value:cr.key)=="number"}):typeof("value"in Qn?Qn.value:Qn.key)=="number"});warning(!dr,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Ot!=="combobox"||!In,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Ot==="combobox"||!ze,"`backfill` only works with `combobox` mode."),warning(Ot==="combobox"||!It,"`getInputElement` only work with `combobox` mode."),noteOnce(Ot!=="combobox"||!It||!bt||!Pe,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Vt&&!er&&Ot!=="combobox"&&Ot!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!St||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 Jn=toArray(Ft);warning(!wt||Jn.every(function(Qn){return _typeof(Qn)==="object"&&("key"in Qn||"value"in Qn)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Tn||Array.isArray(Ft),"`value` should be array when `mode` is `multiple` or `tags`")}if(vt){var Gn=null;toNodeArray(vt).some(function(Qn){if(!React.isValidElement(Qn)||!Qn.type)return!1;var cr=Qn,Er=cr.type;if(Er.isSelectOption)return!1;if(Er.isSelectOptGroup){var Cr=toNodeArray(Qn.props.children).every(function(wr){return!React.isValidElement(wr)||!Qn.type||wr.type.isSelectOption?!0:(Gn=wr.type,!1)});return!Cr}return Gn=Er,!0}),Gn&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Gn.displayName||Gn.name||Gn,"`.")),warning(On===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Zn(ut,Ot){if(ut){var Fe=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[Ot==null?void 0:Ot.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!bt&&Array.isArray(It[Ot==null?void 0:Ot.options])&&vt(It[Ot==null?void 0:Ot.options],!0))break}};Fe(ut)}}var Xn=null,_n=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],pr=["inputValue"];function ar(ut){return!ut||(0,Ie.Z)(ut)!=="object"}var sn=ue.forwardRef(function(ut,Ot){var Fe=ut.id,vt=ut.mode,ze=ut.prefixCls,bt=ze===void 0?"rc-select":ze,Pe=ut.backfill,It=ut.fieldNames,$t=ut.inputValue,Vt=ut.searchValue,St=ut.onSearch,xt=ut.autoClearSearchValue,wt=xt===void 0?!0:xt,Ft=ut.onSelect,On=ut.onDeselect,In=ut.dropdownMatchSelectWidth,Tn=In===void 0?!0:In,er=ut.filterOption,lr=ut.filterSort,dr=ut.optionFilterProp,Jn=ut.optionLabelProp,Gn=ut.options,Qn=ut.optionRender,cr=ut.children,Er=ut.defaultActiveFirstOption,Cr=ut.menuItemSelectedIcon,wr=ut.virtual,Yn=ut.direction,yr=ut.listHeight,mr=yr===void 0?200:yr,Vr=ut.listItemHeight,Yr=Vr===void 0?20:Vr,_r=ut.labelRender,Ur=ut.value,oi=ut.defaultValue,Zr=ut.labelInValue,Qr=ut.onChange,Or=ut.maxCount,ti=(0,xe.Z)(ut,_n),ci=(0,dn.ZP)(Fe),$i=nn(vt),vi=!!(!Gn&&cr),xi=ue.useMemo(function(){return er===void 0&&vt==="combobox"?!1:er},[er,vt]),hi=ue.useMemo(function(){return Ae(It,vi)},[JSON.stringify(It),vi]),bi=(0,Ze.Z)("",{value:Vt!==void 0?Vt:$t,postState:function(Ci){return Ci||""}}),Ar=(0,Ee.Z)(bi,2),Lr=Ar[0],sr=Ar[1],Dn=Cn(Gn,cr,hi,dr,Jn),jn=Dn.valueOptions,Kn=Dn.labelOptions,kn=Dn.options,or=ue.useCallback(function(si){var Ci=Ke(si);return Ci.map(function(ni){var ui,Vi,so,Ra,oa;if(ar(ni))ui=ni;else{var Yo;so=ni.key,Vi=ni.label,ui=(Yo=ni.value)!==null&&Yo!==void 0?Yo:so}var No=jn.get(ui);if(No){var Ta;if(Vi===void 0&&(Vi=No==null?void 0:No[Jn||hi.label]),so===void 0&&(so=(Ta=No==null?void 0:No.key)!==null&&Ta!==void 0?Ta:ui),Ra=No==null?void 0:No.disabled,oa=No==null?void 0:No.title,0)var Za}return{label:Vi,value:ui,key:so,disabled:Ra,title:oa}})},[hi,Jn,jn]),br=(0,Ze.Z)(oi,{value:Ur}),$n=(0,Ee.Z)(br,2),Mn=$n[0],Un=$n[1],tr=ue.useMemo(function(){var si,Ci=$i&&Mn===null?[]:Mn,ni=or(Ci);return vt==="combobox"&&me((si=ni[0])===null||si===void 0?void 0:si.value)?[]:ni},[Mn,or,vt,$i]),Jr=Rn(tr,jn),Ei=(0,Ee.Z)(Jr,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,Ue.Z)((0,Ue.Z)({},Ci),{},{label:(ni=typeof _r=="function"?_r(Ci):Ci.label)!==null&&ni!==void 0?ni:Ci.value})})},[vt,pi,_r]),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;sr(Ne(Ci)?String(Ci):"")}},[pi]);var Fi=Fn(function(si,Ci){var ni=Ci!=null?Ci:si;return(0,fe.Z)((0,fe.Z)({},hi.value,si),hi.label,ni)}),ki=ue.useMemo(function(){if(vt!=="tags")return kn;var si=(0,We.Z)(kn),Ci=function(ui){return jn.has(ui)};return(0,We.Z)(pi).sort(function(ni,ui){return ni.value<ui.value?-1:1}).forEach(function(ni){var ui=ni.value;Ci(ui)||si.push(Fi(ui,ni.label))}),si},[Fi,kn,jn,pi,vt]),Bi=Nn(ki,hi,Lr,xi,dr),lo=ue.useMemo(function(){return vt!=="tags"||!Lr||Bi.some(function(si){return si[dr||"value"]===Lr})||Bi.some(function(si){return si[hi.value]===Lr})?Bi:[Fi(Lr)].concat((0,We.Z)(Bi))},[Fi,dr,vt,Bi,Lr,hi]),xo=function si(Ci){var ni=(0,We.Z)(Ci).sort(function(ui,Vi){return lr(ui,Vi,{searchValue:Lr})});return ni.map(function(ui){return Array.isArray(ui.options)?(0,Ue.Z)((0,Ue.Z)({},ui),{},{options:ui.options.length>0?si(ui.options):ui.options}):ui})},Do=ue.useMemo(function(){return lr?xo(lo):lo},[lo,lr,Lr]),To=ue.useMemo(function(){return ke(Do,{fieldNames:hi,childrenAsData:vi})},[Do,hi,vi]),Co=function(Ci){var ni=or(Ci);if(Un(ni),Qr&&(ni.length!==pi.length||ni.some(function(so,Ra){var oa;return((oa=pi[Ra])===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}),Vi=ni.map(function(so){return Ve(Ni(so.value))});Qr($i?ui:ui[0],$i?Vi:Vi[0])}},qr=ue.useState(null),Hr=(0,Ee.Z)(qr,2),Qi=Hr[0],qi=Hr[1],ai=ue.useState(0),Wi=(0,Ee.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,Vi=ui===void 0?"keyboard":ui;gi(Ci),Pe&&vt==="combobox"&&si!==null&&Vi==="keyboard"&&qi(String(si))},[Pe,vt]),Zo=function(Ci,ni,ui){var Vi=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=Vi(),Ra=(0,Ee.Z)(so,2),oa=Ra[0],Yo=Ra[1];Ft(oa,Yo)}else if(!ni&&On&&ui!=="clear"){var No=Vi(),Ta=(0,Ee.Z)(No,2),Za=Ta[0],pa=Ta[1];On(Za,pa)}},ha=Fn(function(si,Ci){var ni,ui=$i?Ci.selected:!0;ui?ni=$i?[].concat((0,We.Z)(pi),[si]):[si]:ni=pi.filter(function(Vi){return Vi.value!==si}),Co(ni),Zo(si,ui),vt==="combobox"?qi(""):(!nn||wt)&&(sr(""),qi(""))}),Wo=function(Ci,ni){Co(Ci);var ui=ni.type,Vi=ni.values;(ui==="remove"||ui==="clear")&&Vi.forEach(function(so){Zo(so.value,!1,ui)})},Mo=function(Ci,ni){if(sr(Ci),qi(null),ni.source==="submit"){var ui=(Ci||"").trim();if(ui){var Vi=Array.from(new Set([].concat((0,We.Z)(Pi),[ui])));Co(Vi),Zo(ui,!0),sr("")}return}ni.source!=="blur"&&(vt==="combobox"&&Co(Ci),St==null||St(Ci))},ul=function(Ci){var ni=Ci;vt!=="tags"&&(ni=Ci.map(function(Vi){var so=Kn.get(Vi);return so==null?void 0:so.value}).filter(function(Vi){return Vi!==void 0}));var ui=Array.from(new Set([].concat((0,We.Z)(Pi),(0,We.Z)(ni))));Co(ui),ui.forEach(function(Vi){Zo(Vi,!0)})},el=ue.useMemo(function(){var si=wr!==!1&&Tn!==!1;return(0,Ue.Z)((0,Ue.Z)({},Dn),{},{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:Qn})},[Or,Dn,To,Mi,Zi,ha,Cr,Pi,hi,wr,Tn,Yn,mr,Yr,vi,Qn]);return ue.createElement(we.Provider,{value:el},ue.createElement(Et,(0,b.Z)({},ti,{id:ci,prefixCls:bt,ref:Ot,omitDomProps:pr,mode:vt,displayValues:Ii,onDisplayValuesChange:Wo,direction:Yn,searchValue:Lr,onSearch:Mo,autoClearSearchValue:wt,onSearchSplit:ul,dropdownMatchSelectWidth:Tn,OptionList:Bn,emptyOptions:!To.length,activeValue:Qi,activeDescendantId:"".concat(ci,"_list_").concat(Yi)})))}),bn=sn;bn.Option=ht,bn.OptGroup=Kt;var Hn=bn,An=Hn},22711:function(wn,Qt,ee){"use strict";ee.r(Qt),ee.d(Qt,{ResizableTextArea:function(){return Se},default:function(){return Dt}});var b=ee(60499),We=ee(18642),fe=ee(85899),Ue=ee(77654),Ee=ee(72190),xe=ee(42244),Ie=ee(92310),Ze=ee.n(Ie),Ce=ee(36901),ue=ee(66003),tt=ee(30292),Le=ee(18929),Rt=ee(59301),it=ee(43749),$e=ee(29301),Te=ee(34280),Oe=ee(16089),Xe=`
|
|
|
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;
|
|
|
`,pt=["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"],At={},je;function Be(Ke){var gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Yt=Ke.getAttribute("id")||Ke.getAttribute("data-reactid")||Ke.getAttribute("name");if(gt&&At[Yt])return At[Yt];var Ne=window.getComputedStyle(Ke),me=Ne.getPropertyValue("box-sizing")||Ne.getPropertyValue("-moz-box-sizing")||Ne.getPropertyValue("-webkit-box-sizing"),Pt=parseFloat(Ne.getPropertyValue("padding-bottom"))+parseFloat(Ne.getPropertyValue("padding-top")),Ut=parseFloat(Ne.getPropertyValue("border-bottom-width"))+parseFloat(Ne.getPropertyValue("border-top-width")),kt=pt.map(function(et){return"".concat(et,":").concat(Ne.getPropertyValue(et))}).join(";"),ge={sizingStyle:kt,paddingSize:Pt,borderSize:Ut,boxSizing:me};return gt&&Yt&&(At[Yt]=ge),ge}function Je(Ke){var gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Yt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Ne=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;je||(je=document.createElement("textarea"),je.setAttribute("tab-index","-1"),je.setAttribute("aria-hidden","true"),je.setAttribute("name","hiddenTextarea"),document.body.appendChild(je)),Ke.getAttribute("wrap")?je.setAttribute("wrap",Ke.getAttribute("wrap")):je.removeAttribute("wrap");var me=Be(Ke,gt),Pt=me.paddingSize,Ut=me.borderSize,kt=me.boxSizing,ge=me.sizingStyle;je.setAttribute("style","".concat(ge,";").concat(Xe)),je.value=Ke.value||Ke.placeholder||"";var et=void 0,rt=void 0,_t,Qe=je.scrollHeight;if(kt==="border-box"?Qe+=Ut:kt==="content-box"&&(Qe-=Pt),Yt!==null||Ne!==null){je.value=" ";var Bt=je.scrollHeight-Pt;Yt!==null&&(et=Bt*Yt,kt==="border-box"&&(et=et+Pt+Ut),Qe=Math.max(et,Qe)),Ne!==null&&(rt=Bt*Ne,kt==="border-box"&&(rt=rt+Pt+Ut),_t=Qe>rt?"":"hidden",Qe=Math.min(rt,Qe))}var qe={height:Qe,overflowY:_t,resize:"none"};return et&&(qe.minHeight=et),rt&&(qe.maxHeight=rt),qe}var nt=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],zt=0,yt=1,ot=2,ct=Rt.forwardRef(function(Ke,gt){var Yt=Ke,Ne=Yt.prefixCls,me=Yt.defaultValue,Pt=Yt.value,Ut=Yt.autoSize,kt=Yt.onResize,ge=Yt.className,et=Yt.style,rt=Yt.disabled,_t=Yt.onChange,Qe=Yt.onInternalAutoSize,Bt=(0,xe.Z)(Yt,nt),qe=(0,Le.Z)(me,{value:Pt,postState:function(ht){return ht!=null?ht:""}}),tn=(0,Ee.Z)(qe,2),Tt=tn[0],ae=tn[1],ne=function(ht){ae(ht.target.value),_t==null||_t(ht)},te=Rt.useRef();Rt.useImperativeHandle(gt,function(){return{textArea:te.current}});var oe=Rt.useMemo(function(){return Ut&&(0,it.Z)(Ut)==="object"?[Ut.minRows,Ut.maxRows]:[]},[Ut]),ce=(0,Ee.Z)(oe,2),re=ce[0],le=ce[1],ye=!!Ut,ft=function(){try{if(document.activeElement===te.current){var ht=te.current,at=ht.selectionStart,Mt=ht.selectionEnd,Me=ht.scrollTop;te.current.setSelectionRange(at,Mt),te.current.scrollTop=Me}}catch(st){}},Ae=Rt.useState(ot),ke=(0,Ee.Z)(Ae,2),Ve=ke[0],Ye=ke[1],mt=Rt.useState(),we=(0,Ee.Z)(mt,2),De=we[0],Zt=we[1],Ht=function(){Ye(zt)};(0,Te.Z)(function(){ye&&Ht()},[Pt,re,le,ye]),(0,Te.Z)(function(){if(Ve===zt)Ye(yt);else if(Ve===yt){var He=Je(te.current,!1,re,le);Ye(ot),Zt(He)}else ft()},[Ve]);var nn=Rt.useRef(),qt=function(){Oe.Z.cancel(nn.current)},Et=function(ht){Ve===ot&&(kt==null||kt(ht),Ut&&(qt(),nn.current=(0,Oe.Z)(function(){Ht()})))};Rt.useEffect(function(){return qt},[]);var on=ye?De:null,Kt=(0,fe.Z)((0,fe.Z)({},et),on);return(Ve===zt||Ve===yt)&&(Kt.overflowY="hidden",Kt.overflowX="hidden"),Rt.createElement($e.Z,{onResize:Et,disabled:!(Ut||kt)},Rt.createElement("textarea",(0,b.Z)({},Bt,{ref:te,style:Kt,className:Ze()(Ne,ge,(0,We.Z)({},"".concat(Ne,"-disabled"),rt)),disabled:rt,value:Tt,onChange:ne})))}),Se=ct,lt=["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"],Ge=Rt.forwardRef(function(Ke,gt){var Yt,Ne=Ke.defaultValue,me=Ke.value,Pt=Ke.onFocus,Ut=Ke.onBlur,kt=Ke.onChange,ge=Ke.allowClear,et=Ke.maxLength,rt=Ke.onCompositionStart,_t=Ke.onCompositionEnd,Qe=Ke.suffix,Bt=Ke.prefixCls,qe=Bt===void 0?"rc-textarea":Bt,tn=Ke.showCount,Tt=Ke.count,ae=Ke.className,ne=Ke.style,te=Ke.disabled,oe=Ke.hidden,ce=Ke.classNames,re=Ke.styles,le=Ke.onResize,ye=Ke.onClear,ft=Ke.onPressEnter,Ae=Ke.readOnly,ke=Ke.autoSize,Ve=Ke.onKeyDown,Ye=(0,xe.Z)(Ke,lt),mt=(0,Le.Z)(Ne,{value:me,defaultValue:Ne}),we=(0,Ee.Z)(mt,2),De=we[0],Zt=we[1],Ht=De==null?"":String(De),nn=Rt.useState(!1),qt=(0,Ee.Z)(nn,2),Et=qt[0],on=qt[1],Kt=Rt.useRef(!1),He=Rt.useState(null),ht=(0,Ee.Z)(He,2),at=ht[0],Mt=ht[1],Me=(0,Rt.useRef)(null),st=(0,Rt.useRef)(null),Ct=function(){var bn;return(bn=st.current)===null||bn===void 0?void 0:bn.textArea},Wt=function(){Ct().focus()};(0,Rt.useImperativeHandle)(gt,function(){var sn;return{resizableTextArea:st.current,focus:Wt,blur:function(){Ct().blur()},nativeElement:((sn=Me.current)===null||sn===void 0?void 0:sn.nativeElement)||Ct()}}),(0,Rt.useEffect)(function(){on(function(sn){return!te&&sn})},[te]);var cn=Rt.useState(null),Sn=(0,Ee.Z)(cn,2),Bn=Sn[0],Rn=Sn[1];Rt.useEffect(function(){if(Bn){var sn;(sn=Ct()).setSelectionRange.apply(sn,(0,Ue.Z)(Bn))}},[Bn]);var gn=(0,ue.Z)(Tt,tn),Nn=(Yt=gn.max)!==null&&Yt!==void 0?Yt:et,dn=Number(Nn)>0,Xt=gn.strategy(Ht),rn=!!Nn&&Xt>Nn,an=function(bn,Hn){var An=Hn;!Kt.current&&gn.exceedFormatter&&gn.max&&gn.strategy(Hn)>gn.max&&(An=gn.exceedFormatter(Hn,{max:gn.max}),Hn!==An&&Rn([Ct().selectionStart||0,Ct().selectionEnd||0])),Zt(An),(0,tt.rJ)(bn.currentTarget,bn,kt,An)},Jt=function(bn){Kt.current=!0,rt==null||rt(bn)},pn=function(bn){Kt.current=!1,an(bn,bn.currentTarget.value),_t==null||_t(bn)},mn=function(bn){an(bn,bn.target.value)},Cn=function(bn){bn.key==="Enter"&&ft&&ft(bn),Ve==null||Ve(bn)},Fn=function(bn){on(!0),Pt==null||Pt(bn)},zn=function(bn){on(!1),Ut==null||Ut(bn)},Zn=function(bn){Zt(""),Wt(),(0,tt.rJ)(Ct(),bn,kt)},Xn=Qe,_n;gn.show&&(gn.showFormatter?_n=gn.showFormatter({value:Ht,count:Xt,maxLength:Nn}):_n="".concat(Xt).concat(dn?" / ".concat(Nn):""),Xn=Rt.createElement(Rt.Fragment,null,Xn,Rt.createElement("span",{className:Ze()("".concat(qe,"-data-count"),ce==null?void 0:ce.count),style:re==null?void 0:re.count},_n)));var pr=function(bn){var Hn;le==null||le(bn),(Hn=Ct())!==null&&Hn!==void 0&&Hn.style.height&&Mt(!0)},ar=!ke&&!tn&&!ge;return Rt.createElement(Ce.BaseInput,{ref:Me,value:Ht,allowClear:ge,handleReset:Zn,suffix:Xn,prefixCls:qe,classNames:(0,fe.Z)((0,fe.Z)({},ce),{},{affixWrapper:Ze()(ce==null?void 0:ce.affixWrapper,(0,We.Z)((0,We.Z)({},"".concat(qe,"-show-count"),tn),"".concat(qe,"-textarea-allow-clear"),ge))}),disabled:te,focused:Et,className:Ze()(ae,rn&&"".concat(qe,"-out-of-range")),style:(0,fe.Z)((0,fe.Z)({},ne),at&&!ar?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof _n=="string"?_n:void 0}},hidden:oe,readOnly:Ae,onClear:ye},Rt.createElement(Se,(0,b.Z)({},Ye,{autoSize:ke,maxLength:et,onKeyDown:Cn,onChange:mn,onFocus:Fn,onBlur:zn,onCompositionStart:Jt,onCompositionEnd:pn,className:Ze()(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:pr,ref:st,readOnly:Ae})))}),de=Ge,Dt=de},639:function(wn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return At}});var b=ee(60499),We=ee(18642),fe=ee(85899),Ue=ee(72190),Ee=ee(42244),xe=ee(59301),Ie=ee(92310),Ze=ee.n(Ie),Ce=ee(26112),ue=ee(30699),tt=function(Be){for(var Je=Be.prefixCls,nt=Be.level,zt=Be.isStart,yt=Be.isEnd,ot="".concat(Je,"-indent-unit"),ct=[],Se=0;Se<nt;Se+=1)ct.push(xe.createElement("span",{key:Se,className:Ze()(ot,(0,We.Z)((0,We.Z)({},"".concat(ot,"-start"),zt[Se]),"".concat(ot,"-end"),yt[Se]))}));return xe.createElement("span",{"aria-hidden":"true",className:"".concat(Je,"-indent")},ct)},Le=xe.memo(tt),Rt=ee(65065),it=ee(34061),$e=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],Te="open",Oe="close",Xe="---",pt=function(Be){var Je,nt,zt,yt=Be.eventKey,ot=Be.className,ct=Be.style,Se=Be.dragOver,lt=Be.dragOverGapTop,Ge=Be.dragOverGapBottom,de=Be.isLeaf,Dt=Be.isStart,Ke=Be.isEnd,gt=Be.expanded,Yt=Be.selected,Ne=Be.checked,me=Be.halfChecked,Pt=Be.loading,Ut=Be.domRef,kt=Be.active,ge=Be.data,et=Be.onMouseMove,rt=Be.selectable,_t=(0,Ee.Z)(Be,$e),Qe=xe.useContext(ue.k),Bt=xe.useContext(ue.y),qe=xe.useRef(null),tn=xe.useState(!1),Tt=(0,Ue.Z)(tn,2),ae=Tt[0],ne=Tt[1],te=!!(Qe.disabled||Be.disabled||(Je=Bt.nodeDisabled)!==null&&Je!==void 0&&Je.call(Bt,ge)),oe=xe.useMemo(function(){return!Qe.checkable||Be.checkable===!1?!1:Qe.checkable},[Qe.checkable,Be.checkable]),ce=function(Xt){te||Qe.onNodeSelect(Xt,(0,it.F)(Be))},re=function(Xt){te||!oe||Be.disableCheckbox||Qe.onNodeCheck(Xt,(0,it.F)(Be),!Ne)},le=xe.useMemo(function(){return typeof rt=="boolean"?rt:Qe.selectable},[rt,Qe.selectable]),ye=function(Xt){Qe.onNodeClick(Xt,(0,it.F)(Be)),le?ce(Xt):re(Xt)},ft=function(Xt){Qe.onNodeDoubleClick(Xt,(0,it.F)(Be))},Ae=function(Xt){Qe.onNodeMouseEnter(Xt,(0,it.F)(Be))},ke=function(Xt){Qe.onNodeMouseLeave(Xt,(0,it.F)(Be))},Ve=function(Xt){Qe.onNodeContextMenu(Xt,(0,it.F)(Be))},Ye=xe.useMemo(function(){return!!(Qe.draggable&&(!Qe.draggable.nodeDraggable||Qe.draggable.nodeDraggable(ge)))},[Qe.draggable,ge]),mt=function(Xt){Xt.stopPropagation(),ne(!0),Qe.onNodeDragStart(Xt,Be);try{Xt.dataTransfer.setData("text/plain","")}catch(rn){}},we=function(Xt){Xt.preventDefault(),Xt.stopPropagation(),Qe.onNodeDragEnter(Xt,Be)},De=function(Xt){Xt.preventDefault(),Xt.stopPropagation(),Qe.onNodeDragOver(Xt,Be)},Zt=function(Xt){Xt.stopPropagation(),Qe.onNodeDragLeave(Xt,Be)},Ht=function(Xt){Xt.stopPropagation(),ne(!1),Qe.onNodeDragEnd(Xt,Be)},nn=function(Xt){Xt.preventDefault(),Xt.stopPropagation(),ne(!1),Qe.onNodeDrop(Xt,Be)},qt=function(Xt){Pt||Qe.onNodeExpand(Xt,(0,it.F)(Be))},Et=xe.useMemo(function(){var dn=(0,Rt.Z)(Qe.keyEntities,yt)||{},Xt=dn.children;return!!(Xt||[]).length},[Qe.keyEntities,yt]),on=xe.useMemo(function(){return de===!1?!1:de||!Qe.loadData&&!Et||Qe.loadData&&Be.loaded&&!Et},[de,Qe.loadData,Et,Be.loaded]);xe.useEffect(function(){Pt||typeof Qe.loadData=="function"&>&&!on&&!Be.loaded&&Qe.onNodeLoad((0,it.F)(Be))},[Pt,Qe.loadData,Qe.onNodeLoad,gt,on,Be]);var Kt=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]),He=function(Xt){var rn=Be.switcherIcon||Qe.switcherIcon;return typeof rn=="function"?rn((0,fe.Z)((0,fe.Z)({},Be),{},{isLeaf:Xt})):rn},ht=function(){if(on){var Xt=He(!0);return Xt!==!1?xe.createElement("span",{className:Ze()("".concat(Qe.prefixCls,"-switcher"),"".concat(Qe.prefixCls,"-switcher-noop"))},Xt):null}var rn=He(!1);return rn!==!1?xe.createElement("span",{onClick:qt,className:Ze()("".concat(Qe.prefixCls,"-switcher"),"".concat(Qe.prefixCls,"-switcher_").concat(gt?Te:Oe))},rn):null},at=xe.useMemo(function(){if(!oe)return null;var dn=typeof oe!="boolean"?oe:null;return xe.createElement("span",{className:Ze()("".concat(Qe.prefixCls,"-checkbox"),(0,We.Z)((0,We.Z)((0,We.Z)({},"".concat(Qe.prefixCls,"-checkbox-checked"),Ne),"".concat(Qe.prefixCls,"-checkbox-indeterminate"),!Ne&&me),"".concat(Qe.prefixCls,"-checkbox-disabled"),te||Be.disableCheckbox)),onClick:re,role:"checkbox","aria-checked":me?"mixed":Ne,"aria-disabled":te||Be.disableCheckbox,"aria-label":"Select ".concat(typeof Be.title=="string"?Be.title:"tree node")},dn)},[oe,Ne,me,te,Be.disableCheckbox,Be.title]),Mt=xe.useMemo(function(){return on?null:gt?Te:Oe},[on,gt]),Me=xe.useMemo(function(){return xe.createElement("span",{className:Ze()("".concat(Qe.prefixCls,"-iconEle"),"".concat(Qe.prefixCls,"-icon__").concat(Mt||"docu"),(0,We.Z)({},"".concat(Qe.prefixCls,"-icon_loading"),Pt))})},[Qe.prefixCls,Mt,Pt]),st=xe.useMemo(function(){var dn=!!Qe.draggable,Xt=!Be.disabled&&dn&&Qe.dragOverNodeKey===yt;return Xt?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]),Ct=xe.useMemo(function(){var dn=Be.title,Xt=dn===void 0?Xe:dn,rn="".concat(Qe.prefixCls,"-node-content-wrapper"),an;if(Qe.showIcon){var Jt=Be.icon||Qe.icon;an=Jt?xe.createElement("span",{className:Ze()("".concat(Qe.prefixCls,"-iconEle"),"".concat(Qe.prefixCls,"-icon__customize"))},typeof Jt=="function"?Jt(Be):Jt):Me}else Qe.loadData&&Pt&&(an=Me);var pn;return typeof Xt=="function"?pn=Xt(ge):Qe.titleRender?pn=Qe.titleRender(ge):pn=Xt,xe.createElement("span",{ref:qe,title:typeof Xt=="string"?Xt:"",className:Ze()(rn,"".concat(rn,"-").concat(Mt||"normal"),(0,We.Z)({},"".concat(Qe.prefixCls,"-node-selected"),!te&&(Yt||ae))),onMouseEnter:Ae,onMouseLeave:ke,onContextMenu:Ve,onClick:ye,onDoubleClick:ft},an,xe.createElement("span",{className:"".concat(Qe.prefixCls,"-title")},pn),st)},[Qe.prefixCls,Qe.showIcon,Be,Qe.icon,Me,Qe.titleRender,ge,Mt,Ae,ke,Ve,ye,ft]),Wt=(0,Ce.Z)(_t,{aria:!0,data:!0}),cn=(0,Rt.Z)(Qe.keyEntities,yt)||{},Sn=cn.level,Bn=Ke[Ke.length-1],Rn=!te&&Ye,gn=Qe.draggingNodeKey===yt,Nn=rt!==void 0?{"aria-selected":!!rt}:void 0;return xe.createElement("div",(0,b.Z)({ref:Ut,role:"treeitem","aria-expanded":de?void 0:gt,className:Ze()(ot,"".concat(Qe.prefixCls,"-treenode"),(zt={},(0,We.Z)((0,We.Z)((0,We.Z)((0,We.Z)((0,We.Z)((0,We.Z)((0,We.Z)((0,We.Z)((0,We.Z)((0,We.Z)(zt,"".concat(Qe.prefixCls,"-treenode-disabled"),te),"".concat(Qe.prefixCls,"-treenode-switcher-").concat(gt?"open":"close"),!de),"".concat(Qe.prefixCls,"-treenode-checkbox-checked"),Ne),"".concat(Qe.prefixCls,"-treenode-checkbox-indeterminate"),me),"".concat(Qe.prefixCls,"-treenode-selected"),Yt),"".concat(Qe.prefixCls,"-treenode-loading"),Pt),"".concat(Qe.prefixCls,"-treenode-active"),kt),"".concat(Qe.prefixCls,"-treenode-leaf-last"),Bn),"".concat(Qe.prefixCls,"-treenode-draggable"),Ye),"dragging",gn),(0,We.Z)((0,We.Z)((0,We.Z)((0,We.Z)((0,We.Z)((0,We.Z)((0,We.Z)(zt,"drop-target",Qe.dropTargetKey===yt),"drop-container",Qe.dropContainerKey===yt),"drag-over",!te&&Se),"drag-over-gap-top",!te&<),"drag-over-gap-bottom",!te&&Ge),"filter-node",(nt=Qe.filterTreeNode)===null||nt===void 0?void 0:nt.call(Qe,(0,it.F)(Be))),"".concat(Qe.prefixCls,"-treenode-leaf"),on))),style:ct,draggable:Rn,onDragStart:Rn?mt:void 0,onDragEnter:Ye?we:void 0,onDragOver:Ye?De:void 0,onDragLeave:Ye?Zt:void 0,onDrop:Ye?nn:void 0,onDragEnd:Ye?Ht:void 0,onMouseMove:et},Nn,Wt),xe.createElement(Le,{prefixCls:Qe.prefixCls,level:Sn,isStart:Dt,isEnd:Ke}),Kt,ht(),at,Ct)};pt.isTreeNode=1;var At=pt},30699:function(wn,Qt,ee){"use strict";ee.d(Qt,{k:function(){return We},y:function(){return fe}});var b=ee(59301),We=b.createContext(null),fe=b.createContext({})},87632:function(wn,Qt,ee){"use strict";ee.d(Qt,{OF:function(){return yt.Z},y6:function(){return Oe.y},ZP:function(){return te}});var b=ee(60499),We=ee(43749),fe=ee(85899),Ue=ee(77654),Ee=ee(38705),xe=ee(17212),Ie=ee(15793),Ze=ee(39153),Ce=ee(55401),ue=ee(18642),tt=ee(92310),Le=ee.n(tt),Rt=ee(10228),it=ee(26112),$e=ee(48736),Te=ee(59301),Oe=ee(30699),Xe=function(ce){var re=ce.dropPosition,le=ce.dropLevelOffset,ye=ce.indent,ft={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(re){case-1:ft.top=0,ft.left=-le*ye;break;case 1:ft.bottom=0,ft.left=-le*ye;break;case 0:ft.bottom=0,ft.left=ye;break}return Te.createElement("div",{style:ft})},pt=Xe;function At(oe){if(oe==null)throw new TypeError("Cannot destructure "+oe)}var je=ee(72190),Be=ee(42244),Je=ee(34280),nt=ee(48911),zt=ee(77900),yt=ee(639);function ot(oe,ce){var re=Te.useState(!1),le=(0,je.Z)(re,2),ye=le[0],ft=le[1];(0,Je.Z)(function(){if(ye)return oe(),function(){ce()}},[ye]),(0,Je.Z)(function(){return ft(!0),function(){ft(!1)}},[])}var ct=ot,Se=ee(34061),lt=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Ge=Te.forwardRef(function(oe,ce){var re=oe.className,le=oe.style,ye=oe.motion,ft=oe.motionNodes,Ae=oe.motionType,ke=oe.onMotionStart,Ve=oe.onMotionEnd,Ye=oe.active,mt=oe.treeNodeRequiredProps,we=(0,Be.Z)(oe,lt),De=Te.useState(!0),Zt=(0,je.Z)(De,2),Ht=Zt[0],nn=Zt[1],qt=Te.useContext(Oe.k),Et=qt.prefixCls,on=ft&&Ae!=="hide";(0,Je.Z)(function(){ft&&on!==Ht&&nn(on)},[ft]);var Kt=function(){ft&&ke()},He=Te.useRef(!1),ht=function(){ft&&!He.current&&(He.current=!0,Ve())};ct(Kt,ht);var at=function(Me){on===Me&&ht()};return ft?Te.createElement(zt.default,(0,b.Z)({ref:ce,visible:Ht},ye,{motionAppear:Ae==="show",onVisibleChanged:at}),function(Mt,Me){var st=Mt.className,Ct=Mt.style;return Te.createElement("div",{ref:Me,className:Le()("".concat(Et,"-treenode-motion"),st),style:Ct},ft.map(function(Wt){var cn=Object.assign({},(At(Wt.data),Wt.data)),Sn=Wt.title,Bn=Wt.key,Rn=Wt.isStart,gn=Wt.isEnd;delete cn.children;var Nn=(0,Se.H8)(Bn,mt);return Te.createElement(yt.Z,(0,b.Z)({},cn,Nn,{title:Sn,active:Ye,data:Wt.data,key:Bn,isStart:Rn,isEnd:gn}))}))}):Te.createElement(yt.Z,(0,b.Z)({domRef:ce,className:re,style:le},we,{active:Ye}))}),de=Ge;function Dt(){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 ye(ft,Ae){var ke=new Map;ft.forEach(function(Ye){ke.set(Ye,!0)});var Ve=Ae.filter(function(Ye){return!ke.has(Ye)});return Ve.length===1?Ve[0]:null}return re<le?{add:!0,key:ye(oe,ce)}:{add:!1,key:ye(ce,oe)}}function Ke(oe,ce,re){var le=oe.findIndex(function(ke){return ke.key===re}),ye=oe[le+1],ft=ce.findIndex(function(ke){return ke.key===re});if(ye){var Ae=ce.findIndex(function(ke){return ke.key===ye.key});return ce.slice(ft+1,Ae)}return ce.slice(ft+1)}var gt=["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},Ne=function(){},me="RC_TREE_MOTION_".concat(Math.random()),Pt={key:me},Ut={key:me,level:0,index:0,pos:"0",node:Pt,nodes:[Pt]},kt={parent:null,children:[],pos:Ut.pos,data:Pt,title:null,key:me,isStart:[],isEnd:[]};function ge(oe,ce,re,le){return ce===!1||!re?oe:oe.slice(0,Math.ceil(re/le)+1)}function et(oe){var ce=oe.key,re=oe.pos;return(0,Se.km)(ce,re)}function rt(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 _t=Te.forwardRef(function(oe,ce){var re=oe.prefixCls,le=oe.data,ye=oe.selectable,ft=oe.checkable,Ae=oe.expandedKeys,ke=oe.selectedKeys,Ve=oe.checkedKeys,Ye=oe.loadedKeys,mt=oe.loadingKeys,we=oe.halfCheckedKeys,De=oe.keyEntities,Zt=oe.disabled,Ht=oe.dragging,nn=oe.dragOverNodeKey,qt=oe.dropPosition,Et=oe.motion,on=oe.height,Kt=oe.itemHeight,He=oe.virtual,ht=oe.scrollWidth,at=oe.focusable,Mt=oe.activeItem,Me=oe.focused,st=oe.tabIndex,Ct=oe.onKeyDown,Wt=oe.onFocus,cn=oe.onBlur,Sn=oe.onActiveChange,Bn=oe.onListChangeStart,Rn=oe.onListChangeEnd,gn=(0,Be.Z)(oe,gt),Nn=Te.useRef(null),dn=Te.useRef(null);Te.useImperativeHandle(ce,function(){return{scrollTo:function(It){Nn.current.scrollTo(It)},getIndentWidth:function(){return dn.current.offsetWidth}}});var Xt=Te.useState(Ae),rn=(0,je.Z)(Xt,2),an=rn[0],Jt=rn[1],pn=Te.useState(le),mn=(0,je.Z)(pn,2),Cn=mn[0],Fn=mn[1],zn=Te.useState(le),Zn=(0,je.Z)(zn,2),Xn=Zn[0],_n=Zn[1],pr=Te.useState([]),ar=(0,je.Z)(pr,2),sn=ar[0],bn=ar[1],Hn=Te.useState(null),An=(0,je.Z)(Hn,2),ut=An[0],Ot=An[1],Fe=Te.useRef(le);Fe.current=le;function vt(){var Pe=Fe.current;Fn(Pe),_n(Pe),bn([]),Ot(null),Rn()}(0,Je.Z)(function(){Jt(Ae);var Pe=Dt(an,Ae);if(Pe.key!==null)if(Pe.add){var It=Cn.findIndex(function(Ft){var On=Ft.key;return On===Pe.key}),$t=ge(Ke(Cn,le,Pe.key),He,on,Kt),Vt=Cn.slice();Vt.splice(It+1,0,kt),_n(Vt),bn($t),Ot("show")}else{var St=le.findIndex(function(Ft){var On=Ft.key;return On===Pe.key}),xt=ge(Ke(le,Cn,Pe.key),He,on,Kt),wt=le.slice();wt.splice(St+1,0,kt),_n(wt),bn(xt),Ot("hide")}else Cn!==le&&(Fn(le),_n(le))},[Ae,le]),Te.useEffect(function(){Ht||vt()},[Ht]);var ze=Et?Xn:le,bt={expandedKeys:Ae,selectedKeys:ke,loadedKeys:Ye,loadingKeys:mt,checkedKeys:Ve,halfCheckedKeys:we,dragOverNodeKey:nn,dropPosition:qt,keyEntities:De};return Te.createElement(Te.Fragment,null,Me&&Mt&&Te.createElement("span",{style:Yt,"aria-live":"assertive"},rt(Mt)),Te.createElement("div",null,Te.createElement("input",{style:Yt,disabled:at===!1||Zt,tabIndex:at!==!1?st:null,onKeyDown:Ct,onFocus:Wt,onBlur:cn,value:"",onChange:Ne,"aria-label":"for screen reader"})),Te.createElement("div",{className:"".concat(re,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},Te.createElement("div",{className:"".concat(re,"-indent")},Te.createElement("div",{ref:dn,className:"".concat(re,"-indent-unit")}))),Te.createElement(nt.Z,(0,b.Z)({},gn,{data:ze,itemKey:et,height:on,fullHeight:!1,virtual:He,itemHeight:Kt,scrollWidth:ht,prefixCls:"".concat(re,"-list"),ref:Nn,role:"tree",onVisibleChange:function(It){It.every(function($t){return et($t)!==me})&&vt()}}),function(Pe){var It=Pe.pos,$t=Object.assign({},(At(Pe.data),Pe.data)),Vt=Pe.title,St=Pe.key,xt=Pe.isStart,wt=Pe.isEnd,Ft=(0,Se.km)(St,It);delete $t.key,delete $t.children;var On=(0,Se.H8)(Ft,bt);return Te.createElement(de,(0,b.Z)({},$t,On,{title:Vt,active:!!Mt&&St===Mt.key,pos:It,data:Pe.data,isStart:xt,isEnd:wt,motion:Et,motionNodes:St===me?sn:null,motionType:ut,onMotionStart:Bn,onMotionEnd:vt,treeNodeRequiredProps:bt,onMouseMove:function(){Sn(null)}}))}))}),Qe=_t,Bt=ee(82661),qe=ee(34643),tn=ee(65065),Tt=10,ae=function(oe){(0,Ze.Z)(re,oe);var ce=(0,Ce.Z)(re);function re(){var le;(0,Ee.Z)(this,re);for(var ye=arguments.length,ft=new Array(ye),Ae=0;Ae<ye;Ae++)ft[Ae]=arguments[Ae];return le=ce.call.apply(ce,[this].concat(ft)),(0,ue.Z)((0,Ie.Z)(le),"destroyed",!1),(0,ue.Z)((0,Ie.Z)(le),"delayedDragEnterLogic",void 0),(0,ue.Z)((0,Ie.Z)(le),"loadingRetryTimes",{}),(0,ue.Z)((0,Ie.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,Se.w$)()}),(0,ue.Z)((0,Ie.Z)(le),"dragStartMousePosition",null),(0,ue.Z)((0,Ie.Z)(le),"dragNodeProps",null),(0,ue.Z)((0,Ie.Z)(le),"currentMouseOverDroppableNodeKey",null),(0,ue.Z)((0,Ie.Z)(le),"listRef",Te.createRef()),(0,ue.Z)((0,Ie.Z)(le),"onNodeDragStart",function(ke,Ve){var Ye=le.state,mt=Ye.expandedKeys,we=Ye.keyEntities,De=le.props.onDragStart,Zt=Ve.eventKey;le.dragNodeProps=Ve,le.dragStartMousePosition={x:ke.clientX,y:ke.clientY};var Ht=(0,Bt._5)(mt,Zt);le.setState({draggingNodeKey:Zt,dragChildrenKeys:(0,Bt.wA)(Zt,we),indent:le.listRef.current.getIndentWidth()}),le.setExpandedKeys(Ht),window.addEventListener("dragend",le.onWindowDragEnd),De==null||De({event:ke,node:(0,Se.F)(Ve)})}),(0,ue.Z)((0,Ie.Z)(le),"onNodeDragEnter",function(ke,Ve){var Ye=le.state,mt=Ye.expandedKeys,we=Ye.keyEntities,De=Ye.dragChildrenKeys,Zt=Ye.flattenNodes,Ht=Ye.indent,nn=le.props,qt=nn.onDragEnter,Et=nn.onExpand,on=nn.allowDrop,Kt=nn.direction,He=Ve.pos,ht=Ve.eventKey;if(le.currentMouseOverDroppableNodeKey!==ht&&(le.currentMouseOverDroppableNodeKey=ht),!le.dragNodeProps){le.resetDragState();return}var at=(0,Bt.OM)(ke,le.dragNodeProps,Ve,Ht,le.dragStartMousePosition,on,Zt,we,mt,Kt),Mt=at.dropPosition,Me=at.dropLevelOffset,st=at.dropTargetKey,Ct=at.dropContainerKey,Wt=at.dropTargetPos,cn=at.dropAllowed,Sn=at.dragOverNodeKey;if(De.includes(st)||!cn){le.resetDragState();return}if(le.delayedDragEnterLogic||(le.delayedDragEnterLogic={}),Object.keys(le.delayedDragEnterLogic).forEach(function(Bn){clearTimeout(le.delayedDragEnterLogic[Bn])}),le.dragNodeProps.eventKey!==Ve.eventKey&&(ke.persist(),le.delayedDragEnterLogic[He]=window.setTimeout(function(){if(le.state.draggingNodeKey!==null){var Bn=(0,Ue.Z)(mt),Rn=(0,tn.Z)(we,Ve.eventKey);Rn&&(Rn.children||[]).length&&(Bn=(0,Bt.L0)(mt,Ve.eventKey)),le.props.hasOwnProperty("expandedKeys")||le.setExpandedKeys(Bn),Et==null||Et(Bn,{node:(0,Se.F)(Ve),expanded:!0,nativeEvent:ke.nativeEvent})}},800)),le.dragNodeProps.eventKey===st&&Me===0){le.resetDragState();return}le.setState({dragOverNodeKey:Sn,dropPosition:Mt,dropLevelOffset:Me,dropTargetKey:st,dropContainerKey:Ct,dropTargetPos:Wt,dropAllowed:cn}),qt==null||qt({event:ke,node:(0,Se.F)(Ve),expandedKeys:mt})}),(0,ue.Z)((0,Ie.Z)(le),"onNodeDragOver",function(ke,Ve){var Ye=le.state,mt=Ye.dragChildrenKeys,we=Ye.flattenNodes,De=Ye.keyEntities,Zt=Ye.expandedKeys,Ht=Ye.indent,nn=le.props,qt=nn.onDragOver,Et=nn.allowDrop,on=nn.direction;if(le.dragNodeProps){var Kt=(0,Bt.OM)(ke,le.dragNodeProps,Ve,Ht,le.dragStartMousePosition,Et,we,De,Zt,on),He=Kt.dropPosition,ht=Kt.dropLevelOffset,at=Kt.dropTargetKey,Mt=Kt.dropContainerKey,Me=Kt.dropTargetPos,st=Kt.dropAllowed,Ct=Kt.dragOverNodeKey;mt.includes(at)||!st||(le.dragNodeProps.eventKey===at&&ht===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():He===le.state.dropPosition&&ht===le.state.dropLevelOffset&&at===le.state.dropTargetKey&&Mt===le.state.dropContainerKey&&Me===le.state.dropTargetPos&&st===le.state.dropAllowed&&Ct===le.state.dragOverNodeKey||le.setState({dropPosition:He,dropLevelOffset:ht,dropTargetKey:at,dropContainerKey:Mt,dropTargetPos:Me,dropAllowed:st,dragOverNodeKey:Ct}),qt==null||qt({event:ke,node:(0,Se.F)(Ve)}))}}),(0,ue.Z)((0,Ie.Z)(le),"onNodeDragLeave",function(ke,Ve){le.currentMouseOverDroppableNodeKey===Ve.eventKey&&!ke.currentTarget.contains(ke.relatedTarget)&&(le.resetDragState(),le.currentMouseOverDroppableNodeKey=null);var Ye=le.props.onDragLeave;Ye==null||Ye({event:ke,node:(0,Se.F)(Ve)})}),(0,ue.Z)((0,Ie.Z)(le),"onWindowDragEnd",function(ke){le.onNodeDragEnd(ke,null,!0),window.removeEventListener("dragend",le.onWindowDragEnd)}),(0,ue.Z)((0,Ie.Z)(le),"onNodeDragEnd",function(ke,Ve){var Ye=le.props.onDragEnd;le.setState({dragOverNodeKey:null}),le.cleanDragState(),Ye==null||Ye({event:ke,node:(0,Se.F)(Ve)}),le.dragNodeProps=null,window.removeEventListener("dragend",le.onWindowDragEnd)}),(0,ue.Z)((0,Ie.Z)(le),"onNodeDrop",function(ke,Ve){var Ye,mt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,we=le.state,De=we.dragChildrenKeys,Zt=we.dropPosition,Ht=we.dropTargetKey,nn=we.dropTargetPos,qt=we.dropAllowed;if(qt){var Et=le.props.onDrop;if(le.setState({dragOverNodeKey:null}),le.cleanDragState(),Ht!==null){var on=(0,fe.Z)((0,fe.Z)({},(0,Se.H8)(Ht,le.getTreeNodeRequiredProps())),{},{active:((Ye=le.getActiveItem())===null||Ye===void 0?void 0:Ye.key)===Ht,data:(0,tn.Z)(le.state.keyEntities,Ht).node}),Kt=De.includes(Ht);(0,$e.ZP)(!Kt,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var He=(0,Bt.yx)(nn),ht={event:ke,node:(0,Se.F)(on),dragNode:le.dragNodeProps?(0,Se.F)(le.dragNodeProps):null,dragNodesKeys:[le.dragNodeProps.eventKey].concat(De),dropToGap:Zt!==0,dropPosition:Zt+Number(He[He.length-1])};mt||Et==null||Et(ht),le.dragNodeProps=null}}}),(0,ue.Z)((0,Ie.Z)(le),"cleanDragState",function(){var ke=le.state.draggingNodeKey;ke!==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,Ie.Z)(le),"triggerExpandActionExpand",function(ke,Ve){var Ye=le.state,mt=Ye.expandedKeys,we=Ye.flattenNodes,De=Ve.expanded,Zt=Ve.key,Ht=Ve.isLeaf;if(!(Ht||ke.shiftKey||ke.metaKey||ke.ctrlKey)){var nn=we.filter(function(Et){return Et.key===Zt})[0],qt=(0,Se.F)((0,fe.Z)((0,fe.Z)({},(0,Se.H8)(Zt,le.getTreeNodeRequiredProps())),{},{data:nn.data}));le.setExpandedKeys(De?(0,Bt._5)(mt,Zt):(0,Bt.L0)(mt,Zt)),le.onNodeExpand(ke,qt)}}),(0,ue.Z)((0,Ie.Z)(le),"onNodeClick",function(ke,Ve){var Ye=le.props,mt=Ye.onClick,we=Ye.expandAction;we==="click"&&le.triggerExpandActionExpand(ke,Ve),mt==null||mt(ke,Ve)}),(0,ue.Z)((0,Ie.Z)(le),"onNodeDoubleClick",function(ke,Ve){var Ye=le.props,mt=Ye.onDoubleClick,we=Ye.expandAction;we==="doubleClick"&&le.triggerExpandActionExpand(ke,Ve),mt==null||mt(ke,Ve)}),(0,ue.Z)((0,Ie.Z)(le),"onNodeSelect",function(ke,Ve){var Ye=le.state.selectedKeys,mt=le.state,we=mt.keyEntities,De=mt.fieldNames,Zt=le.props,Ht=Zt.onSelect,nn=Zt.multiple,qt=Ve.selected,Et=Ve[De.key],on=!qt;on?nn?Ye=(0,Bt.L0)(Ye,Et):Ye=[Et]:Ye=(0,Bt._5)(Ye,Et);var Kt=Ye.map(function(He){var ht=(0,tn.Z)(we,He);return ht?ht.node:null}).filter(Boolean);le.setUncontrolledState({selectedKeys:Ye}),Ht==null||Ht(Ye,{event:"select",selected:on,node:Ve,selectedNodes:Kt,nativeEvent:ke.nativeEvent})}),(0,ue.Z)((0,Ie.Z)(le),"onNodeCheck",function(ke,Ve,Ye){var mt=le.state,we=mt.keyEntities,De=mt.checkedKeys,Zt=mt.halfCheckedKeys,Ht=le.props,nn=Ht.checkStrictly,qt=Ht.onCheck,Et=Ve.key,on,Kt={event:"check",node:Ve,checked:Ye,nativeEvent:ke.nativeEvent};if(nn){var He=Ye?(0,Bt.L0)(De,Et):(0,Bt._5)(De,Et),ht=(0,Bt._5)(Zt,Et);on={checked:He,halfChecked:ht},Kt.checkedNodes=He.map(function(Wt){return(0,tn.Z)(we,Wt)}).filter(Boolean).map(function(Wt){return Wt.node}),le.setUncontrolledState({checkedKeys:He})}else{var at=(0,qe.S)([].concat((0,Ue.Z)(De),[Et]),!0,we),Mt=at.checkedKeys,Me=at.halfCheckedKeys;if(!Ye){var st=new Set(Mt);st.delete(Et);var Ct=(0,qe.S)(Array.from(st),{checked:!1,halfCheckedKeys:Me},we);Mt=Ct.checkedKeys,Me=Ct.halfCheckedKeys}on=Mt,Kt.checkedNodes=[],Kt.checkedNodesPositions=[],Kt.halfCheckedKeys=Me,Mt.forEach(function(Wt){var cn=(0,tn.Z)(we,Wt);if(cn){var Sn=cn.node,Bn=cn.pos;Kt.checkedNodes.push(Sn),Kt.checkedNodesPositions.push({node:Sn,pos:Bn})}}),le.setUncontrolledState({checkedKeys:Mt},!1,{halfCheckedKeys:Me})}qt==null||qt(on,Kt)}),(0,ue.Z)((0,Ie.Z)(le),"onNodeLoad",function(ke){var Ve,Ye=ke.key,mt=le.state.keyEntities,we=(0,tn.Z)(mt,Ye);if(!(we!=null&&(Ve=we.children)!==null&&Ve!==void 0&&Ve.length)){var De=new Promise(function(Zt,Ht){le.setState(function(nn){var qt=nn.loadedKeys,Et=qt===void 0?[]:qt,on=nn.loadingKeys,Kt=on===void 0?[]:on,He=le.props,ht=He.loadData,at=He.onLoad;if(!ht||Et.includes(Ye)||Kt.includes(Ye))return null;var Mt=ht(ke);return Mt.then(function(){var Me=le.state.loadedKeys,st=(0,Bt.L0)(Me,Ye);at==null||at(st,{event:"load",node:ke}),le.setUncontrolledState({loadedKeys:st}),le.setState(function(Ct){return{loadingKeys:(0,Bt._5)(Ct.loadingKeys,Ye)}}),Zt()}).catch(function(Me){if(le.setState(function(Ct){return{loadingKeys:(0,Bt._5)(Ct.loadingKeys,Ye)}}),le.loadingRetryTimes[Ye]=(le.loadingRetryTimes[Ye]||0)+1,le.loadingRetryTimes[Ye]>=Tt){var st=le.state.loadedKeys;(0,$e.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),le.setUncontrolledState({loadedKeys:(0,Bt.L0)(st,Ye)}),Zt()}Ht(Me)}),{loadingKeys:(0,Bt.L0)(Kt,Ye)}})});return De.catch(function(){}),De}}),(0,ue.Z)((0,Ie.Z)(le),"onNodeMouseEnter",function(ke,Ve){var Ye=le.props.onMouseEnter;Ye==null||Ye({event:ke,node:Ve})}),(0,ue.Z)((0,Ie.Z)(le),"onNodeMouseLeave",function(ke,Ve){var Ye=le.props.onMouseLeave;Ye==null||Ye({event:ke,node:Ve})}),(0,ue.Z)((0,Ie.Z)(le),"onNodeContextMenu",function(ke,Ve){var Ye=le.props.onRightClick;Ye&&(ke.preventDefault(),Ye({event:ke,node:Ve}))}),(0,ue.Z)((0,Ie.Z)(le),"onFocus",function(){var ke=le.props.onFocus;le.setState({focused:!0});for(var Ve=arguments.length,Ye=new Array(Ve),mt=0;mt<Ve;mt++)Ye[mt]=arguments[mt];ke==null||ke.apply(void 0,Ye)}),(0,ue.Z)((0,Ie.Z)(le),"onBlur",function(){var ke=le.props.onBlur;le.setState({focused:!1}),le.onActiveChange(null);for(var Ve=arguments.length,Ye=new Array(Ve),mt=0;mt<Ve;mt++)Ye[mt]=arguments[mt];ke==null||ke.apply(void 0,Ye)}),(0,ue.Z)((0,Ie.Z)(le),"getTreeNodeRequiredProps",function(){var ke=le.state,Ve=ke.expandedKeys,Ye=ke.selectedKeys,mt=ke.loadedKeys,we=ke.loadingKeys,De=ke.checkedKeys,Zt=ke.halfCheckedKeys,Ht=ke.dragOverNodeKey,nn=ke.dropPosition,qt=ke.keyEntities;return{expandedKeys:Ve||[],selectedKeys:Ye||[],loadedKeys:mt||[],loadingKeys:we||[],checkedKeys:De||[],halfCheckedKeys:Zt||[],dragOverNodeKey:Ht,dropPosition:nn,keyEntities:qt}}),(0,ue.Z)((0,Ie.Z)(le),"setExpandedKeys",function(ke){var Ve=le.state,Ye=Ve.treeData,mt=Ve.fieldNames,we=(0,Se.oH)(Ye,ke,mt);le.setUncontrolledState({expandedKeys:ke,flattenNodes:we},!0)}),(0,ue.Z)((0,Ie.Z)(le),"onNodeExpand",function(ke,Ve){var Ye=le.state.expandedKeys,mt=le.state,we=mt.listChanging,De=mt.fieldNames,Zt=le.props,Ht=Zt.onExpand,nn=Zt.loadData,qt=Ve.expanded,Et=Ve[De.key];if(!we){var on=Ye.includes(Et),Kt=!qt;if((0,$e.ZP)(qt&&on||!qt&&!on,"Expand state not sync with index check"),Ye=Kt?(0,Bt.L0)(Ye,Et):(0,Bt._5)(Ye,Et),le.setExpandedKeys(Ye),Ht==null||Ht(Ye,{node:Ve,expanded:Kt,nativeEvent:ke.nativeEvent}),Kt&&nn){var He=le.onNodeLoad(Ve);He&&He.then(function(){var ht=(0,Se.oH)(le.state.treeData,Ye,De);le.setUncontrolledState({flattenNodes:ht})}).catch(function(){var ht=le.state.expandedKeys,at=(0,Bt._5)(ht,Et);le.setExpandedKeys(at)})}}}),(0,ue.Z)((0,Ie.Z)(le),"onListChangeStart",function(){le.setUncontrolledState({listChanging:!0})}),(0,ue.Z)((0,Ie.Z)(le),"onListChangeEnd",function(){setTimeout(function(){le.setUncontrolledState({listChanging:!1})})}),(0,ue.Z)((0,Ie.Z)(le),"onActiveChange",function(ke){var Ve=le.state.activeKey,Ye=le.props,mt=Ye.onActiveChange,we=Ye.itemScrollOffset,De=we===void 0?0:we;Ve!==ke&&(le.setState({activeKey:ke}),ke!==null&&le.scrollTo({key:ke,offset:De}),mt==null||mt(ke))}),(0,ue.Z)((0,Ie.Z)(le),"getActiveItem",function(){var ke=le.state,Ve=ke.activeKey,Ye=ke.flattenNodes;return Ve===null?null:Ye.find(function(mt){var we=mt.key;return we===Ve})||null}),(0,ue.Z)((0,Ie.Z)(le),"offsetActiveKey",function(ke){var Ve=le.state,Ye=Ve.flattenNodes,mt=Ve.activeKey,we=Ye.findIndex(function(Ht){var nn=Ht.key;return nn===mt});we===-1&&ke<0&&(we=Ye.length),we=(we+ke+Ye.length)%Ye.length;var De=Ye[we];if(De){var Zt=De.key;le.onActiveChange(Zt)}else le.onActiveChange(null)}),(0,ue.Z)((0,Ie.Z)(le),"onKeyDown",function(ke){var Ve=le.state,Ye=Ve.activeKey,mt=Ve.expandedKeys,we=Ve.checkedKeys,De=Ve.fieldNames,Zt=le.props,Ht=Zt.onKeyDown,nn=Zt.checkable,qt=Zt.selectable;switch(ke.which){case Rt.Z.UP:{le.offsetActiveKey(-1),ke.preventDefault();break}case Rt.Z.DOWN:{le.offsetActiveKey(1),ke.preventDefault();break}}var Et=le.getActiveItem();if(Et&&Et.data){var on=le.getTreeNodeRequiredProps(),Kt=Et.data.isLeaf===!1||!!(Et.data[De.children]||[]).length,He=(0,Se.F)((0,fe.Z)((0,fe.Z)({},(0,Se.H8)(Ye,on)),{},{data:Et.data,active:!0}));switch(ke.which){case Rt.Z.LEFT:{Kt&&mt.includes(Ye)?le.onNodeExpand({},He):Et.parent&&le.onActiveChange(Et.parent.key),ke.preventDefault();break}case Rt.Z.RIGHT:{Kt&&!mt.includes(Ye)?le.onNodeExpand({},He):Et.children&&Et.children.length&&le.onActiveChange(Et.children[0].key),ke.preventDefault();break}case Rt.Z.ENTER:case Rt.Z.SPACE:{nn&&!He.disabled&&He.checkable!==!1&&!He.disableCheckbox?le.onNodeCheck({},He,!we.includes(Ye)):!nn&&qt&&!He.disabled&&He.selectable!==!1&&le.onNodeSelect({},He);break}}}Ht==null||Ht(ke)}),(0,ue.Z)((0,Ie.Z)(le),"setUncontrolledState",function(ke){var Ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ye=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!le.destroyed){var mt=!1,we=!0,De={};Object.keys(ke).forEach(function(Zt){if(le.props.hasOwnProperty(Zt)){we=!1;return}mt=!0,De[Zt]=ke[Zt]}),mt&&(!Ve||we)&&le.setState((0,fe.Z)((0,fe.Z)({},De),Ye))}}),(0,ue.Z)((0,Ie.Z)(le),"scrollTo",function(ke){le.listRef.current.scrollTo(ke)}),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 ye=this.props,ft=ye.activeKey,Ae=ye.itemScrollOffset,ke=Ae===void 0?0:Ae;ft!==void 0&&ft!==this.state.activeKey&&(this.setState({activeKey:ft}),ft!==null&&this.scrollTo({key:ft,offset:ke}))}},{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 ye=this.state,ft=ye.focused,Ae=ye.flattenNodes,ke=ye.keyEntities,Ve=ye.draggingNodeKey,Ye=ye.activeKey,mt=ye.dropLevelOffset,we=ye.dropContainerKey,De=ye.dropTargetKey,Zt=ye.dropPosition,Ht=ye.dragOverNodeKey,nn=ye.indent,qt=this.props,Et=qt.prefixCls,on=qt.className,Kt=qt.style,He=qt.showLine,ht=qt.focusable,at=qt.tabIndex,Mt=at===void 0?0:at,Me=qt.selectable,st=qt.showIcon,Ct=qt.icon,Wt=qt.switcherIcon,cn=qt.draggable,Sn=qt.checkable,Bn=qt.checkStrictly,Rn=qt.disabled,gn=qt.motion,Nn=qt.loadData,dn=qt.filterTreeNode,Xt=qt.height,rn=qt.itemHeight,an=qt.scrollWidth,Jt=qt.virtual,pn=qt.titleRender,mn=qt.dropIndicatorRender,Cn=qt.onContextMenu,Fn=qt.onScroll,zn=qt.direction,Zn=qt.rootClassName,Xn=qt.rootStyle,_n=(0,it.Z)(this.props,{aria:!0,data:!0}),pr;cn&&((0,We.Z)(cn)==="object"?pr=cn:typeof cn=="function"?pr={nodeDraggable:cn}:pr={});var ar={prefixCls:Et,selectable:Me,showIcon:st,icon:Ct,switcherIcon:Wt,draggable:pr,draggingNodeKey:Ve,checkable:Sn,checkStrictly:Bn,disabled:Rn,keyEntities:ke,dropLevelOffset:mt,dropContainerKey:we,dropTargetKey:De,dropPosition:Zt,dragOverNodeKey:Ht,indent:nn,direction:zn,dropIndicatorRender:mn,loadData:Nn,filterTreeNode:dn,titleRender:pn,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 Te.createElement(Oe.k.Provider,{value:ar},Te.createElement("div",{className:Le()(Et,on,Zn,(0,ue.Z)((0,ue.Z)((0,ue.Z)({},"".concat(Et,"-show-line"),He),"".concat(Et,"-focused"),ft),"".concat(Et,"-active-focused"),Ye!==null)),style:Xn},Te.createElement(Qe,(0,b.Z)({ref:this.listRef,prefixCls:Et,style:Kt,data:Ae,disabled:Rn,selectable:Me,checkable:!!Sn,motion:gn,dragging:Ve!==null,height:Xt,itemHeight:rn,virtual:Jt,focusable:ht,focused:ft,tabIndex:Mt,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Cn,onScroll:Fn,scrollWidth:an},this.getTreeNodeRequiredProps(),_n))))}}],[{key:"getDerivedStateFromProps",value:function(ye,ft){var Ae=ft.prevProps,ke={prevProps:ye};function Ve(Mt){return!Ae&&ye.hasOwnProperty(Mt)||Ae&&Ae[Mt]!==ye[Mt]}var Ye,mt=ft.fieldNames;if(Ve("fieldNames")&&(mt=(0,Se.w$)(ye.fieldNames),ke.fieldNames=mt),Ve("treeData")?Ye=ye.treeData:Ve("children")&&((0,$e.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),Ye=(0,Se.zn)(ye.children)),Ye){ke.treeData=Ye;var we=(0,Se.I8)(Ye,{fieldNames:mt});ke.keyEntities=(0,fe.Z)((0,ue.Z)({},me,Ut),we.keyEntities)}var De=ke.keyEntities||ft.keyEntities;if(Ve("expandedKeys")||Ae&&Ve("autoExpandParent"))ke.expandedKeys=ye.autoExpandParent||!Ae&&ye.defaultExpandParent?(0,Bt.r7)(ye.expandedKeys,De):ye.expandedKeys;else if(!Ae&&ye.defaultExpandAll){var Zt=(0,fe.Z)({},De);delete Zt[me];var Ht=[];Object.keys(Zt).forEach(function(Mt){var Me=Zt[Mt];Me.children&&Me.children.length&&Ht.push(Me.key)}),ke.expandedKeys=Ht}else!Ae&&ye.defaultExpandedKeys&&(ke.expandedKeys=ye.autoExpandParent||ye.defaultExpandParent?(0,Bt.r7)(ye.defaultExpandedKeys,De):ye.defaultExpandedKeys);if(ke.expandedKeys||delete ke.expandedKeys,Ye||ke.expandedKeys){var nn=(0,Se.oH)(Ye||ft.treeData,ke.expandedKeys||ft.expandedKeys,mt);ke.flattenNodes=nn}if(ye.selectable&&(Ve("selectedKeys")?ke.selectedKeys=(0,Bt.BT)(ye.selectedKeys,ye):!Ae&&ye.defaultSelectedKeys&&(ke.selectedKeys=(0,Bt.BT)(ye.defaultSelectedKeys,ye))),ye.checkable){var qt;if(Ve("checkedKeys")?qt=(0,Bt.E6)(ye.checkedKeys)||{}:!Ae&&ye.defaultCheckedKeys?qt=(0,Bt.E6)(ye.defaultCheckedKeys)||{}:Ye&&(qt=(0,Bt.E6)(ye.checkedKeys)||{checkedKeys:ft.checkedKeys,halfCheckedKeys:ft.halfCheckedKeys}),qt){var Et=qt,on=Et.checkedKeys,Kt=on===void 0?[]:on,He=Et.halfCheckedKeys,ht=He===void 0?[]:He;if(!ye.checkStrictly){var at=(0,qe.S)(Kt,!0,De);Kt=at.checkedKeys,ht=at.halfCheckedKeys}ke.checkedKeys=Kt,ke.halfCheckedKeys=ht}}return Ve("loadedKeys")&&(ke.loadedKeys=ye.loadedKeys),ke}}]),re}(Te.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:pt,allowDrop:function(){return!0},expandAction:!1}),(0,ue.Z)(ae,"TreeNode",yt.Z);var ne=ae,te=ne},82661:function(wn,Qt,ee){"use strict";ee.d(Qt,{BT:function(){return Te},E6:function(){return pt},L0:function(){return ue},OM:function(){return $e},_5:function(){return Ce},r7:function(){return At},wA:function(){return Le},yx:function(){return tt}});var b=ee(77654),We=ee(43749),fe=ee(48736),Ue=ee(59301),Ee=ee(639),xe=ee(65065),Ie=ee(34061),Ze=null;function Ce(je,Be){if(!je)return[];var Je=je.slice(),nt=Je.indexOf(Be);return nt>=0&&Je.splice(nt,1),Je}function ue(je,Be){var Je=(je||[]).slice();return Je.indexOf(Be)===-1&&Je.push(Be),Je}function tt(je){return je.split("-")}function Le(je,Be){var Je=[],nt=(0,xe.Z)(Be,je);function zt(){var yt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];yt.forEach(function(ot){var ct=ot.key,Se=ot.children;Je.push(ct),zt(Se)})}return zt(nt.children),Je}function Rt(je){if(je.parent){var Be=tt(je.pos);return Number(Be[Be.length-1])===je.parent.children.length-1}return!1}function it(je){var Be=tt(je.pos);return Number(Be[Be.length-1])===0}function $e(je,Be,Je,nt,zt,yt,ot,ct,Se,lt){var Ge,de=je.clientX,Dt=je.clientY,Ke=je.target.getBoundingClientRect(),gt=Ke.top,Yt=Ke.height,Ne=(lt==="rtl"?-1:1)*(((zt==null?void 0:zt.x)||0)-de),me=(Ne-12)/nt,Pt=Se.filter(function(te){var oe;return(oe=ct[te])===null||oe===void 0||(oe=oe.children)===null||oe===void 0?void 0:oe.length}),Ut=(0,xe.Z)(ct,Je.eventKey);if(Dt<gt+Yt/2){var kt=ot.findIndex(function(te){return te.key===Ut.key}),ge=kt<=0?0:kt-1,et=ot[ge].key;Ut=(0,xe.Z)(ct,et)}var rt=Ut.key,_t=Ut,Qe=Ut.key,Bt=0,qe=0;if(!Pt.includes(rt))for(var tn=0;tn<me&&Rt(Ut);tn+=1)Ut=Ut.parent,qe+=1;var Tt=Be.data,ae=Ut.node,ne=!0;return it(Ut)&&Ut.level===0&&Dt<gt+Yt/2&&yt({dragNode:Tt,dropNode:ae,dropPosition:-1})&&Ut.key===Je.eventKey?Bt=-1:(_t.children||[]).length&&Pt.includes(Qe)?yt({dragNode:Tt,dropNode:ae,dropPosition:0})?Bt=0:ne=!1:qe===0?me>-1.5?yt({dragNode:Tt,dropNode:ae,dropPosition:1})?Bt=1:ne=!1:yt({dragNode:Tt,dropNode:ae,dropPosition:0})?Bt=0:yt({dragNode:Tt,dropNode:ae,dropPosition:1})?Bt=1:ne=!1:yt({dragNode:Tt,dropNode:ae,dropPosition:1})?Bt=1:ne=!1,{dropPosition:Bt,dropLevelOffset:qe,dropTargetKey:Ut.key,dropTargetPos:Ut.pos,dragOverNodeKey:Qe,dropContainerKey:Bt===0?null:((Ge=Ut.parent)===null||Ge===void 0?void 0:Ge.key)||null,dropAllowed:ne}}function Te(je,Be){if(je){var Je=Be.multiple;return Je?je.slice():je.length?[je[0]]:je}}var Oe=function(Be){return Be};function Xe(je,Be){if(!je)return[];var Je=Be||{},nt=Je.processProps,zt=nt===void 0?Oe:nt,yt=Array.isArray(je)?je:[je];return yt.map(function(ot){var ct=ot.children,Se=_objectWithoutProperties(ot,Ze),lt=Xe(ct,Be);return React.createElement(TreeNode,_extends({key:Se.key},zt(Se)),lt)})}function pt(je){if(!je)return null;var Be;if(Array.isArray(je))Be={checkedKeys:je,halfCheckedKeys:void 0};else if((0,We.Z)(je)==="object")Be={checkedKeys:je.checked||void 0,halfCheckedKeys:je.halfChecked||void 0};else return(0,fe.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return Be}function At(je,Be){var Je=new Set;function nt(zt){if(!Je.has(zt)){var yt=(0,xe.Z)(Be,zt);if(yt){Je.add(zt);var ot=yt.parent,ct=yt.node;ct.disabled||ot&&nt(ot.key)}}}return(je||[]).forEach(function(zt){nt(zt)}),(0,b.Z)(Je)}},34643:function(wn,Qt,ee){"use strict";ee.d(Qt,{S:function(){return Ie}});var b=ee(48736),We=ee(65065);function fe(Ze,Ce){var ue=new Set;return Ze.forEach(function(tt){Ce.has(tt)||ue.add(tt)}),ue}function Ue(Ze){var Ce=Ze||{},ue=Ce.disabled,tt=Ce.disableCheckbox,Le=Ce.checkable;return!!(ue||tt)||Le===!1}function Ee(Ze,Ce,ue,tt){for(var Le=new Set(Ze),Rt=new Set,it=0;it<=ue;it+=1){var $e=Ce.get(it)||new Set;$e.forEach(function(pt){var At=pt.key,je=pt.node,Be=pt.children,Je=Be===void 0?[]:Be;Le.has(At)&&!tt(je)&&Je.filter(function(nt){return!tt(nt.node)}).forEach(function(nt){Le.add(nt.key)})})}for(var Te=new Set,Oe=ue;Oe>=0;Oe-=1){var Xe=Ce.get(Oe)||new Set;Xe.forEach(function(pt){var At=pt.parent,je=pt.node;if(!(tt(je)||!pt.parent||Te.has(pt.parent.key))){if(tt(pt.parent.node)){Te.add(At.key);return}var Be=!0,Je=!1;(At.children||[]).filter(function(nt){return!tt(nt.node)}).forEach(function(nt){var zt=nt.key,yt=Le.has(zt);Be&&!yt&&(Be=!1),!Je&&(yt||Rt.has(zt))&&(Je=!0)}),Be&&Le.add(At.key),Je&&Rt.add(At.key),Te.add(At.key)}})}return{checkedKeys:Array.from(Le),halfCheckedKeys:Array.from(fe(Rt,Le))}}function xe(Ze,Ce,ue,tt,Le){for(var Rt=new Set(Ze),it=new Set(Ce),$e=0;$e<=tt;$e+=1){var Te=ue.get($e)||new Set;Te.forEach(function(At){var je=At.key,Be=At.node,Je=At.children,nt=Je===void 0?[]:Je;!Rt.has(je)&&!it.has(je)&&!Le(Be)&&nt.filter(function(zt){return!Le(zt.node)}).forEach(function(zt){Rt.delete(zt.key)})})}it=new Set;for(var Oe=new Set,Xe=tt;Xe>=0;Xe-=1){var pt=ue.get(Xe)||new Set;pt.forEach(function(At){var je=At.parent,Be=At.node;if(!(Le(Be)||!At.parent||Oe.has(At.parent.key))){if(Le(At.parent.node)){Oe.add(je.key);return}var Je=!0,nt=!1;(je.children||[]).filter(function(zt){return!Le(zt.node)}).forEach(function(zt){var yt=zt.key,ot=Rt.has(yt);Je&&!ot&&(Je=!1),!nt&&(ot||it.has(yt))&&(nt=!0)}),Je||Rt.delete(je.key),nt&&it.add(je.key),Oe.add(je.key)}})}return{checkedKeys:Array.from(Rt),halfCheckedKeys:Array.from(fe(it,Rt))}}function Ie(Ze,Ce,ue,tt){var Le=[],Rt;tt?Rt=tt:Rt=Ue;var it=new Set(Ze.filter(function(Xe){var pt=!!(0,We.Z)(ue,Xe);return pt||Le.push(Xe),pt})),$e=new Map,Te=0;Object.keys(ue).forEach(function(Xe){var pt=ue[Xe],At=pt.level,je=$e.get(At);je||(je=new Set,$e.set(At,je)),je.add(pt),Te=Math.max(Te,At)}),(0,b.ZP)(!Le.length,"Tree missing follow keys: ".concat(Le.slice(0,100).map(function(Xe){return"'".concat(Xe,"'")}).join(", ")));var Oe;return Ce===!0?Oe=Ee(it,$e,Te,Rt):Oe=xe(it,Ce.halfCheckedKeys,$e,Te,Rt),Oe}},65065:function(wn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return b}});function b(We,fe){return We[fe]}},34061:function(wn,Qt,ee){"use strict";ee.d(Qt,{F:function(){return At},H8:function(){return pt},I8:function(){return Xe},km:function(){return Le},oH:function(){return Te},w$:function(){return Rt},zn:function(){return $e}});var b=ee(43749),We=ee(77654),fe=ee(85899),Ue=ee(42244),Ee=ee(11592),xe=ee(2738),Ie=ee(48736),Ze=ee(65065),Ce=["children"];function ue(je,Be){return"".concat(je,"-").concat(Be)}function tt(je){return je&&je.type&&je.type.isTreeNode}function Le(je,Be){return je!=null?je:Be}function Rt(je){var Be=je||{},Je=Be.title,nt=Be._title,zt=Be.key,yt=Be.children,ot=Je||"title";return{title:ot,_title:nt||[ot],key:zt||"key",children:yt||"children"}}function it(je,Be){var Je=new Map;function nt(zt){var yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(zt||[]).forEach(function(ot){var ct=ot[Be.key],Se=ot[Be.children];warning(ct!=null,"Tree node must have a certain key: [".concat(yt).concat(ct,"]"));var lt=String(ct);warning(!Je.has(lt)||ct===null||ct===void 0,"Same 'key' exist in the Tree: ".concat(lt)),Je.set(lt,!0),nt(Se,"".concat(yt).concat(lt," > "))})}nt(je)}function $e(je){function Be(Je){var nt=(0,Ee.Z)(Je);return nt.map(function(zt){if(!tt(zt))return(0,Ie.ZP)(!zt,"Tree/TreeNode can only accept TreeNode as children."),null;var yt=zt.key,ot=zt.props,ct=ot.children,Se=(0,Ue.Z)(ot,Ce),lt=(0,fe.Z)({key:yt},Se),Ge=Be(ct);return Ge.length&&(lt.children=Ge),lt}).filter(function(zt){return zt})}return Be(je)}function Te(je,Be,Je){var nt=Rt(Je),zt=nt._title,yt=nt.key,ot=nt.children,ct=new Set(Be===!0?[]:Be),Se=[];function lt(Ge){var de=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Ge.map(function(Dt,Ke){for(var gt=ue(de?de.pos:"0",Ke),Yt=Le(Dt[yt],gt),Ne,me=0;me<zt.length;me+=1){var Pt=zt[me];if(Dt[Pt]!==void 0){Ne=Dt[Pt];break}}var Ut=Object.assign((0,xe.Z)(Dt,[].concat((0,We.Z)(zt),[yt,ot])),{title:Ne,key:Yt,parent:de,pos:gt,children:null,data:Dt,isStart:[].concat((0,We.Z)(de?de.isStart:[]),[Ke===0]),isEnd:[].concat((0,We.Z)(de?de.isEnd:[]),[Ke===Ge.length-1])});return Se.push(Ut),Be===!0||ct.has(Yt)?Ut.children=lt(Dt[ot]||[],Ut):Ut.children=[],Ut})}return lt(je),Se}function Oe(je,Be,Je){var nt={};(0,b.Z)(Je)==="object"?nt=Je:nt={externalGetKey:Je},nt=nt||{};var zt=nt,yt=zt.childrenPropName,ot=zt.externalGetKey,ct=zt.fieldNames,Se=Rt(ct),lt=Se.key,Ge=Se.children,de=yt||Ge,Dt;ot?typeof ot=="string"?Dt=function(Yt){return Yt[ot]}:typeof ot=="function"&&(Dt=function(Yt){return ot(Yt)}):Dt=function(Yt,Ne){return Le(Yt[lt],Ne)};function Ke(gt,Yt,Ne,me){var Pt=gt?gt[de]:je,Ut=gt?ue(Ne.pos,Yt):"0",kt=gt?[].concat((0,We.Z)(me),[gt]):[];if(gt){var ge=Dt(gt,Ut),et={node:gt,index:Yt,pos:Ut,key:ge,parentPos:Ne.node?Ne.pos:null,level:Ne.level+1,nodes:kt};Be(et)}Pt&&Pt.forEach(function(rt,_t){Ke(rt,_t,{node:gt,pos:Ut,level:Ne?Ne.level+1:-1},kt)})}Ke(null)}function Xe(je){var Be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Je=Be.initWrapper,nt=Be.processEntity,zt=Be.onProcessFinished,yt=Be.externalGetKey,ot=Be.childrenPropName,ct=Be.fieldNames,Se=arguments.length>2?arguments[2]:void 0,lt=yt||Se,Ge={},de={},Dt={posEntities:Ge,keyEntities:de};return Je&&(Dt=Je(Dt)||Dt),Oe(je,function(Ke){var gt=Ke.node,Yt=Ke.index,Ne=Ke.pos,me=Ke.key,Pt=Ke.parentPos,Ut=Ke.level,kt=Ke.nodes,ge={node:gt,nodes:kt,index:Yt,key:me,pos:Ne,level:Ut},et=Le(me,Ne);Ge[Ne]=ge,de[et]=ge,ge.parent=Ge[Pt],ge.parent&&(ge.parent.children=ge.parent.children||[],ge.parent.children.push(ge)),nt&&nt(ge,Dt)},{externalGetKey:lt,childrenPropName:ot,fieldNames:ct}),zt&&zt(Dt),Dt}function pt(je,Be){var Je=Be.expandedKeys,nt=Be.selectedKeys,zt=Be.loadedKeys,yt=Be.loadingKeys,ot=Be.checkedKeys,ct=Be.halfCheckedKeys,Se=Be.dragOverNodeKey,lt=Be.dropPosition,Ge=Be.keyEntities,de=(0,Ze.Z)(Ge,je),Dt={eventKey:je,expanded:Je.indexOf(je)!==-1,selected:nt.indexOf(je)!==-1,loaded:zt.indexOf(je)!==-1,loading:yt.indexOf(je)!==-1,checked:ot.indexOf(je)!==-1,halfChecked:ct.indexOf(je)!==-1,pos:String(de?de.pos:""),dragOver:Se===je&<===0,dragOverGapTop:Se===je&<===-1,dragOverGapBottom:Se===je&<===1};return Dt}function At(je){var Be=je.data,Je=je.expanded,nt=je.selected,zt=je.checked,yt=je.loaded,ot=je.loading,ct=je.halfChecked,Se=je.dragOver,lt=je.dragOverGapTop,Ge=je.dragOverGapBottom,de=je.pos,Dt=je.active,Ke=je.eventKey,gt=(0,fe.Z)((0,fe.Z)({},Be),{},{expanded:Je,selected:nt,checked:zt,loaded:yt,loading:ot,halfChecked:ct,dragOver:Se,dragOverGapTop:lt,dragOverGapBottom:Ge,pos:de,active:Dt,key:Ke});return"props"in gt||Object.defineProperty(gt,"props",{get:function(){return(0,Ie.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),je}}),gt}},8224:function(wn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return We}});var b=ee(4676);function We(fe,Ue,Ee,xe){var Ie=b.unstable_batchedUpdates?function(Ce){b.unstable_batchedUpdates(Ee,Ce)}:Ee;return fe!=null&&fe.addEventListener&&fe.addEventListener(Ue,Ie,xe),{remove:function(){fe!=null&&fe.removeEventListener&&fe.removeEventListener(Ue,Ie,xe)}}}},24514:function(wn,Qt,ee){"use strict";ee.d(Qt,{G:function(){return Ue}});var b=ee(47273),We=function(xe){if((0,b.Z)()&&window.document.documentElement){var Ie=Array.isArray(xe)?xe:[xe],Ze=window.document.documentElement;return Ie.some(function(Ce){return Ce in Ze.style})}return!1},fe=function(xe,Ie){if(!We(xe))return!1;var Ze=document.createElement("div"),Ce=Ze.style[xe];return Ze.style[xe]=Ie,Ze.style[xe]!==Ce};function Ue(Ee,xe){return!Array.isArray(Ee)&&xe!==void 0?fe(Ee,xe):We(Ee)}},48911:function(wn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Tt}});var b=ee(60499),We=ee(43749),fe=ee(85899),Ue=ee(18642),Ee=ee(72190),xe=ee(42244),Ie=ee(92310),Ze=ee.n(Ie),Ce=ee(29301),ue=ee(70425),tt=ee(34280),Le=ee(59301),Rt=ee(4676),it=Le.forwardRef(function(ae,ne){var te=ae.height,oe=ae.offsetY,ce=ae.offsetX,re=ae.children,le=ae.prefixCls,ye=ae.onInnerResize,ft=ae.innerProps,Ae=ae.rtl,ke=ae.extra,Ve={},Ye={display:"flex",flexDirection:"column"};return oe!==void 0&&(Ve={height:te,position:"relative",overflow:"hidden"},Ye=(0,fe.Z)((0,fe.Z)({},Ye),{},(0,Ue.Z)((0,Ue.Z)((0,Ue.Z)((0,Ue.Z)((0,Ue.Z)({transform:"translateY(".concat(oe,"px)")},Ae?"marginRight":"marginLeft",-ce),"position","absolute"),"left",0),"right",0),"top",0))),Le.createElement("div",{style:Ve},Le.createElement(Ce.Z,{onResize:function(we){var De=we.offsetHeight;De&&ye&&ye()}},Le.createElement("div",(0,b.Z)({style:Ye,className:Ze()((0,Ue.Z)({},"".concat(le,"-holder-inner"),le)),ref:ne},ft),re,ke)))});it.displayName="Filler";var $e=it;function Te(ae){var ne=ae.children,te=ae.setRef,oe=Le.useCallback(function(ce){te(ce)},[]);return Le.cloneElement(ne,{ref:oe})}function Oe(ae,ne,te,oe,ce,re,le,ye){var ft=ye.getKey;return ae.slice(ne,te+1).map(function(Ae,ke){var Ve=ne+ke,Ye=le(Ae,Ve,{style:{width:oe},offsetX:ce}),mt=ft(Ae);return Le.createElement(Te,{key:mt,setRef:function(De){return re(Ae,De)}},Ye)})}function Xe(ae,ne,te,oe){var ce=te-ae,re=ne-te,le=Math.min(ce,re)*2;if(oe<=le){var ye=Math.floor(oe/2);return oe%2?te+ye+1:te-ye}return ce>re?te-(oe-re):te+(oe-ce)}function pt(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 ye={__EMPTY_ITEM__:!0};function ft(we){return we!==void 0?te(we):ye}for(var Ae=null,ke=Math.abs(oe-ce)!==1,Ve=0;Ve<le.length;Ve+=1){var Ye=ft(re[Ve]),mt=ft(le[Ve]);if(Ye!==mt){Ae=Ve,ke=ke||Ye!==ft(le[Ve+1]);break}}return Ae===null?null:{index:Ae,multiple:ke}}function At(ae,ne,te){var oe=Le.useState(ae),ce=(0,Ee.Z)(oe,2),re=ce[0],le=ce[1],ye=Le.useState(null),ft=(0,Ee.Z)(ye,2),Ae=ft[0],ke=ft[1];return Le.useEffect(function(){var Ve=pt(re||[],ae||[],ne);(Ve==null?void 0:Ve.index)!==void 0&&(te==null||te(Ve.index),ke(ae[Ve.index])),le(ae)},[ae]),[Ae]}var je=ee(16089),Be=(typeof navigator=="undefined"?"undefined":(0,We.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Je=Be,nt=function(ae,ne,te,oe){var ce=(0,Le.useRef)(!1),re=(0,Le.useRef)(null);function le(){clearTimeout(re.current),ce.current=!0,re.current=setTimeout(function(){ce.current=!1},50)}var ye=(0,Le.useRef)({top:ae,bottom:ne,left:te,right:oe});return ye.current.top=ae,ye.current.bottom=ne,ye.current.left=te,ye.current.right=oe,function(ft,Ae){var ke=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Ve=ft?Ae<0&&ye.current.left||Ae>0&&ye.current.right:Ae<0&&ye.current.top||Ae>0&&ye.current.bottom;return ke&&Ve?(clearTimeout(re.current),ce.current=!1):(!Ve||ce.current)&&le(),!ce.current&&Ve}};function zt(ae,ne,te,oe,ce,re,le){var ye=(0,Le.useRef)(0),ft=(0,Le.useRef)(null),Ae=(0,Le.useRef)(null),ke=(0,Le.useRef)(!1),Ve=nt(ne,te,oe,ce);function Ye(nn,qt){if(je.Z.cancel(ft.current),!Ve(!1,qt)){var Et=nn;if(!Et._virtualHandled)Et._virtualHandled=!0;else return;ye.current+=qt,Ae.current=qt,Je||Et.preventDefault(),ft.current=(0,je.Z)(function(){var on=ke.current?10:1;le(ye.current*on,!1),ye.current=0})}}function mt(nn,qt){le(qt,!0),Je||nn.preventDefault()}var we=(0,Le.useRef)(null),De=(0,Le.useRef)(null);function Zt(nn){if(ae){je.Z.cancel(De.current),De.current=(0,je.Z)(function(){we.current=null},2);var qt=nn.deltaX,Et=nn.deltaY,on=nn.shiftKey,Kt=qt,He=Et;(we.current==="sx"||!we.current&&on&&Et&&!qt)&&(Kt=Et,He=0,we.current="sx");var ht=Math.abs(Kt),at=Math.abs(He);we.current===null&&(we.current=re&&ht>at?"x":"y"),we.current==="y"?Ye(nn,He):mt(nn,Kt)}}function Ht(nn){ae&&(ke.current=nn.detail===Ae.current)}return[Zt,Ht]}function yt(ae,ne,te,oe){var ce=Le.useMemo(function(){return[new Map,[]]},[ae,te.id,oe]),re=(0,Ee.Z)(ce,2),le=re[0],ye=re[1],ft=function(ke){var Ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ke,Ye=le.get(ke),mt=le.get(Ve);if(Ye===void 0||mt===void 0)for(var we=ae.length,De=ye.length;De<we;De+=1){var Zt,Ht=ae[De],nn=ne(Ht);le.set(nn,De);var qt=(Zt=te.get(nn))!==null&&Zt!==void 0?Zt:oe;if(ye[De]=(ye[De-1]||0)+qt,nn===ke&&(Ye=De),nn===Ve&&(mt=De),Ye!==void 0&&mt!==void 0)break}return{top:ye[Ye-1]||0,bottom:ye[mt]}};return ft}var ot=ee(38705),ct=ee(17212),Se=function(){function ae(){(0,ot.Z)(this,ae),(0,Ue.Z)(this,"maps",void 0),(0,Ue.Z)(this,"id",0),(0,Ue.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,ct.Z)(ae,[{key:"set",value:function(te,oe){this.diffRecords.set(te,this.maps[te]),this.maps[te]=oe,this.id+=1}},{key:"get",value:function(te){return this.maps[te]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),ae}(),lt=Se;function Ge(ae){var ne=parseFloat(ae);return isNaN(ne)?0:ne}function de(ae,ne,te){var oe=Le.useState(0),ce=(0,Ee.Z)(oe,2),re=ce[0],le=ce[1],ye=(0,Le.useRef)(new Map),ft=(0,Le.useRef)(new lt),Ae=(0,Le.useRef)(0);function ke(){Ae.current+=1}function Ve(){var mt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;ke();var we=function(){var Ht=!1;ye.current.forEach(function(nn,qt){if(nn&&nn.offsetParent){var Et=nn.offsetHeight,on=getComputedStyle(nn),Kt=on.marginTop,He=on.marginBottom,ht=Ge(Kt),at=Ge(He),Mt=Et+ht+at;ft.current.get(qt)!==Mt&&(ft.current.set(qt,Mt),Ht=!0)}}),Ht&&le(function(nn){return nn+1})};if(mt)we();else{Ae.current+=1;var De=Ae.current;Promise.resolve().then(function(){De===Ae.current&&we()})}}function Ye(mt,we){var De=ae(mt),Zt=ye.current.get(De);we?(ye.current.set(De,we),Ve()):ye.current.delete(De),!Zt!=!we&&(we?ne==null||ne(mt):te==null||te(mt))}return(0,Le.useEffect)(function(){return ke},[]),[Ye,Ve,ft.current,re]}var Dt=14/15;function Ke(ae,ne,te){var oe=(0,Le.useRef)(!1),ce=(0,Le.useRef)(0),re=(0,Le.useRef)(0),le=(0,Le.useRef)(null),ye=(0,Le.useRef)(null),ft,Ae=function(mt){if(oe.current){var we=Math.ceil(mt.touches[0].pageX),De=Math.ceil(mt.touches[0].pageY),Zt=ce.current-we,Ht=re.current-De,nn=Math.abs(Zt)>Math.abs(Ht);nn?ce.current=we:re.current=De;var qt=te(nn,nn?Zt:Ht,!1,mt);qt&&mt.preventDefault(),clearInterval(ye.current),qt&&(ye.current=setInterval(function(){nn?Zt*=Dt:Ht*=Dt;var Et=Math.floor(nn?Zt:Ht);(!te(nn,Et,!0)||Math.abs(Et)<=.1)&&clearInterval(ye.current)},16))}},ke=function(){oe.current=!1,ft()},Ve=function(mt){ft(),mt.touches.length===1&&!oe.current&&(oe.current=!0,ce.current=Math.ceil(mt.touches[0].pageX),re.current=Math.ceil(mt.touches[0].pageY),le.current=mt.target,le.current.addEventListener("touchmove",Ae,{passive:!1}),le.current.addEventListener("touchend",ke,{passive:!0}))};ft=function(){le.current&&(le.current.removeEventListener("touchmove",Ae),le.current.removeEventListener("touchend",ke))},(0,tt.Z)(function(){return ae&&ne.current.addEventListener("touchstart",Ve,{passive:!0}),function(){var Ye;(Ye=ne.current)===null||Ye===void 0||Ye.removeEventListener("touchstart",Ve),ft(),clearInterval(ye.current)}},[ae])}function gt(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 Ne(ae,ne,te){Le.useEffect(function(){var oe=ne.current;if(ae&&oe){var ce=!1,re,le,ye=function(){je.Z.cancel(re)},ft=function Ye(){ye(),re=(0,je.Z)(function(){te(le),Ye()})},Ae=function(){ce=!1,ye()},ke=function(mt){if(!(mt.target.draggable||mt.button!==0)){var we=mt;we._virtualHandled||(we._virtualHandled=!0,ce=!0)}},Ve=function(mt){if(ce){var we=Yt(mt,!1),De=oe.getBoundingClientRect(),Zt=De.top,Ht=De.bottom;if(we<=Zt){var nn=Zt-we;le=-gt(nn),ft()}else if(we>=Ht){var qt=we-Ht;le=gt(qt),ft()}else ye()}};return oe.addEventListener("mousedown",ke),oe.ownerDocument.addEventListener("mouseup",Ae),oe.ownerDocument.addEventListener("mousemove",Ve),oe.ownerDocument.addEventListener("dragend",Ae),function(){oe.removeEventListener("mousedown",ke),oe.ownerDocument.removeEventListener("mouseup",Ae),oe.ownerDocument.removeEventListener("mousemove",Ve),oe.ownerDocument.removeEventListener("dragend",Ae),ye()}}},[ae])}var me=10;function Pt(ae,ne,te,oe,ce,re,le,ye){var ft=Le.useRef(),Ae=Le.useState(null),ke=(0,Ee.Z)(Ae,2),Ve=ke[0],Ye=ke[1];return(0,tt.Z)(function(){if(Ve&&Ve.times<me){if(!ae.current){Ye(function(gn){return(0,fe.Z)({},gn)});return}re();var mt=Ve.targetAlign,we=Ve.originAlign,De=Ve.index,Zt=Ve.offset,Ht=ae.current.clientHeight,nn=!1,qt=mt,Et=null;if(Ht){for(var on=mt||we,Kt=0,He=0,ht=0,at=Math.min(ne.length-1,De),Mt=0;Mt<=at;Mt+=1){var Me=ce(ne[Mt]);He=Kt;var st=te.get(Me);ht=He+(st===void 0?oe:st),Kt=ht}for(var Ct=on==="top"?Zt:Ht-Zt,Wt=at;Wt>=0;Wt-=1){var cn=ce(ne[Wt]),Sn=te.get(cn);if(Sn===void 0){nn=!0;break}if(Ct-=Sn,Ct<=0)break}switch(on){case"top":Et=He-Zt;break;case"bottom":Et=ht-Ht+Zt;break;default:{var Bn=ae.current.scrollTop,Rn=Bn+Ht;He<Bn?qt="top":ht>Rn&&(qt="bottom")}}Et!==null&&le(Et),Et!==Ve.lastTop&&(nn=!0)}nn&&Ye((0,fe.Z)((0,fe.Z)({},Ve),{},{times:Ve.times+1,targetAlign:qt,lastTop:Et}))}},[Ve,ae.current]),function(mt){if(mt==null){ye();return}if(je.Z.cancel(ft.current),typeof mt=="number")le(mt);else if(mt&&(0,We.Z)(mt)==="object"){var we,De=mt.align;"index"in mt?we=mt.index:we=ne.findIndex(function(nn){return ce(nn)===mt.key});var Zt=mt.offset,Ht=Zt===void 0?0:Zt;Ye({times:0,index:we,offset:Ht,originAlign:De})}}}var Ut=Le.forwardRef(function(ae,ne){var te=ae.prefixCls,oe=ae.rtl,ce=ae.scrollOffset,re=ae.scrollRange,le=ae.onStartMove,ye=ae.onStopMove,ft=ae.onScroll,Ae=ae.horizontal,ke=ae.spinSize,Ve=ae.containerSize,Ye=ae.style,mt=ae.thumbStyle,we=ae.showScrollBar,De=Le.useState(!1),Zt=(0,Ee.Z)(De,2),Ht=Zt[0],nn=Zt[1],qt=Le.useState(null),Et=(0,Ee.Z)(qt,2),on=Et[0],Kt=Et[1],He=Le.useState(null),ht=(0,Ee.Z)(He,2),at=ht[0],Mt=ht[1],Me=!oe,st=Le.useRef(),Ct=Le.useRef(),Wt=Le.useState(we),cn=(0,Ee.Z)(Wt,2),Sn=cn[0],Bn=cn[1],Rn=Le.useRef(),gn=function(){we===!0||we===!1||(clearTimeout(Rn.current),Bn(!0),Rn.current=setTimeout(function(){Bn(!1)},3e3))},Nn=re-Ve||0,dn=Ve-ke||0,Xt=Le.useMemo(function(){if(ce===0||Nn===0)return 0;var Zn=ce/Nn;return Zn*dn},[ce,Nn,dn]),rn=function(Xn){Xn.stopPropagation(),Xn.preventDefault()},an=Le.useRef({top:Xt,dragging:Ht,pageY:on,startTop:at});an.current={top:Xt,dragging:Ht,pageY:on,startTop:at};var Jt=function(Xn){nn(!0),Kt(Yt(Xn,Ae)),Mt(an.current.top),le(),Xn.stopPropagation(),Xn.preventDefault()};Le.useEffect(function(){var Zn=function(ar){ar.preventDefault()},Xn=st.current,_n=Ct.current;return Xn.addEventListener("touchstart",Zn,{passive:!1}),_n.addEventListener("touchstart",Jt,{passive:!1}),function(){Xn.removeEventListener("touchstart",Zn),_n.removeEventListener("touchstart",Jt)}},[]);var pn=Le.useRef();pn.current=Nn;var mn=Le.useRef();mn.current=dn,Le.useEffect(function(){if(Ht){var Zn,Xn=function(ar){var sn=an.current,bn=sn.dragging,Hn=sn.pageY,An=sn.startTop;je.Z.cancel(Zn);var ut=st.current.getBoundingClientRect(),Ot=Ve/(Ae?ut.width:ut.height);if(bn){var Fe=(Yt(ar,Ae)-Hn)*Ot,vt=An;!Me&&Ae?vt-=Fe:vt+=Fe;var ze=pn.current,bt=mn.current,Pe=bt?vt/bt:0,It=Math.ceil(Pe*ze);It=Math.max(It,0),It=Math.min(It,ze),Zn=(0,je.Z)(function(){ft(It,Ae)})}},_n=function(){nn(!1),ye()};return window.addEventListener("mousemove",Xn,{passive:!0}),window.addEventListener("touchmove",Xn,{passive:!0}),window.addEventListener("mouseup",_n,{passive:!0}),window.addEventListener("touchend",_n,{passive:!0}),function(){window.removeEventListener("mousemove",Xn),window.removeEventListener("touchmove",Xn),window.removeEventListener("mouseup",_n),window.removeEventListener("touchend",_n),je.Z.cancel(Zn)}}},[Ht]),Le.useEffect(function(){return gn(),function(){clearTimeout(Rn.current)}},[ce]),Le.useImperativeHandle(ne,function(){return{delayHidden:gn}});var Cn="".concat(te,"-scrollbar"),Fn={position:"absolute",visibility:Sn?null:"hidden"},zn={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return Ae?(Object.assign(Fn,{height:8,left:0,right:0,bottom:0}),Object.assign(zn,(0,Ue.Z)({height:"100%",width:ke},Me?"left":"right",Xt))):(Object.assign(Fn,(0,Ue.Z)({width:8,top:0,bottom:0},Me?"right":"left",0)),Object.assign(zn,{width:"100%",height:ke,top:Xt})),Le.createElement("div",{ref:st,className:Ze()(Cn,(0,Ue.Z)((0,Ue.Z)((0,Ue.Z)({},"".concat(Cn,"-horizontal"),Ae),"".concat(Cn,"-vertical"),!Ae),"".concat(Cn,"-visible"),Sn)),style:(0,fe.Z)((0,fe.Z)({},Fn),Ye),onMouseDown:rn,onMouseMove:gn},Le.createElement("div",{ref:Ct,className:Ze()("".concat(Cn,"-thumb"),(0,Ue.Z)({},"".concat(Cn,"-thumb-moving"),Ht)),style:(0,fe.Z)((0,fe.Z)({},zn),mt),onMouseDown:Jt}))}),kt=Ut,ge=20;function et(){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 rt=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],_t=[],Qe={overflowY:"auto",overflowAnchor:"none"};function Bt(ae,ne){var te=ae.prefixCls,oe=te===void 0?"rc-virtual-list":te,ce=ae.className,re=ae.height,le=ae.itemHeight,ye=ae.fullHeight,ft=ye===void 0?!0:ye,Ae=ae.style,ke=ae.data,Ve=ae.children,Ye=ae.itemKey,mt=ae.virtual,we=ae.direction,De=ae.scrollWidth,Zt=ae.component,Ht=Zt===void 0?"div":Zt,nn=ae.onScroll,qt=ae.onVirtualScroll,Et=ae.onVisibleChange,on=ae.innerProps,Kt=ae.extraRender,He=ae.styles,ht=ae.showScrollBar,at=ht===void 0?"optional":ht,Mt=(0,xe.Z)(ae,rt),Me=Le.useCallback(function(Dn){return typeof Ye=="function"?Ye(Dn):Dn==null?void 0:Dn[Ye]},[Ye]),st=de(Me,null,null),Ct=(0,Ee.Z)(st,4),Wt=Ct[0],cn=Ct[1],Sn=Ct[2],Bn=Ct[3],Rn=!!(mt!==!1&&re&&le),gn=Le.useMemo(function(){return Object.values(Sn.maps).reduce(function(Dn,jn){return Dn+jn},0)},[Sn.id,Sn.maps]),Nn=Rn&&ke&&(Math.max(le*ke.length,gn)>re||!!De),dn=we==="rtl",Xt=Ze()(oe,(0,Ue.Z)({},"".concat(oe,"-rtl"),dn),ce),rn=ke||_t,an=(0,Le.useRef)(),Jt=(0,Le.useRef)(),pn=(0,Le.useRef)(),mn=(0,Le.useState)(0),Cn=(0,Ee.Z)(mn,2),Fn=Cn[0],zn=Cn[1],Zn=(0,Le.useState)(0),Xn=(0,Ee.Z)(Zn,2),_n=Xn[0],pr=Xn[1],ar=(0,Le.useState)(!1),sn=(0,Ee.Z)(ar,2),bn=sn[0],Hn=sn[1],An=function(){Hn(!0)},ut=function(){Hn(!1)},Ot={getKey:Me};function Fe(Dn){zn(function(jn){var Kn;typeof Dn=="function"?Kn=Dn(jn):Kn=Dn;var kn=Er(Kn);return an.current.scrollTop=kn,kn})}var vt=(0,Le.useRef)({start:0,end:rn.length}),ze=(0,Le.useRef)(),bt=At(rn,Me),Pe=(0,Ee.Z)(bt,1),It=Pe[0];ze.current=It;var $t=Le.useMemo(function(){if(!Rn)return{scrollHeight:void 0,start:0,end:rn.length-1,offset:void 0};if(!Nn){var Dn;return{scrollHeight:((Dn=Jt.current)===null||Dn===void 0?void 0:Dn.offsetHeight)||0,start:0,end:rn.length-1,offset:void 0}}for(var jn=0,Kn,kn,or,br=rn.length,$n=0;$n<br;$n+=1){var Mn=rn[$n],Un=Me(Mn),tr=Sn.get(Un),Jr=jn+(tr===void 0?le:tr);Jr>=Fn&&Kn===void 0&&(Kn=$n,kn=jn),Jr>Fn+re&&or===void 0&&(or=$n),jn=Jr}return Kn===void 0&&(Kn=0,kn=0,or=Math.ceil(re/le)),or===void 0&&(or=rn.length-1),or=Math.min(or+1,rn.length-1),{scrollHeight:jn,start:Kn,end:or,offset:kn}},[Nn,Rn,Fn,rn,Bn,re]),Vt=$t.scrollHeight,St=$t.start,xt=$t.end,wt=$t.offset;vt.current.start=St,vt.current.end=xt,Le.useLayoutEffect(function(){var Dn=Sn.getRecord();if(Dn.size===1){var jn=Array.from(Dn.keys())[0],Kn=Dn.get(jn),kn=rn[St];if(kn&&Kn===void 0){var or=Me(kn);if(or===jn){var br=Sn.get(jn),$n=br-le;Fe(function(Mn){return Mn+$n})}}}Sn.resetRecord()},[Vt]);var Ft=Le.useState({width:0,height:re}),On=(0,Ee.Z)(Ft,2),In=On[0],Tn=On[1],er=function(jn){Tn({width:jn.offsetWidth,height:jn.offsetHeight})},lr=(0,Le.useRef)(),dr=(0,Le.useRef)(),Jn=Le.useMemo(function(){return et(In.width,De)},[In.width,De]),Gn=Le.useMemo(function(){return et(In.height,Vt)},[In.height,Vt]),Qn=Vt-re,cr=(0,Le.useRef)(Qn);cr.current=Qn;function Er(Dn){var jn=Dn;return Number.isNaN(cr.current)||(jn=Math.min(jn,cr.current)),jn=Math.max(jn,0),jn}var Cr=Fn<=0,wr=Fn>=Qn,Yn=_n<=0,yr=_n>=De,mr=nt(Cr,wr,Yn,yr),Vr=function(){return{x:dn?-_n:_n,y:Fn}},Yr=(0,Le.useRef)(Vr()),_r=(0,ue.zX)(function(Dn){if(qt){var jn=(0,fe.Z)((0,fe.Z)({},Vr()),Dn);(Yr.current.x!==jn.x||Yr.current.y!==jn.y)&&(qt(jn),Yr.current=jn)}});function Ur(Dn,jn){var Kn=Dn;jn?((0,Rt.flushSync)(function(){pr(Kn)}),_r()):Fe(Kn)}function oi(Dn){var jn=Dn.currentTarget.scrollTop;jn!==Fn&&Fe(jn),nn==null||nn(Dn),_r()}var Zr=function(jn){var Kn=jn,kn=De?De-In.width:0;return Kn=Math.max(Kn,0),Kn=Math.min(Kn,kn),Kn},Qr=(0,ue.zX)(function(Dn,jn){jn?((0,Rt.flushSync)(function(){pr(function(Kn){var kn=Kn+(dn?-Dn:Dn);return Zr(kn)})}),_r()):Fe(function(Kn){var kn=Kn+Dn;return kn})}),Or=zt(Rn,Cr,wr,Yn,yr,!!De,Qr),ti=(0,Ee.Z)(Or,2),ci=ti[0],$i=ti[1];Ke(Rn,an,function(Dn,jn,Kn,kn){var or=kn;return mr(Dn,jn,Kn)?!1:!or||!or._virtualHandled?(or&&(or._virtualHandled=!0),ci({preventDefault:function(){},deltaX:Dn?jn:0,deltaY:Dn?0:jn}),!0):!1}),Ne(Nn,an,function(Dn){Fe(function(jn){return jn+Dn})}),(0,tt.Z)(function(){function Dn(Kn){var kn=Cr&&Kn.detail<0,or=wr&&Kn.detail>0;Rn&&!kn&&!or&&Kn.preventDefault()}var jn=an.current;return jn.addEventListener("wheel",ci,{passive:!1}),jn.addEventListener("DOMMouseScroll",$i,{passive:!0}),jn.addEventListener("MozMousePixelScroll",Dn,{passive:!1}),function(){jn.removeEventListener("wheel",ci),jn.removeEventListener("DOMMouseScroll",$i),jn.removeEventListener("MozMousePixelScroll",Dn)}},[Rn,Cr,wr]),(0,tt.Z)(function(){if(De){var Dn=Zr(_n);pr(Dn),_r({x:Dn})}},[In.width,De]);var vi=function(){var jn,Kn;(jn=lr.current)===null||jn===void 0||jn.delayHidden(),(Kn=dr.current)===null||Kn===void 0||Kn.delayHidden()},xi=Pt(an,rn,Sn,le,Me,function(){return cn(!0)},Fe,vi);Le.useImperativeHandle(ne,function(){return{nativeElement:pn.current,getScrollInfo:Vr,scrollTo:function(jn){function Kn(kn){return kn&&(0,We.Z)(kn)==="object"&&("left"in kn||"top"in kn)}Kn(jn)?(jn.left!==void 0&&pr(Zr(jn.left)),xi(jn.top)):xi(jn)}}}),(0,tt.Z)(function(){if(Et){var Dn=rn.slice(St,xt+1);Et(Dn,rn)}},[St,xt,rn]);var hi=yt(rn,Me,Sn,le),bi=Kt==null?void 0:Kt({start:St,end:xt,virtual:Nn,offsetX:_n,offsetY:wt,rtl:dn,getSize:hi}),Ar=Oe(rn,St,xt,De,_n,Wt,Ve,Ot),Lr=null;re&&(Lr=(0,fe.Z)((0,Ue.Z)({},ft?"height":"maxHeight",re),Qe),Rn&&(Lr.overflowY="hidden",De&&(Lr.overflowX="hidden"),bn&&(Lr.pointerEvents="none")));var sr={};return dn&&(sr.dir="rtl"),Le.createElement("div",(0,b.Z)({ref:pn,style:(0,fe.Z)((0,fe.Z)({},Ae),{},{position:"relative"}),className:Xt},sr,Mt),Le.createElement(Ce.Z,{onResize:er},Le.createElement(Ht,{className:"".concat(oe,"-holder"),style:Lr,ref:an,onScroll:oi,onMouseEnter:vi},Le.createElement($e,{prefixCls:oe,height:Vt,offsetX:_n,offsetY:wt,scrollWidth:De,onInnerResize:cn,ref:Jt,innerProps:on,rtl:dn,extra:bi},Ar))),Nn&&Vt>re&&Le.createElement(kt,{ref:lr,prefixCls:oe,scrollOffset:Fn,scrollRange:Vt,rtl:dn,onScroll:Ur,onStartMove:An,onStopMove:ut,spinSize:Gn,containerSize:In.height,style:He==null?void 0:He.verticalScrollBar,thumbStyle:He==null?void 0:He.verticalScrollBarThumb,showScrollBar:at}),Nn&&De>In.width&&Le.createElement(kt,{ref:dr,prefixCls:oe,scrollOffset:_n,scrollRange:De,rtl:dn,onScroll:Ur,onStartMove:An,onStopMove:ut,spinSize:Jn,containerSize:In.width,horizontal:!0,style:He==null?void 0:He.horizontalScrollBar,thumbStyle:He==null?void 0:He.horizontalScrollBarThumb,showScrollBar:at}))}var qe=Le.forwardRef(Bt);qe.displayName="List";var tn=qe,Tt=tn},4977:function(wn){"use strict";wn.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(wn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Ze}});const b=Ce=>typeof Ce=="object"&&Ce!=null&&Ce.nodeType===1,We=(Ce,ue)=>(!ue||Ce!=="hidden")&&Ce!=="visible"&&Ce!=="clip",fe=(Ce,ue)=>{if(Ce.clientHeight<Ce.scrollHeight||Ce.clientWidth<Ce.scrollWidth){const tt=getComputedStyle(Ce,null);return We(tt.overflowY,ue)||We(tt.overflowX,ue)||(Le=>{const Rt=(it=>{if(!it.ownerDocument||!it.ownerDocument.defaultView)return null;try{return it.ownerDocument.defaultView.frameElement}catch($e){return null}})(Le);return!!Rt&&(Rt.clientHeight<Le.scrollHeight||Rt.clientWidth<Le.scrollWidth)})(Ce)}return!1},Ue=(Ce,ue,tt,Le,Rt,it,$e,Te)=>it<Ce&&$e>ue||it>Ce&&$e<ue?0:it<=Ce&&Te<=tt||$e>=ue&&Te>=tt?it-Ce-Le:$e>ue&&Te<tt||it<Ce&&Te>tt?$e-ue+Rt:0,Ee=Ce=>{const ue=Ce.parentElement;return ue==null?Ce.getRootNode().host||null:ue},xe=(Ce,ue)=>{var tt,Le,Rt,it;if(typeof document=="undefined")return[];const{scrollMode:$e,block:Te,inline:Oe,boundary:Xe,skipOverflowHiddenElements:pt}=ue,At=typeof Xe=="function"?Xe:kt=>kt!==Xe;if(!b(Ce))throw new TypeError("Invalid target");const je=document.scrollingElement||document.documentElement,Be=[];let Je=Ce;for(;b(Je)&&At(Je);){if(Je=Ee(Je),Je===je){Be.push(Je);break}Je!=null&&Je===document.body&&fe(Je)&&!fe(document.documentElement)||Je!=null&&fe(Je,pt)&&Be.push(Je)}const nt=(Le=(tt=window.visualViewport)==null?void 0:tt.width)!=null?Le:innerWidth,zt=(it=(Rt=window.visualViewport)==null?void 0:Rt.height)!=null?it:innerHeight,{scrollX:yt,scrollY:ot}=window,{height:ct,width:Se,top:lt,right:Ge,bottom:de,left:Dt}=Ce.getBoundingClientRect(),{top:Ke,right:gt,bottom:Yt,left:Ne}=(kt=>{const ge=window.getComputedStyle(kt);return{top:parseFloat(ge.scrollMarginTop)||0,right:parseFloat(ge.scrollMarginRight)||0,bottom:parseFloat(ge.scrollMarginBottom)||0,left:parseFloat(ge.scrollMarginLeft)||0}})(Ce);let me=Te==="start"||Te==="nearest"?lt-Ke:Te==="end"?de+Yt:lt+ct/2-Ke+Yt,Pt=Oe==="center"?Dt+Se/2-Ne+gt:Oe==="end"?Ge+gt:Dt-Ne;const Ut=[];for(let kt=0;kt<Be.length;kt++){const ge=Be[kt],{height:et,width:rt,top:_t,right:Qe,bottom:Bt,left:qe}=ge.getBoundingClientRect();if($e==="if-needed"&<>=0&&Dt>=0&&de<=zt&&Ge<=nt&&(ge===je&&!fe(ge)||lt>=_t&&de<=Bt&&Dt>=qe&&Ge<=Qe))return Ut;const tn=getComputedStyle(ge),Tt=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-Tt-ne:0,le="offsetHeight"in ge?ge.offsetHeight-ge.clientHeight-ae-te:0,ye="offsetWidth"in ge?ge.offsetWidth===0?0:rt/ge.offsetWidth:0,ft="offsetHeight"in ge?ge.offsetHeight===0?0:et/ge.offsetHeight:0;if(je===ge)oe=Te==="start"?me:Te==="end"?me-zt:Te==="nearest"?Ue(ot,ot+zt,zt,ae,te,ot+me,ot+me+ct,ct):me-zt/2,ce=Oe==="start"?Pt:Oe==="center"?Pt-nt/2:Oe==="end"?Pt-nt:Ue(yt,yt+nt,nt,Tt,ne,yt+Pt,yt+Pt+Se,Se),oe=Math.max(0,oe+ot),ce=Math.max(0,ce+yt);else{oe=Te==="start"?me-_t-ae:Te==="end"?me-Bt+te+le:Te==="nearest"?Ue(_t,Bt,et,ae,te+le,me,me+ct,ct):me-(_t+et/2)+le/2,ce=Oe==="start"?Pt-qe-Tt:Oe==="center"?Pt-(qe+rt/2)+re/2:Oe==="end"?Pt-Qe+ne+re:Ue(qe,Qe,rt,Tt,ne+re,Pt,Pt+Se,Se);const{scrollLeft:Ae,scrollTop:ke}=ge;oe=ft===0?0:Math.max(0,Math.min(ke+oe/ft,ge.scrollHeight-et/ft+le)),ce=ye===0?0:Math.max(0,Math.min(Ae+ce/ye,ge.scrollWidth-rt/ye+re)),me+=ke-oe,Pt+=Ae-ce}Ut.push({el:ge,top:oe,left:ce})}return Ut},Ie=Ce=>Ce===!1?{block:"end",inline:"nearest"}:(ue=>ue===Object(ue)&&Object.keys(ue).length!==0)(Ce)?Ce:{block:"start",inline:"nearest"};function Ze(Ce,ue){if(!Ce.isConnected||!(Rt=>{let it=Rt;for(;it&&it.parentNode;){if(it.parentNode===document)return!0;it=it.parentNode instanceof ShadowRoot?it.parentNode.host:it.parentNode}return!1})(Ce))return;const tt=(Rt=>{const it=window.getComputedStyle(Rt);return{top:parseFloat(it.scrollMarginTop)||0,right:parseFloat(it.scrollMarginRight)||0,bottom:parseFloat(it.scrollMarginBottom)||0,left:parseFloat(it.scrollMarginLeft)||0}})(Ce);if((Rt=>typeof Rt=="object"&&typeof Rt.behavior=="function")(ue))return ue.behavior(xe(Ce,ue));const Le=typeof ue=="boolean"||ue==null?void 0:ue.behavior;for(const{el:Rt,top:it,left:$e}of xe(Ce,Ie(ue))){const Te=it-tt.top+tt.bottom,Oe=$e-tt.left+tt.right;Rt.scroll({top:Te,left:Oe,behavior:Le})}}}}]);
|