|
|
(self.webpackChunk=self.webpackChunk||[]).push([[8982],{89489:function(Kn,cn,z){"use strict";z.d(cn,{Z:function(){return Qe}});var b=z(54476),Pe=z(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"},rt=fe,xe=z(7657),ge=function(de,tt){return Pe.createElement(xe.Z,(0,b.Z)({},de,{ref:tt,icon:rt}))},Ee=Pe.forwardRef(ge),Qe=Ee},59477:function(Kn,cn,z){"use strict";z.d(cn,{Z:function(){return Qe}});var b=z(54476),Pe=z(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"},rt=fe,xe=z(7657),ge=function(de,tt){return Pe.createElement(xe.Z,(0,b.Z)({},de,{ref:tt,icon:rt}))},Ee=Pe.forwardRef(ge),Qe=Ee},40001:function(Kn,cn,z){"use strict";z.d(cn,{Z:function(){return Qe}});var b=z(54476),Pe=z(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"},rt=fe,xe=z(7657),ge=function(de,tt){return Pe.createElement(xe.Z,(0,b.Z)({},de,{ref:tt,icon:rt}))},Ee=Pe.forwardRef(ge),Qe=Ee},26227:function(Kn,cn,z){"use strict";z.d(cn,{Z:function(){return Qe}});var b=z(54476),Pe=z(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"},rt=fe,xe=z(7657),ge=function(de,tt){return Pe.createElement(xe.Z,(0,b.Z)({},de,{ref:tt,icon:rt}))},Ee=Pe.forwardRef(ge),Qe=Ee},49198:function(Kn,cn,z){"use strict";z.d(cn,{Z:function(){return Qe}});var b=z(54476),Pe=z(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"},rt=fe,xe=z(7657),ge=function(de,tt){return Pe.createElement(xe.Z,(0,b.Z)({},de,{ref:tt,icon:rt}))},Ee=Pe.forwardRef(ge),Qe=Ee},41464:function(Kn,cn,z){"use strict";z.d(cn,{Z:function(){return Qe}});var b=z(54476),Pe=z(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"},rt=fe,xe=z(7657),ge=function(de,tt){return Pe.createElement(xe.Z,(0,b.Z)({},de,{ref:tt,icon:rt}))},Ee=Pe.forwardRef(ge),Qe=Ee},73331:function(Kn,cn,z){"use strict";z.d(cn,{Z:function(){return Qe}});var b=z(54476),Pe=z(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"},rt=fe,xe=z(7657),ge=function(de,tt){return Pe.createElement(xe.Z,(0,b.Z)({},de,{ref:tt,icon:rt}))},Ee=Pe.forwardRef(ge),Qe=Ee},15277:function(Kn,cn,z){"use strict";z.d(cn,{Z:function(){return Qe}});var b=z(54476),Pe=z(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"},rt=fe,xe=z(7657),ge=function(de,tt){return Pe.createElement(xe.Z,(0,b.Z)({},de,{ref:tt,icon:rt}))},Ee=Pe.forwardRef(ge),Qe=Ee},52671:function(Kn,cn,z){"use strict";z.d(cn,{Z:function(){return Qe}});var b=z(54476),Pe=z(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"},rt=fe,xe=z(7657),ge=function(de,tt){return Pe.createElement(xe.Z,(0,b.Z)({},de,{ref:tt,icon:rt}))},Ee=Pe.forwardRef(ge),Qe=Ee},8657:function(Kn,cn,z){"use strict";z.d(cn,{Z:function(){return Qe}});var b=z(54476),Pe=z(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"},rt=fe,xe=z(7657),ge=function(de,tt){return Pe.createElement(xe.Z,(0,b.Z)({},de,{ref:tt,icon:rt}))},Ee=Pe.forwardRef(ge),Qe=Ee},56082:function(Kn,cn,z){"use strict";z.d(cn,{Z:function(){return Qe}});var b=z(54476),Pe=z(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"},rt=fe,xe=z(7657),ge=function(de,tt){return Pe.createElement(xe.Z,(0,b.Z)({},de,{ref:tt,icon:rt}))},Ee=Pe.forwardRef(ge),Qe=Ee},61481:function(Kn,cn,z){"use strict";z.d(cn,{Z:function(){return Qe}});var b=z(54476),Pe=z(59301),fe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},rt=fe,xe=z(7657),ge=function(de,tt){return Pe.createElement(xe.Z,(0,b.Z)({},de,{ref:tt,icon:rt}))},Ee=Pe.forwardRef(ge),Qe=Ee},33853:function(Kn,cn,z){"use strict";z.d(cn,{Z:function(){return Qe}});var b=z(54476),Pe=z(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"},rt=fe,xe=z(7657),ge=function(de,tt){return Pe.createElement(xe.Z,(0,b.Z)({},de,{ref:tt,icon:rt}))},Ee=Pe.forwardRef(ge),Qe=Ee},15075:function(Kn,cn,z){"use strict";z.d(cn,{Z:function(){return Qe}});var b=z(54476),Pe=z(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"},rt=fe,xe=z(7657),ge=function(de,tt){return Pe.createElement(xe.Z,(0,b.Z)({},de,{ref:tt,icon:rt}))},Ee=Pe.forwardRef(ge),Qe=Ee},43531:function(Kn,cn,z){"use strict";z.d(cn,{Z:function(){return Qe}});var b=z(54476),Pe=z(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"},rt=fe,xe=z(7657),ge=function(de,tt){return Pe.createElement(xe.Z,(0,b.Z)({},de,{ref:tt,icon:rt}))},Ee=Pe.forwardRef(ge),Qe=Ee},61485:function(Kn,cn,z){"use strict";z.d(cn,{Z:function(){return Qe}});var b=z(54476),Pe=z(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"},rt=fe,xe=z(7657),ge=function(de,tt){return Pe.createElement(xe.Z,(0,b.Z)({},de,{ref:tt,icon:rt}))},Ee=Pe.forwardRef(ge),Qe=Ee},47472:function(Kn,cn,z){"use strict";z.d(cn,{Z:function(){return Qe}});var b=z(54476),Pe=z(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"},rt=fe,xe=z(7657),ge=function(de,tt){return Pe.createElement(xe.Z,(0,b.Z)({},de,{ref:tt,icon:rt}))},Ee=Pe.forwardRef(ge),Qe=Ee},87395:function(Kn,cn,z){"use strict";z.d(cn,{Z:function(){return Qe}});var b=z(54476),Pe=z(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"},rt=fe,xe=z(7657),ge=function(de,tt){return Pe.createElement(xe.Z,(0,b.Z)({},de,{ref:tt,icon:rt}))},Ee=Pe.forwardRef(ge),Qe=Ee},3706:function(){"use strict"},96772:function(){"use strict"},50718:function(Kn,cn){"use strict";cn.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},45936:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var Kn={},cn="5.0",z={},b=null,Pe=!1,fe=!1,rt=null,xe=!1,ge=null,Ee=null,Qe=0;Qe<arguments.length;Qe++){var Ae=arguments[Qe];if(Ae!==null)switch(typeof Ae){case"number":cn=Ae.toFixed(1);break;case"string":Ae.match(new RegExp("^[0-9]\\.[0-9]+$"))?cn=Ae:rt=Ae;break;case"object":typeof Ae.is3D!="undefined"?b=Ae:z=Ae;break;case"boolean":Pe=Ae,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},z.material_id!==void 0&&!fe&&(Pe=!0)),rt!==null&&z.id===void 0&&(z.id=rt);var de="",tt="",ve=!1,Lt=null,at=null,Ve=null,Ne=!1,Ze=null,pt=null,mt=null,Xt=null,He=null;z.height!==void 0&&(z.height=Math.round(z.height)),z.width!==void 0&&(z.width=Math.round(z.width));var Ke=function(Ce){return parseFloat(Ce)>4?parseFloat(Ce):5};Kn.setHTML5Codebase=function(Ce,ot){Ee=Ce,Ct(Ce,ot)},Kn.setJavaCodebase=Kn.setJavaCodebaseVersion=Kn.isCompiledInstalled=Kn.setPreCompiledScriptPath=Kn.setPreCompiledResourcePath=function(){},Kn.setHTML5CodebaseVersion=function(Ce,ot){var lt=parseFloat(Ce);if(lt!==NaN&<<5){console.log("The GeoGebra HTML5 codebase version "+lt+" is deprecated. Using version latest instead.");return}ge=Ce,he(Ce,ot)},Kn.getHTML5CodebaseVersion=function(){return at},Kn.getParameters=function(){return z},Kn.setFontsCSSURL=function(Ce){Xt=Ce},Kn.setGiacJSURL=function(Ce){},Kn.setJNLPFile=function(Ce){de=Ce},Kn.setJNLPBaseDir=function(Ce){},Kn.inject=function(){function Ce(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var ot="auto",lt=z.id,Wt,ct=!1,$t=0;$t<arguments.length;$t++){var vt=arguments[$t];typeof vt=="string"?(vt=vt.toLowerCase(),vt.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?ot=vt:lt=arguments[$t]):typeof vt=="boolean"?ct=vt:vt instanceof HTMLElement&&(Wt=vt)}gn();function gn(){if(!xe){setTimeout(gn,200);return}ot=ln(ot);var Tt=Wt||document.getElementById(lt);if(!Tt){console.log("possibly bug on ajax loading? ");return}if(Kn.removeExistingApplet(Tt,!1),z.width===void 0&&Tt.clientWidth&&(z.width=Tt.clientWidth),z.height===void 0&&Tt.clientHeight&&(z.height=Tt.clientHeight),!(z.width&&z.height)&&ot==="html5"&&(delete z.width,delete z.height),Lt=ot,ot==="screenshot")Xe(Tt,z);else{var ie=!1;z.hasOwnProperty("playButton")&&z.playButton||z.hasOwnProperty("clickToLoad")&&z.clickToLoad?ie=!0:z.hasOwnProperty("playButtonAutoDecide")&&z.playButtonAutoDecide&&(ie=(!ut()||Ce())&&ft()),ie?(Lt="screenshot",Nt(Tt,z,ct,ot)):Je(Tt,z,ct)}}};function ut(){try{return window.self!==window.top}catch(Ce){return!0}}function ft(){return z.hasOwnProperty("screenshotGenerator")&&z.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Kn.getViews=function(){return b},Kn.isJavaInstalled=function(){return!1};var jt=function(Ce){var ot=function($t){var vt=JSON.parse($t),gn=function(ne){return ne.type=="G"||ne.type=="E"},Tt=vt.elements?vt.elements.filter(gn)[0]:vt;if(!Tt||!Tt.url){lt();return}z.fileName=Tt.url,Ot(Tt.settings||{}),b.is3D=!0;var ie="https://www.geogebra.org/images/";Kn.setPreviewImage(Ze||Tt.previewUrl,ie+"GeoGebra_loading.png",ie+"applet_play.png"),Ce()},lt=function(){z.onError&&z.onError(),Pt("Error: Fetching material (id "+z.material_id+") failed.",z)},Wt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",ct="/materials/"+z.material_id+"?scope=basic";yt("https://"+Wt+"/api/proxy.php?path="+encodeURIComponent(ct),ot,lt)};function Ot(Ce){var ot=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(lt){Ce[lt]=!!Ce[lt]}),ot.forEach(function(lt){z[lt]===void 0&&Ce[lt]!==void 0&&(z[lt]=Ce[lt])}),z.showToolBarHelp===void 0&&(z.showToolBarHelp=z.showToolBar)}function yt(Ce,ot,lt){var Wt=new XMLHttpRequest;Wt.open("GET",Ce),Wt.onload=function(){ot(Wt.responseText)},Wt.onerror=lt,Wt.send()}Kn.isHTML5Installed=function(){return!0},Kn.getLoadedAppletType=function(){return Lt},Kn.setPreviewImage=function(Ce,ot,lt){Ze=Ce,pt=ot,mt=lt},Kn.removeExistingApplet=function(Ce,ot){var lt;typeof Ce=="string"&&(Ce=document.getElementById(Ce)),Lt=null;var Wt=null;for(lt=0;lt<Ce.childNodes.length;lt++){var ct=Ce.childNodes[lt],$t=ct.className;$t==="applet_screenshot"?ot?(ct.style.display="block",Lt="screenshot"):ct.style.display="none":$t!=="applet_scaler prerender"&&(Ce.removeChild(ct),Wt=$t&&$t.indexOf("appletParameters")!=-1?ct.id:null,lt--)}var vt=z.id!==void 0?z.id:Wt,gn=window[vt];gn&&typeof gn.getBase64=="function"&&(gn.remove(),window[vt]=null)},Kn.refreshHitPoints=function(){if(Ke(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Ce=Kn.getAppletObject();return Ce&&typeof Ce.recalculateEnvironments=="function"?(Ce.recalculateEnvironments(),!0):!1},Kn.startAnimation=function(){var Ce=Kn.getAppletObject();return Ce&&typeof Ce.startAnimation=="function"?(Ce.startAnimation(),!0):!1},Kn.stopAnimation=function(){var Ce=Kn.getAppletObject();return Ce&&typeof Ce.stopAnimation=="function"?(Ce.stopAnimation(),!0):!1},Kn.getAppletObject=function(){var Ce=z.id!==void 0?z.id:"ggbApplet";return window[Ce]},Kn.resize=function(){};var Et=function(Ce,ot,lt){var Wt=document.createElement("param");Wt.setAttribute("name",ot),Wt.setAttribute("value",lt),Ce.appendChild(Wt)},pe=function(Ce){return Ce&&Ce!=="false"},Je=function(Ce,ot,lt){Ke(at)<=4.2&&(lt=!0);var Wt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==at||ggbHTML5LoadedCodebaseIsWebSimple&&!Ne)&&(Wt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var ct=document.createElement("div");ct.classList.add("appletParameters","notranslate");var $t=ot.width,vt=ot.height;if(ot.disableAutoScale=ot.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():ot.disableAutoScale,ot.width!==void 0)if(Ke(at)<=4.4)pe(ot.showToolBar)&&(ot.height-=7),pe(ot.showAlgebraInput)&&(ot.height-=37),ot.width<605&&pe(ot.showToolBar)&&(ot.width=605,$t=605);else{var gn=100;(pe(ot.showToolBar)||pe(ot.showMenuBar))&&(ot.hasOwnProperty("customToolBar")&&(ot.customToolbar=ot.customToolBar),gn=pe(ot.showMenuBar)?245:155),$t<gn&&(ot.width=gn,$t=gn)}ct.style.border="none",ct.style.display="inline-block";for(var Tt in ot)ot.hasOwnProperty(Tt)&&Tt!=="appletOnLoad"&&ct.setAttribute("data-param-"+Tt,ot[Tt]);Xt&&ct.setAttribute("data-param-fontscssurl",Xt),Kn.resize=function(){GGBAppletUtils.responsiveResize(Ce,ot)},window.addEventListener("resize",function(nt){Kn.resize()});var ie=typeof ot.appletOnLoad=="function"?ot.appletOnLoad:function(){};if(!lt&&ot.width!==void 0){ot.hasOwnProperty("showSplash")||ct.setAttribute("data-param-showSplash","false");var ne=Ce.querySelector(".applet_scaler.prerender"),te=ne!==null;if(te)var oe=ne.querySelector(".ggb_preview");else{var oe=wt($t,vt,ot.borderColor,!1);ne=document.createElement("div"),ne.className="applet_scaler",ne.style.position="relative",ne.style.display="block",ne.style.width=$t+"px",ne.style.height=vt+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(ne,"66%"),Ke(at)>=5?(ot.appletOnLoad=function(nt){var st=Ce.querySelector(".ggb_preview");st&&st.parentNode.removeChild(st),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(ne),window.GGBT_wsf_view&&$(window).trigger("resize"),ie(nt)},te||ne.appendChild(oe)):ct.appendChild(oe),ne.appendChild(ct),te||Ce.appendChild(ne),setTimeout(function(){Kn.resize()},1)}else{var se=document.createElement("div");se.className="applet_scaler",se.style.position="relative",se.style.display="block",se.appendChild(ct),Ce.appendChild(se),ot.appletOnLoad=function(nt){Kn.resize(),ie(nt)}}function re(nt,st){st&&typeof st.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(nt,st.appletOnLoad):renderGGBElement(nt),Pt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",st)}function le(nt,st){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:nt,params:st}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(we){re(we.article,we.params)}),html5AppletsToProcess=null)},Ke(at)<5&&(nt.className+=" geogebraweb")):re(nt,st)}if(Wt){scriptLoadStarted=!0;for(var me=0;me<ct.childNodes.length;me++){var Dt=ct.childNodes[me].tagName;Dt==="TABLE"&&(ct.removeChild(ct.childNodes[me]),me--)}if(ggbHTML5LoadedScript!==null){var Re=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Re!=null&&Re.parentNode.removeChild(Re)}var Fe=document.createElement("script"),qe=function(){le(ct,ot)};Fe.src=tt+Ve,ggbHTML5LoadedCodebaseIsWebSimple=Ne,ggbHTML5LoadedCodebaseVersion=at,ggbHTML5LoadedScript=Fe.src,Pt("GeoGebra HTML5 codebase loaded: '"+tt+"'.",ot),!Ee&&(!ge||ge=="5.0")?(Ne?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),qe()):tt.requirejs?__webpack_require__.e(2667).then(function(){var nt=[__webpack_require__(72667)];qe.apply(null,nt)}.bind(this)).catch(__webpack_require__.oe):(Fe.onload=qe,Ce.appendChild(Fe))}else le(ct,ot);ot.height=vt,ot.width=$t},Xe=function(Ce,ot,lt){var Wt=wt(ot.width,ot.height,ot.borderColor,lt),ct=document.createElement("div");ct.style.position="relative",ct.style.display="block",ct.style.width=ot.width+"px",ct.style.height=ot.height+"px",ct.className="applet_screenshot applet_scaler"+(lt?" applet_screenshot_play":""),ct.appendChild(Wt);var $t=GGBAppletUtils.getScale(ot,Ce,lt);lt?(Ce.appendChild(et()),window.GGBT_wsf_view||(Ce.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(ct,"66%"),Ce.appendChild(ct),$t!==1&&!isNaN($t)&&(GGBAppletUtils.scaleElement(ct,$t),ct.style.width=ot.width+"px",ct.style.height=ot.height+"px",ct.parentNode.style.width=ot.width*$t+"px",ct.parentNode.style.height=ot.height*$t+"px"),Kn.resize=function(){ue(Ce,Wt,ct,lt)},window.addEventListener("resize",function(vt){Kn.resize()}),Kn.resize()};function ue(Ce,ot,lt,Wt){if(Ce.contains(ot)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ce.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Ce)}var ct=GGBAppletUtils.getScale(z,Ce,Wt);lt.parentNode!==null&&(!isNaN(ct)&&ct!==1?(GGBAppletUtils.scaleElement(lt,ct),lt.parentNode.style.width=z.width*ct+"px",lt.parentNode.style.height=z.height*ct+"px"):(GGBAppletUtils.scaleElement(lt,1),lt.parentNode.style.width=z.width+"px",lt.parentNode.style.height=z.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Ce),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Kn.onExitFullscreen=function(Ce,ot){ot.appendChild(Ce)};var Nt=function(Ce,ot,lt,Wt){Xe(Ce,ot,!0);for(var ct=function(){var gn=[];for(vt=0;vt<Ce.childNodes.length;vt++)gn.push(Ce.childNodes[vt]);if(window.GGBT_wsf_view){var Tt=window.GGBT_wsf_view.renderFullScreen(Ce,ot.id),ie=document.getElementById("fullscreencontainer"),ne=jQuery(Ce).find(".fullscreencontent");ne.length>0?(Tt.remove(),ne.attr("id","fullscreencontent").show(),jQuery(ie).append(ne),window.dispatchEvent(new Event("resize"))):Je(Tt,ot,!1),window.GGBT_wsf_view.launchFullScreen(ie)}else Lt=Wt,Je(Ce,ot,!1);if(!window.GGBT_wsf_view)for(vt=0;vt<gn.length;vt++)Ce.removeChild(gn[vt])},$t=Ce.getElementsByClassName("ggb_preview_play"),vt=0;vt<$t.length;vt++)$t[vt].addEventListener("click",ct,!1),$t[vt].addEventListener("ontouchstart",ct,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Ce),ft()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},et=function(){var Ce=document.createElement("div");if(Ce.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var ot='.icon-applet-play { width: 100%; height: 100%;box-sizing: border-box;position: absolute;z-index: 1001;cursor: pointer;border-width: 0px; background-color: transparent;background-repeat: no-repeat;left: 0;top: 0;background-position: center center; background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet.png");}.icon-applet-play:hover {background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet-hover.png");}',lt=document.createElement("style");lt.styleSheet?lt.styleSheet.cssText=ot:lt.appendChild(document.createTextNode(ot)),document.getElementsByTagName("head")[0].appendChild(lt)}return Ce},wt=function(Ce,ot,lt,Wt){var ct=document.createElement("div");ct.className="ggb_preview",ct.style.position="absolute",ct.style.zIndex="90",ct.style.width=Ce-2+"px",ct.style.height=ot-2+"px",ct.style.top="0px",ct.style.left="0px",ct.style.overflow="hidden",ct.style.backgroundColor="white";var $t="lightgrey";lt!==void 0&&(lt==="none"?$t="transparent":$t=lt),ct.style.border="1px solid "+$t;var vt=document.createElement("img");if(vt.style.position="relative",vt.style.zIndex="1000",vt.style.top="-1px",vt.style.left="-1px",Ze!==null&&vt.setAttribute("src",Ze),vt.style.opacity=.7,pt!==null){var gn,Tt,ie;if(!Wt){gn=document.createElement("img"),gn.style.position="absolute",gn.style.zIndex="1001",gn.style.opacity=1,vt.style.opacity=.3,Tt=360,Tt>Ce/4*3&&(Tt=Ce/4*3),ie=Tt/5.8,gn.setAttribute("src",pt),gn.setAttribute("width",Tt),gn.setAttribute("height",ie);var ne=(Ce-Tt)/2,te=(ot-ie)/2;gn.style.left=ne+"px",gn.style.top=te+"px",ct.appendChild(gn)}}return ct.appendChild(vt),ct},ln=function(Ce){return Ce=Ce.toLowerCase(),Ce==="html5"||Ce==="screenshot"?Ce:"html5"},ke=["web","webSimple","web3d","tablet","tablet3d","phone"],he=function(Ce,ot){if(at=Ce,ot){Ct(at,!0);return}var lt=!Pe;if(lt){var Wt=Ke(at);!isNaN(Wt)&&Wt<4.4&&(lt=!1)}var ct,$t;window.location.protocol.substr(0,4)==="http"?ct=window.location.protocol:ct="http:";var vt=at.indexOf("//");vt>0?$t=at:vt===0?$t=ct+at:$t="https://www.geogebra.org/apps/5.2.814.0/";for(var gn in ke)if(at.slice(ke[gn].length*-1)===ke[gn]||at.slice((ke[gn].length+1)*-1)===ke[gn]+"/"){Ct($t,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&<&&!b.is3D&&!b.AV&&!b.SV&&!b.CV&&!b.EV2&&!b.CP&&!b.PC&&!b.DA&&!b.FI&&!b.PV&&!pe(z.showToolBar)&&!pe(z.showMenuBar)&&!pe(z.showAlgebraInput)&&!pe(z.enableRightClick)&&(!z.appName||z.appName=="classic")?$t+="webSimple/":$t+="web3d/",Ct($t,!1)},Ct=function(Ce,ot){if(Ce.requirejs){tt=Ce;return}Ce.slice(-1)!=="/"&&(Ce+="/"),tt=Ce,ot===null&&(ot=Ce.indexOf("http")===-1),ve=ot,Ve="web.nocache.js",Ne=!1;var lt=tt.split("/");lt.length>1&&(!ot&<[lt.length-2]==="webSimple"?(Ve="webSimple.nocache.js",Ne=!0):ke.indexOf(lt[lt.length-2])>=0&&(Ve=lt[lt.length-2]+".nocache.js")),lt=Ce.split("/"),at=lt[lt.length-3],at.substr(0,4)==="test"?at=at.substr(4,1)+"."+at.substr(5,1):(at.substr(0,3)==="war"||at.substr(0,4)==="beta")&&(at="5.0");var Wt=parseFloat(at);Wt!==NaN&&Wt<5&&Ce.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Wt+" is deprecated. Using version latest instead."),he("5.0",ot))},Pt=function(Ce,ot){window.console&&window.console.log&&(!ot||typeof ot.showLogging=="undefined"||ot.showLogging&&ot.showLogging!=="false")&&console.log(Ce)};z.material_id!==void 0?jt(Kt):Kt();function Kt(){var Ce=cn;ge!==null?Ce=ge:parseFloat(Ce)<5&&(Ce="5.0"),he(Ce,!1),Ee!==null&&Ct(Ee,ve),xe=!0}return Kn},GGBAppletUtils=function(){"use strict";function Kn(){return window.GGBT_wsf_edit!==void 0}function cn(xe,ge){ge!=1?(xe.style.transformOrigin="0% 0% 0px",xe.style.webkitTransformOrigin="0% 0% 0px",xe.style.transform="scale("+ge+","+ge+")",xe.style.webkitTransform="scale("+ge+","+ge+")",xe.style.maxWidth="initial",xe.querySelector(".ggb_preview")!==null&&(xe.querySelector(".ggb_preview").style.maxWidth="initial"),xe.querySelectorAll(".ggb_preview img")[0]!==void 0&&(xe.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),xe.querySelectorAll(".ggb_preview img")[1]!==void 0&&(xe.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(xe.style.transform="none",xe.style.webkitTransform="none")}function z(xe,ge,Ee,Qe,Ae,de){var tt=null;if(de!=null&&de!="")for(var ve=xe.parentNode;ve!=null;)if((" "+ve.className+" ").indexOf(" "+de+" ")>-1){tt=ve;break}else ve=ve.parentNode;var Lt=0,at=0,Ve=0,Ne=0,Ze=0,pt=0,mt=0;if(tt)Lt=tt.offsetWidth,at=Math.max(Qe?tt.offsetWidth:0,tt.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Lt=Math.min(window.innerWidth,document.documentElement.clientWidth),at=Math.min(window.innerHeight,document.documentElement.clientHeight),Ve=Lt):(Lt=window.innerWidth,at=window.innerHeight,Ve=window.innerWidth),xe){var Xt=xe.getBoundingClientRect();Xt.left>0&&Xt.left<=Lt&&(Ae===void 0||!Ae)&&(document.dir==="rtl"?(Ze=Lt-Xt.width-Xt.left,pt=Ve<=480?10:30):(pt=Xt.left,Ze=Ve<=480?10:30),Ne=pt+Ze)}if(xe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var He=xe.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ne=40,mt=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ne=0,mt=40)}}return xe&&((Ee===void 0||!Ee)&&ge>0&&ge+Ne<Lt?Lt=ge:Lt-=Ne,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ee===void 0||!Ee)&&(at-=mt)),{width:Lt,height:at}}function b(xe,ge,Ee,Qe,Ae){if(xe.isScreenshoGenerator)return 1;var de=Qe!==void 0&&Qe,tt=xe.noScaleMargin!=null&&xe.noScaleMargin,ve=function(He){return He&&He!=="false"},Lt=ve(xe.autoHeight),at=z(ge,xe.width,Ee,Lt,de&&window.GGBT_wsf_view||tt,Ae),Ve=parseInt(at.width),Ne=xe.width,Ze=xe.height;if(Ne===void 0){var pt=ge.querySelector(".appletParameters");pt&&(Ne=pt.offsetWidth,Ze=pt.offsetHeight)}var mt=Ve/Ne,Xt=de?1:at.height/Ze;return Ee!==void 0&&!Ee&&(mt=Math.min(1,mt),Xt=Math.min(1,Xt)),Math.min(mt,Xt)}function Pe(xe,ge,Ee){var Qe=1,Ae,de=!1;if(xe.hasOwnProperty("allowUpscale")&&(de=xe.allowUpscale),xe.hasOwnProperty("scale")&&(Qe=parseFloat(xe.scale),(isNaN(Qe)||Qe===null||Qe===0)&&(Qe=1),Qe>1&&(de=!0)),ge&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(de=!0),!(xe.hasOwnProperty("disableAutoScale")&&xe.disableAutoScale))Ae=b(xe,ge,de,Ee,xe.scaleContainerClass);else return Qe;return de&&(!xe.hasOwnProperty("scale")||Qe===1)?Ae:Math.min(Qe,Ae)}function fe(xe){var ge=Math.min(window.innerWidth,document.documentElement.clientWidth),Ee=Math.min(window.innerHeight,document.documentElement.clientHeight),Qe=xe.getBoundingClientRect(),Ae=(ge-Qe.width)/2,de=(Ee-Qe.height)/2;de<0&&(de=0),xe.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ae<40?xe.style.left="40px":xe.style.left=Ae+"px",xe.style.top=de+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(de<40?xe.style.top="40px":xe.style.top=de+"px",xe.style.left=Ae+"px")}function rt(xe,ge){var Ee=xe.querySelector(".appletParameters");if(Ee){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ge.id!==Ee.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(xe)}if(Ee.parentElement&&/fullscreen/.test(Ee.parentElement.className))return;var Qe=Pe(ge,xe);Kn()&&Ee.setAttribute("data-param-scale",Qe);for(var Ae=null,de=0;de<xe.childNodes.length;de++)if(xe.childNodes[de].className!==void 0&&xe.childNodes[de].className.match(/^applet_scaler/)){Ae=xe.childNodes[de];break}if(Ae!==null&&Ae.querySelector(".noscale")!==null)return;var tt=ge.id!==void 0?ge.id:"ggbApplet",ve=window[tt];(ve==null||!ve.recalculateEnvironments)&&Ae!==null&&!Ae.className.match(/fullscreen/)&&(Ae.parentNode.style.transform="",!isNaN(Qe)&&Qe!==1?(Ae.parentNode.style.width=ge.width*Qe+"px",Ae.parentNode.style.height=ge.height*Qe+"px",cn(Ae,Qe)):(cn(Ae,1),Ae.parentNode.style.width=ge.width+"px",Ae.parentNode.style.height=ge.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&fe(xe),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(Ee).parents(".content-added-content"))}}return{responsiveResize:rt,isFlexibleWorksheetEditor:Kn,positionCenter:fe,getScale:Pe,scaleElement:cn}}();__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 Kn=n.location.search;return Kn.indexOf(J)!=-1||Kn.indexOf(K)!=-1}function q(Kn,cn){}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(Kn){var cn=s[L].bindings;s[L].bindings=function(){for(var z=cn?cn():{},b=Kn[webModule.__softPermutationId],Pe=O;Pe<b.length;Pe++){var fe=b[Pe];z[fe[O]]=fe[P]}return z}};var t;function u(){return v(),t}function v(){if(!t){var Kn=o.createElement(Q);if(Kn.id=L,Kn.style.cssText=R+S,Kn.tabIndex=-1,o.body.appendChild(Kn),t=Kn.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var cn=document.compatMode==U?V:W;t.write(cn+X),t.close()}}}function w(Kn){function cn(b){function Pe(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var fe=Pe();if(fe){b();return}function rt(){if(!fe){if(!Pe())return;fe=!0,b(),o.removeEventListener&&o.removeEventListener(Z,rt,!1),xe&&clearInterval(xe)}}o.addEventListener&&o.addEventListener(Z,rt,!1);var xe=setInterval(function(){rt()},$)}function z(b){var Pe=u(),fe=Pe.body,rt=Pe.createElement(_);rt.language=ab,rt.crossOrigin=W,rt.src=b,webModule.__errFn&&(rt.onerror=function(){webModule.__errFn(L,new Error(bb+b))}),fe.appendChild(rt)}cn(function(){z(Kn)})}webModule.__startLoadingFragment=function(Kn){return C(Kn)},webModule.__installRunAsyncCode=function(Kn){var cn=u(),z=cn.body,b=cn.createElement(_);b.language=ab,b.text=Kn,z.appendChild(b),z.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(Kn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Kn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Kn){var cn=c[Kn];return cn==null?null:cn},r=d,webModule.__errFn=e}function B(){function Kn(xe){var ge=xe.lastIndexOf(rb);ge==-1&&(ge=xe.length);var Ee=xe.indexOf(sb);Ee==-1&&(Ee=xe.length);var Qe=xe.lastIndexOf(tb,Math.min(Ee,ge));return Qe>=O?xe.substring(O,Qe+P):W}function cn(xe){if(!xe.match(/^\w+:\/\//)){var ge=o.createElement(ub);ge.src=xe+vb,xe=Kn(ge.src)}return xe}function z(){var xe=__gwt_getMetaProperty(wb);return xe!=null?xe:W}function b(){for(var xe=o.getElementsByTagName(_),ge=O;ge<xe.length;++ge)if(xe[ge].src.indexOf(xb)!=-1)return Kn(xe[ge].src);return W}function Pe(){var xe=o.getElementsByTagName(yb);return xe.length>O?xe[xe.length-P].href:W}function fe(){var xe=o.location;return xe.href==xe.protocol+zb+xe.host+xe.pathname+xe.search+xe.hash}var rt=z();return rt==W&&(rt=b()),rt==W&&(rt=Pe()),rt==W&&fe()&&(rt=Kn(o.location.href)),rt=cn(rt),rt}function C(Kn){return Kn.match(/^\//)||Kn.match(/^[a-zA-Z]+:\/\//)?Kn:webModule.__moduleBase+Kn}function D(){var Kn=[],cn=O,z=[],b=[];function Pe(xe){var ge=b[xe](),Ee=z[xe];if(ge in Ee)return ge;var Qe=[];for(var Ae in Ee)Qe[Ee[Ae]]=Ae;throw r&&r(xe,Qe,ge),null}if(__gwt_isKnownPropertyValue=function(xe,ge){return ge in z[xe]},webModule.__getPropMap=function(){var xe={};for(var ge in z)z.hasOwnProperty(ge)&&(xe[ge]=Pe(ge));return xe},webModule.__computePropValue=Pe,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var fe;try{fe=Cb;var rt=fe.indexOf(Db);rt!=-1&&(cn=parseInt(fe.substring(rt+P),$),fe=fe.substring(O,rt))}catch(xe){}return webModule.__softPermutationId=cn,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})()},8240:function(Kn,cn,z){"use strict";z.d(cn,{Ax:function(){return rt},Ds:function(){return xe},KI:function(){return Ee},SI:function(){return fe},f1:function(){return Pe}});var b=z(35783);function Pe(Qe){let Ae=!0;if(Qe.length>0){for(let de=0;de<Qe.length;de++)if(Qe[de].compile_success==0||!Qe[de].compile_success){Ae=!1;break}}else Ae=!1;return Ae}function fe(Qe,Ae=""){let de=[];for(let tt=0;tt<Qe.length;tt++){let ve=Qe[tt],Lt=Ae?`${Ae}/${ve.name}`:`${ve.name}`;de.push({title:ve.name,type:ve.type,isLeaf:ve.type!=="tree",key:Lt})}return de}function rt(Qe,Ae,de){for(let tt=0;tt<Qe.length;tt++){let ve=Qe[tt];if(ve.key===Ae){ve.children=de;break}ve.children&&rt(ve.children,Ae,de)}return Qe}function xe(Qe,Ae,de){let tt;return function(){let ve=this,Lt=arguments,at=function(){tt=null,de||Qe.apply(ve,Lt)},Ve=de&&!tt;clearTimeout(tt),tt=setTimeout(at,Ae),Ve&&Qe.apply(ve,Lt)}}const ge=!0,Ee=b.Z.API_SERVER},78265:function(Kn,cn,z){"use strict";z.d(cn,{Z:function(){return tt}});var b=z(59301),Pe={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},fe=z(92310),rt=z.n(fe),xe=z(29787),ge=z(2859),Ee=z(22972),Qe=z(68911),Ae=(ve,Lt,at)=>new Promise((Ve,Ne)=>{var Ze=Xt=>{try{mt(at.next(Xt))}catch(He){Ne(He)}},pt=Xt=>{try{mt(at.throw(Xt))}catch(He){Ne(He)}},mt=Xt=>Xt.done?Ve(Xt.value):Promise.resolve(Xt.value).then(Ze,pt);mt((at=at.apply(ve,Lt)).next())}),tt=({data:ve,className:Lt,fullWidth:at,style:Ve={},onClose:Ne,onOk:Ze,showFullTools:pt,noAssociationId:mt})=>{const Xt=(0,b.useRef)(null),He=(0,b.useRef)(null),Ke=(0,b.useRef)(null),ut=(0,b.useRef)(null),[ft,jt]=(0,b.useState)(!1),[Ot,yt]=(0,b.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,b.useEffect)(()=>(Ke.current||(Ke.current=document.createElement("style"),document.head.appendChild(Ke.current)),ve!=null&&ve.visible?(document.body.setAttribute("data-custom","y-hidden"),Ke.current.innerHTML=" html { overflow-y: hidden; }",ve!=null&&ve.src&&Et()):(document.body.removeAttribute("data-custom"),Ke.current&&(document.head.removeChild(Ke.current),Ke.current=null)),()=>{document.body.removeAttribute("data-custom"),Ke.current&&(document.head.removeChild(Ke.current),Ke.current=null)}),[ve==null?void 0:ve.visible]);const Et=()=>Ae(void 0,null,function*(){jt(!0),yt("\u6B63\u5728\u52A0\u8F7D\u4E2D");const ue=yield(0,Qe.ZJ)(ve==null?void 0:ve.src);Xt.current.src="",Xt.current.src=ue,Xt.current.onload=function(){Xe()},jt(!1),yt("")}),pe=ue=>Ae(void 0,null,function*(){jt(!0),yt("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Nt=yield(0,Ee.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:ve.title,file:ue.dataUrl}});Nt!=null&&Nt.id&&!mt?(yield(0,Ee.ZP)(`/api/attachments/${ve.id}/add_subitem.json`,{method:"post",body:{subitem_id:Nt==null?void 0:Nt.id,settings:JSON.stringify(ue.state)}})).status===0&&Ze():Nt!=null&&Nt.id&&Ze(Nt),jt(!1),yt("")}),Je=()=>{const ue=document.querySelector('a[href="https://markerjs.com/"]');ue&&ue.parentNode&&(ue.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"\u9009\u62E9"},{name:'[data-action="delete"]',title:"\u5220\u9664\u5143\u7D20"},{name:'[data-action="undo"]',title:"\u64A4\u9500"},{name:'[data-type-name="FrameMarker"]',title:"\u77E9\u5F62"},{name:'[data-type-name="FreehandMarker"]',title:"\u753B\u7EBF"},{name:'[data-type-name="ArrowMarker"]',title:"\u7BAD\u5934"},{name:'[data-type-name="TextMarker"]',title:"\u6587\u672C"},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:"\u4FDD\u5B58"},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(et=>{const wt=document.querySelector(et.name);wt&&wt.setAttribute("title",et.title)})},Xe=()=>{He.current=new ge.hP(Xt.current),He.current.targetRoot=ut.current,He.current.addEventListener("render",pe),He.current.addEventListener("beforeclose",Ne),pt&&(He.current.availableMarkerTypes=He.current.ALL_MARKER_TYPES,He.current.uiStyleSettings.redoButtonVisible=!0,He.current.uiStyleSettings.notesButtonVisible=!0,He.current.uiStyleSettings.zoomButtonVisible=!0,He.current.uiStyleSettings.zoomOutButtonVisible=!0,He.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=He.current.uiStyleSettings,He.current.show(),ve!=null&&ve.snapshotData&&He.current.restoreState(ve.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Je()},300)};return b.createElement(b.Fragment,null,(ve==null?void 0:ve.visible)&&b.createElement(xe.Z,{spinning:ft,tip:Ot,style:{position:"absolute",width:"100vw"}},b.createElement("div",{ref:ut,className:rt()(Pe.imageDimensions,Lt,at?Pe.fullWidth:""),style:Ve},b.createElement("img",{className:Pe.img,ref:Xt}))))}},9043:function(Kn,cn,z){"use strict";var b=z(59301),Pe=z(77019),fe=z(5269),rt=z(31691),xe=z(7939),ge=z(56375),Ee=z(50718),Qe=z(48136),Ae=z(59301);const de=(0,b.forwardRef)(({callback:tt,showSaveButton:ve,value:Lt=""},at)=>{const Ve=(0,b.useRef)(),Ne=[{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 "}]}]}],Ze=[{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}`}]}]}],pt=He=>{Ve.current.setValue(Ve.current.getValue()+" "+He.value+" ")},mt=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Ae.createElement(Pe.Z,{className:Ee.Z.lists,gutter:[10,10]},Ne.map((He,Ke)=>Ae.createElement(fe.Z,{flex:"110px",className:Ee.Z.item},Ae.createElement("div",null,Ae.createElement(ge.Z,{value:`$$${He.value}$$`}),He.name),Ae.createElement("div",{className:Ee.Z.children},He.children.map((ut,ft)=>Ae.createElement("div",{key:ft},Ae.createElement("h1",null,ut.name),Ae.createElement(Pe.Z,{gutter:[10,10]},ut.data.map((jt,Ot)=>Ae.createElement(fe.Z,{key:Ot,onClick:()=>pt(jt),className:Ee.Z.diamond},Ae.createElement(ge.Z,{value:"`$$"+jt.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Ae.createElement(Pe.Z,{className:Ee.Z.lists,gutter:[10,10]},Ze.map((He,Ke)=>Ae.createElement(fe.Z,{flex:"110px",className:Ee.Z.item},Ae.createElement("div",null,Ae.createElement(ge.Z,{value:"`$$"+He.value+"$$`"}),He.name),Ae.createElement("div",{className:Ee.Z.children},He.children.map((ut,ft)=>Ae.createElement("div",{key:ft},ut.name&&Ae.createElement("h1",null,ut.name),Ae.createElement(Pe.Z,{gutter:[10,10]},ut.data.map((jt,Ot)=>Ae.createElement(fe.Z,{key:Ot,onClick:()=>pt(jt),className:Ee.Z.diamond},Ae.createElement(ge.Z,{value:"`$$"+jt.value+"$$`"}))))))))))}],Xt=()=>{var He=document.createElement("div");He.innerHTML=Ve.current.getValue();var Ke=He.innerText;return tt&&tt(Ke),Ke};return(0,b.useImperativeHandle)(at,()=>({getData:Xt})),Ae.createElement("div",{className:Ee.Z.mathWrap},Ae.createElement(rt.default,{defaultActiveKey:"1",items:mt}),Ae.createElement("math-field",{locale:"zh_cn",className:Ee.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:Ve,style:{width:800,marginTop:30,fontSize:18}},Lt||""),ve&&Ae.createElement("div",{className:Ee.Z.button},Ae.createElement(xe.ZP,{size:"large",onClick:Xt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});cn.Z=de},28349:function(Kn,cn,z){"use strict";z.d(cn,{z:function(){return ln},Z:function(){return ke}});var b=z(59301),Pe=z(94968),fe=z(6767),rt=z(62957),xe=z(7939),ge=z(35783),Ee=z(26386),Qe=Object.defineProperty,Ae=Object.getOwnPropertySymbols,de=Object.prototype.hasOwnProperty,tt=Object.prototype.propertyIsEnumerable,ve=(he,Ct,Pt)=>Ct in he?Qe(he,Ct,{enumerable:!0,configurable:!0,writable:!0,value:Pt}):he[Ct]=Pt,Lt=(he,Ct)=>{for(var Pt in Ct||(Ct={}))de.call(Ct,Pt)&&ve(he,Pt,Ct[Pt]);if(Ae)for(var Pt of Ae(Ct))tt.call(Ct,Pt)&&ve(he,Pt,Ct[Pt]);return he},at=(he,Ct,Pt)=>new Promise((Kt,Ce)=>{var ot=ct=>{try{Wt(Pt.next(ct))}catch($t){Ce($t)}},lt=ct=>{try{Wt(Pt.throw(ct))}catch($t){Ce($t)}},Wt=ct=>ct.done?Kt(ct.value):Promise.resolve(ct.value).then(ot,lt);Wt((Pt=Pt.apply(he,Ct)).next())});const Ve="\u3000\u3000";function Ne(he){var Ct=["Bytes","KB","MB","GB","TB"];if(he==0)return"0 Byte";var Pt=parseInt(""+Math.floor(Math.log(he)/Math.log(1024)),10);return(he/Math.pow(1024,Pt)).toFixed(1)+" "+Ct[Pt]}var Ze=({value:he=[],action:Ct,onChange:Pt,className:Kt,maxSize:Ce=150,title:ot="\u6587\u4EF6\u4E0A\u4F20",accept:lt=null})=>{const Wt={multiple:!1,fileList:he,accept:lt,withCredentials:!0,beforeUpload:$t=>$t.size/1024/1024<Ce?!0:(message.error(`\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${Ce}MB),\u5EFA\u8BAE\u4E0A\u4F20\u5230\u767E\u5EA6\u4E91\u7B49\u5176\u5B83\u5171\u4EAB\u5DE5\u5177\u91CC\uFF0C\u7136\u540E\u518Dtxt\u6587\u6863\u91CC\u7ED9\u51FA\u94FE\u63A5\u4EE5\u53CA\u5171\u4EAB\u5BC6\u7801\u5E76\u4E0A\u4F20`),Promise.reject()),action:`${ENV.API_SERVER}/api/attachments.json`,onChange($t){var vt,gn,Tt,ie;let ne=[...$t.fileList];if(ne=ne.map(te=>(te.name.indexOf(Ve)===-1&&(te.name=`${te.name}${Ve}${Ne(te.size)}`),Lt({},te))),$t.file.status==="done"&&((gn=(vt=$t.file)==null?void 0:vt.response)==null?void 0:gn.status)===-1){message.error((ie=(Tt=$t.file)==null?void 0:Tt.response)==null?void 0:ie.message),Pt([]);return}Pt(ne)},onRemove:$t=>at(void 0,null,function*(){const vt=$t.size/1024/1024;return $t.status==="uploading"?!0:vt<Ce&&($t.response?$t.response.id:$t.uid)?yield removeAttachment($t.response?$t.response.id:$t.id):!0})};function ct($t){$t.preventDefault(),$t.stopPropagation()}return React.createElement("div",{className:`single-upload ${Kt||""}`},React.createElement(Upload,Lt({},Wt),React.createElement(Button,{type:"primary",title:he.length>0?"\u6BCF\u6B21\u53EA\u80FD\u4E0A\u4F20\u4E00\u4E2A\u8D44\u6E90\uFF0C \u5220\u9664\u4E0B\u9762\u8D44\u6E90\u53EF\u91CD\u65B0\u4E0A\u4F20 ":"",disabled:he.length>0,ghost:!0},ot),React.createElement("span",{onClick:ct,style:{marginLeft:10}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",Ce,"M)"," ")))},pt=z(61481),mt=z(89392),Xt=Object.defineProperty,He=Object.getOwnPropertySymbols,Ke=Object.prototype.hasOwnProperty,ut=Object.prototype.propertyIsEnumerable,ft=(he,Ct,Pt)=>Ct in he?Xt(he,Ct,{enumerable:!0,configurable:!0,writable:!0,value:Pt}):he[Ct]=Pt,jt=(he,Ct)=>{for(var Pt in Ct||(Ct={}))Ke.call(Ct,Pt)&&ft(he,Pt,Ct[Pt]);if(He)for(var Pt of He(Ct))ut.call(Ct,Pt)&&ft(he,Pt,Ct[Pt]);return he};const Ot=he=>React.createElement("svg",jt({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},he),React.createElement("title",null,"\u5F62\u72B6"),React.createElement("path",{d:"M10.354 3.5h-2.77v8.167H6.416V3.5H3.646L7 0l3.354 3.5ZM14 7h-1.167v5.833H1.167V7H0v7h14V7Z",fill:"#3061D0",fillRule:"nonzero"}));var yt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=",Et=Object.defineProperty,pe=Object.getOwnPropertySymbols,Je=Object.prototype.hasOwnProperty,Xe=Object.prototype.propertyIsEnumerable,ue=(he,Ct,Pt)=>Ct in he?Et(he,Ct,{enumerable:!0,configurable:!0,writable:!0,value:Pt}):he[Ct]=Pt,Nt=(he,Ct)=>{for(var Pt in Ct||(Ct={}))Je.call(Ct,Pt)&&ue(he,Pt,Ct[Pt]);if(pe)for(var Pt of pe(Ct))Xe.call(Ct,Pt)&&ue(he,Pt,Ct[Pt]);return he},et=(he,Ct,Pt)=>new Promise((Kt,Ce)=>{var ot=ct=>{try{Wt(Pt.next(ct))}catch($t){Ce($t)}},lt=ct=>{try{Wt(Pt.throw(ct))}catch($t){Ce($t)}},Wt=ct=>ct.done?Kt(ct.value):Promise.resolve(ct.value).then(ot,lt);Wt((Pt=Pt.apply(he,Ct)).next())});const{Dragger:wt}=Pe.default;function ln(he){let Ct=[];return he&&he.length>0&&(Ct=he.map(Pt=>({uid:Pt.id,id:Pt.id,name:Pt.title+Ve+Pt.filesize,url:Pt.url,filesize:Pt.filesize,status:"done",response:{id:Pt.id}}))),Ct}var ke=({value:he,onChange:Ct,action:Pt,data:Kt,className:Ce,maxSize:ot=150,title:lt="\u4E0A\u4F20\u9644\u4EF6",showRemoveModal:Wt=!1,accept:ct="",additionalText:$t,isDragger:vt,number:gn=1e3,aloneClear:Tt=!1,realTimeRemove:ie=!0,uploadText:ne,setFileProgress:te,showFileProgress:oe})=>{const[se,re]=(0,b.useState)(!1);let[le,me]=(0,b.useState)(he||[]),[Dt,Re]=(0,b.useState)(1);(0,b.useEffect)(()=>{he&&(Dt===1&&me([...he]),Re(2),gn===(he==null?void 0:he.length)&&re(!0))},[he]);const Fe=()=>{setTimeout(()=>{le.pop(),me([...le])},500)};oe&&te(le.some(st=>st.status==="uploading"));const qe={multiple:!0,disabled:se,accept:ct,withCredentials:!0,fileList:le,beforeUpload:(st,we)=>{const Be=st.size/1024/1024;return le.concat(we).length>gn?(le.pop(),me([...le]),fe.ZP.error(`\u6700\u591A\u53EA\u80FD\u4E0A\u4F20${gn}\u4E2A\u6587\u4EF6`),Tt?Promise.reject():(Fe(),!1)):Be<ot?!0:(fe.ZP.error(`\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${ot}MB).`),Tt?Promise.reject():(Fe(),!1))},data:Kt,action:Pt||`${ge.Z.API_SERVER}/api/attachments.json`,onChange(st){var we,Be,It,Mt;if(st.file.status==="removed"?le=st.fileList:le=(0,mt.uniqBy)([...st.fileList,...le],"uid"),st.file.status==="done"&&((Be=(we=st.file)==null?void 0:we.response)==null?void 0:Be.status)===-1){fe.ZP.error((Mt=(It=st.file)==null?void 0:It.response)==null?void 0:Mt.message);return}le.length>=gn?re(!0):re(!1),me([...le]),le=le.map(kt=>{var Yt,At;return(Yt=kt==null?void 0:kt.response)!=null&&Yt.id&&(kt.url=(At=kt==null?void 0:kt.response)==null?void 0:At.url),kt.name.indexOf(Ve)===-1&&(kt.name=`${kt.name}${Ve}${Ne(kt.size)}`),Nt({},kt)}),console.log("info:",st,le),Ct(le)},onRemove:st=>et(void 0,null,function*(){if(!ie)return!0;const we=()=>et(void 0,null,function*(){if(st.response?st.response.id:st.id){let It=yield(0,Ee.JZ)(st.response?st.response.id:st.uid);return Promise.resolve(It)}else return!0});return Wt?new Promise((Be,It)=>{rt.default.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:b.createElement("div",{className:"tc font16"},"\u662F\u5426\u786E\u8BA4\u5220\u9664?"),onOk:()=>et(void 0,null,function*(){const Mt=yield we();fe.ZP.success("\u5220\u9664\u6210\u529F"),Be(!0)}),onCancel:()=>Be(!1)})}):yield we()})};function nt(st){st.preventDefault(),st.stopPropagation()}return b.createElement("div",{className:`multi-upload ${Ce||""}`},vt&&b.createElement(wt,Nt({},qe),b.createElement("p",{className:"ant-upload-drag-icon"},b.createElement(pt.Z,null)),b.createElement("p",{className:"ant-upload-text"},"\u70B9\u51FB\u4E0A\u4F20\u56FE\u6807\uFF0C\u9009\u62E9\u8981\u4E0A\u4F20\u7684\u6587\u4EF6\u6216\u5C06\u6587\u4EF6\u62D6\u62FD\u5230\u6B64",b.createElement("br",null),"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927\u9650\u5236\u4E3A",ot,"MB)"," "),$t),!vt&&b.createElement(Pe.default,Nt({},qe),b.createElement(xe.ZP,{disabled:se,className:"upload_button"},b.createElement("img",{className:"aBtn_img",src:yt}),lt),b.createElement("span",{onClick:nt,className:"upload_text"},ne||`(\u5355\u4E2A\u6587\u4EF6\u6700\u5927${ot}MB)`)))}},71347:function(Kn,cn,z){"use strict";var b=z(59301),Pe=z(93314),fe=z(7939),rt=Object.defineProperty,xe=Object.defineProperties,ge=Object.getOwnPropertyDescriptors,Ee=Object.getOwnPropertySymbols,Qe=Object.prototype.hasOwnProperty,Ae=Object.prototype.propertyIsEnumerable,de=(at,Ve,Ne)=>Ve in at?rt(at,Ve,{enumerable:!0,configurable:!0,writable:!0,value:Ne}):at[Ve]=Ne,tt=(at,Ve)=>{for(var Ne in Ve||(Ve={}))Qe.call(Ve,Ne)&&de(at,Ne,Ve[Ne]);if(Ee)for(var Ne of Ee(Ve))Ae.call(Ve,Ne)&&de(at,Ne,Ve[Ne]);return at},ve=(at,Ve)=>xe(at,ge(Ve));const Lt=({img:at,buttonProps:Ve={},styles:Ne={},customText:Ze,ButtonText:pt,ButtonClick:mt,Buttonclass:Xt,ButtonTwo:He,imgStyles:Ke,loading:ut=!1,className:ft=""})=>b.createElement("section",{className:`tc animated fadeIn ${ft}`,style:tt({color:"#999",margin:"100px auto",visibility:ut?"hidden":"visible"},Ne)},b.createElement("img",{src:at||Pe,style:ve(tt({},Ke),{pointerEvents:"none",userSelect:"none"})}),b.createElement("p",{className:"mt20 font14"},Ze||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),pt&&b.createElement(fe.ZP,tt({className:Xt,onClick:mt},Ve),pt),He&&He);cn.Z=Lt},98893:function(Kn,cn,z){"use strict";z.d(cn,{Z:function(){return Xt}});var b=z(59301),Pe={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",showClose:"showClose___edZQA",embed:"embed___hvpEJ"},fe=z(7939),rt=z(70557),xe=z(94871),ge=z(25399),Ee=z(68911),Qe=z(58870),Ae=z(71347),de=z(35783),tt=z(25341),ve=z(59301),Lt=Object.defineProperty,at=Object.getOwnPropertySymbols,Ve=Object.prototype.hasOwnProperty,Ne=Object.prototype.propertyIsEnumerable,Ze=(He,Ke,ut)=>Ke in He?Lt(He,Ke,{enumerable:!0,configurable:!0,writable:!0,value:ut}):He[Ke]=ut,pt=(He,Ke)=>{for(var ut in Ke||(Ke={}))Ve.call(Ke,ut)&&Ze(He,ut,Ke[ut]);if(at)for(var ut of at(Ke))Ne.call(Ke,ut)&&Ze(He,ut,Ke[ut]);return He},mt=(He,Ke,ut)=>new Promise((ft,jt)=>{var Ot=pe=>{try{Et(ut.next(pe))}catch(Je){jt(Je)}},yt=pe=>{try{Et(ut.throw(pe))}catch(Je){jt(Je)}},Et=pe=>pe.done?ft(pe.value):Promise.resolve(pe.value).then(Ot,yt);Et((ut=ut.apply(He,Ke)).next())}),Xt=({editOffice:He="view",data:Ke,issaver:ut,onSaver:ft,theme:jt,type:Ot,filename:yt,monacoEditor:Et,className:pe,style:Je,close:Xe,onClose:ue,hasMask:Nt,disabledDownload:et,onImgDimensions:wt,showNodata:ln,recordInfo:ke})=>{const[he,Ct]=(0,b.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[Pt,Kt]=(0,b.useState)(""),[Ce,ot]=(0,b.useState)(),lt=window.ENV==="build"?"/react/build":"",Wt=location.host.startsWith("localhost")?de.Z.PROXY_SERVER:de.Z.API_SERVER,$t=10*(1024*1024),vt=(0,b.useRef)();Ke!=null&&Ke.startsWith("/api")&&Ot!=="txt"&&(Ke=de.Z.API_SERVER+Ke);const gn=se=>se.substring(se.lastIndexOf("/")+1).split(".").pop();yt&&Et&&(Et.filename=yt),(0,b.useEffect)(()=>{var se,re;const le=(re=(se=document.cookie)==null?void 0:se.replace(/\s/g,""))==null?void 0:re.split(";");le==null||le.map(me=>{let Dt=me.split("=");Dt[0]==="_educoder_session"&&Kt(Dt[1])})},[]),(0,b.useEffect)(()=>{Ot==="office"&&(Ke.indexOf("bigfilescdn.")>-1||Ke.indexOf("bigfiles1")>-1?ot({url:Ke,fileType:gn(Ke),model:Ke.indexOf("model=edit")?"edit":"view"}):Ke.indexOf("coze")>-1?ot({url:Ke,fileType:"doc",model:"view"}):ie())},[Ot,Ke]);function Tt(se){return mt(this,null,function*(){se.data.type==="pdfdata"&&(ft(se.data.data),window.removeEventListener("message",Tt,!1)),console.log("mess---:",se.data)})}const ie=()=>mt(void 0,null,function*(){console.log("data:",Ke);let se=Ke;Ke.startsWith("http")||(se=location.origin+se);let re=new URL(se).pathname.split("/").pop();const le=yield(0,Qe.gJ)({attachment_id:re});le.url=Wt+le.url,ot(le)}),ne=()=>{if(Ke.startsWith("http")||Ke.startsWith("blob:")){te();return}(0,Ee.Sv)(yt||"educoder",Ke,yt)},te=()=>{ke&&(0,tt.fc)({id:ke==null?void 0:ke.id,watch_type:1,course_id:ke==null?void 0:ke.course_id}),(0,Ee.Nd)(yt||"educoder",decodeURIComponent(Ke))};(0,b.useEffect)(()=>(window.addEventListener("message",oe),()=>{window.removeEventListener("message",oe)}),[]);const oe=se=>{var re;((re=se==null?void 0:se.data)==null?void 0:re.type)==="closePop"&&ue()};return ve.createElement("div",{style:pt({},Je||{}),className:`${Nt&&Pe.bgBlack} ${Ot?Pe.wrp:"hide"}`},!!Ot&&Xe&&ve.createElement("div",{id:"closePop",className:Pe.close,ref:vt},!!wt&&ve.createElement(ge.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>vt.current},ve.createElement("span",{onClick:()=>{ue(),wt()}},ve.createElement("i",{className:"icon-yulanpizhu"}))),!et&&window.parent===window&&ve.createElement(ge.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>vt.current},ve.createElement("span",{onClick:te},ve.createElement("i",{className:"icon-quxiaozhiding"}))),ut&&ve.createElement(ge.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>vt.current},ve.createElement("span",{className:"",onClick:()=>{const se=document.getElementById("pdfiframe");window.addEventListener("message",Tt,!1),setTimeout(()=>{se.contentWindow.postMessage("getData","*")},300)}},ve.createElement("i",{className:"icon-baocun"}))),ve.createElement(ge.Z,{title:"\u5173\u95ED",getPopupContainer:()=>vt.current},ve.createElement("span",{className:"",onClick:()=>{ue()}},ve.createElement("i",{className:"icon-guanbi1"})))),ve.createElement("div",{className:`${Pe[pe]} ${pe} ${Pe.monaco} ${Ot==="txt"?"show":"hide"}`},Ot==="txt"&&ve.createElement(ve.Fragment,null,ve.createElement(xe.ZP,pt({},Et)))),Ot==="audio"&&ve.createElement("audio",{src:`${(Ke==null?void 0:Ke.indexOf("http://"))>-1||(Ke==null?void 0:Ke.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${Ke}`,autoPlay:!0}),Ot==="video"&&ve.createElement(ve.Fragment,null,(Ke==null?void 0:Ke.indexOf("http"))>-1?ve.createElement("video",{controls:!0,src:`${Ke}`,autoPlay:!0}):ve.createElement("video",{controls:!0,src:`data:video/mp4;base64,${Ke}`,autoPlay:!0})),Ot==="office"&&Ce&&ve.createElement("iframe",{src:`${lt}/office.html?key=${Ce.key}&url=${btoa(Ce.url)}&callbackUrl=${Wt+(Ce.callbackUrl||"")}&fileType=${Ce.fileType}&title=${Ce.title||""}&model=${He}&officeServer=${de.Z.ONLYOFFICE}&disabledDownload=${!!et}`}),Ot==="html"&&ve.createElement("iframe",{src:Ke+"&disposition=inline"}),Ot==="pdf"&&ve.createElement("iframe",{id:"pdfiframe",src:`${lt}/js/pdf/index.html?filename=${yt||"educoder.pdf"}&url=${encodeURIComponent(Ke)}&disabledDownload=${!!et}&model=${He}`}),Ot==="image"&&ve.createElement("img",{src:`${(Ke==null?void 0:Ke.indexOf("http://"))>-1||(Ke==null?void 0:Ke.indexOf("https://"))>-1?"":"data:image/png;base64,"}${Ke}`}),(Ot==="other"||Ot==="download")&&ve.createElement(ve.Fragment,null,ln?ve.createElement(Ae.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:ve.createElement(fe.ZP,{icon:ve.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:ne,disabled:et},"\u4E0B\u8F7D")}):ve.createElement(fe.ZP,{type:"primary",size:"middle",onClick:ne,disabled:et},ve.createElement(rt.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")),Ot==="flowChart"&&ve.createElement("div",{className:"embed"},ve.createElement("iframe",{src:`/drawio/src/main/webapp/viewer.html?id=${Ke||""}&gapi=0&od=0&db=0&gh=0&gl=0`,width:"100%",height:"100%",frameBorder:"0"})))}},56375:function(Kn,cn,z){"use strict";z.d(cn,{z:function(){return Et},Z:function(){return pe}});var b=z(59301),Pe=z(64310),fe=z(74410),rt=z(64018),xe=z(16471),ge=z(35783),Ee=z(68911),Qe=z(15342),Ae=z(44104),de=z(7939),tt=z(1012),ve=z(98893),Lt=z(59301),Ve=({html:Je})=>{const Xe=(0,b.useRef)(null),ue=(0,b.useRef)(null),Nt=`.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 et=Xe.current.attachShadow({mode:"open"});ue.current=document.createElement("div"),ue.current.className="markdown-body",ue.current.innerHTML=Je,et.appendChild(ue.current);const wt=document.createElement("style");return wt.textContent=Nt,et.appendChild(wt),()=>{et.innerHTML=""}},[]),(0,b.useEffect)(()=>{ue.current&&(ue.current.innerHTML=Je)},[Je]),Lt.createElement("div",{ref:Xe})};function Ne(Je){const Xe=["onabort","onanimationend","onanimationiteration","onanimationstart","onauxclick","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextmenu","oncopy","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitionend","onvolumechange","onwaiting","onwheel"],ue=new RegExp(`\\b(${Xe.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi"),Nt=/<meta\s+http-equiv\s*=\s*["']?refresh["']?[^>]*>/gi;return Je.replace(ue,"").replace(Nt,"").trim()}var Ze={mdBody:"mdBody___raKXb",button:"button___Ch5Pc",previewFlowChart:"previewFlowChart___vY1dq"},pt=Object.defineProperty,mt=Object.getOwnPropertySymbols,Xt=Object.prototype.hasOwnProperty,He=Object.prototype.propertyIsEnumerable,Ke=(Je,Xe,ue)=>Xe in Je?pt(Je,Xe,{enumerable:!0,configurable:!0,writable:!0,value:ue}):Je[Xe]=ue,ut=(Je,Xe)=>{for(var ue in Xe||(Xe={}))Xt.call(Xe,ue)&&Ke(Je,ue,Xe[ue]);if(mt)for(var ue of mt(Xe))He.call(Xe,ue)&&Ke(Je,ue,Xe[ue]);return Je};const ft="@\u2581\u2581@",jt="@\u2581@",Ot=/<pre[^>]*>/g;function yt(Je){let Xe=document.createElement("div");return Xe.innerHTML=Je,Xe.childNodes.length===0?"":Xe.childNodes[0].nodeValue}const Et=(Je,Xe)=>{Je=Je||"";const ue=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Nt=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,et=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,wt=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return Xe?Je.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(ue,(ln,ke,he,Ct,Pt,Kt,Ce)=>{const ot=ke||Ct||Kt,lt=he||Pt||Ce||"?";return ge.Z.API_SERVER+"/api/attachments/"+ot+lt+"&t="+(0,Ee.Jn)(ot,Date.now())+(ln.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(Je=Je.replace(wt,(ln,ke,he,Ct,Pt,Kt,Ce)=>{const ot=ke||Ct||Kt,lt=he||Pt||Ce||"?";return ge.Z.API_SERVER+"/attachments/download/"+ot+lt+"&t="+(0,Ee.Jn)(ot,Date.now())+(ln.indexOf(")")>-1?")":"&")}).replace(ue,(ln,ke,he,Ct,Pt,Kt,Ce)=>{const ot=ke||Ct||Kt,lt=he||Pt||Ce||"?";return ge.Z.API_SERVER+"/api/attachments/"+ot+lt+"&t="+(0,Ee.Jn)(ot,Date.now())+(ln.indexOf(")")>-1?")":"&")}).replace(Nt,(ln,ke,he,Ct,Pt)=>{const Kt=ke||Ct,Ce=he||Pt||"";return'"'+ge.Z.API_SERVER+"/api/attachments/"+Kt+Ce+Kt+Ce+"&t="+(0,Ee.Jn)(Kt,Date.now())}).replace(et,(ln,ke,he,Ct,Pt)=>{const Kt=ke||Ct,Ce=he||Pt||"";return"("+ge.Z.API_SERVER+"/files/uploads/"+Kt+Ce+Kt+Ce+"&t="+(0,Ee.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,`
|
|
|
`),Je)};var pe=({value:Je="",edit:Xe=!1,className:ue,showTextOnly:Nt,showLines:et,style:wt={},stylesPrev:ln={},highlightKeywords:ke,showProgramFill:he,isProgramFill:Ct,disabledFill:Pt=!1,programFillValue:Kt,openEditor:Ce=()=>{},onFillChange:ot=ct=>{},onFillBlur:lt=()=>{},onFillFocus:Wt=()=>{}})=>{let ct=Ne(String(Je||""));const $t=(0,b.useRef)(),vt=(0,b.useRef)(),[gn,Tt]=(0,b.useState)(""),[ie,ne]=(0,b.useState)("office"),[te,oe]=(0,b.useState)([]),se=(0,b.useRef)("a"+(0,tt.Z)()),re={},le=At=>/<style[\s\S]*?>/i.test(At||""),me=(At,vn,Gt)=>{const _e=document.createElement(At===jt?"input":"textarea");_e.style.width="100%",_e.style.height=At===jt?"40px":"151px",_e.rows=5,_e.spellcheck=!1,_e.name="edu-program-fill",_e.placeholder="\u8BF7\u8F93\u5165",_e.dataset.id=vn;const Bt=Object.keys(re).length;return re[Bt]=_e,`<span class="edu-program-fill-wrap ${At===jt?"":"show"}" style="width:${At===jt?"600px":"100%"}" title=${Gt||""}><span>${_e.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function Dt(At){return At=At.replace(/!\[.*?\]\(.*?\)/g,""),At=At.replace(/\[.*?\]\(.*?\)/g,""),At=At.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),At=At.replace(/<embed.*?>/g,""),At=At.replace(/<img.*?>/g,""),At=At.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),At=At.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),At=At.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),At=At.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),At}const Re=At=>!Nt&&le(ct)?At:At.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(vn,Gt){let _e=Gt.replace(/(\n|\r)/g,"").split("}"),Bt=[];return _e.map(Ut=>{Ut!=""&&Bt.push(`.${se.current} ${Ut}`)}),`<style>${Bt.join("}")}</style>`}),Fe=(0,b.useMemo)(()=>{(0,fe.Iy)();try{const _e=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,Bt=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Ut=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,on=/\(\/attachments\/download\//g;ct=ct.replace(on,"("+ge.Z.API_SERVER+"/attachments/download/").replace(_e,"("+ge.Z.API_SERVER+"/api/attachments/").replace(Bt,'"'+ge.Z.API_SERVER+"/api/attachments/").replace(Ut,'"'+ge.Z.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
|
|
|
`),$t.current.style.display="none"}catch(_e){}if(he){let _e=-1;return ct=ct.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(Bt,Ut,on){var Le;return++_e,me(Bt,_e,(Le=Kt==null?void 0:Kt[_e])==null?void 0:Le.value.replaceAll("<","<").replaceAll(">",">"))}),`<pre style="background:#fff;padding:4px">${Re(ct||"")}</pre>`}let At=Re(ct);At=(0,fe.ZP)(At);const vn=(0,fe.ez)();ct.match(/\[TOC\]/)&&(At=At.replace("<p>[TOC]</p>",(0,fe.Qv)()),(0,fe.Iy)()),At=At.replace(/(__special_katext_id_\d+__)/g,(_e,Bt)=>{const{type:Ut,expression:on}=vn[Bt];return(0,Qe.renderToString)(yt(on)||"",{displayMode:Ut==="block",throwOnError:!1,output:"html"})}),At=At.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,fe.AL)();const Gt=document.createElement("div");if(Gt.innerHTML=At,Nt)return Gt.innerText;if(ke){const _e=ke.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return we(Gt,_e),Gt.innerHTML}return setTimeout(()=>Mt(),500),Gt.innerHTML},[ct,ke]);(0,b.useEffect)(()=>{Be.current&&Be.current.querySelectorAll(["input","textarea"]).forEach(vn=>{vn.oninput=qe,vn.onblur=nt,vn.onfocus=st})},[te]),(0,b.useEffect)(()=>{var At,vn,Gt,_e,Bt;if(Kt!=null&&Kt.length)try{const Ut=Be.current.querySelectorAll(".edu-program-fill-score"),on=Be.current.querySelectorAll('[name="edu-program-fill"]');for(const[Le,xt]of on.entries())xt.value=((At=Kt==null?void 0:Kt[Le])==null?void 0:At.value)||"",((vn=Kt==null?void 0:Kt[Le])==null?void 0:vn.type)==="warning"?xt.className="program-fill-warning":((Gt=Kt==null?void 0:Kt[Le])==null?void 0:Gt.type)==="success"?xt.className="program-fill-success":xt.className="";for(const[Le,xt]of Ut.entries())xt.innerHTML=(_e=Kt==null?void 0:Kt[Le])!=null&&_e.score?`${(Bt=Kt==null?void 0:Kt[Le])==null?void 0:Bt.score}\u5206`:"";oe(Kt)}catch(Ut){console.log(Ut,"error")}},[Kt]);const qe=At=>{te[At.target.dataset.id]=te[At.target.dataset.id]||{},te[At.target.dataset.id].value=At.target.value,oe([...te]),ot(te,At.target.dataset.id)},nt=At=>{te[At.target.dataset.id]=te[At.target.dataset.id]||{},te[At.target.dataset.id].value=At.target.value,oe([...te]),lt(te,At.target.dataset.id)},st=At=>{te[At.target.dataset.id]=te[At.target.dataset.id]||{},te[At.target.dataset.id].value=At.target.value,oe([...te]),Wt(te,At.target.dataset.id)};function we(At,vn){return At.childNodes.forEach(Gt=>{var _e;if(Gt.childNodes.length>0)we(Gt,vn);else if(Gt.nodeName!=="IMG")if(Gt.innerHTML)Gt.innerHTML=(_e=Gt.innerHTML)==null?void 0:_e.replace(new RegExp(vn,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const Bt=document.createElement("span");Bt.innerHTML=Gt.textContent.replace(new RegExp(vn,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),Gt.replaceWith(Bt)}})}const Be=(0,b.useRef)();fe.jb.WebkitLineClamp=et,et&&(wt=ut(ut({},wt),fe.jb));function It(At){let vn=At.target;if(vn.tagName.toUpperCase()==="A"){let Gt=vn.getAttribute("href");if(Gt.indexOf("office")>-1)At.preventDefault(),Tt(Gt),ne("office");else if(Gt.indexOf("application/pdf")>-1)At.preventDefault(),Tt(Gt),ne("pdf");else if(Gt.indexOf("text/html")>-1)At.preventDefault(),Tt(Gt),ne("html");else if(Gt.startsWith("#")){At.preventDefault();let _e=document.getElementById(Gt.replace("#",""));_e&&_e.scrollIntoView(!0)}}}const Mt=()=>{var At;const vn=(At=Be.current)==null?void 0:At.querySelectorAll("video");vn==null||vn.forEach(Gt=>{if(Gt.oncontextmenu=()=>!1,Gt.src.indexOf(".m3u8")>-1&&!Gt.canPlayType("application/vnd.apple.mpegurl")){if(xe.ZP.isSupported()){var _e=new xe.ZP;_e.loadSource(Gt.src),_e.attachMedia(Gt)}}})};(0,b.useEffect)(()=>{if(Be.current&&Fe&&Fe.match(Ot)&&window.PR.prettyPrint(),Be.current)return Be.current.addEventListener("click",It),()=>{var At;(At=Be.current)==null||At.removeEventListener("click",It),(0,fe.AL)(),(0,fe.Iy)()}},[Fe,Be.current,It]);const kt=At=>{At.target.nodeName==="IMG"&&At.target.className.indexOf("draw-flowchart")>-1?($t.current.style.zIndex=1,$t.current.style.display="flex",$t.current.style.width=At.target.clientWidth+"px",$t.current.style.height=At.target.clientHeight+"px",$t.current.style.top=At.target.offsetTop+"px",$t.current.style.left=At.target.offsetLeft+"px",At.target.id&&(vt.current=At.target.id)):$t.current.style.display="none"},Yt=()=>{$t.current.style.display="none"};return(0,b.useEffect)(()=>{var At;const vn=Gt=>{Gt.preventDefault(),Gt.clipboardData.setData("text",window.getSelection().toString())};return(At=Be.current)==null||At.addEventListener("copy",vn),()=>{var Gt;(Gt=Be.current)==null||Gt.removeEventListener("copy",vn)}},[Be.current]),b.createElement("div",{style:{position:"relative"},onMouseLeave:Yt},Nt&&b.createElement("div",{ref:Be,className:`${Ze.mdBody} `},Fe),!Nt&&!le(Fe)&&b.createElement("div",{ref:Be,style:ut({},wt),onMouseOver:kt,className:`${ue||""} ${Pt?"disabled-fill":""} markdown-body ${Ze.mdBody} ${se.current}`,dangerouslySetInnerHTML:{__html:Fe}}),!Nt&&le(Fe)&&b.createElement(Ve,{html:Fe}),b.createElement("div",{ref:$t,className:`${Ze.button} ${Xe?"":Ze.previewFlowChart}`},b.createElement(Ae.Z,null,b.createElement(de.ZP,{onClick:()=>{Xe?Ce(vt.current):(Tt(vt.current),ne("flowChart"))}},Xe?"\u7F16\u8F91":"\u9884\u89C8"))),b.createElement(ve.Z,{close:!0,data:gn,type:gn!=null&&gn.length?ie:"",style:ut({},ln),onClose:()=>Tt("")}))}},56383:function(Kn,cn,z){"use strict";z.d(cn,{h:function(){return He}});var b=z(59301),Pe=z(82326),fe=z(28284),rt=z(7939),xe=z(89780),ge=z.n(xe),Ee=z(3706),Qe=z(96772),Ae=Object.defineProperty,de=Object.defineProperties,tt=Object.getOwnPropertyDescriptors,ve=Object.getOwnPropertySymbols,Lt=Object.prototype.hasOwnProperty,at=Object.prototype.propertyIsEnumerable,Ve=(Ke,ut,ft)=>ut in Ke?Ae(Ke,ut,{enumerable:!0,configurable:!0,writable:!0,value:ft}):Ke[ut]=ft,Ne=(Ke,ut)=>{for(var ft in ut||(ut={}))Lt.call(ut,ft)&&Ve(Ke,ft,ut[ft]);if(ve)for(var ft of ve(ut))at.call(ut,ft)&&Ve(Ke,ft,ut[ft]);return Ke},Ze=(Ke,ut)=>de(Ke,tt(ut));const pt=Pe.default.Option,mt={labelCol:{span:4},wrapperCol:{span:20}},Xt={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"]};cn.Z=({callback:Ke,onCancel:ut})=>{const[ft,jt]=(0,b.useState)("python");function Ot(Et){jt(Xt[Et][1])}function yt(Et){Ke(Et)}return b.createElement(fe.default,Ze(Ne({},mt),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:yt,style:{width:500}}),b.createElement(fe.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},b.createElement(Pe.default,{getPopupContainer:Et=>Et.parentNode,onChange:Ot},Object.keys(Xt).map(Et=>b.createElement(pt,{key:Et,value:Et},Xt[Et][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(He,{mode:ft})),b.createElement("div",{className:"flex-container flex-end"},b.createElement(rt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),b.createElement(rt.ZP,{type:"ghost",onClick:ut},"\u53D6\u6D88")))};function He({value:Ke,onChange:ut,mode:ft,options:jt={}}){const Ot=(0,b.useRef)(),[yt,Et]=(0,b.useState)();return(0,b.useEffect)(()=>{if(yt){let pe=function(Je){const Xe=Je.getValue();ut&&ut(Xe)};return yt.on("change",pe),()=>{yt.off("change",pe)}}},[yt,ut]),(0,b.useEffect)(()=>{yt&&yt.setOption("mode",ft)},[yt,ft]),(0,b.useEffect)(()=>{yt&&(Ke!==yt.getValue()||Ke==="")&&setTimeout(()=>{yt.setValue(Ke||"")},300)},[yt,Ke]),(0,b.useEffect)(()=>{if(Ot.current&&!yt){const pe=ge().fromTextArea(Ot.current,Ne({mode:ft,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},jt));Et(pe)}},[Ot.current,yt]),b.createElement("div",{className:"my-codemirror-container"},b.createElement("textarea",{ref:Ot}))}},32862:function(Kn,cn,z){"use strict";z.d(cn,{Z:function(){return xn}});var b=z(59301),Pe=z(63823),fe=z(89780),rt=z.n(fe),xe=z(76374),ge=z(3706),Ee=z(6313),Qe=z(25717),Ae=z(99498),de=z(25419),tt=z(67549),ve=z(56375),Lt=({value:qt="",className:En,showTextOnly:Fn,showLines:Tn,style:_t={}})=>{const Cn=(0,b.useMemo)(()=>"",[qt]);return b.createElement(b.Fragment,null,b.createElement("div",{dangerouslySetInnerHTML:{__html:Cn}}))},at=Object.defineProperty,Ve=Object.defineProperties,Ne=Object.getOwnPropertyDescriptors,Ze=Object.getOwnPropertySymbols,pt=Object.prototype.hasOwnProperty,mt=Object.prototype.propertyIsEnumerable,Xt=(qt,En,Fn)=>En in qt?at(qt,En,{enumerable:!0,configurable:!0,writable:!0,value:Fn}):qt[En]=Fn,He=(qt,En)=>{for(var Fn in En||(En={}))pt.call(En,Fn)&&Xt(qt,Fn,En[Fn]);if(Ze)for(var Fn of Ze(En))mt.call(En,Fn)&&Xt(qt,Fn,En[Fn]);return qt},Ke=(qt,En)=>Ve(qt,Ne(En));let ut=[{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 ft({onActionCallback:qt,title:En,icon:Fn,actionName:Tn,className:_t="",children:Cn}){function Bn(){qt(Tn)}return b.createElement("a",{title:En,className:_t,onClick:Bn},b.createElement("i",{className:`${Fn}`}),Cn)}var jt=({watch:qt,showNullButton:En,showNullProgramButton:Fn,onActionCallback:Tn,fullScreen:_t,insertTemp:Cn,hidetoolBar:Bn,extraUse:Ln})=>{const Zn=[...ut,{title:`${qt?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${qt?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return b.createElement("ul",{className:"markdown-toolbar-container"},!Bn&&Zn.map((yr,ur)=>b.createElement("li",{key:ur},yr.actionName?b.createElement(ft,Ke(He({},yr),{onActionCallback:Tn})):b.createElement("span",{className:"v-line"}))),En?b.createElement("li",null,b.createElement(ft,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Tn},b.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,Fn?b.createElement(b.Fragment,null,b.createElement("li",null,b.createElement(ft,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Tn},b.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u5355\u884C\u586B\u7A7A\u9879"))),b.createElement("li",null,b.createElement(ft,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Tn},b.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u591A\u884C\u586B\u7A7A\u9879")))):null,Cn&&b.createElement("li",null,b.createElement(ft,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Cn}`,onActionCallback:Tn},b.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Ln&&b.createElement("li",null,Ln),b.createElement("li",{className:"btn-full-screen"},b.createElement(ft,{icon:`${_t?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:_t?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Tn})))},Ot=z(88969),yt=z(28284),Et=z(37568),pe=z(7939),Je=Object.defineProperty,Xe=Object.defineProperties,ue=Object.getOwnPropertyDescriptors,Nt=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,wt=Object.prototype.propertyIsEnumerable,ln=(qt,En,Fn)=>En in qt?Je(qt,En,{enumerable:!0,configurable:!0,writable:!0,value:Fn}):qt[En]=Fn,ke=(qt,En)=>{for(var Fn in En||(En={}))et.call(En,Fn)&&ln(qt,Fn,En[Fn]);if(Nt)for(var Fn of Nt(En))wt.call(En,Fn)&&ln(qt,Fn,En[Fn]);return qt},he=(qt,En)=>Xe(qt,ue(En));const Ct={labelCol:{span:4},wrapperCol:{span:20}};var Pt=({callback:qt,onCancel:En})=>{function Fn(Tn){qt(Tn)}return b.createElement(yt.default,he(ke({},Ct),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Fn,style:{width:500}}),b.createElement(yt.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},b.createElement(Et.default,null)),b.createElement(yt.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},b.createElement(Et.default,null)),b.createElement("div",{className:"flex-container flex-end"},b.createElement(pe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),b.createElement(pe.ZP,{type:"ghost",onClick:En},"\u53D6\u6D88")))},Kt=z(56383),Ce=z(79203),ot=z(62957),lt=z(77019),Wt=z(78265),ct=z(59301),$t=({callback:qt,onCancel:En})=>{const Fn=document.createElement("canvas"),Tn=Fn.getContext("2d");Fn.width=1e3,Fn.height=800,Tn.fillStyle="#ffffff",Tn.fillRect(0,0,Fn.width,Fn.height);const _t=Fn.toDataURL("image/png");return ct.createElement(ot.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},ct.createElement(lt.Z,{style:{height:"100vh"}},ct.createElement(Wt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:_t,visible:!0,title:String(Date.now())},onOk:Cn=>{qt({src:Cn.url})},onClose:En})))},vt=z(36207),gn=z(5269),Tt=z(6767),ie={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re",drawerWrap:"drawerWrap___MfDw8"},ne=z(59301),oe=(0,b.forwardRef)(({onCancel:qt,editImgId:En,callback:Fn},Tn)=>{let _t=(0,b.useRef)(),Cn=(0,b.useRef)(),Bn=(0,b.useRef)(),Ln=(0,b.useRef)(!1);const Zn=(0,b.useRef)(!1);console.log("ref:",Tn);const[yr,ur]=(0,b.useState)(0),[Jt,wn]=(0,b.useState)("100vh");return(0,b.useEffect)(()=>{ur(1)},[]),(0,b.useImperativeHandle)(Tn,()=>({setHeight:wn})),ne.createElement("div",{ref:Zn,className:"body-overflow-initial"},ne.createElement(vt.Z,{width:"100vw",height:Jt,footer:null,closable:!0,placement:"bottom",open:!!yr,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${ie.drawerWrap}`,onClose:()=>{window.saveDrawData(un=>{Fn({src:`/api/attachments/${un}`,id:un})})},title:ne.createElement(lt.Z,{align:"middle"},ne.createElement(gn.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),ne.createElement(gn.Z,{onClick:()=>{wn(Jt==="60px"?"100vh":"60px")}},ne.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),ne.createElement(gn.Z,{onClick:()=>{window.saveDrawData(un=>{if(un===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}}),Fn({src:`/api/attachments/${un}`,id:un,disabledClose:!0})})}},ne.createElement(pe.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},ne.createElement("iframe",{src:`/drawio/src/main/webapp/?id=${En||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:Cn})))}),se=z(35783),re=z(47889),le=z(4875);const me=re.ZP.Group,Dt={margin:"0 8px"};var Re=({callback:qt,onCancel:En})=>{function Fn(Tn){qt(Tn)}return b.createElement(yt.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Fn},b.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},b.createElement("span",{style:Dt},"\u5355\u5143\u683C\u6570\uFF1A"),b.createElement("span",{style:Dt},"\u884C\u6570"),b.createElement(yt.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},b.createElement(le.Z,null)),b.createElement("span",{style:Dt},"\u5217\u6570"),b.createElement(yt.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:Dt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),b.createElement(yt.default.Item,{name:"align"},b.createElement(me,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(pe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),b.createElement(pe.ZP,{type:"ghost",onClick:En},"\u53D6\u6D88")))},Fe=z(58755),qe=z(45936),nt=z.n(qe),we=(0,b.forwardRef)(({use3d:qt,width:En,height:Fn,callback:Tn,showSaveButton:_t},Cn)=>{const Bn=(0,b.useRef)(),Ln=(0,b.useRef)(),[Zn,yr]=(0,b.useState)(!1),ur=(0,b.useRef)({id:Bn,appName:"graphing",width:En||1e3,height:Fn||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)(()=>{Ln.current=new(nt())(ur.current,!0),window.onload=function(){Ln.current.inject("applet_container")}},[]);const Jt=()=>{var wn=window.ggbApplet.getPNGBase64(1,!0,72);return Tn&&Tn(wn),wn};return(0,b.useEffect)(()=>{ur.current.appName=Zn?"3D":"graphing",Ln.current.inject("applet_container")},[Zn]),(0,b.useEffect)(()=>{yr(qt)},[qt]),(0,b.useImperativeHandle)(Cn,()=>({getImgData:Jt})),b.createElement(b.Fragment,null,b.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Bn}),b.createElement(lt.Z,{align:"middle"},b.createElement(gn.Z,{flex:1},b.createElement(Fe.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Zn,onChange:wn=>yr(wn)})),b.createElement(gn.Z,null,b.createElement(pe.ZP,{size:"large",onClick:Jt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Be=z(9043);const It="link",Mt="upload-image",kt="add-flowchart",Yt="draw-image",At="add-flowchart",vn="code-block",Gt="add-table",_e="------------",Bt={default:_e,left:`:${_e}`,center:`:${_e}:`,right:`${_e}:`};var Ut=z(2408),on=z(68911);function Le(){}let xt=0;const zt=1e4,nn="\u2581",Sn="@\u2581\u2581@",zn="@\u2581@",rr=`
|
|
|
**\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`,pr=["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 kn(qt){return/^\d+$/.test(qt)?`${qt}px`:qt}const Ye=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Qt={[Ye+"-B"]:"bold",[Ye+"-I"]:"italic"},yn={[It]:"\u6DFB\u52A0\u94FE\u63A5",[vn]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Mt]:"\u6DFB\u52A0\u56FE\u7247",[Yt]:"\u6DFB\u52A0\u753B\u56FE",[kt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Gt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var xn=({defaultValue:qt="",onChange:En,width:Fn="100%",height:Tn=400,miniToolbar:_t=!1,isFocus:Cn=!1,watch:Bn,insertTemp:Ln,mode:Zn="markdown",id:yr="markdown-editor-id",showResizeBar:ur=!1,noStorage:Jt=!1,showNullButton:wn=!1,showNullProgramButton:un=!1,hidetoolBar:sn=!1,fullScreen:We=!1,onBlur:dt,onCMBeforeChange:ze,onFullScreen:gt,className:$e="",disablePaste:St=!1,disabled:Oe=!1,disabledFill:Ft=!1,placeholder:Zt="",values:De="",extraUse:Te,onAddBlank:Me})=>{const[je,it]=(0,b.useState)(null),[an,dn]=(0,b.useState)(qt),[hn,$n]=(0,b.useState)(Bn),[ar,Cr]=(0,b.useState)(We),[qn,Gn]=(0,b.useState)(""),[Jn,gr]=(0,b.useState)(0),[Ge,bt]=(0,b.useState)(Tn),[Vt,Ht]=(0,b.useState)(!1),[tn,An]=(0,b.useState)(0),[Vn,tr]=(0,b.useState)(0),Nn=(0,b.useRef)(),or=(0,b.useRef)(),cr=(0,b.useRef)(),nr=(0,b.useRef)(),hr=(0,b.useRef)(),lr=(0,b.useRef)(),Er=(0,Pe.useDispatch)();(0,b.useEffect)(()=>{const On=window.scrollY||window.pageYOffset;dn(De),je==null||je.setValue(De),window.scrollTo(0,On)},[De]),(0,b.useEffect)(()=>{gt==null||gt(ar)},[ar]),(0,b.useEffect)(()=>{if(Nn.current){let On=function(Xn,vr){var Ar;if(St){vr.preventDefault();return}const Fr=vr.clipboardData;if(Fr){const Rr=Fr.types.toString(),Ur=Fr.items;if(Rr==="Files"||Fr.types.indexOf("Files")>-1){if(vr.preventDefault(),Zn=="stex")return;try{let jr=Ur[1];((Ar=Ur[0])==null?void 0:Ar.kind)==="file"&&(jr=Ur[0]);const ro=jr.getAsFile(),Yr=ro.name.split(".").pop();(0,Ce.I)(ro,Xr=>{var eo,vo,Fo;Xr.id?((eo=ro==null?void 0:ro.type)==null?void 0:eo.indexOf("image"))>-1?Hn.replaceSelection(`<img width="100%" src="/api/attachments/${Xr.id}?type=${Xr.content_type})" alt="" />`):((vo=ro==null?void 0:ro.type)==null?void 0:vo.indexOf("video"))>-1?Hn.replaceSelection(`<video width="100%" controls src="/api/attachments/${Xr.id}"></video>`):((Fo=ro==null?void 0:ro.type)==null?void 0:Fo.indexOf("pdf"))>-1?Hn.replaceSelection(`<a href="/api/attachments/${Xr.id}?type=${ro.type}&disposition=inline" target="_blank">${ro.name}</a>`):pr.includes(Yr)?Hn.replaceSelection(`<a href="/api/attachments/${Xr.id}?type=office&disposition=inline" target="_blank">${ro.name}</a>`):Hn.replaceSelection(`[${ro.name}](/api/attachments/${Xr.id}?type=${Xr.content_type})`):(Xr==null?void 0:Xr.status)===401&&(document.location.href="/user/login")})}catch(jr){Tt.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Hn=rt().fromTextArea(Nn.current,{mode:Zn,lineNumbers:!_t,lineWrapping:!0,value:qt,autoCloseTags:!0,autoCloseBrackets:!0});return Hn.on("keyup",function(Xn,vr){vr.keyCode===8&&(Xn.getValue()==""?Hn.setOption("placeholder",Zt):Hn.setOption("placeholder",null))}),Hn.on("keydown",function(Xn,vr){if(vr.keyCode===8){var Ar=zr(Xn);Ar&&vr.preventDefault()}}),Cn&&Hn.focus(),Hn.on("paste",On),Oe&&Hn.on("beforeChange",function(Xn,vr){(vr.origin==="paste"||vr.origin==="+input")&&vr.cancel()}),it(Hn),()=>{Hn.off("paste",On)}}},[]);const Ir=(0,b.useCallback)(()=>{if(or.current)try{}catch(On){console.log(On,"---- to set md editor body height")}},[Ge,or,ar]);(0,b.useEffect)(()=>{function On(){let Hn=new xe.Z(Xn=>{for(let vr of Xn)(vr.target.offsetHeight>0||vr.target.offsetWidth>0)&&(Ir(),je.setSize("100%","100%"),je.refresh())});return Hn.observe(Nn.current.parentElement),Hn}if(je){const Hn=On();return()=>{var Xn,vr;(Xn=Nn.current)!=null&&Xn.parentElement&&Hn.unobserve((vr=Nn.current)==null?void 0:vr.parentElement)}}},[je,Ir]),(0,b.useEffect)(()=>{if(je){let On=[];for(const[Hn,Xn]of Object.entries(Qt)){let vr={[Hn]:()=>{Pr(Xn)}};On.push(vr),je.addKeyMap(vr)}return()=>{for(let Hn of On)je.removeKeyMap(Hn)}}},[je]),(0,b.useEffect)(()=>{We!==ar&&Cr(We)},[We]),(0,Ut.Z)(()=>{if(!Jt&&Jn>0){let On=new Date().getTime(),Hn=window.sessionStorage.getItem(yr);On>=Jn+zt&&(!Hn||Hn!==an)&&(window.sessionStorage.setItem(yr,an),Ht(!0))}},zt),(0,b.useEffect)(()=>{$n(Bn)},[je,Bn]),(0,b.useEffect)(()=>{je&&Cn&&je.focus()},[je,Cn]),(0,b.useEffect)(()=>{if(hn&&je){let On=function(Xn){let vr=Xn.target;if(nr.current){let Ar=vr.scrollTop/vr.scrollHeight;nr.current.scrollTop=nr.current.scrollHeight*Ar}};const Hn=je.getScrollerElement();return Hn.addEventListener("scroll",On),()=>{Hn.removeEventListener("scroll",On)}}},[je,hn]),(0,b.useEffect)(()=>{if(je&&ze){let On=function(Hn,Xn){ze(Hn,Xn)};return je.on("beforeChange",On),()=>{je.off("beforeChange",On)}}},[je,ze]),(0,b.useEffect)(()=>{if(je&&dt){let On=function(){dt(je.getValue())};return je.on("blur",On),()=>{je.off("blur",On)}}},[je,dt]);function zr(On,Hn){var Xn=On.getDoc(),vr=Xn.getCursor(),Ar=Xn.getLine(vr.line),Fr=Ar.charAt(vr.ch-1),Rr=Ar.lastIndexOf("@\u2581@",vr.ch),Ur=Ar.lastIndexOf("@\u2581\u2581@",vr.ch),jr=Rr>Ur?Rr:Ur,ro=Rr>Ur?3:4;if(Sn.indexOf(Fr)===-1)return null;if(console.log("change1:",Hn,On,Ar,vr,jr,Rr,Ur,Fr),jr>=0&&vr.ch-jr<5){var Yr=jr+ro;return Xn.replaceRange("",{line:vr.line,ch:jr},{line:vr.line,ch:Yr}),{line:vr.line,ch:Yr}}return null}(0,b.useEffect)(()=>{if(je){let On=function(Hn,Xn){const vr=Hn.getValue();dn(vr),gr(new Date().getTime()),Hn.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),En&&(un?En(vr,er(vr)):En(vr))};return je.on("change",On),()=>{je.off("change",On)}}},[je,En]),(0,b.useEffect)(()=>{if(je)if(qt==null)je.setValue(""),dn("");else{const On=window.scrollY||window.pageYOffset;qt!==je.getValue()&&(je.setValue(qt),dn(qt),je.setCursor(Oe?1:je.lineCount(),0),window.scrollTo(0,On))}},[je,qt]);const Pr=(0,b.useCallback)(On=>{const Hn=je.getCursor(),Xn=je.getSelection();let vr=Xn.split(`
|
|
|
`);switch(On){case"bold":return je.replaceSelection("**"+Xn+"**"),Xn===""&&je.setCursor(Hn.line,Hn.ch+2),je.focus();case"italic":return je.replaceSelection("*"+Xn+"*"),Xn===""&&je.setCursor(Hn.line,Hn.ch+1),je.focus();case"code":return je.replaceSelection("`"+Xn+"`"),Xn===""&&je.setCursor(Hn.line,Hn.ch+1),je.focus();case"inline-latex":return(0,on.Ye)(Er)?void 0:(Gn("inline-latex"),je.focus());case"latex":return je.replaceSelection("```latex\n"+Xn+"\n```"),je.setCursor(Hn.line+1,Xn.length+1),je.focus();case"line-break":return je.replaceSelection(`<br/>
|
|
|
`),je.focus();case"list-ul":return Xn===""?je.replaceSelection("- "+Xn):je.replaceSelection(vr.map(Ar=>Ar===""?"":`- ${Ar}`).join(`
|
|
|
`)),je.focus();case"list-ol":return Xn===""?je.replaceSelection("1. "+Xn):je.replaceSelection(vr.map((Ar,Fr)=>Ar===""?"":`${Fr+1}. ${Ar}`).join(`
|
|
|
`)),je.focus();case"add-null-ch":Me==null||Me();return;case"add-signal":return Xn===""&&je.setCursor(Hn.line,Hn.ch),je.replaceSelection(zn),je.focus();case"add-multiple":return Xn===""&&je.setCursor(Hn.line,Hn.ch),je.replaceSelection(Sn),je.focus();case"inster-template-1":return Xn===""&&je.setCursor(Hn.line,Hn.ch),je.replaceSelection(rr),je.focus();case"eraser":return je.setValue(""),je.focus();case"trigger-watch":return $n(!hn),je.focus();case"trigger-full-screen":return Cr(!ar),je.focus();case It:Gn(It);return;case vn:Gn(vn);return;case Mt:Gn(Mt);return;case Yt:Gn(Yt);return;case"maths-latex":if((0,on.Ye)(Er))return;Gn("maths-latex");return;case kt:hr.current="",sessionStorage.removeItem("file_id"),Gn(kt);return;case Gt:Gn(Gt);return;default:throw new Error}},[je,hn,ar]),Or=(0,b.useCallback)((On,Hn)=>{var Xn,vr,Ar,Fr,Rr,Ur;On!=null&&On.disabledClose||Gn("");const{src:jr,alt:ro,id:Yr}=On||{};switch(qn){case It:const{title:Yo,link:Bo}=On;return je.replaceSelection(`[${Yo}](${Bo})`),je.focus();case vn:const{language:Ko,content:Jr}=On;return je.replaceSelection(["```"+Ko,Jr,"```"].join(`
|
|
|
`)),je.focus();case"maths-latex":for(var Xr=atob(On),eo=new Uint8Array(Xr.length),vo=0;vo<Xr.length;vo++)eo[vo]=Xr.charCodeAt(vo);var Fo=new Blob([eo],{type:"image/png"});(0,Ce.I)(Fo,Ao=>{Ao.id?je.replaceSelection(``):(Ao==null?void 0:Ao.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":if((0,on.Ye)(Er))return;je.replaceSelection("`$$"+On+"$$`");break;case At:if(!Yr)return;je.getValue().indexOf(jr)===-1?je.replaceSelection(`<center><img id="${Yr}" width="80%" src="${jr}" class="draw-flowchart" alt="${ro||""}" /></center>`):document.getElementById(Yr).src=se.Z.API_SERVER+jr+"?t="+Date.now();break;case Mt:case Yt:const Qr=Hn,Vo=(Ar=(vr=(Xn=Qr==null?void 0:Qr.name)==null?void 0:Xn.split("."))==null?void 0:vr.pop)==null?void 0:Ar.call(vr);return((Fr=Qr==null?void 0:Qr.type)==null?void 0:Fr.indexOf("image"))>-1||!(Qr!=null&&Qr.type)?Qr!=null&&Qr.align||Qr!=null&&Qr.width?je.replaceSelection(`<p style="text-align:${Qr.align||"initial"}"><img width="${Qr.width?Qr.width+"%":"initial"}" src="${jr}" alt="${ro||""}" /></p>`):je.replaceSelection(`<img width="100%" src="${jr}" alt="${ro||""}" />`):((Rr=Qr==null?void 0:Qr.type)==null?void 0:Rr.indexOf("video"))>-1?je.replaceSelection(`<video width="100%" controls src="${jr}"></video>`):((Ur=Qr==null?void 0:Qr.type)==null?void 0:Ur.indexOf("pdf"))>-1?je.replaceSelection(`<a href="${jr}?type=${Qr.type}&disposition=inline" target="_blank">${Qr.name}</a>`):pr.includes(Vo)?je.replaceSelection(`<a href="${jr}?type=office&disposition=inline" target="_blank">${Qr.name}</a>`):je.replaceSelection(`[${Qr.name}](${jr})`),je.focus();case Gt:const{row:Wo,col:po,align:ko}=On;let Xo=`
|
|
|
`;for(let Ao=0;Ao<Wo;Ao++){let Zo=[],Ho=[];for(let ba=0;ba<po;ba++)Ao===1&&Ho.push(Bt[ko]),Zo.push(" ");Ao===1&&(Xo+=`| ${Ho.join(" | ")} |
|
|
|
`),Xo+=`| ${Zo.join(po===1?"":" | ")} |
|
|
|
`}return je.replaceSelection(Xo+`
|
|
|
`),je.focus();default:throw new Error}},[je,qn]),Sr=(0,b.useMemo)(()=>{switch(qn){case It:return b.createElement(Pt,{callback:Or,onCancel:Tr});case vn:return b.createElement(Kt.Z,{callback:Or,onCancel:Tr});case Mt:return b.createElement(Ce.Z,{callback:Or,onCancel:Tr});case kt:return b.createElement(oe,{editImgId:hr.current,callback:Or,onCancel:Tr});case Gt:return b.createElement(Re,{callback:Or,onCancel:Tr});case"maths-latex":return b.createElement(we,{showSaveButton:!0,callback:Or});case"inline-latex":return b.createElement(Be.Z,{showSaveButton:!0,callback:Or});default:return null}},[qn]);function Tr(){Gn("")}(0,b.useEffect)(()=>{if(cr.current){let On=function(Rr){Ar=!0,Fr=Rr.pageY},Hn=function(){Ar=!1},Xn=function(Rr){if(Ar){let Ur=Rr.pageY-Fr;Ur<0&&(Ur=0),Ur>300&&(Ur=300);let jr=Tn+Ur+"px";bt(jr)}},vr=cr.current,Ar=!1,Fr=0;return vr.addEventListener("mousedown",On),document.addEventListener("mousemove",Xn),document.addEventListener("mouseup",Hn),()=>{vr.removeEventListener("mousedown",On),document.removeEventListener("mousemove",Xn),document.removeEventListener("mouseup",Hn)}}},[je,cr]),(0,b.useEffect)(()=>{bt(Tn)},[Tn]);const br=kn(Fn),wr=kn(Ge),_n={width:br,height:wr},In=(0,b.useMemo)(()=>{if(Jn){let On=new Date(Jn),Hn=On.getHours(),Xn=On.getMinutes(),vr=On.getSeconds();return Hn=Hn<10?"0"+Hn:Hn,Xn=Xn<10?"0"+Xn:Xn,vr=vr<10?"0"+vr:vr,`${Hn}:${Xn}:${vr}`}return 0},[Jn]),er=On=>{const Hn=[];if(un){let Xn=-1;On=On.replace(/(@▁▁@|@▁@)/g,function(vr,Ar,Fr){Hn.push({multiLine:vr!==zn})})}return Hn};function Rn(){window.sessionStorage.removeItem(yr),Ht(!1),gr(0)}function bn(){Ht(!1),gr(0),je.setValue(window.sessionStorage.getItem(yr))}(0,b.useEffect)(()=>{yn[qn]&&qn!==Yt&&qn!==kt&&setTimeout(()=>{const On=document.getElementsByClassName("markdown-popup-form")[0],Hn=window.innerWidth/2-On.offsetWidth/2,Xn=window.innerHeight/2-On.offsetHeight/2;An(Hn),tr(Xn)},0)},[qn]);const ir=On=>{On.preventDefault();const Hn=On.clientX-tn,Xn=On.clientY-Vn;document.body.onmousemove=vr=>{let Ar=vr.clientX-Hn,Fr=vr.clientY-Xn;const Rr=document.getElementsByClassName("markdown-popup-form")[0],Ur=window.innerWidth-Rr.offsetWidth,jr=window.innerHeight-Rr.offsetHeight;Ar=Math.max(0,Math.min(Ar,Ur)),Fr=Math.max(0,Math.min(Fr,jr)),mr(vr.clientX,vr.clientY,Hn,Xn)&&(An(Ar),tr(Fr))},document.body.onmouseup=function(){document.body.onmousemove=null}},mr=(On,Hn,Xn,vr)=>{const Ar=document.body.clientHeight,Fr=document.body.clientWidth;return On<20&&Xn>On||On>Fr-20&&Xn<On||Hn<20&&vr>Hn||Hn>Ar-20&&vr<Hn?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return b.createElement(b.Fragment,null,b.createElement("div",{className:"markdown-editor-wrapper",ref:or},b.createElement("div",{className:`markdown-editor-container ${$e} ${hn?"on-preview":""} ${_t?"mini":""} ${ar?"full-screen":""}`,style:_n},b.createElement(jt,{insertTemp:Ln,watch:hn,fullScreen:ar,showNullButton:wn,showNullProgramButton:un,onActionCallback:Pr,hidetoolBar:sn,extraUse:Te}),b.createElement("div",{className:"markdown-editor-body"},b.createElement("div",{className:"codemirror-container"},b.createElement("textarea",{ref:Nn,placeholder:Zt})),hn?b.createElement("div",{ref:nr,className:"preview-container"},Zn==="stex"&&b.createElement(Lt,{value:an}),Zn!=="stex"&&b.createElement(ve.Z,{edit:!0,disabledFill:Ft,showProgramFill:un,value:an,openEditor:On=>{var Hn;hr.current=On,(Hn=lr.current)==null||Hn.setHeight("100vh"),setTimeout(()=>{Gn("add-flowchart")},150)}})):null))),ur?b.createElement("a",{ref:cr,className:"editor-resize"}):null,qn===Yt&&b.createElement($t,{callback:Or,onCancel:Tr}),qn===kt&&b.createElement(oe,{ref:lr,editImgId:hr.current,callback:Or,onCancel:Tr}),b.createElement(Ot.Z,null,yn[qn]&&qn!==Yt&&qn!==kt?b.createElement(ot.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:tn,top:Vn},title:b.createElement("div",{style:{cursor:"move"},onMouseDown:ir},yn[qn]),open:!0,onCancel:Tr,footer:null,destroyOnClose:!0,width:qn===kt?"1200px":null,height:qn===kt?"80vh":null,className:"markdown-popup-form"},Sr):null))}},79203:function(Kn,cn,z){"use strict";z.d(cn,{Z:function(){return ut},I:function(){return jt}});var b=z(28284),Pe=z(6767),fe=z(37568),rt=z(44104),xe=z(4875),ge=z(47889),Ee=z(7939),Qe=z(8240),Ae=z(59301),de=z(59301),tt=Object.defineProperty,ve=Object.defineProperties,Lt=Object.getOwnPropertyDescriptors,at=Object.getOwnPropertySymbols,Ve=Object.prototype.hasOwnProperty,Ne=Object.prototype.propertyIsEnumerable,Ze=(Ot,yt,Et)=>yt in Ot?tt(Ot,yt,{enumerable:!0,configurable:!0,writable:!0,value:Et}):Ot[yt]=Et,pt=(Ot,yt)=>{for(var Et in yt||(yt={}))Ve.call(yt,Et)&&Ze(Ot,Et,yt[Et]);if(at)for(var Et of at(yt))Ne.call(yt,Et)&&Ze(Ot,Et,yt[Et]);return Ot},mt=(Ot,yt)=>ve(Ot,Lt(yt));const{useForm:Xt}=b.default,He={width:280,marginRight:10},Ke={labelCol:{span:5},wrapperCol:{span:19}};var ut=({callback:Ot,onCancel:yt})=>{const[Et]=Xt();let pe=(0,Ae.useRef)();function Je(Nt){pe.current.width=Et.getFieldValue("width"),pe.current.align=Et.getFieldValue("align"),Ot(Nt,pe.current)}function Xe(Nt,et){if(Nt.status===-1){Pe.ZP.error(Nt.message);return}Et.setFieldsValue({src:`/api/attachments/${Nt.id}`,type:et.type})}function ue(Nt){let et=Nt.target.files[0];pe.current=et,jt(et,Xe)}return de.createElement(b.default,mt(pt({form:Et},Ke),{className:"upload-image-panel",onFinish:Je,style:{width:470,overflow:"hidden"}}),de.createElement(b.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},de.createElement("div",{className:"flex-container"},de.createElement(b.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},de.createElement(fe.default,{style:He})),de.createElement(ft,{onFileChange:ue}))),de.createElement(b.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},de.createElement(fe.default,{style:{width:264}})),de.createElement(b.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},de.createElement(rt.Z,null,de.createElement(b.default.Item,{name:"width",style:{margin:0}},de.createElement(xe.Z,{style:{width:264}})),de.createElement("span",{className:"ml8"},"%"))),de.createElement(b.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},de.createElement(ge.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),de.createElement("aside",null,de.createElement(b.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},de.createElement(Ee.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),de.createElement(Ee.ZP,{type:"default",onClick:yt},"\u53D6\u6D88"))))};function ft({onFileChange:Ot}){return de.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",de.createElement("input",{type:"file",onChange:Ot}))}function jt(Ot,yt){if(!Ot)throw new String("\u6CA1\u6709\u6587\u4EF6");let Et=new FormData;Et.append("editormd-image-file",Ot),Et.append("file_param_name","editormd-image-file"),Et.append("byxhr","true");var pe=new window.XMLHttpRequest;pe.withCredentials=!0,pe.addEventListener("load",function(Je){yt(JSON.parse(Je.target.responseText),Ot)},!1),pe.addEventListener("error",function(Je){console.error(Je)},!1),pe.open("POST",`${Qe.KI}/api/attachments.json`),pe.send(Et)}},88969:function(Kn,cn,z){"use strict";z.d(cn,{Z:function(){return fe}});var b=z(59301),Pe=z(4676);class fe extends b.Component{constructor(xe){super(xe);const ge=window.document;this.node=ge.createElement("div"),ge.body.appendChild(this.node)}render(){const{children:xe}=this.props;return(0,Pe.createPortal)(xe,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},94871:function(Kn,cn,z){"use strict";z.d(cn,{SV:function(){return $t},ZP:function(){return ct}});var b=z(59301),Pe=z(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"]},rt={quickKey:[{label:"main",content:["public static void main(String[] args) {"," $0","}"].join(`
|
|
|
`)},{label:"System.out.println",content:["System.out.println($0)"].join(`
|
|
|
`)},{label:"System.out.print",content:["System.out.print($0)"].join(`
|
|
|
`)}],keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false"]},xe={keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","friend","gcnew","generic","goto","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],quickKey:[{label:"ifelse",content:["if (${1:condition}) {"," $0","} else {"," ","}"].join(`
|
|
|
`)},{label:"include",content:"include<$0>"},{label:"printf",content:"printf($0)"},{label:"system",content:'system("$0")'},{label:"main",content:["int main () {"," $0","}"].join(`
|
|
|
`)},{label:"if",content:["if () {"," $0","}"].join(`
|
|
|
`)},{label:"for",content:["for(int j=0 ; j<10; j++){"," $0","}"].join(`
|
|
|
`)},{label:"trycatch",content:["try{"," $0","}catch(ExceptionName e){","}"].join(`
|
|
|
`)},{label:"using namespace std",content:["using namespace std"].join(`
|
|
|
`)},{label:"include <iostream>",content:["#include <iostream>"].join(`
|
|
|
`)},{label:"include <vector>",content:["#include <vector>"].join(`
|
|
|
`)},{label:"include <cstdio>",content:["#include <cstdio>"].join(`
|
|
|
`)},{label:"include <cstring>",content:["#include <cstring>"].join(`
|
|
|
`)},{label:"include <sstream>",content:["#include <sstream>"].join(`
|
|
|
`)},{label:"include <fstream>",content:["#include <fstream>"].join(`
|
|
|
`)},{label:"include <map>",content:["#include <map>"].join(`
|
|
|
`)},{label:"include <string>",content:["#include <string>"].join(`
|
|
|
`)},{label:"include <cmath>",content:["#include <cmath>"].join(`
|
|
|
`)}]},ge={keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","raise","return","self","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],quickKey:[{label:"print",content:["print($0)"].join(`
|
|
|
`)}]},Ee={keywords:["asInstanceOf","catch","class","classOf","def","do","else","extends","finally","for","foreach","forSome","if","import","isInstanceOf","macro","match","new","object","package","return","throw","trait","try","type","until","val","var","while","with","yield","given","enum","then"],quickKey:[{label:"println",content:["println($0)"].join(`
|
|
|
`)}]};var Qe=z(53184),Ae=z.n(Qe),de=(vt,gn,Tt)=>new Promise((ie,ne)=>{var te=re=>{try{se(Tt.next(re))}catch(le){ne(le)}},oe=re=>{try{se(Tt.throw(re))}catch(le){ne(le)}},se=re=>re.done?ie(re.value):Promise.resolve(re.value).then(te,oe);se((Tt=Tt.apply(vt,gn)).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"]}},ve=(vt,gn,Tt,ie)=>{const ne=gn.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:vt.languages.CompletionItemKind.Text,insertText:oe,range:ie}))},Lt=(vt,gn,Tt,ie)=>{vt.languages.registerCompletionItemProvider(gn,{provideCompletionItems(ne,te){const oe=ne.getWordUntilPosition(te),se={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:[...ve(vt,ne,te,se),...Tt.map(me=>({label:me,kind:vt.languages.CompletionItemKind.Keyword,documentation:me,insertText:me,insertTextRules:vt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:se})),...ie.map(me=>({label:me.label,kind:vt.languages.CompletionItemKind.Snippet,documentation:me.content,insertText:re.startsWith("#")?me.content.replace(/#/,""):me.content,insertTextRules:vt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:se}))]}}})};var at=vt=>{tt.languages.forEach(gn=>{vt.languages.registerDocumentFormattingEditProvider(gn,{provideDocumentFormattingEdits(Tt){return de(this,null,function*(){const ie=Ae()(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:ie}]})}})}),Lt(vt,"java",rt.keywords,rt.quickKey),Lt(vt,"cpp",xe.keywords,xe.quickKey),Lt(vt,"c",fe.keywords,[]),Lt(vt,"python",ge.keywords,ge.quickKey),Lt(vt,"scala",Ee.keywords,Ee.quickKey)};const Ve="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var Ne=Object.defineProperty,Ze=(vt,gn,Tt)=>gn in vt?Ne(vt,gn,{enumerable:!0,configurable:!0,writable:!0,value:Tt}):vt[gn]=Tt,pt=(vt,gn,Tt)=>Ze(vt,typeof gn!="symbol"?gn+"":gn,Tt);const mt=class ju{constructor(gn,Tt,ie){this.placeholder=gn,this.editor=Tt,this.monaco=ie,Tt.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return ju.ID}getDomNode(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.style.width="max-content",this.domNode.textContent=this.placeholder,this.domNode.style.fontStyle="initial",this.domNode.style.color="#D7D7D7",this.domNode.style.pointerEvents="none",this.editor.applyFontInfo(this.domNode)),this.domNode}getPosition(){return{position:{lineNumber:1,column:1},preference:[this.monaco.editor.ContentWidgetPositionPreference.EXACT]}}dispose(){this.editor.removeContentWidget(this)}};pt(mt,"ID","editor.widget.placeholderHint");var He=mt,Ke=z(96236),ut=z(6767),ft=z(25399),jt=z(89392),Ot=z(99936),yt=z(56102),Et=Object.defineProperty,pe=Object.defineProperties,Je=Object.getOwnPropertyDescriptors,Xe=Object.getOwnPropertySymbols,ue=Object.prototype.hasOwnProperty,Nt=Object.prototype.propertyIsEnumerable,et=(vt,gn,Tt)=>gn in vt?Et(vt,gn,{enumerable:!0,configurable:!0,writable:!0,value:Tt}):vt[gn]=Tt,wt=(vt,gn)=>{for(var Tt in gn||(gn={}))ue.call(gn,Tt)&&et(vt,Tt,gn[Tt]);if(Xe)for(var Tt of Xe(gn))Nt.call(gn,Tt)&&et(vt,Tt,gn[Tt]);return vt},ln=(vt,gn)=>pe(vt,Je(gn)),ke=(vt,gn)=>{var Tt={};for(var ie in vt)ue.call(vt,ie)&&gn.indexOf(ie)<0&&(Tt[ie]=vt[ie]);if(vt!=null&&Xe)for(var ie of Xe(vt))gn.indexOf(ie)<0&&Nt.call(vt,ie)&&(Tt[ie]=vt[ie]);return Tt},he=(vt,gn,Tt)=>new Promise((ie,ne)=>{var te=re=>{try{se(Tt.next(re))}catch(le){ne(le)}},oe=re=>{try{se(Tt.throw(re))}catch(le){ne(le)}},se=re=>re.done?ie(re.value):Promise.resolve(re.value).then(te,oe);se((Tt=Tt.apply(vt,gn)).next())});function Ct(vt){return/^\d+$/.test(vt)?`${vt}px`:vt}function Pt(){}let Kt=!1;const Ce={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python",Scala:"scale",solidity:"sol"};function ot(vt=[]){let gn=vt;if(Array.isArray(vt)){for(let Tt=0;Tt<vt.length;Tt++){let ie=Ce[vt[Tt]];if(ie)return ie}return gn[0]}return Ce[gn]||gn}let lt=null;const Wt=()=>he(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(vt){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",vt)}});var ct=vt=>{var gn=vt,{width:Tt="100%",height:ie="100%",value:ne,language:te="javascript",style:oe={},options:se={},overrideServices:re={},theme:le="vs-dark",onEditBlur:me,isCopy:Dt=!1,onSave:Re,autoHeight:Fe=!1,forbidCopy:qe=!1,forbidCopyTips:nt,onChange:st=Pt,editorDidMount:we=Pt,onFocus:Be=Pt,onBreakPoint:It=Pt,breakPointValue:Mt=[],filename:kt="educoder.txt",errorLine:Yt,errorContent:At="",highlightLine:vn,openBreakPoint:Gt=!1,placeholder:_e="",showMiniMap:Bt=!0}=gn,Ut=ke(gn,["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 on=(0,b.useRef)(),Le=(0,b.useRef)({}),xt=(0,b.useRef)(),zt=(0,b.useRef)(),nn=(0,b.useRef)([]),Sn=(0,b.useRef)(!1),zn=(0,b.useRef)(),rr=(0,b.useRef)(),pr=(0,b.useRef)(!1),[kn,dr]=(0,b.useState)(!1);function Ye(){let Jt;return on.current&&(Jt=new Pe.Z(wn=>{for(let un of wn)(un.target.offsetHeight>0||un.target.offsetWidth>0)&&Le.current.instance.layout()}),Jt.observe(on.current)),Jt}function Qt(){ut.ZP.warning({content:decodeURIComponent(nt||Ve),key:"monaco-editor-tip"})}const yn=()=>{let Jt=Le.current.instance;if(ne!=null&&Jt&&kn){const wn=Jt.getModel();wn&&ne!==wn.getValue()&&(Kt=!0,wn.setValue(ne),Jt.layout(),Kt=!1)}};(0,b.useEffect)(()=>{const Jt=Ot.Z.subscribe("formatDocument",wn=>{var un;let sn=Le.current.instance;(un=sn==null?void 0:sn.getAction)==null||un.call(sn,"editor.action.formatDocument").run()});return window.updateMonacoValue=wn=>{st(wn)},Jt},[]),(0,b.useEffect)(()=>{var Jt;let wn=Le.current.instance;zt.current&&clearTimeout(zt.current),zt.current=setTimeout(()=>{yn()},500),ne&&(ne!=null&&ne.length)&&((Jt=wn==null?void 0:wn.updateOptions)==null||Jt.call(wn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(ne.split(/\r\n|\r|\n/g).length))+3,5)}))},[ne,kn,Le.current]),(0,b.useEffect)(()=>{if(Yt&&Le.current&&Le.current.instance){let wn=Le.current.instance;wn.changeViewZones(function(un){var sn=document.createElement("div");sn.style.padding="10px 20px",sn.style.width="calc(100% - 20px)",sn.className="my-error-line-wrp",sn.innerHTML=At,un.addZone({afterLineNumber:Yt||11,heightInLines:3,domNode:sn})});var Jt={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}};wn.addOverlayWidget(Jt),wn.revealPositionInCenter({lineNumber:20,column:1})}},[Yt,Le.current,kn]);const xn=(Jt="",wn)=>{if(!Jt||Jt.trim()==="")return!0;const sn=Le.current.instance.getModel().getLineTokens(wn);let We=!1;for(let dt=0;dt<2;dt++)sn.getStandardTokenType(dt)===1&&(We=!0);return We};(0,b.useEffect)(()=>{var Jt;const wn=(Jt=Le.current)==null?void 0:Jt.instance;if(wn&&kn&&qe){const un=wn.onDidBlurEditorWidget(()=>{pr.current=!1}),sn=wn.onDidFocusEditorText(()=>{pr.current=!0});return()=>{un.dispose(),sn.dispose()}}},[Le.current,kn,qe]),(0,b.useEffect)(()=>{var Jt;if((Jt=Le.current)!=null&&Jt.instance&&kn&&Gt){let wn=Le.current.instance,un=wn.getModel();if(!un)return;(()=>{var Te;let Me=[],je=[];const it=un.getAllDecorations();for(let dn of it)dn.options.className==="highlighted-line"&&(Me.push((Te=dn==null?void 0:dn.range)==null?void 0:Te.startLineNumber),je.push(dn==null?void 0:dn.id));if(vn===Me[0])return;un.deltaDecorations(je,[]);const an=un.getLineCount();vn&&vn<=an&&(wn.deltaDecorations([],[{range:new lt.Range(vn,1,vn,un.getLineMaxColumn(vn)),options:{isWholeLine:!0,className:"highlighted-line"}}]),wn.revealLineInCenter(vn))})();const We=(Te=!1)=>{var Me;let je=[],it=[];const an=un.getAllDecorations();for(let dn of an)dn.options.linesDecorationsClassName==="breakpoints-select"&&(je.push((Me=dn==null?void 0:dn.range)==null?void 0:Me.startLineNumber),it.push(dn==null?void 0:dn.id));if(Te)return{lines:je,ids:it};It(je)},dt=Te=>he(void 0,null,function*(){let Me={range:new lt.Range(Te,1,Te,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield un.deltaDecorations([],[Me]),We()}),ze=Te=>he(void 0,null,function*(){let Me=[];const je=wn.getLineDecorations(Te);for(let it of je)it.options.linesDecorationsClassName==="breakpoints-select"&&Me.push(it.id);yield un.deltaDecorations(Me,[]),We()}),gt=Te=>{let Me=wn.getLineDecorations(Te);for(let je of Me)if(je.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,jt.isEqual)(Mt,We(!0).lines)){un.deltaDecorations(We(!0).ids,[]);const Te=Mt.map(Me=>({range:new lt.Range(Me,1,Me,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));un.deltaDecorations([],Te)}const $e=wn.onDidChangeModelContent(Te=>{let Me=wn.getPosition();if(Me){let je=Me.lineNumber;clearTimeout(rr.current),rr.current=setTimeout(()=>{xn(un.getLineContent(je),je)?ze(je):gt(je)?(ze(je),dt(je)):We()},100)}}),St=wn.onMouseDown(Te=>{var Me,je,it;if(Te.target.detail&&((it=(je=(Me=Te.target)==null?void 0:Me.element)==null?void 0:je.className)!=null&&it.includes("line-numbers"))){let an=Te.target.position.lineNumber;if(xn(un.getLineContent(an),an))return;gt(an)?ze(an):dt(an)}}),Oe=Te=>{let Me={range:new lt.Range(Te,1,Te,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};nn.current=wn.deltaDecorations(nn.current,[Me])},Ft=()=>{nn.current=wn.deltaDecorations(nn.current,[])},Zt=wn.onMouseMove(Te=>{var Me,je,it;if(Ft(),Te.target.detail&&((it=(je=(Me=Te.target)==null?void 0:Me.element)==null?void 0:je.className)!=null&&it.includes("line-numbers"))){let an=Te.target.position.lineNumber;if(xn(un.getLineContent(an),an))return;Oe(an)}}),De=wn.onMouseLeave(()=>{Ft()});return()=>{$e.dispose(),St.dispose(),Zt.dispose(),De.dispose()}}},[Le.current,kn,Mt,vn,Gt,te]),(0,b.useEffect)(()=>{var Jt;(Jt=Le.current)!=null&&Jt.instance&&Gt&&Le.current.instance.setPosition({lineNumber:0,column:0})},[vn]);function qt(){let Jt=Le.current.instance;if(Jt){const wn=Jt.getSelection(),un=Le.current.pastePos||{},sn=new lt.Range(un.startLineNumber||wn.endLineNumber,un.startColumn||wn.endColumn,un.endLineNumber||wn.endLineNumber,un.endColumn||wn.endColumn);setTimeout(()=>{Jt.executeEdits("",[{range:sn,text:""}])},300)}}function En(Jt){(window.navigator.platform.match("Mac")?Jt.metaKey:Jt.ctrlKey)&&Jt.keyCode==83&&(Jt.preventDefault(),Re())}const Fn=()=>{if(Fe&&Le.current.instance){const Jt=Le.current.instance.getContentHeight();yr(Jt<ie?ie:Jt)}else yr(ie)};function Tn(Jt){var wn=document.createEvent("MouseEvents");wn.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),Jt.dispatchEvent(wn)}const _t=Jt=>{if(!pr.current)return;const{keyCode:wn,ctrlKey:un,metaKey:sn,target:We,type:dt}=Jt;return(dt==="paste"||(wn===67||wn===86)&&(sn||un))&&We.nodeName==="TEXTAREA"&&(Qt(),Jt.preventDefault()),!1};function Cn(Jt,wn){var un=window.URL||window.webkitURL||window,sn=new Blob([wn]),We=document.createElementNS("http://www.w3.org/1999/xhtml","a");We.href=un.createObjectURL(sn),We.download=Jt,Tn(We)}(0,b.useEffect)(()=>{Fn()},[Fn]),(0,b.useEffect)(()=>{on.current&&!kn&&Promise.all([z.e(8909),z.e(1859)]).then(z.bind(z,71448)).then(Jt=>{try{lt=Jt,Le.current.instance=lt.editor.create(on.current,{value:ne,language:ot(te),theme:le,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:Bt||!1}},re);const wn=Le.current.instance;let We=[...Ke.BH._menuItems].find($e=>$e[0]._debugName=="EditorContext")[1],dt=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],ze=($e,St)=>{var Oe,Ft;let Zt=$e._first;do St.includes((Ft=(Oe=Zt.element)==null?void 0:Oe.command)==null?void 0:Ft.id)&&$e._remove(Zt);while(Zt=Zt.next)};if(we(wn,lt),setTimeout(()=>{Fn(),Le.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Cn(kt||"educoder.txt",wn.getValue())}})},500),Le.current.subscription=wn.onDidChangeModelContent($e=>{Sn.current?clearTimeout(zn.current):(Fn(),st(wn.getValue(),$e)),zn.current=setTimeout(()=>{Sn.current=!1},500)}),window.Monaco||at(lt,ot(te)),qe&&(ze(We,dt),on.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",_t),window.removeEventListener("paste",_t),window.addEventListener("keydown",_t),window.addEventListener("paste",_t)),window.Monaco=lt,me&&wn.onDidBlurEditorWidget(()=>{me(wn.getValue())}),Be&&wn.onDidFocusEditorText(()=>{qe&&Wt(),Be(wn.getValue())}),qe){Wt();try{wn.onDidPaste($e=>{const St=wn.getSelection(),Oe=Le.current.pastePos||{},Ft=new lt.Range(Oe.startLineNumber||St.endLineNumber,Oe.startColumn||St.endColumn,Oe.endLineNumber||St.endLineNumber,Oe.endColumn||St.endColumn);wn.executeEdits("",[{range:$e.range,text:""}])})}catch($e){}}let gt=Ye();return _e&&typeof _e=="string"&&new He(_e,wn,lt),dr(!0),()=>{const $e=Le.current.instance;$e.dispose();const St=$e.getModel();St&&St.dispose(),Le.current.subscription&&Le.current.subscription.dispose(),gt.unobserve(on.current)}}catch(wn){}})},[]),(0,b.useEffect)(()=>{if(Le.current.instance&&kn)return document.addEventListener("keydown",En,!1),()=>{document.removeEventListener("keydown",En)}},[Re,kn]),(0,b.useEffect)(()=>{let Jt=Le.current.instance;if(Jt&&kn){let wn=ot(te);lt.editor.setModelLanguage(Jt.getModel(),wn)}},[te,kn]),(0,b.useEffect)(()=>{Le.current.instance&&kn&<.editor.setTheme(le)},[le,kn]),(0,b.useEffect)(()=>{let Jt=Le.current.instance;xt.current=se,Jt&&kn&&(Jt.updateOptions(wt({},se)),setTimeout(()=>{Jt.getModel().updateOptions(wt({},se))},200))},[JSON.stringify(se),kn]),(0,b.useEffect)(()=>{let Jt=Le.current.instance;Jt&&kn&&Jt.layout()},[Tt,ie,kn]);const[Bn,Ln]=(0,b.useState)(Ct(Tt)),[Zn,yr]=(0,b.useState)(Ct(ie)),ur=ln(wt({},oe),{width:Bn,height:Zn,position:"relative"});return b.createElement("div",{className:"my-monaco-editor",ref:on,style:ur,onFocus:()=>{qe&&Wt()}},Dt&&b.createElement(yt.CopyToClipboard,{text:ne,onCopy:()=>ut.ZP.success("\u590D\u5236\u6210\u529F")},b.createElement(ft.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 $t({width:vt="100%",height:gn="100%",original:Tt,modified:ie,language:ne,options:te={}}){const oe=(0,b.useRef)(),[se,re]=(0,b.useState)(null);function le(Fe){let qe;return oe.current&&(qe=new Pe.Z(nt=>{for(let st of nt)(st.target.offsetHeight>0||st.target.offsetWidth>0)&&Fe.layout()}),qe.observe(oe.current)),qe}(0,b.useEffect)(()=>(oe.current&&Promise.all([z.e(8909),z.e(9404)]).then(z.bind(z,2550)).then(Fe=>{lt=Fe;const qe=lt.editor.createDiffEditor(oe.current,ln(wt({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(qe);let nt=le(qe);return()=>{qe.dispose();const st=qe.getModel();st&&st.dispose(),nt.unobserve(oe.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,b.useEffect)(()=>{se&&se.setModel({original:lt.editor.createModel(Tt,ne),modified:lt.editor.createModel(ie,ne)})},[Tt,ie,ne,se]);const me=Ct(vt),Dt=Ct(gn),Re={width:me,height:Dt};return b.createElement("div",{className:"my-diff-editor",ref:oe,style:Re})}},64194:function(Kn,cn,z){"use strict";z.d(cn,{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"},Pe=z(29787),fe=z(25399),rt=z(89787),xe=z(92310),ge=z.n(xe),Ee=z(68911),Qe=z(71347),Ae=z(59301),tt=({className:ve,dataSource:Lt=[],col:at=4,right:Ve,bottom:Ne=23,precision:Ze=0,wrapWidth:pt=1200,trackEventItems:mt,loading:Xt,onRemove:He=()=>{},isCurrent:Ke=!0,showProgress:ut=!1,showAlias:ft=!1,category:jt,hiddenClick:Ot})=>{const yt=Math.floor((pt-(at-1)*Ve)/at),Et=[{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 Ae.createElement(Pe.Z,{spinning:Xt},Ae.createElement("div",{className:ge()(b.list,ve)},!!(Lt!=null&&Lt.length)&&(Lt==null?void 0:Lt.map((pe,Je)=>{var Xe,ue,Nt,et,wt,ln,ke,he,Ct,Pt,Kt,Ce,ot;const{name:lt,id:Wt,identifier:ct,featured:$t,school_name:vt,image_url:gn,excellent:Tt,is_plan:ie}=pe;return Ae.createElement("div",{key:Wt,className:Ke&&ut?b.wrapisCurrent:b.wrap,style:{width:yt,marginRight:(1+Je)%at===0?0:Ve+Ze,marginBottom:Ne}},Ae.createElement("a",{className:b.li,onClick:ne=>{ne.preventDefault(),ne.stopPropagation(),mt&&(0,Ee.L9)([mt]),(0,Ee.xg)(`/paths/${ct}`)}},Ae.createElement("div",{className:b.img},Ae.createElement("img",{className:b.cover,src:`${gn}`}),(Xe=pe==null?void 0:pe.subject_tags)==null?void 0:Xe.map((ne,te)=>{var oe,se;if(te===0){const le=(oe=Et.find(me=>me.name==ne))==null?void 0:oe.swclass;return Ae.createElement("span",{className:`sprite ${le} ${b.sign}`,style:{left:"-4px"}})}const re=(se=Et.find(le=>le.name==ne))==null?void 0:se.ptclass;return Ae.createElement("span",{className:`sprite ${re} ${b.sign}`,style:{left:`${48+52*(te-1)+2*te}px`}})}),Ae.createElement("div",{className:b.tagsDom},Ae.createElement("div",{className:"flex flex-wrap gap-10px item-center"},(pe==null?void 0:pe.excellent)&&Ae.createElement("div",{className:b.bq},"\u5F00\u653E\u8BFE\u7A0B"),((ue=pe==null?void 0:pe.custom_tags)==null?void 0:ue.length)>0&&Ae.createElement(fe.Z,{title:(wt=(et=pe==null?void 0:pe.custom_tags)==null?void 0:et[((Nt=pe==null?void 0:pe.custom_tags)==null?void 0:Nt.length)-1])==null?void 0:wt.tag_name},Ae.createElement("div",{className:"px-6px rounded-2px c-white h-16px flex item-center",style:{maxWidth:"62px",background:"#3061D0",border:"0.5px solid #8FAFF8"}},Ae.createElement("span",{className:"multi-llipsis1e text-10px"},(he=(ke=pe==null?void 0:pe.custom_tags)==null?void 0:ke[((ln=pe==null?void 0:pe.custom_tags)==null?void 0:ln.length)-1])==null?void 0:he.tag_name))))),jt=="hide"&&(pe==null?void 0:pe.studying)&&Ke&&Ae.createElement("div",{className:`${b.movebq} user-path-items`,onClick:ne=>{ne.stopPropagation(),He(pe)}},Ae.createElement("i",{className:"iconfont icon-yichu1 font12"}),Ae.createElement("span",null,"\u79FB\u9664")),!["collect","payed"].includes(jt)&&Ke&&Ae.createElement("div",{className:`${b.hiddenbq} user-path-items`,onClick:ne=>{ne.stopPropagation(),Ot(pe)}},Ae.createElement("i",{className:`iconfont ${jt=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),Ae.createElement("span",null,jt=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF"))),Ae.createElement("div",{className:b.name},Ae.createElement(fe.Z,{title:ft&&(pe!=null&&pe.excellent_alias_name)?Ae.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${lt}`,Ae.createElement("br",null),Ae.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${pe==null?void 0:pe.excellent_alias_name}`)):lt},Ae.createElement("span",{className:b.e},ft&&(pe==null?void 0:pe.excellent_alias_name)||lt))),Ke&&ut&&((Ct=pe==null?void 0:pe.progress)==null?void 0:Ct.all_score)!=0&&Ae.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},Ae.createElement(rt.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((Pt=pe==null?void 0:pe.progress)==null?void 0:Pt.my_score)/((Kt=pe==null?void 0:pe.progress)==null?void 0:Kt.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(Ce=pe==null?void 0:pe.progress)==null?void 0:Ce.my_score,"/",(ot=pe==null?void 0:pe.progress)==null?void 0:ot.all_score),(!Ke||!ut)&&Ae.createElement(fe.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${vt}`},Ae.createElement("div",{className:b.unit},Ae.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),vt)),(!Ke||!ut)&&Ae.createElement("div",{className:b.tags},Ae.createElement("div",null,Ae.createElement(fe.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},Ae.createElement("span",null,Ae.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),Ae.createElement("span",null,pe.stages_count))),Ae.createElement(fe.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Ae.createElement("span",null,Ae.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),Ae.createElement("span",null,pe.members_count)))))))})),!Lt.length&&Ae.createElement(Qe.Z,null)))}},29596:function(Kn,cn,z){"use strict";z.d(cn,{jL:function(){return rt},w9:function(){return he},QD:function(){return Mt},cQ:function(){return Je.Z},op:function(){return qe},O5:function(){return Ye},_b:function(){return _e},t7:function(){return Ze},Gi:function(){return lt},YG:function(){return Ce},qp:function(){return de},vr:function(){return At},qE:function(){return we},Je:function(){return Xt},wb:function(){return pe},cq:function(){return Tt},tp:function(){return Lt}});var b=z(59301),Pe={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"},rt=({dataSource:Qt=[],img:yn,imgWidth:xn=346,title:qt,sunTitle:En,bannerExtraContent:Fn})=>b.createElement("div",{className:Pe.banner},b.createElement("div",{className:Pe.content},b.createElement("aside",null,b.createElement("p",null,b.createElement("b",null,qt),b.createElement("span",null,En)),Qt.length>0&&b.createElement("div",{className:Pe.btns},Qt.map((Tn,_t)=>b.createElement("div",{key:_t,onClick:Tn.click},Tn.name,Tn.sign?b.createElement("span",{className:"sprite sprite-33"}):null))),Fn),yn&&b.createElement("img",{style:{marginTop:33,marginRight:38},src:yn,width:xn}))),xe={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"},ge=z(92310),Ee=z.n(ge),Qe=z(89392),de=({dataSource:Qt=[],value:yn,onChange:xn,onTitleChange:qt,className:En,title:Fn,titleWidth:Tn=41,style:_t={},fontColor:Cn="#6A7283",showCount:Bn})=>{const[Ln,Zn]=(0,b.useState)(1),[yr,ur]=(0,b.useState)(!1),Jt=(0,b.useRef)(null),wn=(0,b.useRef)(null);return(0,b.useEffect)(()=>{var un;Qt.length!==0&&(((un=Jt==null?void 0:Jt.current)==null?void 0:un.clientHeight)>97?Zn(1):Zn(0)),Qt.length===0&&Zn(0),ur(!1)},[Qt]),b.createElement("div",{className:Ee()(xe.row,En,"fadeIn","animated"),style:_t},b.createElement("div",{onClick:(0,Qe.throttle)(()=>qt==null?void 0:qt(),2e3),style:{width:Tn,marginTop:yr?12:4},className:`${xe.title} ${qt?"current":""}`},Fn),b.createElement("div",{className:yr?`${xe.tagsWrap} ${xe.tagsBorderWrap}`:xe.tagsWrap},b.createElement("div",{className:xe.bar,ref:wn,style:Ln>0?{height:Ln===1?97:"auto",overflow:Ln===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},b.createElement("div",{className:xe.tag,ref:Jt},Qt==null?void 0:Qt.map(un=>b.createElement("span",{onClick:()=>xn(un.id),key:un.id,style:{color:Cn},className:yn===un.id?xe.active:""},b.createElement("span",{title:un.name,className:xe.name},un.name),!!Bn&&b.createElement("span",{className:xe.num},un.count))))),!!Ln&&b.createElement(b.Fragment,null,Ln===1?b.createElement("div",{onClick:()=>{var un;Zn(2),((un=Jt==null?void 0:Jt.current)==null?void 0:un.clientHeight)>245?ur(!0):ur(!1)},className:xe.action},"\u5C55\u5F00",b.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):b.createElement("div",{onClick:()=>{wn.current.scrollTop=0,Zn(1),ur(!1)},className:xe.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"},Lt=({dataSource:Qt=[],value:yn,onChange:xn,className:qt,style:En={}})=>b.createElement("div",{style:En,className:Ee()(tt.tabs,qt)},Qt.map(Fn=>b.createElement("span",{onClick:()=>xn(Fn.id),className:yn===Fn.id?tt.active:"",key:Fn.id},Fn.name))),at={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"},Ve=z(37568),Ze=({dataSource:Qt=[],value:yn="",onChange:xn,onInputChange:qt=()=>{},className:En,style:Fn={},placeholder:Tn,allowClear:_t=!1})=>{var Cn;const[Bn,Ln]=(0,b.useState)(""),[Zn,yr]=(0,b.useState)("");(0,b.useEffect)(()=>{var wn;let un=yn;(wn=JSON.stringify(yn))!=null&&wn.includes("{")&&(Ln(yn.id),un=yn.value||"");try{yr(decodeURIComponent(un||""))}catch(sn){yr(decodeURIComponent(un||""))}},[yn]);const ur=()=>{xn(encodeURIComponent(Zn),Bn||null)},Jt=wn=>{wn!==Bn&&(Ln(wn),xn(encodeURIComponent(Zn),wn))};return b.createElement("div",{className:Ee()(at.input,En),style:Fn},!!Qt.length&&b.createElement("div",{className:at.dropdown},b.createElement("div",{className:at.text},(Cn=Qt.find(wn=>wn.id===Bn))==null?void 0:Cn.name,b.createElement("i",{className:"iconfont icon-zhankai4"}),b.createElement("b",{className:at.b1}),b.createElement("b",{className:at.b2})),b.createElement("div",{className:at.menu},Qt.map((wn,un)=>b.createElement("div",{key:un,onClick:()=>Jt(wn.id)},wn.name)))),b.createElement(Ve.default,{onPressEnter:ur,value:Zn,onChange:wn=>{yr(wn.target.value),qt(encodeURIComponent(wn.target.value),Bn||null)},placeholder:Tn,variant:"borderless",allowClear:_t,onClear:()=>xn("",Bn||null)}),b.createElement("i",{onClick:ur,className:"iconfont icon-sousuo9 font14 current"}))},pt={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"},Xt=({value:Qt,onChange:yn,className:xn,total:qt,pageSize:En,style:Fn={}})=>{const Tn=Qt<2,_t=Qt>=Math.ceil(qt/En);return qt<=En?b.createElement(b.Fragment,null):b.createElement("div",{className:Ee()(pt.quickPager,xn),style:Fn},b.createElement("div",{onClick:()=>{Tn||yn(Qt-1,"prev")},className:Tn?pt.disabled:""},"\u4E0A\u4E00\u9875"),b.createElement("div",{onClick:()=>{_t||yn(Qt+1,"next")},className:_t?pt.disabled:""},"\u4E0B\u4E00\u9875"))},He={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"},Ke=z(29787),ut=z(25399),ft=z(63139),jt=z(35783),Ot=z(68911),yt=z(71347),pe=({className:Qt,dataSource:yn=[],col:xn=4,right:qt,bottom:En=23,precision:Fn=0,wrapWidth:Tn=1200,trackEventItems:_t,loading:Cn})=>{const Bn=Math.floor((Tn-(xn-1)*qt)/xn);return b.createElement(Ke.Z,{spinning:Cn},b.createElement("div",{className:Ee()(He.list,Qt)},!!yn.length&&yn.map((Ln,Zn)=>{const{name:yr,id:ur,identifier:Jt,power:wn,cover_image_id:un,pic:sn}=Ln;return b.createElement("div",{className:He.wrap,key:ur,style:{width:Bn,marginRight:(1+Zn)%xn===0?0:qt+Fn,marginBottom:En}},b.createElement("a",{target:"_blank",href:`/shixuns/${Jt}/challenges`,className:He.li,onClick:We=>{We.preventDefault(),_t&&(0,Ot.L9)([_t]),wn&&(0,Ot.xg)(`/shixuns/${Jt}/challenges`)}},b.createElement("div",{className:He.img},b.createElement("img",{className:He.cover,src:`${sn}`}),Ln.is_jupyter&&b.createElement("span",{className:`sprite sprite-43 ${He.sign}`}),Ln.is_jupyter_lab&&b.createElement("span",{className:`sprite sprite-42 ${He.sign}`}),Ln.is_unity_3d&&b.createElement("span",{className:`sprite sprite-44 ${He.sign}`})),b.createElement("div",{className:He.name},b.createElement(ut.Z,{title:yr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},b.createElement("span",{className:He.e},yr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),b.createElement("div",{className:He.tags},b.createElement(ut.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},b.createElement("span",null,b.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),b.createElement("span",null,Ln.challenges_count))),!!Ln.myshixuns_count&&b.createElement(ut.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,Ln.myshixuns_count))),b.createElement(ut.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},b.createElement("span",null,b.createElement("span",null,Ln.level))),b.createElement("div",{className:He.rate},b.createElement(ft.Z,{allowHalf:!0,disabled:!0,defaultValue:Ln.score_info}),b.createElement("span",null,"\xA0",Ln.score_info?`${Ln.score_info}\u5206`:"5\u5206")))),!wn&&b.createElement("div",{className:He.lockWrap},b.createElement("img",{src:`${jt.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")))}),!yn.length&&b.createElement(yt.Z,null)))},Je=z(64194),Xe={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",hidden:"hidden___NniIi",wrap:"wrap___pKgcW",btnsTop:"btnsTop___Lrm6T",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},ue=z(62957),Nt=z(96599),et="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3AzNxXKFTv9MAfB/AuZo60M7Fe30tEZQA/UqBvx+POvUQ02+s+O2l/1QGcy5Xe6Cn1SXj8YYAHO5nU8j9DM1D0b8rzvpFMRp9a/v4X73HVAJwplN9GHj7P4NtW0wK1OxYCPcAKX0rHI4+0+2wv7l9xgHPFyrs9j78A5l/sxQRXrE2ix5SiLyZj7v+s2B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4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",wt=z(59301),ln=(Qt,yn,xn)=>new Promise((qt,En)=>{var Fn=Cn=>{try{_t(xn.next(Cn))}catch(Bn){En(Bn)}},Tn=Cn=>{try{_t(xn.throw(Cn))}catch(Bn){En(Bn)}},_t=Cn=>Cn.done?qt(Cn.value):Promise.resolve(Cn.value).then(Fn,Tn);_t((xn=xn.apply(Qt,yn)).next())}),he=({className:Qt,dataSource:yn=[],col:xn=4,right:qt,bottom:En=23,precision:Fn=0,wrapWidth:Tn=1200,trackEventItems:_t,loading:Cn,category:Bn,hiddenClick:Ln,handleVery:Zn=()=>!0,isCurrent:yr})=>{const[ur,Jt]=ue.default.useModal(),wn=Math.floor((Tn-(xn-1)*qt)/xn),un=sn=>ln(void 0,null,function*(){ur.confirm({title:"\u7F6E\u9876",width:500,content:wt.createElement("div",null,"\u60A8\u786E\u5B9A\u8981\u5C06",wt.createElement("span",{className:"c-blue"},"\u201C",sn.name,"\u201D"),"\u8BFE\u5802\u7F6E\u9876\u5417\uFF1F"),okText:"\u786E\u8BA4\u7F6E\u9876",centered:!0,cancelText:"\u53D6\u6D88"})});return wt.createElement(Ke.Z,{spinning:Cn},Jt,wt.createElement("div",{className:Ee()(Xe.list,Qt)},!!yn.length&&yn.map((sn,We)=>{const{subject_identifier:dt,id:ze,identifier:gt,power:$e}=sn,St=sn.is_public!=0&&sn.is_public;return wt.createElement("div",{className:Xe.wrap,key:ze,style:{width:wn,marginRight:(1+We)%xn===0?0:qt+Fn,marginBottom:En}},sn.homepage_show&&wt.createElement("div",{className:Xe.btnsTop},wt.createElement(Nt.default,{color:"red"},"\u7F6E\u9876")),wt.createElement("a",{className:Xe.li,onClick:Oe=>{Oe.preventDefault(),Zn(sn==null?void 0:sn.first_category_url)&&(_t&&(0,Ot.L9)([_t]),(0,Ot.xg)(sn.first_category_url))}},wt.createElement("div",{className:Xe.top},wt.createElement(ut.Z,{title:sn.name},wt.createElement("div",{className:Xe.name},sn.name)),wt.createElement("img",{className:Xe.img,src:jt.Z.IMG_SERVER+"/images/"+sn.avatar_url}),wt.createElement("div",{className:Xe.text,title:sn.creator},sn.creator),dt&&wt.createElement("div",{className:Xe.btns},wt.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),wt.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),St&&wt.createElement("div",{className:Xe.sign},"\u516C\u5F00"),yr&&wt.createElement("div",{className:Xe.hidden,onClick:Oe=>{Oe.stopPropagation(),Ln(sn)}},wt.createElement("i",{className:`iconfont ${Bn=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),Bn=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF")),wt.createElement("div",{className:Xe.bottom},sn.visits>0&&wt.createElement(ut.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},wt.createElement("span",null,wt.createElement("i",{className:"iconfont icon-liulanyan"}),wt.createElement("span",null,sn.visits))),sn.course_members_count>0&&wt.createElement(ut.Z,{title:"\u6210\u5458",placement:"bottom"},wt.createElement("span",null,wt.createElement("i",{className:"iconfont icon-chengyuan"}),sn.course_members_count)),sn.tasks_count>0&&wt.createElement(ut.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},wt.createElement("span",null,wt.createElement("i",{className:"iconfont icon-zuoye"}),sn.tasks_count)),sn.is_end?wt.createElement("div",{style:{color:"#6B758B"}}):wt.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!sn.is_accessible&&wt.createElement("div",{className:Xe.lockWrap},wt.createElement("img",{src:`${jt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),wt.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!yn.length&&wt.createElement(yt.Z,null)))},Ct={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"},Pt=z(63823),Ce=({dataSource:Qt=[],value:yn,onChange:xn,className:qt,style:En={},tabBarExtraContent:Fn})=>b.createElement("div",{className:Ee()(Ct.tabs,qt),style:En},b.createElement("div",{className:Ct.tabsWrap},Qt.map((Tn,_t)=>!(Tn!=null&&Tn.hide)&&b.createElement("aside",{className:Ct.tab,onClick:()=>{xn(Tn.id),Tn.link&&Pt.history.push(Tn.link)},key:_t},b.createElement("div",{className:yn===Tn.id?Ct.active:""},Tn.name),(Tn==null?void 0:Tn.resetCount)==null&&(Tn==null?void 0:Tn.total)!==void 0&&b.createElement("span",null,"\uFF08",Tn==null?void 0:Tn.total,"\uFF09"),(Tn==null?void 0:Tn.resetCount)!==void 0&&(Tn==null?void 0:Tn.total)!==void 0&&b.createElement(ut.Z,{title:(Tn==null?void 0:Tn.tip)!=null?Tn==null?void 0:Tn.tip:""},b.createElement("span",{style:{color:"#9096A3"}},"\uFF08",b.createElement("span",{style:{color:"#000"}},Tn==null?void 0:Tn.resetCount),"/",b.createElement("span",null,Tn==null?void 0:Tn.total),"\uFF09"))))),b.createElement("div",{className:Ct.tabBar},Fn)),lt=({className:Qt,style:yn={},children:xn})=>b.createElement("div",{className:Ee()(Qt),style:yn},xn),Wt={flex_box_center:"flex_box_center___e6HxQ",flex_space_between:"flex_space_between___RnXYe",flex_box_vertical_center:"flex_box_vertical_center___lVxPk",flex_box_center_end:"flex_box_center_end___bu8yv",flex_box_column:"flex_box_column___JczGj",orderWrap:"orderWrap___ZfyGX",orderIconWrap:"orderIconWrap___XTB_O",orderAsc:"orderAsc___KWHmA",orderDesc:"orderDesc___rHdbB",active:"active___a7eSP",cursorPointer:"cursorPointer___gs9kL",orderTextWrap:"orderTextWrap___teAKn"},ct=z(75727),$t=z(93041);const vt=[{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:Qt,dropValue:yn,className:xn,onSort:qt,onDrop:En,dataSource:Fn=vt})=>{var Tn;return b.createElement("div",{className:Ee()(Wt.orderWrap,xn)},b.createElement(ct.Z,{dropdownRender:()=>b.createElement($t.default,null,Fn.map((_t,Cn)=>b.createElement($t.default.Item,{key:Cn,onClick:()=>En(_t.id)},_t.name)))},b.createElement("span",{className:Wt.orderTextWrap},(Tn=Fn.find(_t=>yn===_t.id))==null?void 0:Tn.name)),b.createElement("span",{className:Wt.orderIconWrap},b.createElement("span",{className:Wt.orderAsc},b.createElement("i",{className:Qt==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Wt.cursorPointer} ${Wt.active}`:`iconfont icon-sanjiaoxing-up font12 ${Wt.cursorPointer}`,onClick:()=>qt(Qt==="asc"?"desc":"asc")})),b.createElement("span",{className:Wt.orderDesc},b.createElement("i",{className:Qt==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Wt.cursorPointer} ${Wt.active}`:`iconfont icon-sanjiaoxing-down font12 ${Wt.cursorPointer}`,onClick:()=>qt(Qt==="asc"?"desc":"asc")}))))},ie={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v"},ne=z(7939),te=Object.defineProperty,oe=Object.getOwnPropertySymbols,se=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable,le=(Qt,yn,xn)=>yn in Qt?te(Qt,yn,{enumerable:!0,configurable:!0,writable:!0,value:xn}):Qt[yn]=xn,me=(Qt,yn)=>{for(var xn in yn||(yn={}))se.call(yn,xn)&&le(Qt,xn,yn[xn]);if(oe)for(var xn of oe(yn))re.call(yn,xn)&&le(Qt,xn,yn[xn]);return Qt},Dt=(Qt,yn)=>{var xn={};for(var qt in Qt)se.call(Qt,qt)&&yn.indexOf(qt)<0&&(xn[qt]=Qt[qt]);if(Qt!=null&&oe)for(var qt of oe(Qt))yn.indexOf(qt)<0&&re.call(Qt,qt)&&(xn[qt]=Qt[qt]);return xn},Re=(Qt,yn,xn)=>new Promise((qt,En)=>{var Fn=Cn=>{try{_t(xn.next(Cn))}catch(Bn){En(Bn)}},Tn=Cn=>{try{_t(xn.throw(Cn))}catch(Bn){En(Bn)}},_t=Cn=>Cn.done?qt(Cn.value):Promise.resolve(Cn.value).then(Fn,Tn);_t((xn=xn.apply(Qt,yn)).next())}),qe=Qt=>{var yn=Qt,{className:xn,style:qt,children:En,loading:Fn=!1,openLoading:Tn,onClick:_t=()=>{},size:Cn="middle",shape:Bn="round"}=yn,Ln=Dt(yn,["className","style","children","loading","openLoading","onClick","size","shape"]);const[Zn,yr]=(0,b.useState)(!1);return b.createElement(ne.ZP,me({onClick:(0,Qe.throttle)(ur=>Re(void 0,null,function*(){Tn&&yr(!0);try{yield _t(ur)}catch(Jt){console.log("error",Jt)}Tn&&yr(!1)}),2e3,{leading:!0,trailing:!1}),className:Ee()(ie.btn,ie[`${Cn}-${Bn}`],xn),style:qt,size:Cn,shape:Bn,loading:Zn||Fn},Ln),En)},nt={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:Qt,style:yn,children:xn=null,onClick:qt,title:En})=>b.createElement("div",{className:Ee()(nt.head,Qt),style:yn},b.createElement("span",{className:"primary-hover",onClick:qt},b.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),b.createElement("b",{title:En},En),b.createElement("div",{className:nt.node},xn)),Be={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"},Mt=({confirmShow:Qt=!0,confirmTitle:yn,confirmClick:xn,cancelShow:qt=!0,cancelTitle:En,cancelClick:Fn,className:Tn,style:_t,confirmLoading:Cn=!1})=>b.createElement("div",{className:Ee()(Be.btns,Tn),style:_t},Qt&&b.createElement(ne.ZP,{loading:Cn,onClick:xn,type:"primary",className:Be.confirm},yn),qt&&b.createElement(ne.ZP,{onClick:Fn,className:Be.cancel},En)),kt={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"},At=({className:Qt,style:yn={},LeftContent:xn,children:qt,RightContent:En})=>b.createElement("div",{className:Ee()(kt.fixedBottom,Qt),style:yn},b.createElement("div",{className:kt.wrap},b.createElement("div",{className:kt.left},xn),b.createElement("div",{className:kt.center},qt),b.createElement("div",{className:kt.right},En))),vn={flex_box_center:"flex_box_center___tY8Yn",flex_space_between:"flex_space_between___vHdYA",flex_box_vertical_center:"flex_box_vertical_center___pa61F",flex_box_center_end:"flex_box_center_end___HyDXt",flex_box_column:"flex_box_column___UjZek",crumbs:"crumbs___V41Oe",hover:"hover___bEIVd"},_e=({className:Qt,style:yn={},dataSource:xn=[]})=>b.createElement("div",{className:Ee()(vn.crumbs,Qt),style:yn},xn.map((qt,En)=>En<xn.length-1?b.createElement(b.Fragment,{key:En},qt.path||qt.onClick?b.createElement("span",{className:vn.hover,onClick:qt!=null&&qt.onClick?qt.onClick:()=>Pt.history.push(qt.path)},qt.name):b.createElement("span",null,qt.name),b.createElement("span",null,"\xA0",">","\xA0")):b.createElement("span",{key:En,style:{color:"#5F6368"}},qt.name))),Bt=z(11938),Ut=Object.defineProperty,on=Object.defineProperties,Le=Object.getOwnPropertyDescriptors,xt=Object.getOwnPropertySymbols,zt=Object.prototype.hasOwnProperty,nn=Object.prototype.propertyIsEnumerable,Sn=(Qt,yn,xn)=>yn in Qt?Ut(Qt,yn,{enumerable:!0,configurable:!0,writable:!0,value:xn}):Qt[yn]=xn,zn=(Qt,yn)=>{for(var xn in yn||(yn={}))zt.call(yn,xn)&&Sn(Qt,xn,yn[xn]);if(xt)for(var xn of xt(yn))nn.call(yn,xn)&&Sn(Qt,xn,yn[xn]);return Qt},rr=(Qt,yn)=>on(Qt,Le(yn)),pr=(Qt,yn)=>{var xn={};for(var qt in Qt)zt.call(Qt,qt)&&yn.indexOf(qt)<0&&(xn[qt]=Qt[qt]);if(Qt!=null&&xt)for(var qt of xt(Qt))yn.indexOf(qt)<0&&nn.call(Qt,qt)&&(xn[qt]=Qt[qt]);return xn};const{Countdown:kn}=Bt.default;var Ye=Qt=>{var yn=Qt,{onChange:xn}=yn,qt=pr(yn,["onChange"]);const[En,Fn]=(0,b.useState)(null);(0,b.useEffect)(()=>{typeof En=="number"&&En>=0&&xn(En)},[En]);const Tn=_t=>{const Cn=Math.floor(_t/1e3);Fn(Cn)};return b.createElement(kn,rr(zn({},qt),{onChange:Tn}))}},2408:function(Kn,cn,z){"use strict";z.d(cn,{Z:function(){return Pe}});var b=z(59301);function Pe(fe,rt){const xe=(0,b.useRef)();(0,b.useEffect)(()=>{xe.current=fe}),(0,b.useEffect)(()=>{function ge(){xe.current()}if(rt!==null){let Ee=setInterval(ge,rt);return()=>clearInterval(Ee)}},[rt])}},26386:function(Kn,cn,z){"use strict";z.d(cn,{$J:function(){return fe},JZ:function(){return xe},bN:function(){return Ee},jP:function(){return ge},rO:function(){return rt}});var b=z(22972),Pe=(Qe,Ae,de)=>new Promise((tt,ve)=>{var Lt=Ne=>{try{Ve(de.next(Ne))}catch(Ze){ve(Ze)}},at=Ne=>{try{Ve(de.throw(Ne))}catch(Ze){ve(Ze)}},Ve=Ne=>Ne.done?tt(Ne.value):Promise.resolve(Ne.value).then(Lt,at);Ve((de=de.apply(Qe,Ae)).next())});function fe(Qe){return(0,b.U2)(`libraries/${Qe}.json`)}function rt(){return(0,b.U2)("library_tags.json")}function xe(Qe){return Pe(this,null,function*(){return(yield(0,b.IV)(`attachments/${Qe}.json`)).status===0})}function ge(Qe){return(0,b.v_)("libraries.json",Qe)}function Ee(Qe,Ae){return(0,b.gz)(`libraries/${Qe}.json`,Ae)}},37829:function(Kn,cn,z){"use strict";z.d(cn,{Z:function(){return de}});var b=z(62957),Pe={ul:"ul___TdfYY"},fe=z(32637),rt=z(59301),xe=Object.getOwnPropertySymbols,ge=Object.prototype.hasOwnProperty,Ee=Object.prototype.propertyIsEnumerable,Qe=(tt,ve)=>{var Lt={};for(var at in tt)ge.call(tt,at)&&ve.indexOf(at)<0&&(Lt[at]=tt[at]);if(tt!=null&&xe)for(var at of xe(tt))ve.indexOf(at)<0&&Ee.call(tt,at)&&(Lt[at]=tt[at]);return Lt},de=tt=>{var ve=tt,{open:Lt,onCancel:at}=ve,Ve=Qe(ve,["open","onCancel"]);return rt.createElement(b.default,{centered:!0,open:Lt,title:rt.createElement("div",{style:{fontWeight:"bold"}},"\u8054\u7CFB\u6559\u7814\u52A9\u7406"),width:"696px",onCancel:at,footer:null},rt.createElement("div",null,rt.createElement("div",{className:"tc"},rt.createElement("img",{className:"mt10",src:fe,width:"182px",height:"181px",style:{borderRadius:"2px",border:"1px solid #D8E3E9"}})),rt.createElement("div",{style:{color:"#191919",fontWeight:"bold"},className:"tc font16 mt10"},"\u514D\u8D39\u6559\u7814\u52A9\u7406"),rt.createElement("div",{style:{color:"#191919",fontWeight:"bold"},className:"tc font16"},"\u5FAE\u4FE1\u626B\u4E00\u626B\u6DFB\u52A0"),rt.createElement("div",{style:{color:"#333"},className:"pt30 font14"},rt.createElement("ul",{className:Pe.ul},rt.createElement("li",null,"1\u3001\u89E3\u7B54\u8001\u5E08\u7591\u60D1\u3001\u5E2E\u52A9\u8001\u5E08\u66F4\u5FEB\u719F\u6089\u548C\u4F7F\u7528\u5E73\u53F0\u6559\u5B66\u3002"),rt.createElement("li",null,"2\u3001\u534F\u52A9\u8001\u5E08\u521B\u5EFA\u8BFE\u5802\u3001\u8BFE\u7A0B\u8BBE\u8BA1\u3001\u505A\u597D\u6559\u5B66\u5DE5\u4F5C\u3002"),rt.createElement("li",null,"3\u3001\u6839\u636E\u8001\u5E08\u6559\u5B66\u65B9\u5411\uFF0C\u5206\u4EAB\u5934\u6B4C\u5E73\u53F0C9\u9662\u6821\u3001985\u9AD8\u6821\u3001211\u9AD8\u6821\u3001\u53CC\u4E00\u6D41\u9AD8\u6821\u8001\u5E08\u7ECF\u5178\u5B9E\u8DF5\u6559\u5B66\u6848\u4F8B\u3002")))))}},54466:function(Kn,cn,z){"use strict";z.r(cn),z.d(cn,{default:function(){return wn}});var b=z(59301),Pe=z(63823),fe=z(37568),rt=z(53420),xe=z(82326),ge=z(28284),Ee=z(6767),Qe=z(25399),Ae=z(62957),de=z(1560),tt=z(77019),ve=z(5269),Lt=z(58755),at=z(47889),Ve=z(62673),Ne=z(18287),Ze=z(94968),pt=z(7939),mt=z(29787),Xt=z(32862),He={bg:"bg____raBL",wrap:"wrap___HeK2P",crumbs:"crumbs___bamBY",titleWrap:"titleWrap___UpC0c",flexRow:"flexRow___WjoyK",flexJustifyCenter:"flexJustifyCenter___V6ndk",flexAlignEnd:"flexAlignEnd___So64w",flexAlignCenter:"flexAlignCenter___WWRXs",flexColumn:"flexColumn___b0Fz8",formWrap:"formWrap___Bmhgz",fieldWrap:"fieldWrap___pR4UB",mdWrap:"mdWrap___FPskk",tree:"tree___bVp9O",backgroundFa:"backgroundFa___ghlCO",aBtn:"aBtn___M7dWu",bBtn:"bBtn___XycZO",cascaderWrap:"cascaderWrap___CPNAV",listItem:"listItem____eV5T",right:"right___x8wr7",one:"one___wdYdi",schoolHintWrap:"schoolHintWrap___AWsQj",colorCDCDCD:"colorCDCDCD___xguLh",color0152d9:"color0152d9___MEYYd",spanText:"spanText___Srs_u",addTypeRadio:"addTypeRadio___JTRkP",add_ai:"add_ai___JGWFe",paths_content:"paths_content___Rzg9i",content_header:"content_header___LvvU1",header_box:"header_box___c05Gw",header_bj:"header_bj____CaVY",header_text:"header_text___jNO1N",lianjie:"lianjie___vtxBe",buzou_box:"buzou_box___qkXlL",no_start_style:"no_start_style___ONC9T",start_style:"start_style___vWVZl"},Ke=z(68911),ut=z(35783),ft=z(22972),jt=z(584),Ot={cascaderContainer:"cascaderContainer___uz26h",valueWrap:"valueWrap___zTHXb",valueItem:"valueItem___vBNoA",placeholder:"placeholder___bJTkn",modalWrap:"modalWrap___uhROO",left:"left___oZrbl",right:"right___y9QjL",disabled:"disabled___LVx0f",emptyWrap:"emptyWrap___KG5pK"},yt=z(99267),Et=z(38819),pe=Object.defineProperty,Je=Object.defineProperties,Xe=Object.getOwnPropertyDescriptors,ue=Object.getOwnPropertySymbols,Nt=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable,wt=(un,sn,We)=>sn in un?pe(un,sn,{enumerable:!0,configurable:!0,writable:!0,value:We}):un[sn]=We,ln=(un,sn)=>{for(var We in sn||(sn={}))Nt.call(sn,We)&&wt(un,We,sn[We]);if(ue)for(var We of ue(sn))et.call(sn,We)&&wt(un,We,sn[We]);return un},ke=(un,sn)=>Je(un,Xe(sn)),he=(un,sn)=>{var We={};for(var dt in un)Nt.call(un,dt)&&sn.indexOf(dt)<0&&(We[dt]=un[dt]);if(un!=null&&ue)for(var dt of ue(un))sn.indexOf(dt)<0&&et.call(un,dt)&&(We[dt]=un[dt]);return We};const Ct=(0,b.createRef)();var Kt=({dataSource:un,placeholder:sn,defaultValue:We,onChange:dt})=>{const[ze,gt]=(0,b.useState)(!1),[$e,St]=(0,b.useState)({data:[],objData:{},ids:[]}),[Oe,Ft]=(0,b.useState)({});(0,b.useEffect)(()=>{window.addEventListener("click",()=>{gt(!1),Ft({})})},[]),(0,b.useEffect)(()=>{if(We){let je={},it=[];We.forEach(an=>{const dn=an,{sub_discipline:hn}=dn,$n=he(dn,["sub_discipline"]);hn&&(je[hn.id]=ke(ln({},$n),{sub_disciplines:[hn]}),it.push(hn.id))}),St({ids:it,data:Object.values(je),objData:je}),dt(it)}},[We]);const Zt=()=>b.createElement("div",{className:Ot.emptyWrap},b.createElement(jt.Z,{image:jt.Z.PRESENTED_IMAGE_SIMPLE})),De=je=>{if($e.ids.includes(je.id))return!1;const it=Oe,{sub_disciplines:an}=it,dn=he(it,["sub_disciplines"]),hn=ke(ln({},$e.objData),{[je.id]:ke(ln({},dn),{sub_disciplines:[je]})});St({ids:[...$e.ids,je.id],data:Object.values(hn),objData:hn}),dt([...$e.ids,je.id])},Te=je=>{const it=$e.objData;delete it[je];const an=$e.ids.filter(dn=>dn!==je);St({data:Object.values(it),objData:it,ids:an}),dt(an)};let Me=45;return Ct&&Ct.current&&Ct.current.clientHeight>45&&(Me=Ct.current.clientHeight+5),b.createElement("div",{className:Ot.cascaderContainer,onClick:je=>{je.stopPropagation()}},b.createElement("div",{ref:Ct,className:Ot.valueWrap,onClick:()=>gt(!ze)},$e.data.length===0&&b.createElement("span",{className:Ot.placeholder},sn||"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B"),$e.data.map(je=>b.createElement("div",{className:Ot.valueItem,key:je.id},b.createElement("span",null,je.name),b.createElement("span",null,"/"),b.createElement("span",null,je.sub_disciplines[0].name),b.createElement("span",{onClick:it=>{it.stopPropagation(),it.preventDefault(),Te(je.sub_disciplines[0].id)}},b.createElement(yt.Z,null))))),ze&&b.createElement("div",{className:Ot.modalWrap,style:{top:Me}},b.createElement("div",{className:Ot.left},un.length===0&&Zt(),un.length>0&&un.map(je=>b.createElement("div",{key:je.id,onClick:()=>{Ft(je)}},b.createElement("span",null,je.name),b.createElement("span",null,b.createElement(Et.Z,null))))),Oe.sub_disciplines&&b.createElement("div",{className:Ot.right},Oe.sub_disciplines.length===0&&Zt(),Oe.sub_disciplines.length>0&&Oe.sub_disciplines.map(je=>{const it=$e.ids.includes(je.id);return b.createElement("div",{key:je.id,className:it?Ot.disabled:"",onClick:()=>{De(je),gt(!1)}},je.name)}))))},Ce=z(70858),ot=z(79939),lt=z(66649),Wt=z.n(lt),ct=z(29679),$t=z(19248),vt=z(77108),gn={flexRow:"flexRow___qY1Ro",flexColumn:"flexColumn___xTKsc",formWrap:"formWrap___OJ1NZ",example:"example___XZnZv",footerWrap:"footerWrap___DSZCv"},Tt=z(59301),ie=Object.defineProperty,ne=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,oe=Object.prototype.propertyIsEnumerable,se=(un,sn,We)=>sn in un?ie(un,sn,{enumerable:!0,configurable:!0,writable:!0,value:We}):un[sn]=We,re=(un,sn)=>{for(var We in sn||(sn={}))te.call(sn,We)&&se(un,We,sn[We]);if(ne)for(var We of ne(sn))oe.call(sn,We)&&se(un,We,sn[We]);return un},le=(un,sn)=>{var We={};for(var dt in un)te.call(un,dt)&&sn.indexOf(dt)<0&&(We[dt]=un[dt]);if(un!=null&&ne)for(var dt of ne(un))sn.indexOf(dt)<0&&oe.call(un,dt)&&(We[dt]=un[dt]);return We},me=(un,sn,We)=>new Promise((dt,ze)=>{var gt=Oe=>{try{St(We.next(Oe))}catch(Ft){ze(Ft)}},$e=Oe=>{try{St(We.throw(Oe))}catch(Ft){ze(Ft)}},St=Oe=>Oe.done?dt(Oe.value):Promise.resolve(Oe.value).then(gt,$e);St((We=We.apply(un,sn)).next())});const Dt=(un,sn)=>sn.some(We=>We.label.toLowerCase().indexOf(un.toLowerCase())>-1),Re=fe.default.TextArea,Fe=un=>{var sn=un,{newCourse:We,globalSetting:dt,loading:ze,dispatch:gt,schoolName:$e,onSuccess:St=()=>{}}=sn,Oe=le(sn,["newCourse","globalSetting","loading","dispatch","schoolName","onSuccess"]);const[Ft]=ge.default.useForm();(0,b.useEffect)(()=>{Ft.setFieldsValue({name:$e})},[$e]);const Zt=De=>me(void 0,null,function*(){const{name:Te,city:Me=[],address:je,remarks:it}=De||{},an=yield gt({type:"newCourse/appplySchool",payload:{name:Te,province:Me[0],city:Me[1],address:je,remarks:it}});if((an==null?void 0:an.status)==2){const dn=Ae.default.confirm({icon:null,width:600,centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:Tt.createElement(Tt.Fragment,null,Tt.createElement("p",null,"\u7CFB\u7EDF\u68C0\u6D4B\u5230\u60A8\u7533\u8BF7\u65B0\u589E\u7684\u5355\u4F4D\u5DF2\u5B58\u5728\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u4E3A\u8BE5\u5355\u4F4D\uFF1F"),Tt.createElement(Ce.default,{columns:[{title:"\u5B66\u6821/\u5355\u4F4D",dataIndex:"name"},{title:"\u7528\u6237\u6570",width:150,dataIndex:"users_count"}],dataSource:[re({},an)],pagination:!1})),onOk:()=>me(void 0,null,function*(){yield St(Te),dn.destroy(),gt({type:"newCourse/setActionTabs",payload:{}})}),onCancel:()=>{dn.destroy()}});return}gt({type:"newCourse/setActionTabs",payload:{}}),an.status==0&&(Ee.ZP.success("\u65B0\u589E\u53D1\u5E03\u5355\u4F4D\u6210\u529F\uFF01"),St(Te))});return Tt.createElement(Ae.default,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,open:We.actionTabs.key==="NewCourse-AppplySchool",title:"\u7533\u8BF7\u53D1\u5E03\u5355\u4F4D",width:"600px",footer:null},Tt.createElement(ge.default,{className:gn.formWrap,form:Ft,labelCol:{span:4},wrapperCol:{span:20},onFinish:Zt},Tt.createElement(ge.default.Item,{label:"\u53D1\u5E03\u5355\u4F4D\uFF1A",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5B66\u6821\u6216\u5DE5\u4F5C\u5355\u4F4D"}]},Tt.createElement(fe.default,{placeholder:"\u8BF7\u8F93\u5165\u53D1\u5E03\u5355\u4F4D"})),Tt.createElement("div",{className:`${gn.flexRow} ${gn.example}`},Tt.createElement("div",null,"\u793A\u4F8B\uFF1A"),Tt.createElement("div",{className:gn.flexColumn},Tt.createElement("div",null,Tt.createElement(ct.Z,{style:{color:"rgb(82, 196, 26)"}}),Tt.createElement("span",{className:"font14 ml5"},"\u6B63\u786E\u793A\u4F8B\uFF1A\u6570\u636E\u7ED3\u6784")),Tt.createElement("div",null,Tt.createElement($t.Z,{style:{color:"red"}}),Tt.createElement("span",{className:"font14 ml5"},"\u9519\u8BEF\u793A\u4F8B\uFF1A\u6570\u636E\u7ED3\u6784",Wt()().format("YYYY"),"\u6625")))),Tt.createElement(ge.default.Item,{label:"\u5730\u533A\uFF1A",name:"city"},Tt.createElement(ot.Z,{allowClear:!0,size:"middle",options:vt.P,placeholder:"\u8BF7\u9009\u62E9\u6240\u5728\u5730",showSearch:{matchInputWidth:!0,filter:Dt}})),Tt.createElement(ge.default.Item,{label:"\u8BE6\u7EC6\u5730\u5740\uFF1A",name:"address"},Tt.createElement(fe.default,{placeholder:"\u8BF7\u586B\u5199\u5B8C\u6574\u7684\u5730\u5740\u4FE1\u606F"})),Tt.createElement(ge.default.Item,{label:"\u8BF4\u660E\uFF1A",name:"remarks"},Tt.createElement(Re,{placeholder:"\u518D\u6B21\u8BF4\u660E\u7279\u522B\u60C5\u51B5\uFF08\u9009\u586B\uFF09"})),Tt.createElement("div",{className:gn.footerWrap},Tt.createElement(ge.default.Item,null,Tt.createElement(pt.ZP,{className:"mr5",size:"middle",onClick:()=>{gt({type:"newCourse/setActionTabs",payload:{}})}},"\u53D6\u6D88"),Tt.createElement(pt.ZP,{size:"middle",type:"primary",htmlType:"submit",loading:ze["newCourse/appplySchool"]},"\u4FDD\u5B58")))))};var qe=(0,Pe.connect)(({newCourse:un,loading:sn,globalSetting:We})=>({newCourse:un,globalSetting:We,loading:sn.effects}))(Fe),nt=z(37829),st=z(28349),we="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAYIAAAAoCAYAAADzCv21AAAAAXNSR0IArs4c6QAAEsNJREFUeF7tXW2OY7cRlOZAQXKEvaJ/r+EcZQ4QYxfIRXKB7AskflVVf5DUjA3boWHY0kivxUf2R1Wzm+/+07//c93qP1d/dbtdzzf32+12Pf99/PP8H76mP95vF34XZLWL8U9FfvvhLjaUfz3GAtfg5c9hjLu43a46lnC8JKqMO5FPv1XnpVxD08Pv6fYec1jnUuaRxy7zrvLHUsCEPV4O+bhGKru853ulZXLkF3njW/G8t7kI5Lt603SqfKhjt3PTvnV/3seYUVkHvA8QYvRXdLTcWxm/6udc/0WnXNlDIVmnVvR/2J6/rmxMbGvD1Hxb1sXJ7uVCd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e/fJiOFsGVsVURFJEpZJENErgAivEP/N8brFPTk0bd0asNq1QpilqoikR8WD5XkQPzczGRscfuMZAi6u/e4u/8oYy0sZLWBAGNxaW5vPWIgec3chNnhCrNAFDaIZtmcZ5V8NAMkmpuUtC27eAEeSJfk6qtu90oSz37/v7+8Pt7e2RTCZDzp5rii5a7mdZ6vUvvXQuOuebSS/q+8WqW3zg9jXL6vVeq89xpfPcsEYqk0U1SbPQq84baYMR1klq6sWfJfPOOrDiPeO80tJ57/c/qztwQxtp/SYFqJm6J1yYty404vfyzp/V6nrvfa7JHfi5MNIGY72SZ5UOOHj9e3nnNVlC753k3b4DP1dGukQIXL+H9Wt9S3vgvdD23V5m753/ndyBnzsjXXgzFuat7+Wc72S5vPe31+MO/D88wFElofZciQAAAABJRU5ErkJggg==",kt=z.p+"static/shiyong.3f0aff1d.png",Yt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAABQVJREFUWEfNmXes32MUxj8PagS1QghJiU1pxExsFbUqitoSKzVilEjoHzVj/KEEDYnGbq3aexNiRRGjlMTee8+K432u87u+99ffvPdK7kl+f/3e8bznPec5z3m/oh8WEfMBGwPbAhsCawIrAIvncj8BnwFvAS8CjwMvSPq72+3UzYSIWBE4BjgQ+BZ4FHgOmAN8AhiYzUA9di1gM2A0sDQwHZgqyWM7so4ARsQywFnA3sDVwJWS3uhohxwUEesAhwIHAzcDkyV9026NtgAjYl/gwuKNGw1Skj3Xb4sIe3Jy8brXnSjpplaLNQUYEQsAlwDbeTFJL/cbVYOJEbFBHvox4FhJfzVavyHAiFgEmAk4qPeX9PNggqutFRGLAdcDTrrxkn6r32cegOm5O4DvgEOanWywAOd+VwFLAbvX79cI4GWZgXv83+AqnnQ43WYmkHRU9fB9AGZCnGFuq11rRPSMkRSD4bWIGAacU650tiQzQo/ldZszT60mTi/ApJLXgZ2rCRERnuSY3FHShwMBmQR/Q9LVLEkm+17LxLkPGFmj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tNHghy6j0eVqx66z291aT80HzDrQA7dJ+A6oEPzEb0J2dY+Q2yUnyGsrKufIT7PzxAWsv3+DPEPkKKBQOOiq+AAAAAASUVORK5CYII=",At=z(58617),vn=z(29596),Gt=z(10102),_e=z(84547),Bt=z(59301),Ut=Object.defineProperty,on=Object.defineProperties,Le=Object.getOwnPropertyDescriptors,xt=Object.getOwnPropertySymbols,zt=Object.prototype.hasOwnProperty,nn=Object.prototype.propertyIsEnumerable,Sn=(un,sn,We)=>sn in un?Ut(un,sn,{enumerable:!0,configurable:!0,writable:!0,value:We}):un[sn]=We,zn=(un,sn)=>{for(var We in sn||(sn={}))zt.call(sn,We)&&Sn(un,We,sn[We]);if(xt)for(var We of xt(sn))nn.call(sn,We)&&Sn(un,We,sn[We]);return un},rr=(un,sn)=>on(un,Le(sn)),pr=(un,sn)=>{var We={};for(var dt in un)zt.call(un,dt)&&sn.indexOf(dt)<0&&(We[dt]=un[dt]);if(un!=null&&xt)for(var dt of xt(un))sn.indexOf(dt)<0&&nn.call(un,dt)&&(We[dt]=un[dt]);return We},dr=un=>{var sn=un,{value:We=[],onChange:dt}=sn,ze=pr(sn,["value","onChange"]);const gt="#3061D0",[$e,St]=(0,b.useState)(""),Oe=Zt=>{const De=We.filter((Te,Me)=>Me!==Zt);dt(De)},Ft=Zt=>{if(Zt.preventDefault(),!!$e){if(We!=null&&We.find(De=>(De==null?void 0:De.tag_name)===$e)){Ee.ZP.warning("\u4E0D\u5141\u8BB8\u6DFB\u52A0\u76F8\u540C\u6807\u7B7E");return}dt==null||dt([...We||[],{tag_name:Zt.target.value}]),St("")}};return Bt.createElement(Bt.Fragment,null,Bt.createElement("div",zn({className:"flex item-center gap-10px"},ze),Bt.createElement(fe.default,{value:$e,placeholder:"\u8BF7\u8F93\u5165\u8BFE\u7A0B\u6807\u7B7E",maxLength:20,showCount:!0,onChange:Zt=>St(Zt.target.value),onPressEnter:Ft,onBlur:Ft}),Bt.createElement("span",{className:"c-grey-666 text-nowrap"},"\u56DE\u8F66\u6DFB\u52A0\u6807\u7B7E")),!!(We!=null&&We.length)&&Bt.createElement("div",{className:"flex flex-wrap gap-10px mt-12px"},We==null?void 0:We.map((Zt,De)=>Bt.createElement(_e.Z,{defaultValue:(Zt==null?void 0:Zt.tag_color)||gt,trigger:"hover",onChangeComplete:Te=>{dt==null||dt(We.map((Me,je)=>je===De?rr(zn({},Me),{tag_color:typeof Te=="string"?Te:Te.toHexString()}):Me))}},Bt.createElement("div",{key:De,className:"flex item-center gap-4px px-8px py-4px rounded-4px text-14px bg-grey-ede",style:{background:(Zt==null?void 0:Zt.tag_color)||gt}},Zt==null?void 0:Zt.tag_name,Bt.createElement("span",{className:"iconfont icon-guanbi current",style:{fontSize:"12px"},onClick:()=>Oe(De)}))))))},Ye=z(59301),Qt=Object.defineProperty,yn=Object.defineProperties,xn=Object.getOwnPropertyDescriptors,qt=Object.getOwnPropertySymbols,En=Object.prototype.hasOwnProperty,Fn=Object.prototype.propertyIsEnumerable,Tn=(un,sn,We)=>sn in un?Qt(un,sn,{enumerable:!0,configurable:!0,writable:!0,value:We}):un[sn]=We,_t=(un,sn)=>{for(var We in sn||(sn={}))En.call(sn,We)&&Tn(un,We,sn[We]);if(qt)for(var We of qt(sn))Fn.call(sn,We)&&Tn(un,We,sn[We]);return un},Cn=(un,sn)=>yn(un,xn(sn)),Bn=(un,sn)=>{var We={};for(var dt in un)En.call(un,dt)&&sn.indexOf(dt)<0&&(We[dt]=un[dt]);if(un!=null&&qt)for(var dt of qt(un))sn.indexOf(dt)<0&&Fn.call(un,dt)&&(We[dt]=un[dt]);return We},Ln=(un,sn,We)=>new Promise((dt,ze)=>{var gt=Oe=>{try{St(We.next(Oe))}catch(Ft){ze(Ft)}},$e=Oe=>{try{St(We.throw(Oe))}catch(Ft){ze(Ft)}},St=Oe=>Oe.done?dt(Oe.value):Promise.resolve(Oe.value).then(gt,$e);St((We=We.apply(un,sn)).next())});const{TextArea:Zn}=fe.default,{TreeNode:yr}=rt.default,ur=xe.default.Option,Jt=un=>{var sn=un,{user:We,newCourse:dt,globalSetting:ze,loading:gt,dispatch:$e}=sn,St=Bn(sn,["user","newCourse","globalSetting","loading","dispatch"]),Oe,Ft,Zt,De,Te,Me,je,it,an,dn,hn,$n,ar,Cr,qn,Gn,Jn,gr,Ge,bt,Vt,Ht,tn,An,Vn,tr,Nn,or,cr,nr,hr,lr,Er,Ir,zr,Pr,Or,Sr,Tr,br,wr,_n,In,er,Rn,bn,ir,mr,On,Hn,Xn,vr,Ar,Fr,Rr,Ur,jr,ro,Yr,Xr,eo,vo,Fo,Yo,Bo,Ko,Jr,Qr,Vo,Wo,po,ko,Xo,Ao,Zo,Ho,ba,Ha,xa,ga,Ei,wi,Io,Lo,Wr;const[Hr]=(0,Pe.useSearchParams)(),no=(0,Pe.useParams)(),[bo]=ge.default.useForm(),[ua,qo]=(0,b.useState)({}),[wo,Po]=(0,b.useState)(),ia=(0,b.useRef)(),[Ja,Wa]=(0,b.useState)(!0),[ci,ai]=(0,b.useState)(!1),[$a,Di]=(0,b.useState)(),[di,yi]=(0,b.useState)(),[Gi,sl]=(0,b.useState)(!0),[Zi,_l]=(0,b.useState)(!1),[ml,kl]=(0,b.useState)(!1),[Ll,us]=(0,b.useState)(-1),[Zl,Xi]=(0,b.useState)(!0),[tl,Bl]=(0,b.useState)([]),[Hl,gl]=(0,b.useState)([]),[Il,zl]=(0,b.useState)(!1),[ul,fi]=(0,b.useState)(!1),[oa,Uo]=(0,b.useState)(!1),[ti,hi]=(0,b.useState)(!1),[Aa]=ge.default.useForm(),Ra=(0,b.useRef)(),[pn,Hi]=(0,b.useState)({}),[nl,Oi]=(0,b.useState)(!1),[Ni,Mi]=(0,b.useState)(!1),[cl,cs]=(0,b.useState)(!1);(0,b.useEffect)(()=>()=>{window.clearInterval(Ra.current)},[]);const jl=()=>Ln(void 0,null,function*(){var Nr,Jo;const ea=yield(0,ft.ZP)("/api/subject_generations/get.json",{method:"get"});(ea==null?void 0:ea.status)==0&&(Hi(ea==null?void 0:ea.data),(((Nr=ea==null?void 0:ea.data)==null?void 0:Nr.state)==1||((Jo=ea==null?void 0:ea.data)==null?void 0:Jo.state)==-1)&&window.clearInterval(Ra.current))}),Pl=()=>Ln(void 0,null,function*(){const Nr=yield(0,ft.ZP)("/api/subject_generations/get_file.json",{method:"get"});(Nr==null?void 0:Nr.status)==0&&Aa.setFieldValue("file_ids",(0,st.z)(Nr==null?void 0:Nr.data))}),dl=[{title:"\u5C55\u793A\u8BFE\u7A0B\u6982\u8981\uFF08\u9009\u4E2D\uFF0C\u5219\u9ED8\u8BA4\u5C55\u793A\u6240\u6709\u6982\u89C8\u6A21\u5757\uFF09",key:"all",children:[{title:"\u5C55\u793A\u8BFE\u7A0B\u7AE0\u8282",key:"chapter"},{title:"\u5C55\u793A\u6392\u884C\u699C",key:"charts"},{title:"\u5C55\u793A\u8BC1\u4E66\u7533\u8BF7",key:"cert_apply"},{title:"\u5C55\u793A\u77E5\u8BC6\u56FE\u8C31",key:"knowledge_graph"}]}],[_o,ii]=(0,b.useState)([]),[bi,rl]=(0,b.useState)(!1),Wl=_o.length>0&&_o.length<4,[es,ds]=(0,b.useState)(1),[El,Ls]=(0,b.useState)([]),[xs,$l]=(0,b.useState)([]);(0,b.useEffect)(()=>{var Nr;nu(),ts(),ia.current=no.pathId,Po(!!ia.current),(0,Ke.Dk)((Nr=ze==null?void 0:ze.setting)==null?void 0:Nr.name),bo.setFieldsValue({learning_notes_title:"\u8BFE\u7A0B\u987B\u77E5"}),ia.current&&Es()},[]);const nu=()=>Ln(void 0,null,function*(){const Nr=yield(0,ft.ZP)("/api/disciplines.json",{method:"get",params:{source:"subject"}});Ls(Nr.disciplines)}),ts=()=>Ln(void 0,null,function*(){Xi(!0);const Nr=yield $e({type:"newCourse/getSchoolOption",payload:{display_aliases:!0}});Xi(!1),Bl(Nr==null?void 0:Nr.schools),gl(Nr==null?void 0:Nr.schools)}),Ss=()=>{if(Hr.get("username")){Pe.history.push(`/users/${Hr.get("username")}/paths`);return}Pe.history.push(wo?`/paths/${ia.current}`:"/paths")},Es=()=>Ln(void 0,null,function*(){var Nr,Jo,ea,Qa,ka,Vl,fl,wl,ns,Fl,Ul,yl,Gl,hl,vl,ol,Vi,al;const fo=yield $e({type:"newCourse/getEditCourseData",payload:{id:ia.current}});if(fo){let Zs={name:fo.name,name_en:fo.name_en,intro:fo.description,content:(Nr=fo==null?void 0:fo.toast)==null?void 0:Nr.content,notice:fo.learning_notes,school_id:fo==null?void 0:fo.school,learning_notes_title:fo.learning_notes_title||"\u8BFE\u7A0B\u987B\u77E5",custom_tags:(fo==null?void 0:fo.custom_tags)||[]};fo.disciplines&&fo.disciplines.length>0&&$l(fo.disciplines),bo.setFieldsValue(Zs),kl((Jo=fo==null?void 0:fo.toast)==null?void 0:Jo.is_open),us((ea=fo==null?void 0:fo.toast)==null?void 0:ea.open_num),Wa(fo==null?void 0:fo.cust_seq),ai(fo==null?void 0:fo.show_spoc),_l(fo==null?void 0:fo.show_history),fi(fo==null?void 0:fo.show_course_section),Uo(fo==null?void 0:fo.is_use_ai),zl(fo==null?void 0:fo.allow_download),sl(fo==null?void 0:fo.show_tag),rl(fo==null?void 0:fo.allow_set_subject_summary),fo!=null&&fo.show_chapter&&_o.push("chapter"),fo!=null&&fo.show_charts&&_o.push("charts"),fo!=null&&fo.show_cert_apply&&_o.push("cert_apply"),fo!=null&&fo.show_knowledge_graph&&_o.push("knowledge_graph"),fo!=null&&fo.show_chapter&&(fo!=null&&fo.show_charts)&&(fo!=null&&fo.show_cert_apply)&&(fo!=null&&fo.show_knowledge_graph)&&_o.push("all"),ii([..._o]),((Qa=fo==null?void 0:fo.attachments)==null?void 0:Qa.length)>0&&Di([{uid:(Vl=(ka=fo==null?void 0:fo.attachments)==null?void 0:ka[0])==null?void 0:Vl.id,name:(wl=(fl=fo==null?void 0:fo.attachments)==null?void 0:fl[0])==null?void 0:wl.title,response:{id:(Fl=(ns=fo==null?void 0:fo.attachments)==null?void 0:ns[0])==null?void 0:Fl.id}}]),((Ul=fo==null?void 0:fo.attachments_b)==null?void 0:Ul.length)>0&&yi([{uid:(Gl=(yl=fo==null?void 0:fo.attachments_b)==null?void 0:yl[0])==null?void 0:Gl.id,name:(vl=(hl=fo==null?void 0:fo.attachments_b)==null?void 0:hl[0])==null?void 0:vl.title,response:{id:(Vi=(ol=fo==null?void 0:fo.attachments_b)==null?void 0:ol[0])==null?void 0:Vi.id}}]),qo({name:fo.name,intro:fo.description,notice:fo.learning_notes,content:(al=fo==null?void 0:fo.toast)==null?void 0:al.content})}}),ws=Nr=>Ln(void 0,null,function*(){var Jo,ea,Qa,ka;const{name:Vl,intro:fl,notice:wl,name_en:ns,learning_notes_title:Fl,sub_discipline_ids:Ul,school_id:yl,custom_tags:Gl}=Nr||{},hl=wo?"newCourse/editCourse":"newCourse/submitCourse";let vl=!1,ol=null;if(tl.map(fo=>{yl===fo.name&&(vl=!0,ol=fo.id)}),!vl)return Ee.ZP.error(`\u672A\u627E\u5230\u5305\u542B'${yl}'\u7684\u53D1\u5E03\u5355\u4F4D`);let Vi={id:ia.current,name:Vl,name_en:ns,description:fl,learning_notes:wl,cust_seq:Ja,show_spoc:ci,school_id:ol,show_tag:Gi,show_history:Zi,show_course_section:ul,is_use_ai:oa,allow_download:Il,learning_notes_title:Fl,attachment_ids:[(ea=(Jo=$a==null?void 0:$a[0])==null?void 0:Jo.response)==null?void 0:ea.id],attachment_ids_b:[(ka=(Qa=di==null?void 0:di[0])==null?void 0:Qa.response)==null?void 0:ka.id],sub_discipline_ids:Ul,subject_toast_attributes:{is_open:ml,open_num:Ll,content:Nr.content},custom_tags:Gl};bi&&(Vi.show_chapter=_o==null?void 0:_o.includes("chapter"),Vi.show_charts=_o==null?void 0:_o.includes("charts"),Vi.show_cert_apply=_o==null?void 0:_o.includes("cert_apply"),Vi.show_knowledge_graph=_o==null?void 0:_o.includes("knowledge_graph"));const al=yield $e({type:hl,payload:_t({},Vi)});al!=null&&al.subject_id&&Pe.history.push(`/paths/${al.subject_id}`)}),Kl=()=>{$e({type:"newCourse/setActionTabs",payload:{key:"NewCourse-AppplySchool"}})},No=Nr=>{ts(),qo(Cn(_t({},bo.getFieldsValue()),{school_id:Nr}))},Al=(Nr,Jo)=>{ii(Nr)};return Ye.createElement("div",{className:He.wrap},Ye.createElement("div",{className:He.bg},Ye.createElement("div",{className:He.crumbs},Ye.createElement("span",null,"\u5B9E\u8DF5\u8BFE\u7A0B"),Ye.createElement("i",{className:"iconfont icon-zhankai1"}),Ye.createElement("b",null,wo?"\u7F16\u8F91":"\u521B\u5EFA","\u5B9E\u8DF5\u8BFE\u7A0B")),Ye.createElement("div",{className:He.titleWrap},Ye.createElement("span",null,wo?"\u7F16\u8F91":"\u521B\u5EFA","\u5B9E\u8DF5\u8BFE\u7A0B"),Ye.createElement("b",{onClick:Ss},"\u8FD4\u56DE")),!wo&&Ye.createElement(vn.tp,{style:{marginTop:"20px"},dataSource:[{name:"\u624B\u52A8\u521B\u5EFA",id:1},{name:"\u667A\u80FD\u521B\u5EFA",id:2}],value:es,onChange:Nr=>Ln(void 0,null,function*(){var Jo,ea,Qa;if(ds(Nr),Nr==1)window.clearInterval(Ra.current),Aa.resetFields();else{Pl();const ka=yield(0,ft.ZP)("/api/subject_generations/get.json",{method:"get"});(ka==null?void 0:ka.status)==0&&(Hi(ka==null?void 0:ka.data),(((Jo=ka==null?void 0:ka.data)==null?void 0:Jo.state)==1||((ea=ka==null?void 0:ka.data)==null?void 0:ea.state)==-1)&&window.clearInterval(Ra.current),((Qa=ka==null?void 0:ka.data)==null?void 0:Qa.state)==0&&(Ra.current=setInterval(()=>{jl()},1e3)))}})}),es==1&&Ye.createElement(ge.default,{form:bo,className:He.formWrap,scrollToFirstError:!0,layout:"vertical",colon:!1,onValuesChange:()=>{const Nr=bo.getFieldsValue();"school_id"in Nr&&gl(tl.filter(Jo=>{var ea,Qa,ka;return((ka=(ea=Jo==null?void 0:Jo.name)==null?void 0:ea.toUpperCase())==null?void 0:ka.indexOf((Qa=Nr==null?void 0:Nr.school_id)==null?void 0:Qa.toUpperCase()))!==-1})),qo(_t({},Nr))},onFinish:ws},Ye.createElement("div",{className:He.fieldWrap},Ye.createElement(ge.default.Item,{extra:Ye.createElement("div",{className:"tr c-grey-333 font12 mt3"},`${((Oe=ua.name)==null?void 0:Oe.length)||0}/60`),name:"name",label:"\u5B9E\u8DF5\u8BFE\u7A0B\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5B9E\u8DF5\u8BFE\u7A0B\u540D\u79F0"}]},Ye.createElement(Zn,{maxLength:60,placeholder:"\u4F8B\u5982\uFF1A\u5927\u5B66\u8BA1\u7B97\u673A\u57FA\u7840 \u2014\u2014 \u8BA1\u7B97\u601D\u7EF4"})),Ye.createElement(ge.default.Item,{style:{marginTop:"-24px"},name:"name_en",label:"\u82F1\u6587\u8BFE\u7A0B\u540D\u79F0",extra:Ye.createElement("div",{className:"tr c-grey-333 font12 mt3"},`${((Ft=ua.name_en)==null?void 0:Ft.length)||0}/200`),rules:[{message:"\u8BF7\u8F93\u5165\u82F1\u6587\u8BFE\u7A0B\u540D\u79F0"}]},Ye.createElement(Zn,{maxLength:200,placeholder:"College Computer Fundamentals - Computational Thinking"})),Ye.createElement(ge.default.Item,{name:"sub_discipline_ids",label:Ye.createElement("div",{style:{display:"flex",justifyContent:"space-between",width:1200}},Ye.createElement("div",null,"\u65B9\u5411&\u8BFE\u7A0B"),Ye.createElement("div",{style:{color:"#9096A3",position:"relative",left:12}},"\u6CA1\u6709\u5408\u9002\u7684\u65B9\u5411&\u8BFE\u7A0B\uFF1F",Ye.createElement("span",{style:{color:"#3061D0",cursor:"pointer"},onClick:()=>hi(!0)},"\u8054\u7CFB\u6559\u7814\u52A9\u7406"))),style:{marginTop:"-24px"}},Ye.createElement(Kt,{defaultValue:xs,dataSource:El,onChange:Nr=>bo.setFieldsValue({sub_discipline_ids:Nr})})),Ye.createElement(ge.default.Item,{name:"custom_tags",label:Ye.createElement("div",{style:{display:"inline"}},"\u8BFE\u7A0B\u6807\u7B7E",Ye.createElement(Qe.Z,{placement:"right",title:"\u914D\u7F6E\u7684\u8BFE\u7A0B\u6807\u7B7E\u5C06\u5C55\u793A\u5728\u8BFE\u7A0B\u5217\u8868\u9875\u4E0E\u8BE6\u60C5\u9875\uFF0C\u5E76\u652F\u6301\u70B9\u51FB\u6807\u7B7E\u66F4\u6362\u8BFE\u7A0B\u8BE6\u60C5\u9875\u7684\u6807\u7B7E\u989C\u8272\u3002",styles:{body:{width:520}}},Ye.createElement("span",{className:"iconfont icon-tishixiaowenhao current ml-4px",style:{fontSize:"14px",color:"#FF9D18"}}))),rules:[{validator:(Nr,Jo)=>(Jo==null?void 0:Jo.length)>2?Promise.reject("\u6700\u591A\u652F\u6301\u8BBE\u7F6E 2 \u4E2A\u6807\u7B7E"):Promise.resolve()}]},Ye.createElement(dr,null)),Ye.createElement(ge.default.Item,{label:"\u53D1\u5E03\u5355\u4F4D",name:"school_id",wrapperCol:{span:24},extra:!Zl&&ua.school_id&&!(tl!=null&&tl.find(Nr=>Nr.name===ua.school_id))&&Ye.createElement("div",{className:He.schoolHintWrap},Ye.createElement("span",{className:He.colorCDCDCD},"\u672A\u627E\u5230\u5305\u542B\u201C",ua.school_id,"\u201D\u7684\u53D1\u5E03\u5355\u4F4D\uFF0C\u5982\u6709\u9700\u8981\uFF0C\u8BF7",Ye.createElement("span",{style:{color:"blue",cursor:"pointer"},onClick:()=>{var Nr,Jo;Ae.default.info({title:"\u8054\u7CFB\u5E73\u53F0\u8FD0\u8425",width:400,icon:null,centered:!0,content:Ye.createElement("div",{style:{textAlign:"center"}},Ye.createElement("div",{style:{textAlign:"left"}},"\u8BF7\u626B\u7801\u6216\u641C\u7D22\u52A0\u5165\u5934\u6B4C\u5B98\u65B9\u4EA4\u6D41QQ\u7FA4\uFF1A",(Nr=ze==null?void 0:ze.setting)==null?void 0:Nr.homepage_tea_qq_number,"\uFF0C\u8054\u7CFB\u7FA4\u5185\u7684\u8FD0\u8425\u8FDB\u884C\u54A8\u8BE2\u548C\u7533\u8BF7\u65B0\u589E\u5B66\u6821\u540D\u79F0\u3002"),Ye.createElement("img",{src:`${ut.Z.IMG_SERVER}/${(Jo=ze==null?void 0:ze.setting)==null?void 0:Jo.homepage_tea_qq_qrcode_url}`,style:{width:"170px",height:"170px",marginTop:"20px"}})),okText:"\u6211\u77E5\u9053\u4E86"})}},"\u8054\u7CFB\u5E73\u53F0\u8FD0\u8425"),"\u7533\u8BF7\u65B0\u589E")),rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u53D1\u5E03\u5355\u4F4D"}]},Ye.createElement(de.Z,{placeholder:"\u8BF7\u8F93\u5165\u53D1\u5E03\u5355\u4F4D",showSearch:!0,size:"large"},Hl.map((Nr,Jo)=>Ye.createElement(ur,{key:Jo,value:Nr.name},Nr.name))))),Ye.createElement("div",{className:He.mdWrap},Ye.createElement(ge.default.Item,{name:"intro",label:"\u7B80\u4ECB",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5B9E\u8DF5\u8BFE\u7A0B\u7684\u7B80\u4ECB"},{whitespace:!0,message:"\u8BF7\u8F93\u5165\u5B9E\u8DF5\u8BFE\u7A0B\u7684\u7B80\u4ECB"},{max:65e3,message:"\u5B9E\u8DF5\u8BFE\u7A0B\u7684\u7B80\u4ECB\u6700\u5927\u9650\u523665000\u4E2A\u5B57\u7B26"}]},Ye.createElement(Xt.Z,{watch:!0,defaultValue:ua.intro}))),Ye.createElement("div",{className:He.mdWrap},Ye.createElement(tt.Z,{align:"top",className:"mb10 mt10"},Ye.createElement(ve.Z,null,Ye.createElement("span",{className:"c-red mr10"},"*")),Ye.createElement(ve.Z,{flex:"1"},Ye.createElement(ge.default.Item,{name:"learning_notes_title",label:"",style:{marginBottom:0},rules:[{required:!0,message:"\u8BF7\u8F93\u8BFE\u7A0B\u987B\u77E5\u6807\u9898"},{max:15,message:"\u8BF7\u8F93\u8BFE\u7A0B\u987B\u77E5\u6807\u9898\u6700\u5927\u9650\u523615\u4E2A\u5B57\u7B26"}]},Ye.createElement(fe.default,{style:{height:38},placeholder:"\u8BF7\u8F93\u5165"})))),Ye.createElement(ge.default.Item,{name:"notice",label:"",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5B9E\u8DF5\u8BFE\u7A0B\u7684\u8BFE\u7A0B\u987B\u77E5"},{whitespace:!0,message:"\u8BF7\u8F93\u5165\u5B9E\u8DF5\u8BFE\u7A0B\u7684\u8BFE\u7A0B\u987B\u77E5"},{max:65e3,message:"\u5B9E\u8DF5\u8BFE\u7A0B\u7684\u8BFE\u7A0B\u987B\u77E5\u6700\u5927\u9650\u523665000\u4E2A\u5B57\u7B26"}]},Ye.createElement(Xt.Z,{insertTemp:"1",watch:!0,defaultValue:ua.notice}))),Ye.createElement("div",{className:He.mdWrap},Ye.createElement("div",{style:{display:"flex",alignItems:"center"}},Ye.createElement(Lt.Z,{checked:ml,style:{marginRight:11,minWidth:32},onChange:Nr=>{kl(Nr)}}),Ye.createElement("span",{className:He.spanText},"\u8BFE\u7A0B\u516C\u544A",Ye.createElement("span",null,"\uFF08\u652F\u6301\u8001\u5E08\u81EA\u5B9A\u4E49\u516C\u544A\u5185\u5BB9\uFF0C\u4EE5\u5F39\u6846\u5F62\u5F0F\u63D0\u9192\u8BFE\u7A0B\u7684\u5B66\u4E60\u7528\u6237\uFF09"))),ml&&Ye.createElement(ge.default.Item,{style:{marginTop:10},name:"content",label:"",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5B9E\u8DF5\u8BFE\u7A0B\u7684\u8BFE\u7A0B\u63D0\u793A"},{max:1e4,message:"\u5B9E\u8DF5\u8BFE\u7A0B\u7684\u8BFE\u7A0B\u63D0\u793A\u6700\u5927\u9650\u523610000\u4E2A\u5B57\u7B26"}]},Ye.createElement(Xt.Z,{insertTemp:"1",watch:!0,defaultValue:ua.content})),ml&&Ye.createElement("div",{style:{marginTop:20,borderBottom:"1px solid #DBDCE0",paddingBottom:7}},Ye.createElement("label",{style:{color:"#000",marginRight:10}},"\u63D0\u793A\u6B21\u6570"),Ye.createElement(at.ZP.Group,{value:Ll,onChange:Nr=>{us(Nr.target.value)}},Ye.createElement(at.ZP,{className:"c-black",value:-1},"\u6BCF\u6B21"),Ye.createElement(at.ZP,{className:"ml20 c-black",value:1},"\u4E00\u6B21")))),Ye.createElement("div",{className:He.mdWrap,style:{marginTop:25}},Ye.createElement(Ve.default,{style:{marginLeft:bi?"28px":"0"},checked:Ja,onChange:Nr=>{Wa(Nr==null?void 0:Nr.target.checked)}},Ye.createElement("span",{className:He.spanText},"\u5C55\u793A\u9ED8\u8BA4\u7AE0\u8282\u5E8F\u53F7",Ye.createElement("span",null,"\uFF08\u9009\u4E2D\uFF0C\u5219\u4E3A\u7AE0\u8282\u4E0B\u6240\u6709\u9879\u76EE\u6DFB\u52A0\u6392\u5E8F\u7F16\u53F7\uFF09"))),Ye.createElement("br",null),Ye.createElement(Ve.default,{style:{marginTop:"10px",marginLeft:bi?"28px":"0"},checked:ci,onChange:Nr=>ai(Nr==null?void 0:Nr.target.checked)},Ye.createElement("span",{className:He.spanText},"\u81EA\u9009\u5E76\u5C55\u793ASPOC\u8BFE\u5802",Ye.createElement("span",null,"\uFF08\u9009\u4E2D\uFF0C\u5219\u5728\u6559\u5B66\u56E2\u961F\u4E0B\u65B9\u6DFB\u52A0SPOC\u8BFE\u5802\u6A21\u5757\uFF0C\u56E2\u961F\u6210\u5458\u53EF\u7BA1\u7406\u6A21\u5757\u4E2D\u8BFE\u5802\u7684\u5C55\u793A\uFF09"))),Ye.createElement("br",null),Ye.createElement(Ve.default,{style:{marginTop:"10px",marginLeft:bi?"28px":"0"},checked:Gi,onChange:Nr=>sl(Nr==null?void 0:Nr.target.checked)},Ye.createElement("span",{className:He.spanText},"\u5C55\u793A\u6280\u672F\u6807\u7B7E\u6A21\u5757",Ye.createElement("span",null,"\uFF08\u9009\u4E2D\uFF0C\u5219\u5728\u6559\u5B66\u56E2\u961F\u4E0B\u65B9\u6DFB\u52A0\u6280\u672F\u6807\u7B7E\u6A21\u5757\uFF09"))),Ye.createElement("br",null),Ye.createElement(Ve.default,{style:{marginTop:"10px",marginLeft:bi?"28px":"0"},checked:Zi,onChange:Nr=>_l(Nr==null?void 0:Nr.target.checked)},Ye.createElement("span",{className:He.spanText},"\u5C55\u793A\u5386\u53F2\u8BFE\u5802\u6A21\u5757",Ye.createElement("span",null,"\uFF08\u9009\u4E2D\uFF0C\u5219\u5728\u6559\u5B66\u56E2\u961F\u4E0B\u65B9\u6DFB\u52A0\u5386\u53F2\u8BFE\u5802\u6A21\u5757\uFF0C\u56E2\u961F\u6210\u5458\u53EF\u7BA1\u7406\u6A21\u5757\u4E2D\u8BFE\u5802\u7684\u5C55\u793A\uFF09"))),Ye.createElement("br",null),Ye.createElement(Ve.default,{style:{marginTop:"10px",marginLeft:bi?"28px":"0"},checked:Il,onChange:Nr=>zl(Nr==null?void 0:Nr.target.checked)},Ye.createElement("span",{className:He.spanText},"\u5141\u8BB8\u4E0B\u8F7D\u6559\u5B66\u8BFE\u4EF6",Ye.createElement("span",null,"\uFF08\u9009\u4E2D\uFF0C\u5219\u5141\u8BB8\u5B66\u4E60\u7528\u6237\u4E0B\u8F7D\u8BFE\u7A0B\u7AE0\u8282\u4E2D\u4E0A\u4F20\u7684\u6559\u5B66\u8BFE\u4EF6\uFF09"))),Ye.createElement("br",null),Ye.createElement(Ve.default,{style:{marginTop:"10px",marginLeft:bi?"28px":"0"},checked:ul,onChange:Nr=>fi(Nr==null?void 0:Nr.target.checked)},Ye.createElement("span",{className:He.spanText},"\u9ED8\u8BA4\u5C55\u5F00\u8BFE\u7A0B\u5C0F\u8282\u5185\u5BB9",Ye.createElement("span",null,"\uFF08\u9009\u4E2D\uFF0C\u5219\u7528\u6237\u5728\u8FDB\u5165\u662F\u5C06\u8BFE\u7A0B\u8BE6\u60C5\u9875\u9762\u65F6\uFF0C\u9ED8\u8BA4\u5C55\u5F00\u6240\u6709\u5C0F\u8282\u5185\u5BB9\uFF09"))),Ye.createElement("br",null),Ye.createElement(Ve.default,{style:{marginTop:"10px",marginLeft:bi?"28px":"0"},checked:oa,onChange:Nr=>Uo(Nr==null?void 0:Nr.target.checked)},Ye.createElement("span",{className:He.spanText},"\u663E\u793AAI\u52A9\u6559",Ye.createElement("span",null,"\uFF08\u9009\u4E2D\uFF0C\u5219\u5F00\u653E\u7ED9\u6240\u6709\u7528\u6237\u53EF\u89C1\uFF0C\u5426\u5219\u53EA\u6709AI\u6388\u6743\u7528\u6237\u53EF\u89C1\uFF09"))),Ye.createElement("br",null),bi&&Ye.createElement(Ne.default,{style:{marginTop:"10px"},showIcon:!1,className:He.tree,defaultExpandAll:!0,treeData:dl,onCheck:(Nr,Jo)=>{Al(Nr,Jo)},titleRender:Nr=>Ye.createElement(Ve.default,{checked:_o==null?void 0:_o.includes(Nr.key),indeterminate:Nr.key==="all"?Wl:!1,onChange:Jo=>{const ea=_o==null?void 0:_o.indexOf(Nr.key);if(ea>-1)if(Nr.key==="all")_o.splice(0);else{_o.splice(ea,1);const Qa=_o==null?void 0:_o.indexOf("all");Qa>-1&&_o.splice(Qa,1)}else Nr.key==="all"?_o.splice(0,_o.length,"all","chapter","charts","cert_apply","knowledge_graph"):(_o.push(Nr.key),_o.length>=4&&!(_o!=null&&_o.includes("all"))&&_o.push("all"));console.log("checkedValueList--",_o),ii([..._o])}},Nr.title)}),Ye.createElement("div",{className:"mt10"},Ye.createElement("div",{className:"c-black mb10"},"\u81EA\u5B9A\u4E49\u9876\u90E8\u80CC\u666F\u56FE"),Ye.createElement(Ze.default,{action:ut.Z.API_SERVER+"/api/attachments.json",withCredentials:!0,fileList:$a,onChange:Nr=>{var Jo,ea;const Qa=(Nr==null?void 0:Nr.file.size)/1024/1024<2;if(!((Jo=Nr.fileList)!=null&&Jo.length))return!1;Di(Qa?(ea=Nr==null?void 0:Nr.fileList)==null?void 0:ea.slice(-1):[...$a])},beforeUpload:Nr=>{const Jo=Nr.type==="image/jpeg"||Nr.type==="image/png";if(!Jo)return Ee.ZP.error("\u53EA\u80FD\u4E0A\u4F20jpg \u6216\u8005png\u56FE\u7247"),!1;const ea=Nr.size/1024/1024<2;return ea?Jo&&ea:(Ee.ZP.error("\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u5927\u4E8E2m"),!1)},onRemove:Nr=>{Di([])}},Ye.createElement("div",{className:He.aBtn},"\u4E0A\u4F20\u56FE\u7247"),Ye.createElement("span",{style:{color:"#5F6367",pointerEvents:"none"}},"\uFF08\u672C\u9879\u975E\u5FC5\u9700\u3002\u5982\u4E0D\u4E0A\u4F20\uFF0C\u5219\u4F7F\u7528\u7CFB\u7EDF\u9ED8\u8BA4\u56FE\u7247\uFF1B\u5982\u4E0A\u4F20\uFF0C\u8BF7\u9009\u62E9jpg\u3001png\u683C\u5F0F\uFF0C\u5927\u5C0F\u4E0D\u8D85\u8FC72M\uFF0C\u5EFA\u8BAE\u5C3A\u5BF81920*240\u50CF\u7D20\uFF09"))),Ye.createElement("div",{className:"mt10"},Ye.createElement("div",{className:"c-black mb10"},"\u81EA\u5B9A\u4E49\u9876\u90E8\u5185\u5BB9\u56FE"),Ye.createElement(Ze.default,{action:ut.Z.API_SERVER+"/api/attachments.json",withCredentials:!0,fileList:di,onChange:Nr=>{var Jo,ea;const Qa=(Nr==null?void 0:Nr.file.size)/1024/1024<2;if(!((Jo=Nr.fileList)!=null&&Jo.length))return!1;yi(Qa?(ea=Nr==null?void 0:Nr.fileList)==null?void 0:ea.slice(-1):[...di])},beforeUpload:Nr=>{const Jo=Nr.type==="image/jpeg"||Nr.type==="image/png";if(!Jo)return Ee.ZP.error("\u53EA\u80FD\u4E0A\u4F20jpg \u6216\u8005png\u56FE\u7247"),!1;const ea=Nr.size/1024/1024<2;return ea?Jo&&ea:(Ee.ZP.error("\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u5927\u4E8E2m"),!1)},onRemove:Nr=>{yi([])}},Ye.createElement("div",{className:He.aBtn},"\u4E0A\u4F20\u56FE\u7247"),Ye.createElement("span",{style:{color:"#5F6367",pointerEvents:"none"}},"\uFF08\u672C\u9879\u975E\u5FC5\u9700\u3002\u5982\u4E0D\u4E0A\u4F20\uFF0C\u5219\u4F7F\u7528\u7CFB\u7EDF\u9ED8\u8BA4\u56FE\u7247\uFF1B\u5982\u4E0A\u4F20\uFF0C\u8BF7\u9009\u62E9jpg\u3001png\u683C\u5F0F\uFF0C\u5927\u5C0F\u4E0D\u8D85\u8FC72M\uFF0C\u5EFA\u8BAE\u5C3A\u5BF81200*240\u50CF\u7D20\uFF09")))),Ye.createElement("div",{className:He.backgroundFa},Ye.createElement("div",{className:He.bBtn,onClick:Ss},"\u53D6\u6D88"),Ye.createElement(pt.ZP,{className:He.cBtn,onClick:()=>bo.submit(),loading:gt["newCourse/editCourse"]||gt["newCourse/submitCourse"]},"\u63D0\u4EA4 "))),es==2&&Ye.createElement("div",{className:He.add_ai},Ye.createElement("div",{style:{margin:"20px 0"}},"\u6839\u636E\u60A8\u4E0A\u4F20\u7684\u8D44\u6599\u81EA\u52A8\u751F\u6210\u8BFE\u7A0B\u7B80\u4ECB\u3001\u8BFE\u7A0B\u76EE\u6807\u3001\u8BFE\u7A0B\u7AE0\u8282\u3001\u5B9E\u9A8C\u6846\u67B6\u3001\u77E5\u8BC6\u70B9\u3001\u77E5\u8BC6\u56FE\u8C31\u7B49\u5185\u5BB9"),Ye.createElement(ge.default,{form:Aa,scrollToFirstError:!0,colon:!1},Ye.createElement(ge.default.Item,{name:"file_ids"},Ye.createElement(st.Z,{accept:".pdf, .docx, .doc, .xlsx, .xls, .txt, .md",maxSize:150,number:99,uploadText:"\u5EFA\u8BAE\u4E0A\u4F20\u8BFE\u7A0B\u4E66\u7C4D\u3001\u8BFE\u7A0B\u6559\u5B66\u5927\u7EB2\u7B49\u7C7B\u4F3C\u6587\u4EF6",setFileProgress:cs,showFileProgress:!0}))),((Zt=[-1,0,1])==null?void 0:Zt.includes(pn==null?void 0:pn.state))&&Ye.createElement("div",{className:He.paths_content},Ye.createElement("div",{className:He.content_header},Ye.createElement("i",{className:"iconfont icon-ziyuanshibie font22 mb10",style:{color:(De=[1,2,3,4,5,6,7,8])!=null&&De.includes(pn==null?void 0:pn.phase)?"#2a56ca":"#bdbdbd"}}),Ye.createElement("i",{className:"iconfont icon-kechengjibenxinxi font22 mb10",style:{color:(Te=[2,3,4,5,6,7,8])!=null&&Te.includes(pn==null?void 0:pn.phase)?"#2a56ca":"#bdbdbd"}}),Ye.createElement("i",{className:"iconfont icon-kechengneirongziyuan font22 mb10",style:{color:(Me=[5,6,7,8])!=null&&Me.includes(pn==null?void 0:pn.phase)?"#2a56ca":"#bdbdbd"}})),Ye.createElement("div",{style:{display:"flex",position:"relative"}},Ye.createElement("div",{className:He.header_box,style:{left:0}},Ye.createElement("img",{src:(je=[1,2,3,4,5,6,7,8])!=null&&je.includes(pn==null?void 0:pn.phase)?we:Be}),Ye.createElement("div",{className:He.header_text,style:{color:(it=[1,2,3,4,5,6,7,8])!=null&&it.includes(pn==null?void 0:pn.phase)?"#fff":"#9096A3"}},(an=[1,2,3,4,5,6,7,8])!=null&&an.includes(pn==null?void 0:pn.phase)?"\u6587\u6863\u8BC6\u522B \u5DF2\u5B8C\u6210":"\u6587\u6863\u8BC6\u522B"),Ye.createElement("div",{style:{textAlign:"center",width:"386px"}},Ye.createElement("img",{src:Mt,style:{width:"233px",height:"179px"}}))),Ye.createElement("div",{className:He.header_box,style:{left:"380px"}},Ye.createElement("img",{src:(dn=[2,3,4,5,6,7,8])!=null&&dn.includes(pn==null?void 0:pn.phase)?It:Be}),Ye.createElement("div",{className:He.header_text,style:{color:(hn=[2,3,4,5,6,7,8])!=null&&hn.includes(pn==null?void 0:pn.phase)?"#fff":"#9096A3"}},($n=[2,3,4,5,6,7,8])!=null&&$n.includes(pn==null?void 0:pn.phase)?`\u8BFE\u7A0B\u57FA\u672C\u4FE1\u606F\u751F\u6210 ${(ar=[2,3,4])!=null&&ar.includes(pn==null?void 0:pn.phase)?"\u8FDB\u884C\u4E2D":"\u5DF2\u5B8C\u6210"}`:"\u8BFE\u7A0B\u57FA\u672C\u4FE1\u606F\u751F\u6210 \u7B49\u5F85\u4E2D"),Ye.createElement("div",{className:He.lianjie}),Ye.createElement("div",{style:{textAlign:"center"}},Ye.createElement("div",{className:He.buzou_box},Ye.createElement("div",{style:{display:"flex",alignItems:"center"}},((Cr=[0,1])==null?void 0:Cr.includes(pn==null?void 0:pn.phase))&&Ye.createElement("div",{style:{width:"16px",height:"16px",borderRadius:"8px",border:"2px solid rgba(48,97,208,0.1)"}}),((qn=[2])==null?void 0:qn.includes(pn==null?void 0:pn.phase))&&(pn==null?void 0:pn.state)!=-1&&Ye.createElement(mt.Z,{indicator:Ye.createElement(At.Z,{spin:!0}),size:"small"},Ye.createElement("div",{style:{width:"16px",height:"16px",borderRadius:"8px",border:"2px solid rgba(48,97,208,0.1)"}})),((Gn=[2])==null?void 0:Gn.includes(pn==null?void 0:pn.phase))&&(pn==null?void 0:pn.state)==-1&&Ye.createElement("i",{className:"iconfont icon-cuowu font16",style:{color:"#E30000"}}),((Jn=[3,4,5,6,7,8])==null?void 0:Jn.includes(pn==null?void 0:pn.phase))&&Ye.createElement("i",{className:"iconfont icon-wancheng3 font16",style:{color:"#83B6FF"}}),Ye.createElement("div",{style:{margin:"0 10px",color:(gr=[0,1])!=null&&gr.includes(pn==null?void 0:pn.phase)?"#9096A3":(Ge=[2])!=null&&Ge.includes(pn==null?void 0:pn.phase)&&(pn==null?void 0:pn.state)==-1?"red":"#83B6FF"}},"\u8BFE\u7A0B\u7B80\u4ECB\u751F\u6210"),Ye.createElement("div",{style:{color:(bt=[0,1])!=null&&bt.includes(pn==null?void 0:pn.phase)?"#9096A3":(Vt=[2])!=null&&Vt.includes(pn==null?void 0:pn.phase)&&(pn==null?void 0:pn.state)==-1?"red":"#83B6FF"}},(Ht=[0,1])!=null&&Ht.includes(pn==null?void 0:pn.phase)?"\u7B49\u5F85\u4E2D":(tn=[2])!=null&&tn.includes(pn==null?void 0:pn.phase)?(pn==null?void 0:pn.state)==-1?"\u751F\u6210\u5931\u8D25":"\u8FDB\u884C\u4E2D":"\u5DF2\u5B8C\u6210")),Ye.createElement("div",{style:{width:"2px",height:"30px",background:(An=[0,1,2])!=null&&An.includes(pn==null?void 0:pn.phase)?"rgba(48,97,208,0.1)":"#83B6FF",marginLeft:"7px"}}),Ye.createElement("div",{style:{display:"flex",alignItems:"center"}},((Vn=[0,1,2])==null?void 0:Vn.includes(pn==null?void 0:pn.phase))&&Ye.createElement("div",{style:{width:"16px",height:"16px",borderRadius:"8px",border:"2px solid rgba(48,97,208,0.1)"}}),((tr=[3])==null?void 0:tr.includes(pn==null?void 0:pn.phase))&&(pn==null?void 0:pn.state)!=-1&&Ye.createElement(mt.Z,{indicator:Ye.createElement(At.Z,{spin:!0}),size:"small"},Ye.createElement("div",{style:{width:"16px",height:"16px",borderRadius:"8px",border:"2px solid rgba(48,97,208,0.1)"}})),((Nn=[3])==null?void 0:Nn.includes(pn==null?void 0:pn.phase))&&(pn==null?void 0:pn.state)==-1&&Ye.createElement("i",{className:"iconfont icon-cuowu font16",style:{color:"#E30000"}}),((or=[4,5,6,7,8])==null?void 0:or.includes(pn==null?void 0:pn.phase))&&Ye.createElement("i",{className:"iconfont icon-wancheng3 font16",style:{color:"#83B6FF"}}),Ye.createElement("div",{style:{margin:"0 10px",color:(cr=[0,1,2])!=null&&cr.includes(pn==null?void 0:pn.phase)?"#9096A3":(nr=[3])!=null&&nr.includes(pn==null?void 0:pn.phase)&&(pn==null?void 0:pn.state)==-1?"red":"#83B6FF"}},"\u8BFE\u7A0B\u76EE\u6807\u751F\u6210"),Ye.createElement("div",{style:{color:(hr=[0,1,2])!=null&&hr.includes(pn==null?void 0:pn.phase)?"#9096A3":(lr=[3])!=null&&lr.includes(pn==null?void 0:pn.phase)&&(pn==null?void 0:pn.state)==-1?"red":"#83B6FF"}},(Er=[0,1,2])!=null&&Er.includes(pn==null?void 0:pn.phase)?"\u7B49\u5F85\u4E2D":(Ir=[3])!=null&&Ir.includes(pn==null?void 0:pn.phase)?(pn==null?void 0:pn.state)==-1?"\u751F\u6210\u5931\u8D25":"\u8FDB\u884C\u4E2D":"\u5DF2\u5B8C\u6210")),Ye.createElement("div",{style:{width:"2px",height:"30px",background:(zr=[0,1,2,3])!=null&&zr.includes(pn==null?void 0:pn.phase)?"rgba(48,97,208,0.1)":"#83B6FF",marginLeft:"7px"}}),Ye.createElement("div",{style:{display:"flex",alignItems:"center"}},((Pr=[0,1,2,3])==null?void 0:Pr.includes(pn==null?void 0:pn.phase))&&Ye.createElement("div",{style:{width:"16px",height:"16px",borderRadius:"8px",border:"2px solid rgba(48,97,208,0.1)"}}),((Or=[4])==null?void 0:Or.includes(pn==null?void 0:pn.phase))&&(pn==null?void 0:pn.state)!=-1&&Ye.createElement(mt.Z,{indicator:Ye.createElement(At.Z,{spin:!0}),size:"small"},Ye.createElement("div",{style:{width:"16px",height:"16px",borderRadius:"8px",border:"2px solid rgba(48,97,208,0.1)"}})),((Sr=[4])==null?void 0:Sr.includes(pn==null?void 0:pn.phase))&&(pn==null?void 0:pn.state)==-1&&Ye.createElement("i",{className:"iconfont icon-cuowu font16",style:{color:"#E30000"}}),((Tr=[5,6,7,8])==null?void 0:Tr.includes(pn==null?void 0:pn.phase))&&Ye.createElement("i",{className:"iconfont icon-wancheng3 font16",style:{color:"#83B6FF"}}),Ye.createElement("div",{style:{margin:"0 10px",color:(br=[0,1,2,3])!=null&&br.includes(pn==null?void 0:pn.phase)?"#9096A3":(wr=[4])!=null&&wr.includes(pn==null?void 0:pn.phase)&&(pn==null?void 0:pn.state)==-1?"red":"#83B6FF"}},"\u7AE0\u8282\u53CA\u63CF\u8FF0\u751F\u6210"),Ye.createElement("div",{style:{color:(_n=[0,1,2,3])!=null&&_n.includes(pn==null?void 0:pn.phase)?"#9096A3":(In=[4])!=null&&In.includes(pn==null?void 0:pn.phase)&&(pn==null?void 0:pn.state)==-1?"red":"#83B6FF"}},(er=[0,1,2,3])!=null&&er.includes(pn==null?void 0:pn.phase)?"\u7B49\u5F85\u4E2D":(Rn=[4])!=null&&Rn.includes(pn==null?void 0:pn.phase)?(pn==null?void 0:pn.state)==-1?"\u751F\u6210\u5931\u8D25":"\u8FDB\u884C\u4E2D":"\u5DF2\u5B8C\u6210"),((bn=[5,6,7,8])==null?void 0:bn.includes(pn==null?void 0:pn.phase))&&Ye.createElement("div",{style:{marginLeft:"10px",color:"#232B40"}},"\u5171\u751F\u6210",Ye.createElement("span",{style:{color:"#3061D0"}},pn==null?void 0:pn.stage_size),"\u4E2A\u7AE0\u8282"))))),Ye.createElement("div",{className:He.header_box,style:{left:"760px"}},Ye.createElement("img",{src:(ir=[5,6,7,8])!=null&&ir.includes(pn==null?void 0:pn.phase)?It:Be}),Ye.createElement("div",{className:He.header_text,style:{color:(mr=[5,6,7,8])!=null&&mr.includes(pn==null?void 0:pn.phase)?"#fff":"#9096A3"}},(On=[5,6,7,8])!=null&&On.includes(pn==null?void 0:pn.phase)?`\u8BFE\u7A0B\u5185\u5BB9\u8D44\u6E90\u751F\u6210 ${(Hn=[5,6,7])!=null&&Hn.includes(pn==null?void 0:pn.phase)?"\u8FDB\u884C\u4E2D":"\u5DF2\u5B8C\u6210"}`:"\u8BFE\u7A0B\u5185\u5BB9\u8D44\u6E90\u751F\u6210 \u7B49\u5F85\u4E2D"),Ye.createElement("div",{className:He.lianjie}),Ye.createElement("div",{style:{textAlign:"center"}},Ye.createElement("div",{className:He.buzou_box},Ye.createElement("div",{style:{display:"flex",alignItems:"center"}},((Xn=[0,1,2,3,4])==null?void 0:Xn.includes(pn==null?void 0:pn.phase))&&Ye.createElement("div",{style:{width:"16px",height:"16px",borderRadius:"8px",border:"2px solid rgba(48,97,208,0.1)"}}),((vr=[5])==null?void 0:vr.includes(pn==null?void 0:pn.phase))&&(pn==null?void 0:pn.state)!=-1&&Ye.createElement(mt.Z,{indicator:Ye.createElement(At.Z,{spin:!0}),size:"small"},Ye.createElement("div",{style:{width:"16px",height:"16px",borderRadius:"8px",border:"2px solid rgba(48,97,208,0.1)"}})),((Ar=[5])==null?void 0:Ar.includes(pn==null?void 0:pn.phase))&&(pn==null?void 0:pn.state)==-1&&Ye.createElement("i",{className:"iconfont icon-cuowu font16",style:{color:"#E30000"}}),((Fr=[6,7,8])==null?void 0:Fr.includes(pn==null?void 0:pn.phase))&&Ye.createElement("i",{className:"iconfont icon-wancheng3 font16",style:{color:"#83B6FF"}}),Ye.createElement("div",{style:{margin:"0 10px",color:(Rr=[0,1,2,3,4])!=null&&Rr.includes(pn==null?void 0:pn.phase)?"#9096A3":(Ur=[5])!=null&&Ur.includes(pn==null?void 0:pn.phase)&&(pn==null?void 0:pn.state)==-1?"red":"#83B6FF"}},"\u77E5\u8BC6\u70B9\u751F\u6210"),Ye.createElement("div",{style:{color:(jr=[0,1,2,3,4])!=null&&jr.includes(pn==null?void 0:pn.phase)?"#9096A3":(ro=[5])!=null&&ro.includes(pn==null?void 0:pn.phase)&&(pn==null?void 0:pn.state)==-1?"red":"#83B6FF"}},(Yr=[0,1,2,3,4])!=null&&Yr.includes(pn==null?void 0:pn.phase)?"\u7B49\u5F85\u4E2D":(Xr=[5])!=null&&Xr.includes(pn==null?void 0:pn.phase)?(pn==null?void 0:pn.state)==-1?"\u751F\u6210\u5931\u8D25":"\u8FDB\u884C\u4E2D":"\u5DF2\u5B8C\u6210"),((eo=[6,7,8])==null?void 0:eo.includes(pn==null?void 0:pn.phase))&&Ye.createElement("div",{style:{marginLeft:"10px",color:"#232B40"}},"\u5171\u751F\u6210",Ye.createElement("span",{style:{color:"#3061D0"}},pn==null?void 0:pn.resource_size),"\u4E2A\u77E5\u8BC6\u70B9")),Ye.createElement("div",{style:{width:"2px",height:"30px",background:(vo=[0,1,2,3,4,5])!=null&&vo.includes(pn==null?void 0:pn.phase)?"rgba(48,97,208,0.1)":"#83B6FF",marginLeft:"7px"}}),Ye.createElement("div",{style:{display:"flex",alignItems:"center"}},((Fo=[0,1,2,3,4,5])==null?void 0:Fo.includes(pn==null?void 0:pn.phase))&&Ye.createElement("div",{style:{width:"16px",height:"16px",borderRadius:"8px",border:"2px solid rgba(48,97,208,0.1)"}}),((Yo=[6])==null?void 0:Yo.includes(pn==null?void 0:pn.phase))&&(pn==null?void 0:pn.state)!=-1&&Ye.createElement(mt.Z,{indicator:Ye.createElement(At.Z,{spin:!0}),size:"small"},Ye.createElement("div",{style:{width:"16px",height:"16px",borderRadius:"8px",border:"2px solid rgba(48,97,208,0.1)"}})),((Bo=[6])==null?void 0:Bo.includes(pn==null?void 0:pn.phase))&&(pn==null?void 0:pn.state)==-1&&Ye.createElement("i",{className:"iconfont icon-cuowu font16",style:{color:"#E30000"}}),((Ko=[7,8])==null?void 0:Ko.includes(pn==null?void 0:pn.phase))&&Ye.createElement("i",{className:"iconfont icon-wancheng3 font16",style:{color:"#83B6FF"}}),Ye.createElement("div",{style:{margin:"0 10px",color:(Jr=[0,1,2,3,4,5])!=null&&Jr.includes(pn==null?void 0:pn.phase)?"#9096A3":(Qr=[6])!=null&&Qr.includes(pn==null?void 0:pn.phase)&&(pn==null?void 0:pn.state)==-1?"red":"#83B6FF"}},"\u77E5\u8BC6\u70B9\u8D44\u6E90\u751F\u6210"),Ye.createElement("div",{style:{color:(Vo=[0,1,2,3,4,5])!=null&&Vo.includes(pn==null?void 0:pn.phase)?"#9096A3":(Wo=[6])!=null&&Wo.includes(pn==null?void 0:pn.phase)&&(pn==null?void 0:pn.state)==-1?"red":"#83B6FF"}},(po=[0,1,2,3,4,5])!=null&&po.includes(pn==null?void 0:pn.phase)?"\u7B49\u5F85\u4E2D":(ko=[6])!=null&&ko.includes(pn==null?void 0:pn.phase)?(pn==null?void 0:pn.state)==-1?"\u751F\u6210\u5931\u8D25":"\u8FDB\u884C\u4E2D":"\u5DF2\u5B8C\u6210"),((Xo=[7,8])==null?void 0:Xo.includes(pn==null?void 0:pn.phase))&&Ye.createElement("div",{style:{marginLeft:"10px",color:"#232B40"}},"\u5171\u751F\u6210",Ye.createElement("span",{style:{color:"#3061D0"}},pn==null?void 0:pn.resource_size),"\u4E2A\u5B9E\u9A8C\u6846\u67B6")),Ye.createElement("div",{style:{width:"2px",height:"30px",background:(Ao=[0,1,2,3,4,5,6])!=null&&Ao.includes(pn==null?void 0:pn.phase)?"rgba(48,97,208,0.1)":"#83B6FF",marginLeft:"7px"}}),Ye.createElement("div",{style:{display:"flex",alignItems:"center"}},((Zo=[0,1,2,3,4,5,6])==null?void 0:Zo.includes(pn==null?void 0:pn.phase))&&Ye.createElement("div",{style:{width:"16px",height:"16px",borderRadius:"8px",border:"2px solid rgba(48,97,208,0.1)"}}),((Ho=[7])==null?void 0:Ho.includes(pn==null?void 0:pn.phase))&&(pn==null?void 0:pn.state)!=-1&&Ye.createElement(mt.Z,{indicator:Ye.createElement(At.Z,{spin:!0}),size:"small"},Ye.createElement("div",{style:{width:"16px",height:"16px",borderRadius:"8px",border:"2px solid rgba(48,97,208,0.1)"}})),((ba=[7])==null?void 0:ba.includes(pn==null?void 0:pn.phase))&&(pn==null?void 0:pn.state)==-1&&Ye.createElement("i",{className:"iconfont icon-cuowu font16",style:{color:"#E30000"}}),((Ha=[8])==null?void 0:Ha.includes(pn==null?void 0:pn.phase))&&Ye.createElement("i",{className:"iconfont icon-wancheng3 font16",style:{color:"#83B6FF"}}),Ye.createElement("div",{style:{margin:"0 10px",color:(xa=[0,1,2,3,4,5,6])!=null&&xa.includes(pn==null?void 0:pn.phase)?"#9096A3":(ga=[7])!=null&&ga.includes(pn==null?void 0:pn.phase)&&(pn==null?void 0:pn.state)==-1?"red":"#83B6FF"}},"\u77E5\u8BC6\u56FE\u8C31\u751F\u6210"),Ye.createElement("div",{style:{color:(Ei=[0,1,2,3,4,5,6])!=null&&Ei.includes(pn==null?void 0:pn.phase)?"#9096A3":(wi=[7])!=null&&wi.includes(pn==null?void 0:pn.phase)&&(pn==null?void 0:pn.state)==-1?"red":"#83B6FF"}},(Io=[0,1,2,3,4,5,6])!=null&&Io.includes(pn==null?void 0:pn.phase)?"\u7B49\u5F85\u4E2D":(Lo=[7])!=null&&Lo.includes(pn==null?void 0:pn.phase)?(pn==null?void 0:pn.state)==-1?"\u751F\u6210\u5931\u8D25":"\u8FDB\u884C\u4E2D":"\u5DF2\u5B8C\u6210"),((Wr=[8])==null?void 0:Wr.includes(pn==null?void 0:pn.phase))&&Ye.createElement("div",{style:{marginLeft:"10px",color:"#232B40"}},"\u5171\u751F\u6210",Ye.createElement("span",{style:{color:"#3061D0"}},1),"\u4E2A\u77E5\u8BC6\u56FE\u8C31"))))))),Ye.createElement(mt.Z,{spinning:Ni},Ye.createElement("div",{className:(pn==null?void 0:pn.state)==0||cl?He.start_style:He.no_start_style,onClick:()=>Ln(void 0,null,function*(){var Nr;if(cl)return Ee.ZP.error("\u6709\u6587\u4EF6\u672A\u4E0A\u4F20\u5B8C\u6210\uFF0C\u8BF7\u7B49\u6587\u4EF6\u4E0A\u4F20\u5B8C\u6210\u540E\u518D\u751F\u6210"),!1;if(!(0,Gt.$O)())return Oi(!0),!1;if((pn==null?void 0:pn.state)==-2||(pn==null?void 0:pn.state)==-1){Mi(!0);let Jo=[];if((Nr=Aa.getFieldValue("file_ids"))==null||Nr.map(ea=>{var Qa,ka;Jo.push(((Qa=ea==null?void 0:ea.response)==null?void 0:Qa.container_id)||((ka=ea==null?void 0:ea.response)==null?void 0:ka.id))}),(Jo==null?void 0:Jo.length)>0){const ea=yield(0,ft.ZP)("/api/subject_generations.json",{method:"post",body:{attachment_ids:Jo}});(ea==null?void 0:ea.status)==0&&(Ee.ZP.success("\u5F00\u59CB\u751F\u6210"),jl(),Ra.current=setInterval(()=>{jl()},1e3))}else Ee.ZP.error("\u8BF7\u4E0A\u4F20\u8BFE\u7A0B\u8D44\u6599\uFF0C\u5EFA\u8BAE\u4E0A\u4F20\u4E66\u7C4D\u3001\u8BFE\u7A0B\u6559\u5B66\u5927\u7EB2\u7B49");Mi(!1)}else if((pn==null?void 0:pn.state)==1){Mi(!0);const Jo=yield(0,ft.ZP)("/api/subject_generations/finish.json",{method:"post",body:{id:pn==null?void 0:pn.id}});(Jo==null?void 0:Jo.status)==0&&Pe.history.push(`/paths/${pn==null?void 0:pn.subject_id}`),Mi(!1)}})},(pn==null?void 0:pn.state)==1?"\u5B8C\u6210\u8BFE\u7A0B\u521B\u5EFA":(pn==null?void 0:pn.state)==0?"\u8BFE\u7A0B\u751F\u6210\u4E2D\uFF0C\u8BF7\u7A0D\u540E...":(pn==null?void 0:pn.state)==-1?"\u91CD\u65B0\u751F\u6210\u8BFE\u7A0B":"\u5F00\u59CB\u751F\u6210\u8BFE\u7A0B"))),nl&&Ye.createElement("div",{style:{width:"100vw",height:"100vh",position:"fixed",top:0,left:0,background:"rgba(0,0,0,.5)",zIndex:200,display:"flex",alignItems:"center",justifyContent:"center"}},Ye.createElement("div",{style:{width:"500px",height:"515px",textAlign:"center"}},Ye.createElement("img",{src:Yt,style:{marginLeft:"auto",display:"block",cursor:"pointer",width:"30px",height:"30px"},onClick:()=>{Oi(!1)}}),Ye.createElement("img",{src:kt,style:{display:"block",marginTop:"-20px",width:"460px",height:"500px"}}))),Ye.createElement(qe,{schoolName:ua.school_id,onSuccess:No}),Ye.createElement(nt.Z,{open:ti,onCancel:()=>{hi(!1)}})))};var wn=(0,Pe.connect)(({user:un,newCourse:sn,loading:We,globalSetting:dt})=>({user:un,newCourse:sn,globalSetting:dt,loading:We.effects}))(Jt)},77108:function(Kn,cn,z){"use strict";z.d(cn,{P:function(){return b}});const b=[{value:"\u5317\u4EAC",label:"\u5317\u4EAC",children:[{value:"\u4E1C\u57CE",label:"\u4E1C\u57CE"},{value:"\u897F\u57CE",label:"\u897F\u57CE"},{value:"\u671D\u9633",label:"\u671D\u9633"},{value:"\u4E30\u53F0",label:"\u4E30\u53F0"},{value:"\u77F3\u666F\u5C71",label:"\u77F3\u666F\u5C71"},{value:"\u6D77\u6DC0",label:"\u6D77\u6DC0"},{value:"\u95E8\u5934\u6C9F",label:"\u95E8\u5934\u6C9F"},{value:"\u623F\u5C71",label:"\u623F\u5C71"},{value:"\u901A\u5DDE",label:"\u901A\u5DDE"},{value:"\u987A\u4E49",label:"\u987A\u4E49"},{value:"\u660C\u5E73",label:"\u660C\u5E73"},{value:"\u5927\u5174",label:"\u5927\u5174"},{value:"\u5E73\u8C37",label:"\u5E73\u8C37"},{value:"\u6000\u67D4",label:"\u6000\u67D4"},{value:"\u5BC6\u4E91",label:"\u5BC6\u4E91"},{value:"\u5EF6\u5E86",label:"\u5EF6\u5E86"}]},{value:"\u4E0A\u6D77",label:"\u4E0A\u6D77",children:[{value:"\u5D07\u660E",label:"\u5D07\u660E"},{value:"\u9EC4\u6D66",label:"\u9EC4\u6D66"},{value:"\u5362\u6E7E",label:"\u5362\u6E7E"},{value:"\u5F90\u6C47",label:"\u5F90\u6C47"},{value:"\u957F\u5B81",label:"\u957F\u5B81"},{value:"\u9759\u5B89",label:"\u9759\u5B89"},{value:"\u666E\u9640",label:"\u666E\u9640"},{value:"\u95F8\u5317",label:"\u95F8\u5317"},{value:"\u8679\u53E3",label:"\u8679\u53E3"},{value:"\u6768\u6D66",label:"\u6768\u6D66"},{value:"\u95F5\u884C",label:"\u95F5\u884C"},{value:"\u5B9D\u5C71",label:"\u5B9D\u5C71"},{value:"\u5609\u5B9A",label:"\u5609\u5B9A"},{value:"\u6D66\u4E1C",label:"\u6D66\u4E1C"},{value:"\u91D1\u5C71",label:"\u91D1\u5C71"},{value:"\u677E\u6C5F",label:"\u677E\u6C5F"},{value:"\u9752\u6D66",label:"\u9752\u6D66"},{value:"\u5357\u6C47",label:"\u5357\u6C47"},{value:"\u5949\u8D24",label:"\u5949\u8D24"}]},{value:"\u5E7F\u4E1C",label:"\u5E7F\u4E1C",children:[{value:"\u5E7F\u5DDE",label:"\u5E7F\u5DDE"},{value:"\u6DF1\u5733",label:"\u6DF1\u5733"},{value:"\u73E0\u6D77",label:"\u73E0\u6D77"},{value:"\u4E1C\u839E",label:"\u4E1C\u839E"},{value:"\u4E2D\u5C71",label:"\u4E2D\u5C71"},{value:"\u4F5B\u5C71",label:"\u4F5B\u5C71"},{value:"\u60E0\u5DDE",label:"\u60E0\u5DDE"},{value:"\u6CB3\u6E90",label:"\u6CB3\u6E90"},{value:"\u6F6E\u5DDE",label:"\u6F6E\u5DDE"},{value:"\u6C5F\u95E8",label:"\u6C5F\u95E8"},{value:"\u63ED\u9633",label:"\u63ED\u9633"},{value:"\u8302\u540D",label:"\u8302\u540D"},{value:"\u6885\u5DDE",label:"\u6885\u5DDE"},{value:"\u6E05\u8FDC",label:"\u6E05\u8FDC"},{value:"\u6C55\u5934",label:"\u6C55\u5934"},{value:"\u6C55\u5C3E",label:"\u6C55\u5C3E"},{value:"\u97F6\u5173",label:"\u97F6\u5173"},{value:"\u987A\u5FB7",label:"\u987A\u5FB7"},{value:"\u9633\u6C5F",label:"\u9633\u6C5F"},{value:"\u4E91\u6D6E",label:"\u4E91\u6D6E"},{value:"\u6E5B\u6C5F",label:"\u6E5B\u6C5F"},{value:"\u8087\u5E86",label:"\u8087\u5E86"}]},{value:"\u6C5F\u82CF",label:"\u6C5F\u82CF",children:[{value:"\u5357\u4EAC",label:"\u5357\u4EAC"},{value:"\u5E38\u719F",label:"\u5E38\u719F"},{value:"\u5E38\u5DDE",label:"\u5E38\u5DDE"},{value:"\u6D77\u95E8",label:"\u6D77\u95E8"},{value:"\u6DEE\u5B89",label:"\u6DEE\u5B89"},{value:"\u6C5F\u90FD",label:"\u6C5F\u90FD"},{value:"\u6C5F\u9634",label:"\u6C5F\u9634"},{value:"\u6606\u5C71",label:"\u6606\u5C71"},{value:"\u8FDE\u4E91\u6E2F",label:"\u8FDE\u4E91\u6E2F"},{value:"\u5357\u901A",label:"\u5357\u901A"},{value:"\u542F\u4E1C",label:"\u542F\u4E1C"},{value:"\u6CAD\u9633",label:"\u6CAD\u9633"},{value:"\u5BBF\u8FC1",label:"\u5BBF\u8FC1"},{value:"\u82CF\u5DDE",label:"\u82CF\u5DDE"},{value:"\u592A\u4ED3",label:"\u592A\u4ED3"},{value:"\u6CF0\u5DDE",label:"\u6CF0\u5DDE"},{value:"\u540C\u91CC",label:"\u540C\u91CC"},{value:"\u65E0\u9521",label:"\u65E0\u9521"},{value:"\u5F90\u5DDE",label:"\u5F90\u5DDE"},{value:"\u76D0\u57CE",label:"\u76D0\u57CE"},{value:"\u626C\u5DDE",label:"\u626C\u5DDE"},{value:"\u5B9C\u5174",label:"\u5B9C\u5174"},{value:"\u4EEA\u5F81",label:"\u4EEA\u5F81"},{value:"\u5F20\u5BB6\u6E2F",label:"\u5F20\u5BB6\u6E2F"},{value:"\u9547\u6C5F",label:"\u9547\u6C5F"}]},{value:"\u91CD\u5E86",label:"\u91CD\u5E86",children:[{value:"\u4E07\u5DDE",label:"\u4E07\u5DDE"},{value:"\u6DAA\u9675",label:"\u6DAA\u9675"},{value:"\u6E1D\u4E2D",label:"\u6E1D\u4E2D"},{value:"\u5927\u6E21\u53E3",label:"\u5927\u6E21\u53E3"},{value:"\u6C5F\u5317",label:"\u6C5F\u5317"},{value:"\u6C99\u576A\u575D",label:"\u6C99\u576A\u575D"},{value:"\u4E5D\u9F99\u5761",label:"\u4E5D\u9F99\u5761"},{value:"\u5357\u5CB8",label:"\u5357\u5CB8"},{value:"\u5317\u789A",label:"\u5317\u789A"},{value:"\u4E07\u76DB",label:"\u4E07\u76DB"},{value:"\u53CC\u6322",label:"\u53CC\u6322"},{value:"\u6E1D\u5317",label:"\u6E1D\u5317"},{value:"\u5DF4\u5357",label:"\u5DF4\u5357"},{value:"\u9ED4\u6C5F",label:"\u9ED4\u6C5F"},{value:"\u957F\u5BFF",label:"\u957F\u5BFF"},{value:"\u7DA6\u6C5F",label:"\u7DA6\u6C5F"},{value:"\u6F7C\u5357",label:"\u6F7C\u5357"},{value:"\u94DC\u6881",label:"\u94DC\u6881"},{value:"\u5927\u8DB3",label:"\u5927\u8DB3"},{value:"\u8363\u660C",label:"\u8363\u660C"},{value:"\u58C1\u5C71",label:"\u58C1\u5C71"},{value:"\u6881\u5E73",label:"\u6881\u5E73"},{value:"\u57CE\u53E3",label:"\u57CE\u53E3"},{value:"\u4E30\u90FD",label:"\u4E30\u90FD"},{value:"\u57AB\u6C5F",label:"\u57AB\u6C5F"},{value:"\u6B66\u9686",label:"\u6B66\u9686"},{value:"\u5FE0\u53BF",label:"\u5FE0\u53BF"},{value:"\u5F00\u53BF",label:"\u5F00\u53BF"},{value:"\u4E91\u9633",label:"\u4E91\u9633"},{value:"\u5949\u8282",label:"\u5949\u8282"},{value:"\u5DEB\u5C71",label:"\u5DEB\u5C71"},{value:"\u5DEB\u6EAA",label:"\u5DEB\u6EAA"},{value:"\u77F3\u67F1",label:"\u77F3\u67F1"},{value:"\u79C0\u5C71",label:"\u79C0\u5C71"},{value:"\u9149\u9633",label:"\u9149\u9633"},{value:"\u5F6D\u6C34",label:"\u5F6D\u6C34"},{value:"\u6C5F\u6D25",label:"\u6C5F\u6D25"},{value:"\u5408\u5DDD",label:"\u5408\u5DDD"},{value:"\u6C38\u5DDD",label:"\u6C38\u5DDD"},{value:"\u5357\u5DDD",label:"\u5357\u5DDD"}]},{value:"\u5B89\u5FBD",label:"\u5B89\u5FBD",children:[{value:"\u5408\u80A5",label:"\u5408\u80A5"},{value:"\u5B89\u5E86",label:"\u5B89\u5E86"},{value:"\u868C\u57E0",label:"\u868C\u57E0"},{value:"\u4EB3\u5DDE",label:"\u4EB3\u5DDE"},{value:"\u5DE2\u6E56",label:"\u5DE2\u6E56"},{value:"\u6EC1\u5DDE",label:"\u6EC1\u5DDE"},{value:"\u961C\u9633",label:"\u961C\u9633"},{value:"\u8D35\u6C60",label:"\u8D35\u6C60"},{value:"\u6DEE\u5317",label:"\u6DEE\u5317"},{value:"\u6DEE\u5316",label:"\u6DEE\u5316"},{value:"\u6DEE\u5357",label:"\u6DEE\u5357"},{value:"\u9EC4\u5C71",label:"\u9EC4\u5C71"},{value:"\u4E5D\u534E\u5C71",label:"\u4E5D\u534E\u5C71"},{value:"\u516D\u5B89",label:"\u516D\u5B89"},{value:"\u9A6C\u978D\u5C71",label:"\u9A6C\u978D\u5C71"},{value:"\u5BBF\u5DDE",label:"\u5BBF\u5DDE"},{value:"\u94DC\u9675",label:"\u94DC\u9675"},{value:"\u5C6F\u6EAA",label:"\u5C6F\u6EAA"},{value:"\u829C\u6E56",label:"\u829C\u6E56"},{value:"\u5BA3\u57CE",label:"\u5BA3\u57CE"}]},{value:"\u798F\u5EFA",label:"\u798F\u5EFA",children:[{value:"\u798F\u5DDE",label:"\u798F\u5DDE"},{value:"\u53A6\u95E8",label:"\u53A6\u95E8"},{value:"\u6CC9\u5DDE",label:"\u6CC9\u5DDE"},{value:"\u6F33\u5DDE",label:"\u6F33\u5DDE"},{value:"\u9F99\u5CA9",label:"\u9F99\u5CA9"},{value:"\u5357\u5E73",label:"\u5357\u5E73"},{value:"\u5B81\u5FB7",label:"\u5B81\u5FB7"},{value:"\u8386\u7530",label:"\u8386\u7530"},{value:"\u4E09\u660E",label:"\u4E09\u660E"}]},{value:"\u7518\u8083",label:"\u7518\u8083",children:[{value:"\u5170\u5DDE",label:"\u5170\u5DDE"},{value:"\u5609\u5CEA\u5173",label:"\u5609\u5CEA\u5173"},{value:"\u767D\u94F6",label:"\u767D\u94F6"},{value:"\u5B9A\u897F",label:"\u5B9A\u897F"},{value:"\u6566\u714C",label:"\u6566\u714C"},{value:"\u7518\u5357",label:"\u7518\u5357"},{value:"\u91D1\u660C",label:"\u91D1\u660C"},{value:"\u9152\u6CC9",label:"\u9152\u6CC9"},{value:"\u4E34\u590F",label:"\u4E34\u590F"},{value:"\u5E73\u51C9",label:"\u5E73\u51C9"},{value:"\u5929\u6C34",label:"\u5929\u6C34"},{value:"\u9647\u5357",label:"\u9647\u5357"},{value:"\u6B66\u5A01",label:"\u6B66\u5A01"},{value:"\u897F\u5CF0",label:"\u897F\u5CF0"},{value:"\u5F20\u6396",label:"\u5F20\u6396"}]},{value:"\u5E7F\u897F",label:"\u5E7F\u897F",children:[{value:"\u5357\u5B81",label:"\u5357\u5B81"},{value:"\u6765\u5BBE",label:"\u6765\u5BBE"},{value:"\u767E\u8272",label:"\u767E\u8272"},{value:"\u5317\u6D77",label:"\u5317\u6D77"},{value:"\u6842\u6797",label:"\u6842\u6797"},{value:"\u9632\u57CE\u6E2F",label:"\u9632\u57CE\u6E2F"},{value:"\u8D35\u6E2F",label:"\u8D35\u6E2F"},{value:"\u6CB3\u6C60",label:"\u6CB3\u6C60"},{value:"\u8D3A\u5DDE",label:"\u8D3A\u5DDE"},{value:"\u67F3\u5DDE",label:"\u67F3\u5DDE"},{value:"\u94A6\u5DDE",label:"\u94A6\u5DDE"},{value:"\u68A7\u5DDE",label:"\u68A7\u5DDE"},{value:"\u7389\u6797",label:"\u7389\u6797"}]},{value:"\u8D35\u5DDE",label:"\u8D35\u5DDE",children:[{value:"\u8D35\u9633",label:"\u8D35\u9633"},{value:"\u5B89\u987A",label:"\u5B89\u987A"},{value:"\u6BD5\u8282",label:"\u6BD5\u8282"},{value:"\u90FD\u5300",label:"\u90FD\u5300"},{value:"\u51EF\u91CC",label:"\u51EF\u91CC"},{value:"\u516D\u76D8\u6C34",label:"\u516D\u76D8\u6C34"},{value:"\u94DC\u4EC1",label:"\u94DC\u4EC1"},{value:"\u5174\u4E49",label:"\u5174\u4E49"},{value:"\u7389\u5C4F",label:"\u7389\u5C4F"},{value:"\u9075\u4E49",label:"\u9075\u4E49"}]},{value:"\u6D77\u5357",label:"\u6D77\u5357",children:[{value:"\u6D77\u53E3",label:"\u6D77\u53E3"},{value:"\u510B\u53BF",label:"\u510B\u53BF"},{value:"\u9675\u6C34",label:"\u9675\u6C34"},{value:"\u743C\u6D77",label:"\u743C\u6D77"},{value:"\u4E09\u4E9A",label:"\u4E09\u4E9A"},{value:"\u901A\u4EC0",label:"\u901A\u4EC0"},{value:"\u4E07\u5B81",label:"\u4E07\u5B81"}]},{value:"\u6CB3\u5317",label:"\u6CB3\u5317",children:[{value:"\u77F3\u5BB6\u5E84",label:"\u77F3\u5BB6\u5E84"},{value:"\u4FDD\u5B9A",label:"\u4FDD\u5B9A"},{value:"\u5317\u6234\u6CB3",label:"\u5317\u6234\u6CB3"},{value:"\u6CA7\u5DDE",label:"\u6CA7\u5DDE"},{value:"\u627F\u5FB7",label:"\u627F\u5FB7"},{value:"\u4E30\u6DA6",label:"\u4E30\u6DA6"},{value:"\u90AF\u90F8",label:"\u90AF\u90F8"},{value:"\u8861\u6C34",label:"\u8861\u6C34"},{value:"\u5ECA\u574A",label:"\u5ECA\u574A"},{value:"\u5357\u6234\u6CB3",label:"\u5357\u6234\u6CB3"},{value:"\u79E6\u7687\u5C9B",label:"\u79E6\u7687\u5C9B"},{value:"\u5510\u5C71",label:"\u5510\u5C71"},{value:"\u65B0\u57CE",label:"\u65B0\u57CE"},{value:"\u90A2\u53F0",label:"\u90A2\u53F0"},{value:"\u5F20\u5BB6\u53E3",label:"\u5F20\u5BB6\u53E3"}]},{value:"\u9ED1\u9F99\u6C5F",label:"\u9ED1\u9F99\u6C5F",children:[{value:"\u54C8\u5C14\u6EE8",label:"\u54C8\u5C14\u6EE8"},{value:"\u5317\u5B89",label:"\u5317\u5B89"},{value:"\u5927\u5E86",label:"\u5927\u5E86"},{value:"\u5927\u5174\u5B89\u5CAD",label:"\u5927\u5174\u5B89\u5CAD"},{value:"\u9E64\u5C97",label:"\u9E64\u5C97"},{value:"\u9ED1\u6CB3",label:"\u9ED1\u6CB3"},{value:"\u4F73\u6728\u65AF",label:"\u4F73\u6728\u65AF"},{value:"\u9E21\u897F",label:"\u9E21\u897F"},{value:"\u7261\u4E39\u6C5F",label:"\u7261\u4E39\u6C5F"},{value:"\u9F50\u9F50\u54C8\u5C14",label:"\u9F50\u9F50\u54C8\u5C14"},{value:"\u4E03\u53F0\u6CB3",label:"\u4E03\u53F0\u6CB3"},{value:"\u53CC\u9E2D\u5C71",label:"\u53CC\u9E2D\u5C71"},{value:"\u7EE5\u5316",label:"\u7EE5\u5316"},{value:"\u4F0A\u6625",label:"\u4F0A\u6625"}]},{value:"\u6CB3\u5357",label:"\u6CB3\u5357",children:[{value:"\u90D1\u5DDE",label:"\u90D1\u5DDE"},{value:"\u5B89\u9633",label:"\u5B89\u9633"},{value:"\u9E64\u58C1",label:"\u9E64\u58C1"},{value:"\u6F62\u5DDD",label:"\u6F62\u5DDD"},{value:"\u7126\u4F5C",label:"\u7126\u4F5C"},{value:"\u6D4E\u6E90",label:"\u6D4E\u6E90"},{value:"\u5F00\u5C01",label:"\u5F00\u5C01"},{value:"\u6F2F\u6CB3",label:"\u6F2F\u6CB3"},{value:"\u6D1B\u9633",label:"\u6D1B\u9633"},{value:"\u5357\u9633",label:"\u5357\u9633"},{value:"\u5E73\u9876\u5C71",label:"\u5E73\u9876\u5C71"},{value:"\u6FEE\u9633",label:"\u6FEE\u9633"},{value:"\u4E09\u95E8\u5CE1",label:"\u4E09\u95E8\u5CE1"},{value:"\u5546\u4E18",label:"\u5546\u4E18"},{value:"\u65B0\u4E61",label:"\u65B0\u4E61"},{value:"\u4FE1\u9633",label:"\u4FE1\u9633"},{value:"\u8BB8\u660C",label:"\u8BB8\u660C"},{value:"\u5468\u53E3",label:"\u5468\u53E3"},{value:"\u9A7B\u9A6C\u5E97",label:"\u9A7B\u9A6C\u5E97"}]},{value:"\u9999\u6E2F",label:"\u9999\u6E2F",children:[{value:"\u9999\u6E2F",label:"\u9999\u6E2F"},{value:"\u4E5D\u9F99",label:"\u4E5D\u9F99"},{value:"\u65B0\u754C",label:"\u65B0\u754C"}]},{value:"\u6E56\u5317",label:"\u6E56\u5317",children:[{value:"\u6B66\u6C49",label:"\u6B66\u6C49"},{value:"\u5929\u95E8",label:"\u5929\u95E8"},{value:"\u6069\u65BD",label:"\u6069\u65BD"},{value:"\u9102\u5DDE",label:"\u9102\u5DDE"},{value:"\u9EC4\u5188",label:"\u9EC4\u5188"},{value:"\u9EC4\u77F3",label:"\u9EC4\u77F3"},{value:"\u8346\u95E8",label:"\u8346\u95E8"},{value:"\u8346\u5DDE",label:"\u8346\u5DDE"},{value:"\u6F5C\u6C5F",label:"\u6F5C\u6C5F"},{value:"\u5341\u5830",label:"\u5341\u5830"},{value:"\u968F\u5DDE",label:"\u968F\u5DDE"},{value:"\u6B66\u7A74",label:"\u6B66\u7A74"},{value:"\u4ED9\u6843",label:"\u4ED9\u6843"},{value:"\u54B8\u5B81",label:"\u54B8\u5B81"},{value:"\u8944\u9633",label:"\u8944\u9633"},{value:"\u8944\u6A0A",label:"\u8944\u6A0A"},{value:"\u5B5D\u611F",label:"\u5B5D\u611F"},{value:"\u5B9C\u660C",label:"\u5B9C\u660C"}]},{value:"\u6E56\u5357",label:"\u6E56\u5357",children:[{value:"\u957F\u6C99",label:"\u957F\u6C99"},{value:"\u5E38\u5FB7",label:"\u5E38\u5FB7"},{value:"\u90F4\u5DDE",label:"\u90F4\u5DDE"},{value:"\u8861\u9633",label:"\u8861\u9633"},{value:"\u6000\u5316",label:"\u6000\u5316"},{value:"\u5409\u9996",label:"\u5409\u9996"},{value:"\u5A04\u5E95",label:"\u5A04\u5E95"},{value:"\u90B5\u9633",label:"\u90B5\u9633"},{value:"\u6E58\u6F6D",label:"\u6E58\u6F6D"},{value:"\u76CA\u9633",label:"\u76CA\u9633"},{value:"\u5CB3\u9633",label:"\u5CB3\u9633"},{value:"\u6C38\u5DDE",label:"\u6C38\u5DDE"},{value:"\u5F20\u5BB6\u754C",label:"\u5F20\u5BB6\u754C"},{value:"\u682A\u6D32",label:"\u682A\u6D32"}]},{value:"\u6C5F\u897F",label:"\u6C5F\u897F",children:[{value:"\u5357\u660C",label:"\u5357\u660C"},{value:"\u629A\u5DDE",label:"\u629A\u5DDE"},{value:"\u8D63\u5DDE",label:"\u8D63\u5DDE"},{value:"\u5409\u5B89",label:"\u5409\u5B89"},{value:"\u666F\u5FB7\u9547",label:"\u666F\u5FB7\u9547"},{value:"\u4E95\u5188\u5C71",label:"\u4E95\u5188\u5C71"},{value:"\u4E5D\u6C5F",label:"\u4E5D\u6C5F"},{value:"\u5E90\u5C71",label:"\u5E90\u5C71"},{value:"\u840D\u4E61",label:"\u840D\u4E61"},{value:"\u4E0A\u9976",label:"\u4E0A\u9976"},{value:"\u65B0\u4F59",label:"\u65B0\u4F59"},{value:"\u5B9C\u6625",label:"\u5B9C\u6625"},{value:"\u9E70\u6F6D",label:"\u9E70\u6F6D"}]},{value:"\u5409\u6797",label:"\u5409\u6797",children:[{value:"\u957F\u6625",label:"\u957F\u6625"},{value:"\u5409\u6797",label:"\u5409\u6797"},{value:"\u767D\u57CE",label:"\u767D\u57CE"},{value:"\u767D\u5C71",label:"\u767D\u5C71"},{value:"\u73F2\u6625",label:"\u73F2\u6625"},{value:"\u8FBD\u6E90",label:"\u8FBD\u6E90"},{value:"\u6885\u6CB3",label:"\u6885\u6CB3"},{value:"\u56DB\u5E73",label:"\u56DB\u5E73"},{value:"\u677E\u539F",label:"\u677E\u539F"},{value:"\u901A\u5316",label:"\u901A\u5316"},{value:"\u5EF6\u5409",label:"\u5EF6\u5409"}]},{value:"\u8FBD\u5B81",label:"\u8FBD\u5B81",children:[{value:"\u6C88\u9633",label:"\u6C88\u9633"},{value:"\u978D\u5C71",label:"\u978D\u5C71"},{value:"\u672C\u6EAA",label:"\u672C\u6EAA"},{value:"\u671D\u9633",label:"\u671D\u9633"},{value:"\u5927\u8FDE",label:"\u5927\u8FDE"},{value:"\u4E39\u4E1C",label:"\u4E39\u4E1C"},{value:"\u629A\u987A",label:"\u629A\u987A"},{value:"\u961C\u65B0",label:"\u961C\u65B0"},{value:"\u846B\u82A6\u5C9B",label:"\u846B\u82A6\u5C9B"},{value:"\u9526\u5DDE",label:"\u9526\u5DDE"},{value:"\u8FBD\u9633",label:"\u8FBD\u9633"},{value:"\u76D8\u9526",label:"\u76D8\u9526"},{value:"\u94C1\u5CAD",label:"\u94C1\u5CAD"},{value:"\u8425\u53E3",label:"\u8425\u53E3"}]},{value:"\u6FB3\u95E8",label:"\u6FB3\u95E8",children:[{value:"\u6FB3\u95E8",label:"\u6FB3\u95E8"}]},{value:"\u5185\u8499\u53E4",label:"\u5185\u8499\u53E4",children:[{value:"\u547C\u548C\u6D69\u7279",label:"\u547C\u548C\u6D69\u7279"},{value:"\u963F\u62C9\u5584\u76DF",label:"\u963F\u62C9\u5584\u76DF"},{value:"\u5305\u5934",label:"\u5305\u5934"},{value:"\u8D64\u5CF0",label:"\u8D64\u5CF0"},{value:"\u4E1C\u80DC",label:"\u4E1C\u80DC"},{value:"\u6D77\u62C9\u5C14",label:"\u6D77\u62C9\u5C14"},{value:"\u96C6\u5B81",label:"\u96C6\u5B81"},{value:"\u4E34\u6CB3",label:"\u4E34\u6CB3"},{value:"\u901A\u8FBD",label:"\u901A\u8FBD"},{value:"\u4E4C\u6D77",label:"\u4E4C\u6D77"},{value:"\u4E4C\u5170\u6D69\u7279",label:"\u4E4C\u5170\u6D69\u7279"},{value:"\u9521\u6797\u6D69\u7279",label:"\u9521\u6797\u6D69\u7279"}]},{value:"\u5B81\u590F",label:"\u5B81\u590F",children:[{value:"\u94F6\u5DDD",label:"\u94F6\u5DDD"},{value:"\u56FA\u6E90",label:"\u56FA\u6E90"},{value:"\u77F3\u5634\u5C71",label:"\u77F3\u5634\u5C71"},{value:"\u5434\u5FE0",label:"\u5434\u5FE0"}]},{value:"\u9752\u6D77",label:"\u9752\u6D77",children:[{value:"\u897F\u5B81",label:"\u897F\u5B81"},{value:"\u5FB7\u4EE4\u54C8",label:"\u5FB7\u4EE4\u54C8"},{value:"\u683C\u5C14\u6728",label:"\u683C\u5C14\u6728"},{value:"\u5171\u548C",label:"\u5171\u548C"},{value:"\u6D77\u4E1C",label:"\u6D77\u4E1C"},{value:"\u6D77\u664F",label:"\u6D77\u664F"},{value:"\u739B\u6C81",label:"\u739B\u6C81"},{value:"\u540C\u4EC1",label:"\u540C\u4EC1"},{value:"\u7389\u6811",label:"\u7389\u6811"}]},{value:"\u5C71\u4E1C",label:"\u5C71\u4E1C",children:[{value:"\u6D4E\u5357",label:"\u6D4E\u5357"},{value:"\u6EE8\u5DDE",label:"\u6EE8\u5DDE"},{value:"\u5156\u5DDE",label:"\u5156\u5DDE"},{value:"\u5FB7\u5DDE",label:"\u5FB7\u5DDE"},{value:"\u4E1C\u8425",label:"\u4E1C\u8425"},{value:"\u83CF\u6CFD",label:"\u83CF\u6CFD"},{value:"\u6D4E\u5B81",label:"\u6D4E\u5B81"},{value:"\u83B1\u829C",label:"\u83B1\u829C"},{value:"\u804A\u57CE",label:"\u804A\u57CE"},{value:"\u4E34\u6C82",label:"\u4E34\u6C82"},{value:"\u84EC\u83B1",label:"\u84EC\u83B1"},{value:"\u9752\u5C9B",label:"\u9752\u5C9B"},{value:"\u66F2\u961C",label:"\u66F2\u961C"},{value:"\u65E5\u7167",label:"\u65E5\u7167"},{value:"\u6CF0\u5B89",label:"\u6CF0\u5B89"},{value:"\u6F4D\u574A",label:"\u6F4D\u574A"},{value:"\u5A01\u6D77",label:"\u5A01\u6D77"},{value:"\u70DF\u53F0",label:"\u70DF\u53F0"},{value:"\u67A3\u5E84",label:"\u67A3\u5E84"},{value:"\u6DC4\u535A",label:"\u6DC4\u535A"}]},{value:"\u5C71\u897F",label:"\u5C71\u897F",children:[{value:"\u592A\u539F",label:"\u592A\u539F"},{value:"\u5415\u6881",label:"\u5415\u6881"},{value:"\u957F\u6CBB",label:"\u957F\u6CBB"},{value:"\u5927\u540C",label:"\u5927\u540C"},{value:"\u5019\u9A6C",label:"\u5019\u9A6C"},{value:"\u664B\u57CE",label:"\u664B\u57CE"},{value:"\u79BB\u77F3",label:"\u79BB\u77F3"},{value:"\u4E34\u6C7E",label:"\u4E34\u6C7E"},{value:"\u5B81\u6B66",label:"\u5B81\u6B66"},{value:"\u6714\u5DDE",label:"\u6714\u5DDE"},{value:"\u5FFB\u5DDE",label:"\u5FFB\u5DDE"},{value:"\u9633\u6CC9",label:"\u9633\u6CC9"},{value:"\u6986\u6B21",label:"\u6986\u6B21"},{value:"\u664B\u4E2D",label:"\u664B\u4E2D"},{value:"\u8FD0\u57CE",label:"\u8FD0\u57CE"}]},{value:"\u9655\u897F",label:"\u9655\u897F",children:[{value:"\u897F\u5B89",label:"\u897F\u5B89"},{value:"\u5B89\u5EB7",label:"\u5B89\u5EB7"},{value:"\u5B9D\u9E21",label:"\u5B9D\u9E21"},{value:"\u6C49\u4E2D",label:"\u6C49\u4E2D"},{value:"\u6E2D\u5357",label:"\u6E2D\u5357"},{value:"\u5546\u5DDE",label:"\u5546\u5DDE"},{value:"\u7EE5\u5FB7",label:"\u7EE5\u5FB7"},{value:"\u94DC\u5DDD",label:"\u94DC\u5DDD"},{value:"\u54B8\u9633",label:"\u54B8\u9633"},{value:"\u5EF6\u5B89",label:"\u5EF6\u5B89"},{value:"\u6986\u6797",label:"\u6986\u6797"}]},{value:"\u56DB\u5DDD",label:"\u56DB\u5DDD",children:[{value:"\u6210\u90FD",label:"\u6210\u90FD"},{value:"\u5DF4\u4E2D",label:"\u5DF4\u4E2D"},{value:"\u8FBE\u5DDD",label:"\u8FBE\u5DDD"},{value:"\u5FB7\u9633",label:"\u5FB7\u9633"},{value:"\u90FD\u6C5F\u5830",label:"\u90FD\u6C5F\u5830"},{value:"\u5CE8\u7709\u5C71",label:"\u5CE8\u7709\u5C71"},{value:"\u6DAA\u9675",label:"\u6DAA\u9675"},{value:"\u5E7F\u5B89",label:"\u5E7F\u5B89"},{value:"\u5E7F\u5143",label:"\u5E7F\u5143"},{value:"\u4E5D\u5BE8\u6C9F",label:"\u4E5D\u5BE8\u6C9F"},{value:"\u5EB7\u5B9A",label:"\u5EB7\u5B9A"},{value:"\u4E50\u5C71",label:"\u4E50\u5C71"},{value:"\u6CF8\u5DDE",label:"\u6CF8\u5DDE"},{value:"\u9A6C\u5C14\u5EB7",label:"\u9A6C\u5C14\u5EB7"},{value:"\u7EF5\u9633",label:"\u7EF5\u9633"},{value:"\u7709\u5C71",label:"\u7709\u5C71"},{value:"\u5357\u5145",label:"\u5357\u5145"},{value:"\u5185\u6C5F",label:"\u5185\u6C5F"},{value:"\u6500\u679D\u82B1",label:"\u6500\u679D\u82B1"},{value:"\u9042\u5B81",label:"\u9042\u5B81"},{value:"\u6C76\u5DDD",label:"\u6C76\u5DDD"},{value:"\u897F\u660C",label:"\u897F\u660C"},{value:"\u96C5\u5B89",label:"\u96C5\u5B89"},{value:"\u5B9C\u5BBE",label:"\u5B9C\u5BBE"},{value:"\u81EA\u8D21",label:"\u81EA\u8D21"},{value:"\u8D44\u9633",label:"\u8D44\u9633"}]},{value:"\u53F0\u6E7E",label:"\u53F0\u6E7E",children:[{value:"\u53F0\u5317",label:"\u53F0\u5317"},{value:"\u57FA\u9686",label:"\u57FA\u9686"},{value:"\u53F0\u5357",label:"\u53F0\u5357"},{value:"\u53F0\u4E2D",label:"\u53F0\u4E2D"},{value:"\u9AD8\u96C4",label:"\u9AD8\u96C4"},{value:"\u5C4F\u4E1C",label:"\u5C4F\u4E1C"},{value:"\u5357\u6295",label:"\u5357\u6295"},{value:"\u4E91\u6797",label:"\u4E91\u6797"},{value:"\u65B0\u7AF9",label:"\u65B0\u7AF9"},{value:"\u5F70\u5316",label:"\u5F70\u5316"},{value:"\u82D7\u6817",label:"\u82D7\u6817"},{value:"\u5609\u4E49",label:"\u5609\u4E49"},{value:"\u6843\u56ED",label:"\u6843\u56ED"},{value:"\u5B9C\u5170",label:"\u5B9C\u5170"},{value:"\u53F0\u4E1C",label:"\u53F0\u4E1C"},{value:"\u91D1\u95E8",label:"\u91D1\u95E8"},{value:"\u9A6C\u7956",label:"\u9A6C\u7956"},{value:"\u6F8E\u6E56",label:"\u6F8E\u6E56"}]},{value:"\u5929\u6D25",label:"\u5929\u6D25",children:[{value:"\u5929\u6D25",label:"\u5929\u6D25"},{value:"\u548C\u5E73",label:"\u548C\u5E73"},{value:"\u4E1C\u4E3D",label:"\u4E1C\u4E3D"},{value:"\u6CB3\u4E1C",label:"\u6CB3\u4E1C"},{value:"\u897F\u9752",label:"\u897F\u9752"},{value:"\u6CB3\u897F",label:"\u6CB3\u897F"},{value:"\u6D25\u5357",label:"\u6D25\u5357"},{value:"\u5357\u5F00",label:"\u5357\u5F00"},{value:"\u5317\u8FB0",label:"\u5317\u8FB0"},{value:"\u6CB3\u5317",label:"\u6CB3\u5317"},{value:"\u6B66\u6E05",label:"\u6B66\u6E05"},{value:"\u7EA2\u6322",label:"\u7EA2\u6322"},{value:"\u5858\u6CBD",label:"\u5858\u6CBD"},{value:"\u6C49\u6CBD",label:"\u6C49\u6CBD"},{value:"\u5927\u6E2F",label:"\u5927\u6E2F"},{value:"\u5B81\u6CB3",label:"\u5B81\u6CB3"},{value:"\u9759\u6D77",label:"\u9759\u6D77"},{value:"\u5B9D\u577B",label:"\u5B9D\u577B"},{value:"\u84DF\u53BF",label:"\u84DF\u53BF"}]},{value:"\u65B0\u7586",label:"\u65B0\u7586",children:[{value:"\u4E4C\u9C81\u6728\u9F50",label:"\u4E4C\u9C81\u6728\u9F50"},{value:"\u963F\u514B\u82CF",label:"\u963F\u514B\u82CF"},{value:"\u963F\u52D2\u6CF0",label:"\u963F\u52D2\u6CF0"},{value:"\u963F\u56FE\u4EC0",label:"\u963F\u56FE\u4EC0"},{value:"\u535A\u4E50",label:"\u535A\u4E50"},{value:"\u660C\u5409",label:"\u660C\u5409"},{value:"\u4E1C\u5C71",label:"\u4E1C\u5C71"},{value:"\u54C8\u5BC6",label:"\u54C8\u5BC6"},{value:"\u548C\u7530",label:"\u548C\u7530"},{value:"\u5580\u4EC0",label:"\u5580\u4EC0"},{value:"\u514B\u62C9\u739B\u4F9D",label:"\u514B\u62C9\u739B\u4F9D"},{value:"\u5E93\u8F66",label:"\u5E93\u8F66"},{value:"\u5E93\u5C14\u52D2",label:"\u5E93\u5C14\u52D2"},{value:"\u594E\u5C6F",label:"\u594E\u5C6F"},{value:"\u77F3\u6CB3\u5B50",label:"\u77F3\u6CB3\u5B50"},{value:"\u5854\u57CE",label:"\u5854\u57CE"},{value:"\u5410\u9C81\u756A",label:"\u5410\u9C81\u756A"},{value:"\u4F0A\u5B81",label:"\u4F0A\u5B81"}]},{value:"\u897F\u85CF",label:"\u897F\u85CF",children:[{value:"\u62C9\u8428",label:"\u62C9\u8428"},{value:"\u963F\u91CC",label:"\u963F\u91CC"},{value:"\u660C\u90FD",label:"\u660C\u90FD"},{value:"\u6797\u829D",label:"\u6797\u829D"},{value:"\u90A3\u66F2",label:"\u90A3\u66F2"},{value:"\u65E5\u5580\u5219",label:"\u65E5\u5580\u5219"},{value:"\u5C71\u5357",label:"\u5C71\u5357"}]},{value:"\u4E91\u5357",label:"\u4E91\u5357",children:[{value:"\u6606\u660E",label:"\u6606\u660E"},{value:"\u5927\u7406",label:"\u5927\u7406"},{value:"\u4FDD\u5C71",label:"\u4FDD\u5C71"},{value:"\u695A\u96C4",label:"\u695A\u96C4"},{value:"\u5927\u7406",label:"\u5927\u7406"},{value:"\u4E1C\u5DDD",label:"\u4E1C\u5DDD"},{value:"\u4E2A\u65E7",label:"\u4E2A\u65E7"},{value:"\u666F\u6D2A",label:"\u666F\u6D2A"},{value:"\u5F00\u8FDC",label:"\u5F00\u8FDC"},{value:"\u4E34\u6CA7",label:"\u4E34\u6CA7"},{value:"\u4E3D\u6C5F",label:"\u4E3D\u6C5F"},{value:"\u516D\u5E93",label:"\u516D\u5E93"},{value:"\u6F5E\u897F",label:"\u6F5E\u897F"},{value:"\u66F2\u9756",label:"\u66F2\u9756"},{value:"\u601D\u8305",label:"\u601D\u8305"},{value:"\u6587\u5C71",label:"\u6587\u5C71"},{value:"\u897F\u53CC\u7248\u7EB3",label:"\u897F\u53CC\u7248\u7EB3"},{value:"\u7389\u6EAA",label:"\u7389\u6EAA"},{value:"\u4E2D\u7538",label:"\u4E2D\u7538"},{value:"\u662D\u901A",label:"\u662D\u901A"}]},{value:"\u6D59\u6C5F",label:"\u6D59\u6C5F",children:[{value:"\u676D\u5DDE",label:"\u676D\u5DDE"},{value:"\u6E29\u5DDE",label:"\u6E29\u5DDE"},{value:"\u5B89\u5409",label:"\u5B89\u5409"},{value:"\u6148\u6EAA",label:"\u6148\u6EAA"},{value:"\u5B9A\u6D77",label:"\u5B9A\u6D77"},{value:"\u5949\u5316",label:"\u5949\u5316"},{value:"\u6D77\u76D0",label:"\u6D77\u76D0"},{value:"\u9EC4\u5CA9",label:"\u9EC4\u5CA9"},{value:"\u6E56\u5DDE",label:"\u6E56\u5DDE"},{value:"\u5609\u5174",label:"\u5609\u5174"},{value:"\u91D1\u534E",label:"\u91D1\u534E"},{value:"\u4E34\u5B89",label:"\u4E34\u5B89"},{value:"\u4E34\u6D77",label:"\u4E34\u6D77"},{value:"\u4E3D\u6C34",label:"\u4E3D\u6C34"},{value:"\u5B81\u6CE2",label:"\u5B81\u6CE2"},{value:"\u74EF\u6D77",label:"\u74EF\u6D77"},{value:"\u5E73\u6E56",label:"\u5E73\u6E56"},{value:"\u5343\u5C9B\u6E56",label:"\u5343\u5C9B\u6E56"},{value:"\u8862\u5DDE",label:"\u8862\u5DDE"},{value:"\u6C5F\u5C71",label:"\u6C5F\u5C71"},{value:"\u745E\u5B89",label:"\u745E\u5B89"},{value:"\u7ECD\u5174",label:"\u7ECD\u5174"},{value:"\u5D4A\u5DDE",label:"\u5D4A\u5DDE"},{value:"\u53F0\u5DDE",label:"\u53F0\u5DDE"},{value:"\u6E29\u5CAD",label:"\u6E29\u5CAD"},{value:"\u4F59\u59DA",label:"\u4F59\u59DA"},{value:"\u821F\u5C71",label:"\u821F\u5C71"}]},{value:"\u6D77\u5916",label:"\u6D77\u5916",children:[{value:"\u7F8E\u56FD",label:"\u7F8E\u56FD"},{value:"\u65E5\u672C",label:"\u65E5\u672C"},{value:"\u82F1\u56FD",label:"\u82F1\u56FD"},{value:"\u6CD5\u56FD",label:"\u6CD5\u56FD"},{value:"\u5FB7\u56FD",label:"\u5FB7\u56FD"},{value:"\u5176\u4ED6",label:"\u5176\u4ED6"}]}]},74410:function(Kn,cn,z){"use strict";z.d(cn,{AL:function(){return He},Iy:function(){return tt},Qv:function(){return at},ez:function(){return Xt},jb:function(){return ve}});var b=z(32834),Pe=z.n(b),fe=z(11690),rt=z.n(fe);let xe=1;function ge(Ot,yt){const Et=Ot.match(/^(\s+)(?:```)/);if(Et===null)return yt;const pe=Et[1];return yt.split(`
|
|
|
`).map(Je=>{const Xe=Je.match(/^\s+/);if(Xe===null)return Je;const[ue]=Xe;return ue.length>=pe.length?Je.slice(pe.length):Je}).join(`
|
|
|
`)}let Ee=[],Qe=["<ul>"];const Ae=new(Pe()).Renderer,de=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function tt(){Ee.length=0,Qe=["<ul>"]}const ve={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function Lt(Ot,yt,Et,pe){if(yt>=Ot.length||Ot[yt].level<=Et)return yt;var Je=Ot[yt];pe.push("<li><a href='#"+xe+Je.anchor+"'>"+Je.text+"</a>"),yt++;var Xe=[];return yt=Lt(Ot,yt,Je.level,Xe),Xe.length>0&&(pe.push("<ul>"),Xe.forEach(function(ue){pe.push(ue)}),pe.push("</ul>")),pe.push("</li>"),yt=Lt(Ot,yt,Et,pe),yt}function at(){return Lt(Ee,0,0,Qe),Qe.push("</ul>"),Qe.join("")}const Ve={heading(Ot){const yt=de.exec(Ot);if(xe+=1,yt)return{type:"heading",raw:yt[0],depth:yt[1].length,text:yt[2]}},fences(Ot){const yt=this.rules.block.fences.exec(Ot);if(yt){const Et=yt[0];let pe=ge(Et,yt[3]||"");const Je=yt[2]?yt[2].trim():yt[2];if(["latex","katex","math"].indexOf(Je)>=0){const Xe=pt(),ue=pe;pe=Xe,mt[Xe]={type:"block",expression:ue}}return{type:"code",raw:Et,lang:Je,text:pe}}}},Ne=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let Ze=0;const pt=()=>`__special_katext_id_${Ze++}__`;let mt={};function Xt(){return mt}function He(){Ze=0,mt={}}function Ke(Ot){return Ot=Ot.replace(Ne,(yt,Et)=>{const pe=pt();return mt[pe]={type:"inline",expression:Et},pe}),Ot}const ut=Ae.listitem;Ae.listitem=function(Ot){return ut(Ke(Ot))};const ft=Ae.paragraph;Ae.paragraph=function(Ot){return ft(Ke(Ot))};const jt=Ae.tablecell;Ae.tablecell=function(Ot,yt){return jt(Ke(Ot),yt)},Ae.code=function(Ot,yt,Et){const pe=(yt||"").match(/\S*/)[0];return pe?["latex","katex","math"].indexOf(pe)>=0?`<p class='editormd-tex'>${Ot}</p>`:`<pre class="prettyprint linenums"><code class="language-${yt}">${Et?Ot:(0,fe.escape)(Ot,!0)}</code></pre>
|
|
|
`:'<pre class="prettyprint linenums"><code>'+(Et?Ot:(0,fe.escape)(Ot,!0))+"</code></pre>"},Ae.heading=function(Ot,yt,Et){let pe=this.options.headerPrefix+Et.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return Ee.push({anchor:pe,level:yt,text:Ot}),"<h"+yt+' id="'+xe+pe+'">'+Ot+"</h"+yt+">"},Pe().setOptions({silent:!0,gfm:!0,pedantic:!1}),Pe().use({tokenizer:Ve,renderer:Ae}),cn.ZP=Pe()},9981:function(Kn,cn){"use strict";const z=function(){const b=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let Pe=1;Pe<arguments.length;Pe++){const fe=Pe<0||arguments.length<=Pe?void 0:arguments[Pe];fe&&Object.keys(fe).forEach(rt=>{const xe=fe[rt];xe!==void 0&&(b[rt]=xe)})}return b};cn.Z=z},86013:function(Kn,cn,z){"use strict";var b=z(59301),Pe=z(19248);const fe=rt=>{let xe;return typeof rt=="object"&&(rt!=null&&rt.clearIcon)?xe=rt:rt&&(xe={clearIcon:b.createElement(Pe.Z,null)}),xe};cn.Z=fe},54500:function(Kn,cn,z){"use strict";z.d(cn,{Z:function(){return b}});const b=Pe=>Pe?typeof Pe=="function"?Pe():Pe:null},97224:function(Kn,cn,z){"use strict";z.d(cn,{F:function(){return b}});function b(fe){return fe!=null&&fe===fe.window}const Pe=fe=>{var rt,xe;if(typeof window=="undefined")return 0;let ge=0;return b(fe)?ge=fe.pageYOffset:fe instanceof Document?ge=fe.documentElement.scrollTop:(fe instanceof HTMLElement||fe)&&(ge=fe.scrollTop),fe&&!b(fe)&&typeof ge!="number"&&(ge=(xe=((rt=fe.ownerDocument)!==null&&rt!==void 0?rt:fe).documentElement)===null||xe===void 0?void 0:xe.scrollTop),ge};cn.Z=Pe},83010:function(Kn,cn,z){"use strict";z.d(cn,{Z:function(){return rt}});var b=z(16089);function Pe(xe,ge,Ee,Qe){const Ae=Ee-ge;return xe/=Qe/2,xe<1?Ae/2*xe*xe*xe+ge:Ae/2*((xe-=2)*xe*xe+2)+ge}var fe=z(97224);function rt(xe){let ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:Ee=()=>window,callback:Qe,duration:Ae=450}=ge,de=Ee(),tt=(0,fe.Z)(de),ve=Date.now(),Lt=()=>{const Ve=Date.now()-ve,Ne=Pe(Ve>Ae?Ae:Ve,tt,xe,Ae);(0,fe.F)(de)?de.scrollTo(window.pageXOffset,Ne):de instanceof Document||de.constructor.name==="HTMLDocument"?de.documentElement.scrollTop=Ne:de.scrollTop=Ne,Ve<Ae?(0,b.Z)(Lt):typeof Qe=="function"&&Qe()};(0,b.Z)(Lt)}},1560:function(Kn,cn,z){"use strict";z.d(cn,{Z:function(){return pt}});var b=z(2738),Pe=z(45915),fe=z(82326),rt=z(59301),xe=z(92310),ge=z.n(xe),Ee=z(11592),Qe=z(75030),Ae=z(48755);const{Option:de}=fe.default;function tt(mt){return(mt==null?void 0:mt.type)&&(mt.type.isSelectOption||mt.type.isSelectOptGroup)}const ve=(mt,Xt)=>{var He;const{prefixCls:Ke,className:ut,popupClassName:ft,dropdownClassName:jt,children:Ot,dataSource:yt}=mt,Et=(0,Ee.Z)(Ot);let pe;Et.length===1&&rt.isValidElement(Et[0])&&!tt(Et[0])&&([pe]=Et);const Je=pe?()=>pe:void 0;let Xe;Et.length&&tt(Et[0])?Xe=Ot:Xe=yt?yt.map(wt=>{if(rt.isValidElement(wt))return wt;switch(typeof wt){case"string":return rt.createElement(de,{key:wt,value:wt},wt);case"object":{const{value:ln}=wt;return rt.createElement(de,{key:ln,value:ln},wt.text)}default:return}}):[];const{getPrefixCls:ue}=rt.useContext(Ae.E_),Nt=ue("select",Ke),[et]=(0,Qe.Cn)("SelectLike",(He=mt.dropdownStyle)===null||He===void 0?void 0:He.zIndex);return rt.createElement(fe.default,Object.assign({ref:Xt,suffixIcon:null},(0,b.Z)(mt,["dataSource","dropdownClassName"]),{prefixCls:Nt,popupClassName:ft||jt,dropdownStyle:Object.assign(Object.assign({},mt.dropdownStyle),{zIndex:et}),className:ge()(`${Nt}-auto-complete`,ut),mode:fe.default.SECRET_COMBOBOX_MODE_DO_NOT_USE,getInputElement:Je}),Xe)};var at=rt.forwardRef(ve);const{Option:Ve}=fe.default,Ne=(0,Pe.Z)(at,"dropdownAlign",mt=>(0,b.Z)(mt,["visible"])),Ze=at;Ze.Option=Ve,Ze._InternalPanelDoNotUseOrYouWillBeFired=Ne;var pt=Ze},79939:function(Kn,cn,z){"use strict";z.d(cn,{Z:function(){return Zt}});var b=z(94480),Pe=z(59301),fe=z(92310),rt=z.n(fe),xe=z(54476),ge=z(33885),Ee=z(42978),Qe=z(75931),Ae=z(37463),de=z(6551),tt=z(6089),ve=z(18929),Lt=Pe.createContext({}),at=Lt,Ve=z(76190),Ne=z(20068),Ze="__rc_cascader_search_mark__",pt=function(Te,Me,je){var it=je.label,an=it===void 0?"":it;return Me.some(function(dn){return String(dn[an]).toLowerCase().includes(Te.toLowerCase())})},mt=function(Te,Me,je,it){return Me.map(function(an){return an[it.label]}).join(" / ")},Xt=function(Te,Me,je,it,an,dn){var hn=an.filter,$n=hn===void 0?pt:hn,ar=an.render,Cr=ar===void 0?mt:ar,qn=an.limit,Gn=qn===void 0?50:qn,Jn=an.sort;return Pe.useMemo(function(){var gr=[];if(!Te)return[];function Ge(bt,Vt){var Ht=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;bt.forEach(function(tn){if(!(!Jn&&Gn!==!1&&Gn>0&&gr.length>=Gn)){var An=[].concat((0,b.Z)(Vt),[tn]),Vn=tn[je.children],tr=Ht||tn.disabled;if((!Vn||Vn.length===0||dn)&&$n(Te,An,{label:je.label})){var Nn;gr.push((0,ge.Z)((0,ge.Z)({},tn),{},(Nn={disabled:tr},(0,Ne.Z)(Nn,je.label,Cr(Te,An,it,je)),(0,Ne.Z)(Nn,Ze,An),(0,Ne.Z)(Nn,je.children,void 0),Nn)))}Vn&&Ge(tn[je.children],An,tr)}})}return Ge(Me,[]),Jn&&gr.sort(function(bt,Vt){return Jn(bt[Ze],Vt[Ze],Te,je)}),Gn!==!1&&Gn>0?gr.slice(0,Gn):gr},[Te,Me,je,it,Cr,dn,$n,Jn,Gn])},He=Xt,Ke="__RC_CASCADER_SPLIT__",ut="SHOW_PARENT",ft="SHOW_CHILD";function jt(De){return De.join(Ke)}function Ot(De){return De.map(jt)}function yt(De){return De.split(Ke)}function Et(De){var Te=De||{},Me=Te.label,je=Te.value,it=Te.children,an=je||"value";return{label:Me||"label",value:an,key:an,children:it||"children"}}function pe(De,Te){var Me,je;return(Me=De.isLeaf)!==null&&Me!==void 0?Me:!((je=De[Te.children])!==null&&je!==void 0&&je.length)}function Je(De){var Te=De.parentElement;if(Te){var Me=De.offsetTop-Te.offsetTop;Me-Te.scrollTop<0?Te.scrollTo({top:Me}):Me+De.offsetHeight-Te.scrollTop>Te.offsetHeight&&Te.scrollTo({top:Me+De.offsetHeight-Te.offsetHeight})}}function Xe(De,Te){return De.map(function(Me){var je;return(je=Me[Ze])===null||je===void 0?void 0:je.map(function(it){return it[Te.value]})})}function ue(De){return Array.isArray(De)&&Array.isArray(De[0])}function Nt(De){return De?ue(De)?De:(De.length===0?[]:[De]).map(function(Te){return Array.isArray(Te)?Te:[Te]}):[]}function et(De,Te,Me){var je=new Set(De),it=Te();return De.filter(function(an){var dn=it[an],hn=dn?dn.parent:null,$n=dn?dn.children:null;return dn&&dn.node.disabled?!0:Me===ft?!($n&&$n.some(function(ar){return ar.key&&je.has(ar.key)})):!(hn&&!hn.node.disabled&&je.has(hn.key))})}function wt(De,Te,Me){for(var je=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,it=Te,an=[],dn=function(){var ar,Cr,qn,Gn=De[hn],Jn=(ar=it)===null||ar===void 0?void 0:ar.findIndex(function(Ge){var bt=Ge[Me.value];return je?String(bt)===String(Gn):bt===Gn}),gr=Jn!==-1?(Cr=it)===null||Cr===void 0?void 0:Cr[Jn]:null;an.push({value:(qn=gr==null?void 0:gr[Me.value])!==null&&qn!==void 0?qn:Gn,index:Jn,option:gr}),it=gr==null?void 0:gr[Me.children]},hn=0;hn<De.length;hn+=1)dn();return an}var ln=function(De,Te,Me,je,it){return Pe.useMemo(function(){var an=it||function(dn){var hn=je?dn.slice(-1):dn,$n=" / ";return hn.every(function(ar){return["string","number"].includes((0,Ve.Z)(ar))})?hn.join($n):hn.reduce(function(ar,Cr,qn){var Gn=Pe.isValidElement(Cr)?Pe.cloneElement(Cr,{key:qn}):Cr;return qn===0?[Gn]:[].concat((0,b.Z)(ar),[$n,Gn])},[])};return De.map(function(dn){var hn,$n=wt(dn,Te,Me),ar=an($n.map(function(qn){var Gn,Jn=qn.option,gr=qn.value;return(Gn=Jn==null?void 0:Jn[Me.label])!==null&&Gn!==void 0?Gn:gr}),$n.map(function(qn){var Gn=qn.option;return Gn})),Cr=jt(dn);return{label:ar,value:Cr,key:Cr,valueCells:dn,disabled:(hn=$n[$n.length-1])===null||hn===void 0||(hn=hn.option)===null||hn===void 0?void 0:hn.disabled}})},[De,Te,Me,it,je])};function ke(De,Te){return Pe.useCallback(function(Me){var je=[],it=[];return Me.forEach(function(an){var dn=wt(an,De,Te);dn.every(function(hn){return hn.option})?it.push(an):je.push(an)}),[it,je]},[De,Te])}var he=z(34061),Ct=function(De,Te){var Me=Pe.useRef({options:[],info:{keyEntities:{},pathKeyEntities:{}}}),je=Pe.useCallback(function(){return Me.current.options!==De&&(Me.current.options=De,Me.current.info=(0,he.I8)(De,{fieldNames:Te,initWrapper:function(an){return(0,ge.Z)((0,ge.Z)({},an),{},{pathKeyEntities:{}})},processEntity:function(an,dn){var hn=an.nodes.map(function($n){return $n[Te.value]}).join(Ke);dn.pathKeyEntities[hn]=an,an.key=hn}})),Me.current.info.pathKeyEntities},[Te,De]);return je};function Pt(De,Te){var Me=Pe.useMemo(function(){return Te||[]},[Te]),je=Ct(Me,De),it=Pe.useCallback(function(an){var dn=je();return an.map(function(hn){var $n=dn[hn].nodes;return $n.map(function(ar){return ar[De.value]})})},[je,De]);return[Me,je,it]}var Kt=z(48736);function Ce(De){return Pe.useMemo(function(){if(!De)return[!1,{}];var Te={matchInputWidth:!0,limit:50};return De&&(0,Ve.Z)(De)==="object"&&(Te=(0,ge.Z)((0,ge.Z)({},Te),De)),Te.limit<=0&&(Te.limit=!1),[!0,Te]},[De])}var ot=z(34643);function lt(De,Te,Me,je,it,an,dn,hn){return function($n){if(!De)Te($n);else{var ar=jt($n),Cr=Ot(Me),qn=Ot(je),Gn=Cr.includes(ar),Jn=it.some(function(tr){return jt(tr)===ar}),gr=Me,Ge=it;if(Jn&&!Gn)Ge=it.filter(function(tr){return jt(tr)!==ar});else{var bt=Gn?Cr.filter(function(tr){return tr!==ar}):[].concat((0,b.Z)(Cr),[ar]),Vt=an(),Ht;if(Gn){var tn=(0,ot.S)(bt,{checked:!1,halfCheckedKeys:qn},Vt);Ht=tn.checkedKeys}else{var An=(0,ot.S)(bt,!0,Vt);Ht=An.checkedKeys}var Vn=et(Ht,an,hn);gr=dn(Vn)}Te([].concat((0,b.Z)(Ge),(0,b.Z)(gr)))}}}function Wt(De,Te,Me,je,it){return Pe.useMemo(function(){var an=it(Te),dn=(0,Ee.Z)(an,2),hn=dn[0],$n=dn[1];if(!De||!Te.length)return[hn,[],$n];var ar=Ot(hn),Cr=Me(),qn=(0,ot.S)(ar,!0,Cr),Gn=qn.checkedKeys,Jn=qn.halfCheckedKeys;return[je(Gn),je(Jn),$n]},[De,Te,Me,je,it])}var ct=Pe.memo(function(De){var Te=De.children;return Te},function(De,Te){return!Te.open}),$t=ct;function vt(De){var Te,Me=De.prefixCls,je=De.checked,it=De.halfChecked,an=De.disabled,dn=De.onClick,hn=De.disableCheckbox,$n=Pe.useContext(at),ar=$n.checkable,Cr=typeof ar!="boolean"?ar:null;return Pe.createElement("span",{className:rt()("".concat(Me),(Te={},(0,Ne.Z)(Te,"".concat(Me,"-checked"),je),(0,Ne.Z)(Te,"".concat(Me,"-indeterminate"),!je&&it),(0,Ne.Z)(Te,"".concat(Me,"-disabled"),an||hn),Te)),onClick:dn},Cr)}var gn="__cascader_fix_label__";function Tt(De){var Te=De.prefixCls,Me=De.multiple,je=De.options,it=De.activeValue,an=De.prevValuePath,dn=De.onToggleOpen,hn=De.onSelect,$n=De.onActive,ar=De.checkedSet,Cr=De.halfCheckedSet,qn=De.loadingKeys,Gn=De.isSelectable,Jn=De.disabled,gr="".concat(Te,"-menu"),Ge="".concat(Te,"-menu-item"),bt=Pe.useContext(at),Vt=bt.fieldNames,Ht=bt.changeOnSelect,tn=bt.expandTrigger,An=bt.expandIcon,Vn=bt.loadingIcon,tr=bt.dropdownMenuColumnStyle,Nn=bt.optionRender,or=tn==="hover",cr=function(lr){return Jn||lr},nr=Pe.useMemo(function(){return je.map(function(hr){var lr,Er=hr.disabled,Ir=hr.disableCheckbox,zr=hr[Ze],Pr=(lr=hr[gn])!==null&&lr!==void 0?lr:hr[Vt.label],Or=hr[Vt.value],Sr=pe(hr,Vt),Tr=zr?zr.map(function(er){return er[Vt.value]}):[].concat((0,b.Z)(an),[Or]),br=jt(Tr),wr=qn.includes(br),_n=ar.has(br),In=Cr.has(br);return{disabled:Er,label:Pr,value:Or,isLeaf:Sr,isLoading:wr,checked:_n,halfChecked:In,option:hr,disableCheckbox:Ir,fullPath:Tr,fullPathKey:br}})},[je,ar,Vt,Cr,qn,an]);return Pe.createElement("ul",{className:gr,role:"menu"},nr.map(function(hr){var lr,Er=hr.disabled,Ir=hr.label,zr=hr.value,Pr=hr.isLeaf,Or=hr.isLoading,Sr=hr.checked,Tr=hr.halfChecked,br=hr.option,wr=hr.fullPath,_n=hr.fullPathKey,In=hr.disableCheckbox,er=function(){if(!cr(Er)){var mr=(0,b.Z)(wr);or&&Pr&&mr.pop(),$n(mr)}},Rn=function(){Gn(br)&&!cr(Er)&&hn(wr,Pr)},bn;return typeof br.title=="string"?bn=br.title:typeof Ir=="string"&&(bn=Ir),Pe.createElement("li",{key:_n,className:rt()(Ge,(lr={},(0,Ne.Z)(lr,"".concat(Ge,"-expand"),!Pr),(0,Ne.Z)(lr,"".concat(Ge,"-active"),it===zr||it===_n),(0,Ne.Z)(lr,"".concat(Ge,"-disabled"),cr(Er)),(0,Ne.Z)(lr,"".concat(Ge,"-loading"),Or),lr)),style:tr,role:"menuitemcheckbox",title:bn,"aria-checked":Sr,"data-path-key":_n,onClick:function(){er(),!In&&(!Me||Pr)&&Rn()},onDoubleClick:function(){Ht&&dn(!1)},onMouseEnter:function(){or&&er()},onMouseDown:function(mr){mr.preventDefault()}},Me&&Pe.createElement(vt,{prefixCls:"".concat(Te,"-checkbox"),checked:Sr,halfChecked:Tr,disabled:cr(Er)||In,disableCheckbox:In,onClick:function(mr){In||(mr.stopPropagation(),Rn())}}),Pe.createElement("div",{className:"".concat(Ge,"-content")},Nn?Nn(br):Ir),!Or&&An&&!Pr&&Pe.createElement("div",{className:"".concat(Ge,"-expand-icon")},An),Or&&Vn&&Pe.createElement("div",{className:"".concat(Ge,"-loading-icon")},Vn))}))}var ie=function(Te,Me){var je=Pe.useContext(at),it=je.values,an=it[0],dn=Pe.useState([]),hn=(0,Ee.Z)(dn,2),$n=hn[0],ar=hn[1];return Pe.useEffect(function(){Te||ar(an||[])},[Me,an]),[$n,ar]},ne=ie,te=z(10228),oe=function(De,Te,Me,je,it,an,dn){var hn=dn.direction,$n=dn.searchValue,ar=dn.toggleOpen,Cr=dn.open,qn=hn==="rtl",Gn=Pe.useMemo(function(){for(var tr=-1,Nn=Te,or=[],cr=[],nr=je.length,hr=Xe(Te,Me),lr=function(Or){var Sr=Nn.findIndex(function(Tr,br){return(hr[br]?jt(hr[br]):Tr[Me.value])===je[Or]});if(Sr===-1)return 1;tr=Sr,or.push(tr),cr.push(je[Or]),Nn=Nn[tr][Me.children]},Er=0;Er<nr&&Nn&&!lr(Er);Er+=1);for(var Ir=Te,zr=0;zr<or.length-1;zr+=1)Ir=Ir[or[zr]][Me.children];return[cr,tr,Ir,hr]},[je,Me,Te]),Jn=(0,Ee.Z)(Gn,4),gr=Jn[0],Ge=Jn[1],bt=Jn[2],Vt=Jn[3],Ht=function(Nn){it(Nn)},tn=function(Nn){var or=bt.length,cr=Ge;cr===-1&&Nn<0&&(cr=or);for(var nr=0;nr<or;nr+=1){cr=(cr+Nn+or)%or;var hr=bt[cr];if(hr&&!hr.disabled){var lr=gr.slice(0,-1).concat(Vt[cr]?jt(Vt[cr]):hr[Me.value]);Ht(lr);return}}},An=function(){if(gr.length>1){var Nn=gr.slice(0,-1);Ht(Nn)}else ar(!1)},Vn=function(){var Nn,or=((Nn=bt[Ge])===null||Nn===void 0?void 0:Nn[Me.children])||[],cr=or.find(function(hr){return!hr.disabled});if(cr){var nr=[].concat((0,b.Z)(gr),[cr[Me.value]]);Ht(nr)}};Pe.useImperativeHandle(De,function(){return{onKeyDown:function(Nn){var or=Nn.which;switch(or){case te.Z.UP:case te.Z.DOWN:{var cr=0;or===te.Z.UP?cr=-1:or===te.Z.DOWN&&(cr=1),cr!==0&&tn(cr);break}case te.Z.LEFT:{if($n)break;qn?Vn():An();break}case te.Z.RIGHT:{if($n)break;qn?An():Vn();break}case te.Z.BACKSPACE:{$n||An();break}case te.Z.ENTER:{if(gr.length){var nr=bt[Ge],hr=(nr==null?void 0:nr[Ze])||[];hr.length?an(hr.map(function(lr){return lr[Me.value]}),hr[hr.length-1]):an(gr,bt[Ge])}break}case te.Z.ESC:ar(!1),Cr&&Nn.stopPropagation()}},onKeyUp:function(){}}})},se=Pe.forwardRef(function(De,Te){var Me,je,it,an=De.prefixCls,dn=De.multiple,hn=De.searchValue,$n=De.toggleOpen,ar=De.notFoundContent,Cr=De.direction,qn=De.open,Gn=De.disabled,Jn=Pe.useRef(null),gr=Cr==="rtl",Ge=Pe.useContext(at),bt=Ge.options,Vt=Ge.values,Ht=Ge.halfValues,tn=Ge.fieldNames,An=Ge.changeOnSelect,Vn=Ge.onSelect,tr=Ge.searchOptions,Nn=Ge.dropdownPrefixCls,or=Ge.loadData,cr=Ge.expandTrigger,nr=Nn||an,hr=Pe.useState([]),lr=(0,Ee.Z)(hr,2),Er=lr[0],Ir=lr[1],zr=function(Fr){if(!(!or||hn)){var Rr=wt(Fr,bt,tn),Ur=Rr.map(function(Yr){var Xr=Yr.option;return Xr}),jr=Ur[Ur.length-1];if(jr&&!pe(jr,tn)){var ro=jt(Fr);Ir(function(Yr){return[].concat((0,b.Z)(Yr),[ro])}),or(Ur)}}};Pe.useEffect(function(){Er.length&&Er.forEach(function(Ar){var Fr=yt(Ar),Rr=wt(Fr,bt,tn,!0).map(function(jr){var ro=jr.option;return ro}),Ur=Rr[Rr.length-1];(!Ur||Ur[tn.children]||pe(Ur,tn))&&Ir(function(jr){return jr.filter(function(ro){return ro!==Ar})})})},[bt,Er,tn]);var Pr=Pe.useMemo(function(){return new Set(Ot(Vt))},[Vt]),Or=Pe.useMemo(function(){return new Set(Ot(Ht))},[Ht]),Sr=ne(dn,qn),Tr=(0,Ee.Z)(Sr,2),br=Tr[0],wr=Tr[1],_n=function(Fr){wr(Fr),zr(Fr)},In=function(Fr){if(Gn)return!1;var Rr=Fr.disabled,Ur=pe(Fr,tn);return!Rr&&(Ur||An||dn)},er=function(Fr,Rr){var Ur=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Vn(Fr),!dn&&(Rr||An&&(cr==="hover"||Ur))&&$n(!1)},Rn=Pe.useMemo(function(){return hn?tr:bt},[hn,tr,bt]),bn=Pe.useMemo(function(){for(var Ar=[{options:Rn}],Fr=Rn,Rr=Xe(Fr,tn),Ur=function(){var Yr=br[jr],Xr=Fr.find(function(vo,Fo){return(Rr[Fo]?jt(Rr[Fo]):vo[tn.value])===Yr}),eo=Xr==null?void 0:Xr[tn.children];if(!(eo!=null&&eo.length))return 1;Fr=eo,Ar.push({options:eo})},jr=0;jr<br.length&&!Ur();jr+=1);return Ar},[Rn,br,tn]),ir=function(Fr,Rr){In(Rr)&&er(Fr,pe(Rr,tn),!0)};oe(Te,Rn,tn,br,_n,ir,{direction:Cr,searchValue:hn,toggleOpen:$n,open:qn}),Pe.useEffect(function(){if(!hn)for(var Ar=0;Ar<br.length;Ar+=1){var Fr,Rr=br.slice(0,Ar+1),Ur=jt(Rr),jr=(Fr=Jn.current)===null||Fr===void 0?void 0:Fr.querySelector('li[data-path-key="'.concat(Ur.replace(/\\{0,2}"/g,'\\"'),'"]'));jr&&Je(jr)}},[br,hn]);var mr=!((Me=bn[0])!==null&&Me!==void 0&&(Me=Me.options)!==null&&Me!==void 0&&Me.length),On=[(je={},(0,Ne.Z)(je,tn.value,"__EMPTY__"),(0,Ne.Z)(je,gn,ar),(0,Ne.Z)(je,"disabled",!0),je)],Hn=(0,ge.Z)((0,ge.Z)({},De),{},{multiple:!mr&&dn,onSelect:er,onActive:_n,onToggleOpen:$n,checkedSet:Pr,halfCheckedSet:Or,loadingKeys:Er,isSelectable:In}),Xn=mr?[{options:On}]:bn,vr=Xn.map(function(Ar,Fr){var Rr=br.slice(0,Fr),Ur=br[Fr];return Pe.createElement(Tt,(0,xe.Z)({key:Fr},Hn,{prefixCls:nr,options:Ar.options,prevValuePath:Rr,activeValue:Ur}))});return Pe.createElement($t,{open:qn},Pe.createElement("div",{className:rt()("".concat(nr,"-menus"),(it={},(0,Ne.Z)(it,"".concat(nr,"-menu-empty"),mr),(0,Ne.Z)(it,"".concat(nr,"-rtl"),gr),it)),ref:Jn},vr))}),re=se,le=Pe.forwardRef(function(De,Te){var Me=(0,Ae.lk)();return Pe.createElement(re,(0,xe.Z)({},De,Me,{ref:Te}))}),me=le,Dt=z(70425);function Re(){}function Fe(De){var Te,Me=De,je=Me.prefixCls,it=je===void 0?"rc-cascader":je,an=Me.style,dn=Me.className,hn=Me.options,$n=Me.checkable,ar=Me.defaultValue,Cr=Me.value,qn=Me.fieldNames,Gn=Me.changeOnSelect,Jn=Me.onChange,gr=Me.showCheckedStrategy,Ge=Me.loadData,bt=Me.expandTrigger,Vt=Me.expandIcon,Ht=Vt===void 0?">":Vt,tn=Me.loadingIcon,An=Me.direction,Vn=Me.notFoundContent,tr=Vn===void 0?"Not Found":Vn,Nn=Me.disabled,or=!!$n,cr=(0,Dt.C8)(ar,{value:Cr,postState:Nt}),nr=(0,Ee.Z)(cr,2),hr=nr[0],lr=nr[1],Er=Pe.useMemo(function(){return Et(qn)},[JSON.stringify(qn)]),Ir=Pt(Er,hn),zr=(0,Ee.Z)(Ir,3),Pr=zr[0],Or=zr[1],Sr=zr[2],Tr=ke(Pr,Er),br=Wt(or,hr,Or,Sr,Tr),wr=(0,Ee.Z)(br,3),_n=wr[0],In=wr[1],er=wr[2],Rn=(0,Dt.zX)(function(Xn){if(lr(Xn),Jn){var vr=Nt(Xn),Ar=vr.map(function(Ur){return wt(Ur,Pr,Er).map(function(jr){return jr.option})}),Fr=or?vr:vr[0],Rr=or?Ar:Ar[0];Jn(Fr,Rr)}}),bn=lt(or,Rn,_n,In,er,Or,Sr,gr),ir=(0,Dt.zX)(function(Xn){bn(Xn)}),mr=Pe.useMemo(function(){return{options:Pr,fieldNames:Er,values:_n,halfValues:In,changeOnSelect:Gn,onSelect:ir,checkable:$n,searchOptions:[],dropdownPrefixCls:void 0,loadData:Ge,expandTrigger:bt,expandIcon:Ht,loadingIcon:tn,dropdownMenuColumnStyle:void 0}},[Pr,Er,_n,In,Gn,ir,$n,Ge,bt,Ht,tn]),On="".concat(it,"-panel"),Hn=!Pr.length;return Pe.createElement(at.Provider,{value:mr},Pe.createElement("div",{className:rt()(On,(Te={},(0,Ne.Z)(Te,"".concat(On,"-rtl"),An==="rtl"),(0,Ne.Z)(Te,"".concat(On,"-empty"),Hn),Te),dn),style:an},Hn?tr:Pe.createElement(re,{prefixCls:it,searchValue:"",multiple:or,toggleOpen:Re,open:!0,direction:An,disabled:Nn})))}function qe(De){var Te=De.onPopupVisibleChange,Me=De.popupVisible,je=De.popupClassName,it=De.popupPlacement;warning(!Te,"`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."),warning(Me===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning(je===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning(it===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function nt(De,Te){if(De){var Me=function je(it){for(var an=0;an<it.length;an++){var dn=it[an];if(dn[Te==null?void 0:Te.value]===null)return warning(!1,"`value` in Cascader options should not be `null`."),!0;if(Array.isArray(dn[Te==null?void 0:Te.children])&&je(dn[Te==null?void 0:Te.children]))return!0}};Me(De)}}var st=null,we=["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","autoClearSearchValue","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","dropdownStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","children","dropdownMatchSelectWidth","showCheckedStrategy","optionRender"],Be=Pe.forwardRef(function(De,Te){var Me=De.id,je=De.prefixCls,it=je===void 0?"rc-cascader":je,an=De.fieldNames,dn=De.defaultValue,hn=De.value,$n=De.changeOnSelect,ar=De.onChange,Cr=De.displayRender,qn=De.checkable,Gn=De.autoClearSearchValue,Jn=Gn===void 0?!0:Gn,gr=De.searchValue,Ge=De.onSearch,bt=De.showSearch,Vt=De.expandTrigger,Ht=De.options,tn=De.dropdownPrefixCls,An=De.loadData,Vn=De.popupVisible,tr=De.open,Nn=De.popupClassName,or=De.dropdownClassName,cr=De.dropdownMenuColumnStyle,nr=De.dropdownStyle,hr=De.popupPlacement,lr=De.placement,Er=De.onDropdownVisibleChange,Ir=De.onPopupVisibleChange,zr=De.expandIcon,Pr=zr===void 0?">":zr,Or=De.loadingIcon,Sr=De.children,Tr=De.dropdownMatchSelectWidth,br=Tr===void 0?!1:Tr,wr=De.showCheckedStrategy,_n=wr===void 0?ut:wr,In=De.optionRender,er=(0,Qe.Z)(De,we),Rn=(0,de.ZP)(Me),bn=!!qn,ir=(0,ve.Z)(dn,{value:hn,postState:Nt}),mr=(0,Ee.Z)(ir,2),On=mr[0],Hn=mr[1],Xn=Pe.useMemo(function(){return Et(an)},[JSON.stringify(an)]),vr=Pt(Xn,Ht),Ar=(0,Ee.Z)(vr,3),Fr=Ar[0],Rr=Ar[1],Ur=Ar[2],jr=(0,ve.Z)("",{value:gr,postState:function(no){return no||""}}),ro=(0,Ee.Z)(jr,2),Yr=ro[0],Xr=ro[1],eo=function(no,bo){Xr(no),bo.source!=="blur"&&Ge&&Ge(no)},vo=Ce(bt),Fo=(0,Ee.Z)(vo,2),Yo=Fo[0],Bo=Fo[1],Ko=He(Yr,Fr,Xn,tn||it,Bo,$n||bn),Jr=ke(Fr,Xn),Qr=Wt(bn,On,Rr,Ur,Jr),Vo=(0,Ee.Z)(Qr,3),Wo=Vo[0],po=Vo[1],ko=Vo[2],Xo=Pe.useMemo(function(){var Hr=Ot(Wo),no=et(Hr,Rr,_n);return[].concat((0,b.Z)(ko),(0,b.Z)(Ur(no)))},[Wo,Rr,Ur,ko,_n]),Ao=ln(Xo,Fr,Xn,bn,Cr),Zo=(0,tt.Z)(function(Hr){if(Hn(Hr),ar){var no=Nt(Hr),bo=no.map(function(wo){return wt(wo,Fr,Xn).map(function(Po){return Po.option})}),ua=bn?no:no[0],qo=bn?bo:bo[0];ar(ua,qo)}}),Ho=lt(bn,Zo,Wo,po,ko,Rr,Ur,_n),ba=(0,tt.Z)(function(Hr){(!bn||Jn)&&Xr(""),Ho(Hr)}),Ha=function(no,bo){if(bo.type==="clear"){Zo([]);return}var ua=bo.values[0],qo=ua.valueCells;ba(qo)},xa=tr!==void 0?tr:Vn,ga=or||Nn,Ei=lr||hr,wi=function(no){Er==null||Er(no),Ir==null||Ir(no)},Io=Pe.useMemo(function(){return{options:Fr,fieldNames:Xn,values:Wo,halfValues:po,changeOnSelect:$n,onSelect:ba,checkable:qn,searchOptions:Ko,dropdownPrefixCls:tn,loadData:An,expandTrigger:Vt,expandIcon:Pr,loadingIcon:Or,dropdownMenuColumnStyle:cr,optionRender:In}},[Fr,Xn,Wo,po,$n,ba,qn,Ko,tn,An,Vt,Pr,Or,cr,In]),Lo=!(Yr?Ko:Fr).length,Wr=Yr&&Bo.matchInputWidth||Lo?{}:{minWidth:"auto"};return Pe.createElement(at.Provider,{value:Io},Pe.createElement(Ae.Ac,(0,xe.Z)({},er,{ref:Te,id:Rn,prefixCls:it,autoClearSearchValue:Jn,dropdownMatchSelectWidth:br,dropdownStyle:(0,ge.Z)((0,ge.Z)({},Wr),nr),displayValues:Ao,onDisplayValuesChange:Ha,mode:bn?"multiple":void 0,searchValue:Yr,onSearch:eo,showSearch:Yo,OptionList:me,emptyOptions:Lo,open:xa,dropdownClassName:ga,placement:Ei,onDropdownVisibleChange:wi,getRawInputElement:function(){return Sr}})))});Be.SHOW_PARENT=ut,Be.SHOW_CHILD=ft,Be.Panel=Fe;var It=Be,Mt=It,kt=z(2738),Yt=z(75030),At=z(86641),vn=z(45915),Gt=z(82855),_e=z(48755),Bt=z(38406),Ut=z(2171),on=z(83397),Le=z(31756),xt=z(56553),zt=z(24971),nn=z(1722),Sn=z(90376),zn=z(68525),rr=z(90005),pr=z(70045);function kn(De,Te){const{getPrefixCls:Me,direction:je,renderEmpty:it}=Pe.useContext(_e.E_),an=Te||je,dn=Me("select",De),hn=Me("cascader",De);return[dn,hn,an,it]}var dr=kn;function Ye(De,Te){return Pe.useMemo(()=>Te?Pe.createElement("span",{className:`${De}-checkbox-inner`}):!1,[Te])}var Qt=z(33853),yn=z(58617),xn=z(38819),En=(De,Te,Me)=>{let je=Me;Me||(je=Te?Pe.createElement(Qt.Z,null):Pe.createElement(xn.Z,null));const it=Pe.createElement("span",{className:`${De}-menu-item-loading-icon`},Pe.createElement(yn.Z,{spin:!0}));return Pe.useMemo(()=>[je,it],[je])},Fn=z(56119),Tn=z(16931),_t=z(36237),Cn=z(36170),Bn=z(63356),Zn=De=>{const{prefixCls:Te,componentCls:Me}=De,je=`${Me}-menu-item`,it=`
|
|
|
&${je}-expand ${je}-expand-icon,
|
|
|
${je}-loading-icon
|
|
|
`;return[(0,Cn.C2)(`${Te}-checkbox`,De),{[Me]:{"&-checkbox":{top:0,marginInlineEnd:De.paddingXS,pointerEvents:"unset"},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${Me}-menu-empty`]:{[`${Me}-menu`]:{width:"100%",height:"auto",[je]:{color:De.colorTextDisabled}}}},"&-menu":{flexGrow:1,flexShrink:0,minWidth:De.controlItemWidth,height:De.dropdownHeight,margin:0,padding:De.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${(0,_t.unit)(De.lineWidth)} ${De.lineType} ${De.colorSplit}`},"&-item":Object.assign(Object.assign({},Bn.vS),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:De.optionPadding,lineHeight:De.lineHeight,cursor:"pointer",transition:`all ${De.motionDurationMid}`,borderRadius:De.borderRadiusSM,"&:hover":{background:De.controlItemBgHover},"&-disabled":{color:De.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[it]:{color:De.colorTextDisabled}},[`&-active:not(${je}-disabled)`]:{"&, &:hover":{color:De.optionSelectedColor,fontWeight:De.optionSelectedFontWeight,backgroundColor:De.optionSelectedBg}},"&-content":{flex:"auto"},[it]:{marginInlineStart:De.paddingXXS,color:De.colorTextDescription,fontSize:De.fontSizeIcon},"&-keyword":{color:De.colorHighlight}})}}}]};const yr=De=>{const{componentCls:Te,antCls:Me}=De;return[{[Te]:{width:De.controlWidth}},{[`${Te}-dropdown`]:[{[`&${Me}-select-dropdown`]:{padding:0}},Zn(De)]},{[`${Te}-dropdown-rtl`]:{direction:"rtl"}},(0,Fn.c)(De)]},ur=De=>{const Te=Math.round((De.controlHeight-De.fontSize*De.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:De.controlItemBgActive,optionSelectedFontWeight:De.fontWeightStrong,optionPadding:`${Te}px ${De.paddingSM}px`,menuPadding:De.paddingXXS,optionSelectedColor:De.colorText}};var Jt=(0,Tn.I$)("Cascader",De=>[yr(De)],ur);const wn=De=>{const{componentCls:Te}=De;return{[`${Te}-panel`]:[Zn(De),{display:"inline-flex",border:`${(0,_t.unit)(De.lineWidth)} ${De.lineType} ${De.colorSplit}`,borderRadius:De.borderRadiusLG,overflowX:"auto",maxWidth:"100%",[`${Te}-menus`]:{alignItems:"stretch"},[`${Te}-menu`]:{height:"auto"},"&-empty":{padding:De.paddingXXS}}]}};var un=(0,Tn.A1)(["Cascader","Panel"],De=>wn(De),ur);function sn(De){const{prefixCls:Te,className:Me,multiple:je,rootClassName:it,notFoundContent:an,direction:dn,expandIcon:hn,disabled:$n}=De,ar=Pe.useContext(Ut.Z),Cr=$n!=null?$n:ar,[qn,Gn,Jn,gr]=dr(Te,dn),Ge=(0,on.Z)(Gn),[bt,Vt,Ht]=Jt(Gn,Ge);un(Gn);const tn=Jn==="rtl",[An,Vn]=En(qn,tn,hn),tr=an||(gr==null?void 0:gr("Cascader"))||Pe.createElement(Bt.Z,{componentName:"Cascader"}),Nn=Ye(Gn,je);return bt(Pe.createElement(Fe,Object.assign({},De,{checkable:Nn,prefixCls:Gn,className:rt()(Me,Vt,it,Ht,Ge),notFoundContent:tr,direction:Jn,expandIcon:An,loadingIcon:Vn,disabled:Cr})))}var We=sn,dt=function(De,Te){var Me={};for(var je in De)Object.prototype.hasOwnProperty.call(De,je)&&Te.indexOf(je)<0&&(Me[je]=De[je]);if(De!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,je=Object.getOwnPropertySymbols(De);it<je.length;it++)Te.indexOf(je[it])<0&&Object.prototype.propertyIsEnumerable.call(De,je[it])&&(Me[je[it]]=De[je[it]]);return Me};const{SHOW_CHILD:ze,SHOW_PARENT:gt}=Mt;function $e(De,Te,Me){const je=De.toLowerCase().split(Te).reduce((dn,hn,$n)=>$n===0?[hn]:[].concat((0,b.Z)(dn),[Te,hn]),[]),it=[];let an=0;return je.forEach((dn,hn)=>{const $n=an+dn.length;let ar=De.slice(an,$n);an=$n,hn%2===1&&(ar=Pe.createElement("span",{className:`${Me}-menu-item-keyword`,key:`separator-${hn}`},ar)),it.push(ar)}),it}const St=(De,Te,Me,je)=>{const it=[],an=De.toLowerCase();return Te.forEach((dn,hn)=>{hn!==0&&it.push(" / ");let $n=dn[je.label];const ar=typeof $n;(ar==="string"||ar==="number")&&($n=$e(String($n),an,Me)),it.push($n)}),it},Oe=Pe.forwardRef((De,Te)=>{var Me;const{prefixCls:je,size:it,disabled:an,className:dn,rootClassName:hn,multiple:$n,bordered:ar=!0,transitionName:Cr,choiceTransitionName:qn="",popupClassName:Gn,dropdownClassName:Jn,expandIcon:gr,placement:Ge,showSearch:bt,allowClear:Vt=!0,notFoundContent:Ht,direction:tn,getPopupContainer:An,status:Vn,showArrow:tr,builtinPlacements:Nn,style:or,variant:cr}=De,nr=dt(De,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style","variant"]),hr=(0,kt.Z)(nr,["suffixIcon"]),{getPrefixCls:lr,getPopupContainer:Er,className:Ir,style:zr}=(0,_e.dj)("cascader"),{popupOverflow:Pr}=Pe.useContext(_e.E_),{status:Or,hasFeedback:Sr,isFormItemInput:Tr,feedbackIcon:br}=Pe.useContext(xt.aM),wr=(0,Gt.F)(Or,Vn),[_n,In,er,Rn]=dr(je,tn),bn=er==="rtl",ir=lr(),mr=(0,on.Z)(_n),[On,Hn,Xn]=(0,Sn.Z)(_n,mr),vr=(0,on.Z)(In),[Ar]=Jt(In,vr),{compactSize:Fr,compactItemClassnames:Rr}=(0,pr.ri)(_n,tn),[Ur,jr]=(0,zt.Z)("cascader",cr,ar),ro=Ht||(Rn==null?void 0:Rn("Cascader"))||Pe.createElement(Bt.Z,{componentName:"Cascader"}),Yr=rt()(Gn||Jn,`${In}-dropdown`,{[`${In}-dropdown-rtl`]:er==="rtl"},hn,mr,vr,Hn,Xn),Xr=Pe.useMemo(()=>{if(!bt)return bt;let Zo={render:St};return typeof bt=="object"&&(Zo=Object.assign(Object.assign({},Zo),bt)),Zo},[bt]),eo=(0,Le.Z)(Zo=>{var Ho;return(Ho=it!=null?it:Fr)!==null&&Ho!==void 0?Ho:Zo}),vo=Pe.useContext(Ut.Z),Fo=an!=null?an:vo,[Yo,Bo]=En(_n,bn,gr),Ko=Ye(In,$n),Jr=(0,rr.Z)(De.suffixIcon,tr),{suffixIcon:Qr,removeIcon:Vo,clearIcon:Wo}=(0,zn.Z)(Object.assign(Object.assign({},De),{hasFeedback:Sr,feedbackIcon:br,showSuffixIcon:Jr,multiple:$n,prefixCls:_n,componentName:"Cascader"})),po=Pe.useMemo(()=>Ge!==void 0?Ge:bn?"bottomRight":"bottomLeft",[Ge,bn]),ko=Vt===!0?{clearIcon:Wo}:Vt,[Xo]=(0,Yt.Cn)("SelectLike",(Me=hr.dropdownStyle)===null||Me===void 0?void 0:Me.zIndex),Ao=Pe.createElement(Mt,Object.assign({prefixCls:_n,className:rt()(!je&&In,{[`${_n}-lg`]:eo==="large",[`${_n}-sm`]:eo==="small",[`${_n}-rtl`]:bn,[`${_n}-${Ur}`]:jr,[`${_n}-in-form-item`]:Tr},(0,Gt.Z)(_n,wr,Sr),Rr,Ir,dn,hn,mr,vr,Hn,Xn),disabled:Fo,style:Object.assign(Object.assign({},zr),or)},hr,{builtinPlacements:(0,nn.Z)(Nn,Pr),direction:er,placement:po,notFoundContent:ro,allowClear:ko,showSearch:Xr,expandIcon:Yo,suffixIcon:Qr,removeIcon:Vo,loadingIcon:Bo,checkable:Ko,dropdownClassName:Yr,dropdownPrefixCls:je||In,dropdownStyle:Object.assign(Object.assign({},hr.dropdownStyle),{zIndex:Xo}),choiceTransitionName:(0,At.m)(ir,"",qn),transitionName:(0,At.m)(ir,"slide-up",Cr),getPopupContainer:An||Er,ref:Te}));return Ar(On(Ao))}),Ft=(0,vn.Z)(Oe,"dropdownAlign",De=>(0,kt.Z)(De,["visible"]));Oe.SHOW_PARENT=gt,Oe.SHOW_CHILD=ze,Oe.Panel=We,Oe._InternalPanelDoNotUseOrYouWillBeFired=Ft;var Zt=Oe},62673:function(Kn,cn,z){"use strict";z.d(cn,{default:function(){return Ot}});var b=z(59301),Pe=z(92310),fe=z.n(Pe),rt=z(16632),xe=z(8654),ge=z(12919),Ee=z(63872),Qe=z(48755),Ae=z(2171),de=z(83397),tt=z(56553),Lt=b.createContext(null),at=z(36170),Ve=z(74632),Ne=function(yt,Et){var pe={};for(var Je in yt)Object.prototype.hasOwnProperty.call(yt,Je)&&Et.indexOf(Je)<0&&(pe[Je]=yt[Je]);if(yt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xe=0,Je=Object.getOwnPropertySymbols(yt);Xe<Je.length;Xe++)Et.indexOf(Je[Xe])<0&&Object.prototype.propertyIsEnumerable.call(yt,Je[Xe])&&(pe[Je[Xe]]=yt[Je[Xe]]);return pe};const Ze=(yt,Et)=>{var pe;const{prefixCls:Je,className:Xe,rootClassName:ue,children:Nt,indeterminate:et=!1,style:wt,onMouseEnter:ln,onMouseLeave:ke,skipGroup:he=!1,disabled:Ct}=yt,Pt=Ne(yt,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:Kt,direction:Ce,checkbox:ot}=b.useContext(Qe.E_),lt=b.useContext(Lt),{isFormItemInput:Wt}=b.useContext(tt.aM),ct=b.useContext(Ae.Z),$t=(pe=(lt==null?void 0:lt.disabled)||Ct)!==null&&pe!==void 0?pe:ct,vt=b.useRef(Pt.value),gn=b.useRef(null),Tt=(0,xe.sQ)(Et,gn);b.useEffect(()=>{lt==null||lt.registerValue(Pt.value)},[]),b.useEffect(()=>{if(!he)return Pt.value!==vt.current&&(lt==null||lt.cancelValue(vt.current),lt==null||lt.registerValue(Pt.value),vt.current=Pt.value),()=>lt==null?void 0:lt.cancelValue(Pt.value)},[Pt.value]),b.useEffect(()=>{var Fe;!((Fe=gn.current)===null||Fe===void 0)&&Fe.input&&(gn.current.input.indeterminate=et)},[et]);const ie=Kt("checkbox",Je),ne=(0,de.Z)(ie),[te,oe,se]=(0,at.ZP)(ie,ne),re=Object.assign({},Pt);lt&&!he&&(re.onChange=function(){Pt.onChange&&Pt.onChange.apply(Pt,arguments),lt.toggleOption&<.toggleOption({label:Nt,value:Pt.value})},re.name=lt.name,re.checked=lt.value.includes(Pt.value));const le=fe()(`${ie}-wrapper`,{[`${ie}-rtl`]:Ce==="rtl",[`${ie}-wrapper-checked`]:re.checked,[`${ie}-wrapper-disabled`]:$t,[`${ie}-wrapper-in-form-item`]:Wt},ot==null?void 0:ot.className,Xe,ue,se,ne,oe),me=fe()({[`${ie}-indeterminate`]:et},Ee.A,oe),[Dt,Re]=(0,Ve.Z)(re.onClick);return te(b.createElement(ge.Z,{component:"Checkbox",disabled:$t},b.createElement("label",{className:le,style:Object.assign(Object.assign({},ot==null?void 0:ot.style),wt),onMouseEnter:ln,onMouseLeave:ke,onClick:Dt},b.createElement(rt.Z,Object.assign({},re,{onClick:Re,prefixCls:ie,className:me,disabled:$t,ref:Tt})),Nt!==void 0&&b.createElement("span",{className:`${ie}-label`},Nt))))};var mt=b.forwardRef(Ze),Xt=z(94480),He=z(2738),Ke=function(yt,Et){var pe={};for(var Je in yt)Object.prototype.hasOwnProperty.call(yt,Je)&&Et.indexOf(Je)<0&&(pe[Je]=yt[Je]);if(yt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xe=0,Je=Object.getOwnPropertySymbols(yt);Xe<Je.length;Xe++)Et.indexOf(Je[Xe])<0&&Object.prototype.propertyIsEnumerable.call(yt,Je[Xe])&&(pe[Je[Xe]]=yt[Je[Xe]]);return pe},ft=b.forwardRef((yt,Et)=>{const{defaultValue:pe,children:Je,options:Xe=[],prefixCls:ue,className:Nt,rootClassName:et,style:wt,onChange:ln}=yt,ke=Ke(yt,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:he,direction:Ct}=b.useContext(Qe.E_),[Pt,Kt]=b.useState(ke.value||pe||[]),[Ce,ot]=b.useState([]);b.useEffect(()=>{"value"in ke&&Kt(ke.value||[])},[ke.value]);const lt=b.useMemo(()=>Xe.map(me=>typeof me=="string"||typeof me=="number"?{label:me,value:me}:me),[Xe]),Wt=me=>{ot(Dt=>Dt.filter(Re=>Re!==me))},ct=me=>{ot(Dt=>[].concat((0,Xt.Z)(Dt),[me]))},$t=me=>{const Dt=Pt.indexOf(me.value),Re=(0,Xt.Z)(Pt);Dt===-1?Re.push(me.value):Re.splice(Dt,1),"value"in ke||Kt(Re),ln==null||ln(Re.filter(Fe=>Ce.includes(Fe)).sort((Fe,qe)=>{const nt=lt.findIndex(we=>we.value===Fe),st=lt.findIndex(we=>we.value===qe);return nt-st}))},vt=he("checkbox",ue),gn=`${vt}-group`,Tt=(0,de.Z)(vt),[ie,ne,te]=(0,at.ZP)(vt,Tt),oe=(0,He.Z)(ke,["value","disabled"]),se=Xe.length?lt.map(me=>b.createElement(mt,{prefixCls:vt,key:me.value.toString(),disabled:"disabled"in me?me.disabled:ke.disabled,value:me.value,checked:Pt.includes(me.value),onChange:me.onChange,className:`${gn}-item`,style:me.style,title:me.title,id:me.id,required:me.required},me.label)):Je,re={toggleOption:$t,value:Pt,disabled:ke.disabled,name:ke.name,registerValue:ct,cancelValue:Wt},le=fe()(gn,{[`${gn}-rtl`]:Ct==="rtl"},Nt,et,te,Tt,ne);return ie(b.createElement("div",Object.assign({className:le,style:wt},oe,{ref:Et}),b.createElement(Lt.Provider,{value:re},se)))});const jt=mt;jt.Group=ft,jt.__ANT_CHECKBOX=!0;var Ot=jt},36170:function(Kn,cn,z){"use strict";z.d(cn,{C2:function(){return ge}});var b=z(36237),Pe=z(63356),fe=z(51636),rt=z(16931);const xe=Ee=>{const{checkboxCls:Qe}=Ee,Ae=`${Qe}-wrapper`;return[{[`${Qe}-group`]:Object.assign(Object.assign({},(0,Pe.Wf)(Ee)),{display:"inline-flex",flexWrap:"wrap",columnGap:Ee.marginXS,[`> ${Ee.antCls}-row`]:{flex:1}}),[Ae]:Object.assign(Object.assign({},(0,Pe.Wf)(Ee)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${Ae}`]:{marginInlineStart:0},[`&${Ae}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[Qe]:Object.assign(Object.assign({},(0,Pe.Wf)(Ee)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Ee.borderRadiusSM,alignSelf:"center",[`${Qe}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${Qe}-inner`]:Object.assign({},(0,Pe.oN)(Ee))},[`${Qe}-inner`]:{boxSizing:"border-box",display:"block",width:Ee.checkboxSize,height:Ee.checkboxSize,direction:"ltr",backgroundColor:Ee.colorBgContainer,border:`${(0,b.unit)(Ee.lineWidth)} ${Ee.lineType} ${Ee.colorBorder}`,borderRadius:Ee.borderRadiusSM,borderCollapse:"separate",transition:`all ${Ee.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:Ee.calc(Ee.checkboxSize).div(14).mul(5).equal(),height:Ee.calc(Ee.checkboxSize).div(14).mul(8).equal(),border:`${(0,b.unit)(Ee.lineWidthBold)} solid ${Ee.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${Ee.motionDurationFast} ${Ee.motionEaseInBack}, opacity ${Ee.motionDurationFast}`}},"& + span":{paddingInlineStart:Ee.paddingXS,paddingInlineEnd:Ee.paddingXS}})},{[`
|
|
|
${Ae}:not(${Ae}-disabled),
|
|
|
${Qe}:not(${Qe}-disabled)
|
|
|
`]:{[`&:hover ${Qe}-inner`]:{borderColor:Ee.colorPrimary}},[`${Ae}:not(${Ae}-disabled)`]:{[`&:hover ${Qe}-checked:not(${Qe}-disabled) ${Qe}-inner`]:{backgroundColor:Ee.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${Qe}-checked:not(${Qe}-disabled):after`]:{borderColor:Ee.colorPrimaryHover}}},{[`${Qe}-checked`]:{[`${Qe}-inner`]:{backgroundColor:Ee.colorPrimary,borderColor:Ee.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${Ee.motionDurationMid} ${Ee.motionEaseOutBack} ${Ee.motionDurationFast}`}}},[`
|
|
|
${Ae}-checked:not(${Ae}-disabled),
|
|
|
${Qe}-checked:not(${Qe}-disabled)
|
|
|
`]:{[`&:hover ${Qe}-inner`]:{backgroundColor:Ee.colorPrimaryHover,borderColor:"transparent"}}},{[Qe]:{"&-indeterminate":{[`${Qe}-inner`]:{backgroundColor:`${Ee.colorBgContainer} !important`,borderColor:`${Ee.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:Ee.calc(Ee.fontSizeLG).div(2).equal(),height:Ee.calc(Ee.fontSizeLG).div(2).equal(),backgroundColor:Ee.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${Qe}-inner`]:{backgroundColor:`${Ee.colorBgContainer} !important`,borderColor:`${Ee.colorPrimary} !important`}}}},{[`${Ae}-disabled`]:{cursor:"not-allowed"},[`${Qe}-disabled`]:{[`&, ${Qe}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${Qe}-inner`]:{background:Ee.colorBgContainerDisabled,borderColor:Ee.colorBorder,"&:after":{borderColor:Ee.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Ee.colorTextDisabled},[`&${Qe}-indeterminate ${Qe}-inner::after`]:{background:Ee.colorTextDisabled}}}]};function ge(Ee,Qe){const Ae=(0,fe.mergeToken)(Qe,{checkboxCls:`.${Ee}`,checkboxSize:Qe.controlInteractiveSize});return[xe(Ae)]}cn.ZP=(0,rt.I$)("Checkbox",(Ee,Qe)=>{let{prefixCls:Ae}=Qe;return[ge(Ae,Ee)]})},84547:function(Kn,cn,z){"use strict";z.d(cn,{Z:function(){return gr}});var b=z(59301),Pe=z(92310),fe=z.n(Pe),rt=z(18929),xe=z(62487),ge=z(45915),Ee=z(82855),Qe=z(48755),Ae=z(2171),de=z(83397),tt=z(31756),ve=z(56553),Lt=z(37639),at=z(70045),Ve=z(6074),Ne=z(37285),Ze=z(94480),pt=z(76196),mt=z(34280),Xt=z(54476),He=z(42978),Ke=z(75931),ut=z(20068),ft=z(33885),jt=z(76190),Ot=z(2738),yt=z(8654),Et=z(77900),pe=function(bt,Vt){if(!bt)return null;var Ht={left:bt.offsetLeft,right:bt.parentElement.clientWidth-bt.clientWidth-bt.offsetLeft,width:bt.clientWidth,top:bt.offsetTop,bottom:bt.parentElement.clientHeight-bt.clientHeight-bt.offsetTop,height:bt.clientHeight};return Vt?{left:0,right:0,width:0,top:Ht.top,bottom:Ht.bottom,height:Ht.height}:{left:Ht.left,right:Ht.right,width:Ht.width,top:0,bottom:0,height:0}},Je=function(bt){return bt!==void 0?"".concat(bt,"px"):void 0};function Xe(Ge){var bt=Ge.prefixCls,Vt=Ge.containerRef,Ht=Ge.value,tn=Ge.getValueIndex,An=Ge.motionName,Vn=Ge.onMotionStart,tr=Ge.onMotionEnd,Nn=Ge.direction,or=Ge.vertical,cr=or===void 0?!1:or,nr=b.useRef(null),hr=b.useState(Ht),lr=(0,He.Z)(hr,2),Er=lr[0],Ir=lr[1],zr=function(Hn){var Xn,vr=tn(Hn),Ar=(Xn=Vt.current)===null||Xn===void 0?void 0:Xn.querySelectorAll(".".concat(bt,"-item"))[vr];return(Ar==null?void 0:Ar.offsetParent)&&Ar},Pr=b.useState(null),Or=(0,He.Z)(Pr,2),Sr=Or[0],Tr=Or[1],br=b.useState(null),wr=(0,He.Z)(br,2),_n=wr[0],In=wr[1];(0,mt.Z)(function(){if(Er!==Ht){var On=zr(Er),Hn=zr(Ht),Xn=pe(On,cr),vr=pe(Hn,cr);Ir(Ht),Tr(Xn),In(vr),On&&Hn?Vn():tr()}},[Ht]);var er=b.useMemo(function(){if(cr){var On;return Je((On=Sr==null?void 0:Sr.top)!==null&&On!==void 0?On:0)}return Je(Nn==="rtl"?-(Sr==null?void 0:Sr.right):Sr==null?void 0:Sr.left)},[cr,Nn,Sr]),Rn=b.useMemo(function(){if(cr){var On;return Je((On=_n==null?void 0:_n.top)!==null&&On!==void 0?On:0)}return Je(Nn==="rtl"?-(_n==null?void 0:_n.right):_n==null?void 0:_n.left)},[cr,Nn,_n]),bn=function(){return cr?{transform:"translateY(var(--thumb-start-top))",height:"var(--thumb-start-height)"}:{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"}},ir=function(){return cr?{transform:"translateY(var(--thumb-active-top))",height:"var(--thumb-active-height)"}:{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"}},mr=function(){Tr(null),In(null),tr()};return!Sr||!_n?null:b.createElement(Et.default,{visible:!0,motionName:An,motionAppear:!0,onAppearStart:bn,onAppearActive:ir,onVisibleChanged:mr},function(On,Hn){var Xn=On.className,vr=On.style,Ar=(0,ft.Z)((0,ft.Z)({},vr),{},{"--thumb-start-left":er,"--thumb-start-width":Je(Sr==null?void 0:Sr.width),"--thumb-active-left":Rn,"--thumb-active-width":Je(_n==null?void 0:_n.width),"--thumb-start-top":er,"--thumb-start-height":Je(Sr==null?void 0:Sr.height),"--thumb-active-top":Rn,"--thumb-active-height":Je(_n==null?void 0:_n.height)}),Fr={ref:(0,yt.sQ)(nr,Hn),style:Ar,className:fe()("".concat(bt,"-thumb"),Xn)};return b.createElement("div",Fr)})}var ue=["prefixCls","direction","vertical","options","disabled","defaultValue","value","name","onChange","className","motionName"];function Nt(Ge){if(typeof Ge.title!="undefined")return Ge.title;if((0,jt.Z)(Ge.label)!=="object"){var bt;return(bt=Ge.label)===null||bt===void 0?void 0:bt.toString()}}function et(Ge){return Ge.map(function(bt){if((0,jt.Z)(bt)==="object"&&bt!==null){var Vt=Nt(bt);return(0,ft.Z)((0,ft.Z)({},bt),{},{title:Vt})}return{label:bt==null?void 0:bt.toString(),title:bt==null?void 0:bt.toString(),value:bt}})}var wt=function(bt){var Vt=bt.prefixCls,Ht=bt.className,tn=bt.disabled,An=bt.checked,Vn=bt.label,tr=bt.title,Nn=bt.value,or=bt.name,cr=bt.onChange,nr=bt.onFocus,hr=bt.onBlur,lr=bt.onKeyDown,Er=bt.onKeyUp,Ir=bt.onMouseDown,zr=function(Or){tn||cr(Or,Nn)};return b.createElement("label",{className:fe()(Ht,(0,ut.Z)({},"".concat(Vt,"-item-disabled"),tn)),onMouseDown:Ir},b.createElement("input",{name:or,className:"".concat(Vt,"-item-input"),type:"radio",disabled:tn,checked:An,onChange:zr,onFocus:nr,onBlur:hr,onKeyDown:lr,onKeyUp:Er}),b.createElement("div",{className:"".concat(Vt,"-item-label"),title:tr},Vn))},ln=b.forwardRef(function(Ge,bt){var Vt,Ht=Ge.prefixCls,tn=Ht===void 0?"rc-segmented":Ht,An=Ge.direction,Vn=Ge.vertical,tr=Ge.options,Nn=tr===void 0?[]:tr,or=Ge.disabled,cr=Ge.defaultValue,nr=Ge.value,hr=Ge.name,lr=Ge.onChange,Er=Ge.className,Ir=Er===void 0?"":Er,zr=Ge.motionName,Pr=zr===void 0?"thumb-motion":zr,Or=(0,Ke.Z)(Ge,ue),Sr=b.useRef(null),Tr=b.useMemo(function(){return(0,yt.sQ)(Sr,bt)},[Sr,bt]),br=b.useMemo(function(){return et(Nn)},[Nn]),wr=(0,rt.Z)((Vt=br[0])===null||Vt===void 0?void 0:Vt.value,{value:nr,defaultValue:cr}),_n=(0,He.Z)(wr,2),In=_n[0],er=_n[1],Rn=b.useState(!1),bn=(0,He.Z)(Rn,2),ir=bn[0],mr=bn[1],On=function(Ko,Jr){er(Jr),lr==null||lr(Jr)},Hn=(0,Ot.Z)(Or,["children"]),Xn=b.useState(!1),vr=(0,He.Z)(Xn,2),Ar=vr[0],Fr=vr[1],Rr=b.useState(!1),Ur=(0,He.Z)(Rr,2),jr=Ur[0],ro=Ur[1],Yr=function(){ro(!0)},Xr=function(){ro(!1)},eo=function(){Fr(!1)},vo=function(Ko){Ko.key==="Tab"&&Fr(!0)},Fo=function(Ko){var Jr=br.findIndex(function(po){return po.value===In}),Qr=br.length,Vo=(Jr+Ko+Qr)%Qr,Wo=br[Vo];Wo&&(er(Wo.value),lr==null||lr(Wo.value))},Yo=function(Ko){switch(Ko.key){case"ArrowLeft":case"ArrowUp":Fo(-1);break;case"ArrowRight":case"ArrowDown":Fo(1);break}};return b.createElement("div",(0,Xt.Z)({role:"radiogroup","aria-label":"segmented control",tabIndex:or?void 0:0,"aria-orientation":Vn?"vertical":"horizontal"},Hn,{className:fe()(tn,(0,ut.Z)((0,ut.Z)((0,ut.Z)({},"".concat(tn,"-rtl"),An==="rtl"),"".concat(tn,"-disabled"),or),"".concat(tn,"-vertical"),Vn),Ir),ref:Tr}),b.createElement("div",{className:"".concat(tn,"-group")},b.createElement(Xe,{vertical:Vn,prefixCls:tn,value:In,containerRef:Sr,motionName:"".concat(tn,"-").concat(Pr),direction:An,getValueIndex:function(Ko){return br.findIndex(function(Jr){return Jr.value===Ko})},onMotionStart:function(){mr(!0)},onMotionEnd:function(){mr(!1)}}),br.map(function(Bo){return b.createElement(wt,(0,Xt.Z)({},Bo,{name:hr,key:Bo.value,prefixCls:tn,className:fe()(Bo.className,"".concat(tn,"-item"),(0,ut.Z)((0,ut.Z)({},"".concat(tn,"-item-selected"),Bo.value===In&&!ir),"".concat(tn,"-item-focused"),jr&&Ar&&Bo.value===In)),checked:Bo.value===In,onChange:On,onFocus:Yr,onBlur:Xr,onKeyDown:Yo,onKeyUp:vo,onMouseDown:eo,disabled:!!or||!!Bo.disabled}))})))}),ke=ln,he=ke,Ct=z(80402),Pt=z(36237),Kt=z(63356),Ce=z(16931),ot=z(51636);function lt(Ge,bt){return{[`${Ge}, ${Ge}:hover, ${Ge}:focus`]:{color:bt.colorTextDisabled,cursor:"not-allowed"}}}function Wt(Ge){return{backgroundColor:Ge.itemSelectedBg,boxShadow:Ge.boxShadowTertiary}}const ct=Object.assign({overflow:"hidden"},Kt.vS),$t=Ge=>{const{componentCls:bt}=Ge,Vt=Ge.calc(Ge.controlHeight).sub(Ge.calc(Ge.trackPadding).mul(2)).equal(),Ht=Ge.calc(Ge.controlHeightLG).sub(Ge.calc(Ge.trackPadding).mul(2)).equal(),tn=Ge.calc(Ge.controlHeightSM).sub(Ge.calc(Ge.trackPadding).mul(2)).equal();return{[bt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Kt.Wf)(Ge)),{display:"inline-block",padding:Ge.trackPadding,color:Ge.itemColor,background:Ge.trackBg,borderRadius:Ge.borderRadius,transition:`all ${Ge.motionDurationMid} ${Ge.motionEaseInOut}`}),(0,Kt.Qy)(Ge)),{[`${bt}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",flexDirection:"row",width:"100%"},[`&${bt}-rtl`]:{direction:"rtl"},[`&${bt}-vertical`]:{[`${bt}-group`]:{flexDirection:"column"},[`${bt}-thumb`]:{width:"100%",height:0,padding:`0 ${(0,Pt.unit)(Ge.paddingXXS)}`}},[`&${bt}-block`]:{display:"flex"},[`&${bt}-block ${bt}-item`]:{flex:1,minWidth:0},[`${bt}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${Ge.motionDurationMid} ${Ge.motionEaseInOut}`,borderRadius:Ge.borderRadiusSM,transform:"translateZ(0)","&-selected":Object.assign(Object.assign({},Wt(Ge)),{color:Ge.itemSelectedColor}),"&-focused":Object.assign({},(0,Kt.oN)(Ge)),"&::after":{content:'""',position:"absolute",zIndex:-1,width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",opacity:0,transition:`opacity ${Ge.motionDurationMid}`,pointerEvents:"none"},[`&:hover:not(${bt}-item-selected):not(${bt}-item-disabled)`]:{color:Ge.itemHoverColor,"&::after":{opacity:1,backgroundColor:Ge.itemHoverBg}},[`&:active:not(${bt}-item-selected):not(${bt}-item-disabled)`]:{color:Ge.itemHoverColor,"&::after":{opacity:1,backgroundColor:Ge.itemActiveBg}},"&-label":Object.assign({minHeight:Vt,lineHeight:(0,Pt.unit)(Vt),padding:`0 ${(0,Pt.unit)(Ge.segmentedPaddingHorizontal)}`},ct),"&-icon + *":{marginInlineStart:Ge.calc(Ge.marginSM).div(2).equal()},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${bt}-thumb`]:Object.assign(Object.assign({},Wt(Ge)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${(0,Pt.unit)(Ge.paddingXXS)} 0`,borderRadius:Ge.borderRadiusSM,transition:`transform ${Ge.motionDurationSlow} ${Ge.motionEaseInOut}, height ${Ge.motionDurationSlow} ${Ge.motionEaseInOut}`,[`& ~ ${bt}-item:not(${bt}-item-selected):not(${bt}-item-disabled)::after`]:{backgroundColor:"transparent"}}),[`&${bt}-lg`]:{borderRadius:Ge.borderRadiusLG,[`${bt}-item-label`]:{minHeight:Ht,lineHeight:(0,Pt.unit)(Ht),padding:`0 ${(0,Pt.unit)(Ge.segmentedPaddingHorizontal)}`,fontSize:Ge.fontSizeLG},[`${bt}-item, ${bt}-thumb`]:{borderRadius:Ge.borderRadius}},[`&${bt}-sm`]:{borderRadius:Ge.borderRadiusSM,[`${bt}-item-label`]:{minHeight:tn,lineHeight:(0,Pt.unit)(tn),padding:`0 ${(0,Pt.unit)(Ge.segmentedPaddingHorizontalSM)}`},[`${bt}-item, ${bt}-thumb`]:{borderRadius:Ge.borderRadiusXS}}}),lt(`&-disabled ${bt}-item`,Ge)),lt(`${bt}-item-disabled`,Ge)),{[`${bt}-thumb-motion-appear-active`]:{transition:`transform ${Ge.motionDurationSlow} ${Ge.motionEaseInOut}, width ${Ge.motionDurationSlow} ${Ge.motionEaseInOut}`,willChange:"transform, width"},[`&${bt}-shape-round`]:{borderRadius:9999,[`${bt}-item, ${bt}-thumb`]:{borderRadius:9999}}})}},vt=Ge=>{const{colorTextLabel:bt,colorText:Vt,colorFillSecondary:Ht,colorBgElevated:tn,colorFill:An,lineWidthBold:Vn,colorBgLayout:tr}=Ge;return{trackPadding:Vn,trackBg:tr,itemColor:bt,itemHoverColor:Vt,itemHoverBg:Ht,itemSelectedBg:tn,itemActiveBg:An,itemSelectedColor:Vt}};var gn=(0,Ce.I$)("Segmented",Ge=>{const{lineWidth:bt,calc:Vt}=Ge,Ht=(0,ot.mergeToken)(Ge,{segmentedPaddingHorizontal:Vt(Ge.controlPaddingHorizontal).sub(bt).equal(),segmentedPaddingHorizontalSM:Vt(Ge.controlPaddingHorizontalSM).sub(bt).equal()});return[$t(Ht)]},vt),Tt=function(Ge,bt){var Vt={};for(var Ht in Ge)Object.prototype.hasOwnProperty.call(Ge,Ht)&&bt.indexOf(Ht)<0&&(Vt[Ht]=Ge[Ht]);if(Ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tn=0,Ht=Object.getOwnPropertySymbols(Ge);tn<Ht.length;tn++)bt.indexOf(Ht[tn])<0&&Object.prototype.propertyIsEnumerable.call(Ge,Ht[tn])&&(Vt[Ht[tn]]=Ge[Ht[tn]]);return Vt};function ie(Ge){return typeof Ge=="object"&&!!(Ge!=null&&Ge.icon)}var oe=b.forwardRef((Ge,bt)=>{const Vt=(0,Ct.Z)(),{prefixCls:Ht,className:tn,rootClassName:An,block:Vn,options:tr=[],size:Nn="middle",style:or,vertical:cr,shape:nr="default",name:hr=Vt}=Ge,lr=Tt(Ge,["prefixCls","className","rootClassName","block","options","size","style","vertical","shape","name"]),{getPrefixCls:Er,direction:Ir,className:zr,style:Pr}=(0,Qe.dj)("segmented"),Or=Er("segmented",Ht),[Sr,Tr,br]=gn(Or),wr=(0,tt.Z)(Nn),_n=b.useMemo(()=>tr.map(Rn=>{if(ie(Rn)){const{icon:bn,label:ir}=Rn,mr=Tt(Rn,["icon","label"]);return Object.assign(Object.assign({},mr),{label:b.createElement(b.Fragment,null,b.createElement("span",{className:`${Or}-item-icon`},bn),ir&&b.createElement("span",null,ir))})}return Rn}),[tr,Or]),In=fe()(tn,An,zr,{[`${Or}-block`]:Vn,[`${Or}-sm`]:wr==="small",[`${Or}-lg`]:wr==="large",[`${Or}-vertical`]:cr,[`${Or}-shape-${nr}`]:nr==="round"},Tr,br),er=Object.assign(Object.assign({},Pr),or);return Sr(b.createElement(he,Object.assign({},lr,{name:hr,className:In,style:er,options:_n,ref:bt,prefixCls:Or,direction:Ir,vertical:cr})))});const se=b.createContext({}),re=b.createContext({});var le=z(30761),Dt=Ge=>{let{prefixCls:bt,value:Vt,onChange:Ht}=Ge;const tn=()=>{if(Ht&&Vt&&!Vt.cleared){const An=Vt.toHsb();An.a=0;const Vn=(0,le.vC)(An);Vn.cleared=!0,Ht(Vn)}};return b.createElement("div",{className:`${bt}-clear`,onClick:tn})},Re=z(82326);const Fe="hex",qe="rgb",nt="hsb";var st=z(4875),Be=Ge=>{let{prefixCls:bt,min:Vt=0,max:Ht=100,value:tn,onChange:An,className:Vn,formatter:tr}=Ge;const Nn=`${bt}-steppers`,[or,cr]=(0,b.useState)(tn);return(0,b.useEffect)(()=>{Number.isNaN(tn)||cr(tn)},[tn]),b.createElement(st.Z,{className:fe()(Nn,Vn),min:Vt,max:Ht,value:or,formatter:tr,size:"small",onChange:nr=>{tn||cr(nr||0),An==null||An(nr)}})},Mt=Ge=>{let{prefixCls:bt,value:Vt,onChange:Ht}=Ge;const tn=`${bt}-alpha-input`,[An,Vn]=(0,b.useState)((0,le.vC)(Vt||"#000"));(0,b.useEffect)(()=>{Vt&&Vn(Vt)},[Vt]);const tr=Nn=>{const or=An.toHsb();or.a=(Nn||0)/100;const cr=(0,le.vC)(or);Vt||Vn(cr),Ht==null||Ht(cr)};return b.createElement(Be,{value:(0,le.uZ)(An),prefixCls:bt,formatter:Nn=>`${Nn}%`,className:tn,onChange:tr})},kt=z(49397);const Yt=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,At=Ge=>Yt.test(`#${Ge}`);var Gt=Ge=>{let{prefixCls:bt,value:Vt,onChange:Ht}=Ge;const tn=`${bt}-hex-input`,[An,Vn]=(0,b.useState)(()=>Vt?(0,Ve.Ot)(Vt.toHexString()):void 0);(0,b.useEffect)(()=>{Vt&&Vn((0,Ve.Ot)(Vt.toHexString()))},[Vt]);const tr=Nn=>{const or=Nn.target.value;Vn((0,Ve.Ot)(or)),At((0,Ve.Ot)(or,!0))&&(Ht==null||Ht((0,le.vC)(or)))};return b.createElement(kt.Z,{className:tn,value:An,prefix:"#",onChange:tr,size:"small"})},Bt=Ge=>{let{prefixCls:bt,value:Vt,onChange:Ht}=Ge;const tn=`${bt}-hsb-input`,[An,Vn]=(0,b.useState)((0,le.vC)(Vt||"#000"));(0,b.useEffect)(()=>{Vt&&Vn(Vt)},[Vt]);const tr=(Nn,or)=>{const cr=An.toHsb();cr[or]=or==="h"?Nn:(Nn||0)/100;const nr=(0,le.vC)(cr);Vt||Vn(nr),Ht==null||Ht(nr)};return b.createElement("div",{className:tn},b.createElement(Be,{max:360,min:0,value:Number(An.toHsb().h),prefixCls:bt,className:tn,formatter:Nn=>(0,le.lx)(Nn||0).toString(),onChange:Nn=>tr(Number(Nn),"h")}),b.createElement(Be,{max:100,min:0,value:Number(An.toHsb().s)*100,prefixCls:bt,className:tn,formatter:Nn=>`${(0,le.lx)(Nn||0)}%`,onChange:Nn=>tr(Number(Nn),"s")}),b.createElement(Be,{max:100,min:0,value:Number(An.toHsb().b)*100,prefixCls:bt,className:tn,formatter:Nn=>`${(0,le.lx)(Nn||0)}%`,onChange:Nn=>tr(Number(Nn),"b")}))},on=Ge=>{let{prefixCls:bt,value:Vt,onChange:Ht}=Ge;const tn=`${bt}-rgb-input`,[An,Vn]=(0,b.useState)((0,le.vC)(Vt||"#000"));(0,b.useEffect)(()=>{Vt&&Vn(Vt)},[Vt]);const tr=(Nn,or)=>{const cr=An.toRgb();cr[or]=Nn||0;const nr=(0,le.vC)(cr);Vt||Vn(nr),Ht==null||Ht(nr)};return b.createElement("div",{className:tn},b.createElement(Be,{max:255,min:0,value:Number(An.toRgb().r),prefixCls:bt,className:tn,onChange:Nn=>tr(Number(Nn),"r")}),b.createElement(Be,{max:255,min:0,value:Number(An.toRgb().g),prefixCls:bt,className:tn,onChange:Nn=>tr(Number(Nn),"g")}),b.createElement(Be,{max:255,min:0,value:Number(An.toRgb().b),prefixCls:bt,className:tn,onChange:Nn=>tr(Number(Nn),"b")}))};const Le=[Fe,nt,qe].map(Ge=>({value:Ge,label:Ge.toUpperCase()}));var zt=Ge=>{const{prefixCls:bt,format:Vt,value:Ht,disabledAlpha:tn,onFormatChange:An,onChange:Vn,disabledFormat:tr}=Ge,[Nn,or]=(0,rt.Z)(Fe,{value:Vt,onChange:An}),cr=`${bt}-input`,nr=lr=>{or(lr)},hr=(0,b.useMemo)(()=>{const lr={value:Ht,prefixCls:bt,onChange:Vn};switch(Nn){case nt:return b.createElement(Bt,Object.assign({},lr));case qe:return b.createElement(on,Object.assign({},lr));default:return b.createElement(Gt,Object.assign({},lr))}},[Nn,bt,Ht,Vn]);return b.createElement("div",{className:`${cr}-container`},!tr&&b.createElement(Re.default,{value:Nn,variant:"borderless",getPopupContainer:lr=>lr,popupMatchSelectWidth:68,placement:"bottomRight",onChange:nr,className:`${bt}-format-select`,size:"small",options:Le}),b.createElement("div",{className:cr},hr),!tn&&b.createElement(Mt,{prefixCls:bt,value:Ht,onChange:Vn}))},nn=z(3703),Sn=z(6089),zn=z(23422),rr=z(52392),pr=function(Ge,bt){var Vt={};for(var Ht in Ge)Object.prototype.hasOwnProperty.call(Ge,Ht)&&bt.indexOf(Ht)<0&&(Vt[Ht]=Ge[Ht]);if(Ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tn=0,Ht=Object.getOwnPropertySymbols(Ge);tn<Ht.length;tn++)bt.indexOf(Ht[tn])<0&&Object.prototype.propertyIsEnumerable.call(Ge,Ht[tn])&&(Vt[Ht[tn]]=Ge[Ht[tn]]);return Vt};const kn=Ge=>{const{prefixCls:bt,colors:Vt,type:Ht,color:tn,range:An=!1,className:Vn,activeIndex:tr,onActive:Nn,onDragStart:or,onDragChange:cr,onKeyDelete:nr}=Ge,hr=pr(Ge,["prefixCls","colors","type","color","range","className","activeIndex","onActive","onDragStart","onDragChange","onKeyDelete"]),lr=Object.assign(Object.assign({},hr),{track:!1}),Er=b.useMemo(()=>`linear-gradient(90deg, ${Vt.map(wr=>`${wr.color} ${wr.percent}%`).join(", ")})`,[Vt]),Ir=b.useMemo(()=>!tn||!Ht?null:Ht==="alpha"?tn.toRgbString():`hsl(${tn.toHsb().h}, 100%, 50%)`,[tn,Ht]),zr=(0,Sn.Z)(or),Pr=(0,Sn.Z)(cr),Or=b.useMemo(()=>({onDragStart:zr,onDragChange:Pr}),[]),Sr=(0,Sn.Z)((br,wr)=>{const{onFocus:_n,style:In,className:er,onKeyDown:Rn}=br.props,bn=Object.assign({},In);return Ht==="gradient"&&(bn.background=(0,le.AO)(Vt,wr.value)),b.cloneElement(br,{onFocus:ir=>{Nn==null||Nn(wr.index),_n==null||_n(ir)},style:bn,className:fe()(er,{[`${bt}-slider-handle-active`]:tr===wr.index}),onKeyDown:ir=>{(ir.key==="Delete"||ir.key==="Backspace")&&nr&&nr(wr.index),Rn==null||Rn(ir)}})}),Tr=b.useMemo(()=>({direction:"ltr",handleRender:Sr}),[]);return b.createElement(rr.Z.Provider,{value:Tr},b.createElement(nn.y.Provider,{value:Or},b.createElement(zn.Z,Object.assign({},lr,{className:fe()(Vn,`${bt}-slider`),tooltip:{open:!1},range:{editable:An,minCount:2},styles:{rail:{background:Er},handle:Ir?{background:Ir}:{}},classNames:{rail:`${bt}-slider-rail`,handle:`${bt}-slider-handle`}}))))};var Ye=Ge=>{const{value:bt,onChange:Vt,onChangeComplete:Ht}=Ge,tn=Vn=>Vt(Vn[0]),An=Vn=>Ht(Vn[0]);return b.createElement(kn,Object.assign({},Ge,{value:[bt],onChange:tn,onChangeComplete:An}))};function Qt(Ge){return(0,Ze.Z)(Ge).sort((bt,Vt)=>bt.percent-Vt.percent)}const yn=Ge=>{const{prefixCls:bt,mode:Vt,onChange:Ht,onChangeComplete:tn,onActive:An,activeIndex:Vn,onGradientDragging:tr,colors:Nn}=Ge,or=Vt==="gradient",cr=b.useMemo(()=>Nn.map(Pr=>({percent:Pr.percent,color:Pr.color.toRgbString()})),[Nn]),nr=b.useMemo(()=>cr.map(Pr=>Pr.percent),[cr]),hr=b.useRef(cr),lr=Pr=>{let{rawValues:Or,draggingIndex:Sr,draggingValue:Tr}=Pr;if(Or.length>cr.length){const br=(0,le.AO)(cr,Tr),wr=(0,Ze.Z)(cr);wr.splice(Sr,0,{percent:Tr,color:br}),hr.current=wr}else hr.current=cr;tr(!0),Ht(new Ve.y9(Qt(hr.current)),!0)},Er=Pr=>{let{deleteIndex:Or,draggingIndex:Sr,draggingValue:Tr}=Pr,br=(0,Ze.Z)(hr.current);Or!==-1?br.splice(Or,1):(br[Sr]=Object.assign(Object.assign({},br[Sr]),{percent:Tr}),br=Qt(br)),Ht(new Ve.y9(br),!0)},Ir=Pr=>{const Or=(0,Ze.Z)(cr);Or.splice(Pr,1);const Sr=new Ve.y9(Or);Ht(Sr),tn(Sr)},zr=Pr=>{tn(new Ve.y9(cr)),Vn>=Pr.length&&An(Pr.length-1),tr(!1)};return or?b.createElement(kn,{min:0,max:100,prefixCls:bt,className:`${bt}-gradient-slider`,colors:cr,color:null,value:nr,range:!0,onChangeComplete:zr,disabled:!1,type:"gradient",activeIndex:Vn,onActive:An,onDragStart:lr,onDragChange:Er,onKeyDelete:Ir}):null};var xn=b.memo(yn),qt=function(Ge,bt){var Vt={};for(var Ht in Ge)Object.prototype.hasOwnProperty.call(Ge,Ht)&&bt.indexOf(Ht)<0&&(Vt[Ht]=Ge[Ht]);if(Ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tn=0,Ht=Object.getOwnPropertySymbols(Ge);tn<Ht.length;tn++)bt.indexOf(Ht[tn])<0&&Object.prototype.propertyIsEnumerable.call(Ge,Ht[tn])&&(Vt[Ht[tn]]=Ge[Ht[tn]]);return Vt};const En={slider:Ye};var Tn=()=>{const Ge=(0,b.useContext)(se),{mode:bt,onModeChange:Vt,modeOptions:Ht,prefixCls:tn,allowClear:An,value:Vn,disabledAlpha:tr,onChange:Nn,onClear:or,onChangeComplete:cr,activeIndex:nr,gradientDragging:hr}=Ge,lr=qt(Ge,["mode","onModeChange","modeOptions","prefixCls","allowClear","value","disabledAlpha","onChange","onClear","onChangeComplete","activeIndex","gradientDragging"]),Er=b.useMemo(()=>Vn.cleared?[{percent:0,color:new Ve.y9("")},{percent:100,color:new Ve.y9("")}]:Vn.getColors(),[Vn]),Ir=!Vn.isGradient(),[zr,Pr]=b.useState(Vn);(0,mt.Z)(()=>{var On;Ir||Pr((On=Er[nr])===null||On===void 0?void 0:On.color)},[hr,nr]);const Or=b.useMemo(()=>{var On;return Ir?Vn:hr?zr:(On=Er[nr])===null||On===void 0?void 0:On.color},[Vn,nr,Ir,zr,hr]),[Sr,Tr]=b.useState(Or),[br,wr]=b.useState(0),_n=Sr!=null&&Sr.equals(Or)?Or:Sr;(0,mt.Z)(()=>{Tr(Or)},[br,Or==null?void 0:Or.toHexString()]);const In=(On,Hn)=>{let Xn=(0,le.vC)(On);if(Vn.cleared){const Ar=Xn.toRgb();if(!Ar.r&&!Ar.g&&!Ar.b&&Hn){const{type:Fr,value:Rr=0}=Hn;Xn=new Ve.y9({h:Fr==="hue"?Rr:0,s:1,b:1,a:Fr==="alpha"?Rr/100:1})}else Xn=(0,le.T7)(Xn)}if(bt==="single")return Xn;const vr=(0,Ze.Z)(Er);return vr[nr]=Object.assign(Object.assign({},vr[nr]),{color:Xn}),new Ve.y9(vr)},er=(On,Hn,Xn)=>{const vr=In(On,Xn);Tr(vr.isGradient()?vr.getColors()[nr].color:vr),Nn(vr,Hn)},Rn=(On,Hn)=>{cr(In(On,Hn)),wr(Xn=>Xn+1)},bn=On=>{Nn(In(On))};let ir=null;const mr=Ht.length>1;return(An||mr)&&(ir=b.createElement("div",{className:`${tn}-operation`},mr&&b.createElement(oe,{size:"small",options:Ht,value:bt,onChange:Vt}),b.createElement(Dt,Object.assign({prefixCls:tn,value:Vn,onChange:On=>{Nn(On),or==null||or()}},lr)))),b.createElement(b.Fragment,null,ir,b.createElement(xn,Object.assign({},Ge,{colors:Er})),b.createElement(pt.default,{prefixCls:tn,value:_n==null?void 0:_n.toHsb(),disabledAlpha:tr,onChange:(On,Hn)=>{er(On,!0,Hn)},onChangeComplete:(On,Hn)=>{Rn(On,Hn)},components:En}),b.createElement(zt,Object.assign({value:Or,onChange:bn,prefixCls:tn,disabledAlpha:tr},lr)))},_t=z(88911),Bn=()=>{const{prefixCls:Ge,value:bt,presets:Vt,onChange:Ht}=(0,b.useContext)(re);return Array.isArray(Vt)?b.createElement(_t.Z,{value:bt,presets:Vt,prefixCls:Ge,onChange:Ht}):null},Zn=Ge=>{const{prefixCls:bt,presets:Vt,panelRender:Ht,value:tn,onChange:An,onClear:Vn,allowClear:tr,disabledAlpha:Nn,mode:or,onModeChange:cr,modeOptions:nr,onChangeComplete:hr,activeIndex:lr,onActive:Er,format:Ir,onFormatChange:zr,gradientDragging:Pr,onGradientDragging:Or,disabledFormat:Sr}=Ge,Tr=`${bt}-inner`,br=b.useMemo(()=>({prefixCls:bt,value:tn,onChange:An,onClear:Vn,allowClear:tr,disabledAlpha:Nn,mode:or,onModeChange:cr,modeOptions:nr,onChangeComplete:hr,activeIndex:lr,onActive:Er,format:Ir,onFormatChange:zr,gradientDragging:Pr,onGradientDragging:Or,disabledFormat:Sr}),[bt,tn,An,Vn,tr,Nn,or,cr,nr,hr,lr,Er,Ir,zr,Pr,Or,Sr]),wr=b.useMemo(()=>({prefixCls:bt,value:tn,presets:Vt,onChange:An}),[bt,tn,Vt,An]),_n=b.createElement("div",{className:`${Tr}-content`},b.createElement(Tn,null),Array.isArray(Vt)&&b.createElement(Ne.Z,null),b.createElement(Bn,null));return b.createElement(se.Provider,{value:br},b.createElement(re.Provider,{value:wr},b.createElement("div",{className:Tr},typeof Ht=="function"?Ht(_n,{components:{Picker:Tn,Presets:Bn}}):_n)))},yr=z(26112),ur=z(9017),Jt=function(Ge,bt){var Vt={};for(var Ht in Ge)Object.prototype.hasOwnProperty.call(Ge,Ht)&&bt.indexOf(Ht)<0&&(Vt[Ht]=Ge[Ht]);if(Ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tn=0,Ht=Object.getOwnPropertySymbols(Ge);tn<Ht.length;tn++)bt.indexOf(Ht[tn])<0&&Object.prototype.propertyIsEnumerable.call(Ge,Ht[tn])&&(Vt[Ht[tn]]=Ge[Ht[tn]]);return Vt},un=(0,b.forwardRef)((Ge,bt)=>{const{color:Vt,prefixCls:Ht,open:tn,disabled:An,format:Vn,className:tr,showText:Nn,activeIndex:or}=Ge,cr=Jt(Ge,["color","prefixCls","open","disabled","format","className","showText","activeIndex"]),nr=`${Ht}-trigger`,hr=`${nr}-text`,lr=`${hr}-cell`,[Er]=(0,ur.Z)("ColorPicker"),Ir=b.useMemo(()=>{if(!Nn)return"";if(typeof Nn=="function")return Nn(Vt);if(Vt.cleared)return Er.transparent;if(Vt.isGradient())return Vt.getColors().map((Sr,Tr)=>{const br=or!==-1&&or!==Tr;return b.createElement("span",{key:Tr,className:fe()(lr,br&&`${lr}-inactive`)},Sr.color.toRgbString()," ",Sr.percent,"%")});const Pr=Vt.toHexString().toUpperCase(),Or=(0,le.uZ)(Vt);switch(Vn){case"rgb":return Vt.toRgbString();case"hsb":return Vt.toHsbString();default:return Or<100?`${Pr.slice(0,7)},${Or}%`:Pr}},[Vt,Vn,Nn,or]),zr=(0,b.useMemo)(()=>Vt.cleared?b.createElement(Dt,{prefixCls:Ht}):b.createElement(pt.ColorBlock,{prefixCls:Ht,color:Vt.toCssString()}),[Vt,Ht]);return b.createElement("div",Object.assign({ref:bt,className:fe()(nr,tr,{[`${nr}-active`]:tn,[`${nr}-disabled`]:An})},(0,yr.Z)(cr)),zr,Nn&&b.createElement("div",{className:hr},Ir))});function sn(Ge,bt,Vt){const[Ht]=(0,ur.Z)("ColorPicker"),[tn,An]=(0,rt.Z)(Ge,{value:bt}),[Vn,tr]=b.useState("single"),[Nn,or]=b.useMemo(()=>{const Ir=(Array.isArray(Vt)?Vt:[Vt]).filter(Sr=>Sr);Ir.length||Ir.push("single");const zr=new Set(Ir),Pr=[],Or=(Sr,Tr)=>{zr.has(Sr)&&Pr.push({label:Tr,value:Sr})};return Or("single",Ht.singleColor),Or("gradient",Ht.gradientColor),[Pr,zr]},[Vt]),[cr,nr]=b.useState(null),hr=(0,Sn.Z)(Ir=>{nr(Ir),An(Ir)}),lr=b.useMemo(()=>{const Ir=(0,le.vC)(tn||"");return Ir.equals(cr)?cr:Ir},[tn,cr]),Er=b.useMemo(()=>{var Ir;return or.has(Vn)?Vn:(Ir=Nn[0])===null||Ir===void 0?void 0:Ir.value},[or,Vn,Nn]);return b.useEffect(()=>{tr(lr.isGradient()?"gradient":"single")},[lr]),[lr,hr,Er,tr,Nn]}var We=z(56119);const dt=(Ge,bt)=>({backgroundImage:`conic-gradient(${bt} 25%, transparent 25% 50%, ${bt} 50% 75%, transparent 75% 100%)`,backgroundSize:`${Ge} ${Ge}`});var gt=(Ge,bt)=>{const{componentCls:Vt,borderRadiusSM:Ht,colorPickerInsetShadow:tn,lineWidth:An,colorFillSecondary:Vn}=Ge;return{[`${Vt}-color-block`]:Object.assign(Object.assign({position:"relative",borderRadius:Ht,width:bt,height:bt,boxShadow:tn,flex:"none"},dt("50%",Ge.colorFillSecondary)),{[`${Vt}-color-block-inner`]:{width:"100%",height:"100%",boxShadow:`inset 0 0 0 ${(0,Pt.unit)(An)} ${Vn}`,borderRadius:"inherit"}})}},St=Ge=>{const{componentCls:bt,antCls:Vt,fontSizeSM:Ht,lineHeightSM:tn,colorPickerAlphaInputWidth:An,marginXXS:Vn,paddingXXS:tr,controlHeightSM:Nn,marginXS:or,fontSizeIcon:cr,paddingXS:nr,colorTextPlaceholder:hr,colorPickerInputNumberHandleWidth:lr,lineWidth:Er}=Ge;return{[`${bt}-input-container`]:{display:"flex",[`${bt}-steppers${Vt}-input-number`]:{fontSize:Ht,lineHeight:tn,[`${Vt}-input-number-input`]:{paddingInlineStart:tr,paddingInlineEnd:0},[`${Vt}-input-number-handler-wrap`]:{width:lr}},[`${bt}-steppers${bt}-alpha-input`]:{flex:`0 0 ${(0,Pt.unit)(An)}`,marginInlineStart:Vn},[`${bt}-format-select${Vt}-select`]:{marginInlineEnd:or,width:"auto","&-single":{[`${Vt}-select-selector`]:{padding:0,border:0},[`${Vt}-select-arrow`]:{insetInlineEnd:0},[`${Vt}-select-selection-item`]:{paddingInlineEnd:Ge.calc(cr).add(Vn).equal(),fontSize:Ht,lineHeight:(0,Pt.unit)(Nn)},[`${Vt}-select-item-option-content`]:{fontSize:Ht,lineHeight:tn},[`${Vt}-select-dropdown`]:{[`${Vt}-select-item`]:{minHeight:"auto"}}}},[`${bt}-input`]:{gap:Vn,alignItems:"center",flex:1,width:0,[`${bt}-hsb-input,${bt}-rgb-input`]:{display:"flex",gap:Vn,alignItems:"center"},[`${bt}-steppers`]:{flex:1},[`${bt}-hex-input${Vt}-input-affix-wrapper`]:{flex:1,padding:`0 ${(0,Pt.unit)(nr)}`,[`${Vt}-input`]:{fontSize:Ht,textTransform:"uppercase",lineHeight:(0,Pt.unit)(Ge.calc(Nn).sub(Ge.calc(Er).mul(2)).equal())},[`${Vt}-input-prefix`]:{color:hr}}}}}},Ft=Ge=>{const{componentCls:bt,controlHeightLG:Vt,borderRadiusSM:Ht,colorPickerInsetShadow:tn,marginSM:An,colorBgElevated:Vn,colorFillSecondary:tr,lineWidthBold:Nn,colorPickerHandlerSize:or}=Ge;return{userSelect:"none",[`${bt}-select`]:{[`${bt}-palette`]:{minHeight:Ge.calc(Vt).mul(4).equal(),overflow:"hidden",borderRadius:Ht},[`${bt}-saturation`]:{position:"absolute",borderRadius:"inherit",boxShadow:tn,inset:0},marginBottom:An},[`${bt}-handler`]:{width:or,height:or,border:`${(0,Pt.unit)(Nn)} solid ${Vn}`,position:"relative",borderRadius:"50%",cursor:"pointer",boxShadow:`${tn}, 0 0 0 1px ${tr}`}}},De=Ge=>{const{componentCls:bt,antCls:Vt,colorTextQuaternary:Ht,paddingXXS:tn,colorPickerPresetColorSize:An,fontSizeSM:Vn,colorText:tr,lineHeightSM:Nn,lineWidth:or,borderRadius:cr,colorFill:nr,colorWhite:hr,marginXXS:lr,paddingXS:Er,fontHeightSM:Ir}=Ge;return{[`${bt}-presets`]:{[`${Vt}-collapse-item > ${Vt}-collapse-header`]:{padding:0,[`${Vt}-collapse-expand-icon`]:{height:Ir,color:Ht,paddingInlineEnd:tn}},[`${Vt}-collapse`]:{display:"flex",flexDirection:"column",gap:lr},[`${Vt}-collapse-item > ${Vt}-collapse-content > ${Vt}-collapse-content-box`]:{padding:`${(0,Pt.unit)(Er)} 0`},"&-label":{fontSize:Vn,color:tr,lineHeight:Nn},"&-items":{display:"flex",flexWrap:"wrap",gap:Ge.calc(lr).mul(1.5).equal(),[`${bt}-presets-color`]:{position:"relative",cursor:"pointer",width:An,height:An,"&::before":{content:'""',pointerEvents:"none",width:Ge.calc(An).add(Ge.calc(or).mul(4)).equal(),height:Ge.calc(An).add(Ge.calc(or).mul(4)).equal(),position:"absolute",top:Ge.calc(or).mul(-2).equal(),insetInlineStart:Ge.calc(or).mul(-2).equal(),borderRadius:cr,border:`${(0,Pt.unit)(or)} solid transparent`,transition:`border-color ${Ge.motionDurationMid} ${Ge.motionEaseInBack}`},"&:hover::before":{borderColor:nr},"&::after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:Ge.calc(An).div(13).mul(5).equal(),height:Ge.calc(An).div(13).mul(8).equal(),border:`${(0,Pt.unit)(Ge.lineWidthBold)} solid ${Ge.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${Ge.motionDurationFast} ${Ge.motionEaseInBack}, opacity ${Ge.motionDurationFast}`},[`&${bt}-presets-color-checked`]:{"&::after":{opacity:1,borderColor:hr,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`transform ${Ge.motionDurationMid} ${Ge.motionEaseOutBack} ${Ge.motionDurationFast}`},[`&${bt}-presets-color-bright`]:{"&::after":{borderColor:"rgba(0, 0, 0, 0.45)"}}}}},"&-empty":{fontSize:Vn,color:Ht}}}},Me=Ge=>{const{componentCls:bt,colorPickerInsetShadow:Vt,colorBgElevated:Ht,colorFillSecondary:tn,lineWidthBold:An,colorPickerHandlerSizeSM:Vn,colorPickerSliderHeight:tr,marginSM:Nn,marginXS:or}=Ge,cr=Ge.calc(Vn).sub(Ge.calc(An).mul(2).equal()).equal(),nr=Ge.calc(Vn).add(Ge.calc(An).mul(2).equal()).equal(),hr={"&:after":{transform:"scale(1)",boxShadow:`${Vt}, 0 0 0 1px ${Ge.colorPrimaryActive}`}};return{[`${bt}-slider`]:[dt((0,Pt.unit)(tr),Ge.colorFillSecondary),{margin:0,padding:0,height:tr,borderRadius:Ge.calc(tr).div(2).equal(),"&-rail":{height:tr,borderRadius:Ge.calc(tr).div(2).equal(),boxShadow:Vt},[`& ${bt}-slider-handle`]:{width:cr,height:cr,top:0,borderRadius:"100%","&:before":{display:"block",position:"absolute",background:"transparent",left:{_skip_check_:!0,value:"50%"},top:"50%",transform:"translate(-50%, -50%)",width:nr,height:nr,borderRadius:"100%"},"&:after":{width:Vn,height:Vn,border:`${(0,Pt.unit)(An)} solid ${Ht}`,boxShadow:`${Vt}, 0 0 0 1px ${tn}`,outline:"none",insetInlineStart:Ge.calc(An).mul(-1).equal(),top:Ge.calc(An).mul(-1).equal(),background:"transparent",transition:"none"},"&:focus":hr}}],[`${bt}-slider-container`]:{display:"flex",gap:Nn,marginBottom:Nn,[`${bt}-slider-group`]:{flex:1,flexDirection:"column",justifyContent:"space-between",display:"flex","&-disabled-alpha":{justifyContent:"center"}}},[`${bt}-gradient-slider`]:{marginBottom:or,[`& ${bt}-slider-handle`]:{"&:after":{transform:"scale(0.8)"},"&-active, &:focus":hr}}}};const je=(Ge,bt,Vt)=>({borderInlineEndWidth:Ge.lineWidth,borderColor:bt,boxShadow:`0 0 0 ${(0,Pt.unit)(Ge.controlOutlineWidth)} ${Vt}`,outline:0}),it=Ge=>{const{componentCls:bt}=Ge;return{"&-rtl":{[`${bt}-presets-color`]:{"&::after":{direction:"ltr"}},[`${bt}-clear`]:{"&::after":{direction:"ltr"}}}}},an=(Ge,bt,Vt)=>{const{componentCls:Ht,borderRadiusSM:tn,lineWidth:An,colorSplit:Vn,colorBorder:tr,red6:Nn}=Ge;return{[`${Ht}-clear`]:Object.assign(Object.assign({width:bt,height:bt,borderRadius:tn,border:`${(0,Pt.unit)(An)} solid ${Vn}`,position:"relative",overflow:"hidden",cursor:"inherit",transition:`all ${Ge.motionDurationFast}`},Vt),{"&::after":{content:'""',position:"absolute",insetInlineEnd:Ge.calc(An).mul(-1).equal(),top:Ge.calc(An).mul(-1).equal(),display:"block",width:40,height:2,transformOrigin:"calc(100% - 1px) 1px",transform:"rotate(-45deg)",backgroundColor:Nn},"&:hover":{borderColor:tr}})}},dn=Ge=>{const{componentCls:bt,colorError:Vt,colorWarning:Ht,colorErrorHover:tn,colorWarningHover:An,colorErrorOutline:Vn,colorWarningOutline:tr}=Ge;return{[`&${bt}-status-error`]:{borderColor:Vt,"&:hover":{borderColor:tn},[`&${bt}-trigger-active`]:Object.assign({},je(Ge,Vt,Vn))},[`&${bt}-status-warning`]:{borderColor:Ht,"&:hover":{borderColor:An},[`&${bt}-trigger-active`]:Object.assign({},je(Ge,Ht,tr))}}},hn=Ge=>{const{componentCls:bt,controlHeightLG:Vt,controlHeightSM:Ht,controlHeight:tn,controlHeightXS:An,borderRadius:Vn,borderRadiusSM:tr,borderRadiusXS:Nn,borderRadiusLG:or,fontSizeLG:cr}=Ge;return{[`&${bt}-lg`]:{minWidth:Vt,minHeight:Vt,borderRadius:or,[`${bt}-color-block, ${bt}-clear`]:{width:tn,height:tn,borderRadius:Vn},[`${bt}-trigger-text`]:{fontSize:cr}},[`&${bt}-sm`]:{minWidth:Ht,minHeight:Ht,borderRadius:tr,[`${bt}-color-block, ${bt}-clear`]:{width:An,height:An,borderRadius:Nn},[`${bt}-trigger-text`]:{lineHeight:(0,Pt.unit)(An)}}}},$n=Ge=>{const{antCls:bt,componentCls:Vt,colorPickerWidth:Ht,colorPrimary:tn,motionDurationMid:An,colorBgElevated:Vn,colorTextDisabled:tr,colorText:Nn,colorBgContainerDisabled:or,borderRadius:cr,marginXS:nr,marginSM:hr,controlHeight:lr,controlHeightSM:Er,colorBgTextActive:Ir,colorPickerPresetColorSize:zr,colorPickerPreviewSize:Pr,lineWidth:Or,colorBorder:Sr,paddingXXS:Tr,fontSize:br,colorPrimaryHover:wr,controlOutline:_n}=Ge;return[{[Vt]:Object.assign({[`${Vt}-inner`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({"&-content":{display:"flex",flexDirection:"column",width:Ht,[`& > ${bt}-divider`]:{margin:`${(0,Pt.unit)(hr)} 0 ${(0,Pt.unit)(nr)}`}},[`${Vt}-panel`]:Object.assign({},Ft(Ge))},Me(Ge)),gt(Ge,Pr)),St(Ge)),De(Ge)),an(Ge,zr,{marginInlineStart:"auto"})),{[`${Vt}-operation`]:{display:"flex",justifyContent:"space-between",marginBottom:nr}}),"&-trigger":Object.assign(Object.assign(Object.assign(Object.assign({minWidth:lr,minHeight:lr,borderRadius:cr,border:`${(0,Pt.unit)(Or)} solid ${Sr}`,cursor:"pointer",display:"inline-flex",alignItems:"flex-start",justifyContent:"center",transition:`all ${An}`,background:Vn,padding:Ge.calc(Tr).sub(Or).equal(),[`${Vt}-trigger-text`]:{marginInlineStart:nr,marginInlineEnd:Ge.calc(nr).sub(Ge.calc(Tr).sub(Or)).equal(),fontSize:br,color:Nn,alignSelf:"center","&-cell":{"&:not(:last-child):after":{content:'", "'},"&-inactive":{color:tr}}},"&:hover":{borderColor:wr},[`&${Vt}-trigger-active`]:Object.assign({},je(Ge,tn,_n)),"&-disabled":{color:tr,background:or,cursor:"not-allowed","&:hover":{borderColor:Ir},[`${Vt}-trigger-text`]:{color:tr}}},an(Ge,Er)),gt(Ge,Er)),dn(Ge)),hn(Ge))},it(Ge))},(0,We.c)(Ge,{focusElCls:`${Vt}-trigger-active`})]};var ar=(0,Ce.I$)("ColorPicker",Ge=>{const{colorTextQuaternary:bt,marginSM:Vt}=Ge,Ht=8,tn=(0,ot.mergeToken)(Ge,{colorPickerWidth:234,colorPickerHandlerSize:16,colorPickerHandlerSizeSM:12,colorPickerAlphaInputWidth:44,colorPickerInputNumberHandleWidth:16,colorPickerPresetColorSize:24,colorPickerInsetShadow:`inset 0 0 1px 0 ${bt}`,colorPickerSliderHeight:Ht,colorPickerPreviewSize:Ge.calc(Ht).mul(2).add(Vt).equal()});return[$n(tn)]}),Cr=function(Ge,bt){var Vt={};for(var Ht in Ge)Object.prototype.hasOwnProperty.call(Ge,Ht)&&bt.indexOf(Ht)<0&&(Vt[Ht]=Ge[Ht]);if(Ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tn=0,Ht=Object.getOwnPropertySymbols(Ge);tn<Ht.length;tn++)bt.indexOf(Ht[tn])<0&&Object.prototype.propertyIsEnumerable.call(Ge,Ht[tn])&&(Vt[Ht[tn]]=Ge[Ht[tn]]);return Vt};const qn=Ge=>{const{mode:bt,value:Vt,defaultValue:Ht,format:tn,defaultFormat:An,allowClear:Vn=!1,presets:tr,children:Nn,trigger:or="click",open:cr,disabled:nr,placement:hr="bottomLeft",arrow:lr=!0,panelRender:Er,showText:Ir,style:zr,className:Pr,size:Or,rootClassName:Sr,prefixCls:Tr,styles:br,disabledAlpha:wr=!1,onFormatChange:_n,onChange:In,onClear:er,onOpenChange:Rn,onChangeComplete:bn,getPopupContainer:ir,autoAdjustOverflow:mr=!0,destroyTooltipOnHide:On,disabledFormat:Hn}=Ge,Xn=Cr(Ge,["mode","value","defaultValue","format","defaultFormat","allowClear","presets","children","trigger","open","disabled","placement","arrow","panelRender","showText","style","className","size","rootClassName","prefixCls","styles","disabledAlpha","onFormatChange","onChange","onClear","onOpenChange","onChangeComplete","getPopupContainer","autoAdjustOverflow","destroyTooltipOnHide","disabledFormat"]),{getPrefixCls:vr,direction:Ar,colorPicker:Fr}=(0,b.useContext)(Qe.E_),Rr=(0,b.useContext)(Ae.Z),Ur=nr!=null?nr:Rr,[jr,ro]=(0,rt.Z)(!1,{value:cr,postState:wo=>!Ur&&wo,onChange:Rn}),[Yr,Xr]=(0,rt.Z)(tn,{value:tn,defaultValue:An,onChange:_n}),eo=vr("color-picker",Tr),[vo,Fo,Yo,Bo,Ko]=sn(Ht,Vt,bt),Jr=(0,b.useMemo)(()=>(0,le.uZ)(vo)<100,[vo]),[Qr,Vo]=b.useState(null),Wo=wo=>{if(bn){let Po=(0,le.vC)(wo);wr&&Jr&&(Po=(0,le.T7)(wo)),bn(Po)}},po=(wo,Po)=>{let ia=(0,le.vC)(wo);wr&&Jr&&(ia=(0,le.T7)(ia)),Fo(ia),Vo(null),In&&In(ia,ia.toCssString()),Po||Wo(ia)},[ko,Xo]=b.useState(0),[Ao,Zo]=b.useState(!1),Ho=wo=>{if(Bo(wo),wo==="single"&&vo.isGradient())Xo(0),po(new Ve.y9(vo.getColors()[0].color)),Vo(vo);else if(wo==="gradient"&&!vo.isGradient()){const Po=Jr?(0,le.T7)(vo):vo;po(new Ve.y9(Qr||[{percent:0,color:Po},{percent:100,color:Po}]))}},{status:ba}=b.useContext(ve.aM),{compactSize:Ha,compactItemClassnames:xa}=(0,at.ri)(eo,Ar),ga=(0,tt.Z)(wo=>{var Po;return(Po=Or!=null?Or:Ha)!==null&&Po!==void 0?Po:wo}),Ei=(0,de.Z)(eo),[wi,Io,Lo]=ar(eo,Ei),Wr={[`${eo}-rtl`]:Ar},Hr=fe()(Sr,Lo,Ei,Wr),no=fe()((0,Ee.Z)(eo,ba),{[`${eo}-sm`]:ga==="small",[`${eo}-lg`]:ga==="large"},xa,Fr==null?void 0:Fr.className,Hr,Pr,Io),bo=fe()(eo,Hr),ua={open:jr,trigger:or,placement:hr,arrow:lr,rootClassName:Sr,getPopupContainer:ir,autoAdjustOverflow:mr,destroyTooltipOnHide:On},qo=Object.assign(Object.assign({},Fr==null?void 0:Fr.style),zr);return wi(b.createElement(Lt.Z,Object.assign({style:br==null?void 0:br.popup,styles:{body:br==null?void 0:br.popupOverlayInner},onOpenChange:wo=>{(!wo||!Ur)&&ro(wo)},content:b.createElement(xe.Z,{form:!0},b.createElement(Zn,{mode:Yo,onModeChange:Ho,modeOptions:Ko,prefixCls:eo,value:vo,allowClear:Vn,disabled:Ur,disabledAlpha:wr,presets:tr,panelRender:Er,format:Yr,onFormatChange:Xr,onChange:po,onChangeComplete:Wo,onClear:er,activeIndex:ko,onActive:Xo,gradientDragging:Ao,onGradientDragging:Zo,disabledFormat:Hn})),classNames:{root:bo}},ua),Nn||b.createElement(un,Object.assign({activeIndex:jr?ko:-1,open:jr,className:no,style:qo,prefixCls:eo,disabled:Ur,showText:Ir,format:Yr},Xn,{color:vo}))))},Gn=(0,ge.Z)(qn,void 0,Ge=>Object.assign(Object.assign({},Ge),{placement:"bottom",autoAdjustOverflow:!1}),"color-picker",Ge=>Ge);qn._InternalPanelDoNotUseOrYouWillBeFired=Gn;var Jn=qn,gr=Jn},38406:function(Kn,cn,z){"use strict";var b=z(59301),Pe=z(48755),fe=z(584);const rt=xe=>{const{componentName:ge}=xe,{getPrefixCls:Ee}=(0,b.useContext)(Pe.E_),Qe=Ee("empty");switch(ge){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:`${Qe}-small`});case"Table.filter":return null;default:return b.createElement(fe.Z,null)}};cn.Z=rt},37285:function(Kn,cn,z){"use strict";z.d(cn,{Z:function(){return at}});var b=z(59301),Pe=z(92310),fe=z.n(Pe),rt=z(48755),xe=z(36237),ge=z(63356),Ee=z(16931),Qe=z(51636);const Ae=Ve=>{const{componentCls:Ne,sizePaddingEdgeHorizontal:Ze,colorSplit:pt,lineWidth:mt,textPaddingInline:Xt,orientationMargin:He,verticalMarginInline:Ke}=Ve;return{[Ne]:Object.assign(Object.assign({},(0,ge.Wf)(Ve)),{borderBlockStart:`${(0,xe.unit)(mt)} solid ${pt}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:Ke,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${(0,xe.unit)(mt)} solid ${pt}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${(0,xe.unit)(Ve.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${Ne}-with-text`]:{display:"flex",alignItems:"center",margin:`${(0,xe.unit)(Ve.dividerHorizontalWithTextGutterMargin)} 0`,color:Ve.colorTextHeading,fontWeight:500,fontSize:Ve.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${pt}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${(0,xe.unit)(mt)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${Ne}-with-text-start`]:{"&::before":{width:`calc(${He} * 100%)`},"&::after":{width:`calc(100% - ${He} * 100%)`}},[`&-horizontal${Ne}-with-text-end`]:{"&::before":{width:`calc(100% - ${He} * 100%)`},"&::after":{width:`calc(${He} * 100%)`}},[`${Ne}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:Xt},"&-dashed":{background:"none",borderColor:pt,borderStyle:"dashed",borderWidth:`${(0,xe.unit)(mt)} 0 0`},[`&-horizontal${Ne}-with-text${Ne}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${Ne}-dashed`]:{borderInlineStartWidth:mt,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:pt,borderStyle:"dotted",borderWidth:`${(0,xe.unit)(mt)} 0 0`},[`&-horizontal${Ne}-with-text${Ne}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${Ne}-dotted`]:{borderInlineStartWidth:mt,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${Ne}-with-text`]:{color:Ve.colorText,fontWeight:"normal",fontSize:Ve.fontSize},[`&-horizontal${Ne}-with-text-start${Ne}-no-default-orientation-margin-start`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${Ne}-inner-text`]:{paddingInlineStart:Ze}},[`&-horizontal${Ne}-with-text-end${Ne}-no-default-orientation-margin-end`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${Ne}-inner-text`]:{paddingInlineEnd:Ze}}})}},de=Ve=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:Ve.marginXS});var tt=(0,Ee.I$)("Divider",Ve=>{const Ne=(0,Qe.mergeToken)(Ve,{dividerHorizontalWithTextGutterMargin:Ve.margin,dividerHorizontalGutterMargin:Ve.marginLG,sizePaddingEdgeHorizontal:0});return[Ae(Ne)]},de,{unitless:{orientationMargin:!0}}),ve=function(Ve,Ne){var Ze={};for(var pt in Ve)Object.prototype.hasOwnProperty.call(Ve,pt)&&Ne.indexOf(pt)<0&&(Ze[pt]=Ve[pt]);if(Ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var mt=0,pt=Object.getOwnPropertySymbols(Ve);mt<pt.length;mt++)Ne.indexOf(pt[mt])<0&&Object.prototype.propertyIsEnumerable.call(Ve,pt[mt])&&(Ze[pt[mt]]=Ve[pt[mt]]);return Ze},at=Ve=>{const{getPrefixCls:Ne,direction:Ze,className:pt,style:mt}=(0,rt.dj)("divider"),{prefixCls:Xt,type:He="horizontal",orientation:Ke="center",orientationMargin:ut,className:ft,rootClassName:jt,children:Ot,dashed:yt,variant:Et="solid",plain:pe,style:Je}=Ve,Xe=ve(Ve,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style"]),ue=Ne("divider",Xt),[Nt,et,wt]=tt(ue),ln=!!Ot,ke=b.useMemo(()=>Ke==="left"?Ze==="rtl"?"end":"start":Ke==="right"?Ze==="rtl"?"start":"end":Ke,[Ze,Ke]),he=ke==="start"&&ut!=null,Ct=ke==="end"&&ut!=null,Pt=fe()(ue,pt,et,wt,`${ue}-${He}`,{[`${ue}-with-text`]:ln,[`${ue}-with-text-${ke}`]:ln,[`${ue}-dashed`]:!!yt,[`${ue}-${Et}`]:Et!=="solid",[`${ue}-plain`]:!!pe,[`${ue}-rtl`]:Ze==="rtl",[`${ue}-no-default-orientation-margin-start`]:he,[`${ue}-no-default-orientation-margin-end`]:Ct},ft,jt),Kt=b.useMemo(()=>typeof ut=="number"?ut:/^\d+$/.test(ut)?Number(ut):ut,[ut]),Ce={marginInlineStart:he?Kt:void 0,marginInlineEnd:Ct?Kt:void 0};return Nt(b.createElement("div",Object.assign({className:Pt,style:Object.assign(Object.assign({},mt),Je)},Xe,{role:"separator"}),Ot&&He!=="vertical"&&b.createElement("span",{className:`${ue}-inner-text`,style:Ce},Ot)))}},36207:function(Kn,cn,z){"use strict";z.d(cn,{Z:function(){return Dt}});var b=z(59301),Pe=z(92310),fe=z.n(Pe),rt=z(33885),xe=z(42978),ge=z(43403),Ee=z(34280),Qe=b.createContext(null),Ae=b.createContext({}),de=Qe,tt=z(20068),ve=z(54476),Lt=z(77900),at=z(10228),Ve=z(26112),Ne=z(75931),Ze=z(8654),pt=["prefixCls","className","containerRef"],mt=function(Fe){var qe=Fe.prefixCls,nt=Fe.className,st=Fe.containerRef,we=(0,Ne.Z)(Fe,pt),Be=b.useContext(Ae),It=Be.panel,Mt=(0,Ze.x1)(It,st);return b.createElement("div",(0,ve.Z)({className:fe()("".concat(qe,"-content"),nt),role:"dialog",ref:Mt},(0,Ve.Z)(Fe,{aria:!0}),{"aria-modal":"true"},we))},Xt=mt,He=z(48736);function Ke(Re){return typeof Re=="string"&&String(Number(Re))===Re?((0,He.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(Re)):Re}function ut(Re){warning(!("wrapperClassName"in Re),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!Re.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var ft={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function jt(Re,Fe){var qe,nt,st,we=Re.prefixCls,Be=Re.open,It=Re.placement,Mt=Re.inline,kt=Re.push,Yt=Re.forceRender,At=Re.autoFocus,vn=Re.keyboard,Gt=Re.classNames,_e=Re.rootClassName,Bt=Re.rootStyle,Ut=Re.zIndex,on=Re.className,Le=Re.id,xt=Re.style,zt=Re.motion,nn=Re.width,Sn=Re.height,zn=Re.children,rr=Re.mask,pr=Re.maskClosable,kn=Re.maskMotion,dr=Re.maskClassName,Ye=Re.maskStyle,Qt=Re.afterOpenChange,yn=Re.onClose,xn=Re.onMouseEnter,qt=Re.onMouseOver,En=Re.onMouseLeave,Fn=Re.onClick,Tn=Re.onKeyDown,_t=Re.onKeyUp,Cn=Re.styles,Bn=Re.drawerRender,Ln=b.useRef(),Zn=b.useRef(),yr=b.useRef();b.useImperativeHandle(Fe,function(){return Ln.current});var ur=function(Me){var je=Me.keyCode,it=Me.shiftKey;switch(je){case at.Z.TAB:{if(je===at.Z.TAB){if(!it&&document.activeElement===yr.current){var an;(an=Zn.current)===null||an===void 0||an.focus({preventScroll:!0})}else if(it&&document.activeElement===Zn.current){var dn;(dn=yr.current)===null||dn===void 0||dn.focus({preventScroll:!0})}}break}case at.Z.ESC:{yn&&vn&&(Me.stopPropagation(),yn(Me));break}}};b.useEffect(function(){if(Be&&At){var Te;(Te=Ln.current)===null||Te===void 0||Te.focus({preventScroll:!0})}},[Be]);var Jt=b.useState(!1),wn=(0,xe.Z)(Jt,2),un=wn[0],sn=wn[1],We=b.useContext(de),dt;typeof kt=="boolean"?dt=kt?{}:{distance:0}:dt=kt||{};var ze=(qe=(nt=(st=dt)===null||st===void 0?void 0:st.distance)!==null&&nt!==void 0?nt:We==null?void 0:We.pushDistance)!==null&&qe!==void 0?qe:180,gt=b.useMemo(function(){return{pushDistance:ze,push:function(){sn(!0)},pull:function(){sn(!1)}}},[ze]);b.useEffect(function(){if(Be){var Te;We==null||(Te=We.push)===null||Te===void 0||Te.call(We)}else{var Me;We==null||(Me=We.pull)===null||Me===void 0||Me.call(We)}},[Be]),b.useEffect(function(){return function(){var Te;We==null||(Te=We.pull)===null||Te===void 0||Te.call(We)}},[]);var $e=rr&&b.createElement(Lt.default,(0,ve.Z)({key:"mask"},kn,{visible:Be}),function(Te,Me){var je=Te.className,it=Te.style;return b.createElement("div",{className:fe()("".concat(we,"-mask"),je,Gt==null?void 0:Gt.mask,dr),style:(0,rt.Z)((0,rt.Z)((0,rt.Z)({},it),Ye),Cn==null?void 0:Cn.mask),onClick:pr&&Be?yn:void 0,ref:Me})}),St=typeof zt=="function"?zt(It):zt,Oe={};if(un&&ze)switch(It){case"top":Oe.transform="translateY(".concat(ze,"px)");break;case"bottom":Oe.transform="translateY(".concat(-ze,"px)");break;case"left":Oe.transform="translateX(".concat(ze,"px)");break;default:Oe.transform="translateX(".concat(-ze,"px)");break}It==="left"||It==="right"?Oe.width=Ke(nn):Oe.height=Ke(Sn);var Ft={onMouseEnter:xn,onMouseOver:qt,onMouseLeave:En,onClick:Fn,onKeyDown:Tn,onKeyUp:_t},Zt=b.createElement(Lt.default,(0,ve.Z)({key:"panel"},St,{visible:Be,forceRender:Yt,onVisibleChanged:function(Me){Qt==null||Qt(Me)},removeOnLeave:!1,leavedClassName:"".concat(we,"-content-wrapper-hidden")}),function(Te,Me){var je=Te.className,it=Te.style,an=b.createElement(Xt,(0,ve.Z)({id:Le,containerRef:Me,prefixCls:we,className:fe()(on,Gt==null?void 0:Gt.content),style:(0,rt.Z)((0,rt.Z)({},xt),Cn==null?void 0:Cn.content)},(0,Ve.Z)(Re,{aria:!0}),Ft),zn);return b.createElement("div",(0,ve.Z)({className:fe()("".concat(we,"-content-wrapper"),Gt==null?void 0:Gt.wrapper,je),style:(0,rt.Z)((0,rt.Z)((0,rt.Z)({},Oe),it),Cn==null?void 0:Cn.wrapper)},(0,Ve.Z)(Re,{data:!0})),Bn?Bn(an):an)}),De=(0,rt.Z)({},Bt);return Ut&&(De.zIndex=Ut),b.createElement(de.Provider,{value:gt},b.createElement("div",{className:fe()(we,"".concat(we,"-").concat(It),_e,(0,tt.Z)((0,tt.Z)({},"".concat(we,"-open"),Be),"".concat(we,"-inline"),Mt)),style:De,tabIndex:-1,ref:Ln,onKeyDown:ur},$e,b.createElement("div",{tabIndex:0,ref:Zn,style:ft,"aria-hidden":"true","data-sentinel":"start"}),Zt,b.createElement("div",{tabIndex:0,ref:yr,style:ft,"aria-hidden":"true","data-sentinel":"end"})))}var Ot=b.forwardRef(jt),yt=Ot,Et=function(Fe){var qe=Fe.open,nt=qe===void 0?!1:qe,st=Fe.prefixCls,we=st===void 0?"rc-drawer":st,Be=Fe.placement,It=Be===void 0?"right":Be,Mt=Fe.autoFocus,kt=Mt===void 0?!0:Mt,Yt=Fe.keyboard,At=Yt===void 0?!0:Yt,vn=Fe.width,Gt=vn===void 0?378:vn,_e=Fe.mask,Bt=_e===void 0?!0:_e,Ut=Fe.maskClosable,on=Ut===void 0?!0:Ut,Le=Fe.getContainer,xt=Fe.forceRender,zt=Fe.afterOpenChange,nn=Fe.destroyOnClose,Sn=Fe.onMouseEnter,zn=Fe.onMouseOver,rr=Fe.onMouseLeave,pr=Fe.onClick,kn=Fe.onKeyDown,dr=Fe.onKeyUp,Ye=Fe.panelRef,Qt=b.useState(!1),yn=(0,xe.Z)(Qt,2),xn=yn[0],qt=yn[1],En=b.useState(!1),Fn=(0,xe.Z)(En,2),Tn=Fn[0],_t=Fn[1];(0,Ee.Z)(function(){_t(!0)},[]);var Cn=Tn?nt:!1,Bn=b.useRef(),Ln=b.useRef();(0,Ee.Z)(function(){Cn&&(Ln.current=document.activeElement)},[Cn]);var Zn=function(un){var sn;if(qt(un),zt==null||zt(un),!un&&Ln.current&&!((sn=Bn.current)!==null&&sn!==void 0&&sn.contains(Ln.current))){var We;(We=Ln.current)===null||We===void 0||We.focus({preventScroll:!0})}},yr=b.useMemo(function(){return{panel:Ye}},[Ye]);if(!xt&&!xn&&!Cn&&nn)return null;var ur={onMouseEnter:Sn,onMouseOver:zn,onMouseLeave:rr,onClick:pr,onKeyDown:kn,onKeyUp:dr},Jt=(0,rt.Z)((0,rt.Z)({},Fe),{},{open:Cn,prefixCls:we,placement:It,autoFocus:kt,keyboard:At,width:Gt,mask:Bt,maskClosable:on,inline:Le===!1,afterOpenChange:Zn,ref:Bn},ur);return b.createElement(Ae.Provider,{value:yr},b.createElement(ge.Z,{open:Cn||xt||xn,autoDestroy:!1,getContainer:Le,autoLock:Bt&&(Cn||xn)},b.createElement(yt,Jt)))},pe=Et,Je=pe,Xe=z(62487),ue=z(75030),Nt=z(86641),et=z(55743),wt=z(48755),ln=z(91190),ke=z(78776),he=z(458),Pt=Re=>{var Fe,qe;const{prefixCls:nt,title:st,footer:we,extra:Be,loading:It,onClose:Mt,headerStyle:kt,bodyStyle:Yt,footerStyle:At,children:vn,classNames:Gt,styles:_e}=Re,Bt=(0,wt.dj)("drawer"),Ut=b.useCallback(nn=>b.createElement("button",{type:"button",onClick:Mt,"aria-label":"Close",className:`${nt}-close`},nn),[Mt]),[on,Le]=(0,ke.Z)((0,ke.w)(Re),(0,ke.w)(Bt),{closable:!0,closeIconRender:Ut}),xt=b.useMemo(()=>{var nn,Sn;return!st&&!on?null:b.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(nn=Bt.styles)===null||nn===void 0?void 0:nn.header),kt),_e==null?void 0:_e.header),className:fe()(`${nt}-header`,{[`${nt}-header-close-only`]:on&&!st&&!Be},(Sn=Bt.classNames)===null||Sn===void 0?void 0:Sn.header,Gt==null?void 0:Gt.header)},b.createElement("div",{className:`${nt}-header-title`},Le,st&&b.createElement("div",{className:`${nt}-title`},st)),Be&&b.createElement("div",{className:`${nt}-extra`},Be))},[on,Le,Be,kt,nt,st]),zt=b.useMemo(()=>{var nn,Sn;if(!we)return null;const zn=`${nt}-footer`;return b.createElement("div",{className:fe()(zn,(nn=Bt.classNames)===null||nn===void 0?void 0:nn.footer,Gt==null?void 0:Gt.footer),style:Object.assign(Object.assign(Object.assign({},(Sn=Bt.styles)===null||Sn===void 0?void 0:Sn.footer),At),_e==null?void 0:_e.footer)},we)},[we,At,nt]);return b.createElement(b.Fragment,null,xt,b.createElement("div",{className:fe()(`${nt}-body`,Gt==null?void 0:Gt.body,(Fe=Bt.classNames)===null||Fe===void 0?void 0:Fe.body),style:Object.assign(Object.assign(Object.assign({},(qe=Bt.styles)===null||qe===void 0?void 0:qe.body),Yt),_e==null?void 0:_e.body)},It?b.createElement(he.Z,{active:!0,title:!1,paragraph:{rows:5},className:`${nt}-body-skeleton`}):vn),zt)},Kt=z(36237),Ce=z(63356),ot=z(16931),lt=z(51636);const Wt=Re=>{const Fe="100%";return{left:`translateX(-${Fe})`,right:`translateX(${Fe})`,top:`translateY(-${Fe})`,bottom:`translateY(${Fe})`}[Re]},ct=(Re,Fe)=>({"&-enter, &-appear":Object.assign(Object.assign({},Re),{"&-active":Fe}),"&-leave":Object.assign(Object.assign({},Fe),{"&-active":Re})}),$t=(Re,Fe)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${Fe}`}}},ct({opacity:Re},{opacity:1})),vt=(Re,Fe)=>[$t(.7,Fe),ct({transform:Wt(Re)},{transform:"none"})];var Tt=Re=>{const{componentCls:Fe,motionDurationSlow:qe}=Re;return{[Fe]:{[`${Fe}-mask-motion`]:$t(0,qe),[`${Fe}-panel-motion`]:["left","right","top","bottom"].reduce((nt,st)=>Object.assign(Object.assign({},nt),{[`&-${st}`]:vt(st,qe)}),{})}}};const ie=Re=>{const{borderRadiusSM:Fe,componentCls:qe,zIndexPopup:nt,colorBgMask:st,colorBgElevated:we,motionDurationSlow:Be,motionDurationMid:It,paddingXS:Mt,padding:kt,paddingLG:Yt,fontSizeLG:At,lineHeightLG:vn,lineWidth:Gt,lineType:_e,colorSplit:Bt,marginXS:Ut,colorIcon:on,colorIconHover:Le,colorBgTextHover:xt,colorBgTextActive:zt,colorText:nn,fontWeightStrong:Sn,footerPaddingBlock:zn,footerPaddingInline:rr,calc:pr}=Re,kn=`${qe}-content-wrapper`;return{[qe]:{position:"fixed",inset:0,zIndex:nt,pointerEvents:"none",color:nn,"&-pure":{position:"relative",background:we,display:"flex",flexDirection:"column",[`&${qe}-left`]:{boxShadow:Re.boxShadowDrawerLeft},[`&${qe}-right`]:{boxShadow:Re.boxShadowDrawerRight},[`&${qe}-top`]:{boxShadow:Re.boxShadowDrawerUp},[`&${qe}-bottom`]:{boxShadow:Re.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${qe}-mask`]:{position:"absolute",inset:0,zIndex:nt,background:st,pointerEvents:"auto"},[kn]:{position:"absolute",zIndex:nt,maxWidth:"100vw",transition:`all ${Be}`,"&-hidden":{display:"none"}},[`&-left > ${kn}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:Re.boxShadowDrawerLeft},[`&-right > ${kn}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:Re.boxShadowDrawerRight},[`&-top > ${kn}`]:{top:0,insetInline:0,boxShadow:Re.boxShadowDrawerUp},[`&-bottom > ${kn}`]:{bottom:0,insetInline:0,boxShadow:Re.boxShadowDrawerDown},[`${qe}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:we,pointerEvents:"auto"},[`${qe}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${(0,Kt.unit)(kt)} ${(0,Kt.unit)(Yt)}`,fontSize:At,lineHeight:vn,borderBottom:`${(0,Kt.unit)(Gt)} ${_e} ${Bt}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${qe}-extra`]:{flex:"none"},[`${qe}-close`]:Object.assign({display:"inline-flex",width:pr(At).add(Mt).equal(),height:pr(At).add(Mt).equal(),borderRadius:Fe,justifyContent:"center",alignItems:"center",marginInlineEnd:Ut,color:on,fontWeight:Sn,fontSize:At,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${It}`,textRendering:"auto","&:hover":{color:Le,backgroundColor:xt,textDecoration:"none"},"&:active":{backgroundColor:zt}},(0,Ce.Qy)(Re)),[`${qe}-title`]:{flex:1,margin:0,fontWeight:Re.fontWeightStrong,fontSize:At,lineHeight:vn},[`${qe}-body`]:{flex:1,minWidth:0,minHeight:0,padding:Yt,overflow:"auto",[`${qe}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${qe}-footer`]:{flexShrink:0,padding:`${(0,Kt.unit)(zn)} ${(0,Kt.unit)(rr)}`,borderTop:`${(0,Kt.unit)(Gt)} ${_e} ${Bt}`},"&-rtl":{direction:"rtl"}}}},ne=Re=>({zIndexPopup:Re.zIndexPopupBase,footerPaddingBlock:Re.paddingXS,footerPaddingInline:Re.padding});var te=(0,ot.I$)("Drawer",Re=>{const Fe=(0,lt.mergeToken)(Re,{});return[ie(Fe),Tt(Fe)]},ne),oe=function(Re,Fe){var qe={};for(var nt in Re)Object.prototype.hasOwnProperty.call(Re,nt)&&Fe.indexOf(nt)<0&&(qe[nt]=Re[nt]);if(Re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var st=0,nt=Object.getOwnPropertySymbols(Re);st<nt.length;st++)Fe.indexOf(nt[st])<0&&Object.prototype.propertyIsEnumerable.call(Re,nt[st])&&(qe[nt[st]]=Re[nt[st]]);return qe};const se=null,re={distance:180},le=Re=>{var Fe;const{rootClassName:qe,width:nt,height:st,size:we="default",mask:Be=!0,push:It=re,open:Mt,afterOpenChange:kt,onClose:Yt,prefixCls:At,getContainer:vn,style:Gt,className:_e,visible:Bt,afterVisibleChange:Ut,maskStyle:on,drawerStyle:Le,contentWrapperStyle:xt}=Re,zt=oe(Re,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:nn,getPrefixCls:Sn,direction:zn,className:rr,style:pr,classNames:kn,styles:dr}=(0,wt.dj)("drawer"),Ye=Sn("drawer",At),[Qt,yn,xn]=te(Ye),qt=vn===void 0&&nn?()=>nn(document.body):vn,En=fe()({"no-mask":!Be,[`${Ye}-rtl`]:zn==="rtl"},qe,yn,xn),Fn=b.useMemo(()=>nt!=null?nt:we==="large"?736:378,[nt,we]),Tn=b.useMemo(()=>st!=null?st:we==="large"?736:378,[st,we]),_t={motionName:(0,Nt.m)(Ye,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},Cn=Jt=>({motionName:(0,Nt.m)(Ye,`panel-motion-${Jt}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),Bn=(0,ln.H)(),[Ln,Zn]=(0,ue.Cn)("Drawer",zt.zIndex),{classNames:yr={},styles:ur={}}=zt;return Qt(b.createElement(Xe.Z,{form:!0,space:!0},b.createElement(et.Z.Provider,{value:Zn},b.createElement(Je,Object.assign({prefixCls:Ye,onClose:Yt,maskMotion:_t,motion:Cn},zt,{classNames:{mask:fe()(yr.mask,kn.mask),content:fe()(yr.content,kn.content),wrapper:fe()(yr.wrapper,kn.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},ur.mask),on),dr.mask),content:Object.assign(Object.assign(Object.assign({},ur.content),Le),dr.content),wrapper:Object.assign(Object.assign(Object.assign({},ur.wrapper),xt),dr.wrapper)},open:Mt!=null?Mt:Bt,mask:Be,push:It,width:Fn,height:Tn,style:Object.assign(Object.assign({},pr),Gt),className:fe()(rr,_e),rootClassName:En,getContainer:qt,afterOpenChange:kt!=null?kt:Ut,panelRef:Bn,zIndex:Ln}),b.createElement(Pt,Object.assign({prefixCls:Ye},zt,{onClose:Yt}))))))},me=Re=>{const{prefixCls:Fe,style:qe,className:nt,placement:st="right"}=Re,we=oe(Re,["prefixCls","style","className","placement"]),{getPrefixCls:Be}=b.useContext(wt.E_),It=Be("drawer",Fe),[Mt,kt,Yt]=te(It),At=fe()(It,`${It}-pure`,`${It}-${st}`,kt,Yt,nt);return Mt(b.createElement("div",{className:At,style:qe},b.createElement(Pt,Object.assign({prefixCls:It},we))))};le._InternalPanelDoNotUseOrYouWillBeFired=me;var Dt=le},19563:function(Kn,cn,z){"use strict";z.d(cn,{Z:function(){return Kt}});var b=z(59301),Pe=z(33853),fe=z(38819),rt=z(92310),xe=z.n(rt),ge=z(96478),Ee=z(6089),Qe=z(18929),Ae=z(2738),de=z(75030),ve=Ce=>typeof Ce!="object"&&typeof Ce!="function"||Ce===null,Lt=z(52838),at=z(45915),Ve=z(22703),Ne=z(32383),Ze=z(55743),pt=z(48755),mt=z(83397),Xt=z(93041),He=z(78857),Ke=z(57700),ut=z(36237),ft=z(63356),jt=z(46e3),Ot=z(93873),yt=z(34925),Et=z(37645),pe=z(36305),Je=z(16931),Xe=z(51636),Nt=Ce=>{const{componentCls:ot,menuCls:lt,colorError:Wt,colorTextLightSolid:ct}=Ce,$t=`${lt}-item`;return{[`${ot}, ${ot}-menu-submenu`]:{[`${lt} ${$t}`]:{[`&${$t}-danger:not(${$t}-disabled)`]:{color:Wt,"&:hover":{color:ct,backgroundColor:Wt}}}}}};const et=Ce=>{const{componentCls:ot,menuCls:lt,zIndexPopup:Wt,dropdownArrowDistance:ct,sizePopupArrow:$t,antCls:vt,iconCls:gn,motionDurationMid:Tt,paddingBlock:ie,fontSize:ne,dropdownEdgeChildPadding:te,colorTextDisabled:oe,fontSizeIcon:se,controlPaddingHorizontal:re,colorBgElevated:le}=Ce;return[{[ot]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:Wt,display:"block","&::before":{position:"absolute",insetBlock:Ce.calc($t).div(2).sub(ct).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${vt}-btn`]:{[`& > ${gn}-down, & > ${vt}-btn-icon > ${gn}-down`]:{fontSize:se}},[`${ot}-wrap`]:{position:"relative",[`${vt}-btn > ${gn}-down`]:{fontSize:se},[`${gn}-down::before`]:{transition:`transform ${Tt}`}},[`${ot}-wrap-open`]:{[`${gn}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${vt}-slide-down-enter${vt}-slide-down-enter-active${ot}-placement-bottomLeft,
|
|
|
&${vt}-slide-down-appear${vt}-slide-down-appear-active${ot}-placement-bottomLeft,
|
|
|
&${vt}-slide-down-enter${vt}-slide-down-enter-active${ot}-placement-bottom,
|
|
|
&${vt}-slide-down-appear${vt}-slide-down-appear-active${ot}-placement-bottom,
|
|
|
&${vt}-slide-down-enter${vt}-slide-down-enter-active${ot}-placement-bottomRight,
|
|
|
&${vt}-slide-down-appear${vt}-slide-down-appear-active${ot}-placement-bottomRight`]:{animationName:jt.fJ},[`&${vt}-slide-up-enter${vt}-slide-up-enter-active${ot}-placement-topLeft,
|
|
|
&${vt}-slide-up-appear${vt}-slide-up-appear-active${ot}-placement-topLeft,
|
|
|
&${vt}-slide-up-enter${vt}-slide-up-enter-active${ot}-placement-top,
|
|
|
&${vt}-slide-up-appear${vt}-slide-up-appear-active${ot}-placement-top,
|
|
|
&${vt}-slide-up-enter${vt}-slide-up-enter-active${ot}-placement-topRight,
|
|
|
&${vt}-slide-up-appear${vt}-slide-up-appear-active${ot}-placement-topRight`]:{animationName:jt.Qt},[`&${vt}-slide-down-leave${vt}-slide-down-leave-active${ot}-placement-bottomLeft,
|
|
|
&${vt}-slide-down-leave${vt}-slide-down-leave-active${ot}-placement-bottom,
|
|
|
&${vt}-slide-down-leave${vt}-slide-down-leave-active${ot}-placement-bottomRight`]:{animationName:jt.Uw},[`&${vt}-slide-up-leave${vt}-slide-up-leave-active${ot}-placement-topLeft,
|
|
|
&${vt}-slide-up-leave${vt}-slide-up-leave-active${ot}-placement-top,
|
|
|
&${vt}-slide-up-leave${vt}-slide-up-leave-active${ot}-placement-topRight`]:{animationName:jt.ly}}},(0,Et.ZP)(Ce,le,{arrowPlacement:{top:!0,bottom:!0}}),{[`${ot} ${lt}`]:{position:"relative",margin:0},[`${lt}-submenu-popup`]:{position:"absolute",zIndex:Wt,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${ot}, ${ot}-menu-submenu`]:Object.assign(Object.assign({},(0,ft.Wf)(Ce)),{[lt]:Object.assign(Object.assign({padding:te,listStyleType:"none",backgroundColor:le,backgroundClip:"padding-box",borderRadius:Ce.borderRadiusLG,outline:"none",boxShadow:Ce.boxShadowSecondary},(0,ft.Qy)(Ce)),{"&:empty":{padding:0,boxShadow:"none"},[`${lt}-item-group-title`]:{padding:`${(0,ut.unit)(ie)} ${(0,ut.unit)(re)}`,color:Ce.colorTextDescription,transition:`all ${Tt}`},[`${lt}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${lt}-item-icon`]:{minWidth:ne,marginInlineEnd:Ce.marginXS,fontSize:Ce.fontSizeSM},[`${lt}-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:'""'}},[`${lt}-item-extra`]:{paddingInlineStart:Ce.padding,marginInlineStart:"auto",fontSize:Ce.fontSizeSM,color:Ce.colorTextDescription}},[`${lt}-item, ${lt}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${(0,ut.unit)(ie)} ${(0,ut.unit)(re)}`,color:Ce.colorText,fontWeight:"normal",fontSize:ne,lineHeight:Ce.lineHeight,cursor:"pointer",transition:`all ${Tt}`,borderRadius:Ce.borderRadiusSM,"&:hover, &-active":{backgroundColor:Ce.controlItemBgHover}},(0,ft.Qy)(Ce)),{"&-selected":{color:Ce.colorPrimary,backgroundColor:Ce.controlItemBgActive,"&:hover, &-active":{backgroundColor:Ce.controlItemBgActiveHover}},"&-disabled":{color:oe,cursor:"not-allowed","&:hover":{color:oe,backgroundColor:le,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${(0,ut.unit)(Ce.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:Ce.colorSplit},[`${ot}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Ce.paddingXS,[`${ot}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Ce.colorTextDescription,fontSize:se,fontStyle:"normal"}}}),[`${lt}-item-group-list`]:{margin:`0 ${(0,ut.unit)(Ce.marginXS)}`,padding:0,listStyle:"none"},[`${lt}-submenu-title`]:{paddingInlineEnd:Ce.calc(re).add(Ce.fontSizeSM).equal()},[`${lt}-submenu-vertical`]:{position:"relative"},[`${lt}-submenu${lt}-submenu-disabled ${ot}-menu-submenu-title`]:{[`&, ${ot}-menu-submenu-arrow-icon`]:{color:oe,backgroundColor:le,cursor:"not-allowed"}},[`${lt}-submenu-selected ${ot}-menu-submenu-title`]:{color:Ce.colorPrimary}})})},[(0,jt.oN)(Ce,"slide-up"),(0,jt.oN)(Ce,"slide-down"),(0,Ot.Fm)(Ce,"move-up"),(0,Ot.Fm)(Ce,"move-down"),(0,yt._y)(Ce,"zoom-big")]]},wt=Ce=>Object.assign(Object.assign({zIndexPopup:Ce.zIndexPopupBase+50,paddingBlock:(Ce.controlHeight-Ce.fontSize*Ce.lineHeight)/2},(0,Et.wZ)({contentRadius:Ce.borderRadiusLG,limitVerticalRadius:!0})),(0,pe.w)(Ce));var ln=(0,Je.I$)("Dropdown",Ce=>{const{marginXXS:ot,sizePopupArrow:lt,paddingXXS:Wt,componentCls:ct}=Ce,$t=(0,Xe.mergeToken)(Ce,{menuCls:`${ct}-menu`,dropdownArrowDistance:Ce.calc(lt).div(2).add(ot).equal(),dropdownEdgeChildPadding:Wt});return[et($t),Nt($t)]},wt,{resetStyle:!1});const ke=null,he=Ce=>{var ot;const{menu:lt,arrow:Wt,prefixCls:ct,children:$t,trigger:vt,disabled:gn,dropdownRender:Tt,getPopupContainer:ie,overlayClassName:ne,rootClassName:te,overlayStyle:oe,open:se,onOpenChange:re,visible:le,onVisibleChange:me,mouseEnterDelay:Dt=.15,mouseLeaveDelay:Re=.1,autoAdjustOverflow:Fe=!0,placement:qe="",overlay:nt,transitionName:st}=Ce,{getPopupContainer:we,getPrefixCls:Be,direction:It,dropdown:Mt}=b.useContext(pt.E_),kt=(0,Ne.ln)("Dropdown"),Yt=b.useMemo(()=>{const qt=Be();return st!==void 0?st:qe.includes("top")?`${qt}-slide-down`:`${qt}-slide-up`},[Be,qe,st]),At=b.useMemo(()=>qe?qe.includes("Center")?qe.slice(0,qe.indexOf("Center")):qe:It==="rtl"?"bottomRight":"bottomLeft",[qe,It]),vn=Be("dropdown",ct),Gt=(0,mt.Z)(vn),[_e,Bt,Ut]=ln(vn,Gt),[,on]=(0,Ke.ZP)(),Le=b.Children.only(ve($t)?b.createElement("span",null,$t):$t),xt=(0,Ve.Tm)(Le,{className:xe()(`${vn}-trigger`,{[`${vn}-rtl`]:It==="rtl"},Le.props.className),disabled:(ot=Le.props.disabled)!==null&&ot!==void 0?ot:gn}),zt=gn?[]:vt,nn=!!(zt!=null&&zt.includes("contextMenu")),[Sn,zn]=(0,Qe.Z)(!1,{value:se!=null?se:le}),rr=(0,Ee.Z)(qt=>{re==null||re(qt,{source:"trigger"}),me==null||me(qt),zn(qt)}),pr=xe()(ne,te,Bt,Ut,Gt,Mt==null?void 0:Mt.className,{[`${vn}-rtl`]:It==="rtl"}),kn=(0,Lt.Z)({arrowPointAtCenter:typeof Wt=="object"&&Wt.pointAtCenter,autoAdjustOverflow:Fe,offset:on.marginXXS,arrowWidth:Wt?on.sizePopupArrow:0,borderRadius:on.borderRadius}),dr=b.useCallback(()=>{lt!=null&<.selectable&&(lt!=null&<.multiple)||(re==null||re(!1,{source:"menu"}),zn(!1))},[lt==null?void 0:lt.selectable,lt==null?void 0:lt.multiple]),Ye=()=>{let qt;return lt!=null&<.items?qt=b.createElement(Xt.default,Object.assign({},lt)):typeof nt=="function"?qt=nt():qt=nt,Tt&&(qt=Tt(qt)),qt=b.Children.only(typeof qt=="string"?b.createElement("span",null,qt):qt),b.createElement(He.J,{prefixCls:`${vn}-menu`,rootClassName:xe()(Ut,Gt),expandIcon:b.createElement("span",{className:`${vn}-menu-submenu-arrow`},It==="rtl"?b.createElement(Pe.Z,{className:`${vn}-menu-submenu-arrow-icon`}):b.createElement(fe.Z,{className:`${vn}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:dr,validator:En=>{let{mode:Fn}=En}},qt)},[Qt,yn]=(0,de.Cn)("Dropdown",oe==null?void 0:oe.zIndex);let xn=b.createElement(ge.Z,Object.assign({alignPoint:nn},(0,Ae.Z)(Ce,["rootClassName"]),{mouseEnterDelay:Dt,mouseLeaveDelay:Re,visible:Sn,builtinPlacements:kn,arrow:!!Wt,overlayClassName:pr,prefixCls:vn,getPopupContainer:ie||we,transitionName:Yt,trigger:zt,overlay:Ye,placement:At,onVisibleChange:rr,overlayStyle:Object.assign(Object.assign(Object.assign({},Mt==null?void 0:Mt.style),oe),{zIndex:Qt})}),xt);return Qt&&(xn=b.createElement(Ze.Z.Provider,{value:yn},xn)),_e(xn)},Ct=(0,at.Z)(he,"align",void 0,"dropdown",Ce=>Ce),Pt=Ce=>b.createElement(Ct,Object.assign({},Ce),b.createElement("span",null));he._InternalPanelDoNotUseOrYouWillBeFired=Pt;var Kt=he},75727:function(Kn,cn,z){"use strict";z.d(cn,{Z:function(){return at}});var b=z(19563),Pe=z(59301),fe=z(18785),rt=z(92310),xe=z.n(rt),ge=z(7939),Ee=z(48755),Qe=z(44104),Ae=z(70045),de=function(Ve,Ne){var Ze={};for(var pt in Ve)Object.prototype.hasOwnProperty.call(Ve,pt)&&Ne.indexOf(pt)<0&&(Ze[pt]=Ve[pt]);if(Ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var mt=0,pt=Object.getOwnPropertySymbols(Ve);mt<pt.length;mt++)Ne.indexOf(pt[mt])<0&&Object.prototype.propertyIsEnumerable.call(Ve,pt[mt])&&(Ze[pt[mt]]=Ve[pt[mt]]);return Ze};const tt=Ve=>{const{getPopupContainer:Ne,getPrefixCls:Ze,direction:pt}=Pe.useContext(Ee.E_),{prefixCls:mt,type:Xt="default",danger:He,disabled:Ke,loading:ut,onClick:ft,htmlType:jt,children:Ot,className:yt,menu:Et,arrow:pe,autoFocus:Je,overlay:Xe,trigger:ue,align:Nt,open:et,onOpenChange:wt,placement:ln,getPopupContainer:ke,href:he,icon:Ct=Pe.createElement(fe.Z,null),title:Pt,buttonsRender:Kt=Dt=>Dt,mouseEnterDelay:Ce,mouseLeaveDelay:ot,overlayClassName:lt,overlayStyle:Wt,destroyPopupOnHide:ct,dropdownRender:$t}=Ve,vt=de(Ve,["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"]),gn=Ze("dropdown",mt),Tt=`${gn}-button`,ie={menu:Et,arrow:pe,autoFocus:Je,align:Nt,disabled:Ke,trigger:Ke?[]:ue,onOpenChange:wt,getPopupContainer:ke||Ne,mouseEnterDelay:Ce,mouseLeaveDelay:ot,overlayClassName:lt,overlayStyle:Wt,destroyPopupOnHide:ct,dropdownRender:$t},{compactSize:ne,compactItemClassnames:te}=(0,Ae.ri)(gn,pt),oe=xe()(Tt,te,yt);"overlay"in Ve&&(ie.overlay=Xe),"open"in Ve&&(ie.open=et),"placement"in Ve?ie.placement=ln:ie.placement=pt==="rtl"?"bottomLeft":"bottomRight";const se=Pe.createElement(ge.ZP,{type:Xt,danger:He,disabled:Ke,loading:ut,onClick:ft,htmlType:jt,href:he,title:Pt},Ot),re=Pe.createElement(ge.ZP,{type:Xt,danger:He,icon:Ct}),[le,me]=Kt([se,re]);return Pe.createElement(Qe.Z.Compact,Object.assign({className:oe,size:ne,block:!0},vt),le,Pe.createElement(b.Z,Object.assign({},ie),me))};tt.__ANT_BUTTON=!0;var ve=tt;const Lt=b.Z;Lt.Button=ve;var at=Lt},584:function(Kn,cn,z){"use strict";z.d(cn,{Z:function(){return Xt}});var b=z(59301),Pe=z(92310),fe=z.n(Pe),rt=z(9017),xe=z(17835),ge=z(57700),Qe=()=>{const[,He]=(0,ge.ZP)(),[Ke]=(0,rt.Z)("Empty"),ft=new xe.FastColor(He.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return b.createElement("svg",{style:ft,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},b.createElement("title",null,(Ke==null?void 0:Ke.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"}))))},de=()=>{const[,He]=(0,ge.ZP)(),[Ke]=(0,rt.Z)("Empty"),{colorFill:ut,colorFillTertiary:ft,colorFillQuaternary:jt,colorBgContainer:Ot}=He,{borderColor:yt,shadowColor:Et,contentColor:pe}=(0,b.useMemo)(()=>({borderColor:new xe.FastColor(ut).onBackground(Ot).toHexString(),shadowColor:new xe.FastColor(ft).onBackground(Ot).toHexString(),contentColor:new xe.FastColor(jt).onBackground(Ot).toHexString()}),[ut,ft,jt,Ot]);return b.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},b.createElement("title",null,(Ke==null?void 0:Ke.description)||"Empty"),b.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},b.createElement("ellipse",{fill:Et,cx:"32",cy:"33",rx:"32",ry:"7"}),b.createElement("g",{fillRule:"nonzero",stroke:yt},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:pe}))))},tt=z(16931),ve=z(51636);const Lt=He=>{const{componentCls:Ke,margin:ut,marginXS:ft,marginXL:jt,fontSize:Ot,lineHeight:yt}=He;return{[Ke]:{marginInline:ft,fontSize:Ot,lineHeight:yt,textAlign:"center",[`${Ke}-image`]:{height:He.emptyImgHeight,marginBottom:ft,opacity:He.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${Ke}-description`]:{color:He.colorTextDescription},[`${Ke}-footer`]:{marginTop:ut},"&-normal":{marginBlock:jt,color:He.colorTextDescription,[`${Ke}-description`]:{color:He.colorTextDescription},[`${Ke}-image`]:{height:He.emptyImgHeightMD}},"&-small":{marginBlock:ft,color:He.colorTextDescription,[`${Ke}-image`]:{height:He.emptyImgHeightSM}}}}};var at=(0,tt.I$)("Empty",He=>{const{componentCls:Ke,controlHeightLG:ut,calc:ft}=He,jt=(0,ve.mergeToken)(He,{emptyImgCls:`${Ke}-img`,emptyImgHeight:ft(ut).mul(2.5).equal(),emptyImgHeightMD:ut,emptyImgHeightSM:ft(ut).mul(.875).equal()});return[Lt(jt)]}),Ve=z(48755),Ne=function(He,Ke){var ut={};for(var ft in He)Object.prototype.hasOwnProperty.call(He,ft)&&Ke.indexOf(ft)<0&&(ut[ft]=He[ft]);if(He!=null&&typeof Object.getOwnPropertySymbols=="function")for(var jt=0,ft=Object.getOwnPropertySymbols(He);jt<ft.length;jt++)Ke.indexOf(ft[jt])<0&&Object.prototype.propertyIsEnumerable.call(He,ft[jt])&&(ut[ft[jt]]=He[ft[jt]]);return ut};const Ze=b.createElement(Qe,null),pt=b.createElement(de,null),mt=He=>{const{className:Ke,rootClassName:ut,prefixCls:ft,image:jt=Ze,description:Ot,children:yt,imageStyle:Et,style:pe,classNames:Je,styles:Xe}=He,ue=Ne(He,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:Nt,direction:et,className:wt,style:ln,classNames:ke,styles:he}=(0,Ve.dj)("empty"),Ct=Nt("empty",ft),[Pt,Kt,Ce]=at(Ct),[ot]=(0,rt.Z)("Empty"),lt=typeof Ot!="undefined"?Ot:ot==null?void 0:ot.description,Wt=typeof lt=="string"?lt:"empty";let ct=null;return typeof jt=="string"?ct=b.createElement("img",{alt:Wt,src:jt}):ct=jt,Pt(b.createElement("div",Object.assign({className:fe()(Kt,Ce,Ct,wt,{[`${Ct}-normal`]:jt===pt,[`${Ct}-rtl`]:et==="rtl"},Ke,ut,ke.root,Je==null?void 0:Je.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},he.root),ln),Xe==null?void 0:Xe.root),pe)},ue),b.createElement("div",{className:fe()(`${Ct}-image`,ke.image,Je==null?void 0:Je.image),style:Object.assign(Object.assign(Object.assign({},Et),he.image),Xe==null?void 0:Xe.image)},ct),lt&&b.createElement("div",{className:fe()(`${Ct}-description`,ke.description,Je==null?void 0:Je.description),style:Object.assign(Object.assign({},he.description),Xe==null?void 0:Xe.description)},lt),yt&&b.createElement("div",{className:fe()(`${Ct}-footer`,ke.footer,Je==null?void 0:Je.footer),style:Object.assign(Object.assign({},he.footer),Xe==null?void 0:Xe.footer)},yt)))};mt.PRESENTED_IMAGE_DEFAULT=Ze,mt.PRESENTED_IMAGE_SIMPLE=pt;var Xt=mt},28284:function(Kn,cn,z){"use strict";z.d(cn,{default:function(){return dt}});var b=z(56553),Pe=z(94480),fe=z(59301),rt=z(92310),xe=z.n(rt),ge=z(77900),Ee=z(86641),Qe=z(83397);function Ae(ze){const[gt,$e]=fe.useState(ze);return fe.useEffect(()=>{const St=setTimeout(()=>{$e(ze)},ze.length?0:10);return()=>{clearTimeout(St)}},[ze]),gt}var de=z(36237),tt=z(63356),ve=z(34925),Lt=z(34961),at=z(51636),Ve=z(16931),Ze=ze=>{const{componentCls:gt}=ze,$e=`${gt}-show-help`,St=`${gt}-show-help-item`;return{[$e]:{transition:`opacity ${ze.motionDurationFast} ${ze.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[St]:{overflow:"hidden",transition:`height ${ze.motionDurationFast} ${ze.motionEaseInOut},
|
|
|
opacity ${ze.motionDurationFast} ${ze.motionEaseInOut},
|
|
|
transform ${ze.motionDurationFast} ${ze.motionEaseInOut} !important`,[`&${St}-appear, &${St}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${St}-leave-active`]:{transform:"translateY(-5px)"}}}}};const pt=ze=>({legend:{display:"block",width:"100%",marginBottom:ze.marginLG,padding:0,color:ze.colorTextDescription,fontSize:ze.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${(0,de.unit)(ze.lineWidth)} ${ze.lineType} ${ze.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,de.unit)(ze.controlOutlineWidth)} ${ze.controlOutline}`},output:{display:"block",paddingTop:15,color:ze.colorText,fontSize:ze.fontSize,lineHeight:ze.lineHeight}}),mt=(ze,gt)=>{const{formItemCls:$e}=ze;return{[$e]:{[`${$e}-label > label`]:{height:gt},[`${$e}-control-input`]:{minHeight:gt}}}},Xt=ze=>{const{componentCls:gt}=ze;return{[ze.componentCls]:Object.assign(Object.assign(Object.assign({},(0,tt.Wf)(ze)),pt(ze)),{[`${gt}-text`]:{display:"inline-block",paddingInlineEnd:ze.paddingSM},"&-small":Object.assign({},mt(ze,ze.controlHeightSM)),"&-large":Object.assign({},mt(ze,ze.controlHeightLG))})}},He=ze=>{const{formItemCls:gt,iconCls:$e,rootPrefixCls:St,antCls:Oe,labelRequiredMarkColor:Ft,labelColor:Zt,labelFontSize:De,labelHeight:Te,labelColonMarginInlineStart:Me,labelColonMarginInlineEnd:je,itemMarginBottom:it}=ze;return{[gt]:Object.assign(Object.assign({},(0,tt.Wf)(ze)),{marginBottom:it,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
|
&-hidden${Oe}-row`]:{display:"none"},"&-has-warning":{[`${gt}-split`]:{color:ze.colorError}},"&-has-error":{[`${gt}-split`]:{color:ze.colorWarning}},[`${gt}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:ze.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:Te,color:Zt,fontSize:De,[`> ${$e}`]:{fontSize:ze.fontSize,verticalAlign:"top"},[`&${gt}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:ze.marginXXS,color:Ft,fontSize:ze.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${gt}-required-mark-hidden, &${gt}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${gt}-optional`]:{display:"inline-block",marginInlineStart:ze.marginXXS,color:ze.colorTextDescription,[`&${gt}-required-mark-hidden`]:{display:"none"}},[`${gt}-tooltip`]:{color:ze.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:ze.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:Me,marginInlineEnd:je},[`&${gt}-no-colon::after`]:{content:'"\\a0"'}}},[`${gt}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${St}-col-'"]):not([class*="' ${St}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:ze.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[gt]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:ze.colorTextDescription,fontSize:ze.fontSize,lineHeight:ze.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:ze.controlHeightSM,transition:`color ${ze.motionDurationMid} ${ze.motionEaseOut}`},"&-explain":{"&-error":{color:ze.colorError},"&-warning":{color:ze.colorWarning}}},[`&-with-help ${gt}-explain`]:{height:"auto",opacity:1},[`${gt}-feedback-icon`]:{fontSize:ze.fontSize,textAlign:"center",visibility:"visible",animationName:ve.kr,animationDuration:ze.motionDurationMid,animationTimingFunction:ze.motionEaseOutBack,pointerEvents:"none","&-success":{color:ze.colorSuccess},"&-error":{color:ze.colorError},"&-warning":{color:ze.colorWarning},"&-validating":{color:ze.colorPrimary}}})}},Ke=(ze,gt)=>{const{formItemCls:$e}=ze;return{[`${gt}-horizontal`]:{[`${$e}-label`]:{flexGrow:0},[`${$e}-control`]:{flex:"1 1 0",minWidth:0},[`${$e}-label[class$='-24'], ${$e}-label[class*='-24 ']`]:{[`& + ${$e}-control`]:{minWidth:"unset"}}}}},ut=ze=>{const{componentCls:gt,formItemCls:$e,inlineItemMarginBottom:St}=ze;return{[`${gt}-inline`]:{display:"flex",flexWrap:"wrap",[$e]:{flex:"none",marginInlineEnd:ze.margin,marginBottom:St,"&-row":{flexWrap:"nowrap"},[`> ${$e}-label,
|
|
|
> ${$e}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${$e}-label`]:{flex:"none"},[`${gt}-text`]:{display:"inline-block"},[`${$e}-has-feedback`]:{display:"inline-block"}}}}},ft=ze=>({padding:ze.verticalLabelPadding,margin:ze.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),jt=ze=>{const{componentCls:gt,formItemCls:$e,rootPrefixCls:St}=ze;return{[`${$e} ${$e}-label`]:ft(ze),[`${gt}:not(${gt}-inline)`]:{[$e]:{flexWrap:"wrap",[`${$e}-label, ${$e}-control`]:{[`&:not([class*=" ${St}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Ot=ze=>{const{componentCls:gt,formItemCls:$e,antCls:St}=ze;return{[`${gt}-vertical`]:{[`${$e}:not(${$e}-horizontal)`]:{[`${$e}-row`]:{flexDirection:"column"},[`${$e}-label > label`]:{height:"auto"},[`${$e}-control`]:{width:"100%"},[`${$e}-label,
|
|
|
${St}-col-24${$e}-label,
|
|
|
${St}-col-xl-24${$e}-label`]:ft(ze)}},[`@media (max-width: ${(0,de.unit)(ze.screenXSMax)})`]:[jt(ze),{[gt]:{[`${$e}:not(${$e}-horizontal)`]:{[`${St}-col-xs-24${$e}-label`]:ft(ze)}}}],[`@media (max-width: ${(0,de.unit)(ze.screenSMMax)})`]:{[gt]:{[`${$e}:not(${$e}-horizontal)`]:{[`${St}-col-sm-24${$e}-label`]:ft(ze)}}},[`@media (max-width: ${(0,de.unit)(ze.screenMDMax)})`]:{[gt]:{[`${$e}:not(${$e}-horizontal)`]:{[`${St}-col-md-24${$e}-label`]:ft(ze)}}},[`@media (max-width: ${(0,de.unit)(ze.screenLGMax)})`]:{[gt]:{[`${$e}:not(${$e}-horizontal)`]:{[`${St}-col-lg-24${$e}-label`]:ft(ze)}}}}},yt=ze=>{const{formItemCls:gt,antCls:$e}=ze;return{[`${gt}-vertical`]:{[`${gt}-row`]:{flexDirection:"column"},[`${gt}-label > label`]:{height:"auto"},[`${gt}-control`]:{width:"100%"}},[`${gt}-vertical ${gt}-label,
|
|
|
${$e}-col-24${gt}-label,
|
|
|
${$e}-col-xl-24${gt}-label`]:ft(ze),[`@media (max-width: ${(0,de.unit)(ze.screenXSMax)})`]:[jt(ze),{[gt]:{[`${$e}-col-xs-24${gt}-label`]:ft(ze)}}],[`@media (max-width: ${(0,de.unit)(ze.screenSMMax)})`]:{[gt]:{[`${$e}-col-sm-24${gt}-label`]:ft(ze)}},[`@media (max-width: ${(0,de.unit)(ze.screenMDMax)})`]:{[gt]:{[`${$e}-col-md-24${gt}-label`]:ft(ze)}},[`@media (max-width: ${(0,de.unit)(ze.screenLGMax)})`]:{[gt]:{[`${$e}-col-lg-24${gt}-label`]:ft(ze)}}}},Et=ze=>({labelRequiredMarkColor:ze.colorError,labelColor:ze.colorTextHeading,labelFontSize:ze.fontSize,labelHeight:ze.controlHeight,labelColonMarginInlineStart:ze.marginXXS/2,labelColonMarginInlineEnd:ze.marginXS,itemMarginBottom:ze.marginLG,verticalLabelPadding:`0 0 ${ze.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),pe=(ze,gt)=>(0,at.mergeToken)(ze,{formItemCls:`${ze.componentCls}-item`,rootPrefixCls:gt});var Je=(0,Ve.I$)("Form",(ze,gt)=>{let{rootPrefixCls:$e}=gt;const St=pe(ze,$e);return[Xt(St),He(St),Ze(St),Ke(St,St.componentCls),Ke(St,St.formItemCls),ut(St),Ot(St),yt(St),(0,Lt.Z)(St),ve.kr]},Et,{order:-1e3});const Xe=[];function ue(ze,gt,$e){let St=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof ze=="string"?ze:`${gt}-${St}`,error:ze,errorStatus:$e}}var et=ze=>{let{help:gt,helpStatus:$e,errors:St=Xe,warnings:Oe=Xe,className:Ft,fieldId:Zt,onVisibleChanged:De}=ze;const{prefixCls:Te}=fe.useContext(b.Rk),Me=`${Te}-item-explain`,je=(0,Qe.Z)(Te),[it,an,dn]=Je(Te,je),hn=fe.useMemo(()=>(0,Ee.Z)(Te),[Te]),$n=Ae(St),ar=Ae(Oe),Cr=fe.useMemo(()=>gt!=null?[ue(gt,"help",$e)]:[].concat((0,Pe.Z)($n.map((Jn,gr)=>ue(Jn,"error","error",gr))),(0,Pe.Z)(ar.map((Jn,gr)=>ue(Jn,"warning","warning",gr)))),[gt,$e,$n,ar]),qn=fe.useMemo(()=>{const Jn={};return Cr.forEach(gr=>{let{key:Ge}=gr;Jn[Ge]=(Jn[Ge]||0)+1}),Cr.map((gr,Ge)=>Object.assign(Object.assign({},gr),{key:Jn[gr.key]>1?`${gr.key}-fallback-${Ge}`:gr.key}))},[Cr]),Gn={};return Zt&&(Gn.id=`${Zt}_help`),it(fe.createElement(ge.default,{motionDeadline:hn.motionDeadline,motionName:`${Te}-show-help`,visible:!!qn.length,onVisibleChanged:De},Jn=>{const{className:gr,style:Ge}=Jn;return fe.createElement("div",Object.assign({},Gn,{className:xe()(Me,gr,dn,je,Ft,an),style:Ge}),fe.createElement(ge.CSSMotionList,Object.assign({keys:qn},(0,Ee.Z)(Te),{motionName:`${Te}-show-help-item`,component:!1}),bt=>{const{key:Vt,error:Ht,errorStatus:tn,className:An,style:Vn}=bt;return fe.createElement("div",{key:Vt,className:xe()(An,{[`${Me}-${tn}`]:tn}),style:Vn},Ht)}))}))},wt=z(22001),ln=z(48755),ke=z(2171),he=z(31756),Ct=z(23069),Pt=z(76846),Kt=z(16722);const Ce=["parentNode"],ot="form_item";function lt(ze){return ze===void 0||ze===!1?[]:Array.isArray(ze)?ze:[ze]}function Wt(ze,gt){if(!ze.length)return;const $e=ze.join("_");return gt?`${gt}_${$e}`:Ce.includes($e)?`${ot}_${$e}`:$e}function ct(ze,gt,$e,St,Oe,Ft){let Zt=St;return Ft!==void 0?Zt=Ft:$e.validating?Zt="validating":ze.length?Zt="error":gt.length?Zt="warning":($e.touched||Oe&&$e.validated)&&(Zt="success"),Zt}var $t=function(ze,gt){var $e={};for(var St in ze)Object.prototype.hasOwnProperty.call(ze,St)&>.indexOf(St)<0&&($e[St]=ze[St]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oe=0,St=Object.getOwnPropertySymbols(ze);Oe<St.length;Oe++)gt.indexOf(St[Oe])<0&&Object.prototype.propertyIsEnumerable.call(ze,St[Oe])&&($e[St[Oe]]=ze[St[Oe]]);return $e};function vt(ze){return lt(ze).join("_")}function gn(ze,gt){const $e=gt.getFieldInstance(ze),St=(0,Pt.bn)($e);if(St)return St;const Oe=Wt(lt(ze),gt.__INTERNAL__.name);if(Oe)return document.getElementById(Oe)}function Tt(ze){const[gt]=(0,wt.useForm)(),$e=fe.useRef({}),St=fe.useMemo(()=>ze!=null?ze:Object.assign(Object.assign({},gt),{__INTERNAL__:{itemRef:Oe=>Ft=>{const Zt=vt(Oe);Ft?$e.current[Zt]=Ft:delete $e.current[Zt]}},scrollToField:function(Oe){let Ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{focus:Zt}=Ft,De=$t(Ft,["focus"]),Te=gn(Oe,St);Te&&((0,Kt.Z)(Te,Object.assign({scrollMode:"if-needed",block:"nearest"},De)),Zt&&St.focusField(Oe))},focusField:Oe=>{var Ft,Zt;const De=St.getFieldInstance(Oe);typeof(De==null?void 0:De.focus)=="function"?De.focus():(Zt=(Ft=gn(Oe,St))===null||Ft===void 0?void 0:Ft.focus)===null||Zt===void 0||Zt.call(Ft)},getFieldInstance:Oe=>{const Ft=vt(Oe);return $e.current[Ft]}}),[ze,gt]);return[St]}var ie=z(98350),ne=function(ze,gt){var $e={};for(var St in ze)Object.prototype.hasOwnProperty.call(ze,St)&>.indexOf(St)<0&&($e[St]=ze[St]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oe=0,St=Object.getOwnPropertySymbols(ze);Oe<St.length;Oe++)gt.indexOf(St[Oe])<0&&Object.prototype.propertyIsEnumerable.call(ze,St[Oe])&&($e[St[Oe]]=ze[St[Oe]]);return $e};const te=(ze,gt)=>{const $e=fe.useContext(ke.Z),{getPrefixCls:St,direction:Oe,requiredMark:Ft,colon:Zt,scrollToFirstError:De,className:Te,style:Me}=(0,ln.dj)("form"),{prefixCls:je,className:it,rootClassName:an,size:dn,disabled:hn=$e,form:$n,colon:ar,labelAlign:Cr,labelWrap:qn,labelCol:Gn,wrapperCol:Jn,hideRequiredMark:gr,layout:Ge="horizontal",scrollToFirstError:bt,requiredMark:Vt,onFinishFailed:Ht,name:tn,style:An,feedbackIcons:Vn,variant:tr}=ze,Nn=ne(ze,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),or=(0,he.Z)(dn),cr=fe.useContext(ie.Z),nr=fe.useMemo(()=>Vt!==void 0?Vt:gr?!1:Ft!==void 0?Ft:!0,[gr,Vt,Ft]),hr=ar!=null?ar:Zt,lr=St("form",je),Er=(0,Qe.Z)(lr),[Ir,zr,Pr]=Je(lr,Er),Or=xe()(lr,`${lr}-${Ge}`,{[`${lr}-hide-required-mark`]:nr===!1,[`${lr}-rtl`]:Oe==="rtl",[`${lr}-${or}`]:or},Pr,Er,zr,Te,it,an),[Sr]=Tt($n),{__INTERNAL__:Tr}=Sr;Tr.name=tn;const br=fe.useMemo(()=>({name:tn,labelAlign:Cr,labelCol:Gn,labelWrap:qn,wrapperCol:Jn,vertical:Ge==="vertical",colon:hr,requiredMark:nr,itemRef:Tr.itemRef,form:Sr,feedbackIcons:Vn}),[tn,Cr,Gn,Jn,Ge,hr,nr,Sr,Vn]),wr=fe.useRef(null);fe.useImperativeHandle(gt,()=>{var er;return Object.assign(Object.assign({},Sr),{nativeElement:(er=wr.current)===null||er===void 0?void 0:er.nativeElement})});const _n=(er,Rn)=>{if(er){let bn={block:"nearest"};typeof er=="object"&&(bn=Object.assign(Object.assign({},bn),er)),Sr.scrollToField(Rn,bn)}},In=er=>{if(Ht==null||Ht(er),er.errorFields.length){const Rn=er.errorFields[0].name;if(bt!==void 0){_n(bt,Rn);return}De!==void 0&&_n(De,Rn)}};return Ir(fe.createElement(b.pg.Provider,{value:tr},fe.createElement(ke.n,{disabled:hn},fe.createElement(Ct.Z.Provider,{value:or},fe.createElement(b.RV,{validateMessages:cr},fe.createElement(b.q3.Provider,{value:br},fe.createElement(wt.default,Object.assign({id:tn},Nn,{name:tn,onFinishFailed:In,form:Sr,ref:wr,style:Object.assign(Object.assign({},Me),An),className:Or}))))))))};var se=fe.forwardRef(te),re=z(41799),le=z(8654),me=z(22703),Dt=z(32383),Re=z(11592);function Fe(ze){if(typeof ze=="function")return ze;const gt=(0,Re.Z)(ze);return gt.length<=1?gt[0]:gt}const qe=()=>{const{status:ze,errors:gt=[],warnings:$e=[]}=fe.useContext(b.aM);return{status:ze,errors:gt,warnings:$e}};qe.Context=b.aM;var nt=qe,st=z(16089);function we(ze){const[gt,$e]=fe.useState(ze),St=fe.useRef(null),Oe=fe.useRef([]),Ft=fe.useRef(!1);fe.useEffect(()=>(Ft.current=!1,()=>{Ft.current=!0,st.Z.cancel(St.current),St.current=null}),[]);function Zt(De){Ft.current||(St.current===null&&(Oe.current=[],St.current=(0,st.Z)(()=>{St.current=null,$e(Te=>{let Me=Te;return Oe.current.forEach(je=>{Me=je(Me)}),Me})})),Oe.current.push(De))}return[gt,Zt]}function Be(){const{itemRef:ze}=fe.useContext(b.q3),gt=fe.useRef({});function $e(St,Oe){const Ft=Oe&&typeof Oe=="object"&&(0,le.C4)(Oe),Zt=St.join("_");return(gt.current.name!==Zt||gt.current.originRef!==Ft)&&(gt.current.name=Zt,gt.current.originRef=Ft,gt.current.ref=(0,le.sQ)(ze(St),Ft)),gt.current.ref}return $e}var It=z(29194),Mt=z(34280),kt=z(2738),Yt=z(65970),At=z(70425),vn=z(5472);const Gt=ze=>{const{formItemCls:gt}=ze;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${gt}-control`]:{display:"flex"}}}};var _e=(0,Ve.bk)(["Form","item-item"],(ze,gt)=>{let{rootPrefixCls:$e}=gt;const St=pe(ze,$e);return[Gt(St)]}),Bt=function(ze,gt){var $e={};for(var St in ze)Object.prototype.hasOwnProperty.call(ze,St)&>.indexOf(St)<0&&($e[St]=ze[St]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oe=0,St=Object.getOwnPropertySymbols(ze);Oe<St.length;Oe++)gt.indexOf(St[Oe])<0&&Object.prototype.propertyIsEnumerable.call(ze,St[Oe])&&($e[St[Oe]]=ze[St[Oe]]);return $e};const Ut=24;var Le=ze=>{const{prefixCls:gt,status:$e,labelCol:St,wrapperCol:Oe,children:Ft,errors:Zt,warnings:De,_internalItemRender:Te,extra:Me,help:je,fieldId:it,marginBottom:an,onErrorVisibleChanged:dn,label:hn}=ze,$n=`${gt}-item`,ar=fe.useContext(b.q3),Cr=fe.useMemo(()=>{let Nn=Object.assign({},Oe||ar.wrapperCol||{});return hn===null&&!St&&!Oe&&ar.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(cr=>{const nr=cr?[cr]:[],hr=(0,At.U2)(ar.labelCol,nr),lr=typeof hr=="object"?hr:{},Er=(0,At.U2)(Nn,nr),Ir=typeof Er=="object"?Er:{};"span"in lr&&!("offset"in Ir)&&lr.span<Ut&&(Nn=(0,At.t8)(Nn,[].concat(nr,["offset"]),lr.span))}),Nn},[Oe,ar]),qn=xe()(`${$n}-control`,Cr.className),Gn=fe.useMemo(()=>{const{labelCol:Nn,wrapperCol:or}=ar;return Bt(ar,["labelCol","wrapperCol"])},[ar]),Jn=fe.useRef(null),[gr,Ge]=fe.useState(0);(0,Mt.Z)(()=>{Me&&Jn.current?Ge(Jn.current.clientHeight):Ge(0)},[Me]);const bt=fe.createElement("div",{className:`${$n}-control-input`},fe.createElement("div",{className:`${$n}-control-input-content`},Ft)),Vt=fe.useMemo(()=>({prefixCls:gt,status:$e}),[gt,$e]),Ht=an!==null||Zt.length||De.length?fe.createElement(b.Rk.Provider,{value:Vt},fe.createElement(et,{fieldId:it,errors:Zt,warnings:De,help:je,helpStatus:$e,className:`${$n}-explain-connected`,onVisibleChanged:dn})):null,tn={};it&&(tn.id=`${it}_extra`);const An=Me?fe.createElement("div",Object.assign({},tn,{className:`${$n}-extra`,ref:Jn}),Me):null,Vn=Ht||An?fe.createElement("div",{className:`${$n}-additional`,style:an?{minHeight:an+gr}:{}},Ht,An):null,tr=Te&&Te.mark==="pro_table_render"&&Te.render?Te.render(ze,{input:bt,errorList:Ht,extra:An}):fe.createElement(fe.Fragment,null,bt,Vn);return fe.createElement(b.q3.Provider,{value:Gn},fe.createElement(vn.Z,Object.assign({},Cr,{className:qn}),tr),fe.createElement(_e,{prefixCls:gt}))},xt=z(61485),zt=z(9017),nn=z(85981),Sn=z(25399),zn=function(ze,gt){var $e={};for(var St in ze)Object.prototype.hasOwnProperty.call(ze,St)&>.indexOf(St)<0&&($e[St]=ze[St]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oe=0,St=Object.getOwnPropertySymbols(ze);Oe<St.length;Oe++)gt.indexOf(St[Oe])<0&&Object.prototype.propertyIsEnumerable.call(ze,St[Oe])&&($e[St[Oe]]=ze[St[Oe]]);return $e};function rr(ze){return ze?typeof ze=="object"&&!fe.isValidElement(ze)?ze:{title:ze}:null}var kn=ze=>{let{prefixCls:gt,label:$e,htmlFor:St,labelCol:Oe,labelAlign:Ft,colon:Zt,required:De,requiredMark:Te,tooltip:Me,vertical:je}=ze;var it;const[an]=(0,zt.Z)("Form"),{labelAlign:dn,labelCol:hn,labelWrap:$n,colon:ar}=fe.useContext(b.q3);if(!$e)return null;const Cr=Oe||hn||{},qn=Ft||dn,Gn=`${gt}-item-label`,Jn=xe()(Gn,qn==="left"&&`${Gn}-left`,Cr.className,{[`${Gn}-wrap`]:!!$n});let gr=$e;const Ge=Zt===!0||ar!==!1&&Zt!==!1;Ge&&!je&&typeof $e=="string"&&$e.trim()&&(gr=$e.replace(/[:|:]\s*$/,""));const Vt=rr(Me);if(Vt){const{icon:Nn=fe.createElement(xt.Z,null)}=Vt,or=zn(Vt,["icon"]),cr=fe.createElement(Sn.Z,Object.assign({},or),fe.cloneElement(Nn,{className:`${gt}-item-tooltip`,title:"",onClick:nr=>{nr.preventDefault()},tabIndex:null}));gr=fe.createElement(fe.Fragment,null,gr,cr)}const Ht=Te==="optional",tn=typeof Te=="function",An=Te===!1;tn?gr=Te(gr,{required:!!De}):Ht&&!De&&(gr=fe.createElement(fe.Fragment,null,gr,fe.createElement("span",{className:`${gt}-item-optional`,title:""},(an==null?void 0:an.optional)||((it=nn.Z.Form)===null||it===void 0?void 0:it.optional))));let Vn;An?Vn="hidden":(Ht||tn)&&(Vn="optional");const tr=xe()({[`${gt}-item-required`]:De,[`${gt}-item-required-mark-${Vn}`]:Vn,[`${gt}-item-no-colon`]:!Ge});return fe.createElement(vn.Z,Object.assign({},Cr,{className:Jn}),fe.createElement("label",{htmlFor:St,className:tr,title:typeof $e=="string"?$e:""},gr))},dr=z(29679),Ye=z(19248),Qt=z(96512),yn=z(58617);const xn={success:dr.Z,warning:Qt.Z,error:Ye.Z,validating:yn.Z};function qt(ze){let{children:gt,errors:$e,warnings:St,hasFeedback:Oe,validateStatus:Ft,prefixCls:Zt,meta:De,noStyle:Te}=ze;const Me=`${Zt}-item`,{feedbackIcons:je}=fe.useContext(b.q3),it=ct($e,St,De,null,!!Oe,Ft),{isFormItemInput:an,status:dn,hasFeedback:hn,feedbackIcon:$n}=fe.useContext(b.aM),ar=fe.useMemo(()=>{var Cr;let qn;if(Oe){const Jn=Oe!==!0&&Oe.icons||je,gr=it&&((Cr=Jn==null?void 0:Jn({status:it,errors:$e,warnings:St}))===null||Cr===void 0?void 0:Cr[it]),Ge=it&&xn[it];qn=gr!==!1&&Ge?fe.createElement("span",{className:xe()(`${Me}-feedback-icon`,`${Me}-feedback-icon-${it}`)},gr||fe.createElement(Ge,null)):null}const Gn={status:it||"",errors:$e,warnings:St,hasFeedback:!!Oe,feedbackIcon:qn,isFormItemInput:!0};return Te&&(Gn.status=(it!=null?it:dn)||"",Gn.isFormItemInput=an,Gn.hasFeedback=!!(Oe!=null?Oe:hn),Gn.feedbackIcon=Oe!==void 0?Gn.feedbackIcon:$n),Gn},[it,Oe,Te,an,dn]);return fe.createElement(b.aM.Provider,{value:ar},gt)}var En=function(ze,gt){var $e={};for(var St in ze)Object.prototype.hasOwnProperty.call(ze,St)&>.indexOf(St)<0&&($e[St]=ze[St]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oe=0,St=Object.getOwnPropertySymbols(ze);Oe<St.length;Oe++)gt.indexOf(St[Oe])<0&&Object.prototype.propertyIsEnumerable.call(ze,St[Oe])&&($e[St[Oe]]=ze[St[Oe]]);return $e};function Fn(ze){const{prefixCls:gt,className:$e,rootClassName:St,style:Oe,help:Ft,errors:Zt,warnings:De,validateStatus:Te,meta:Me,hasFeedback:je,hidden:it,children:an,fieldId:dn,required:hn,isRequired:$n,onSubItemMetaChange:ar,layout:Cr}=ze,qn=En(ze,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout"]),Gn=`${gt}-item`,{requiredMark:Jn,vertical:gr}=fe.useContext(b.q3),Ge=gr||Cr==="vertical",bt=fe.useRef(null),Vt=Ae(Zt),Ht=Ae(De),tn=Ft!=null,An=!!(tn||Zt.length||De.length),Vn=!!bt.current&&(0,It.Z)(bt.current),[tr,Nn]=fe.useState(null);(0,Mt.Z)(()=>{if(An&&bt.current){const lr=getComputedStyle(bt.current);Nn(parseInt(lr.marginBottom,10))}},[An,Vn]);const or=lr=>{lr||Nn(null)},nr=function(){let lr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const Er=lr?Vt:Me.errors,Ir=lr?Ht:Me.warnings;return ct(Er,Ir,Me,"",!!je,Te)}(),hr=xe()(Gn,$e,St,{[`${Gn}-with-help`]:tn||Vt.length||Ht.length,[`${Gn}-has-feedback`]:nr&&je,[`${Gn}-has-success`]:nr==="success",[`${Gn}-has-warning`]:nr==="warning",[`${Gn}-has-error`]:nr==="error",[`${Gn}-is-validating`]:nr==="validating",[`${Gn}-hidden`]:it,[`${Gn}-${Cr}`]:Cr});return fe.createElement("div",{className:hr,style:Oe,ref:bt},fe.createElement(Yt.Z,Object.assign({className:`${Gn}-row`},(0,kt.Z)(qn,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),fe.createElement(kn,Object.assign({htmlFor:dn},ze,{requiredMark:Jn,required:hn!=null?hn:$n,prefixCls:gt,vertical:Ge})),fe.createElement(Le,Object.assign({},ze,Me,{errors:Vt,warnings:Ht,prefixCls:gt,status:nr,help:Ft,marginBottom:tr,onErrorVisibleChanged:or}),fe.createElement(b.qI.Provider,{value:ar},fe.createElement(qt,{prefixCls:gt,meta:Me,errors:Me.errors,warnings:Me.warnings,hasFeedback:je,validateStatus:nr},an)))),!!tr&&fe.createElement("div",{className:`${Gn}-margin-offset`,style:{marginBottom:-tr}}))}const Tn="__SPLIT__",_t=null;function Cn(ze,gt){const $e=Object.keys(ze),St=Object.keys(gt);return $e.length===St.length&&$e.every(Oe=>{const Ft=ze[Oe],Zt=gt[Oe];return Ft===Zt||typeof Ft=="function"||typeof Zt=="function"})}const Bn=fe.memo(ze=>{let{children:gt}=ze;return gt},(ze,gt)=>Cn(ze.control,gt.control)&&ze.update===gt.update&&ze.childProps.length===gt.childProps.length&&ze.childProps.every(($e,St)=>$e===gt.childProps[St]));function Ln(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Zn(ze){const{name:gt,noStyle:$e,className:St,dependencies:Oe,prefixCls:Ft,shouldUpdate:Zt,rules:De,children:Te,required:Me,label:je,messageVariables:it,trigger:an="onChange",validateTrigger:dn,hidden:hn,help:$n,layout:ar}=ze,{getPrefixCls:Cr}=fe.useContext(ln.E_),{name:qn}=fe.useContext(b.q3),Gn=Fe(Te),Jn=typeof Gn=="function",gr=fe.useContext(b.qI),{validateTrigger:Ge}=fe.useContext(wt.FieldContext),bt=dn!==void 0?dn:Ge,Vt=gt!=null,Ht=Cr("form",Ft),tn=(0,Qe.Z)(Ht),[An,Vn,tr]=Je(Ht,tn),Nn=(0,Dt.ln)("Form.Item"),or=fe.useContext(wt.ListContext),cr=fe.useRef(null),[nr,hr]=we({}),[lr,Er]=(0,re.Z)(()=>Ln()),Ir=wr=>{const _n=or==null?void 0:or.getKey(wr.name);if(Er(wr.destroy?Ln():wr,!0),$e&&$n!==!1&&gr){let In=wr.name;if(wr.destroy)In=cr.current||In;else if(_n!==void 0){const[er,Rn]=_n;In=[er].concat((0,Pe.Z)(Rn)),cr.current=In}gr(wr,In)}},zr=(wr,_n)=>{hr(In=>{const er=Object.assign({},In),bn=[].concat((0,Pe.Z)(wr.name.slice(0,-1)),(0,Pe.Z)(_n)).join(Tn);return wr.destroy?delete er[bn]:er[bn]=wr,er})},[Pr,Or]=fe.useMemo(()=>{const wr=(0,Pe.Z)(lr.errors),_n=(0,Pe.Z)(lr.warnings);return Object.values(nr).forEach(In=>{wr.push.apply(wr,(0,Pe.Z)(In.errors||[])),_n.push.apply(_n,(0,Pe.Z)(In.warnings||[]))}),[wr,_n]},[nr,lr.errors,lr.warnings]),Sr=Be();function Tr(wr,_n,In){return $e&&!hn?fe.createElement(qt,{prefixCls:Ht,hasFeedback:ze.hasFeedback,validateStatus:ze.validateStatus,meta:lr,errors:Pr,warnings:Or,noStyle:!0},wr):fe.createElement(Fn,Object.assign({key:"row"},ze,{className:xe()(St,tr,tn,Vn),prefixCls:Ht,fieldId:_n,isRequired:In,errors:Pr,warnings:Or,meta:lr,onSubItemMetaChange:zr,layout:ar}),wr)}if(!Vt&&!Jn&&!Oe)return An(Tr(Gn));let br={};return typeof je=="string"?br.label=je:gt&&(br.label=String(gt)),it&&(br=Object.assign(Object.assign({},br),it)),An(fe.createElement(wt.Field,Object.assign({},ze,{messageVariables:br,trigger:an,validateTrigger:bt,onMetaChange:Ir}),(wr,_n,In)=>{const er=lt(gt).length&&_n?_n.name:[],Rn=Wt(er,qn),bn=Me!==void 0?Me:!!(De!=null&&De.some(On=>{if(On&&typeof On=="object"&&On.required&&!On.warningOnly)return!0;if(typeof On=="function"){const Hn=On(In);return(Hn==null?void 0:Hn.required)&&!(Hn!=null&&Hn.warningOnly)}return!1})),ir=Object.assign({},wr);let mr=null;if(Array.isArray(Gn)&&Vt)mr=Gn;else if(!(Jn&&(!(Zt||Oe)||Vt))){if(!(Oe&&!Jn&&!Vt))if(fe.isValidElement(Gn)){const On=Object.assign(Object.assign({},Gn.props),ir);if(On.id||(On.id=Rn),$n||Pr.length>0||Or.length>0||ze.extra){const vr=[];($n||Pr.length>0)&&vr.push(`${Rn}_help`),ze.extra&&vr.push(`${Rn}_extra`),On["aria-describedby"]=vr.join(" ")}Pr.length>0&&(On["aria-invalid"]="true"),bn&&(On["aria-required"]="true"),(0,le.Yr)(Gn)&&(On.ref=Sr(er,Gn)),new Set([].concat((0,Pe.Z)(lt(an)),(0,Pe.Z)(lt(bt)))).forEach(vr=>{On[vr]=function(){for(var Ar,Fr,Rr,Ur,jr,ro=arguments.length,Yr=new Array(ro),Xr=0;Xr<ro;Xr++)Yr[Xr]=arguments[Xr];(Rr=ir[vr])===null||Rr===void 0||(Ar=Rr).call.apply(Ar,[ir].concat(Yr)),(jr=(Ur=Gn.props)[vr])===null||jr===void 0||(Fr=jr).call.apply(Fr,[Ur].concat(Yr))}});const Xn=[On["aria-required"],On["aria-invalid"],On["aria-describedby"]];mr=fe.createElement(Bn,{control:ir,update:Gn,childProps:Xn},(0,me.Tm)(Gn,On))}else Jn&&(Zt||Oe)&&!Vt?mr=Gn(In):mr=Gn}return Tr(mr,Rn,bn)}))}const yr=Zn;yr.useStatus=nt;var ur=yr,Jt=function(ze,gt){var $e={};for(var St in ze)Object.prototype.hasOwnProperty.call(ze,St)&>.indexOf(St)<0&&($e[St]=ze[St]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oe=0,St=Object.getOwnPropertySymbols(ze);Oe<St.length;Oe++)gt.indexOf(St[Oe])<0&&Object.prototype.propertyIsEnumerable.call(ze,St[Oe])&&($e[St[Oe]]=ze[St[Oe]]);return $e},un=ze=>{var{prefixCls:gt,children:$e}=ze,St=Jt(ze,["prefixCls","children"]);const{getPrefixCls:Oe}=fe.useContext(ln.E_),Ft=Oe("form",gt),Zt=fe.useMemo(()=>({prefixCls:Ft,status:"error"}),[Ft]);return fe.createElement(wt.List,Object.assign({},St),(De,Te,Me)=>fe.createElement(b.Rk.Provider,{value:Zt},$e(De.map(je=>Object.assign(Object.assign({},je),{fieldKey:je.key})),Te,{errors:Me.errors,warnings:Me.warnings})))};function sn(){const{form:ze}=fe.useContext(b.q3);return ze}const We=se;We.Item=ur,We.List=un,We.ErrorList=et,We.useForm=Tt,We.useFormInstance=sn,We.useWatch=wt.useWatch,We.Provider=b.RV,We.create=()=>{};var dt=We},4875:function(Kn,cn,z){"use strict";z.d(cn,{Z:function(){return on}});var b=z(59301),Pe=z(84105),fe=z(87395),rt=z(92310),xe=z.n(rt),ge=z(54476),Ee=z(20068),Qe=z(76190),Ae=z(42978),de=z(75931),tt=z(67732),ve=z(83652);function Lt(){return typeof BigInt=="function"}function at(Le){return!Le&&Le!==0&&!Number.isNaN(Le)||!String(Le).trim()}function Ve(Le){var xt=Le.trim(),zt=xt.startsWith("-");zt&&(xt=xt.slice(1)),xt=xt.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),xt.startsWith(".")&&(xt="0".concat(xt));var nn=xt||"0",Sn=nn.split("."),zn=Sn[0]||"0",rr=Sn[1]||"0";zn==="0"&&rr==="0"&&(zt=!1);var pr=zt?"-":"";return{negative:zt,negativeStr:pr,trimStr:nn,integerStr:zn,decimalStr:rr,fullStr:"".concat(pr).concat(nn)}}function Ne(Le){var xt=String(Le);return!Number.isNaN(Number(xt))&&xt.includes("e")}function Ze(Le){var xt=String(Le);if(Ne(Le)){var zt=Number(xt.slice(xt.indexOf("e-")+2)),nn=xt.match(/\.(\d+)/);return nn!=null&&nn[1]&&(zt+=nn[1].length),zt}return xt.includes(".")&&mt(xt)?xt.length-xt.indexOf(".")-1:0}function pt(Le){var xt=String(Le);if(Ne(Le)){if(Le>Number.MAX_SAFE_INTEGER)return String(Lt()?BigInt(Le).toString():Number.MAX_SAFE_INTEGER);if(Le<Number.MIN_SAFE_INTEGER)return String(Lt()?BigInt(Le).toString():Number.MIN_SAFE_INTEGER);xt=Le.toFixed(Ze(xt))}return Ve(xt).fullStr}function mt(Le){return typeof Le=="number"?!Number.isNaN(Le):Le?/^\s*-?\d+(\.\d+)?\s*$/.test(Le)||/^\s*-?\d+\.\s*$/.test(Le)||/^\s*-?\.\d+\s*$/.test(Le):!1}var Xt=function(){function Le(xt){if((0,tt.Z)(this,Le),(0,Ee.Z)(this,"origin",""),(0,Ee.Z)(this,"negative",void 0),(0,Ee.Z)(this,"integer",void 0),(0,Ee.Z)(this,"decimal",void 0),(0,Ee.Z)(this,"decimalLen",void 0),(0,Ee.Z)(this,"empty",void 0),(0,Ee.Z)(this,"nan",void 0),at(xt)){this.empty=!0;return}if(this.origin=String(xt),xt==="-"||Number.isNaN(xt)){this.nan=!0;return}var zt=xt;if(Ne(zt)&&(zt=Number(zt)),zt=typeof zt=="string"?zt:pt(zt),mt(zt)){var nn=Ve(zt);this.negative=nn.negative;var Sn=nn.trimStr.split(".");this.integer=BigInt(Sn[0]);var zn=Sn[1]||"0";this.decimal=BigInt(zn),this.decimalLen=zn.length}else this.nan=!0}return(0,ve.Z)(Le,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(zt){var nn="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(zt,"0"));return BigInt(nn)}},{key:"negate",value:function(){var zt=new Le(this.toString());return zt.negative=!zt.negative,zt}},{key:"cal",value:function(zt,nn,Sn){var zn=Math.max(this.getDecimalStr().length,zt.getDecimalStr().length),rr=this.alignDecimal(zn),pr=zt.alignDecimal(zn),kn=nn(rr,pr).toString(),dr=Sn(zn),Ye=Ve(kn),Qt=Ye.negativeStr,yn=Ye.trimStr,xn="".concat(Qt).concat(yn.padStart(dr+1,"0"));return new Le("".concat(xn.slice(0,-dr),".").concat(xn.slice(-dr)))}},{key:"add",value:function(zt){if(this.isInvalidate())return new Le(zt);var nn=new Le(zt);return nn.isInvalidate()?this:this.cal(nn,function(Sn,zn){return Sn+zn},function(Sn){return Sn})}},{key:"multi",value:function(zt){var nn=new Le(zt);return this.isInvalidate()||nn.isInvalidate()?new Le(NaN):this.cal(nn,function(Sn,zn){return Sn*zn},function(Sn){return Sn*2})}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(zt){return this.toString()===(zt==null?void 0:zt.toString())}},{key:"lessEquals",value:function(zt){return this.add(zt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var zt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return zt?this.isInvalidate()?"":Ve("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),Le}(),He=function(){function Le(xt){if((0,tt.Z)(this,Le),(0,Ee.Z)(this,"origin",""),(0,Ee.Z)(this,"number",void 0),(0,Ee.Z)(this,"empty",void 0),at(xt)){this.empty=!0;return}this.origin=String(xt),this.number=Number(xt)}return(0,ve.Z)(Le,[{key:"negate",value:function(){return new Le(-this.toNumber())}},{key:"add",value:function(zt){if(this.isInvalidate())return new Le(zt);var nn=Number(zt);if(Number.isNaN(nn))return this;var Sn=this.number+nn;if(Sn>Number.MAX_SAFE_INTEGER)return new Le(Number.MAX_SAFE_INTEGER);if(Sn<Number.MIN_SAFE_INTEGER)return new Le(Number.MIN_SAFE_INTEGER);var zn=Math.max(Ze(this.number),Ze(nn));return new Le(Sn.toFixed(zn))}},{key:"multi",value:function(zt){var nn=Number(zt);if(this.isInvalidate()||Number.isNaN(nn))return new Le(NaN);var Sn=this.number*nn;if(Sn>Number.MAX_SAFE_INTEGER)return new Le(Number.MAX_SAFE_INTEGER);if(Sn<Number.MIN_SAFE_INTEGER)return new Le(Number.MIN_SAFE_INTEGER);var zn=Math.max(Ze(this.number),Ze(nn));return new Le(Sn.toFixed(zn))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(zt){return this.toNumber()===(zt==null?void 0:zt.toNumber())}},{key:"lessEquals",value:function(zt){return this.add(zt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var zt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return zt?this.isInvalidate()?"":pt(this.number):this.origin}}]),Le}();function Ke(Le){return Lt()?new Xt(Le):new He(Le)}function ut(Le,xt,zt){var nn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(Le==="")return"";var Sn=Ve(Le),zn=Sn.negativeStr,rr=Sn.integerStr,pr=Sn.decimalStr,kn="".concat(xt).concat(pr),dr="".concat(zn).concat(rr);if(zt>=0){var Ye=Number(pr[zt]);if(Ye>=5&&!nn){var Qt=Ke(Le).add("".concat(zn,"0.").concat("0".repeat(zt)).concat(10-Ye));return ut(Qt.toString(),xt,zt,nn)}return zt===0?dr:"".concat(dr).concat(xt).concat(pr.padEnd(zt,"0").slice(0,zt))}return kn===".0"?dr:"".concat(dr).concat(kn)}var ft=Ke,jt=z(36901),Ot=z(34280);function yt(Le,xt){return typeof Proxy!="undefined"&&Le?new Proxy(Le,{get:function(nn,Sn){if(xt[Sn])return xt[Sn];var zn=nn[Sn];return typeof zn=="function"?zn.bind(nn):zn}}):Le}var Et=z(8654),pe=z(48736);function Je(Le,xt){var zt=(0,b.useRef)(null);function nn(){try{var zn=Le.selectionStart,rr=Le.selectionEnd,pr=Le.value,kn=pr.substring(0,zn),dr=pr.substring(rr);zt.current={start:zn,end:rr,value:pr,beforeTxt:kn,afterTxt:dr}}catch(Ye){}}function Sn(){if(Le&&zt.current&&xt)try{var zn=Le.value,rr=zt.current,pr=rr.beforeTxt,kn=rr.afterTxt,dr=rr.start,Ye=zn.length;if(zn.startsWith(pr))Ye=pr.length;else if(zn.endsWith(kn))Ye=zn.length-zt.current.afterTxt.length;else{var Qt=pr[dr-1],yn=zn.indexOf(Qt,dr-1);yn!==-1&&(Ye=yn+1)}Le.setSelectionRange(Ye,Ye)}catch(xn){(0,pe.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(xn.message))}}return[nn,Sn]}var Xe=z(49658),ue=function(){var xt=(0,b.useState)(!1),zt=(0,Ae.Z)(xt,2),nn=zt[0],Sn=zt[1];return(0,Ot.Z)(function(){Sn((0,Xe.Z)())},[]),nn},Nt=ue,et=z(16089),wt=200,ln=600;function ke(Le){var xt=Le.prefixCls,zt=Le.upNode,nn=Le.downNode,Sn=Le.upDisabled,zn=Le.downDisabled,rr=Le.onStep,pr=b.useRef(),kn=b.useRef([]),dr=b.useRef();dr.current=rr;var Ye=function(){clearTimeout(pr.current)},Qt=function(Cn,Bn){Cn.preventDefault(),Ye(),dr.current(Bn);function Ln(){dr.current(Bn),pr.current=setTimeout(Ln,wt)}pr.current=setTimeout(Ln,ln)};b.useEffect(function(){return function(){Ye(),kn.current.forEach(function(_t){return et.Z.cancel(_t)})}},[]);var yn=Nt();if(yn)return null;var xn="".concat(xt,"-handler"),qt=xe()(xn,"".concat(xn,"-up"),(0,Ee.Z)({},"".concat(xn,"-up-disabled"),Sn)),En=xe()(xn,"".concat(xn,"-down"),(0,Ee.Z)({},"".concat(xn,"-down-disabled"),zn)),Fn=function(){return kn.current.push((0,et.Z)(Ye))},Tn={unselectable:"on",role:"button",onMouseUp:Fn,onMouseLeave:Fn};return b.createElement("div",{className:"".concat(xn,"-wrap")},b.createElement("span",(0,ge.Z)({},Tn,{onMouseDown:function(Cn){Qt(Cn,!0)},"aria-label":"Increase Value","aria-disabled":Sn,className:qt}),zt||b.createElement("span",{unselectable:"on",className:"".concat(xt,"-handler-up-inner")})),b.createElement("span",(0,ge.Z)({},Tn,{onMouseDown:function(Cn){Qt(Cn,!1)},"aria-label":"Decrease Value","aria-disabled":zn,className:En}),nn||b.createElement("span",{unselectable:"on",className:"".concat(xt,"-handler-down-inner")})))}function he(Le){var xt=typeof Le=="number"?pt(Le):Ve(Le).fullStr,zt=xt.includes(".");return zt?Ve(xt.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:Le+"0"}var Ct=z(30292),Pt=function(){var Le=(0,b.useRef)(0),xt=function(){et.Z.cancel(Le.current)};return(0,b.useEffect)(function(){return xt},[]),function(zt){xt(),Le.current=(0,et.Z)(function(){zt()})}},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"],Ce=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],ot=function(xt,zt){return xt||zt.isEmpty()?zt.toString():zt.toNumber()},lt=function(xt){var zt=ft(xt);return zt.isInvalidate()?null:zt},Wt=b.forwardRef(function(Le,xt){var zt=Le.prefixCls,nn=Le.className,Sn=Le.style,zn=Le.min,rr=Le.max,pr=Le.step,kn=pr===void 0?1:pr,dr=Le.defaultValue,Ye=Le.value,Qt=Le.disabled,yn=Le.readOnly,xn=Le.upHandler,qt=Le.downHandler,En=Le.keyboard,Fn=Le.changeOnWheel,Tn=Fn===void 0?!1:Fn,_t=Le.controls,Cn=_t===void 0?!0:_t,Bn=Le.classNames,Ln=Le.stringMode,Zn=Le.parser,yr=Le.formatter,ur=Le.precision,Jt=Le.decimalSeparator,wn=Le.onChange,un=Le.onInput,sn=Le.onPressEnter,We=Le.onStep,dt=Le.changeOnBlur,ze=dt===void 0?!0:dt,gt=Le.domRef,$e=(0,de.Z)(Le,Kt),St="".concat(zt,"-input"),Oe=b.useRef(null),Ft=b.useState(!1),Zt=(0,Ae.Z)(Ft,2),De=Zt[0],Te=Zt[1],Me=b.useRef(!1),je=b.useRef(!1),it=b.useRef(!1),an=b.useState(function(){return ft(Ye!=null?Ye:dr)}),dn=(0,Ae.Z)(an,2),hn=dn[0],$n=dn[1];function ar(Rn){Ye===void 0&&$n(Rn)}var Cr=b.useCallback(function(Rn,bn){if(!bn)return ur>=0?ur:Math.max(Ze(Rn),Ze(kn))},[ur,kn]),qn=b.useCallback(function(Rn){var bn=String(Rn);if(Zn)return Zn(bn);var ir=bn;return Jt&&(ir=ir.replace(Jt,".")),ir.replace(/[^\w.-]+/g,"")},[Zn,Jt]),Gn=b.useRef(""),Jn=b.useCallback(function(Rn,bn){if(yr)return yr(Rn,{userTyping:bn,input:String(Gn.current)});var ir=typeof Rn=="number"?pt(Rn):Rn;if(!bn){var mr=Cr(ir,bn);if(mt(ir)&&(Jt||mr>=0)){var On=Jt||".";ir=ut(ir,On,mr)}}return ir},[yr,Cr,Jt]),gr=b.useState(function(){var Rn=dr!=null?dr:Ye;return hn.isInvalidate()&&["string","number"].includes((0,Qe.Z)(Rn))?Number.isNaN(Rn)?"":Rn:Jn(hn.toString(),!1)}),Ge=(0,Ae.Z)(gr,2),bt=Ge[0],Vt=Ge[1];Gn.current=bt;function Ht(Rn,bn){Vt(Jn(Rn.isInvalidate()?Rn.toString(!1):Rn.toString(!bn),bn))}var tn=b.useMemo(function(){return lt(rr)},[rr,ur]),An=b.useMemo(function(){return lt(zn)},[zn,ur]),Vn=b.useMemo(function(){return!tn||!hn||hn.isInvalidate()?!1:tn.lessEquals(hn)},[tn,hn]),tr=b.useMemo(function(){return!An||!hn||hn.isInvalidate()?!1:hn.lessEquals(An)},[An,hn]),Nn=Je(Oe.current,De),or=(0,Ae.Z)(Nn,2),cr=or[0],nr=or[1],hr=function(bn){return tn&&!bn.lessEquals(tn)?tn:An&&!An.lessEquals(bn)?An:null},lr=function(bn){return!hr(bn)},Er=function(bn,ir){var mr=bn,On=lr(mr)||mr.isEmpty();if(!mr.isEmpty()&&!ir&&(mr=hr(mr)||mr,On=!0),!yn&&!Qt&&On){var Hn=mr.toString(),Xn=Cr(Hn,ir);return Xn>=0&&(mr=ft(ut(Hn,".",Xn)),lr(mr)||(mr=ft(ut(Hn,".",Xn,!0)))),mr.equals(hn)||(ar(mr),wn==null||wn(mr.isEmpty()?null:ot(Ln,mr)),Ye===void 0&&Ht(mr,ir)),mr}return hn},Ir=Pt(),zr=function Rn(bn){if(cr(),Gn.current=bn,Vt(bn),!je.current){var ir=qn(bn),mr=ft(ir);mr.isNaN()||Er(mr,!0)}un==null||un(bn),Ir(function(){var On=bn;Zn||(On=bn.replace(/。/g,".")),On!==bn&&Rn(On)})},Pr=function(){je.current=!0},Or=function(){je.current=!1,zr(Oe.current.value)},Sr=function(bn){zr(bn.target.value)},Tr=function(bn){var ir;if(!(bn&&Vn||!bn&&tr)){Me.current=!1;var mr=ft(it.current?he(kn):kn);bn||(mr=mr.negate());var On=(hn||ft(0)).add(mr.toString()),Hn=Er(On,!1);We==null||We(ot(Ln,Hn),{offset:it.current?he(kn):kn,type:bn?"up":"down"}),(ir=Oe.current)===null||ir===void 0||ir.focus()}},br=function(bn){var ir=ft(qn(bt)),mr;ir.isNaN()?mr=Er(hn,bn):mr=Er(ir,bn),Ye!==void 0?Ht(hn,!1):mr.isNaN()||Ht(mr,!1)},wr=function(){Me.current=!0},_n=function(bn){var ir=bn.key,mr=bn.shiftKey;Me.current=!0,it.current=mr,ir==="Enter"&&(je.current||(Me.current=!1),br(!1),sn==null||sn(bn)),En!==!1&&!je.current&&["Up","ArrowUp","Down","ArrowDown"].includes(ir)&&(Tr(ir==="Up"||ir==="ArrowUp"),bn.preventDefault())},In=function(){Me.current=!1,it.current=!1};b.useEffect(function(){if(Tn&&De){var Rn=function(mr){Tr(mr.deltaY<0),mr.preventDefault()},bn=Oe.current;if(bn)return bn.addEventListener("wheel",Rn,{passive:!1}),function(){return bn.removeEventListener("wheel",Rn)}}});var er=function(){ze&&br(!1),Te(!1),Me.current=!1};return(0,Ot.o)(function(){hn.isInvalidate()||Ht(hn,!1)},[ur,yr]),(0,Ot.o)(function(){var Rn=ft(Ye);$n(Rn);var bn=ft(qn(bt));(!Rn.equals(bn)||!Me.current||yr)&&Ht(Rn,Me.current)},[Ye]),(0,Ot.o)(function(){yr&&nr()},[bt]),b.createElement("div",{ref:gt,className:xe()(zt,nn,(0,Ee.Z)((0,Ee.Z)((0,Ee.Z)((0,Ee.Z)((0,Ee.Z)({},"".concat(zt,"-focused"),De),"".concat(zt,"-disabled"),Qt),"".concat(zt,"-readonly"),yn),"".concat(zt,"-not-a-number"),hn.isNaN()),"".concat(zt,"-out-of-range"),!hn.isInvalidate()&&!lr(hn))),style:Sn,onFocus:function(){Te(!0)},onBlur:er,onKeyDown:_n,onKeyUp:In,onCompositionStart:Pr,onCompositionEnd:Or,onBeforeInput:wr},Cn&&b.createElement(ke,{prefixCls:zt,upNode:xn,downNode:qt,upDisabled:Vn,downDisabled:tr,onStep:Tr}),b.createElement("div",{className:"".concat(St,"-wrap")},b.createElement("input",(0,ge.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":zn,"aria-valuemax":rr,"aria-valuenow":hn.isInvalidate()?null:hn.toString(),step:kn},$e,{ref:(0,Et.sQ)(Oe,xt),className:St,value:bt,onChange:Sr,disabled:Qt,readOnly:yn}))))}),ct=b.forwardRef(function(Le,xt){var zt=Le.disabled,nn=Le.style,Sn=Le.prefixCls,zn=Sn===void 0?"rc-input-number":Sn,rr=Le.value,pr=Le.prefix,kn=Le.suffix,dr=Le.addonBefore,Ye=Le.addonAfter,Qt=Le.className,yn=Le.classNames,xn=(0,de.Z)(Le,Ce),qt=b.useRef(null),En=b.useRef(null),Fn=b.useRef(null),Tn=function(Cn){Fn.current&&(0,Ct.nH)(Fn.current,Cn)};return b.useImperativeHandle(xt,function(){return yt(Fn.current,{focus:Tn,nativeElement:qt.current.nativeElement||En.current})}),b.createElement(jt.BaseInput,{className:Qt,triggerFocus:Tn,prefixCls:zn,value:rr,disabled:zt,style:nn,prefix:pr,suffix:kn,addonAfter:Ye,addonBefore:dr,classNames:yn,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:qt},b.createElement(Wt,(0,ge.Z)({prefixCls:zn,disabled:zt,ref:Fn,domRef:En,className:yn==null?void 0:yn.input},xn)))}),$t=ct,vt=$t,gn=z(62487),Tt=z(82855),ie=z(48755),ne=z(60840),te=z(2171),oe=z(83397),se=z(31756),re=z(56553),le=z(24971),me=z(70045),Dt=z(36237),Re=z(53075),Fe=z(64910),qe=z(39082),nt=z(63356),st=z(56119),we=z(16931),Be=z(51636),It=z(17835);const Mt=Le=>{var xt;const zt=(xt=Le.handleVisible)!==null&&xt!==void 0?xt:"auto",nn=Le.controlHeightSM-Le.lineWidth*2;return Object.assign(Object.assign({},(0,Fe.T)(Le)),{controlWidth:90,handleWidth:nn,handleFontSize:Le.fontSize/2,handleVisible:zt,handleActiveBg:Le.colorFillAlter,handleBg:Le.colorBgContainer,filledHandleBg:new It.FastColor(Le.colorFillSecondary).onBackground(Le.colorBgContainer).toHexString(),handleHoverColor:Le.colorPrimary,handleBorderColor:Le.colorBorder,handleOpacity:zt===!0?1:0,handleVisibleWidth:zt===!0?nn:0})},kt=(Le,xt)=>{let{componentCls:zt,borderRadiusSM:nn,borderRadiusLG:Sn}=Le;const zn=xt==="lg"?Sn:nn;return{[`&-${xt}`]:{[`${zt}-handler-wrap`]:{borderStartEndRadius:zn,borderEndEndRadius:zn},[`${zt}-handler-up`]:{borderStartEndRadius:zn},[`${zt}-handler-down`]:{borderEndEndRadius:zn}}}},Yt=Le=>{const{componentCls:xt,lineWidth:zt,lineType:nn,borderRadius:Sn,inputFontSizeSM:zn,inputFontSizeLG:rr,controlHeightLG:pr,controlHeightSM:kn,colorError:dr,paddingInlineSM:Ye,paddingBlockSM:Qt,paddingBlockLG:yn,paddingInlineLG:xn,colorTextDescription:qt,motionDurationMid:En,handleHoverColor:Fn,handleOpacity:Tn,paddingInline:_t,paddingBlock:Cn,handleBg:Bn,handleActiveBg:Ln,colorTextDisabled:Zn,borderRadiusSM:yr,borderRadiusLG:ur,controlWidth:Jt,handleBorderColor:wn,filledHandleBg:un,lineHeightLG:sn,calc:We}=Le;return[{[xt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,nt.Wf)(Le)),(0,Re.ik)(Le)),{display:"inline-block",width:Jt,margin:0,padding:0,borderRadius:Sn}),(0,qe.qG)(Le,{[`${xt}-handler-wrap`]:{background:Bn,[`${xt}-handler-down`]:{borderBlockStart:`${(0,Dt.unit)(zt)} ${nn} ${wn}`}}})),(0,qe.H8)(Le,{[`${xt}-handler-wrap`]:{background:un,[`${xt}-handler-down`]:{borderBlockStart:`${(0,Dt.unit)(zt)} ${nn} ${wn}`}},"&:focus-within":{[`${xt}-handler-wrap`]:{background:Bn}}})),(0,qe.vc)(Le,{[`${xt}-handler-wrap`]:{background:Bn,[`${xt}-handler-down`]:{borderBlockStart:`${(0,Dt.unit)(zt)} ${nn} ${wn}`}}})),(0,qe.Mu)(Le)),{"&-rtl":{direction:"rtl",[`${xt}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:rr,lineHeight:sn,borderRadius:ur,[`input${xt}-input`]:{height:We(pr).sub(We(zt).mul(2)).equal(),padding:`${(0,Dt.unit)(yn)} ${(0,Dt.unit)(xn)}`}},"&-sm":{padding:0,fontSize:zn,borderRadius:yr,[`input${xt}-input`]:{height:We(kn).sub(We(zt).mul(2)).equal(),padding:`${(0,Dt.unit)(Qt)} ${(0,Dt.unit)(Ye)}`}},"&-out-of-range":{[`${xt}-input-wrap`]:{input:{color:dr}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,nt.Wf)(Le)),(0,Re.s7)(Le)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${xt}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${xt}-group-addon`]:{borderRadius:ur,fontSize:Le.fontSizeLG}},"&-sm":{[`${xt}-group-addon`]:{borderRadius:yr}}},(0,qe.ir)(Le)),(0,qe.S5)(Le)),{[`&:not(${xt}-compact-first-item):not(${xt}-compact-last-item)${xt}-compact-item`]:{[`${xt}, ${xt}-group-addon`]:{borderRadius:0}},[`&:not(${xt}-compact-last-item)${xt}-compact-first-item`]:{[`${xt}, ${xt}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${xt}-compact-first-item)${xt}-compact-last-item`]:{[`${xt}, ${xt}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${xt}-input`]:{cursor:"not-allowed"},[xt]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,nt.Wf)(Le)),{width:"100%",padding:`${(0,Dt.unit)(Cn)} ${(0,Dt.unit)(_t)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:Sn,outline:0,transition:`all ${En} linear`,appearance:"textfield",fontSize:"inherit"}),(0,Re.nz)(Le.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${xt}-handler-wrap, &-focused ${xt}-handler-wrap`]:{width:Le.handleWidth,opacity:1}})},{[xt]:Object.assign(Object.assign(Object.assign({[`${xt}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:Le.handleVisibleWidth,opacity:Tn,height:"100%",borderStartStartRadius:0,borderStartEndRadius:Sn,borderEndEndRadius:Sn,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${En}`,overflow:"hidden",[`${xt}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
|
|
|
${xt}-handler-up-inner,
|
|
|
${xt}-handler-down-inner
|
|
|
`]:{marginInlineEnd:0,fontSize:Le.handleFontSize}}},[`${xt}-handler`]:{height:"50%",overflow:"hidden",color:qt,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${(0,Dt.unit)(zt)} ${nn} ${wn}`,transition:`all ${En} linear`,"&:active":{background:Ln},"&:hover":{height:"60%",[`
|
|
|
${xt}-handler-up-inner,
|
|
|
${xt}-handler-down-inner
|
|
|
`]:{color:Fn}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,nt.Ro)()),{color:qt,transition:`all ${En} linear`,userSelect:"none"})},[`${xt}-handler-up`]:{borderStartEndRadius:Sn},[`${xt}-handler-down`]:{borderEndEndRadius:Sn}},kt(Le,"lg")),kt(Le,"sm")),{"&-disabled, &-readonly":{[`${xt}-handler-wrap`]:{display:"none"},[`${xt}-input`]:{color:"inherit"}},[`
|
|
|
${xt}-handler-up-disabled,
|
|
|
${xt}-handler-down-disabled
|
|
|
`]:{cursor:"not-allowed"},[`
|
|
|
${xt}-handler-up-disabled:hover &-handler-up-inner,
|
|
|
${xt}-handler-down-disabled:hover &-handler-down-inner
|
|
|
`]:{color:Zn}})}]},At=Le=>{const{componentCls:xt,paddingBlock:zt,paddingInline:nn,inputAffixPadding:Sn,controlWidth:zn,borderRadiusLG:rr,borderRadiusSM:pr,paddingInlineLG:kn,paddingInlineSM:dr,paddingBlockLG:Ye,paddingBlockSM:Qt,motionDurationMid:yn}=Le;return{[`${xt}-affix-wrapper`]:Object.assign(Object.assign({[`input${xt}-input`]:{padding:`${(0,Dt.unit)(zt)} 0`}},(0,Re.ik)(Le)),{position:"relative",display:"inline-flex",alignItems:"center",width:zn,padding:0,paddingInlineStart:nn,"&-lg":{borderRadius:rr,paddingInlineStart:kn,[`input${xt}-input`]:{padding:`${(0,Dt.unit)(Ye)} 0`}},"&-sm":{borderRadius:pr,paddingInlineStart:dr,[`input${xt}-input`]:{padding:`${(0,Dt.unit)(Qt)} 0`}},[`&:not(${xt}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${xt}-disabled`]:{background:"transparent"},[`> div${xt}`]:{width:"100%",border:"none",outline:"none",[`&${xt}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${xt}-handler-wrap`]:{zIndex:2},[xt]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:Sn},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:nn,marginInlineStart:Sn,transition:`margin ${yn}`}},[`&:hover ${xt}-handler-wrap, &-focused ${xt}-handler-wrap`]:{width:Le.handleWidth,opacity:1},[`&:not(${xt}-affix-wrapper-without-controls):hover ${xt}-suffix`]:{marginInlineEnd:Le.calc(Le.handleWidth).add(nn).equal()}})}};var vn=(0,we.I$)("InputNumber",Le=>{const xt=(0,Be.mergeToken)(Le,(0,Fe.e)(Le));return[Yt(xt),At(xt),(0,st.c)(xt)]},Mt,{unitless:{handleOpacity:!0}}),Gt=function(Le,xt){var zt={};for(var nn in Le)Object.prototype.hasOwnProperty.call(Le,nn)&&xt.indexOf(nn)<0&&(zt[nn]=Le[nn]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Sn=0,nn=Object.getOwnPropertySymbols(Le);Sn<nn.length;Sn++)xt.indexOf(nn[Sn])<0&&Object.prototype.propertyIsEnumerable.call(Le,nn[Sn])&&(zt[nn[Sn]]=Le[nn[Sn]]);return zt};const _e=b.forwardRef((Le,xt)=>{const{getPrefixCls:zt,direction:nn}=b.useContext(ie.E_),Sn=b.useRef(null);b.useImperativeHandle(xt,()=>Sn.current);const{className:zn,rootClassName:rr,size:pr,disabled:kn,prefixCls:dr,addonBefore:Ye,addonAfter:Qt,prefix:yn,suffix:xn,bordered:qt,readOnly:En,status:Fn,controls:Tn,variant:_t}=Le,Cn=Gt(Le,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),Bn=zt("input-number",dr),Ln=(0,oe.Z)(Bn),[Zn,yr,ur]=vn(Bn,Ln),{compactSize:Jt,compactItemClassnames:wn}=(0,me.ri)(Bn,nn);let un=b.createElement(fe.Z,{className:`${Bn}-handler-up-inner`}),sn=b.createElement(Pe.Z,{className:`${Bn}-handler-down-inner`});const We=typeof Tn=="boolean"?Tn:void 0;typeof Tn=="object"&&(un=typeof Tn.upIcon=="undefined"?un:b.createElement("span",{className:`${Bn}-handler-up-inner`},Tn.upIcon),sn=typeof Tn.downIcon=="undefined"?sn:b.createElement("span",{className:`${Bn}-handler-down-inner`},Tn.downIcon));const{hasFeedback:dt,status:ze,isFormItemInput:gt,feedbackIcon:$e}=b.useContext(re.aM),St=(0,Tt.F)(ze,Fn),Oe=(0,se.Z)(dn=>{var hn;return(hn=pr!=null?pr:Jt)!==null&&hn!==void 0?hn:dn}),Ft=b.useContext(te.Z),Zt=kn!=null?kn:Ft,[De,Te]=(0,le.Z)("inputNumber",_t,qt),Me=dt&&b.createElement(b.Fragment,null,$e),je=xe()({[`${Bn}-lg`]:Oe==="large",[`${Bn}-sm`]:Oe==="small",[`${Bn}-rtl`]:nn==="rtl",[`${Bn}-in-form-item`]:gt},yr),it=`${Bn}-group`,an=b.createElement(vt,Object.assign({ref:Sn,disabled:Zt,className:xe()(ur,Ln,zn,rr,wn),upHandler:un,downHandler:sn,prefixCls:Bn,readOnly:En,controls:We,prefix:yn,suffix:Me||xn,addonBefore:Ye&&b.createElement(gn.Z,{form:!0,space:!0},Ye),addonAfter:Qt&&b.createElement(gn.Z,{form:!0,space:!0},Qt),classNames:{input:je,variant:xe()({[`${Bn}-${De}`]:Te},(0,Tt.Z)(Bn,St,dt)),affixWrapper:xe()({[`${Bn}-affix-wrapper-sm`]:Oe==="small",[`${Bn}-affix-wrapper-lg`]:Oe==="large",[`${Bn}-affix-wrapper-rtl`]:nn==="rtl",[`${Bn}-affix-wrapper-without-controls`]:Tn===!1||Zt},yr),wrapper:xe()({[`${it}-rtl`]:nn==="rtl"},yr),groupWrapper:xe()({[`${Bn}-group-wrapper-sm`]:Oe==="small",[`${Bn}-group-wrapper-lg`]:Oe==="large",[`${Bn}-group-wrapper-rtl`]:nn==="rtl",[`${Bn}-group-wrapper-${De}`]:Te},(0,Tt.Z)(`${Bn}-group-wrapper`,St,dt),yr)}},Cn));return Zn(an)}),Bt=_e,Ut=Le=>b.createElement(ne.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},b.createElement(_e,Object.assign({},Le)));Bt._InternalPanelDoNotUseOrYouWillBeFired=Ut;var on=Bt},49397:function(Kn,cn,z){"use strict";z.d(cn,{Z:function(){return He}});var b=z(59301),Pe=z(92310),fe=z.n(Pe),rt=z(36901),xe=z(8654),ge=z(62487),Ee=z(86013),Qe=z(82855),Ae=z(48755),de=z(2171),tt=z(83397),ve=z(31756),Lt=z(56553),at=z(24971),Ve=z(70045),Ne=z(23826),Ze=z(53075);function pt(Ke){return!!(Ke.prefix||Ke.suffix||Ke.allowClear||Ke.showCount)}var mt=function(Ke,ut){var ft={};for(var jt in Ke)Object.prototype.hasOwnProperty.call(Ke,jt)&&ut.indexOf(jt)<0&&(ft[jt]=Ke[jt]);if(Ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ot=0,jt=Object.getOwnPropertySymbols(Ke);Ot<jt.length;Ot++)ut.indexOf(jt[Ot])<0&&Object.prototype.propertyIsEnumerable.call(Ke,jt[Ot])&&(ft[jt[Ot]]=Ke[jt[Ot]]);return ft},He=(0,b.forwardRef)((Ke,ut)=>{const{prefixCls:ft,bordered:jt=!0,status:Ot,size:yt,disabled:Et,onBlur:pe,onFocus:Je,suffix:Xe,allowClear:ue,addonAfter:Nt,addonBefore:et,className:wt,style:ln,styles:ke,rootClassName:he,onChange:Ct,classNames:Pt,variant:Kt}=Ke,Ce=mt(Ke,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:ot,direction:lt,allowClear:Wt,autoComplete:ct,className:$t,style:vt,classNames:gn,styles:Tt}=(0,Ae.dj)("input"),ie=ot("input",ft),ne=(0,b.useRef)(null),te=(0,tt.Z)(ie),[oe,se,re]=(0,Ze.TI)(ie,he),[le]=(0,Ze.ZP)(ie,te),{compactSize:me,compactItemClassnames:Dt}=(0,Ve.ri)(ie,lt),Re=(0,ve.Z)(on=>{var Le;return(Le=yt!=null?yt:me)!==null&&Le!==void 0?Le:on}),Fe=b.useContext(de.Z),qe=Et!=null?Et:Fe,{status:nt,hasFeedback:st,feedbackIcon:we}=(0,b.useContext)(Lt.aM),Be=(0,Qe.F)(nt,Ot),It=pt(Ke)||!!st,Mt=(0,b.useRef)(It),kt=(0,Ne.Z)(ne,!0),Yt=on=>{kt(),pe==null||pe(on)},At=on=>{kt(),Je==null||Je(on)},vn=on=>{kt(),Ct==null||Ct(on)},Gt=(st||Xe)&&b.createElement(b.Fragment,null,Xe,st&&we),_e=(0,Ee.Z)(ue!=null?ue:Wt),[Bt,Ut]=(0,at.Z)("input",Kt,jt);return oe(le(b.createElement(rt.default,Object.assign({ref:(0,xe.sQ)(ut,ne),prefixCls:ie,autoComplete:ct},Ce,{disabled:qe,onBlur:Yt,onFocus:At,style:Object.assign(Object.assign({},vt),ln),styles:Object.assign(Object.assign({},Tt),ke),suffix:Gt,allowClear:_e,className:fe()(wt,he,re,te,Dt,$t),onChange:vn,addonBefore:et&&b.createElement(ge.Z,{form:!0,space:!0},et),addonAfter:Nt&&b.createElement(ge.Z,{form:!0,space:!0},Nt),classNames:Object.assign(Object.assign(Object.assign({},Pt),gn),{input:fe()({[`${ie}-sm`]:Re==="small",[`${ie}-lg`]:Re==="large",[`${ie}-rtl`]:lt==="rtl"},Pt==null?void 0:Pt.input,gn.input,se),variant:fe()({[`${ie}-${Bt}`]:Ut},(0,Qe.Z)(ie,Be)),affixWrapper:fe()({[`${ie}-affix-wrapper-sm`]:Re==="small",[`${ie}-affix-wrapper-lg`]:Re==="large",[`${ie}-affix-wrapper-rtl`]:lt==="rtl"},se),wrapper:fe()({[`${ie}-group-rtl`]:lt==="rtl"},se),groupWrapper:fe()({[`${ie}-group-wrapper-sm`]:Re==="small",[`${ie}-group-wrapper-lg`]:Re==="large",[`${ie}-group-wrapper-rtl`]:lt==="rtl",[`${ie}-group-wrapper-${Bt}`]:Ut},(0,Qe.Z)(`${ie}-group-wrapper`,Be,st),se)})}))))})},79809:function(Kn,cn,z){"use strict";z.d(cn,{Z:function(){return ut}});var b=z(59301),Pe=z(92310),fe=z.n(Pe),rt=z(22711),xe=z(86013),ge=z(82855),Ee=z(48755),Qe=z(2171),Ae=z(83397),de=z(31756),tt=z(56553),ve=z(24971),Lt=z(70045),at=z(30292),Ve=z(53075),Ne=z(16931),Ze=z(51636),pt=z(64910);const mt=ft=>{const{componentCls:jt,paddingLG:Ot}=ft,yt=`${jt}-textarea`;return{[`textarea${jt}`]:{maxWidth:"100%",height:"auto",minHeight:ft.controlHeight,lineHeight:ft.lineHeight,verticalAlign:"bottom",transition:`all ${ft.motionDurationSlow}`,resize:"vertical",[`&${jt}-mouse-active`]:{transition:`all ${ft.motionDurationSlow}, height 0s, width 0s`}},[`${jt}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[yt]:{position:"relative","&-show-count":{[`> ${jt}`]:{height:"100%"},[`${jt}-data-count`]:{position:"absolute",bottom:ft.calc(ft.fontSize).mul(ft.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:ft.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
|
|
|
&-allow-clear > ${jt},
|
|
|
&-affix-wrapper${yt}-has-feedback ${jt}
|
|
|
`]:{paddingInlineEnd:Ot},[`&-affix-wrapper${jt}-affix-wrapper`]:{padding:0,[`> textarea${jt}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:ft.calc(ft.controlHeight).sub(ft.calc(ft.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${jt}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${jt}-clear-icon`]:{position:"absolute",insetInlineEnd:ft.paddingInline,insetBlockStart:ft.paddingXS},[`${yt}-suffix`]:{position:"absolute",top:0,insetInlineEnd:ft.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${jt}-affix-wrapper-sm`]:{[`${jt}-suffix`]:{[`${jt}-clear-icon`]:{insetInlineEnd:ft.paddingInlineSM}}}}}};var Xt=(0,Ne.I$)(["Input","TextArea"],ft=>{const jt=(0,Ze.mergeToken)(ft,(0,pt.e)(ft));return[mt(jt)]},pt.T,{resetFont:!1}),He=function(ft,jt){var Ot={};for(var yt in ft)Object.prototype.hasOwnProperty.call(ft,yt)&&jt.indexOf(yt)<0&&(Ot[yt]=ft[yt]);if(ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Et=0,yt=Object.getOwnPropertySymbols(ft);Et<yt.length;Et++)jt.indexOf(yt[Et])<0&&Object.prototype.propertyIsEnumerable.call(ft,yt[Et])&&(Ot[yt[Et]]=ft[yt[Et]]);return Ot},ut=(0,b.forwardRef)((ft,jt)=>{var Ot;const{prefixCls:yt,bordered:Et=!0,size:pe,disabled:Je,status:Xe,allowClear:ue,classNames:Nt,rootClassName:et,className:wt,style:ln,styles:ke,variant:he,showCount:Ct,onMouseDown:Pt,onResize:Kt}=ft,Ce=He(ft,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:ot,direction:lt,allowClear:Wt,autoComplete:ct,className:$t,style:vt,classNames:gn,styles:Tt}=(0,Ee.dj)("textArea"),ie=b.useContext(Qe.Z),ne=Je!=null?Je:ie,{status:te,hasFeedback:oe,feedbackIcon:se}=b.useContext(tt.aM),re=(0,ge.F)(te,Xe),le=b.useRef(null);b.useImperativeHandle(jt,()=>{var Ut;return{resizableTextArea:(Ut=le.current)===null||Ut===void 0?void 0:Ut.resizableTextArea,focus:on=>{var Le,xt;(0,at.nH)((xt=(Le=le.current)===null||Le===void 0?void 0:Le.resizableTextArea)===null||xt===void 0?void 0:xt.textArea,on)},blur:()=>{var on;return(on=le.current)===null||on===void 0?void 0:on.blur()}}});const me=ot("input",yt),Dt=(0,Ae.Z)(me),[Re,Fe,qe]=(0,Ve.TI)(me,et),[nt]=Xt(me,Dt),{compactSize:st,compactItemClassnames:we}=(0,Lt.ri)(me,lt),Be=(0,de.Z)(Ut=>{var on;return(on=pe!=null?pe:st)!==null&&on!==void 0?on:Ut}),[It,Mt]=(0,ve.Z)("textArea",he,Et),kt=(0,xe.Z)(ue!=null?ue:Wt),[Yt,At]=b.useState(!1),[vn,Gt]=b.useState(!1),_e=Ut=>{At(!0),Pt==null||Pt(Ut);const on=()=>{At(!1),document.removeEventListener("mouseup",on)};document.addEventListener("mouseup",on)},Bt=Ut=>{var on,Le;if(Kt==null||Kt(Ut),Yt&&typeof getComputedStyle=="function"){const xt=(Le=(on=le.current)===null||on===void 0?void 0:on.nativeElement)===null||Le===void 0?void 0:Le.querySelector("textarea");xt&&getComputedStyle(xt).resize==="both"&&Gt(!0)}};return Re(nt(b.createElement(rt.default,Object.assign({autoComplete:ct},Ce,{style:Object.assign(Object.assign({},vt),ln),styles:Object.assign(Object.assign({},Tt),ke),disabled:ne,allowClear:kt,className:fe()(qe,Dt,wt,et,we,$t,vn&&`${me}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},Nt),gn),{textarea:fe()({[`${me}-sm`]:Be==="small",[`${me}-lg`]:Be==="large"},Fe,Nt==null?void 0:Nt.textarea,gn.textarea,Yt&&`${me}-mouse-active`),variant:fe()({[`${me}-${It}`]:Mt},(0,ge.Z)(me,re)),affixWrapper:fe()(`${me}-textarea-affix-wrapper`,{[`${me}-affix-wrapper-rtl`]:lt==="rtl",[`${me}-affix-wrapper-sm`]:Be==="small",[`${me}-affix-wrapper-lg`]:Be==="large",[`${me}-textarea-show-count`]:Ct||((Ot=ft.count)===null||Ot===void 0?void 0:Ot.show)},Fe)}),prefixCls:me,suffix:oe&&b.createElement("span",{className:`${me}-textarea-suffix`},se),showCount:Ct,ref:le,onResize:Bt,onMouseDown:_e}))))})},23826:function(Kn,cn,z){"use strict";z.d(cn,{Z:function(){return Pe}});var b=z(59301);function Pe(fe,rt){const xe=(0,b.useRef)([]),ge=()=>{xe.current.push(setTimeout(()=>{var Ee,Qe,Ae,de;!((Ee=fe.current)===null||Ee===void 0)&&Ee.input&&((Qe=fe.current)===null||Qe===void 0?void 0:Qe.input.getAttribute("type"))==="password"&&(!((Ae=fe.current)===null||Ae===void 0)&&Ae.input.hasAttribute("value"))&&((de=fe.current)===null||de===void 0||de.input.removeAttribute("value"))}))};return(0,b.useEffect)(()=>(rt&&ge(),()=>xe.current.forEach(Ee=>{Ee&&clearTimeout(Ee)})),[]),ge}},37568:function(Kn,cn,z){"use strict";z.d(cn,{default:function(){return gn}});var b=z(59301),Pe=z(92310),fe=z.n(Pe),rt=z(48755),xe=z(56553),ge=z(53075),Qe=Tt=>{const{getPrefixCls:ie,direction:ne}=(0,b.useContext)(rt.E_),{prefixCls:te,className:oe}=Tt,se=ie("input-group",te),re=ie("input"),[le,me,Dt]=(0,ge.ZP)(re),Re=fe()(se,Dt,{[`${se}-lg`]:Tt.size==="large",[`${se}-sm`]:Tt.size==="small",[`${se}-compact`]:Tt.compact,[`${se}-rtl`]:ne==="rtl"},me,oe),Fe=(0,b.useContext)(xe.aM),qe=(0,b.useMemo)(()=>Object.assign(Object.assign({},Fe),{isFormItemInput:!1}),[Fe]);return le(b.createElement("span",{className:Re,style:Tt.style,onMouseEnter:Tt.onMouseEnter,onMouseLeave:Tt.onMouseLeave,onFocus:Tt.onFocus,onBlur:Tt.onBlur},b.createElement(xe.aM.Provider,{value:qe},Tt.children)))},Ae=z(49397),de=z(94480),tt=z(6089),ve=z(26112),Lt=z(82855),at=z(31756),Ve=z(16931),Ne=z(51636),Ze=z(64910);const pt=Tt=>{const{componentCls:ie,paddingXS:ne}=Tt;return{[ie]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:ne,"&-rtl":{direction:"rtl"},[`${ie}-input`]:{textAlign:"center",paddingInline:Tt.paddingXXS},[`&${ie}-sm ${ie}-input`]:{paddingInline:Tt.calc(Tt.paddingXXS).div(2).equal()},[`&${ie}-lg ${ie}-input`]:{paddingInline:Tt.paddingXS}}}};var mt=(0,Ve.I$)(["Input","OTP"],Tt=>{const ie=(0,Ne.mergeToken)(Tt,(0,Ze.e)(Tt));return[pt(ie)]},Ze.T),Xt=z(16089),He=function(Tt,ie){var ne={};for(var te in Tt)Object.prototype.hasOwnProperty.call(Tt,te)&&ie.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++)ie.indexOf(te[oe])<0&&Object.prototype.propertyIsEnumerable.call(Tt,te[oe])&&(ne[te[oe]]=Tt[te[oe]]);return ne},ut=b.forwardRef((Tt,ie)=>{const{value:ne,onChange:te,onActiveChange:oe,index:se,mask:re}=Tt,le=He(Tt,["value","onChange","onActiveChange","index","mask"]),me=ne&&typeof re=="string"?re:ne,Dt=st=>{te(se,st.target.value)},Re=b.useRef(null);b.useImperativeHandle(ie,()=>Re.current);const Fe=()=>{(0,Xt.Z)(()=>{var st;const we=(st=Re.current)===null||st===void 0?void 0:st.input;document.activeElement===we&&we&&we.select()})},qe=st=>{const{key:we,ctrlKey:Be,metaKey:It}=st;we==="ArrowLeft"?oe(se-1):we==="ArrowRight"?oe(se+1):we==="z"&&(Be||It)&&st.preventDefault(),Fe()},nt=st=>{st.key==="Backspace"&&!ne&&oe(se-1),Fe()};return b.createElement(Ae.Z,Object.assign({type:re===!0?"password":"text"},le,{ref:Re,value:me,onInput:Dt,onFocus:Fe,onKeyDown:qe,onKeyUp:nt,onMouseDown:Fe,onMouseUp:Fe}))}),ft=function(Tt,ie){var ne={};for(var te in Tt)Object.prototype.hasOwnProperty.call(Tt,te)&&ie.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++)ie.indexOf(te[oe])<0&&Object.prototype.propertyIsEnumerable.call(Tt,te[oe])&&(ne[te[oe]]=Tt[te[oe]]);return ne};function jt(Tt){return(Tt||"").split("")}const Ot=Tt=>{const{index:ie,prefixCls:ne,separator:te}=Tt,oe=typeof te=="function"?te(ie):te;return oe?b.createElement("span",{className:`${ne}-separator`},oe):null};var Et=b.forwardRef((Tt,ie)=>{const{prefixCls:ne,length:te=6,size:oe,defaultValue:se,value:re,onChange:le,formatter:me,separator:Dt,variant:Re,disabled:Fe,status:qe,autoFocus:nt,mask:st,type:we,onInput:Be,inputMode:It}=Tt,Mt=ft(Tt,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:kt,direction:Yt}=b.useContext(rt.E_),At=kt("otp",ne),vn=(0,ve.Z)(Mt,{aria:!0,data:!0,attr:!0}),[Gt,_e,Bt]=mt(At),Ut=(0,at.Z)(yn=>oe!=null?oe:yn),on=b.useContext(xe.aM),Le=(0,Lt.F)(on.status,qe),xt=b.useMemo(()=>Object.assign(Object.assign({},on),{status:Le,hasFeedback:!1,feedbackIcon:null}),[on,Le]),zt=b.useRef(null),nn=b.useRef({});b.useImperativeHandle(ie,()=>({focus:()=>{var yn;(yn=nn.current[0])===null||yn===void 0||yn.focus()},blur:()=>{var yn;for(let xn=0;xn<te;xn+=1)(yn=nn.current[xn])===null||yn===void 0||yn.blur()},nativeElement:zt.current}));const Sn=yn=>me?me(yn):yn,[zn,rr]=b.useState(()=>jt(Sn(se||"")));b.useEffect(()=>{re!==void 0&&rr(jt(re))},[re]);const pr=(0,tt.Z)(yn=>{rr(yn),Be&&Be(yn),le&&yn.length===te&&yn.every(xn=>xn)&&yn.some((xn,qt)=>zn[qt]!==xn)&&le(yn.join(""))}),kn=(0,tt.Z)((yn,xn)=>{let qt=(0,de.Z)(zn);for(let Fn=0;Fn<yn;Fn+=1)qt[Fn]||(qt[Fn]="");xn.length<=1?qt[yn]=xn:qt=qt.slice(0,yn).concat(jt(xn)),qt=qt.slice(0,te);for(let Fn=qt.length-1;Fn>=0&&!qt[Fn];Fn-=1)qt.pop();const En=Sn(qt.map(Fn=>Fn||" ").join(""));return qt=jt(En).map((Fn,Tn)=>Fn===" "&&!qt[Tn]?qt[Tn]:Fn),qt}),dr=(yn,xn)=>{var qt;const En=kn(yn,xn),Fn=Math.min(yn+xn.length,te-1);Fn!==yn&&En[yn]!==void 0&&((qt=nn.current[Fn])===null||qt===void 0||qt.focus()),pr(En)},Ye=yn=>{var xn;(xn=nn.current[yn])===null||xn===void 0||xn.focus()},Qt={variant:Re,disabled:Fe,status:Le,mask:st,type:we,inputMode:It};return Gt(b.createElement("div",Object.assign({},vn,{ref:zt,className:fe()(At,{[`${At}-sm`]:Ut==="small",[`${At}-lg`]:Ut==="large",[`${At}-rtl`]:Yt==="rtl"},Bt,_e)}),b.createElement(xe.aM.Provider,{value:xt},Array.from({length:te}).map((yn,xn)=>{const qt=`otp-${xn}`,En=zn[xn]||"";return b.createElement(b.Fragment,{key:qt},b.createElement(ut,Object.assign({ref:Fn=>{nn.current[xn]=Fn},index:xn,size:Ut,htmlSize:1,className:`${At}-input`,onChange:dr,value:En,onActiveChange:Ye,autoFocus:xn===0&&nt},Qt)),xn<te-1&&b.createElement(Ot,{separator:Dt,index:xn,prefixCls:At}))}))))}),pe=z(73331),Je=z(15277),Xe=z(2738),ue=z(8654),Nt=z(2171),et=z(23826),wt=function(Tt,ie){var ne={};for(var te in Tt)Object.prototype.hasOwnProperty.call(Tt,te)&&ie.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++)ie.indexOf(te[oe])<0&&Object.prototype.propertyIsEnumerable.call(Tt,te[oe])&&(ne[te[oe]]=Tt[te[oe]]);return ne};const ln=Tt=>Tt?b.createElement(Je.Z,null):b.createElement(pe.Z,null),ke={click:"onClick",hover:"onMouseOver"};var Ct=b.forwardRef((Tt,ie)=>{const{disabled:ne,action:te="click",visibilityToggle:oe=!0,iconRender:se=ln}=Tt,re=b.useContext(Nt.Z),le=ne!=null?ne:re,me=typeof oe=="object"&&oe.visible!==void 0,[Dt,Re]=(0,b.useState)(()=>me?oe.visible:!1),Fe=(0,b.useRef)(null);b.useEffect(()=>{me&&Re(oe.visible)},[me,oe]);const qe=(0,et.Z)(Fe),nt=()=>{var Ut;if(le)return;Dt&&qe();const on=!Dt;Re(on),typeof oe=="object"&&((Ut=oe.onVisibleChange)===null||Ut===void 0||Ut.call(oe,on))},st=Ut=>{const on=ke[te]||"",Le=se(Dt),xt={[on]:nt,className:`${Ut}-icon`,key:"passwordIcon",onMouseDown:zt=>{zt.preventDefault()},onMouseUp:zt=>{zt.preventDefault()}};return b.cloneElement(b.isValidElement(Le)?Le:b.createElement("span",null,Le),xt)},{className:we,prefixCls:Be,inputPrefixCls:It,size:Mt}=Tt,kt=wt(Tt,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:Yt}=b.useContext(rt.E_),At=Yt("input",It),vn=Yt("input-password",Be),Gt=oe&&st(vn),_e=fe()(vn,we,{[`${vn}-${Mt}`]:!!Mt}),Bt=Object.assign(Object.assign({},(0,Xe.Z)(kt,["suffix","iconRender","visibilityToggle"])),{type:Dt?"text":"password",className:_e,prefixCls:At,suffix:Gt});return Mt&&(Bt.size=Mt),b.createElement(Ae.Z,Object.assign({ref:(0,ue.sQ)(ie,Fe)},Bt))}),Pt=z(47472),Kt=z(22703),Ce=z(7939),ot=z(70045),lt=function(Tt,ie){var ne={};for(var te in Tt)Object.prototype.hasOwnProperty.call(Tt,te)&&ie.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++)ie.indexOf(te[oe])<0&&Object.prototype.propertyIsEnumerable.call(Tt,te[oe])&&(ne[te[oe]]=Tt[te[oe]]);return ne},ct=b.forwardRef((Tt,ie)=>{const{prefixCls:ne,inputPrefixCls:te,className:oe,size:se,suffix:re,enterButton:le=!1,addonAfter:me,loading:Dt,disabled:Re,onSearch:Fe,onChange:qe,onCompositionStart:nt,onCompositionEnd:st}=Tt,we=lt(Tt,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:Be,direction:It}=b.useContext(rt.E_),Mt=b.useRef(!1),kt=Be("input-search",ne),Yt=Be("input",te),{compactSize:At}=(0,ot.ri)(kt,It),vn=(0,at.Z)(dr=>{var Ye;return(Ye=se!=null?se:At)!==null&&Ye!==void 0?Ye:dr}),Gt=b.useRef(null),_e=dr=>{dr!=null&&dr.target&&dr.type==="click"&&Fe&&Fe(dr.target.value,dr,{source:"clear"}),qe==null||qe(dr)},Bt=dr=>{var Ye;document.activeElement===((Ye=Gt.current)===null||Ye===void 0?void 0:Ye.input)&&dr.preventDefault()},Ut=dr=>{var Ye,Qt;Fe&&Fe((Qt=(Ye=Gt.current)===null||Ye===void 0?void 0:Ye.input)===null||Qt===void 0?void 0:Qt.value,dr,{source:"input"})},on=dr=>{Mt.current||Dt||Ut(dr)},Le=typeof le=="boolean"?b.createElement(Pt.Z,null):null,xt=`${kt}-button`;let zt;const nn=le||{},Sn=nn.type&&nn.type.__ANT_BUTTON===!0;Sn||nn.type==="button"?zt=(0,Kt.Tm)(nn,Object.assign({onMouseDown:Bt,onClick:dr=>{var Ye,Qt;(Qt=(Ye=nn==null?void 0:nn.props)===null||Ye===void 0?void 0:Ye.onClick)===null||Qt===void 0||Qt.call(Ye,dr),Ut(dr)},key:"enterButton"},Sn?{className:xt,size:vn}:{})):zt=b.createElement(Ce.ZP,{className:xt,type:le?"primary":void 0,size:vn,disabled:Re,key:"enterButton",onMouseDown:Bt,onClick:Ut,loading:Dt,icon:Le},le),me&&(zt=[zt,(0,Kt.Tm)(me,{key:"addonAfter"})]);const zn=fe()(kt,{[`${kt}-rtl`]:It==="rtl",[`${kt}-${vn}`]:!!vn,[`${kt}-with-button`]:!!le},oe),rr=Object.assign(Object.assign({},we),{className:zn,prefixCls:Yt,type:"search"}),pr=dr=>{Mt.current=!0,nt==null||nt(dr)},kn=dr=>{Mt.current=!1,st==null||st(dr)};return b.createElement(Ae.Z,Object.assign({ref:(0,ue.sQ)(Gt,ie),onPressEnter:on},rr,{size:vn,onCompositionStart:pr,onCompositionEnd:kn,addonAfter:zt,suffix:re,onChange:_e,disabled:Re}))}),$t=z(79809);const vt=Ae.Z;vt.Group=Qe,vt.Search=ct,vt.TextArea=$t.Z,vt.Password=Ct,vt.OTP=Et;var gn=vt},24303:function(Kn,cn,z){"use strict";z.d(cn,{D:function(){return ft},Z:function(){return yt}});var b=z(59301),Pe=z(54476),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"},rt=fe,xe=z(7657),ge=function(pe,Je){return b.createElement(xe.Z,(0,Pe.Z)({},pe,{ref:Je,icon:rt}))},Ee=b.forwardRef(ge),Qe=Ee,Ae=z(33853),de=z(38819),tt=z(92310),ve=z.n(tt),Lt=z(2738),at=z(48755),Ve=z(6989),Ne=z(36237),Ze=z(48923),pt=z(16931);const mt=Et=>{const{componentCls:pe,siderBg:Je,motionDurationMid:Xe,motionDurationSlow:ue,antCls:Nt,triggerHeight:et,triggerColor:wt,triggerBg:ln,headerHeight:ke,zeroTriggerWidth:he,zeroTriggerHeight:Ct,borderRadiusLG:Pt,lightSiderBg:Kt,lightTriggerColor:Ce,lightTriggerBg:ot,bodyBg:lt}=Et;return{[pe]:{position:"relative",minWidth:0,background:Je,transition:`all ${Xe}, background 0s`,"&-has-trigger":{paddingBottom:et},"&-right":{order:1},[`${pe}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${Nt}-menu${Nt}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${pe}-children`]:{overflow:"hidden"},[`${pe}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:et,color:wt,lineHeight:(0,Ne.unit)(et),textAlign:"center",background:ln,cursor:"pointer",transition:`all ${Xe}`},[`${pe}-zero-width-trigger`]:{position:"absolute",top:ke,insetInlineEnd:Et.calc(he).mul(-1).equal(),zIndex:1,width:he,height:Ct,color:wt,fontSize:Et.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Je,borderRadius:`0 ${(0,Ne.unit)(Pt)} ${(0,Ne.unit)(Pt)} 0`,cursor:"pointer",transition:`background ${ue} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${ue}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:Et.calc(he).mul(-1).equal(),borderRadius:`${(0,Ne.unit)(Pt)} 0 0 ${(0,Ne.unit)(Pt)}`}},"&-light":{background:Kt,[`${pe}-trigger`]:{color:Ce,background:ot},[`${pe}-zero-width-trigger`]:{color:Ce,background:ot,border:`1px solid ${lt}`,borderInlineStart:0}}}}};var Xt=(0,pt.I$)(["Layout","Sider"],Et=>[mt(Et)],Ze.eh,{deprecatedTokens:Ze.jn}),He=function(Et,pe){var Je={};for(var Xe in Et)Object.prototype.hasOwnProperty.call(Et,Xe)&&pe.indexOf(Xe)<0&&(Je[Xe]=Et[Xe]);if(Et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ue=0,Xe=Object.getOwnPropertySymbols(Et);ue<Xe.length;ue++)pe.indexOf(Xe[ue])<0&&Object.prototype.propertyIsEnumerable.call(Et,Xe[ue])&&(Je[Xe[ue]]=Et[Xe[ue]]);return Je};const Ke={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},ut=Et=>!Number.isNaN(Number.parseFloat(Et))&&isFinite(Et),ft=b.createContext({}),jt=(()=>{let Et=0;return function(){let pe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Et+=1,`${pe}${Et}`}})();var yt=b.forwardRef((Et,pe)=>{const{prefixCls:Je,className:Xe,trigger:ue,children:Nt,defaultCollapsed:et=!1,theme:wt="dark",style:ln={},collapsible:ke=!1,reverseArrow:he=!1,width:Ct=200,collapsedWidth:Pt=80,zeroWidthTriggerStyle:Kt,breakpoint:Ce,onCollapse:ot,onBreakpoint:lt}=Et,Wt=He(Et,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:ct}=(0,b.useContext)(Ve.V),[$t,vt]=(0,b.useState)("collapsed"in Et?Et.collapsed:et),[gn,Tt]=(0,b.useState)(!1);(0,b.useEffect)(()=>{"collapsed"in Et&&vt(Et.collapsed)},[Et.collapsed]);const ie=(vn,Gt)=>{"collapsed"in Et||vt(vn),ot==null||ot(vn,Gt)},{getPrefixCls:ne,direction:te}=(0,b.useContext)(at.E_),oe=ne("layout-sider",Je),[se,re,le]=Xt(oe),me=(0,b.useRef)(null);me.current=vn=>{Tt(vn.matches),lt==null||lt(vn.matches),$t!==vn.matches&&ie(vn.matches,"responsive")},(0,b.useEffect)(()=>{function vn(_e){return me.current(_e)}let Gt;if(typeof window!="undefined"){const{matchMedia:_e}=window;if(_e&&Ce&&Ce in Ke){Gt=_e(`screen and (max-width: ${Ke[Ce]})`);try{Gt.addEventListener("change",vn)}catch(Bt){Gt.addListener(vn)}vn(Gt)}}return()=>{try{Gt==null||Gt.removeEventListener("change",vn)}catch(_e){Gt==null||Gt.removeListener(vn)}}},[Ce]),(0,b.useEffect)(()=>{const vn=jt("ant-sider-");return ct.addSider(vn),()=>ct.removeSider(vn)},[]);const Dt=()=>{ie(!$t,"clickTrigger")},Re=(0,Lt.Z)(Wt,["collapsed"]),Fe=$t?Pt:Ct,qe=ut(Fe)?`${Fe}px`:String(Fe),nt=parseFloat(String(Pt||0))===0?b.createElement("span",{onClick:Dt,className:ve()(`${oe}-zero-width-trigger`,`${oe}-zero-width-trigger-${he?"right":"left"}`),style:Kt},ue||b.createElement(Qe,null)):null,st=te==="rtl"==!he,It={expanded:st?b.createElement(de.Z,null):b.createElement(Ae.Z,null),collapsed:st?b.createElement(Ae.Z,null):b.createElement(de.Z,null)}[$t?"collapsed":"expanded"],Mt=ue!==null?nt||b.createElement("div",{className:`${oe}-trigger`,onClick:Dt,style:{width:qe}},ue||It):null,kt=Object.assign(Object.assign({},ln),{flex:`0 0 ${qe}`,maxWidth:qe,minWidth:qe,width:qe}),Yt=ve()(oe,`${oe}-${wt}`,{[`${oe}-collapsed`]:!!$t,[`${oe}-has-trigger`]:ke&&ue!==null&&!nt,[`${oe}-below`]:!!gn,[`${oe}-zero-width`]:parseFloat(qe)===0},Xe,re,le),At=b.useMemo(()=>({siderCollapsed:$t}),[$t]);return se(b.createElement(ft.Provider,{value:At},b.createElement("aside",Object.assign({className:Yt},Re,{style:kt,ref:pe}),b.createElement("div",{className:`${oe}-children`},Nt),ke||gn&&nt?Mt:null)))})},6989:function(Kn,cn,z){"use strict";z.d(cn,{V:function(){return Pe}});var b=z(59301);const Pe=b.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}})},48923:function(Kn,cn,z){"use strict";z.d(cn,{eh:function(){return rt},jn:function(){return xe}});var b=z(36237),Pe=z(16931);const fe=ge=>{const{antCls:Ee,componentCls:Qe,colorText:Ae,footerBg:de,headerHeight:tt,headerPadding:ve,headerColor:Lt,footerPadding:at,fontSize:Ve,bodyBg:Ne,headerBg:Ze}=ge;return{[Qe]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Ne,"&, *":{boxSizing:"border-box"},[`&${Qe}-has-sider`]:{flexDirection:"row",[`> ${Qe}, > ${Qe}-content`]:{width:0}},[`${Qe}-header, &${Qe}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${Qe}-header`]:{height:tt,padding:ve,color:Lt,lineHeight:(0,b.unit)(tt),background:Ze,[`${Ee}-menu`]:{lineHeight:"inherit"}},[`${Qe}-footer`]:{padding:at,color:Ae,fontSize:Ve,background:de},[`${Qe}-content`]:{flex:"auto",color:Ae,minHeight:0}}},rt=ge=>{const{colorBgLayout:Ee,controlHeight:Qe,controlHeightLG:Ae,colorText:de,controlHeightSM:tt,marginXXS:ve,colorTextLightSolid:Lt,colorBgContainer:at}=ge,Ve=Ae*1.25;return{colorBgHeader:"#001529",colorBgBody:Ee,colorBgTrigger:"#002140",bodyBg:Ee,headerBg:"#001529",headerHeight:Qe*2,headerPadding:`0 ${Ve}px`,headerColor:de,footerPadding:`${tt}px ${Ve}px`,footerBg:Ee,siderBg:"#001529",triggerHeight:Ae+ve*2,triggerBg:"#002140",triggerColor:Lt,zeroTriggerWidth:Ae,zeroTriggerHeight:Ae,lightSiderBg:at,lightTriggerBg:at,lightTriggerColor:de}},xe=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];cn.ZP=(0,Pe.I$)("Layout",ge=>[fe(ge)],rt,{deprecatedTokens:xe})},78857:function(Kn,cn,z){"use strict";z.d(cn,{J:function(){return ge}});var b=z(59301),Pe=z(8654),fe=z(62487),rt=function(Ee,Qe){var Ae={};for(var de in Ee)Object.prototype.hasOwnProperty.call(Ee,de)&&Qe.indexOf(de)<0&&(Ae[de]=Ee[de]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tt=0,de=Object.getOwnPropertySymbols(Ee);tt<de.length;tt++)Qe.indexOf(de[tt])<0&&Object.prototype.propertyIsEnumerable.call(Ee,de[tt])&&(Ae[de[tt]]=Ee[de[tt]]);return Ae};const xe=b.createContext(null),ge=b.forwardRef((Ee,Qe)=>{const{children:Ae}=Ee,de=rt(Ee,["children"]),tt=b.useContext(xe),ve=b.useMemo(()=>Object.assign(Object.assign({},tt),de),[tt,de.prefixCls,de.mode,de.selectable,de.rootClassName]),Lt=(0,Pe.t4)(Ae),at=(0,Pe.x1)(Qe,Lt?(0,Pe.C4)(Ae):null);return b.createElement(xe.Provider,{value:ve},b.createElement(fe.Z,{space:!0},Lt?b.cloneElement(Ae,{ref:at}):Ae))});cn.Z=xe},93041:function(Kn,cn,z){"use strict";z.d(cn,{default:function(){return se}});var b=z(59301),Pe=z(28321),fe=z(24303),rt=z(18785),xe=z(92310),ge=z.n(xe),Ee=z(6089),Qe=z(2738),Ae=z(86641),de=z(22703),tt=z(48755),ve=z(83397),at=(0,b.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),Ve=function(re,le){var me={};for(var Dt in re)Object.prototype.hasOwnProperty.call(re,Dt)&&le.indexOf(Dt)<0&&(me[Dt]=re[Dt]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,Dt=Object.getOwnPropertySymbols(re);Re<Dt.length;Re++)le.indexOf(Dt[Re])<0&&Object.prototype.propertyIsEnumerable.call(re,Dt[Re])&&(me[Dt[Re]]=re[Dt[Re]]);return me},Ze=re=>{const{prefixCls:le,className:me,dashed:Dt}=re,Re=Ve(re,["prefixCls","className","dashed"]),{getPrefixCls:Fe}=b.useContext(tt.E_),qe=Fe("menu",le),nt=ge()({[`${qe}-item-divider-dashed`]:!!Dt},me);return b.createElement(Pe.iz,Object.assign({className:nt},Re))},pt=z(11592),mt=z(25399),He=re=>{var le;const{className:me,children:Dt,icon:Re,title:Fe,danger:qe,extra:nt}=re,{prefixCls:st,firstLevel:we,direction:Be,disableMenuItemTitleTooltip:It,inlineCollapsed:Mt}=b.useContext(at),kt=Bt=>{const Ut=Dt==null?void 0:Dt[0],on=b.createElement("span",{className:ge()(`${st}-title-content`,{[`${st}-title-content-with-extra`]:!!nt||nt===0})},Dt);return(!Re||b.isValidElement(Dt)&&Dt.type==="span")&&Dt&&Bt&&we&&typeof Ut=="string"?b.createElement("div",{className:`${st}-inline-collapsed-noicon`},Ut.charAt(0)):on},{siderCollapsed:Yt}=b.useContext(fe.D);let At=Fe;typeof Fe=="undefined"?At=we?Dt:"":Fe===!1&&(At="");const vn={title:At};!Yt&&!Mt&&(vn.title=null,vn.open=!1);const Gt=(0,pt.Z)(Dt).length;let _e=b.createElement(Pe.ck,Object.assign({},(0,Qe.Z)(re,["title","icon","danger"]),{className:ge()({[`${st}-item-danger`]:qe,[`${st}-item-only-child`]:(Re?Gt+1:Gt)===1},me),title:typeof Fe=="string"?Fe:void 0}),(0,de.Tm)(Re,{className:ge()(b.isValidElement(Re)?(le=Re.props)===null||le===void 0?void 0:le.className:"",`${st}-item-icon`)}),kt(Mt));return It||(_e=b.createElement(mt.Z,Object.assign({},vn,{placement:Be==="rtl"?"left":"right",classNames:{root:`${st}-inline-collapsed-tooltip`}}),_e)),_e},Ke=z(78857),ut=z(36237),ft=z(17835),jt=z(63356),Ot=z(34961),yt=z(46e3),Et=z(34925),pe=z(16931),Je=z(51636),ue=re=>{const{componentCls:le,motionDurationSlow:me,horizontalLineHeight:Dt,colorSplit:Re,lineWidth:Fe,lineType:qe,itemPaddingInline:nt}=re;return{[`${le}-horizontal`]:{lineHeight:Dt,border:0,borderBottom:`${(0,ut.unit)(Fe)} ${qe} ${Re}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${le}-item, ${le}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:nt},[`> ${le}-item:hover,
|
|
|
> ${le}-item-active,
|
|
|
> ${le}-submenu ${le}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${le}-item, ${le}-submenu-title`]:{transition:[`border-color ${me}`,`background ${me}`].join(",")},[`${le}-submenu-arrow`]:{display:"none"}}}},et=re=>{let{componentCls:le,menuArrowOffset:me,calc:Dt}=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,ut.unit)(Dt(me).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${(0,ut.unit)(me)})`}}}}};const wt=re=>Object.assign({},(0,jt.oN)(re));var ke=(re,le)=>{const{componentCls:me,itemColor:Dt,itemSelectedColor:Re,subMenuItemSelectedColor:Fe,groupTitleColor:qe,itemBg:nt,subMenuItemBg:st,itemSelectedBg:we,activeBarHeight:Be,activeBarWidth:It,activeBarBorderWidth:Mt,motionDurationSlow:kt,motionEaseInOut:Yt,motionEaseOut:At,itemPaddingInline:vn,motionDurationMid:Gt,itemHoverColor:_e,lineType:Bt,colorSplit:Ut,itemDisabledColor:on,dangerItemColor:Le,dangerItemHoverColor:xt,dangerItemSelectedColor:zt,dangerItemActiveBg:nn,dangerItemSelectedBg:Sn,popupBg:zn,itemHoverBg:rr,itemActiveBg:pr,menuSubMenuBg:kn,horizontalItemSelectedColor:dr,horizontalItemSelectedBg:Ye,horizontalItemBorderRadius:Qt,horizontalItemHoverBg:yn}=re;return{[`${me}-${le}, ${me}-${le} > ${me}`]:{color:Dt,background:nt,[`&${me}-root:focus-visible`]:Object.assign({},wt(re)),[`${me}-item`]:{"&-group-title, &-extra":{color:qe}},[`${me}-submenu-selected > ${me}-submenu-title`]:{color:Fe},[`${me}-item, ${me}-submenu-title`]:{color:Dt,[`&:not(${me}-item-disabled):focus-visible`]:Object.assign({},wt(re))},[`${me}-item-disabled, ${me}-submenu-disabled`]:{color:`${on} !important`},[`${me}-item:not(${me}-item-selected):not(${me}-submenu-selected)`]:{[`&:hover, > ${me}-submenu-title:hover`]:{color:_e}},[`&:not(${me}-horizontal)`]:{[`${me}-item:not(${me}-item-selected)`]:{"&:hover":{backgroundColor:rr},"&:active":{backgroundColor:pr}},[`${me}-submenu-title`]:{"&:hover":{backgroundColor:rr},"&:active":{backgroundColor:pr}}},[`${me}-item-danger`]:{color:Le,[`&${me}-item:hover`]:{[`&:not(${me}-item-selected):not(${me}-submenu-selected)`]:{color:xt}},[`&${me}-item:active`]:{background:nn}},[`${me}-item a`]:{"&, &:hover":{color:"inherit"}},[`${me}-item-selected`]:{color:Re,[`&${me}-item-danger`]:{color:zt},"a, a:hover":{color:"inherit"}},[`& ${me}-item-selected`]:{backgroundColor:we,[`&${me}-item-danger`]:{backgroundColor:Sn}},[`&${me}-submenu > ${me}`]:{backgroundColor:kn},[`&${me}-popup > ${me}`]:{backgroundColor:zn},[`&${me}-submenu-popup > ${me}`]:{backgroundColor:zn},[`&${me}-horizontal`]:Object.assign(Object.assign({},le==="dark"?{borderBottom:0}:{}),{[`> ${me}-item, > ${me}-submenu`]:{top:Mt,marginTop:re.calc(Mt).mul(-1).equal(),marginBottom:0,borderRadius:Qt,"&::after":{position:"absolute",insetInline:vn,bottom:0,borderBottom:`${(0,ut.unit)(Be)} solid transparent`,transition:`border-color ${kt} ${Yt}`,content:'""'},"&:hover, &-active, &-open":{background:yn,"&::after":{borderBottomWidth:Be,borderBottomColor:dr}},"&-selected":{color:dr,backgroundColor:Ye,"&:hover":{backgroundColor:Ye},"&::after":{borderBottomWidth:Be,borderBottomColor:dr}}}}),[`&${me}-root`]:{[`&${me}-inline, &${me}-vertical`]:{borderInlineEnd:`${(0,ut.unit)(Mt)} ${Bt} ${Ut}`}},[`&${me}-inline`]:{[`${me}-sub${me}-inline`]:{background:st},[`${me}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${(0,ut.unit)(It)} solid ${Re}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Gt} ${At}`,`opacity ${Gt} ${At}`].join(","),content:'""'},[`&${me}-item-danger`]:{"&::after":{borderInlineEndColor:zt}}},[`${me}-selected, ${me}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Gt} ${Yt}`,`opacity ${Gt} ${Yt}`].join(",")}}}}}};const he=re=>{const{componentCls:le,itemHeight:me,itemMarginInline:Dt,padding:Re,menuArrowSize:Fe,marginXS:qe,itemMarginBlock:nt,itemWidth:st,itemPaddingInline:we}=re,Be=re.calc(Fe).add(Re).add(qe).equal();return{[`${le}-item`]:{position:"relative",overflow:"hidden"},[`${le}-item, ${le}-submenu-title`]:{height:me,lineHeight:(0,ut.unit)(me),paddingInline:we,overflow:"hidden",textOverflow:"ellipsis",marginInline:Dt,marginBlock:nt,width:st},[`> ${le}-item,
|
|
|
> ${le}-submenu > ${le}-submenu-title`]:{height:me,lineHeight:(0,ut.unit)(me)},[`${le}-item-group-list ${le}-submenu-title,
|
|
|
${le}-submenu-title`]:{paddingInlineEnd:Be}}};var Pt=re=>{const{componentCls:le,iconCls:me,itemHeight:Dt,colorTextLightSolid:Re,dropdownWidth:Fe,controlHeightLG:qe,motionEaseOut:nt,paddingXL:st,itemMarginInline:we,fontSizeLG:Be,motionDurationFast:It,motionDurationSlow:Mt,paddingXS:kt,boxShadowSecondary:Yt,collapsedWidth:At,collapsedIconSize:vn}=re,Gt={height:Dt,lineHeight:(0,ut.unit)(Dt),listStylePosition:"inside",listStyleType:"disc"};return[{[le]:{"&-inline, &-vertical":Object.assign({[`&${le}-root`]:{boxShadow:"none"}},he(re))},[`${le}-submenu-popup`]:{[`${le}-vertical`]:Object.assign(Object.assign({},he(re)),{boxShadow:Yt})}},{[`${le}-submenu-popup ${le}-vertical${le}-sub`]:{minWidth:Fe,maxHeight:`calc(100vh - ${(0,ut.unit)(re.calc(qe).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 ${Mt}`,`background ${Mt}`,`padding ${It} ${nt}`].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`]:Gt,[`& ${le}-item-group-title`]:{paddingInlineStart:st}},[`${le}-item`]:Gt}},{[`${le}-inline-collapsed`]:{width:At,[`&${le}-root`]:{[`${le}-item, ${le}-submenu ${le}-submenu-title`]:{[`> ${le}-inline-collapsed-noicon`]:{fontSize:Be,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,ut.unit)(re.calc(vn).div(2).equal())} - ${(0,ut.unit)(we)})`,textOverflow:"clip",[`
|
|
|
${le}-submenu-arrow,
|
|
|
${le}-submenu-expand-icon
|
|
|
`]:{opacity:0},[`${le}-item-icon, ${me}`]:{margin:0,fontSize:vn,lineHeight:(0,ut.unit)(Dt),"+ span":{display:"inline-block",opacity:0}}},[`${le}-item-icon, ${me}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${le}-item-icon, ${me}`]:{display:"none"},"a, a:hover":{color:Re}},[`${le}-item-group-title`]:Object.assign(Object.assign({},jt.vS),{paddingInline:kt})}}]};const Kt=re=>{const{componentCls:le,motionDurationSlow:me,motionDurationMid:Dt,motionEaseInOut:Re,motionEaseOut:Fe,iconCls:qe,iconSize:nt,iconMarginInlineEnd:st}=re;return{[`${le}-item, ${le}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${me}`,`background ${me}`,`padding calc(${me} + 0.1s) ${Re}`].join(","),[`${le}-item-icon, ${qe}`]:{minWidth:nt,fontSize:nt,transition:[`font-size ${Dt} ${Fe}`,`margin ${me} ${Re}`,`color ${me}`].join(","),"+ span":{marginInlineStart:st,opacity:1,transition:[`opacity ${me} ${Re}`,`margin ${me}`,`color ${me}`].join(",")}},[`${le}-item-icon`]:Object.assign({},(0,jt.Ro)()),[`&${le}-item-only-child`]:{[`> ${qe}, > ${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"}}}},Ce=re=>{const{componentCls:le,motionDurationSlow:me,motionEaseInOut:Dt,borderRadius:Re,menuArrowSize:Fe,menuArrowOffset:qe}=re;return{[`${le}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:re.margin,width:Fe,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${me} ${Dt}, opacity ${me}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:re.calc(Fe).mul(.6).equal(),height:re.calc(Fe).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:Re,transition:[`background ${me} ${Dt}`,`transform ${me} ${Dt}`,`top ${me} ${Dt}`,`color ${me} ${Dt}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${(0,ut.unit)(re.calc(qe).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${(0,ut.unit)(qe)})`}}}}},ot=re=>{const{antCls:le,componentCls:me,fontSize:Dt,motionDurationSlow:Re,motionDurationMid:Fe,motionEaseInOut:qe,paddingXS:nt,padding:st,colorSplit:we,lineWidth:Be,zIndexPopup:It,borderRadiusLG:Mt,subMenuItemBorderRadius:kt,menuArrowSize:Yt,menuArrowOffset:At,lineType:vn,groupTitleLineHeight:Gt,groupTitleFontSize:_e}=re;return[{"":{[me]:Object.assign(Object.assign({},(0,jt.dF)()),{"&-hidden":{display:"none"}})},[`${me}-submenu-hidden`]:{display:"none"}},{[me]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,jt.Wf)(re)),(0,jt.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:Dt,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Re} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${me}-item`]:{flex:"none"}},[`${me}-item, ${me}-submenu, ${me}-submenu-title`]:{borderRadius:re.itemBorderRadius},[`${me}-item-group-title`]:{padding:`${(0,ut.unit)(nt)} ${(0,ut.unit)(st)}`,fontSize:_e,lineHeight:Gt,transition:`all ${Re}`},[`&-horizontal ${me}-submenu`]:{transition:[`border-color ${Re} ${qe}`,`background ${Re} ${qe}`].join(",")},[`${me}-submenu, ${me}-submenu-inline`]:{transition:[`border-color ${Re} ${qe}`,`background ${Re} ${qe}`,`padding ${Fe} ${qe}`].join(",")},[`${me}-submenu ${me}-sub`]:{cursor:"initial",transition:[`background ${Re} ${qe}`,`padding ${Re} ${qe}`].join(",")},[`${me}-title-content`]:{transition:`color ${Re}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${le}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${me}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:re.padding}},[`${me}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${me}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:we,borderStyle:vn,borderWidth:0,borderTopWidth:Be,marginBlock:Be,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Kt(re)),{[`${me}-item-group`]:{[`${me}-item-group-list`]:{margin:0,padding:0,[`${me}-item, ${me}-submenu-title`]:{paddingInline:`${(0,ut.unit)(re.calc(Dt).mul(2).equal())} ${(0,ut.unit)(st)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:It,borderRadius:Mt,boxShadow:"none",transformOrigin:"0 0",[`&${me}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${me}`]:Object.assign(Object.assign(Object.assign({borderRadius:Mt},Kt(re)),Ce(re)),{[`${me}-item, ${me}-submenu > ${me}-submenu-title`]:{borderRadius:kt},[`${me}-submenu-title::after`]:{transition:`transform ${Re} ${qe}`}})},"\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}}}),Ce(re)),{[`&-inline-collapsed ${me}-submenu-arrow,
|
|
|
&-inline ${me}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${(0,ut.unit)(At)})`},"&::after":{transform:`rotate(45deg) translateX(${(0,ut.unit)(re.calc(At).mul(-1).equal())})`}},[`${me}-submenu-open${me}-submenu-inline > ${me}-submenu-title > ${me}-submenu-arrow`]:{transform:`translateY(${(0,ut.unit)(re.calc(Yt).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${(0,ut.unit)(re.calc(At).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${(0,ut.unit)(At)})`}}})},{[`${le}-layout-header`]:{[me]:{lineHeight:"inherit"}}}]},lt=re=>{var le,me,Dt;const{colorPrimary:Re,colorError:Fe,colorTextDisabled:qe,colorErrorBg:nt,colorText:st,colorTextDescription:we,colorBgContainer:Be,colorFillAlter:It,colorFillContent:Mt,lineWidth:kt,lineWidthBold:Yt,controlItemBgActive:At,colorBgTextHover:vn,controlHeightLG:Gt,lineHeight:_e,colorBgElevated:Bt,marginXXS:Ut,padding:on,fontSize:Le,controlHeightSM:xt,fontSizeLG:zt,colorTextLightSolid:nn,colorErrorHover:Sn}=re,zn=(le=re.activeBarWidth)!==null&&le!==void 0?le:0,rr=(me=re.activeBarBorderWidth)!==null&&me!==void 0?me:kt,pr=(Dt=re.itemMarginInline)!==null&&Dt!==void 0?Dt:re.marginXXS,kn=new ft.FastColor(nn).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:re.zIndexPopupBase+50,radiusItem:re.borderRadiusLG,itemBorderRadius:re.borderRadiusLG,radiusSubMenuItem:re.borderRadiusSM,subMenuItemBorderRadius:re.borderRadiusSM,colorItemText:st,itemColor:st,colorItemTextHover:st,itemHoverColor:st,colorItemTextHoverHorizontal:Re,horizontalItemHoverColor:Re,colorGroupTitle:we,groupTitleColor:we,colorItemTextSelected:Re,itemSelectedColor:Re,subMenuItemSelectedColor:Re,colorItemTextSelectedHorizontal:Re,horizontalItemSelectedColor:Re,colorItemBg:Be,itemBg:Be,colorItemBgHover:vn,itemHoverBg:vn,colorItemBgActive:Mt,itemActiveBg:At,colorSubItemBg:It,subMenuItemBg:It,colorItemBgSelected:At,itemSelectedBg:At,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:zn,colorActiveBarHeight:Yt,activeBarHeight:Yt,colorActiveBarBorderSize:kt,activeBarBorderWidth:rr,colorItemTextDisabled:qe,itemDisabledColor:qe,colorDangerItemText:Fe,dangerItemColor:Fe,colorDangerItemTextHover:Fe,dangerItemHoverColor:Fe,colorDangerItemTextSelected:Fe,dangerItemSelectedColor:Fe,colorDangerItemBgActive:nt,dangerItemActiveBg:nt,colorDangerItemBgSelected:nt,dangerItemSelectedBg:nt,itemMarginInline:pr,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Gt,groupTitleLineHeight:_e,collapsedWidth:Gt*2,popupBg:Bt,itemMarginBlock:Ut,itemPaddingInline:on,horizontalLineHeight:`${Gt*1.15}px`,iconSize:Le,iconMarginInlineEnd:xt-Le,collapsedIconSize:zt,groupTitleFontSize:Le,darkItemDisabledColor:new ft.FastColor(nn).setA(.25).toRgbString(),darkItemColor:kn,darkDangerItemColor:Fe,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:nn,darkItemSelectedBg:Re,darkDangerItemSelectedBg:Fe,darkItemHoverBg:"transparent",darkGroupTitleColor:kn,darkItemHoverColor:nn,darkDangerItemHoverColor:Sn,darkDangerItemSelectedColor:nn,darkDangerItemActiveBg:Fe,itemWidth:zn?`calc(100% + ${rr}px)`:`calc(100% - ${pr*2}px)`}};var Wt=function(re){let le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:re,me=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return(0,pe.I$)("Menu",Re=>{const{colorBgElevated:Fe,controlHeightLG:qe,fontSize:nt,darkItemColor:st,darkDangerItemColor:we,darkItemBg:Be,darkSubMenuItemBg:It,darkItemSelectedColor:Mt,darkItemSelectedBg:kt,darkDangerItemSelectedBg:Yt,darkItemHoverBg:At,darkGroupTitleColor:vn,darkItemHoverColor:Gt,darkItemDisabledColor:_e,darkDangerItemHoverColor:Bt,darkDangerItemSelectedColor:Ut,darkDangerItemActiveBg:on,popupBg:Le,darkPopupBg:xt}=Re,zt=Re.calc(nt).div(7).mul(5).equal(),nn=(0,Je.mergeToken)(Re,{menuArrowSize:zt,menuHorizontalHeight:Re.calc(qe).mul(1.15).equal(),menuArrowOffset:Re.calc(zt).mul(.25).equal(),menuSubMenuBg:Fe,calc:Re.calc,popupBg:Le}),Sn=(0,Je.mergeToken)(nn,{itemColor:st,itemHoverColor:Gt,groupTitleColor:vn,itemSelectedColor:Mt,subMenuItemSelectedColor:Mt,itemBg:Be,popupBg:xt,subMenuItemBg:It,itemActiveBg:"transparent",itemSelectedBg:kt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:At,itemDisabledColor:_e,dangerItemColor:we,dangerItemHoverColor:Bt,dangerItemSelectedColor:Ut,dangerItemActiveBg:on,dangerItemSelectedBg:Yt,menuSubMenuBg:It,horizontalItemSelectedColor:Mt,horizontalItemSelectedBg:kt});return[ot(nn),ue(nn),Pt(nn),ke(nn,"light"),ke(Sn,"dark"),et(nn),(0,Ot.Z)(nn),(0,yt.oN)(nn,"slide-up"),(0,yt.oN)(nn,"slide-down"),(0,Et._y)(nn,"zoom-big")]},lt,{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:me,unitless:{groupTitleLineHeight:!0}})(re,le)},ct=z(75030),vt=re=>{var le;const{popupClassName:me,icon:Dt,title:Re,theme:Fe}=re,qe=b.useContext(at),{prefixCls:nt,inlineCollapsed:st,theme:we}=qe,Be=(0,Pe.Xl)();let It;if(!Dt)It=st&&!Be.length&&Re&&typeof Re=="string"?b.createElement("div",{className:`${nt}-inline-collapsed-noicon`},Re.charAt(0)):b.createElement("span",{className:`${nt}-title-content`},Re);else{const Yt=b.isValidElement(Re)&&Re.type==="span";It=b.createElement(b.Fragment,null,(0,de.Tm)(Dt,{className:ge()(b.isValidElement(Dt)?(le=Dt.props)===null||le===void 0?void 0:le.className:"",`${nt}-item-icon`)}),Yt?Re:b.createElement("span",{className:`${nt}-title-content`},Re))}const Mt=b.useMemo(()=>Object.assign(Object.assign({},qe),{firstLevel:!1}),[qe]),[kt]=(0,ct.Cn)("Menu");return b.createElement(at.Provider,{value:Mt},b.createElement(Pe.Wd,Object.assign({},(0,Qe.Z)(re,["icon"]),{title:It,popupClassName:ge()(nt,me,`${nt}-${Fe||we}`),popupStyle:Object.assign({zIndex:kt},re.popupStyle)})))},gn=function(re,le){var me={};for(var Dt in re)Object.prototype.hasOwnProperty.call(re,Dt)&&le.indexOf(Dt)<0&&(me[Dt]=re[Dt]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,Dt=Object.getOwnPropertySymbols(re);Re<Dt.length;Re++)le.indexOf(Dt[Re])<0&&Object.prototype.propertyIsEnumerable.call(re,Dt[Re])&&(me[Dt[Re]]=re[Dt[Re]]);return me};function Tt(re){return re===null||re===!1}const ie={item:He,submenu:vt,divider:Ze};var te=(0,b.forwardRef)((re,le)=>{var me;const Dt=b.useContext(Ke.Z),Re=Dt||{},{getPrefixCls:Fe,getPopupContainer:qe,direction:nt,menu:st}=b.useContext(tt.E_),we=Fe(),{prefixCls:Be,className:It,style:Mt,theme:kt="light",expandIcon:Yt,_internalDisableMenuItemTitleTooltip:At,inlineCollapsed:vn,siderCollapsed:Gt,rootClassName:_e,mode:Bt,selectable:Ut,onClick:on,overflowedIndicatorPopupClassName:Le}=re,xt=gn(re,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),zt=(0,Qe.Z)(xt,["collapsedWidth"]);(me=Re.validator)===null||me===void 0||me.call(Re,{mode:Bt});const nn=(0,Ee.Z)(function(){var Fn;on==null||on.apply(void 0,arguments),(Fn=Re.onClick)===null||Fn===void 0||Fn.call(Re)}),Sn=Re.mode||Bt,zn=Ut!=null?Ut:Re.selectable,rr=vn!=null?vn:Gt,pr={horizontal:{motionName:`${we}-slide-up`},inline:(0,Ae.Z)(we),other:{motionName:`${we}-zoom-big`}},kn=Fe("menu",Be||Re.prefixCls),dr=(0,ve.Z)(kn),[Ye,Qt,yn]=Wt(kn,dr,!Dt),xn=ge()(`${kn}-${kt}`,st==null?void 0:st.className,It),qt=b.useMemo(()=>{var Fn,Tn;if(typeof Yt=="function"||Tt(Yt))return Yt||null;if(typeof Re.expandIcon=="function"||Tt(Re.expandIcon))return Re.expandIcon||null;if(typeof(st==null?void 0:st.expandIcon)=="function"||Tt(st==null?void 0:st.expandIcon))return(st==null?void 0:st.expandIcon)||null;const _t=(Fn=Yt!=null?Yt:Re==null?void 0:Re.expandIcon)!==null&&Fn!==void 0?Fn:st==null?void 0:st.expandIcon;return(0,de.Tm)(_t,{className:ge()(`${kn}-submenu-expand-icon`,b.isValidElement(_t)?(Tn=_t.props)===null||Tn===void 0?void 0:Tn.className:void 0)})},[Yt,Re==null?void 0:Re.expandIcon,st==null?void 0:st.expandIcon,kn]),En=b.useMemo(()=>({prefixCls:kn,inlineCollapsed:rr||!1,direction:nt,firstLevel:!0,theme:kt,mode:Sn,disableMenuItemTitleTooltip:At}),[kn,rr,nt,At,kt]);return Ye(b.createElement(Ke.Z.Provider,{value:null},b.createElement(at.Provider,{value:En},b.createElement(Pe.ZP,Object.assign({getPopupContainer:qe,overflowedIndicator:b.createElement(rt.Z,null),overflowedIndicatorPopupClassName:ge()(kn,`${kn}-${kt}`,Le),mode:Sn,selectable:zn,onClick:nn},zt,{inlineCollapsed:rr,style:Object.assign(Object.assign({},st==null?void 0:st.style),Mt),className:xn,prefixCls:kn,direction:nt,defaultMotions:pr,expandIcon:qt,ref:le,rootClassName:ge()(_e,Qt,Re.rootClassName,yn,dr),_internalComponents:ie})))))});const oe=(0,b.forwardRef)((re,le)=>{const me=(0,b.useRef)(null),Dt=b.useContext(fe.D);return(0,b.useImperativeHandle)(le,()=>({menu:me.current,focus:Re=>{var Fe;(Fe=me.current)===null||Fe===void 0||Fe.focus(Re)}})),b.createElement(te,Object.assign({ref:me},re,Dt))});oe.Item=He,oe.SubMenu=vt,oe.Divider=Ze,oe.ItemGroup=Pe.BW;var se=oe},31709:function(Kn,cn,z){"use strict";z.d(cn,{Z:function(){return st}});var b=z(59301),Pe=z(54476),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"},rt=fe,xe=z(7657),ge=function(Be,It){return b.createElement(xe.Z,(0,Pe.Z)({},Be,{ref:It,icon:rt}))},Ee=b.forwardRef(ge),Qe=Ee,Ae=z(49198),de=z(33853),tt=z(38819),ve=z(92310),Lt=z.n(ve),at=z(20068),Ve=z(76190),Ne=z(33885),Ze=z(42978),pt=z(18929),mt=z(10228),Xt=z(26112),He=z(48736),Ke=z(17119),ut=[10,20,50,100],ft=function(Be){var It=Be.pageSizeOptions,Mt=It===void 0?ut:It,kt=Be.locale,Yt=Be.changeSize,At=Be.pageSize,vn=Be.goButton,Gt=Be.quickGo,_e=Be.rootPrefixCls,Bt=Be.disabled,Ut=Be.buildOptionText,on=Be.showSizeChanger,Le=Be.sizeChangerRender,xt=b.useState(""),zt=(0,Ze.Z)(xt,2),nn=zt[0],Sn=zt[1],zn=function(){return!nn||Number.isNaN(nn)?void 0:Number(nn)},rr=typeof Ut=="function"?Ut:function(En){return"".concat(En," ").concat(kt.items_per_page)},pr=function(Fn){Sn(Fn.target.value)},kn=function(Fn){vn||nn===""||(Sn(""),!(Fn.relatedTarget&&(Fn.relatedTarget.className.indexOf("".concat(_e,"-item-link"))>=0||Fn.relatedTarget.className.indexOf("".concat(_e,"-item"))>=0))&&(Gt==null||Gt(zn())))},dr=function(Fn){nn!==""&&(Fn.keyCode===mt.Z.ENTER||Fn.type==="click")&&(Sn(""),Gt==null||Gt(zn()))},Ye=function(){return Mt.some(function(Fn){return Fn.toString()===At.toString()})?Mt:Mt.concat([At]).sort(function(Fn,Tn){var _t=Number.isNaN(Number(Fn))?0:Number(Fn),Cn=Number.isNaN(Number(Tn))?0:Number(Tn);return _t-Cn})},Qt="".concat(_e,"-options");if(!on&&!Gt)return null;var yn=null,xn=null,qt=null;return on&&Le&&(yn=Le({disabled:Bt,size:At,onSizeChange:function(Fn){Yt==null||Yt(Number(Fn))},"aria-label":kt.page_size,className:"".concat(Qt,"-size-changer"),options:Ye().map(function(En){return{label:rr(En),value:En}})})),Gt&&(vn&&(qt=typeof vn=="boolean"?b.createElement("button",{type:"button",onClick:dr,onKeyUp:dr,disabled:Bt,className:"".concat(Qt,"-quick-jumper-button")},kt.jump_to_confirm):b.createElement("span",{onClick:dr,onKeyUp:dr},vn)),xn=b.createElement("div",{className:"".concat(Qt,"-quick-jumper")},kt.jump_to,b.createElement("input",{disabled:Bt,type:"text",value:nn,onChange:pr,onKeyUp:dr,onBlur:kn,"aria-label":kt.page}),kt.page,qt)),b.createElement("li",{className:Qt},yn,xn)},jt=ft,Ot=function(Be){var It=Be.rootPrefixCls,Mt=Be.page,kt=Be.active,Yt=Be.className,At=Be.showTitle,vn=Be.onClick,Gt=Be.onKeyPress,_e=Be.itemRender,Bt="".concat(It,"-item"),Ut=Lt()(Bt,"".concat(Bt,"-").concat(Mt),(0,at.Z)((0,at.Z)({},"".concat(Bt,"-active"),kt),"".concat(Bt,"-disabled"),!Mt),Yt),on=function(){vn(Mt)},Le=function(nn){Gt(nn,vn,Mt)},xt=_e(Mt,"page",b.createElement("a",{rel:"nofollow"},Mt));return xt?b.createElement("li",{title:At?String(Mt):null,className:Ut,onClick:on,onKeyDown:Le,tabIndex:0},xt):null},yt=Ot,Et=function(Be,It,Mt){return Mt};function pe(){}function Je(we){var Be=Number(we);return typeof Be=="number"&&!Number.isNaN(Be)&&isFinite(Be)&&Math.floor(Be)===Be}function Xe(we,Be,It){var Mt=typeof we=="undefined"?Be:we;return Math.floor((It-1)/Mt)+1}var ue=function(Be){var It=Be.prefixCls,Mt=It===void 0?"rc-pagination":It,kt=Be.selectPrefixCls,Yt=kt===void 0?"rc-select":kt,At=Be.className,vn=Be.current,Gt=Be.defaultCurrent,_e=Gt===void 0?1:Gt,Bt=Be.total,Ut=Bt===void 0?0:Bt,on=Be.pageSize,Le=Be.defaultPageSize,xt=Le===void 0?10:Le,zt=Be.onChange,nn=zt===void 0?pe:zt,Sn=Be.hideOnSinglePage,zn=Be.align,rr=Be.showPrevNextJumpers,pr=rr===void 0?!0:rr,kn=Be.showQuickJumper,dr=Be.showLessItems,Ye=Be.showTitle,Qt=Ye===void 0?!0:Ye,yn=Be.onShowSizeChange,xn=yn===void 0?pe:yn,qt=Be.locale,En=qt===void 0?Ke.Z:qt,Fn=Be.style,Tn=Be.totalBoundaryShowSizeChanger,_t=Tn===void 0?50:Tn,Cn=Be.disabled,Bn=Be.simple,Ln=Be.showTotal,Zn=Be.showSizeChanger,yr=Zn===void 0?Ut>_t:Zn,ur=Be.sizeChangerRender,Jt=Be.pageSizeOptions,wn=Be.itemRender,un=wn===void 0?Et:wn,sn=Be.jumpPrevIcon,We=Be.jumpNextIcon,dt=Be.prevIcon,ze=Be.nextIcon,gt=b.useRef(null),$e=(0,pt.Z)(10,{value:on,defaultValue:xt}),St=(0,Ze.Z)($e,2),Oe=St[0],Ft=St[1],Zt=(0,pt.Z)(1,{value:vn,defaultValue:_e,postState:function(Qr){return Math.max(1,Math.min(Qr,Xe(void 0,Oe,Ut)))}}),De=(0,Ze.Z)(Zt,2),Te=De[0],Me=De[1],je=b.useState(Te),it=(0,Ze.Z)(je,2),an=it[0],dn=it[1];(0,b.useEffect)(function(){dn(Te)},[Te]);var hn=nn!==pe,$n="current"in Be,ar=Math.max(1,Te-(dr?3:5)),Cr=Math.min(Xe(void 0,Oe,Ut),Te+(dr?3:5));function qn(Jr,Qr){var Vo=Jr||b.createElement("button",{type:"button","aria-label":Qr,className:"".concat(Mt,"-item-link")});return typeof Jr=="function"&&(Vo=b.createElement(Jr,(0,Ne.Z)({},Be))),Vo}function Gn(Jr){var Qr=Jr.target.value,Vo=Xe(void 0,Oe,Ut),Wo;return Qr===""?Wo=Qr:Number.isNaN(Number(Qr))?Wo=an:Qr>=Vo?Wo=Vo:Wo=Number(Qr),Wo}function Jn(Jr){return Je(Jr)&&Jr!==Te&&Je(Ut)&&Ut>0}var gr=Ut>Oe?kn:!1;function Ge(Jr){(Jr.keyCode===mt.Z.UP||Jr.keyCode===mt.Z.DOWN)&&Jr.preventDefault()}function bt(Jr){var Qr=Gn(Jr);switch(Qr!==an&&dn(Qr),Jr.keyCode){case mt.Z.ENTER:tn(Qr);break;case mt.Z.UP:tn(Qr-1);break;case mt.Z.DOWN:tn(Qr+1);break;default:break}}function Vt(Jr){tn(Gn(Jr))}function Ht(Jr){var Qr=Xe(Jr,Oe,Ut),Vo=Te>Qr&&Qr!==0?Qr:Te;Ft(Jr),dn(Vo),xn==null||xn(Te,Jr),Me(Vo),nn==null||nn(Vo,Jr)}function tn(Jr){if(Jn(Jr)&&!Cn){var Qr=Xe(void 0,Oe,Ut),Vo=Jr;return Jr>Qr?Vo=Qr:Jr<1&&(Vo=1),Vo!==an&&dn(Vo),Me(Vo),nn==null||nn(Vo,Oe),Vo}return Te}var An=Te>1,Vn=Te<Xe(void 0,Oe,Ut);function tr(){An&&tn(Te-1)}function Nn(){Vn&&tn(Te+1)}function or(){tn(ar)}function cr(){tn(Cr)}function nr(Jr,Qr){if(Jr.key==="Enter"||Jr.charCode===mt.Z.ENTER||Jr.keyCode===mt.Z.ENTER){for(var Vo=arguments.length,Wo=new Array(Vo>2?Vo-2:0),po=2;po<Vo;po++)Wo[po-2]=arguments[po];Qr.apply(void 0,Wo)}}function hr(Jr){nr(Jr,tr)}function lr(Jr){nr(Jr,Nn)}function Er(Jr){nr(Jr,or)}function Ir(Jr){nr(Jr,cr)}function zr(Jr){var Qr=un(Jr,"prev",qn(dt,"prev page"));return b.isValidElement(Qr)?b.cloneElement(Qr,{disabled:!An}):Qr}function Pr(Jr){var Qr=un(Jr,"next",qn(ze,"next page"));return b.isValidElement(Qr)?b.cloneElement(Qr,{disabled:!Vn}):Qr}function Or(Jr){(Jr.type==="click"||Jr.keyCode===mt.Z.ENTER)&&tn(an)}var Sr=null,Tr=(0,Xt.Z)(Be,{aria:!0,data:!0}),br=Ln&&b.createElement("li",{className:"".concat(Mt,"-total-text")},Ln(Ut,[Ut===0?0:(Te-1)*Oe+1,Te*Oe>Ut?Ut:Te*Oe])),wr=null,_n=Xe(void 0,Oe,Ut);if(Sn&&Ut<=Oe)return null;var In=[],er={rootPrefixCls:Mt,onClick:tn,onKeyPress:nr,showTitle:Qt,itemRender:un,page:-1},Rn=Te-1>0?Te-1:0,bn=Te+1<_n?Te+1:_n,ir=kn&&kn.goButton,mr=(0,Ve.Z)(Bn)==="object"?Bn.readOnly:!Bn,On=ir,Hn=null;Bn&&(ir&&(typeof ir=="boolean"?On=b.createElement("button",{type:"button",onClick:Or,onKeyUp:Or},En.jump_to_confirm):On=b.createElement("span",{onClick:Or,onKeyUp:Or},ir),On=b.createElement("li",{title:Qt?"".concat(En.jump_to).concat(Te,"/").concat(_n):null,className:"".concat(Mt,"-simple-pager")},On)),Hn=b.createElement("li",{title:Qt?"".concat(Te,"/").concat(_n):null,className:"".concat(Mt,"-simple-pager")},mr?an:b.createElement("input",{type:"text","aria-label":En.jump_to,value:an,disabled:Cn,onKeyDown:Ge,onKeyUp:bt,onChange:bt,onBlur:Vt,size:3}),b.createElement("span",{className:"".concat(Mt,"-slash")},"/"),_n));var Xn=dr?1:2;if(_n<=3+Xn*2){_n||In.push(b.createElement(yt,(0,Pe.Z)({},er,{key:"noPager",page:1,className:"".concat(Mt,"-item-disabled")})));for(var vr=1;vr<=_n;vr+=1)In.push(b.createElement(yt,(0,Pe.Z)({},er,{key:vr,page:vr,active:Te===vr})))}else{var Ar=dr?En.prev_3:En.prev_5,Fr=dr?En.next_3:En.next_5,Rr=un(ar,"jump-prev",qn(sn,"prev page")),Ur=un(Cr,"jump-next",qn(We,"next page"));pr&&(Sr=Rr?b.createElement("li",{title:Qt?Ar:null,key:"prev",onClick:or,tabIndex:0,onKeyDown:Er,className:Lt()("".concat(Mt,"-jump-prev"),(0,at.Z)({},"".concat(Mt,"-jump-prev-custom-icon"),!!sn))},Rr):null,wr=Ur?b.createElement("li",{title:Qt?Fr:null,key:"next",onClick:cr,tabIndex:0,onKeyDown:Ir,className:Lt()("".concat(Mt,"-jump-next"),(0,at.Z)({},"".concat(Mt,"-jump-next-custom-icon"),!!We))},Ur):null);var jr=Math.max(1,Te-Xn),ro=Math.min(Te+Xn,_n);Te-1<=Xn&&(ro=1+Xn*2),_n-Te<=Xn&&(jr=_n-Xn*2);for(var Yr=jr;Yr<=ro;Yr+=1)In.push(b.createElement(yt,(0,Pe.Z)({},er,{key:Yr,page:Yr,active:Te===Yr})));if(Te-1>=Xn*2&&Te!==3&&(In[0]=b.cloneElement(In[0],{className:Lt()("".concat(Mt,"-item-after-jump-prev"),In[0].props.className)}),In.unshift(Sr)),_n-Te>=Xn*2&&Te!==_n-2){var Xr=In[In.length-1];In[In.length-1]=b.cloneElement(Xr,{className:Lt()("".concat(Mt,"-item-before-jump-next"),Xr.props.className)}),In.push(wr)}jr!==1&&In.unshift(b.createElement(yt,(0,Pe.Z)({},er,{key:1,page:1}))),ro!==_n&&In.push(b.createElement(yt,(0,Pe.Z)({},er,{key:_n,page:_n})))}var eo=zr(Rn);if(eo){var vo=!An||!_n;eo=b.createElement("li",{title:Qt?En.prev_page:null,onClick:tr,tabIndex:vo?null:0,onKeyDown:hr,className:Lt()("".concat(Mt,"-prev"),(0,at.Z)({},"".concat(Mt,"-disabled"),vo)),"aria-disabled":vo},eo)}var Fo=Pr(bn);if(Fo){var Yo,Bo;Bn?(Yo=!Vn,Bo=An?0:null):(Yo=!Vn||!_n,Bo=Yo?null:0),Fo=b.createElement("li",{title:Qt?En.next_page:null,onClick:Nn,tabIndex:Bo,onKeyDown:lr,className:Lt()("".concat(Mt,"-next"),(0,at.Z)({},"".concat(Mt,"-disabled"),Yo)),"aria-disabled":Yo},Fo)}var Ko=Lt()(Mt,At,(0,at.Z)((0,at.Z)((0,at.Z)((0,at.Z)((0,at.Z)({},"".concat(Mt,"-start"),zn==="start"),"".concat(Mt,"-center"),zn==="center"),"".concat(Mt,"-end"),zn==="end"),"".concat(Mt,"-simple"),Bn),"".concat(Mt,"-disabled"),Cn));return b.createElement("ul",(0,Pe.Z)({className:Ko,style:Fn,ref:gt},Tr),br,eo,Bn?Hn:In,Fo,b.createElement(jt,{locale:En,rootPrefixCls:Mt,disabled:Cn,selectPrefixCls:Yt,changeSize:Ht,pageSize:Oe,pageSizeOptions:Jt,quickGo:gr?tn:null,goButton:On,showSizeChanger:yr,sizeChangerRender:ur}))},Nt=ue,et=z(61852),wt=z(48755),ln=z(31756),ke=z(13783),he=z(9017),Ct=z(82326),Pt=z(57700),Kt=z(36237),Ce=z(53075),ot=z(64910),lt=z(39082),Wt=z(63356),ct=z(51636),$t=z(16931);const vt=we=>{const{componentCls:Be}=we;return{[`${Be}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${Be}-item-link`]:{color:we.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${Be}-item-link`]:{color:we.colorTextDisabled,cursor:"not-allowed"}}},[`&${Be}-disabled`]:{cursor:"not-allowed",[`${Be}-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}}},[`${Be}-item-link`]:{color:we.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${Be}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${Be}-simple-pager`]:{color:we.colorTextDisabled},[`${Be}-jump-prev, ${Be}-jump-next`]:{[`${Be}-item-link-icon`]:{opacity:0},[`${Be}-item-ellipsis`]:{opacity:1}}},[`&${Be}-simple`]:{[`${Be}-prev, ${Be}-next`]:{[`&${Be}-disabled ${Be}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},gn=we=>{const{componentCls:Be}=we;return{[`&${Be}-mini ${Be}-total-text, &${Be}-mini ${Be}-simple-pager`]:{height:we.itemSizeSM,lineHeight:(0,Kt.unit)(we.itemSizeSM)},[`&${Be}-mini ${Be}-item`]:{minWidth:we.itemSizeSM,height:we.itemSizeSM,margin:0,lineHeight:(0,Kt.unit)(we.calc(we.itemSizeSM).sub(2).equal())},[`&${Be}-mini ${Be}-prev, &${Be}-mini ${Be}-next`]:{minWidth:we.itemSizeSM,height:we.itemSizeSM,margin:0,lineHeight:(0,Kt.unit)(we.itemSizeSM)},[`&${Be}-mini:not(${Be}-disabled)`]:{[`${Be}-prev, ${Be}-next`]:{[`&:hover ${Be}-item-link`]:{backgroundColor:we.colorBgTextHover},[`&:active ${Be}-item-link`]:{backgroundColor:we.colorBgTextActive},[`&${Be}-disabled:hover ${Be}-item-link`]:{backgroundColor:"transparent"}}},[`
|
|
|
&${Be}-mini ${Be}-prev ${Be}-item-link,
|
|
|
&${Be}-mini ${Be}-next ${Be}-item-link
|
|
|
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:we.itemSizeSM,lineHeight:(0,Kt.unit)(we.itemSizeSM)}},[`&${Be}-mini ${Be}-jump-prev, &${Be}-mini ${Be}-jump-next`]:{height:we.itemSizeSM,marginInlineEnd:0,lineHeight:(0,Kt.unit)(we.itemSizeSM)},[`&${Be}-mini ${Be}-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,Ce.x0)(we)),{width:we.paginationMiniQuickJumperInputWidth,height:we.controlHeightSM})}}}},Tt=we=>{const{componentCls:Be}=we;return{[`
|
|
|
&${Be}-simple ${Be}-prev,
|
|
|
&${Be}-simple ${Be}-next
|
|
|
`]:{height:we.itemSizeSM,lineHeight:(0,Kt.unit)(we.itemSizeSM),verticalAlign:"top",[`${Be}-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)}}},[`&${Be}-simple ${Be}-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"}}}}},ie=we=>{const{componentCls:Be}=we;return{[`${Be}-jump-prev, ${Be}-jump-next`]:{outline:0,[`${Be}-item-container`]:{position:"relative",[`${Be}-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"}},[`${Be}-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":{[`${Be}-item-link-icon`]:{opacity:1},[`${Be}-item-ellipsis`]:{opacity:0}}},[`
|
|
|
${Be}-prev,
|
|
|
${Be}-jump-prev,
|
|
|
${Be}-jump-next
|
|
|
`]:{marginInlineEnd:we.marginXS},[`
|
|
|
${Be}-prev,
|
|
|
${Be}-next,
|
|
|
${Be}-jump-prev,
|
|
|
${Be}-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}`},[`${Be}-prev, ${Be}-next`]:{outline:0,button:{color:we.colorText,cursor:"pointer",userSelect:"none"},[`${Be}-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 ${Be}-item-link`]:{backgroundColor:we.colorBgTextHover},[`&:active ${Be}-item-link`]:{backgroundColor:we.colorBgTextActive},[`&${Be}-disabled:hover`]:{[`${Be}-item-link`]:{backgroundColor:"transparent"}}},[`${Be}-slash`]:{marginInlineEnd:we.paginationSlashMarginInlineEnd,marginInlineStart:we.paginationSlashMarginInlineStart},[`${Be}-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,Ce.ik)(we)),(0,lt.$U)(we,{borderColor:we.colorBorder,hoverBorderColor:we.colorPrimaryHover,activeBorderColor:we.colorPrimary,activeShadow:we.activeShadow})),{"&[disabled]":Object.assign({},(0,lt.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:Be}=we;return{[`${Be}-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(${Be}-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:Be}=we;return{[Be]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Wt.Wf)(we)),{display:"flex","&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${Be}-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)),ie(we)),Tt(we)),gn(we)),vt(we)),{[`@media only screen and (max-width: ${we.screenLG}px)`]:{[`${Be}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${we.screenSM}px)`]:{[`${Be}-options`]:{display:"none"}}}),[`&${we.componentCls}-rtl`]:{direction:"rtl"}}},oe=we=>{const{componentCls:Be}=we;return{[`${Be}:not(${Be}-disabled)`]:{[`${Be}-item`]:Object.assign({},(0,Wt.Qy)(we)),[`${Be}-jump-prev, ${Be}-jump-next`]:{"&:focus-visible":Object.assign({[`${Be}-item-link-icon`]:{opacity:1},[`${Be}-item-ellipsis`]:{opacity:0}},(0,Wt.oN)(we))},[`${Be}-prev, ${Be}-next`]:{[`&:focus-visible ${Be}-item-link`]:Object.assign({},(0,Wt.oN)(we))}}}},se=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,ot.T)(we)),re=we=>(0,ct.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,ot.e)(we));var le=(0,$t.I$)("Pagination",we=>{const Be=re(we);return[te(Be),oe(Be)]},se);const me=we=>{const{componentCls:Be}=we;return{[`${Be}${Be}-bordered${Be}-disabled:not(${Be}-mini)`]:{"&, &:hover":{[`${Be}-item-link`]:{borderColor:we.colorBorder}},"&:focus-visible":{[`${Be}-item-link`]:{borderColor:we.colorBorder}},[`${Be}-item, ${Be}-item-link`]:{backgroundColor:we.colorBgContainerDisabled,borderColor:we.colorBorder,[`&:hover:not(${Be}-item-active)`]:{backgroundColor:we.colorBgContainerDisabled,borderColor:we.colorBorder,a:{color:we.colorTextDisabled}},[`&${Be}-item-active`]:{backgroundColor:we.itemActiveBgDisabled}},[`${Be}-prev, ${Be}-next`]:{"&:hover button":{backgroundColor:we.colorBgContainerDisabled,borderColor:we.colorBorder,color:we.colorTextDisabled},[`${Be}-item-link`]:{backgroundColor:we.colorBgContainerDisabled,borderColor:we.colorBorder}}},[`${Be}${Be}-bordered:not(${Be}-mini)`]:{[`${Be}-prev, ${Be}-next`]:{"&:hover button":{borderColor:we.colorPrimaryHover,backgroundColor:we.itemBg},[`${Be}-item-link`]:{backgroundColor:we.itemLinkBg,borderColor:we.colorBorder},[`&:hover ${Be}-item-link`]:{borderColor:we.colorPrimary,backgroundColor:we.itemBg,color:we.colorPrimary},[`&${Be}-disabled`]:{[`${Be}-item-link`]:{borderColor:we.colorBorder,color:we.colorTextDisabled}}},[`${Be}-item`]:{backgroundColor:we.itemBg,border:`${(0,Kt.unit)(we.lineWidth)} ${we.lineType} ${we.colorBorder}`,[`&:hover:not(${Be}-item-active)`]:{borderColor:we.colorPrimary,backgroundColor:we.itemBg,a:{color:we.colorPrimary}},"&-active":{borderColor:we.colorPrimary}}}}};var Dt=(0,$t.bk)(["Pagination","bordered"],we=>{const Be=re(we);return[me(Be)]},se);function Re(we){return(0,b.useMemo)(()=>typeof we=="boolean"?[we,{}]:we&&typeof we=="object"?[!0,we]:[void 0,void 0],[we])}var Fe=function(we,Be){var It={};for(var Mt in we)Object.prototype.hasOwnProperty.call(we,Mt)&&Be.indexOf(Mt)<0&&(It[Mt]=we[Mt]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var kt=0,Mt=Object.getOwnPropertySymbols(we);kt<Mt.length;kt++)Be.indexOf(Mt[kt])<0&&Object.prototype.propertyIsEnumerable.call(we,Mt[kt])&&(It[Mt[kt]]=we[Mt[kt]]);return It},nt=we=>{const{align:Be,prefixCls:It,selectPrefixCls:Mt,className:kt,rootClassName:Yt,style:At,size:vn,locale:Gt,responsive:_e,showSizeChanger:Bt,selectComponentClass:Ut,pageSizeOptions:on}=we,Le=Fe(we,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:xt}=(0,ke.Z)(_e),[,zt]=(0,Pt.ZP)(),{getPrefixCls:nn,direction:Sn,showSizeChanger:zn,className:rr,style:pr}=(0,wt.dj)("pagination"),kn=nn("pagination",It),[dr,Ye,Qt]=le(kn),yn=(0,ln.Z)(vn),xn=yn==="small"||!!(xt&&!yn&&_e),[qt]=(0,he.Z)("Pagination",et.Z),En=Object.assign(Object.assign({},qt),Gt),[Fn,Tn]=Re(Bt),[_t,Cn]=Re(zn),Bn=Fn!=null?Fn:_t,Ln=Tn!=null?Tn:Cn,Zn=Ut||Ct.default,yr=b.useMemo(()=>on?on.map(We=>Number(We)):void 0,[on]),ur=We=>{var dt;const{disabled:ze,size:gt,onSizeChange:$e,"aria-label":St,className:Oe,options:Ft}=We,{className:Zt,onChange:De}=Ln||{},Te=(dt=Ft.find(Me=>String(Me.value)===String(gt)))===null||dt===void 0?void 0:dt.value;return b.createElement(Zn,Object.assign({disabled:ze,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:Me=>Me.parentNode,"aria-label":St,options:Ft},Ln,{value:Te,onChange:(Me,je)=>{$e==null||$e(Me),De==null||De(Me,je)},size:xn?"small":"middle",className:Lt()(Oe,Zt)}))},Jt=b.useMemo(()=>{const We=b.createElement("span",{className:`${kn}-item-ellipsis`},"\u2022\u2022\u2022"),dt=b.createElement("button",{className:`${kn}-item-link`,type:"button",tabIndex:-1},Sn==="rtl"?b.createElement(tt.Z,null):b.createElement(de.Z,null)),ze=b.createElement("button",{className:`${kn}-item-link`,type:"button",tabIndex:-1},Sn==="rtl"?b.createElement(de.Z,null):b.createElement(tt.Z,null)),gt=b.createElement("a",{className:`${kn}-item-link`},b.createElement("div",{className:`${kn}-item-container`},Sn==="rtl"?b.createElement(Ae.Z,{className:`${kn}-item-link-icon`}):b.createElement(Qe,{className:`${kn}-item-link-icon`}),We)),$e=b.createElement("a",{className:`${kn}-item-link`},b.createElement("div",{className:`${kn}-item-container`},Sn==="rtl"?b.createElement(Qe,{className:`${kn}-item-link-icon`}):b.createElement(Ae.Z,{className:`${kn}-item-link-icon`}),We));return{prevIcon:dt,nextIcon:ze,jumpPrevIcon:gt,jumpNextIcon:$e}},[Sn,kn]),wn=nn("select",Mt),un=Lt()({[`${kn}-${Be}`]:!!Be,[`${kn}-mini`]:xn,[`${kn}-rtl`]:Sn==="rtl",[`${kn}-bordered`]:zt.wireframe},rr,kt,Yt,Ye,Qt),sn=Object.assign(Object.assign({},pr),At);return dr(b.createElement(b.Fragment,null,zt.wireframe&&b.createElement(Dt,{prefixCls:kn}),b.createElement(Nt,Object.assign({},Jt,Le,{style:sn,prefixCls:kn,selectPrefixCls:wn,className:un,locale:En,pageSizeOptions:yr,showSizeChanger:Bn,sizeChangerRender:ur}))))},st=nt},69106:function(Kn,cn,z){"use strict";z.d(cn,{aV:function(){return Ae},t5:function(){return de}});var b=z(59301),Pe=z(92310),fe=z.n(Pe),rt=z(29125),xe=z(54500),ge=z(48755),Ee=z(85074),Qe=function(ve,Lt){var at={};for(var Ve in ve)Object.prototype.hasOwnProperty.call(ve,Ve)&&Lt.indexOf(Ve)<0&&(at[Ve]=ve[Ve]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ne=0,Ve=Object.getOwnPropertySymbols(ve);Ne<Ve.length;Ne++)Lt.indexOf(Ve[Ne])<0&&Object.prototype.propertyIsEnumerable.call(ve,Ve[Ne])&&(at[Ve[Ne]]=ve[Ve[Ne]]);return at};const Ae=ve=>{let{title:Lt,content:at,prefixCls:Ve}=ve;return!Lt&&!at?null:b.createElement(b.Fragment,null,Lt&&b.createElement("div",{className:`${Ve}-title`},Lt),at&&b.createElement("div",{className:`${Ve}-inner-content`},at))},de=ve=>{const{hashId:Lt,prefixCls:at,className:Ve,style:Ne,placement:Ze="top",title:pt,content:mt,children:Xt}=ve,He=(0,xe.Z)(pt),Ke=(0,xe.Z)(mt),ut=fe()(Lt,at,`${at}-pure`,`${at}-placement-${Ze}`,Ve);return b.createElement("div",{className:ut,style:Ne},b.createElement("div",{className:`${at}-arrow`}),b.createElement(rt.G,Object.assign({},ve,{className:Lt,prefixCls:at}),Xt||b.createElement(Ae,{prefixCls:at,title:He,content:Ke})))},tt=ve=>{const{prefixCls:Lt,className:at}=ve,Ve=Qe(ve,["prefixCls","className"]),{getPrefixCls:Ne}=b.useContext(ge.E_),Ze=Ne("popover",Lt),[pt,mt,Xt]=(0,Ee.Z)(Ze);return pt(b.createElement(de,Object.assign({},Ve,{prefixCls:Ze,hashId:mt,className:fe()(at,Xt)})))};cn.ZP=tt},37639:function(Kn,cn,z){"use strict";var b=z(59301),Pe=z(92310),fe=z.n(Pe),rt=z(18929),xe=z(10228),ge=z(54500),Ee=z(86641),Qe=z(22703),Ae=z(25399),de=z(69106),tt=z(48755),ve=z(85074),Lt=function(Ne,Ze){var pt={};for(var mt in Ne)Object.prototype.hasOwnProperty.call(Ne,mt)&&Ze.indexOf(mt)<0&&(pt[mt]=Ne[mt]);if(Ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xt=0,mt=Object.getOwnPropertySymbols(Ne);Xt<mt.length;Xt++)Ze.indexOf(mt[Xt])<0&&Object.prototype.propertyIsEnumerable.call(Ne,mt[Xt])&&(pt[mt[Xt]]=Ne[mt[Xt]]);return pt};const Ve=b.forwardRef((Ne,Ze)=>{var pt,mt;const{prefixCls:Xt,title:He,content:Ke,overlayClassName:ut,placement:ft="top",trigger:jt="hover",children:Ot,mouseEnterDelay:yt=.1,mouseLeaveDelay:Et=.1,onOpenChange:pe,overlayStyle:Je={},styles:Xe,classNames:ue}=Ne,Nt=Lt(Ne,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{getPrefixCls:et,className:wt,style:ln,classNames:ke,styles:he}=(0,tt.dj)("popover"),Ct=et("popover",Xt),[Pt,Kt,Ce]=(0,ve.Z)(Ct),ot=et(),lt=fe()(ut,Kt,Ce,wt,ke.root,ue==null?void 0:ue.root),Wt=fe()(ke.body,ue==null?void 0:ue.body),[ct,$t]=(0,rt.Z)(!1,{value:(pt=Ne.open)!==null&&pt!==void 0?pt:Ne.visible,defaultValue:(mt=Ne.defaultOpen)!==null&&mt!==void 0?mt:Ne.defaultVisible}),vt=(te,oe)=>{$t(te,!0),pe==null||pe(te,oe)},gn=te=>{te.keyCode===xe.Z.ESC&&vt(!1,te)},Tt=te=>{vt(te)},ie=(0,ge.Z)(He),ne=(0,ge.Z)(Ke);return Pt(b.createElement(Ae.Z,Object.assign({placement:ft,trigger:jt,mouseEnterDelay:yt,mouseLeaveDelay:Et},Nt,{prefixCls:Ct,classNames:{root:lt,body:Wt},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},he.root),ln),Je),Xe==null?void 0:Xe.root),body:Object.assign(Object.assign({},he.body),Xe==null?void 0:Xe.body)},ref:Ze,open:ct,onOpenChange:Tt,overlay:ie||ne?b.createElement(de.aV,{prefixCls:Ct,title:ie,content:ne}):null,transitionName:(0,Ee.m)(ot,"zoom-big",Nt.transitionName),"data-popover-inject":!0}),(0,Qe.Tm)(Ot,{onKeyDown:te=>{var oe,se;b.isValidElement(Ot)&&((se=Ot==null?void 0:(oe=Ot.props).onKeyDown)===null||se===void 0||se.call(oe,te)),gn(te)}})))});Ve._InternalPanelDoNotUseOrYouWillBeFired=de.ZP,cn.Z=Ve},85074:function(Kn,cn,z){"use strict";var b=z(63356),Pe=z(34925),fe=z(37645),rt=z(36305),xe=z(34998),ge=z(16931),Ee=z(51636);const Qe=tt=>{const{componentCls:ve,popoverColor:Lt,titleMinWidth:at,fontWeightStrong:Ve,innerPadding:Ne,boxShadowSecondary:Ze,colorTextHeading:pt,borderRadiusLG:mt,zIndexPopup:Xt,titleMarginBottom:He,colorBgElevated:Ke,popoverBg:ut,titleBorderBottom:ft,innerContentPadding:jt,titlePadding:Ot}=tt;return[{[ve]:Object.assign(Object.assign({},(0,b.Wf)(tt)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:Xt,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":Ke,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${ve}-content`]:{position:"relative"},[`${ve}-inner`]:{backgroundColor:ut,backgroundClip:"padding-box",borderRadius:mt,boxShadow:Ze,padding:Ne},[`${ve}-title`]:{minWidth:at,marginBottom:He,color:pt,fontWeight:Ve,borderBottom:ft,padding:Ot},[`${ve}-inner-content`]:{color:Lt,padding:jt}})},(0,fe.ZP)(tt,"var(--antd-arrow-background-color)"),{[`${ve}-pure`]:{position:"relative",maxWidth:"none",margin:tt.sizePopupArrow,display:"inline-block",[`${ve}-content`]:{display:"inline-block"}}}]},Ae=tt=>{const{componentCls:ve}=tt;return{[ve]:xe.i.map(Lt=>{const at=tt[`${Lt}6`];return{[`&${ve}-${Lt}`]:{"--antd-arrow-background-color":at,[`${ve}-inner`]:{backgroundColor:at},[`${ve}-arrow`]:{background:"transparent"}}}})}},de=tt=>{const{lineWidth:ve,controlHeight:Lt,fontHeight:at,padding:Ve,wireframe:Ne,zIndexPopupBase:Ze,borderRadiusLG:pt,marginXS:mt,lineType:Xt,colorSplit:He,paddingSM:Ke}=tt,ut=Lt-at,ft=ut/2,jt=ut/2-ve,Ot=Ve;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:Ze+30},(0,rt.w)(tt)),(0,fe.wZ)({contentRadius:pt,limitVerticalRadius:!0})),{innerPadding:Ne?0:12,titleMarginBottom:Ne?0:mt,titlePadding:Ne?`${ft}px ${Ot}px ${jt}px`:0,titleBorderBottom:Ne?`${ve}px ${Xt} ${He}`:"none",innerContentPadding:Ne?`${Ke}px ${Ot}px`:0})};cn.Z=(0,ge.I$)("Popover",tt=>{const{colorBgElevated:ve,colorText:Lt}=tt,at=(0,Ee.mergeToken)(tt,{popoverBg:ve,popoverColor:Lt});return[Qe(at),Ae(at),(0,Pe._y)(at,"zoom-big")]},de,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]})},89787:function(Kn,cn,z){"use strict";z.d(cn,{Z:function(){return Gt}});var b=z(59301),Pe=z(17835),fe=z(29679),rt=z(40001),xe=z(19248),ge=z(99267),Ee=z(92310),Qe=z.n(Ee),Ae=z(2738),de=z(48755),tt=z(54476),ve=z(33885),Lt=z(75931),at={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},Ve=function(){var Bt=(0,b.useRef)([]),Ut=(0,b.useRef)(null);return(0,b.useEffect)(function(){var on=Date.now(),Le=!1;Bt.current.forEach(function(xt){if(xt){Le=!0;var zt=xt.style;zt.transitionDuration=".3s, .3s, .3s, .06s",Ut.current&&on-Ut.current<100&&(zt.transitionDuration="0s, 0s")}}),Le&&(Ut.current=Date.now())}),Bt.current},Ne=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],Ze=function(Bt){var Ut=(0,ve.Z)((0,ve.Z)({},at),Bt),on=Ut.className,Le=Ut.percent,xt=Ut.prefixCls,zt=Ut.strokeColor,nn=Ut.strokeLinecap,Sn=Ut.strokeWidth,zn=Ut.style,rr=Ut.trailColor,pr=Ut.trailWidth,kn=Ut.transition,dr=(0,Lt.Z)(Ut,Ne);delete dr.gapPosition;var Ye=Array.isArray(Le)?Le:[Le],Qt=Array.isArray(zt)?zt:[zt],yn=Ve(),xn=Sn/2,qt=100-Sn/2,En="M ".concat(nn==="round"?xn:0,",").concat(xn,`
|
|
|
L `).concat(nn==="round"?qt:100,",").concat(xn),Fn="0 0 100 ".concat(Sn),Tn=0;return b.createElement("svg",(0,tt.Z)({className:Qe()("".concat(xt,"-line"),on),viewBox:Fn,preserveAspectRatio:"none",style:zn},dr),b.createElement("path",{className:"".concat(xt,"-line-trail"),d:En,strokeLinecap:nn,stroke:rr,strokeWidth:pr||Sn,fillOpacity:"0"}),Ye.map(function(_t,Cn){var Bn=1;switch(nn){case"round":Bn=1-Sn/100;break;case"square":Bn=1-Sn/2/100;break;default:Bn=1;break}var Ln={strokeDasharray:"".concat(_t*Bn,"px, 100px"),strokeDashoffset:"-".concat(Tn,"px"),transition:kn||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Zn=Qt[Cn]||Qt[Qt.length-1];return Tn+=_t,b.createElement("path",{key:Cn,className:"".concat(xt,"-line-path"),d:En,strokeLinecap:nn,stroke:Zn,strokeWidth:Sn,fillOpacity:"0",ref:function(ur){yn[Cn]=ur},style:Ln})}))},pt=Ze,mt=z(76190),Xt=z(42978),He=z(47273),Ke=0,ut=(0,He.Z)();function ft(){var _e;return ut?(_e=Ke,Ke+=1):_e="TEST_OR_SSR",_e}var jt=function(_e){var Bt=b.useState(),Ut=(0,Xt.Z)(Bt,2),on=Ut[0],Le=Ut[1];return b.useEffect(function(){Le("rc_progress_".concat(ft()))},[]),_e||on},Ot=function(Bt){var Ut=Bt.bg,on=Bt.children;return b.createElement("div",{style:{width:"100%",height:"100%",background:Ut}},on)};function yt(_e,Bt){return Object.keys(_e).map(function(Ut){var on=parseFloat(Ut),Le="".concat(Math.floor(on*Bt),"%");return"".concat(_e[Ut]," ").concat(Le)})}var Et=b.forwardRef(function(_e,Bt){var Ut=_e.prefixCls,on=_e.color,Le=_e.gradientId,xt=_e.radius,zt=_e.style,nn=_e.ptg,Sn=_e.strokeLinecap,zn=_e.strokeWidth,rr=_e.size,pr=_e.gapDegree,kn=on&&(0,mt.Z)(on)==="object",dr=kn?"#FFF":void 0,Ye=rr/2,Qt=b.createElement("circle",{className:"".concat(Ut,"-circle-path"),r:xt,cx:Ye,cy:Ye,stroke:dr,strokeLinecap:Sn,strokeWidth:zn,opacity:nn===0?0:1,style:zt,ref:Bt});if(!kn)return Qt;var yn="".concat(Le,"-conic"),xn=pr?"".concat(180+pr/2,"deg"):"0deg",qt=yt(on,(360-pr)/360),En=yt(on,1),Fn="conic-gradient(from ".concat(xn,", ").concat(qt.join(", "),")"),Tn="linear-gradient(to ".concat(pr?"bottom":"top",", ").concat(En.join(", "),")");return b.createElement(b.Fragment,null,b.createElement("mask",{id:yn},Qt),b.createElement("foreignObject",{x:0,y:0,width:rr,height:rr,mask:"url(#".concat(yn,")")},b.createElement(Ot,{bg:Tn},b.createElement(Ot,{bg:Fn}))))}),pe=Et,Je=100,Xe=function(Bt,Ut,on,Le,xt,zt,nn,Sn,zn,rr){var pr=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,kn=on/100*360*((360-zt)/360),dr=zt===0?0:{bottom:0,top:180,left:90,right:-90}[nn],Ye=(100-Le)/100*Ut;zn==="round"&&Le!==100&&(Ye+=rr/2,Ye>=Ut&&(Ye=Ut-.01));var Qt=Je/2;return{stroke:typeof Sn=="string"?Sn:void 0,strokeDasharray:"".concat(Ut,"px ").concat(Bt),strokeDashoffset:Ye+pr,transform:"rotate(".concat(xt+kn+dr,"deg)"),transformOrigin:"".concat(Qt,"px ").concat(Qt,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},ue=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Nt(_e){var Bt=_e!=null?_e:[];return Array.isArray(Bt)?Bt:[Bt]}var et=function(Bt){var Ut=(0,ve.Z)((0,ve.Z)({},at),Bt),on=Ut.id,Le=Ut.prefixCls,xt=Ut.steps,zt=Ut.strokeWidth,nn=Ut.trailWidth,Sn=Ut.gapDegree,zn=Sn===void 0?0:Sn,rr=Ut.gapPosition,pr=Ut.trailColor,kn=Ut.strokeLinecap,dr=Ut.style,Ye=Ut.className,Qt=Ut.strokeColor,yn=Ut.percent,xn=(0,Lt.Z)(Ut,ue),qt=Je/2,En=jt(on),Fn="".concat(En,"-gradient"),Tn=qt-zt/2,_t=Math.PI*2*Tn,Cn=zn>0?90+zn/2:-90,Bn=_t*((360-zn)/360),Ln=(0,mt.Z)(xt)==="object"?xt:{count:xt,gap:2},Zn=Ln.count,yr=Ln.gap,ur=Nt(yn),Jt=Nt(Qt),wn=Jt.find(function($e){return $e&&(0,mt.Z)($e)==="object"}),un=wn&&(0,mt.Z)(wn)==="object",sn=un?"butt":kn,We=Xe(_t,Bn,0,100,Cn,zn,rr,pr,sn,zt),dt=Ve(),ze=function(){var St=0;return ur.map(function(Oe,Ft){var Zt=Jt[Ft]||Jt[Jt.length-1],De=Xe(_t,Bn,St,Oe,Cn,zn,rr,Zt,sn,zt);return St+=Oe,b.createElement(pe,{key:Ft,color:Zt,ptg:Oe,radius:Tn,prefixCls:Le,gradientId:Fn,style:De,strokeLinecap:sn,strokeWidth:zt,gapDegree:zn,ref:function(Me){dt[Ft]=Me},size:Je})}).reverse()},gt=function(){var St=Math.round(Zn*(ur[0]/100)),Oe=100/Zn,Ft=0;return new Array(Zn).fill(null).map(function(Zt,De){var Te=De<=St-1?Jt[0]:pr,Me=Te&&(0,mt.Z)(Te)==="object"?"url(#".concat(Fn,")"):void 0,je=Xe(_t,Bn,Ft,Oe,Cn,zn,rr,Te,"butt",zt,yr);return Ft+=(Bn-je.strokeDashoffset+yr)*100/Bn,b.createElement("circle",{key:De,className:"".concat(Le,"-circle-path"),r:Tn,cx:qt,cy:qt,stroke:Me,strokeWidth:zt,opacity:1,style:je,ref:function(an){dt[De]=an}})})};return b.createElement("svg",(0,tt.Z)({className:Qe()("".concat(Le,"-circle"),Ye),viewBox:"0 0 ".concat(Je," ").concat(Je),style:dr,id:on,role:"presentation"},xn),!Zn&&b.createElement("circle",{className:"".concat(Le,"-circle-trail"),r:Tn,cx:qt,cy:qt,stroke:pr,strokeLinecap:sn,strokeWidth:nn||zt,style:We}),Zn?gt():ze())},wt=et,ln={Line:pt,Circle:wt},ke=z(25399),he=z(68361);function Ct(_e){return!_e||_e<0?0:_e>100?100:_e}function Pt(_e){let{success:Bt,successPercent:Ut}=_e,on=Ut;return Bt&&"progress"in Bt&&(on=Bt.progress),Bt&&"percent"in Bt&&(on=Bt.percent),on}const Kt=_e=>{let{percent:Bt,success:Ut,successPercent:on}=_e;const Le=Ct(Pt({success:Ut,successPercent:on}));return[Le,Ct(Ct(Bt)-Le)]},Ce=_e=>{let{success:Bt={},strokeColor:Ut}=_e;const{strokeColor:on}=Bt;return[on||he.presetPrimaryColors.green,Ut||null]},ot=(_e,Bt,Ut)=>{var on,Le,xt,zt;let nn=-1,Sn=-1;if(Bt==="step"){const zn=Ut.steps,rr=Ut.strokeWidth;typeof _e=="string"||typeof _e=="undefined"?(nn=_e==="small"?2:14,Sn=rr!=null?rr:8):typeof _e=="number"?[nn,Sn]=[_e,_e]:[nn=14,Sn=8]=Array.isArray(_e)?_e:[_e.width,_e.height],nn*=zn}else if(Bt==="line"){const zn=Ut==null?void 0:Ut.strokeWidth;typeof _e=="string"||typeof _e=="undefined"?Sn=zn||(_e==="small"?6:8):typeof _e=="number"?[nn,Sn]=[_e,_e]:[nn=-1,Sn=8]=Array.isArray(_e)?_e:[_e.width,_e.height]}else(Bt==="circle"||Bt==="dashboard")&&(typeof _e=="string"||typeof _e=="undefined"?[nn,Sn]=_e==="small"?[60,60]:[120,120]:typeof _e=="number"?[nn,Sn]=[_e,_e]:Array.isArray(_e)&&(nn=(Le=(on=_e[0])!==null&&on!==void 0?on:_e[1])!==null&&Le!==void 0?Le:120,Sn=(zt=(xt=_e[0])!==null&&xt!==void 0?xt:_e[1])!==null&&zt!==void 0?zt:120));return[nn,Sn]},lt=3,Wt=_e=>lt/_e*100;var $t=_e=>{const{prefixCls:Bt,trailColor:Ut=null,strokeLinecap:on="round",gapPosition:Le,gapDegree:xt,width:zt=120,type:nn,children:Sn,success:zn,size:rr=zt,steps:pr}=_e,[kn,dr]=ot(rr,"circle");let{strokeWidth:Ye}=_e;Ye===void 0&&(Ye=Math.max(Wt(kn),6));const Qt={width:kn,height:dr,fontSize:kn*.15+6},yn=b.useMemo(()=>{if(xt||xt===0)return xt;if(nn==="dashboard")return 75},[xt,nn]),xn=Kt(_e),qt=Le||nn==="dashboard"&&"bottom"||void 0,En=Object.prototype.toString.call(_e.strokeColor)==="[object Object]",Fn=Ce({success:zn,strokeColor:_e.strokeColor}),Tn=Qe()(`${Bt}-inner`,{[`${Bt}-circle-gradient`]:En}),_t=b.createElement(wt,{steps:pr,percent:pr?xn[1]:xn,strokeWidth:Ye,trailWidth:Ye,strokeColor:pr?Fn[1]:Fn,strokeLinecap:on,trailColor:Ut,prefixCls:Bt,gapDegree:yn,gapPosition:qt}),Cn=kn<=20,Bn=b.createElement("div",{className:Tn,style:Qt},_t,!Cn&&Sn);return Cn?b.createElement(ke.Z,{title:Sn},Bn):Bn},vt=z(36237),gn=z(63356),Tt=z(16931),ie=z(51636);const ne="--progress-line-stroke-color",te="--progress-percent",oe=_e=>{const Bt=_e?"100%":"-100%";return new vt.Keyframes(`antProgress${_e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Bt}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Bt}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},se=_e=>{const{componentCls:Bt,iconCls:Ut}=_e;return{[Bt]:Object.assign(Object.assign({},(0,gn.Wf)(_e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:_e.fontSize},[`${Bt}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${Bt}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:_e.remainingColor,borderRadius:_e.lineBorderRadius},[`${Bt}-inner:not(${Bt}-circle-gradient)`]:{[`${Bt}-circle-path`]:{stroke:_e.defaultColor}},[`${Bt}-success-bg, ${Bt}-bg`]:{position:"relative",background:_e.defaultColor,borderRadius:_e.lineBorderRadius,transition:`all ${_e.motionDurationSlow} ${_e.motionEaseInOutCirc}`},[`${Bt}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${Bt}-text`]:{width:"max-content",marginInlineStart:0,marginTop:_e.marginXXS}},[`${Bt}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${ne})`]},height:"100%",width:`calc(1 / var(${te}) * 100%)`,display:"block"},[`&${Bt}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${Bt}-text-inner`]:{color:_e.colorWhite,[`&${Bt}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${Bt}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:_e.colorSuccess},[`${Bt}-text`]:{display:"inline-block",marginInlineStart:_e.marginXS,color:_e.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Ut]:{fontSize:_e.fontSize},[`&${Bt}-text-outer`]:{width:"max-content"},[`&${Bt}-text-outer${Bt}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:_e.marginXS}},[`${Bt}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${(0,vt.unit)(_e.paddingXXS)}`,[`&${Bt}-text-start`]:{justifyContent:"start"},[`&${Bt}-text-end`]:{justifyContent:"end"}},[`&${Bt}-status-active`]:{[`${Bt}-bg::before`]:{position:"absolute",inset:0,backgroundColor:_e.colorBgContainer,borderRadius:_e.lineBorderRadius,opacity:0,animationName:oe(),animationDuration:_e.progressActiveMotionDuration,animationTimingFunction:_e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Bt}-rtl${Bt}-status-active`]:{[`${Bt}-bg::before`]:{animationName:oe(!0)}},[`&${Bt}-status-exception`]:{[`${Bt}-bg`]:{backgroundColor:_e.colorError},[`${Bt}-text`]:{color:_e.colorError}},[`&${Bt}-status-exception ${Bt}-inner:not(${Bt}-circle-gradient)`]:{[`${Bt}-circle-path`]:{stroke:_e.colorError}},[`&${Bt}-status-success`]:{[`${Bt}-bg`]:{backgroundColor:_e.colorSuccess},[`${Bt}-text`]:{color:_e.colorSuccess}},[`&${Bt}-status-success ${Bt}-inner:not(${Bt}-circle-gradient)`]:{[`${Bt}-circle-path`]:{stroke:_e.colorSuccess}}})}},re=_e=>{const{componentCls:Bt,iconCls:Ut}=_e;return{[Bt]:{[`${Bt}-circle-trail`]:{stroke:_e.remainingColor},[`&${Bt}-circle ${Bt}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Bt}-circle ${Bt}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:_e.circleTextColor,fontSize:_e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[Ut]:{fontSize:_e.circleIconFontSize}},[`${Bt}-circle&-status-exception`]:{[`${Bt}-text`]:{color:_e.colorError}},[`${Bt}-circle&-status-success`]:{[`${Bt}-text`]:{color:_e.colorSuccess}}},[`${Bt}-inline-circle`]:{lineHeight:1,[`${Bt}-inner`]:{verticalAlign:"bottom"}}}},le=_e=>{const{componentCls:Bt}=_e;return{[Bt]:{[`${Bt}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:_e.progressStepMinWidth,marginInlineEnd:_e.progressStepMarginInlineEnd,backgroundColor:_e.remainingColor,transition:`all ${_e.motionDurationSlow}`,"&-active":{backgroundColor:_e.defaultColor}}}}}},me=_e=>{const{componentCls:Bt,iconCls:Ut}=_e;return{[Bt]:{[`${Bt}-small&-line, ${Bt}-small&-line ${Bt}-text ${Ut}`]:{fontSize:_e.fontSizeSM}}}},Dt=_e=>({circleTextColor:_e.colorText,defaultColor:_e.colorInfo,remainingColor:_e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${_e.fontSize/_e.fontSizeSM}em`});var Re=(0,Tt.I$)("Progress",_e=>{const Bt=_e.calc(_e.marginXXS).div(2).equal(),Ut=(0,ie.mergeToken)(_e,{progressStepMarginInlineEnd:Bt,progressStepMinWidth:Bt,progressActiveMotionDuration:"2.4s"});return[se(Ut),re(Ut),le(Ut),me(Ut)]},Dt),Fe=function(_e,Bt){var Ut={};for(var on in _e)Object.prototype.hasOwnProperty.call(_e,on)&&Bt.indexOf(on)<0&&(Ut[on]=_e[on]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,on=Object.getOwnPropertySymbols(_e);Le<on.length;Le++)Bt.indexOf(on[Le])<0&&Object.prototype.propertyIsEnumerable.call(_e,on[Le])&&(Ut[on[Le]]=_e[on[Le]]);return Ut};const qe=_e=>{let Bt=[];return Object.keys(_e).forEach(Ut=>{const on=parseFloat(Ut.replace(/%/g,""));Number.isNaN(on)||Bt.push({key:on,value:_e[Ut]})}),Bt=Bt.sort((Ut,on)=>Ut.key-on.key),Bt.map(Ut=>{let{key:on,value:Le}=Ut;return`${Le} ${on}%`}).join(", ")},nt=(_e,Bt)=>{const{from:Ut=he.presetPrimaryColors.blue,to:on=he.presetPrimaryColors.blue,direction:Le=Bt==="rtl"?"to left":"to right"}=_e,xt=Fe(_e,["from","to","direction"]);if(Object.keys(xt).length!==0){const nn=qe(xt),Sn=`linear-gradient(${Le}, ${nn})`;return{background:Sn,[ne]:Sn}}const zt=`linear-gradient(${Le}, ${Ut}, ${on})`;return{background:zt,[ne]:zt}};var we=_e=>{const{prefixCls:Bt,direction:Ut,percent:on,size:Le,strokeWidth:xt,strokeColor:zt,strokeLinecap:nn="round",children:Sn,trailColor:zn=null,percentPosition:rr,success:pr}=_e,{align:kn,type:dr}=rr,Ye=zt&&typeof zt!="string"?nt(zt,Ut):{[ne]:zt,background:zt},Qt=nn==="square"||nn==="butt"?0:void 0,yn=Le!=null?Le:[-1,xt||(Le==="small"?6:8)],[xn,qt]=ot(yn,"line",{strokeWidth:xt}),En={backgroundColor:zn||void 0,borderRadius:Qt},Fn=Object.assign(Object.assign({width:`${Ct(on)}%`,height:qt,borderRadius:Qt},Ye),{[te]:Ct(on)/100}),Tn=Pt(_e),_t={width:`${Ct(Tn)}%`,height:qt,borderRadius:Qt,backgroundColor:pr==null?void 0:pr.strokeColor},Cn={width:xn<0?"100%":xn},Bn=b.createElement("div",{className:`${Bt}-inner`,style:En},b.createElement("div",{className:Qe()(`${Bt}-bg`,`${Bt}-bg-${dr}`),style:Fn},dr==="inner"&&Sn),Tn!==void 0&&b.createElement("div",{className:`${Bt}-success-bg`,style:_t})),Ln=dr==="outer"&&kn==="start",Zn=dr==="outer"&&kn==="end";return dr==="outer"&&kn==="center"?b.createElement("div",{className:`${Bt}-layout-bottom`},Bn,Sn):b.createElement("div",{className:`${Bt}-outer`,style:Cn},Ln&&Sn,Bn,Zn&&Sn)},It=_e=>{const{size:Bt,steps:Ut,rounding:on=Math.round,percent:Le=0,strokeWidth:xt=8,strokeColor:zt,trailColor:nn=null,prefixCls:Sn,children:zn}=_e,rr=on(Ut*(Le/100)),pr=Bt==="small"?2:14,kn=Bt!=null?Bt:[pr,xt],[dr,Ye]=ot(kn,"step",{steps:Ut,strokeWidth:xt}),Qt=dr/Ut,yn=Array.from({length:Ut});for(let xn=0;xn<Ut;xn++){const qt=Array.isArray(zt)?zt[xn]:zt;yn[xn]=b.createElement("div",{key:xn,className:Qe()(`${Sn}-steps-item`,{[`${Sn}-steps-item-active`]:xn<=rr-1}),style:{backgroundColor:xn<=rr-1?qt:nn,width:Qt,height:Ye}})}return b.createElement("div",{className:`${Sn}-steps-outer`},yn,zn)},Mt=function(_e,Bt){var Ut={};for(var on in _e)Object.prototype.hasOwnProperty.call(_e,on)&&Bt.indexOf(on)<0&&(Ut[on]=_e[on]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,on=Object.getOwnPropertySymbols(_e);Le<on.length;Le++)Bt.indexOf(on[Le])<0&&Object.prototype.propertyIsEnumerable.call(_e,on[Le])&&(Ut[on[Le]]=_e[on[Le]]);return Ut};const kt=null,Yt=["normal","exception","active","success"];var vn=b.forwardRef((_e,Bt)=>{const{prefixCls:Ut,className:on,rootClassName:Le,steps:xt,strokeColor:zt,percent:nn=0,size:Sn="default",showInfo:zn=!0,type:rr="line",status:pr,format:kn,style:dr,percentPosition:Ye={}}=_e,Qt=Mt(_e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:yn="end",type:xn="outer"}=Ye,qt=Array.isArray(zt)?zt[0]:zt,En=typeof zt=="string"||Array.isArray(zt)?zt:void 0,Fn=b.useMemo(()=>{if(qt){const ze=typeof qt=="string"?qt:Object.values(qt)[0];return new Pe.FastColor(ze).isLight()}return!1},[zt]),Tn=b.useMemo(()=>{var ze,gt;const $e=Pt(_e);return parseInt($e!==void 0?(ze=$e!=null?$e:0)===null||ze===void 0?void 0:ze.toString():(gt=nn!=null?nn:0)===null||gt===void 0?void 0:gt.toString(),10)},[nn,_e.success,_e.successPercent]),_t=b.useMemo(()=>!Yt.includes(pr)&&Tn>=100?"success":pr||"normal",[pr,Tn]),{getPrefixCls:Cn,direction:Bn,progress:Ln}=b.useContext(de.E_),Zn=Cn("progress",Ut),[yr,ur,Jt]=Re(Zn),wn=rr==="line",un=wn&&!xt,sn=b.useMemo(()=>{if(!zn)return null;const ze=Pt(_e);let gt;const $e=kn||(Oe=>`${Oe}%`),St=wn&&Fn&&xn==="inner";return xn==="inner"||kn||_t!=="exception"&&_t!=="success"?gt=$e(Ct(nn),Ct(ze)):_t==="exception"?gt=wn?b.createElement(xe.Z,null):b.createElement(ge.Z,null):_t==="success"&&(gt=wn?b.createElement(fe.Z,null):b.createElement(rt.Z,null)),b.createElement("span",{className:Qe()(`${Zn}-text`,{[`${Zn}-text-bright`]:St,[`${Zn}-text-${yn}`]:un,[`${Zn}-text-${xn}`]:un}),title:typeof gt=="string"?gt:void 0},gt)},[zn,nn,Tn,_t,rr,Zn,kn]);let We;rr==="line"?We=xt?b.createElement(It,Object.assign({},_e,{strokeColor:En,prefixCls:Zn,steps:typeof xt=="object"?xt.count:xt}),sn):b.createElement(we,Object.assign({},_e,{strokeColor:qt,prefixCls:Zn,direction:Bn,percentPosition:{align:yn,type:xn}}),sn):(rr==="circle"||rr==="dashboard")&&(We=b.createElement($t,Object.assign({},_e,{strokeColor:qt,prefixCls:Zn,progressStatus:_t}),sn));const dt=Qe()(Zn,`${Zn}-status-${_t}`,{[`${Zn}-${rr==="dashboard"&&"circle"||rr}`]:rr!=="line",[`${Zn}-inline-circle`]:rr==="circle"&&ot(Sn,"circle")[0]<=20,[`${Zn}-line`]:un,[`${Zn}-line-align-${yn}`]:un,[`${Zn}-line-position-${xn}`]:un,[`${Zn}-steps`]:xt,[`${Zn}-show-info`]:zn,[`${Zn}-${Sn}`]:typeof Sn=="string",[`${Zn}-rtl`]:Bn==="rtl"},Ln==null?void 0:Ln.className,on,Le,ur,Jt);return yr(b.createElement("div",Object.assign({ref:Bt,style:Object.assign(Object.assign({},Ln==null?void 0:Ln.style),dr),className:dt,role:"progressbar","aria-valuenow":Tn,"aria-valuemin":0,"aria-valuemax":100},(0,Ae.Z)(Qt,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),We))}),Gt=vn},63139:function(Kn,cn,z){"use strict";z.d(cn,{Z:function(){return Kt}});var b=z(59301),Pe=z(54476),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"},rt=fe,xe=z(7657),ge=function(ot,lt){return b.createElement(xe.Z,(0,Pe.Z)({},ot,{ref:lt,icon:rt}))},Ee=b.forwardRef(ge),Qe=Ee,Ae=z(92310),de=z.n(Ae),tt=z(20068),ve=z(42978),Lt=z(75931),at=z(18929),Ve=z(10228),Ne=z(26112);function Ze(Ce,ot){var lt=Ce.disabled,Wt=Ce.prefixCls,ct=Ce.character,$t=Ce.characterRender,vt=Ce.index,gn=Ce.count,Tt=Ce.value,ie=Ce.allowHalf,ne=Ce.focused,te=Ce.onHover,oe=Ce.onClick,se=function(nt){te(nt,vt)},re=function(nt){oe(nt,vt)},le=function(nt){nt.keyCode===Ve.Z.ENTER&&oe(nt,vt)},me=vt+1,Dt=new Set([Wt]);Tt===0&&vt===0&&ne?Dt.add("".concat(Wt,"-focused")):ie&&Tt+.5>=me&&Tt<me?(Dt.add("".concat(Wt,"-half")),Dt.add("".concat(Wt,"-active")),ne&&Dt.add("".concat(Wt,"-focused"))):(me<=Tt?Dt.add("".concat(Wt,"-full")):Dt.add("".concat(Wt,"-zero")),me===Tt&&ne&&Dt.add("".concat(Wt,"-focused")));var Re=typeof ct=="function"?ct(Ce):ct,Fe=b.createElement("li",{className:de()(Array.from(Dt)),ref:ot},b.createElement("div",{onClick:lt?null:re,onKeyDown:lt?null:le,onMouseMove:lt?null:se,role:"radio","aria-checked":Tt>vt?"true":"false","aria-posinset":vt+1,"aria-setsize":gn,tabIndex:lt?-1:0},b.createElement("div",{className:"".concat(Wt,"-first")},Re),b.createElement("div",{className:"".concat(Wt,"-second")},Re)));return $t&&(Fe=$t(Fe,Ce)),Fe}var pt=b.forwardRef(Ze);function mt(){var Ce=b.useRef({});function ot(Wt){return Ce.current[Wt]}function lt(Wt){return function(ct){Ce.current[Wt]=ct}}return[ot,lt]}function Xt(Ce){var ot=Ce.pageXOffset,lt="scrollLeft";if(typeof ot!="number"){var Wt=Ce.document;ot=Wt.documentElement[lt],typeof ot!="number"&&(ot=Wt.body[lt])}return ot}function He(Ce){var ot,lt,Wt=Ce.ownerDocument,ct=Wt.body,$t=Wt&&Wt.documentElement,vt=Ce.getBoundingClientRect();return ot=vt.left,lt=vt.top,ot-=$t.clientLeft||ct.clientLeft||0,lt-=$t.clientTop||ct.clientTop||0,{left:ot,top:lt}}function Ke(Ce){var ot=He(Ce),lt=Ce.ownerDocument,Wt=lt.defaultView||lt.parentWindow;return ot.left+=Xt(Wt),ot.left}var ut=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function ft(Ce,ot){var lt=Ce.prefixCls,Wt=lt===void 0?"rc-rate":lt,ct=Ce.className,$t=Ce.defaultValue,vt=Ce.value,gn=Ce.count,Tt=gn===void 0?5:gn,ie=Ce.allowHalf,ne=ie===void 0?!1:ie,te=Ce.allowClear,oe=te===void 0?!0:te,se=Ce.keyboard,re=se===void 0?!0:se,le=Ce.character,me=le===void 0?"\u2605":le,Dt=Ce.characterRender,Re=Ce.disabled,Fe=Ce.direction,qe=Fe===void 0?"ltr":Fe,nt=Ce.tabIndex,st=nt===void 0?0:nt,we=Ce.autoFocus,Be=Ce.onHoverChange,It=Ce.onChange,Mt=Ce.onFocus,kt=Ce.onBlur,Yt=Ce.onKeyDown,At=Ce.onMouseLeave,vn=(0,Lt.Z)(Ce,ut),Gt=mt(),_e=(0,ve.Z)(Gt,2),Bt=_e[0],Ut=_e[1],on=b.useRef(null),Le=function(){if(!Re){var sn;(sn=on.current)===null||sn===void 0||sn.focus()}};b.useImperativeHandle(ot,function(){return{focus:Le,blur:function(){if(!Re){var sn;(sn=on.current)===null||sn===void 0||sn.blur()}}}});var xt=(0,at.Z)($t||0,{value:vt}),zt=(0,ve.Z)(xt,2),nn=zt[0],Sn=zt[1],zn=(0,at.Z)(null),rr=(0,ve.Z)(zn,2),pr=rr[0],kn=rr[1],dr=function(sn,We){var dt=qe==="rtl",ze=sn+1;if(ne){var gt=Bt(sn),$e=Ke(gt),St=gt.clientWidth;(dt&&We-$e>St/2||!dt&&We-$e<St/2)&&(ze-=.5)}return ze},Ye=function(sn){Sn(sn),It==null||It(sn)},Qt=b.useState(!1),yn=(0,ve.Z)(Qt,2),xn=yn[0],qt=yn[1],En=function(){qt(!0),Mt==null||Mt()},Fn=function(){qt(!1),kt==null||kt()},Tn=b.useState(null),_t=(0,ve.Z)(Tn,2),Cn=_t[0],Bn=_t[1],Ln=function(sn,We){var dt=dr(We,sn.pageX);dt!==pr&&(Bn(dt),kn(null)),Be==null||Be(dt)},Zn=function(sn){Re||(Bn(null),kn(null),Be==null||Be(void 0)),sn&&(At==null||At(sn))},yr=function(sn,We){var dt=dr(We,sn.pageX),ze=!1;oe&&(ze=dt===nn),Zn(),Ye(ze?0:dt),kn(ze?dt:null)},ur=function(sn){var We=sn.keyCode,dt=qe==="rtl",ze=ne?.5:1;re&&(We===Ve.Z.RIGHT&&nn<Tt&&!dt?(Ye(nn+ze),sn.preventDefault()):We===Ve.Z.LEFT&&nn>0&&!dt||We===Ve.Z.RIGHT&&nn>0&&dt?(Ye(nn-ze),sn.preventDefault()):We===Ve.Z.LEFT&&nn<Tt&&dt&&(Ye(nn+ze),sn.preventDefault())),Yt==null||Yt(sn)};b.useEffect(function(){we&&!Re&&Le()},[]);var Jt=new Array(Tt).fill(0).map(function(un,sn){return b.createElement(pt,{ref:Ut(sn),index:sn,count:Tt,disabled:Re,prefixCls:"".concat(Wt,"-star"),allowHalf:ne,value:Cn===null?nn:Cn,onClick:yr,onHover:Ln,key:un||sn,character:me,characterRender:Dt,focused:xn})}),wn=de()(Wt,ct,(0,tt.Z)((0,tt.Z)({},"".concat(Wt,"-disabled"),Re),"".concat(Wt,"-rtl"),qe==="rtl"));return b.createElement("ul",(0,Pe.Z)({className:wn,onMouseLeave:Zn,tabIndex:Re?-1:st,onFocus:Re?null:En,onBlur:Re?null:Fn,onKeyDown:Re?null:ur,ref:on},(0,Ne.Z)(vn,{aria:!0,data:!0,attr:!0})),Jt)}var jt=b.forwardRef(ft),Ot=jt,yt=z(48755),Et=z(25399),pe=z(36237),Je=z(63356),Xe=z(16931),ue=z(51636);const Nt=Ce=>{const{componentCls:ot}=Ce;return{[`${ot}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:Ce.marginXS},"> div":{transition:`all ${Ce.motionDurationMid}, outline 0s`,"&:hover":{transform:Ce.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${(0,pe.unit)(Ce.lineWidth)} dashed ${Ce.starColor}`,transform:Ce.starHoverScale}},"&-first, &-second":{color:Ce.starBg,transition:`all ${Ce.motionDurationMid}`,userSelect:"none"},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${ot}-star-first, &-half ${ot}-star-second`]:{opacity:1},[`&-half ${ot}-star-first, &-full ${ot}-star-second`]:{color:"inherit"}}}},et=Ce=>({[`&-rtl${Ce.componentCls}`]:{direction:"rtl"}}),wt=Ce=>{const{componentCls:ot}=Ce;return{[ot]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Je.Wf)(Ce)),{display:"inline-block",margin:0,padding:0,color:Ce.starColor,fontSize:Ce.starSize,lineHeight:1,listStyle:"none",outline:"none",[`&-disabled${ot} ${ot}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),Nt(Ce)),et(Ce))}},ln=Ce=>({starColor:Ce.yellow6,starSize:Ce.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:Ce.colorFillContent});var ke=(0,Xe.I$)("Rate",Ce=>{const ot=(0,ue.mergeToken)(Ce,{});return[wt(ot)]},ln),he=z(2171),Ct=function(Ce,ot){var lt={};for(var Wt in Ce)Object.prototype.hasOwnProperty.call(Ce,Wt)&&ot.indexOf(Wt)<0&&(lt[Wt]=Ce[Wt]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,Wt=Object.getOwnPropertySymbols(Ce);ct<Wt.length;ct++)ot.indexOf(Wt[ct])<0&&Object.prototype.propertyIsEnumerable.call(Ce,Wt[ct])&&(lt[Wt[ct]]=Ce[Wt[ct]]);return lt},Kt=b.forwardRef((Ce,ot)=>{const{prefixCls:lt,className:Wt,rootClassName:ct,style:$t,tooltips:vt,character:gn=b.createElement(Qe,null),disabled:Tt}=Ce,ie=Ct(Ce,["prefixCls","className","rootClassName","style","tooltips","character","disabled"]),ne=(nt,st)=>{let{index:we}=st;return vt?b.createElement(Et.Z,{title:vt[we]},nt):nt},{getPrefixCls:te,direction:oe,rate:se}=b.useContext(yt.E_),re=te("rate",lt),[le,me,Dt]=ke(re),Re=Object.assign(Object.assign({},se==null?void 0:se.style),$t),Fe=b.useContext(he.Z),qe=Tt!=null?Tt:Fe;return le(b.createElement(Ot,Object.assign({ref:ot,character:gn,characterRender:ne,disabled:qe},ie,{className:de()(Wt,ct,me,Dt,se==null?void 0:se.className),style:Re,prefixCls:re,direction:oe})))})},82326:function(Kn,cn,z){"use strict";var b=z(59301),Pe=z(92310),fe=z.n(Pe),rt=z(37463),xe=z(2738),ge=z(75030),Ee=z(86641),Qe=z(45915),Ae=z(82855),de=z(48755),tt=z(38406),ve=z(2171),Lt=z(83397),at=z(31756),Ve=z(56553),Ne=z(24971),Ze=z(70045),pt=z(57700),mt=z(1722),Xt=z(90376),He=z(68525),Ke=z(90005),ut=function(Et,pe){var Je={};for(var Xe in Et)Object.prototype.hasOwnProperty.call(Et,Xe)&&pe.indexOf(Xe)<0&&(Je[Xe]=Et[Xe]);if(Et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ue=0,Xe=Object.getOwnPropertySymbols(Et);ue<Xe.length;ue++)pe.indexOf(Xe[ue])<0&&Object.prototype.propertyIsEnumerable.call(Et,Xe[ue])&&(Je[Xe[ue]]=Et[Xe[ue]]);return Je};const ft="SECRET_COMBOBOX_MODE_DO_NOT_USE",jt=(Et,pe)=>{var Je;const{prefixCls:Xe,bordered:ue,className:Nt,rootClassName:et,getPopupContainer:wt,popupClassName:ln,dropdownClassName:ke,listHeight:he=256,placement:Ct,listItemHeight:Pt,size:Kt,disabled:Ce,notFoundContent:ot,status:lt,builtinPlacements:Wt,dropdownMatchSelectWidth:ct,popupMatchSelectWidth:$t,direction:vt,style:gn,allowClear:Tt,variant:ie,dropdownStyle:ne,transitionName:te,tagRender:oe,maxCount:se,prefix:re}=Et,le=ut(Et,["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:me,getPrefixCls:Dt,renderEmpty:Re,direction:Fe,virtual:qe,popupMatchSelectWidth:nt,popupOverflow:st}=b.useContext(de.E_),we=(0,de.dj)("select"),[,Be]=(0,pt.ZP)(),It=Pt!=null?Pt:Be==null?void 0:Be.controlHeight,Mt=Dt("select",Xe),kt=Dt(),Yt=vt!=null?vt:Fe,{compactSize:At,compactItemClassnames:vn}=(0,Ze.ri)(Mt,Yt),[Gt,_e]=(0,Ne.Z)("select",ie,ue),Bt=(0,Lt.Z)(Mt),[Ut,on,Le]=(0,Xt.Z)(Mt,Bt),xt=b.useMemo(()=>{const{mode:ur}=Et;if(ur!=="combobox")return ur===ft?"combobox":ur},[Et.mode]),zt=xt==="multiple"||xt==="tags",nn=(0,Ke.Z)(Et.suffixIcon,Et.showArrow),Sn=(Je=$t!=null?$t:ct)!==null&&Je!==void 0?Je:nt,{status:zn,hasFeedback:rr,isFormItemInput:pr,feedbackIcon:kn}=b.useContext(Ve.aM),dr=(0,Ae.F)(zn,lt);let Ye;ot!==void 0?Ye=ot:xt==="combobox"?Ye=null:Ye=(Re==null?void 0:Re("Select"))||b.createElement(tt.Z,{componentName:"Select"});const{suffixIcon:Qt,itemIcon:yn,removeIcon:xn,clearIcon:qt}=(0,He.Z)(Object.assign(Object.assign({},le),{multiple:zt,hasFeedback:rr,feedbackIcon:kn,showSuffixIcon:nn,prefixCls:Mt,componentName:"Select"})),En=Tt===!0?{clearIcon:qt}:Tt,Fn=(0,xe.Z)(le,["suffixIcon","itemIcon"]),Tn=fe()(ln||ke,{[`${Mt}-dropdown-${Yt}`]:Yt==="rtl"},et,Le,Bt,on),_t=(0,at.Z)(ur=>{var Jt;return(Jt=Kt!=null?Kt:At)!==null&&Jt!==void 0?Jt:ur}),Cn=b.useContext(ve.Z),Bn=Ce!=null?Ce:Cn,Ln=fe()({[`${Mt}-lg`]:_t==="large",[`${Mt}-sm`]:_t==="small",[`${Mt}-rtl`]:Yt==="rtl",[`${Mt}-${Gt}`]:_e,[`${Mt}-in-form-item`]:pr},(0,Ae.Z)(Mt,dr,rr),vn,we.className,Nt,et,Le,Bt,on),Zn=b.useMemo(()=>Ct!==void 0?Ct:Yt==="rtl"?"bottomRight":"bottomLeft",[Ct,Yt]),[yr]=(0,ge.Cn)("SelectLike",ne==null?void 0:ne.zIndex);return Ut(b.createElement(rt.ZP,Object.assign({ref:pe,virtual:qe,showSearch:we.showSearch},Fn,{style:Object.assign(Object.assign({},we.style),gn),dropdownMatchSelectWidth:Sn,transitionName:(0,Ee.m)(kt,"slide-up",te),builtinPlacements:(0,mt.Z)(Wt,st),listHeight:he,listItemHeight:It,mode:xt,prefixCls:Mt,placement:Zn,direction:Yt,prefix:re,suffixIcon:Qt,menuItemSelectedIcon:yn,removeIcon:xn,allowClear:En,notFoundContent:Ye,className:Ln,getPopupContainer:wt||me,dropdownClassName:Tn,disabled:Bn,dropdownStyle:Object.assign(Object.assign({},ne),{zIndex:yr}),maxCount:zt?se:void 0,tagRender:zt?oe:void 0})))},Ot=b.forwardRef(jt),yt=(0,Qe.Z)(Ot,"dropdownAlign");Ot.SECRET_COMBOBOX_MODE_DO_NOT_USE=ft,Ot.Option=rt.Wx,Ot.OptGroup=rt.Xo,Ot._InternalPanelDoNotUseOrYouWillBeFired=yt,cn.default=Ot},1722:function(Kn,cn){"use strict";const z=Pe=>{const rt={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:Pe==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},rt),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},rt),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},rt),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},rt),{points:["br","tr"],offset:[0,-4]})}};function b(Pe,fe){return Pe||z(fe)}cn.Z=b},90376:function(Kn,cn,z){"use strict";z.d(cn,{Z:function(){return Xe}});var b=z(63356),Pe=z(56119),fe=z(16931),rt=z(51636),xe=z(46e3),ge=z(93873);const Ee=ue=>{const{optionHeight:Nt,optionFontSize:et,optionLineHeight:wt,optionPadding:ln}=ue;return{position:"relative",display:"block",minHeight:Nt,padding:ln,color:ue.colorText,fontWeight:"normal",fontSize:et,lineHeight:wt,boxSizing:"border-box"}};var Ae=ue=>{const{antCls:Nt,componentCls:et}=ue,wt=`${et}-item`,ln=`&${Nt}-slide-up-enter${Nt}-slide-up-enter-active`,ke=`&${Nt}-slide-up-appear${Nt}-slide-up-appear-active`,he=`&${Nt}-slide-up-leave${Nt}-slide-up-leave-active`,Ct=`${et}-dropdown-placement-`,Pt=`${wt}-option-selected`;return[{[`${et}-dropdown`]:Object.assign(Object.assign({},(0,b.Wf)(ue)),{position:"absolute",top:-9999,zIndex:ue.zIndexPopup,boxSizing:"border-box",padding:ue.paddingXXS,overflow:"hidden",fontSize:ue.fontSize,fontVariant:"initial",backgroundColor:ue.colorBgElevated,borderRadius:ue.borderRadiusLG,outline:"none",boxShadow:ue.boxShadowSecondary,[`
|
|
|
${ln}${Ct}bottomLeft,
|
|
|
${ke}${Ct}bottomLeft
|
|
|
`]:{animationName:xe.fJ},[`
|
|
|
${ln}${Ct}topLeft,
|
|
|
${ke}${Ct}topLeft,
|
|
|
${ln}${Ct}topRight,
|
|
|
${ke}${Ct}topRight
|
|
|
`]:{animationName:xe.Qt},[`${he}${Ct}bottomLeft`]:{animationName:xe.Uw},[`
|
|
|
${he}${Ct}topLeft,
|
|
|
${he}${Ct}topRight
|
|
|
`]:{animationName:xe.ly},"&-hidden":{display:"none"},[wt]:Object.assign(Object.assign({},Ee(ue)),{cursor:"pointer",transition:`background ${ue.motionDurationSlow} ease`,borderRadius:ue.borderRadiusSM,"&-group":{color:ue.colorTextDescription,fontSize:ue.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},b.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${wt}-option-disabled)`]:{backgroundColor:ue.optionActiveBg},[`&-selected:not(${wt}-option-disabled)`]:{color:ue.optionSelectedColor,fontWeight:ue.optionSelectedFontWeight,backgroundColor:ue.optionSelectedBg,[`${wt}-option-state`]:{color:ue.colorPrimary}},"&-disabled":{[`&${wt}-option-selected`]:{backgroundColor:ue.colorBgContainerDisabled},color:ue.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:ue.calc(ue.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},Ee(ue)),{color:ue.colorTextDisabled})}),[`${Pt}:has(+ ${Pt})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${Pt}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},(0,xe.oN)(ue,"slide-up"),(0,xe.oN)(ue,"slide-down"),(0,ge.Fm)(ue,"move-up"),(0,ge.Fm)(ue,"move-down")]},de=z(26743),tt=z(36237);function ve(ue,Nt){const{componentCls:et,inputPaddingHorizontalBase:wt,borderRadius:ln}=ue,ke=ue.calc(ue.controlHeight).sub(ue.calc(ue.lineWidth).mul(2)).equal(),he=Nt?`${et}-${Nt}`:"";return{[`${et}-single${he}`]:{fontSize:ue.fontSize,height:ue.controlHeight,[`${et}-selector`]:Object.assign(Object.assign({},(0,b.Wf)(ue,!0)),{display:"flex",borderRadius:ln,flex:"1 1 auto",[`${et}-selection-wrap:after`]:{lineHeight:(0,tt.unit)(ke)},[`${et}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
|
|
|
${et}-selection-item,
|
|
|
${et}-selection-placeholder
|
|
|
`]:{display:"block",padding:0,lineHeight:(0,tt.unit)(ke),transition:`all ${ue.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${et}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${et}-selection-item:empty:after`,`${et}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
|
|
&${et}-show-arrow ${et}-selection-item,
|
|
|
&${et}-show-arrow ${et}-selection-search,
|
|
|
&${et}-show-arrow ${et}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:ue.showArrowPaddingInlineEnd},[`&${et}-open ${et}-selection-item`]:{color:ue.colorTextPlaceholder},[`&:not(${et}-customize-input)`]:{[`${et}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${(0,tt.unit)(wt)}`,[`${et}-selection-search-input`]:{height:ke,fontSize:ue.fontSize},"&:after":{lineHeight:(0,tt.unit)(ke)}}},[`&${et}-customize-input`]:{[`${et}-selector`]:{"&:after":{display:"none"},[`${et}-selection-search`]:{position:"static",width:"100%"},[`${et}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${(0,tt.unit)(wt)}`,"&:after":{display:"none"}}}}}}}function Lt(ue){const{componentCls:Nt}=ue,et=ue.calc(ue.controlPaddingHorizontalSM).sub(ue.lineWidth).equal();return[ve(ue),ve((0,rt.mergeToken)(ue,{controlHeight:ue.controlHeightSM,borderRadius:ue.borderRadiusSM}),"sm"),{[`${Nt}-single${Nt}-sm`]:{[`&:not(${Nt}-customize-input)`]:{[`${Nt}-selector`]:{padding:`0 ${(0,tt.unit)(et)}`},[`&${Nt}-show-arrow ${Nt}-selection-search`]:{insetInlineEnd:ue.calc(et).add(ue.calc(ue.fontSize).mul(1.5)).equal()},[`
|
|
|
&${Nt}-show-arrow ${Nt}-selection-item,
|
|
|
&${Nt}-show-arrow ${Nt}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:ue.calc(ue.fontSize).mul(1.5).equal()}}}},ve((0,rt.mergeToken)(ue,{controlHeight:ue.singleItemHeightLG,fontSize:ue.fontSizeLG,borderRadius:ue.borderRadiusLG}),"lg")]}const at=ue=>{const{fontSize:Nt,lineHeight:et,lineWidth:wt,controlHeight:ln,controlHeightSM:ke,controlHeightLG:he,paddingXXS:Ct,controlPaddingHorizontal:Pt,zIndexPopupBase:Kt,colorText:Ce,fontWeightStrong:ot,controlItemBgActive:lt,controlItemBgHover:Wt,colorBgContainer:ct,colorFillSecondary:$t,colorBgContainerDisabled:vt,colorTextDisabled:gn,colorPrimaryHover:Tt,colorPrimary:ie,controlOutline:ne}=ue,te=Ct*2,oe=wt*2,se=Math.min(ln-te,ln-oe),re=Math.min(ke-te,ke-oe),le=Math.min(he-te,he-oe);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(Ct/2),zIndexPopup:Kt+50,optionSelectedColor:Ce,optionSelectedFontWeight:ot,optionSelectedBg:lt,optionActiveBg:Wt,optionPadding:`${(ln-Nt*et)/2}px ${Pt}px`,optionFontSize:Nt,optionLineHeight:et,optionHeight:ln,selectorBg:ct,clearBg:ct,singleItemHeightLG:he,multipleItemBg:$t,multipleItemBorderColor:"transparent",multipleItemHeight:se,multipleItemHeightSM:re,multipleItemHeightLG:le,multipleSelectorBgDisabled:vt,multipleItemColorDisabled:gn,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(ue.fontSize*1.25),hoverBorderColor:Tt,activeBorderColor:ie,activeOutlineColor:ne,selectAffixPadding:Ct}},Ve=(ue,Nt)=>{const{componentCls:et,antCls:wt,controlOutlineWidth:ln}=ue;return{[`&:not(${et}-customize-input) ${et}-selector`]:{border:`${(0,tt.unit)(ue.lineWidth)} ${ue.lineType} ${Nt.borderColor}`,background:ue.selectorBg},[`&:not(${et}-disabled):not(${et}-customize-input):not(${wt}-pagination-size-changer)`]:{[`&:hover ${et}-selector`]:{borderColor:Nt.hoverBorderHover},[`${et}-focused& ${et}-selector`]:{borderColor:Nt.activeBorderColor,boxShadow:`0 0 0 ${(0,tt.unit)(ln)} ${Nt.activeOutlineColor}`,outline:0},[`${et}-prefix`]:{color:Nt.color}}}},Ne=(ue,Nt)=>({[`&${ue.componentCls}-status-${Nt.status}`]:Object.assign({},Ve(ue,Nt))}),Ze=ue=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},Ve(ue,{borderColor:ue.colorBorder,hoverBorderHover:ue.hoverBorderColor,activeBorderColor:ue.activeBorderColor,activeOutlineColor:ue.activeOutlineColor,color:ue.colorText})),Ne(ue,{status:"error",borderColor:ue.colorError,hoverBorderHover:ue.colorErrorHover,activeBorderColor:ue.colorError,activeOutlineColor:ue.colorErrorOutline,color:ue.colorError})),Ne(ue,{status:"warning",borderColor:ue.colorWarning,hoverBorderHover:ue.colorWarningHover,activeBorderColor:ue.colorWarning,activeOutlineColor:ue.colorWarningOutline,color:ue.colorWarning})),{[`&${ue.componentCls}-disabled`]:{[`&:not(${ue.componentCls}-customize-input) ${ue.componentCls}-selector`]:{background:ue.colorBgContainerDisabled,color:ue.colorTextDisabled}},[`&${ue.componentCls}-multiple ${ue.componentCls}-selection-item`]:{background:ue.multipleItemBg,border:`${(0,tt.unit)(ue.lineWidth)} ${ue.lineType} ${ue.multipleItemBorderColor}`}})}),pt=(ue,Nt)=>{const{componentCls:et,antCls:wt}=ue;return{[`&:not(${et}-customize-input) ${et}-selector`]:{background:Nt.bg,border:`${(0,tt.unit)(ue.lineWidth)} ${ue.lineType} transparent`,color:Nt.color},[`&:not(${et}-disabled):not(${et}-customize-input):not(${wt}-pagination-size-changer)`]:{[`&:hover ${et}-selector`]:{background:Nt.hoverBg},[`${et}-focused& ${et}-selector`]:{background:ue.selectorBg,borderColor:Nt.activeBorderColor,outline:0}}}},mt=(ue,Nt)=>({[`&${ue.componentCls}-status-${Nt.status}`]:Object.assign({},pt(ue,Nt))}),Xt=ue=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},pt(ue,{bg:ue.colorFillTertiary,hoverBg:ue.colorFillSecondary,activeBorderColor:ue.activeBorderColor,color:ue.colorText})),mt(ue,{status:"error",bg:ue.colorErrorBg,hoverBg:ue.colorErrorBgHover,activeBorderColor:ue.colorError,color:ue.colorError})),mt(ue,{status:"warning",bg:ue.colorWarningBg,hoverBg:ue.colorWarningBgHover,activeBorderColor:ue.colorWarning,color:ue.colorWarning})),{[`&${ue.componentCls}-disabled`]:{[`&:not(${ue.componentCls}-customize-input) ${ue.componentCls}-selector`]:{borderColor:ue.colorBorder,background:ue.colorBgContainerDisabled,color:ue.colorTextDisabled}},[`&${ue.componentCls}-multiple ${ue.componentCls}-selection-item`]:{background:ue.colorBgContainer,border:`${(0,tt.unit)(ue.lineWidth)} ${ue.lineType} ${ue.colorSplit}`}})}),He=ue=>({"&-borderless":{[`${ue.componentCls}-selector`]:{background:"transparent",border:`${(0,tt.unit)(ue.lineWidth)} ${ue.lineType} transparent`},[`&${ue.componentCls}-disabled`]:{[`&:not(${ue.componentCls}-customize-input) ${ue.componentCls}-selector`]:{color:ue.colorTextDisabled}},[`&${ue.componentCls}-multiple ${ue.componentCls}-selection-item`]:{background:ue.multipleItemBg,border:`${(0,tt.unit)(ue.lineWidth)} ${ue.lineType} ${ue.multipleItemBorderColor}`},[`&${ue.componentCls}-status-error`]:{[`${ue.componentCls}-prefix, ${ue.componentCls}-selection-item`]:{color:ue.colorError}},[`&${ue.componentCls}-status-warning`]:{[`${ue.componentCls}-prefix, ${ue.componentCls}-selection-item`]:{color:ue.colorWarning}}}}),Ke=(ue,Nt)=>{const{componentCls:et,antCls:wt}=ue;return{[`&:not(${et}-customize-input) ${et}-selector`]:{borderWidth:`0 0 ${(0,tt.unit)(ue.lineWidth)} 0`,borderStyle:`none none ${ue.lineType} none`,borderColor:Nt.borderColor,background:ue.selectorBg,borderRadius:0},[`&:not(${et}-disabled):not(${et}-customize-input):not(${wt}-pagination-size-changer)`]:{[`&:hover ${et}-selector`]:{borderColor:Nt.hoverBorderHover},[`${et}-focused& ${et}-selector`]:{borderColor:Nt.activeBorderColor,outline:0},[`${et}-prefix`]:{color:Nt.color}}}},ut=(ue,Nt)=>({[`&${ue.componentCls}-status-${Nt.status}`]:Object.assign({},Ke(ue,Nt))}),ft=ue=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},Ke(ue,{borderColor:ue.colorBorder,hoverBorderHover:ue.hoverBorderColor,activeBorderColor:ue.activeBorderColor,activeOutlineColor:ue.activeOutlineColor,color:ue.colorText})),ut(ue,{status:"error",borderColor:ue.colorError,hoverBorderHover:ue.colorErrorHover,activeBorderColor:ue.colorError,activeOutlineColor:ue.colorErrorOutline,color:ue.colorError})),ut(ue,{status:"warning",borderColor:ue.colorWarning,hoverBorderHover:ue.colorWarningHover,activeBorderColor:ue.colorWarning,activeOutlineColor:ue.colorWarningOutline,color:ue.colorWarning})),{[`&${ue.componentCls}-disabled`]:{[`&:not(${ue.componentCls}-customize-input) ${ue.componentCls}-selector`]:{color:ue.colorTextDisabled}},[`&${ue.componentCls}-multiple ${ue.componentCls}-selection-item`]:{background:ue.multipleItemBg,border:`${(0,tt.unit)(ue.lineWidth)} ${ue.lineType} ${ue.multipleItemBorderColor}`}})});var Ot=ue=>({[ue.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},Ze(ue)),Xt(ue)),He(ue)),ft(ue))});const yt=ue=>{const{componentCls:Nt}=ue;return{position:"relative",transition:`all ${ue.motionDurationMid} ${ue.motionEaseInOut}`,input:{cursor:"pointer"},[`${Nt}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${Nt}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},Et=ue=>{const{componentCls:Nt}=ue;return{[`${Nt}-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"}}}},pe=ue=>{const{antCls:Nt,componentCls:et,inputPaddingHorizontalBase:wt,iconCls:ln}=ue;return{[et]:Object.assign(Object.assign({},(0,b.Wf)(ue)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${et}-customize-input) ${et}-selector`]:Object.assign(Object.assign({},yt(ue)),Et(ue)),[`${et}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},b.vS),{[`> ${Nt}-typography`]:{display:"inline"}}),[`${et}-selection-placeholder`]:Object.assign(Object.assign({},b.vS),{flex:1,color:ue.colorTextPlaceholder,pointerEvents:"none"}),[`${et}-arrow`]:Object.assign(Object.assign({},(0,b.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:wt,height:ue.fontSizeIcon,marginTop:ue.calc(ue.fontSizeIcon).mul(-1).div(2).equal(),color:ue.colorTextQuaternary,fontSize:ue.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${ue.motionDurationSlow} ease`,[ln]:{verticalAlign:"top",transition:`transform ${ue.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${et}-suffix)`]:{pointerEvents:"auto"}},[`${et}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${et}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${et}-prefix`]:{flex:"none",marginInlineEnd:ue.selectAffixPadding},[`${et}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:wt,zIndex:1,display:"inline-block",width:ue.fontSizeIcon,height:ue.fontSizeIcon,marginTop:ue.calc(ue.fontSizeIcon).mul(-1).div(2).equal(),color:ue.colorTextQuaternary,fontSize:ue.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${ue.motionDurationMid} ease, opacity ${ue.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:ue.colorTextTertiary}},[`&:hover ${et}-clear`]:{opacity:1,background:ue.colorBgBase,borderRadius:"50%"}}),[`${et}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${et}-has-feedback`]:{[`${et}-clear`]:{insetInlineEnd:ue.calc(wt).add(ue.fontSize).add(ue.paddingXS).equal()}}}}}},Je=ue=>{const{componentCls:Nt}=ue;return[{[Nt]:{[`&${Nt}-in-form-item`]:{width:"100%"}}},pe(ue),Lt(ue),(0,de.ZP)(ue),Ae(ue),{[`${Nt}-rtl`]:{direction:"rtl"}},(0,Pe.c)(ue,{borderElCls:`${Nt}-selector`,focusElCls:`${Nt}-focused`})]};var Xe=(0,fe.I$)("Select",(ue,Nt)=>{let{rootPrefixCls:et}=Nt;const wt=(0,rt.mergeToken)(ue,{rootPrefixCls:et,inputPaddingHorizontalBase:ue.calc(ue.paddingSM).sub(1).equal(),multipleSelectItemHeight:ue.multipleItemHeight,selectHeight:ue.controlHeight});return[Je(wt),Ot(wt)]},at,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}})},26743:function(Kn,cn,z){"use strict";z.d(cn,{_z:function(){return ge},gp:function(){return rt}});var b=z(36237),Pe=z(63356),fe=z(51636);const rt=de=>{const{multipleSelectItemHeight:tt,paddingXXS:ve,lineWidth:Lt,INTERNAL_FIXED_ITEM_MARGIN:at}=de,Ve=de.max(de.calc(ve).sub(Lt).equal(),0),Ne=de.max(de.calc(Ve).sub(at).equal(),0);return{basePadding:Ve,containerPadding:Ne,itemHeight:(0,b.unit)(tt),itemLineHeight:(0,b.unit)(de.calc(tt).sub(de.calc(de.lineWidth).mul(2)).equal())}},xe=de=>{const{multipleSelectItemHeight:tt,selectHeight:ve,lineWidth:Lt}=de;return de.calc(ve).sub(tt).div(2).sub(Lt).equal()},ge=de=>{const{componentCls:tt,iconCls:ve,borderRadiusSM:Lt,motionDurationSlow:at,paddingXS:Ve,multipleItemColorDisabled:Ne,multipleItemBorderColorDisabled:Ze,colorIcon:pt,colorIconHover:mt,INTERNAL_FIXED_ITEM_MARGIN:Xt}=de;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:Xt,borderRadius:Lt,cursor:"default",transition:`font-size ${at}, line-height ${at}, height ${at}`,marginInlineEnd:de.calc(Xt).mul(2).equal(),paddingInlineStart:Ve,paddingInlineEnd:de.calc(Ve).div(2).equal(),[`${tt}-disabled&`]:{color:Ne,borderColor:Ze,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:de.calc(Ve).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,Pe.Ro)()),{display:"inline-flex",alignItems:"center",color:pt,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${ve}`]:{verticalAlign:"-0.2em"},"&:hover":{color:mt}})}}}},Ee=(de,tt)=>{const{componentCls:ve,INTERNAL_FIXED_ITEM_MARGIN:Lt}=de,at=`${ve}-selection-overflow`,Ve=de.multipleSelectItemHeight,Ne=xe(de),Ze=tt?`${ve}-${tt}`:"",pt=rt(de);return{[`${ve}-multiple${Ze}`]:Object.assign(Object.assign({},ge(de)),{[`${ve}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:pt.basePadding,paddingBlock:pt.containerPadding,borderRadius:de.borderRadius,[`${ve}-disabled&`]:{background:de.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${(0,b.unit)(Lt)} 0`,lineHeight:(0,b.unit)(Ve),visibility:"hidden",content:'"\\a0"'}},[`${ve}-selection-item`]:{height:pt.itemHeight,lineHeight:(0,b.unit)(pt.itemLineHeight)},[`${ve}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:(0,b.unit)(Ve),marginBlock:Lt}},[`${ve}-prefix`]:{marginInlineStart:de.calc(de.inputPaddingHorizontalBase).sub(pt.basePadding).equal()},[`${at}-item + ${at}-item,
|
|
|
${ve}-prefix + ${ve}-selection-wrap
|
|
|
`]:{[`${ve}-selection-search`]:{marginInlineStart:0},[`${ve}-selection-placeholder`]:{insetInlineStart:0}},[`${at}-item-suffix`]:{minHeight:pt.itemHeight,marginBlock:Lt},[`${ve}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:de.calc(de.inputPaddingHorizontalBase).sub(Ne).equal(),"\n &-input,\n &-mirror\n ":{height:Ve,fontFamily:de.fontFamily,lineHeight:(0,b.unit)(Ve),transition:`all ${de.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${ve}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:de.calc(de.inputPaddingHorizontalBase).sub(pt.basePadding).equal(),insetInlineEnd:de.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${de.motionDurationSlow}`}})}};function Qe(de,tt){const{componentCls:ve}=de,Lt=tt?`${ve}-${tt}`:"",at={[`${ve}-multiple${Lt}`]:{fontSize:de.fontSize,[`${ve}-selector`]:{[`${ve}-show-search&`]:{cursor:"text"}},[`
|
|
|
&${ve}-show-arrow ${ve}-selector,
|
|
|
&${ve}-allow-clear ${ve}-selector
|
|
|
`]:{paddingInlineEnd:de.calc(de.fontSizeIcon).add(de.controlPaddingHorizontal).equal()}}};return[Ee(de,tt),at]}const Ae=de=>{const{componentCls:tt}=de,ve=(0,fe.mergeToken)(de,{selectHeight:de.controlHeightSM,multipleSelectItemHeight:de.multipleItemHeightSM,borderRadius:de.borderRadiusSM,borderRadiusSM:de.borderRadiusXS}),Lt=(0,fe.mergeToken)(de,{fontSize:de.fontSizeLG,selectHeight:de.controlHeightLG,multipleSelectItemHeight:de.multipleItemHeightLG,borderRadius:de.borderRadiusLG,borderRadiusSM:de.borderRadius});return[Qe(de),Qe(ve,"sm"),{[`${tt}-multiple${tt}-sm`]:{[`${tt}-selection-placeholder`]:{insetInline:de.calc(de.controlPaddingHorizontalSM).sub(de.lineWidth).equal()},[`${tt}-selection-search`]:{marginInlineStart:2}}},Qe(Lt,"lg")]};cn.ZP=Ae},68525:function(Kn,cn,z){"use strict";z.d(cn,{Z:function(){return Qe}});var b=z(59301),Pe=z(40001),fe=z(19248),rt=z(99267),xe=z(84105),ge=z(58617),Ee=z(47472);function Qe(Ae){let{suffixIcon:de,clearIcon:tt,menuItemSelectedIcon:ve,removeIcon:Lt,loading:at,multiple:Ve,hasFeedback:Ne,prefixCls:Ze,showSuffixIcon:pt,feedbackIcon:mt,showArrow:Xt,componentName:He}=Ae;const Ke=tt!=null?tt:b.createElement(fe.Z,null),ut=yt=>de===null&&!Ne&&!Xt?null:b.createElement(b.Fragment,null,pt!==!1&&yt,Ne&&mt);let ft=null;if(de!==void 0)ft=ut(de);else if(at)ft=ut(b.createElement(ge.Z,{spin:!0}));else{const yt=`${Ze}-suffix`;ft=Et=>{let{open:pe,showSearch:Je}=Et;return ut(pe&&Je?b.createElement(Ee.Z,{className:yt}):b.createElement(xe.Z,{className:yt}))}}let jt=null;ve!==void 0?jt=ve:Ve?jt=b.createElement(Pe.Z,null):jt=null;let Ot=null;return Lt!==void 0?Ot=Lt:Ot=b.createElement(rt.Z,null),{clearIcon:Ke,suffixIcon:ft,itemIcon:jt,removeIcon:Ot}}},90005:function(Kn,cn,z){"use strict";z.d(cn,{Z:function(){return b}});function b(Pe,fe){return fe!==void 0?fe:Pe!==null}},52392:function(Kn,cn,z){"use strict";var b=z(59301);const Pe=(0,b.createContext)({});cn.Z=Pe},23422:function(Kn,cn,z){"use strict";z.d(cn,{Z:function(){return Et}});var b=z(59301),Pe=z(92310),fe=z.n(Pe),rt=z(3703),xe=z(16089),ge=z(2171),Ee=z(52392),Qe=z(8654),Ae=z(25399),tt=b.forwardRef((pe,Je)=>{const{open:Xe,draggingDelete:ue}=pe,Nt=(0,b.useRef)(null),et=Xe&&!ue,wt=(0,b.useRef)(null);function ln(){xe.Z.cancel(wt.current),wt.current=null}function ke(){wt.current=(0,xe.Z)(()=>{var he;(he=Nt.current)===null||he===void 0||he.forceAlign(),wt.current=null})}return b.useEffect(()=>(et?ke():ln(),ln),[et,pe.title]),b.createElement(Ae.Z,Object.assign({ref:(0,Qe.sQ)(Nt,Je)},pe,{open:et}))}),ve=z(36237),Lt=z(17835),at=z(63356),Ve=z(16931),Ne=z(51636);const Ze=pe=>{const{componentCls:Je,antCls:Xe,controlSize:ue,dotSize:Nt,marginFull:et,marginPart:wt,colorFillContentHover:ln,handleColorDisabled:ke,calc:he,handleSize:Ct,handleSizeHover:Pt,handleActiveColor:Kt,handleActiveOutlineColor:Ce,handleLineWidth:ot,handleLineWidthHover:lt,motionDurationMid:Wt}=pe;return{[Je]:Object.assign(Object.assign({},(0,at.Wf)(pe)),{position:"relative",height:ue,margin:`${(0,ve.unit)(wt)} ${(0,ve.unit)(et)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${(0,ve.unit)(et)} ${(0,ve.unit)(wt)}`},[`${Je}-rail`]:{position:"absolute",backgroundColor:pe.railBg,borderRadius:pe.borderRadiusXS,transition:`background-color ${Wt}`},[`${Je}-track,${Je}-tracks`]:{position:"absolute",transition:`background-color ${Wt}`},[`${Je}-track`]:{backgroundColor:pe.trackBg,borderRadius:pe.borderRadiusXS},[`${Je}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${Je}-rail`]:{backgroundColor:pe.railHoverBg},[`${Je}-track`]:{backgroundColor:pe.trackHoverBg},[`${Je}-dot`]:{borderColor:ln},[`${Je}-handle::after`]:{boxShadow:`0 0 0 ${(0,ve.unit)(ot)} ${pe.colorPrimaryBorderHover}`},[`${Je}-dot-active`]:{borderColor:pe.dotActiveBorderColor}},[`${Je}-handle`]:{position:"absolute",width:Ct,height:Ct,outline:"none",userSelect:"none","&-dragging-delete":{opacity:0},"&::before":{content:'""',position:"absolute",insetInlineStart:he(ot).mul(-1).equal(),insetBlockStart:he(ot).mul(-1).equal(),width:he(Ct).add(he(ot).mul(2)).equal(),height:he(Ct).add(he(ot).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:Ct,height:Ct,backgroundColor:pe.colorBgElevated,boxShadow:`0 0 0 ${(0,ve.unit)(ot)} ${pe.handleColor}`,outline:"0px solid transparent",borderRadius:"50%",cursor:"pointer",transition:`
|
|
|
inset-inline-start ${Wt},
|
|
|
inset-block-start ${Wt},
|
|
|
width ${Wt},
|
|
|
height ${Wt},
|
|
|
box-shadow ${Wt},
|
|
|
outline ${Wt}
|
|
|
`},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:he(Pt).sub(Ct).div(2).add(lt).mul(-1).equal(),insetBlockStart:he(Pt).sub(Ct).div(2).add(lt).mul(-1).equal(),width:he(Pt).add(he(lt).mul(2)).equal(),height:he(Pt).add(he(lt).mul(2)).equal()},"&::after":{boxShadow:`0 0 0 ${(0,ve.unit)(lt)} ${Kt}`,outline:`6px solid ${Ce}`,width:Pt,height:Pt,insetInlineStart:pe.calc(Ct).sub(Pt).div(2).equal(),insetBlockStart:pe.calc(Ct).sub(Pt).div(2).equal()}}},[`&-lock ${Je}-handle`]:{"&::before, &::after":{transition:"none"}},[`${Je}-mark`]:{position:"absolute",fontSize:pe.fontSize},[`${Je}-mark-text`]:{position:"absolute",display:"inline-block",color:pe.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:pe.colorText}},[`${Je}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${Je}-dot`]:{position:"absolute",width:Nt,height:Nt,backgroundColor:pe.colorBgElevated,border:`${(0,ve.unit)(ot)} solid ${pe.dotBorderColor}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${pe.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:pe.dotActiveBorderColor}},[`&${Je}-disabled`]:{cursor:"not-allowed",[`${Je}-rail`]:{backgroundColor:`${pe.railBg} !important`},[`${Je}-track`]:{backgroundColor:`${pe.trackBgDisabled} !important`},[`
|
|
|
${Je}-dot
|
|
|
`]:{backgroundColor:pe.colorBgElevated,borderColor:pe.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${Je}-handle::after`]:{backgroundColor:pe.colorBgElevated,cursor:"not-allowed",width:Ct,height:Ct,boxShadow:`0 0 0 ${(0,ve.unit)(ot)} ${ke}`,insetInlineStart:0,insetBlockStart:0},[`
|
|
|
${Je}-mark-text,
|
|
|
${Je}-dot
|
|
|
`]:{cursor:"not-allowed !important"}},[`&-tooltip ${Xe}-tooltip-inner`]:{minWidth:"unset"}})}},pt=(pe,Je)=>{const{componentCls:Xe,railSize:ue,handleSize:Nt,dotSize:et,marginFull:wt,calc:ln}=pe,ke=Je?"paddingBlock":"paddingInline",he=Je?"width":"height",Ct=Je?"height":"width",Pt=Je?"insetBlockStart":"insetInlineStart",Kt=Je?"top":"insetInlineStart",Ce=ln(ue).mul(3).sub(Nt).div(2).equal(),ot=ln(Nt).sub(ue).div(2).equal(),lt=Je?{borderWidth:`${(0,ve.unit)(ot)} 0`,transform:`translateY(${(0,ve.unit)(ln(ot).mul(-1).equal())})`}:{borderWidth:`0 ${(0,ve.unit)(ot)}`,transform:`translateX(${(0,ve.unit)(pe.calc(ot).mul(-1).equal())})`};return{[ke]:ue,[Ct]:ln(ue).mul(3).equal(),[`${Xe}-rail`]:{[he]:"100%",[Ct]:ue},[`${Xe}-track,${Xe}-tracks`]:{[Ct]:ue},[`${Xe}-track-draggable`]:Object.assign({},lt),[`${Xe}-handle`]:{[Pt]:Ce},[`${Xe}-mark`]:{insetInlineStart:0,top:0,[Kt]:ln(ue).mul(3).add(Je?0:wt).equal(),[he]:"100%"},[`${Xe}-step`]:{insetInlineStart:0,top:0,[Kt]:ue,[he]:"100%",[Ct]:ue},[`${Xe}-dot`]:{position:"absolute",[Pt]:ln(ue).sub(et).div(2).equal()}}},mt=pe=>{const{componentCls:Je,marginPartWithMark:Xe}=pe;return{[`${Je}-horizontal`]:Object.assign(Object.assign({},pt(pe,!0)),{[`&${Je}-with-marks`]:{marginBottom:Xe}})}},Xt=pe=>{const{componentCls:Je}=pe;return{[`${Je}-vertical`]:Object.assign(Object.assign({},pt(pe,!1)),{height:"100%"})}},He=pe=>{const Xe=pe.controlHeightLG/4,ue=pe.controlHeightSM/2,Nt=pe.lineWidth+1,et=pe.lineWidth+1*1.5,wt=pe.colorPrimary,ln=new Lt.FastColor(wt).setA(.2).toRgbString();return{controlSize:Xe,railSize:4,handleSize:Xe,handleSizeHover:ue,dotSize:8,handleLineWidth:Nt,handleLineWidthHover:et,railBg:pe.colorFillTertiary,railHoverBg:pe.colorFillSecondary,trackBg:pe.colorPrimaryBorder,trackHoverBg:pe.colorPrimaryBorderHover,handleColor:pe.colorPrimaryBorder,handleActiveColor:wt,handleActiveOutlineColor:ln,handleColorDisabled:new Lt.FastColor(pe.colorTextDisabled).onBackground(pe.colorBgContainer).toHexString(),dotBorderColor:pe.colorBorderSecondary,dotActiveBorderColor:pe.colorPrimaryBorder,trackBgDisabled:pe.colorBgContainerDisabled}};var Ke=(0,Ve.I$)("Slider",pe=>{const Je=(0,Ne.mergeToken)(pe,{marginPart:pe.calc(pe.controlHeight).sub(pe.controlSize).div(2).equal(),marginFull:pe.calc(pe.controlSize).div(2).equal(),marginPartWithMark:pe.calc(pe.controlHeightLG).sub(pe.controlSize).equal()});return[Ze(Je),mt(Je),Xt(Je)]},He);function ut(){const[pe,Je]=b.useState(!1),Xe=b.useRef(null),ue=()=>{xe.Z.cancel(Xe.current)},Nt=et=>{ue(),et?Je(et):Xe.current=(0,xe.Z)(()=>{Je(et)})};return b.useEffect(()=>ue,[]),[pe,Nt]}var ft=z(48755),jt=function(pe,Je){var Xe={};for(var ue in pe)Object.prototype.hasOwnProperty.call(pe,ue)&&Je.indexOf(ue)<0&&(Xe[ue]=pe[ue]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Nt=0,ue=Object.getOwnPropertySymbols(pe);Nt<ue.length;Nt++)Je.indexOf(ue[Nt])<0&&Object.prototype.propertyIsEnumerable.call(pe,ue[Nt])&&(Xe[ue[Nt]]=pe[ue[Nt]]);return Xe};function Ot(pe,Je){return pe||pe===null?pe:Je||Je===null?Je:Xe=>typeof Xe=="number"?Xe.toString():""}var Et=b.forwardRef((pe,Je)=>{const{prefixCls:Xe,range:ue,className:Nt,rootClassName:et,style:wt,disabled:ln,tooltipPrefixCls:ke,tipFormatter:he,tooltipVisible:Ct,getTooltipPopupContainer:Pt,tooltipPlacement:Kt,tooltip:Ce={},onChangeComplete:ot,classNames:lt,styles:Wt}=pe,ct=jt(pe,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement","tooltip","onChangeComplete","classNames","styles"]),{vertical:$t}=pe,{getPrefixCls:vt,direction:gn,className:Tt,style:ie,classNames:ne,styles:te,getPopupContainer:oe}=(0,ft.dj)("slider"),se=b.useContext(ge.Z),re=ln!=null?ln:se,{handleRender:le,direction:me}=b.useContext(Ee.Z),Re=(me||gn)==="rtl",[Fe,qe]=ut(),[nt,st]=ut(),we=Object.assign({},Ce),{open:Be,placement:It,getPopupContainer:Mt,prefixCls:kt,formatter:Yt}=we,At=Be!=null?Be:Ct,vn=(Fe||nt)&&At!==!1,Gt=Ot(Yt,he),[_e,Bt]=ut(),Ut=Qt=>{ot==null||ot(Qt),Bt(!1)},on=(Qt,yn)=>Qt||(yn?Re?"left":"right":"top"),Le=vt("slider",Xe),[xt,zt,nn]=Ke(Le),Sn=fe()(Nt,Tt,ne.root,lt==null?void 0:lt.root,et,{[`${Le}-rtl`]:Re,[`${Le}-lock`]:_e},zt,nn);Re&&!ct.vertical&&(ct.reverse=!ct.reverse),b.useEffect(()=>{const Qt=()=>{(0,xe.Z)(()=>{st(!1)},1)};return document.addEventListener("mouseup",Qt),()=>{document.removeEventListener("mouseup",Qt)}},[]);const zn=ue&&!At,rr=le||((Qt,yn)=>{const{index:xn}=yn,qt=Qt.props;function En(Cn,Bn,Ln){var Zn,yr,ur,Jt;Ln&&((yr=(Zn=ct)[Cn])===null||yr===void 0||yr.call(Zn,Bn)),(Jt=(ur=qt)[Cn])===null||Jt===void 0||Jt.call(ur,Bn)}const Fn=Object.assign(Object.assign({},qt),{onMouseEnter:Cn=>{qe(!0),En("onMouseEnter",Cn)},onMouseLeave:Cn=>{qe(!1),En("onMouseLeave",Cn)},onMouseDown:Cn=>{st(!0),Bt(!0),En("onMouseDown",Cn)},onFocus:Cn=>{var Bn;st(!0),(Bn=ct.onFocus)===null||Bn===void 0||Bn.call(ct,Cn),En("onFocus",Cn,!0)},onBlur:Cn=>{var Bn;st(!1),(Bn=ct.onBlur)===null||Bn===void 0||Bn.call(ct,Cn),En("onBlur",Cn,!0)}}),Tn=b.cloneElement(Qt,Fn),_t=(!!At||vn)&&Gt!==null;return zn?Tn:b.createElement(tt,Object.assign({},we,{prefixCls:vt("tooltip",kt!=null?kt:ke),title:Gt?Gt(yn.value):"",open:_t,placement:on(It!=null?It:Kt,$t),key:xn,classNames:{root:`${Le}-tooltip`},getPopupContainer:Mt||Pt||oe}),Tn)}),pr=zn?(Qt,yn)=>{const xn=b.cloneElement(Qt,{style:Object.assign(Object.assign({},Qt.props.style),{visibility:"hidden"})});return b.createElement(tt,Object.assign({},we,{prefixCls:vt("tooltip",kt!=null?kt:ke),title:Gt?Gt(yn.value):"",open:Gt!==null&&vn,placement:on(It!=null?It:Kt,$t),key:"tooltip",classNames:{root:`${Le}-tooltip`},getPopupContainer:Mt||Pt||oe,draggingDelete:yn.draggingDelete}),xn)}:void 0,kn=Object.assign(Object.assign(Object.assign(Object.assign({},te.root),ie),Wt==null?void 0:Wt.root),wt),dr=Object.assign(Object.assign({},te.tracks),Wt==null?void 0:Wt.tracks),Ye=fe()(ne.tracks,lt==null?void 0:lt.tracks);return xt(b.createElement(rt.Z,Object.assign({},ct,{classNames:Object.assign({handle:fe()(ne.handle,lt==null?void 0:lt.handle),rail:fe()(ne.rail,lt==null?void 0:lt.rail),track:fe()(ne.track,lt==null?void 0:lt.track)},Ye?{tracks:Ye}:{}),styles:Object.assign({handle:Object.assign(Object.assign({},te.handle),Wt==null?void 0:Wt.handle),rail:Object.assign(Object.assign({},te.rail),Wt==null?void 0:Wt.rail),track:Object.assign(Object.assign({},te.track),Wt==null?void 0:Wt.track)},Object.keys(dr).length?{tracks:dr}:{}),step:ct.step,range:ue,className:Sn,style:kn,disabled:re,ref:Je,prefixCls:Le,handleRender:rr,activeHandleRender:pr,onChangeComplete:Ut})))})},11938:function(Kn,cn,z){"use strict";z.d(cn,{default:function(){return Et}});var b=z(59301),Pe=z(40192),fe=z(22703),rt=z(92310),xe=z.n(rt),ge=z(26112),Ee=z(48755),Qe=z(458),de=pe=>{const{value:Je,formatter:Xe,precision:ue,decimalSeparator:Nt,groupSeparator:et="",prefixCls:wt}=pe;let ln;if(typeof Xe=="function")ln=Xe(Je);else{const ke=String(Je),he=ke.match(/^(-?)(\d*)(\.(\d+))?$/);if(!he||ke==="-")ln=ke;else{const Ct=he[1];let Pt=he[2]||"0",Kt=he[4]||"";Pt=Pt.replace(/\B(?=(\d{3})+(?!\d))/g,et),typeof ue=="number"&&(Kt=Kt.padEnd(ue,"0").slice(0,ue>0?ue:0)),Kt&&(Kt=`${Nt}${Kt}`),ln=[b.createElement("span",{key:"int",className:`${wt}-content-value-int`},Ct,Pt),Kt&&b.createElement("span",{key:"decimal",className:`${wt}-content-value-decimal`},Kt)]}}return b.createElement("span",{className:`${wt}-content-value`},ln)},tt=z(63356),ve=z(16931),Lt=z(51636);const at=pe=>{const{componentCls:Je,marginXXS:Xe,padding:ue,colorTextDescription:Nt,titleFontSize:et,colorTextHeading:wt,contentFontSize:ln,fontFamily:ke}=pe;return{[Je]:Object.assign(Object.assign({},(0,tt.Wf)(pe)),{[`${Je}-title`]:{marginBottom:Xe,color:Nt,fontSize:et},[`${Je}-skeleton`]:{paddingTop:ue},[`${Je}-content`]:{color:wt,fontSize:ln,fontFamily:ke,[`${Je}-content-value`]:{display:"inline-block",direction:"ltr"},[`${Je}-content-prefix, ${Je}-content-suffix`]:{display:"inline-block"},[`${Je}-content-prefix`]:{marginInlineEnd:Xe},[`${Je}-content-suffix`]:{marginInlineStart:Xe}}})}},Ve=pe=>{const{fontSizeHeading3:Je,fontSize:Xe}=pe;return{titleFontSize:Xe,contentFontSize:Je}};var Ne=(0,ve.I$)("Statistic",pe=>{const Je=(0,Lt.mergeToken)(pe,{});return[at(Je)]},Ve),Ze=function(pe,Je){var Xe={};for(var ue in pe)Object.prototype.hasOwnProperty.call(pe,ue)&&Je.indexOf(ue)<0&&(Xe[ue]=pe[ue]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Nt=0,ue=Object.getOwnPropertySymbols(pe);Nt<ue.length;Nt++)Je.indexOf(ue[Nt])<0&&Object.prototype.propertyIsEnumerable.call(pe,ue[Nt])&&(Xe[ue[Nt]]=pe[ue[Nt]]);return Xe},mt=pe=>{const{prefixCls:Je,className:Xe,rootClassName:ue,style:Nt,valueStyle:et,value:wt=0,title:ln,valueRender:ke,prefix:he,suffix:Ct,loading:Pt=!1,formatter:Kt,precision:Ce,decimalSeparator:ot=".",groupSeparator:lt=",",onMouseEnter:Wt,onMouseLeave:ct}=pe,$t=Ze(pe,["prefixCls","className","rootClassName","style","valueStyle","value","title","valueRender","prefix","suffix","loading","formatter","precision","decimalSeparator","groupSeparator","onMouseEnter","onMouseLeave"]),{getPrefixCls:vt,direction:gn,className:Tt,style:ie}=(0,Ee.dj)("statistic"),ne=vt("statistic",Je),[te,oe,se]=Ne(ne),re=b.createElement(de,{decimalSeparator:ot,groupSeparator:lt,prefixCls:ne,formatter:Kt,precision:Ce,value:wt}),le=xe()(ne,{[`${ne}-rtl`]:gn==="rtl"},Tt,Xe,ue,oe,se),me=(0,ge.Z)($t,{aria:!0,data:!0});return te(b.createElement("div",Object.assign({},me,{className:le,style:Object.assign(Object.assign({},ie),Nt),onMouseEnter:Wt,onMouseLeave:ct}),ln&&b.createElement("div",{className:`${ne}-title`},ln),b.createElement(Qe.Z,{paragraph:!1,loading:Pt,className:`${ne}-skeleton`},b.createElement("div",{style:et,className:`${ne}-content`},he&&b.createElement("span",{className:`${ne}-content-prefix`},he),ke?ke(re):re,Ct&&b.createElement("span",{className:`${ne}-content-suffix`},Ct)))))};const Xt=[["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 He(pe,Je){let Xe=pe;const ue=/\[[^\]]*]/g,Nt=(Je.match(ue)||[]).map(ke=>ke.slice(1,-1)),et=Je.replace(ue,"[]"),wt=Xt.reduce((ke,he)=>{let[Ct,Pt]=he;if(ke.includes(Ct)){const Kt=Math.floor(Xe/Pt);return Xe-=Kt*Pt,ke.replace(new RegExp(`${Ct}+`,"g"),Ce=>{const ot=Ce.length;return Kt.toString().padStart(ot,"0")})}return ke},et);let ln=0;return wt.replace(ue,()=>{const ke=Nt[ln];return ln+=1,ke})}function Ke(pe,Je){const{format:Xe=""}=Je,ue=new Date(pe).getTime(),Nt=Date.now(),et=Math.max(ue-Nt,0);return He(et,Xe)}var ut=function(pe,Je){var Xe={};for(var ue in pe)Object.prototype.hasOwnProperty.call(pe,ue)&&Je.indexOf(ue)<0&&(Xe[ue]=pe[ue]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Nt=0,ue=Object.getOwnPropertySymbols(pe);Nt<ue.length;Nt++)Je.indexOf(ue[Nt])<0&&Object.prototype.propertyIsEnumerable.call(pe,ue[Nt])&&(Xe[ue[Nt]]=pe[ue[Nt]]);return Xe};const ft=1e3/30;function jt(pe){return new Date(pe).getTime()}const Ot=pe=>{const{value:Je,format:Xe="HH:mm:ss",onChange:ue,onFinish:Nt}=pe,et=ut(pe,["value","format","onChange","onFinish"]),wt=(0,Pe.Z)(),ln=b.useRef(null),ke=()=>{Nt==null||Nt(),ln.current&&(clearInterval(ln.current),ln.current=null)},he=()=>{const Kt=jt(Je);Kt>=Date.now()&&(ln.current=setInterval(()=>{wt(),ue==null||ue(Kt-Date.now()),Kt<Date.now()&&ke()},ft))};b.useEffect(()=>(he(),()=>{ln.current&&(clearInterval(ln.current),ln.current=null)}),[Je]);const Ct=(Kt,Ce)=>Ke(Kt,Object.assign(Object.assign({},Ce),{format:Xe})),Pt=Kt=>(0,fe.Tm)(Kt,{title:void 0});return b.createElement(mt,Object.assign({},et,{value:Je,valueRender:Pt,formatter:Ct}))};var yt=b.memo(Ot);mt.Countdown=yt;var Et=mt},58755:function(Kn,cn,z){"use strict";z.d(cn,{Z:function(){return Nt}});var b=z(59301),Pe=z(58617),fe=z(92310),rt=z.n(fe),xe=z(54476),ge=z(20068),Ee=z(42978),Qe=z(75931),Ae=z(18929),de=z(10228),tt=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],ve=b.forwardRef(function(et,wt){var ln,ke=et.prefixCls,he=ke===void 0?"rc-switch":ke,Ct=et.className,Pt=et.checked,Kt=et.defaultChecked,Ce=et.disabled,ot=et.loadingIcon,lt=et.checkedChildren,Wt=et.unCheckedChildren,ct=et.onClick,$t=et.onChange,vt=et.onKeyDown,gn=(0,Qe.Z)(et,tt),Tt=(0,Ae.Z)(!1,{value:Pt,defaultValue:Kt}),ie=(0,Ee.Z)(Tt,2),ne=ie[0],te=ie[1];function oe(me,Dt){var Re=ne;return Ce||(Re=me,te(Re),$t==null||$t(Re,Dt)),Re}function se(me){me.which===de.Z.LEFT?oe(!1,me):me.which===de.Z.RIGHT&&oe(!0,me),vt==null||vt(me)}function re(me){var Dt=oe(!ne,me);ct==null||ct(Dt,me)}var le=rt()(he,Ct,(ln={},(0,ge.Z)(ln,"".concat(he,"-checked"),ne),(0,ge.Z)(ln,"".concat(he,"-disabled"),Ce),ln));return b.createElement("button",(0,xe.Z)({},gn,{type:"button",role:"switch","aria-checked":ne,disabled:Ce,className:le,ref:wt,onKeyDown:se,onClick:re}),ot,b.createElement("span",{className:"".concat(he,"-inner")},b.createElement("span",{className:"".concat(he,"-inner-checked")},lt),b.createElement("span",{className:"".concat(he,"-inner-unchecked")},Wt)))});ve.displayName="Switch";var Lt=ve,at=z(12919),Ve=z(48755),Ne=z(2171),Ze=z(31756),pt=z(36237),mt=z(17835),Xt=z(63356),He=z(16931),Ke=z(51636);const ut=et=>{const{componentCls:wt,trackHeightSM:ln,trackPadding:ke,trackMinWidthSM:he,innerMinMarginSM:Ct,innerMaxMarginSM:Pt,handleSizeSM:Kt,calc:Ce}=et,ot=`${wt}-inner`,lt=(0,pt.unit)(Ce(Kt).add(Ce(ke).mul(2)).equal()),Wt=(0,pt.unit)(Ce(Pt).mul(2).equal());return{[wt]:{[`&${wt}-small`]:{minWidth:he,height:ln,lineHeight:(0,pt.unit)(ln),[`${wt}-inner`]:{paddingInlineStart:Pt,paddingInlineEnd:Ct,[`${ot}-checked, ${ot}-unchecked`]:{minHeight:ln},[`${ot}-checked`]:{marginInlineStart:`calc(-100% + ${lt} - ${Wt})`,marginInlineEnd:`calc(100% - ${lt} + ${Wt})`},[`${ot}-unchecked`]:{marginTop:Ce(ln).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${wt}-handle`]:{width:Kt,height:Kt},[`${wt}-loading-icon`]:{top:Ce(Ce(Kt).sub(et.switchLoadingIconSize)).div(2).equal(),fontSize:et.switchLoadingIconSize},[`&${wt}-checked`]:{[`${wt}-inner`]:{paddingInlineStart:Ct,paddingInlineEnd:Pt,[`${ot}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${ot}-unchecked`]:{marginInlineStart:`calc(100% - ${lt} + ${Wt})`,marginInlineEnd:`calc(-100% + ${lt} - ${Wt})`}},[`${wt}-handle`]:{insetInlineStart:`calc(100% - ${(0,pt.unit)(Ce(Kt).add(ke).equal())})`}},[`&:not(${wt}-disabled):active`]:{[`&:not(${wt}-checked) ${ot}`]:{[`${ot}-unchecked`]:{marginInlineStart:Ce(et.marginXXS).div(2).equal(),marginInlineEnd:Ce(et.marginXXS).mul(-1).div(2).equal()}},[`&${wt}-checked ${ot}`]:{[`${ot}-checked`]:{marginInlineStart:Ce(et.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:Ce(et.marginXXS).div(2).equal()}}}}}}},ft=et=>{const{componentCls:wt,handleSize:ln,calc:ke}=et;return{[wt]:{[`${wt}-loading-icon${et.iconCls}`]:{position:"relative",top:ke(ke(ln).sub(et.fontSize)).div(2).equal(),color:et.switchLoadingIconColor,verticalAlign:"top"},[`&${wt}-checked ${wt}-loading-icon`]:{color:et.switchColor}}}},jt=et=>{const{componentCls:wt,trackPadding:ln,handleBg:ke,handleShadow:he,handleSize:Ct,calc:Pt}=et,Kt=`${wt}-handle`;return{[wt]:{[Kt]:{position:"absolute",top:ln,insetInlineStart:ln,width:Ct,height:Ct,transition:`all ${et.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:ke,borderRadius:Pt(Ct).div(2).equal(),boxShadow:he,transition:`all ${et.switchDuration} ease-in-out`,content:'""'}},[`&${wt}-checked ${Kt}`]:{insetInlineStart:`calc(100% - ${(0,pt.unit)(Pt(Ct).add(ln).equal())})`},[`&:not(${wt}-disabled):active`]:{[`${Kt}::before`]:{insetInlineEnd:et.switchHandleActiveInset,insetInlineStart:0},[`&${wt}-checked ${Kt}::before`]:{insetInlineEnd:0,insetInlineStart:et.switchHandleActiveInset}}}}},Ot=et=>{const{componentCls:wt,trackHeight:ln,trackPadding:ke,innerMinMargin:he,innerMaxMargin:Ct,handleSize:Pt,calc:Kt}=et,Ce=`${wt}-inner`,ot=(0,pt.unit)(Kt(Pt).add(Kt(ke).mul(2)).equal()),lt=(0,pt.unit)(Kt(Ct).mul(2).equal());return{[wt]:{[Ce]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:Ct,paddingInlineEnd:he,transition:`padding-inline-start ${et.switchDuration} ease-in-out, padding-inline-end ${et.switchDuration} ease-in-out`,[`${Ce}-checked, ${Ce}-unchecked`]:{display:"block",color:et.colorTextLightSolid,fontSize:et.fontSizeSM,transition:`margin-inline-start ${et.switchDuration} ease-in-out, margin-inline-end ${et.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:ln},[`${Ce}-checked`]:{marginInlineStart:`calc(-100% + ${ot} - ${lt})`,marginInlineEnd:`calc(100% - ${ot} + ${lt})`},[`${Ce}-unchecked`]:{marginTop:Kt(ln).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${wt}-checked ${Ce}`]:{paddingInlineStart:he,paddingInlineEnd:Ct,[`${Ce}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Ce}-unchecked`]:{marginInlineStart:`calc(100% - ${ot} + ${lt})`,marginInlineEnd:`calc(-100% + ${ot} - ${lt})`}},[`&:not(${wt}-disabled):active`]:{[`&:not(${wt}-checked) ${Ce}`]:{[`${Ce}-unchecked`]:{marginInlineStart:Kt(ke).mul(2).equal(),marginInlineEnd:Kt(ke).mul(-1).mul(2).equal()}},[`&${wt}-checked ${Ce}`]:{[`${Ce}-checked`]:{marginInlineStart:Kt(ke).mul(-1).mul(2).equal(),marginInlineEnd:Kt(ke).mul(2).equal()}}}}}},yt=et=>{const{componentCls:wt,trackHeight:ln,trackMinWidth:ke}=et;return{[wt]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Xt.Wf)(et)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:ke,height:ln,lineHeight:(0,pt.unit)(ln),verticalAlign:"middle",background:et.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${et.motionDurationMid}`,userSelect:"none",[`&:hover:not(${wt}-disabled)`]:{background:et.colorTextTertiary}}),(0,Xt.Qy)(et)),{[`&${wt}-checked`]:{background:et.switchColor,[`&:hover:not(${wt}-disabled)`]:{background:et.colorPrimaryHover}},[`&${wt}-loading, &${wt}-disabled`]:{cursor:"not-allowed",opacity:et.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${wt}-rtl`]:{direction:"rtl"}})}},Et=et=>{const{fontSize:wt,lineHeight:ln,controlHeight:ke,colorWhite:he}=et,Ct=wt*ln,Pt=ke/2,Kt=2,Ce=Ct-Kt*2,ot=Pt-Kt*2;return{trackHeight:Ct,trackHeightSM:Pt,trackMinWidth:Ce*2+Kt*4,trackMinWidthSM:ot*2+Kt*2,trackPadding:Kt,handleBg:he,handleSize:Ce,handleSizeSM:ot,handleShadow:`0 2px 4px 0 ${new mt.FastColor("#00230b").setA(.2).toRgbString()}`,innerMinMargin:Ce/2,innerMaxMargin:Ce+Kt+Kt*2,innerMinMarginSM:ot/2,innerMaxMarginSM:ot+Kt+Kt*2}};var pe=(0,He.I$)("Switch",et=>{const wt=(0,Ke.mergeToken)(et,{switchDuration:et.motionDurationMid,switchColor:et.colorPrimary,switchDisabledOpacity:et.opacityLoading,switchLoadingIconSize:et.calc(et.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${et.opacityLoading})`,switchHandleActiveInset:"-30%"});return[yt(wt),Ot(wt),jt(wt),ft(wt),ut(wt)]},Et),Je=function(et,wt){var ln={};for(var ke in et)Object.prototype.hasOwnProperty.call(et,ke)&&wt.indexOf(ke)<0&&(ln[ke]=et[ke]);if(et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var he=0,ke=Object.getOwnPropertySymbols(et);he<ke.length;he++)wt.indexOf(ke[he])<0&&Object.prototype.propertyIsEnumerable.call(et,ke[he])&&(ln[ke[he]]=et[ke[he]]);return ln};const ue=b.forwardRef((et,wt)=>{const{prefixCls:ln,size:ke,disabled:he,loading:Ct,className:Pt,rootClassName:Kt,style:Ce,checked:ot,value:lt,defaultChecked:Wt,defaultValue:ct,onChange:$t}=et,vt=Je(et,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[gn,Tt]=(0,Ae.Z)(!1,{value:ot!=null?ot:lt,defaultValue:Wt!=null?Wt:ct}),{getPrefixCls:ie,direction:ne,switch:te}=b.useContext(Ve.E_),oe=b.useContext(Ne.Z),se=(he!=null?he:oe)||Ct,re=ie("switch",ln),le=b.createElement("div",{className:`${re}-handle`},Ct&&b.createElement(Pe.Z,{className:`${re}-loading-icon`})),[me,Dt,Re]=pe(re),Fe=(0,Ze.Z)(ke),qe=rt()(te==null?void 0:te.className,{[`${re}-small`]:Fe==="small",[`${re}-loading`]:Ct,[`${re}-rtl`]:ne==="rtl"},Pt,Kt,Dt,Re),nt=Object.assign(Object.assign({},te==null?void 0:te.style),Ce),st=function(){Tt(arguments.length<=0?void 0:arguments[0]),$t==null||$t.apply(void 0,arguments)};return me(b.createElement(at.Z,{component:"Switch"},b.createElement(Lt,Object.assign({},vt,{checked:gn,onChange:st,prefixCls:re,className:qe,style:nt,disabled:se,ref:wt,loadingIcon:le}))))});ue.__ANT_SWITCH=!0;var Nt=ue},70858:function(Kn,cn,z){"use strict";z.d(cn,{default:function(){return gu}});var b=z(59301),Pe={},fe="rc-table-internal-hook",rt=z(42978),xe=z(6089),ge=z(34280),Ee=z(13697),Qe=z(4676);function Ae(Se){var be=b.createContext(void 0),ht=function(en){var fn=en.value,Pn=en.children,Dn=b.useRef(fn);Dn.current=fn;var jn=b.useState(function(){return{getValue:function(){return Dn.current},listeners:new Set}}),Mn=(0,rt.Z)(jn,1),xr=Mn[0];return(0,ge.Z)(function(){(0,Qe.unstable_batchedUpdates)(function(){xr.listeners.forEach(function(fr){fr(fn)})})},[fn]),b.createElement(be.Provider,{value:xr},Pn)};return{Context:be,Provider:ht,defaultValue:Se}}function de(Se,be){var ht=(0,xe.Z)(typeof be=="function"?be:function(fr){if(be===void 0)return fr;if(!Array.isArray(be))return fr[be];var sr={};return be.forEach(function(Yn){sr[Yn]=fr[Yn]}),sr}),Rt=b.useContext(Se==null?void 0:Se.Context),en=Rt||{},fn=en.listeners,Pn=en.getValue,Dn=b.useRef();Dn.current=ht(Rt?Pn():Se==null?void 0:Se.defaultValue);var jn=b.useState({}),Mn=(0,rt.Z)(jn,2),xr=Mn[1];return(0,ge.Z)(function(){if(!Rt)return;function fr(sr){var Yn=ht(sr);(0,Ee.Z)(Dn.current,Yn,!0)||xr({})}return fn.add(fr),function(){fn.delete(fr)}},[Rt]),Dn.current}var tt=z(54476),ve=z(8654);function Lt(){var Se=b.createContext(null);function be(){return b.useContext(Se)}function ht(en,fn){var Pn=(0,ve.Yr)(en),Dn=function(Mn,xr){var fr=Pn?{ref:xr}:{},sr=b.useRef(0),Yn=b.useRef(Mn),Un=be();return Un!==null?b.createElement(en,(0,tt.Z)({},Mn,fr)):((!fn||fn(Yn.current,Mn))&&(sr.current+=1),Yn.current=Mn,b.createElement(Se.Provider,{value:sr.current},b.createElement(en,(0,tt.Z)({},Mn,fr))))};return Pn?b.forwardRef(Dn):Dn}function Rt(en,fn){var Pn=(0,ve.Yr)(en),Dn=function(Mn,xr){var fr=Pn?{ref:xr}:{};return be(),b.createElement(en,(0,tt.Z)({},Mn,fr))};return Pn?b.memo(b.forwardRef(Dn),fn):b.memo(Dn,fn)}return{makeImmutable:ht,responseImmutable:Rt,useImmutableMark:be}}var at=Lt(),Ve=at.makeImmutable,Ne=at.responseImmutable,Ze=at.useImmutableMark,pt=Lt(),mt=pt.makeImmutable,Xt=pt.responseImmutable,He=pt.useImmutableMark,Ke=Ae(),ut=Ke;function ft(Se,be){var ht=React.useRef(0);ht.current+=1;var Rt=React.useRef(Se),en=[];Object.keys(Se||{}).map(function(Pn){var Dn;(Se==null?void 0:Se[Pn])!==((Dn=Rt.current)===null||Dn===void 0?void 0:Dn[Pn])&&en.push(Pn)}),Rt.current=Se;var fn=React.useRef([]);return en.length&&(fn.current=en),React.useDebugValue(ht.current),React.useDebugValue(fn.current.join(", ")),be&&console.log("".concat(be,":"),ht.current,fn.current),ht.current}var jt=null,Ot=null,yt=z(76190),Et=z(33885),pe=z(20068),Je=z(92310),Xe=z.n(Je),ue=z(80547),Nt=z(97938),et=z(48736),wt=b.createContext({renderWithProps:!1}),ln=wt,ke="RC_TABLE_KEY";function he(Se){return Se==null?[]:Array.isArray(Se)?Se:[Se]}function Ct(Se){var be=[],ht={};return Se.forEach(function(Rt){for(var en=Rt||{},fn=en.key,Pn=en.dataIndex,Dn=fn||he(Pn).join("-")||ke;ht[Dn];)Dn="".concat(Dn,"_next");ht[Dn]=!0,be.push(Dn)}),be}function Pt(Se){return Se!=null}function Kt(Se){return typeof Se=="number"&&!Number.isNaN(Se)}function Ce(Se){return Se&&(0,yt.Z)(Se)==="object"&&!Array.isArray(Se)&&!b.isValidElement(Se)}function ot(Se,be,ht,Rt,en,fn){var Pn=b.useContext(ln),Dn=He(),jn=(0,ue.Z)(function(){if(Pt(Rt))return[Rt];var Mn=be==null||be===""?[]:Array.isArray(be)?be:[be],xr=(0,Nt.Z)(Se,Mn),fr=xr,sr=void 0;if(en){var Yn=en(xr,Se,ht);Ce(Yn)?(fr=Yn.children,sr=Yn.props,Pn.renderWithProps=!0):fr=Yn}return[fr,sr]},[Dn,Se,Rt,be,en,ht],function(Mn,xr){if(fn){var fr=(0,rt.Z)(Mn,2),sr=fr[1],Yn=(0,rt.Z)(xr,2),Un=Yn[1];return fn(Un,sr)}return Pn.renderWithProps?!0:!(0,Ee.Z)(Mn,xr,!0)});return jn}function lt(Se,be,ht,Rt){var en=Se+be-1;return Se<=Rt&&en>=ht}function Wt(Se,be){return de(ut,function(ht){var Rt=lt(Se,be||1,ht.hoverStartRow,ht.hoverEndRow);return[Rt,ht.onHover]})}var ct=z(70425),$t=function(be){var ht=be.ellipsis,Rt=be.rowType,en=be.children,fn,Pn=ht===!0?{showTitle:!0}:ht;return Pn&&(Pn.showTitle||Rt==="header")&&(typeof en=="string"||typeof en=="number"?fn=en.toString():b.isValidElement(en)&&typeof en.props.children=="string"&&(fn=en.props.children)),fn};function vt(Se){var be,ht,Rt,en,fn,Pn,Dn,jn,Mn=Se.component,xr=Se.children,fr=Se.ellipsis,sr=Se.scope,Yn=Se.prefixCls,Un=Se.className,kr=Se.align,Dr=Se.record,Lr=Se.render,$r=Se.dataIndex,Zr=Se.renderIndex,Gr=Se.shouldCellUpdate,to=Se.index,uo=Se.rowType,io=Se.colSpan,$o=Se.rowSpan,Do=Se.fixLeft,Co=Se.fixRight,To=Se.firstFixLeft,co=Se.lastFixLeft,ho=Se.firstFixRight,qr=Se.lastFixRight,Kr=Se.appendNode,so=Se.additionalProps,mo=so===void 0?{}:so,Oo=Se.isSticky,_r="".concat(Yn,"-cell"),Qo=de(ut,["supportSticky","allColumnsFixedLeft","rowHoverable"]),ta=Qo.supportSticky,za=Qo.allColumnsFixedLeft,Fa=Qo.rowHoverable,wa=ot(Dr,$r,Zr,xr,Lr,Gr),Na=(0,rt.Z)(wa,2),Ka=Na[0],na=Na[1],ra={},Va=typeof Do=="number"&&ta,qa=typeof Co=="number"&&ta;Va&&(ra.position="sticky",ra.left=Do),qa&&(ra.position="sticky",ra.right=Co);var xo=(be=(ht=(Rt=na==null?void 0:na.colSpan)!==null&&Rt!==void 0?Rt:mo.colSpan)!==null&&ht!==void 0?ht:io)!==null&&be!==void 0?be:1,zo=(en=(fn=(Pn=na==null?void 0:na.rowSpan)!==null&&Pn!==void 0?Pn:mo.rowSpan)!==null&&fn!==void 0?fn:$o)!==null&&en!==void 0?en:1,yo=Wt(to,zo),lo=(0,rt.Z)(yo,2),la=lo[0],ha=lo[1],Ia=(0,ct.zX)(function(Ca){var ya;Dr&&ha(to,to+zo-1),mo==null||(ya=mo.onMouseEnter)===null||ya===void 0||ya.call(mo,Ca)}),Sa=(0,ct.zX)(function(Ca){var ya;Dr&&ha(-1,-1),mo==null||(ya=mo.onMouseLeave)===null||ya===void 0||ya.call(mo,Ca)});if(xo===0||zo===0)return null;var Ua=(Dn=mo.title)!==null&&Dn!==void 0?Dn:$t({rowType:uo,ellipsis:fr,children:Ka}),ni=Xe()(_r,Un,(jn={},(0,pe.Z)((0,pe.Z)((0,pe.Z)((0,pe.Z)((0,pe.Z)((0,pe.Z)((0,pe.Z)((0,pe.Z)((0,pe.Z)((0,pe.Z)(jn,"".concat(_r,"-fix-left"),Va&&ta),"".concat(_r,"-fix-left-first"),To&&ta),"".concat(_r,"-fix-left-last"),co&&ta),"".concat(_r,"-fix-left-all"),co&&za&&ta),"".concat(_r,"-fix-right"),qa&&ta),"".concat(_r,"-fix-right-first"),ho&&ta),"".concat(_r,"-fix-right-last"),qr&&ta),"".concat(_r,"-ellipsis"),fr),"".concat(_r,"-with-append"),Kr),"".concat(_r,"-fix-sticky"),(Va||qa)&&Oo&&ta),(0,pe.Z)(jn,"".concat(_r,"-row-hover"),!na&&la)),mo.className,na==null?void 0:na.className),Eo={};kr&&(Eo.textAlign=kr);var Mo=(0,Et.Z)((0,Et.Z)((0,Et.Z)((0,Et.Z)({},na==null?void 0:na.style),ra),Eo),mo.style),pa=Ka;return(0,yt.Z)(pa)==="object"&&!Array.isArray(pa)&&!b.isValidElement(pa)&&(pa=null),fr&&(co||ho)&&(pa=b.createElement("span",{className:"".concat(_r,"-content")},pa)),b.createElement(Mn,(0,tt.Z)({},na,mo,{className:ni,style:Mo,title:Ua,scope:sr,onMouseEnter:Fa?Ia:void 0,onMouseLeave:Fa?Sa:void 0,colSpan:xo!==1?xo:null,rowSpan:zo!==1?zo:null}),Kr,pa)}var gn=b.memo(vt);function Tt(Se,be,ht,Rt,en){var fn=ht[Se]||{},Pn=ht[be]||{},Dn,jn;fn.fixed==="left"?Dn=Rt.left[en==="rtl"?be:Se]:Pn.fixed==="right"&&(jn=Rt.right[en==="rtl"?Se:be]);var Mn=!1,xr=!1,fr=!1,sr=!1,Yn=ht[be+1],Un=ht[Se-1],kr=Yn&&!Yn.fixed||Un&&!Un.fixed||ht.every(function(Gr){return Gr.fixed==="left"});if(en==="rtl"){if(Dn!==void 0){var Dr=Un&&Un.fixed==="left";sr=!Dr&&kr}else if(jn!==void 0){var Lr=Yn&&Yn.fixed==="right";fr=!Lr&&kr}}else if(Dn!==void 0){var $r=Yn&&Yn.fixed==="left";Mn=!$r&&kr}else if(jn!==void 0){var Zr=Un&&Un.fixed==="right";xr=!Zr&&kr}return{fixLeft:Dn,fixRight:jn,lastFixLeft:Mn,firstFixRight:xr,lastFixRight:fr,firstFixLeft:sr,isSticky:Rt.isSticky}}var ie=b.createContext({}),ne=ie;function te(Se){var be=Se.className,ht=Se.index,Rt=Se.children,en=Se.colSpan,fn=en===void 0?1:en,Pn=Se.rowSpan,Dn=Se.align,jn=de(ut,["prefixCls","direction"]),Mn=jn.prefixCls,xr=jn.direction,fr=b.useContext(ne),sr=fr.scrollColumnIndex,Yn=fr.stickyOffsets,Un=fr.flattenColumns,kr=ht+fn-1,Dr=kr+1===sr?fn+1:fn,Lr=Tt(ht,ht+Dr-1,Un,Yn,xr);return b.createElement(gn,(0,tt.Z)({className:be,index:ht,component:"td",prefixCls:Mn,record:null,dataIndex:null,align:Dn,colSpan:Dr,rowSpan:Pn,render:function(){return Rt}},Lr))}var oe=z(75931),se=["children"];function re(Se){var be=Se.children,ht=(0,oe.Z)(Se,se);return b.createElement("tr",ht,be)}function le(Se){var be=Se.children;return be}le.Row=re,le.Cell=te;var me=le;function Dt(Se){var be=Se.children,ht=Se.stickyOffsets,Rt=Se.flattenColumns,en=de(ut,"prefixCls"),fn=Rt.length-1,Pn=Rt[fn],Dn=b.useMemo(function(){return{stickyOffsets:ht,flattenColumns:Rt,scrollColumnIndex:Pn!=null&&Pn.scrollbar?fn:null}},[Pn,Rt,fn,ht]);return b.createElement(ne.Provider,{value:Dn},b.createElement("tfoot",{className:"".concat(en,"-summary")},be))}var Re=Xt(Dt),Fe=me,qe=z(29301),nt=z(24514),st=z(75152),we=z(26112);function Be(Se,be,ht,Rt,en,fn,Pn){Se.push({record:be,indent:ht,index:Pn});var Dn=fn(be),jn=en==null?void 0:en.has(Dn);if(be&&Array.isArray(be[Rt])&&jn)for(var Mn=0;Mn<be[Rt].length;Mn+=1)Be(Se,be[Rt][Mn],ht+1,Rt,en,fn,Mn)}function It(Se,be,ht,Rt){var en=b.useMemo(function(){if(ht!=null&&ht.size){for(var fn=[],Pn=0;Pn<(Se==null?void 0:Se.length);Pn+=1){var Dn=Se[Pn];Be(fn,Dn,0,be,ht,Rt,Pn)}return fn}return Se==null?void 0:Se.map(function(jn,Mn){return{record:jn,indent:0,index:Mn}})},[Se,be,ht,Rt]);return en}function Mt(Se,be,ht,Rt){var en=de(ut,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),fn=en.flattenColumns,Pn=en.expandableType,Dn=en.expandedKeys,jn=en.childrenColumnName,Mn=en.onTriggerExpand,xr=en.rowExpandable,fr=en.onRow,sr=en.expandRowByClick,Yn=en.rowClassName,Un=Pn==="nest",kr=Pn==="row"&&(!xr||xr(Se)),Dr=kr||Un,Lr=Dn&&Dn.has(be),$r=jn&&Se&&Se[jn],Zr=(0,ct.zX)(Mn),Gr=fr==null?void 0:fr(Se,ht),to=Gr==null?void 0:Gr.onClick,uo=function(Co){sr&&Dr&&Mn(Se,Co);for(var To=arguments.length,co=new Array(To>1?To-1:0),ho=1;ho<To;ho++)co[ho-1]=arguments[ho];to==null||to.apply(void 0,[Co].concat(co))},io;typeof Yn=="string"?io=Yn:typeof Yn=="function"&&(io=Yn(Se,ht,Rt));var $o=Ct(fn);return(0,Et.Z)((0,Et.Z)({},en),{},{columnsKey:$o,nestExpandable:Un,expanded:Lr,hasNestChildren:$r,record:Se,onTriggerExpand:Zr,rowSupportExpand:kr,expandable:Dr,rowProps:(0,Et.Z)((0,Et.Z)({},Gr),{},{className:Xe()(io,Gr==null?void 0:Gr.className),onClick:uo})})}function kt(Se){var be=Se.prefixCls,ht=Se.children,Rt=Se.component,en=Se.cellComponent,fn=Se.className,Pn=Se.expanded,Dn=Se.colSpan,jn=Se.isEmpty,Mn=de(ut,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),xr=Mn.scrollbarSize,fr=Mn.fixHeader,sr=Mn.fixColumn,Yn=Mn.componentWidth,Un=Mn.horizonScroll,kr=ht;return(jn?Un&&Yn:sr)&&(kr=b.createElement("div",{style:{width:Yn-(fr&&!jn?xr:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(be,"-expanded-row-fixed")},kr)),b.createElement(Rt,{className:fn,style:{display:Pn?null:"none"}},b.createElement(gn,{component:en,prefixCls:be,colSpan:Dn},kr))}var Yt=kt;function At(Se){var be=Se.prefixCls,ht=Se.record,Rt=Se.onExpand,en=Se.expanded,fn=Se.expandable,Pn="".concat(be,"-row-expand-icon");if(!fn)return b.createElement("span",{className:Xe()(Pn,"".concat(be,"-row-spaced"))});var Dn=function(Mn){Rt(ht,Mn),Mn.stopPropagation()};return b.createElement("span",{className:Xe()(Pn,(0,pe.Z)((0,pe.Z)({},"".concat(be,"-row-expanded"),en),"".concat(be,"-row-collapsed"),!en)),onClick:Dn})}function vn(Se,be,ht){var Rt=[];function en(fn){(fn||[]).forEach(function(Pn,Dn){Rt.push(be(Pn,Dn)),en(Pn[ht])})}return en(Se),Rt}function Gt(Se,be,ht,Rt){return typeof Se=="string"?Se:typeof Se=="function"?Se(be,ht,Rt):""}function _e(Se,be,ht,Rt,en){var fn=Se.record,Pn=Se.prefixCls,Dn=Se.columnsKey,jn=Se.fixedInfoList,Mn=Se.expandIconColumnIndex,xr=Se.nestExpandable,fr=Se.indentSize,sr=Se.expandIcon,Yn=Se.expanded,Un=Se.hasNestChildren,kr=Se.onTriggerExpand,Dr=Dn[ht],Lr=jn[ht],$r;ht===(Mn||0)&&xr&&($r=b.createElement(b.Fragment,null,b.createElement("span",{style:{paddingLeft:"".concat(fr*Rt,"px")},className:"".concat(Pn,"-row-indent indent-level-").concat(Rt)}),sr({prefixCls:Pn,expanded:Yn,expandable:Un,record:fn,onExpand:kr})));var Zr;return be.onCell&&(Zr=be.onCell(fn,en)),{key:Dr,fixedInfo:Lr,appendCellNode:$r,additionalCellProps:Zr||{}}}function Bt(Se){var be=Se.className,ht=Se.style,Rt=Se.record,en=Se.index,fn=Se.renderIndex,Pn=Se.rowKey,Dn=Se.indent,jn=Dn===void 0?0:Dn,Mn=Se.rowComponent,xr=Se.cellComponent,fr=Se.scopeCellComponent,sr=Mt(Rt,Pn,en,jn),Yn=sr.prefixCls,Un=sr.flattenColumns,kr=sr.expandedRowClassName,Dr=sr.expandedRowRender,Lr=sr.rowProps,$r=sr.expanded,Zr=sr.rowSupportExpand,Gr=b.useRef(!1);Gr.current||(Gr.current=$r);var to=Gt(kr,Rt,en,jn),uo=b.createElement(Mn,(0,tt.Z)({},Lr,{"data-row-key":Pn,className:Xe()(be,"".concat(Yn,"-row"),"".concat(Yn,"-row-level-").concat(jn),Lr==null?void 0:Lr.className,(0,pe.Z)({},to,jn>=1)),style:(0,Et.Z)((0,Et.Z)({},ht),Lr==null?void 0:Lr.style)}),Un.map(function(Do,Co){var To=Do.render,co=Do.dataIndex,ho=Do.className,qr=_e(sr,Do,Co,jn,en),Kr=qr.key,so=qr.fixedInfo,mo=qr.appendCellNode,Oo=qr.additionalCellProps;return b.createElement(gn,(0,tt.Z)({className:ho,ellipsis:Do.ellipsis,align:Do.align,scope:Do.rowScope,component:Do.rowScope?fr:xr,prefixCls:Yn,key:Kr,record:Rt,index:en,renderIndex:fn,dataIndex:co,render:To,shouldCellUpdate:Do.shouldCellUpdate},so,{appendNode:mo,additionalProps:Oo}))})),io;if(Zr&&(Gr.current||$r)){var $o=Dr(Rt,en,jn+1,$r);io=b.createElement(Yt,{expanded:$r,className:Xe()("".concat(Yn,"-expanded-row"),"".concat(Yn,"-expanded-row-level-").concat(jn+1),to),prefixCls:Yn,component:Mn,cellComponent:xr,colSpan:Un.length,isEmpty:!1},$o)}return b.createElement(b.Fragment,null,uo,io)}var Ut=Xt(Bt);function on(Se){var be=Se.columnKey,ht=Se.onColumnResize,Rt=b.useRef();return(0,ge.Z)(function(){Rt.current&&ht(be,Rt.current.offsetWidth)},[]),b.createElement(qe.Z,{data:be},b.createElement("td",{ref:Rt,style:{padding:0,border:0,height:0}},b.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}var Le=z(29194);function xt(Se){var be=Se.prefixCls,ht=Se.columnsKey,Rt=Se.onColumnResize,en=b.useRef(null);return b.createElement("tr",{"aria-hidden":"true",className:"".concat(be,"-measure-row"),style:{height:0,fontSize:0},ref:en},b.createElement(qe.Z.Collection,{onBatchResize:function(Pn){(0,Le.Z)(en.current)&&Pn.forEach(function(Dn){var jn=Dn.data,Mn=Dn.size;Rt(jn,Mn.offsetWidth)})}},ht.map(function(fn){return b.createElement(on,{key:fn,columnKey:fn,onColumnResize:Rt})})))}function zt(Se){var be=Se.data,ht=Se.measureColumnWidth,Rt=de(ut,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),en=Rt.prefixCls,fn=Rt.getComponent,Pn=Rt.onColumnResize,Dn=Rt.flattenColumns,jn=Rt.getRowKey,Mn=Rt.expandedKeys,xr=Rt.childrenColumnName,fr=Rt.emptyNode,sr=It(be,xr,Mn,jn),Yn=b.useRef({renderWithProps:!1}),Un=fn(["body","wrapper"],"tbody"),kr=fn(["body","row"],"tr"),Dr=fn(["body","cell"],"td"),Lr=fn(["body","cell"],"th"),$r;be.length?$r=sr.map(function(Gr,to){var uo=Gr.record,io=Gr.indent,$o=Gr.index,Do=jn(uo,to);return b.createElement(Ut,{key:Do,rowKey:Do,record:uo,index:to,renderIndex:$o,rowComponent:kr,cellComponent:Dr,scopeCellComponent:Lr,indent:io})}):$r=b.createElement(Yt,{expanded:!0,className:"".concat(en,"-placeholder"),prefixCls:en,component:kr,cellComponent:Dr,colSpan:Dn.length,isEmpty:!0},fr);var Zr=Ct(Dn);return b.createElement(ln.Provider,{value:Yn.current},b.createElement(Un,{className:"".concat(en,"-tbody")},ht&&b.createElement(xt,{prefixCls:en,columnsKey:Zr,onColumnResize:Pn}),$r))}var nn=Xt(zt),Sn=["expandable"],zn="RC_TABLE_INTERNAL_COL_DEFINE";function rr(Se){var be=Se.expandable,ht=(0,oe.Z)(Se,Sn),Rt;return"expandable"in Se?Rt=(0,Et.Z)((0,Et.Z)({},ht),be):Rt=ht,Rt.showExpandColumn===!1&&(Rt.expandIconColumnIndex=-1),Rt}var pr=["columnType"];function kn(Se){for(var be=Se.colWidths,ht=Se.columns,Rt=Se.columCount,en=de(ut,["tableLayout"]),fn=en.tableLayout,Pn=[],Dn=Rt||ht.length,jn=!1,Mn=Dn-1;Mn>=0;Mn-=1){var xr=be[Mn],fr=ht&&ht[Mn],sr=void 0,Yn=void 0;if(fr&&(sr=fr[zn],fn==="auto"&&(Yn=fr.minWidth)),xr||Yn||sr||jn){var Un=sr||{},kr=Un.columnType,Dr=(0,oe.Z)(Un,pr);Pn.unshift(b.createElement("col",(0,tt.Z)({key:Mn,style:{width:xr,minWidth:Yn}},Dr))),jn=!0}}return b.createElement("colgroup",null,Pn)}var dr=kn,Ye=z(94480),Qt=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function yn(Se,be){return(0,b.useMemo)(function(){for(var ht=[],Rt=0;Rt<be;Rt+=1){var en=Se[Rt];if(en!==void 0)ht[Rt]=en;else return null}return ht},[Se.join("_"),be])}var xn=b.forwardRef(function(Se,be){var ht=Se.className,Rt=Se.noData,en=Se.columns,fn=Se.flattenColumns,Pn=Se.colWidths,Dn=Se.columCount,jn=Se.stickyOffsets,Mn=Se.direction,xr=Se.fixHeader,fr=Se.stickyTopOffset,sr=Se.stickyBottomOffset,Yn=Se.stickyClassName,Un=Se.onScroll,kr=Se.maxContentScroll,Dr=Se.children,Lr=(0,oe.Z)(Se,Qt),$r=de(ut,["prefixCls","scrollbarSize","isSticky","getComponent"]),Zr=$r.prefixCls,Gr=$r.scrollbarSize,to=$r.isSticky,uo=$r.getComponent,io=uo(["header","table"],"table"),$o=to&&!xr?0:Gr,Do=b.useRef(null),Co=b.useCallback(function(Oo){(0,ve.mH)(be,Oo),(0,ve.mH)(Do,Oo)},[]);b.useEffect(function(){var Oo;function _r(Qo){var ta=Qo,za=ta.currentTarget,Fa=ta.deltaX;Fa&&(Un({currentTarget:za,scrollLeft:za.scrollLeft+Fa}),Qo.preventDefault())}return(Oo=Do.current)===null||Oo===void 0||Oo.addEventListener("wheel",_r,{passive:!1}),function(){var Qo;(Qo=Do.current)===null||Qo===void 0||Qo.removeEventListener("wheel",_r)}},[]);var To=b.useMemo(function(){return fn.every(function(Oo){return Oo.width})},[fn]),co=fn[fn.length-1],ho={fixed:co?co.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(Zr,"-cell-scrollbar")}}},qr=(0,b.useMemo)(function(){return $o?[].concat((0,Ye.Z)(en),[ho]):en},[$o,en]),Kr=(0,b.useMemo)(function(){return $o?[].concat((0,Ye.Z)(fn),[ho]):fn},[$o,fn]),so=(0,b.useMemo)(function(){var Oo=jn.right,_r=jn.left;return(0,Et.Z)((0,Et.Z)({},jn),{},{left:Mn==="rtl"?[].concat((0,Ye.Z)(_r.map(function(Qo){return Qo+$o})),[0]):_r,right:Mn==="rtl"?Oo:[].concat((0,Ye.Z)(Oo.map(function(Qo){return Qo+$o})),[0]),isSticky:to})},[$o,jn,to]),mo=yn(Pn,Dn);return b.createElement("div",{style:(0,Et.Z)({overflow:"hidden"},to?{top:fr,bottom:sr}:{}),ref:Co,className:Xe()(ht,(0,pe.Z)({},Yn,!!Yn))},b.createElement(io,{style:{tableLayout:"fixed",visibility:Rt||mo?null:"hidden"}},(!Rt||!kr||To)&&b.createElement(dr,{colWidths:mo?[].concat((0,Ye.Z)(mo),[$o]):[],columCount:Dn+1,columns:Kr}),Dr((0,Et.Z)((0,Et.Z)({},Lr),{},{stickyOffsets:so,columns:qr,flattenColumns:Kr}))))}),qt=b.memo(xn),En=function(be){var ht=be.cells,Rt=be.stickyOffsets,en=be.flattenColumns,fn=be.rowComponent,Pn=be.cellComponent,Dn=be.onHeaderRow,jn=be.index,Mn=de(ut,["prefixCls","direction"]),xr=Mn.prefixCls,fr=Mn.direction,sr;Dn&&(sr=Dn(ht.map(function(Un){return Un.column}),jn));var Yn=Ct(ht.map(function(Un){return Un.column}));return b.createElement(fn,sr,ht.map(function(Un,kr){var Dr=Un.column,Lr=Tt(Un.colStart,Un.colEnd,en,Rt,fr),$r;return Dr&&Dr.onHeaderCell&&($r=Un.column.onHeaderCell(Dr)),b.createElement(gn,(0,tt.Z)({},Un,{scope:Dr.title?Un.colSpan>1?"colgroup":"col":null,ellipsis:Dr.ellipsis,align:Dr.align,component:Pn,prefixCls:xr,key:Yn[kr]},Lr,{additionalProps:$r,rowType:"header"}))}))},Fn=En;function Tn(Se){var be=[];function ht(Pn,Dn){var jn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;be[jn]=be[jn]||[];var Mn=Dn,xr=Pn.filter(Boolean).map(function(fr){var sr={key:fr.key,className:fr.className||"",children:fr.title,column:fr,colStart:Mn},Yn=1,Un=fr.children;return Un&&Un.length>0&&(Yn=ht(Un,Mn,jn+1).reduce(function(kr,Dr){return kr+Dr},0),sr.hasSubColumns=!0),"colSpan"in fr&&(Yn=fr.colSpan),"rowSpan"in fr&&(sr.rowSpan=fr.rowSpan),sr.colSpan=Yn,sr.colEnd=sr.colStart+Yn-1,be[jn].push(sr),Mn+=Yn,Yn});return xr}ht(Se,0);for(var Rt=be.length,en=function(Dn){be[Dn].forEach(function(jn){!("rowSpan"in jn)&&!jn.hasSubColumns&&(jn.rowSpan=Rt-Dn)})},fn=0;fn<Rt;fn+=1)en(fn);return be}var _t=function(be){var ht=be.stickyOffsets,Rt=be.columns,en=be.flattenColumns,fn=be.onHeaderRow,Pn=de(ut,["prefixCls","getComponent"]),Dn=Pn.prefixCls,jn=Pn.getComponent,Mn=b.useMemo(function(){return Tn(Rt)},[Rt]),xr=jn(["header","wrapper"],"thead"),fr=jn(["header","row"],"tr"),sr=jn(["header","cell"],"th");return b.createElement(xr,{className:"".concat(Dn,"-thead")},Mn.map(function(Yn,Un){var kr=b.createElement(Fn,{key:Un,flattenColumns:en,cells:Yn,stickyOffsets:ht,rowComponent:fr,cellComponent:sr,onHeaderRow:fn,index:Un});return kr}))},Cn=Xt(_t),Bn=z(11592);function Ln(Se){var be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof be=="number"?be:be.endsWith("%")?Se*parseFloat(be)/100:null}function Zn(Se,be,ht){return b.useMemo(function(){if(be&&be>0){var Rt=0,en=0;Se.forEach(function(sr){var Yn=Ln(be,sr.width);Yn?Rt+=Yn:en+=1});var fn=Math.max(be,ht),Pn=Math.max(fn-Rt,en),Dn=en,jn=Pn/en,Mn=0,xr=Se.map(function(sr){var Yn=(0,Et.Z)({},sr),Un=Ln(be,Yn.width);if(Un)Yn.width=Un;else{var kr=Math.floor(jn);Yn.width=Dn===1?Pn:kr,Pn-=kr,Dn-=1}return Mn+=Yn.width,Yn});if(Mn<fn){var fr=fn/Mn;Pn=fn,xr.forEach(function(sr,Yn){var Un=Math.floor(sr.width*fr);sr.width=Yn===xr.length-1?Pn:Un,Pn-=Un})}return[xr,Math.max(Mn,fn)]}return[Se,be]},[Se,be,ht])}var yr=["children"],ur=["fixed"];function Jt(Se){return(0,Bn.Z)(Se).filter(function(be){return b.isValidElement(be)}).map(function(be){var ht=be.key,Rt=be.props,en=Rt.children,fn=(0,oe.Z)(Rt,yr),Pn=(0,Et.Z)({key:ht},fn);return en&&(Pn.children=Jt(en)),Pn})}function wn(Se){return Se.filter(function(be){return be&&(0,yt.Z)(be)==="object"&&!be.hidden}).map(function(be){var ht=be.children;return ht&&ht.length>0?(0,Et.Z)((0,Et.Z)({},be),{},{children:wn(ht)}):be})}function un(Se){var be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return Se.filter(function(ht){return ht&&(0,yt.Z)(ht)==="object"}).reduce(function(ht,Rt,en){var fn=Rt.fixed,Pn=fn===!0?"left":fn,Dn="".concat(be,"-").concat(en),jn=Rt.children;return jn&&jn.length>0?[].concat((0,Ye.Z)(ht),(0,Ye.Z)(un(jn,Dn).map(function(Mn){return(0,Et.Z)({fixed:Pn},Mn)}))):[].concat((0,Ye.Z)(ht),[(0,Et.Z)((0,Et.Z)({key:Dn},Rt),{},{fixed:Pn})])},[])}function sn(Se){return Se.map(function(be){var ht=be.fixed,Rt=(0,oe.Z)(be,ur),en=ht;return ht==="left"?en="right":ht==="right"&&(en="left"),(0,Et.Z)({fixed:en},Rt)})}function We(Se,be){var ht=Se.prefixCls,Rt=Se.columns,en=Se.children,fn=Se.expandable,Pn=Se.expandedKeys,Dn=Se.columnTitle,jn=Se.getRowKey,Mn=Se.onTriggerExpand,xr=Se.expandIcon,fr=Se.rowExpandable,sr=Se.expandIconColumnIndex,Yn=Se.direction,Un=Se.expandRowByClick,kr=Se.columnWidth,Dr=Se.fixed,Lr=Se.scrollWidth,$r=Se.clientWidth,Zr=b.useMemo(function(){var co=Rt||Jt(en)||[];return wn(co.slice())},[Rt,en]),Gr=b.useMemo(function(){if(fn){var co=Zr.slice();if(!co.includes(Pe)){var ho=sr||0;ho>=0&&(ho||Dr==="left"||!Dr)&&co.splice(ho,0,Pe),Dr==="right"&&co.splice(Zr.length,0,Pe)}var qr=co.indexOf(Pe);co=co.filter(function(Oo,_r){return Oo!==Pe||_r===qr});var Kr=Zr[qr],so;Dr?so=Dr:so=Kr?Kr.fixed:null;var mo=(0,pe.Z)((0,pe.Z)((0,pe.Z)((0,pe.Z)((0,pe.Z)((0,pe.Z)({},zn,{className:"".concat(ht,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",Dn),"fixed",so),"className","".concat(ht,"-row-expand-icon-cell")),"width",kr),"render",function(_r,Qo,ta){var za=jn(Qo,ta),Fa=Pn.has(za),wa=fr?fr(Qo):!0,Na=xr({prefixCls:ht,expanded:Fa,expandable:wa,record:Qo,onExpand:Mn});return Un?b.createElement("span",{onClick:function(na){return na.stopPropagation()}},Na):Na});return co.map(function(Oo){return Oo===Pe?mo:Oo})}return Zr.filter(function(Oo){return Oo!==Pe})},[fn,Zr,jn,Pn,xr,Yn]),to=b.useMemo(function(){var co=Gr;return be&&(co=be(co)),co.length||(co=[{render:function(){return null}}]),co},[be,Gr,Yn]),uo=b.useMemo(function(){return Yn==="rtl"?sn(un(to)):un(to)},[to,Yn,Lr]),io=b.useMemo(function(){for(var co=-1,ho=uo.length-1;ho>=0;ho-=1){var qr=uo[ho].fixed;if(qr==="left"||qr===!0){co=ho;break}}if(co>=0)for(var Kr=0;Kr<=co;Kr+=1){var so=uo[Kr].fixed;if(so!=="left"&&so!==!0)return!0}var mo=uo.findIndex(function(Qo){var ta=Qo.fixed;return ta==="right"});if(mo>=0)for(var Oo=mo;Oo<uo.length;Oo+=1){var _r=uo[Oo].fixed;if(_r!=="right")return!0}return!1},[uo]),$o=Zn(uo,Lr,$r),Do=(0,rt.Z)($o,2),Co=Do[0],To=Do[1];return[to,Co,To,io]}var dt=We;function ze(Se,be,ht){var Rt=rr(Se),en=Rt.expandIcon,fn=Rt.expandedRowKeys,Pn=Rt.defaultExpandedRowKeys,Dn=Rt.defaultExpandAllRows,jn=Rt.expandedRowRender,Mn=Rt.onExpand,xr=Rt.onExpandedRowsChange,fr=Rt.childrenColumnName,sr=en||At,Yn=fr||"children",Un=b.useMemo(function(){return jn?"row":Se.expandable&&Se.internalHooks===fe&&Se.expandable.__PARENT_RENDER_ICON__||be.some(function(to){return to&&(0,yt.Z)(to)==="object"&&to[Yn]})?"nest":!1},[!!jn,be]),kr=b.useState(function(){return Pn||(Dn?vn(be,ht,Yn):[])}),Dr=(0,rt.Z)(kr,2),Lr=Dr[0],$r=Dr[1],Zr=b.useMemo(function(){return new Set(fn||Lr||[])},[fn,Lr]),Gr=b.useCallback(function(to){var uo=ht(to,be.indexOf(to)),io,$o=Zr.has(uo);$o?(Zr.delete(uo),io=(0,Ye.Z)(Zr)):io=[].concat((0,Ye.Z)(Zr),[uo]),$r(io),Mn&&Mn(!$o,to),xr&&xr(io)},[ht,Zr,be,Mn,xr]);return[Rt,Un,Zr,sr,Yn,Gr]}function gt(Se,be,ht){var Rt=Se.map(function(en,fn){return Tt(fn,fn,Se,be,ht)});return(0,ue.Z)(function(){return Rt},[Rt],function(en,fn){return!(0,Ee.Z)(en,fn)})}function $e(Se){var be=(0,b.useRef)(Se),ht=(0,b.useState)({}),Rt=(0,rt.Z)(ht,2),en=Rt[1],fn=(0,b.useRef)(null),Pn=(0,b.useRef)([]);function Dn(jn){Pn.current.push(jn);var Mn=Promise.resolve();fn.current=Mn,Mn.then(function(){if(fn.current===Mn){var xr=Pn.current,fr=be.current;Pn.current=[],xr.forEach(function(sr){be.current=sr(be.current)}),fn.current=null,fr!==be.current&&en({})}})}return(0,b.useEffect)(function(){return function(){fn.current=null}},[]),[be.current,Dn]}function St(Se){var be=(0,b.useRef)(Se||null),ht=(0,b.useRef)();function Rt(){window.clearTimeout(ht.current)}function en(Pn){be.current=Pn,Rt(),ht.current=window.setTimeout(function(){be.current=null,ht.current=void 0},100)}function fn(){return be.current}return(0,b.useEffect)(function(){return Rt},[]),[en,fn]}function Oe(){var Se=b.useState(-1),be=(0,rt.Z)(Se,2),ht=be[0],Rt=be[1],en=b.useState(-1),fn=(0,rt.Z)(en,2),Pn=fn[0],Dn=fn[1],jn=b.useCallback(function(Mn,xr){Rt(Mn),Dn(xr)},[]);return[ht,Pn,jn]}var Ft=z(47273),Zt=(0,Ft.Z)()?window:null;function De(Se,be){var ht=(0,yt.Z)(Se)==="object"?Se:{},Rt=ht.offsetHeader,en=Rt===void 0?0:Rt,fn=ht.offsetSummary,Pn=fn===void 0?0:fn,Dn=ht.offsetScroll,jn=Dn===void 0?0:Dn,Mn=ht.getContainer,xr=Mn===void 0?function(){return Zt}:Mn,fr=xr()||Zt,sr=!!Se;return b.useMemo(function(){return{isSticky:sr,stickyClassName:sr?"".concat(be,"-sticky-holder"):"",offsetHeader:en,offsetSummary:Pn,offsetScroll:jn,container:fr}},[sr,jn,en,Pn,be,fr])}function Te(Se,be,ht){var Rt=(0,b.useMemo)(function(){var en=be.length,fn=function(Mn,xr,fr){for(var sr=[],Yn=0,Un=Mn;Un!==xr;Un+=fr)sr.push(Yn),be[Un].fixed&&(Yn+=Se[Un]||0);return sr},Pn=fn(0,en,1),Dn=fn(en-1,-1,-1).reverse();return ht==="rtl"?{left:Dn,right:Pn}:{left:Pn,right:Dn}},[Se,be,ht]);return Rt}var Me=Te;function je(Se){var be=Se.className,ht=Se.children;return b.createElement("div",{className:be},ht)}var it=je,an=z(8224),dn=z(16089),hn=z(76846);function $n(Se){var be=(0,hn.bn)(Se),ht=be.getBoundingClientRect(),Rt=document.documentElement;return{left:ht.left+(window.pageXOffset||Rt.scrollLeft)-(Rt.clientLeft||document.body.clientLeft||0),top:ht.top+(window.pageYOffset||Rt.scrollTop)-(Rt.clientTop||document.body.clientTop||0)}}var ar=function(be,ht){var Rt,en,fn=be.scrollBodyRef,Pn=be.onScroll,Dn=be.offsetScroll,jn=be.container,Mn=be.direction,xr=de(ut,"prefixCls"),fr=((Rt=fn.current)===null||Rt===void 0?void 0:Rt.scrollWidth)||0,sr=((en=fn.current)===null||en===void 0?void 0:en.clientWidth)||0,Yn=fr&&sr*(sr/fr),Un=b.useRef(),kr=$e({scrollLeft:0,isHiddenScrollBar:!0}),Dr=(0,rt.Z)(kr,2),Lr=Dr[0],$r=Dr[1],Zr=b.useRef({delta:0,x:0}),Gr=b.useState(!1),to=(0,rt.Z)(Gr,2),uo=to[0],io=to[1],$o=b.useRef(null);b.useEffect(function(){return function(){dn.Z.cancel($o.current)}},[]);var Do=function(){io(!1)},Co=function(Kr){Kr.persist(),Zr.current.delta=Kr.pageX-Lr.scrollLeft,Zr.current.x=0,io(!0),Kr.preventDefault()},To=function(Kr){var so,mo=Kr||((so=window)===null||so===void 0?void 0:so.event),Oo=mo.buttons;if(!uo||Oo===0){uo&&io(!1);return}var _r=Zr.current.x+Kr.pageX-Zr.current.x-Zr.current.delta,Qo=Mn==="rtl";_r=Math.max(Qo?Yn-sr:0,Math.min(Qo?0:sr-Yn,_r));var ta=!Qo||Math.abs(_r)+Math.abs(Yn)<sr;ta&&(Pn({scrollLeft:_r/sr*(fr+2)}),Zr.current.x=Kr.pageX)},co=function(){dn.Z.cancel($o.current),$o.current=(0,dn.Z)(function(){if(fn.current){var Kr=$n(fn.current).top,so=Kr+fn.current.offsetHeight,mo=jn===window?document.documentElement.scrollTop+window.innerHeight:$n(jn).top+jn.clientHeight;so-(0,st.Z)()<=mo||Kr>=mo-Dn?$r(function(Oo){return(0,Et.Z)((0,Et.Z)({},Oo),{},{isHiddenScrollBar:!0})}):$r(function(Oo){return(0,Et.Z)((0,Et.Z)({},Oo),{},{isHiddenScrollBar:!1})})}})},ho=function(Kr){$r(function(so){return(0,Et.Z)((0,Et.Z)({},so),{},{scrollLeft:Kr/fr*sr||0})})};return b.useImperativeHandle(ht,function(){return{setScrollLeft:ho,checkScrollBarVisible:co}}),b.useEffect(function(){var qr=(0,an.Z)(document.body,"mouseup",Do,!1),Kr=(0,an.Z)(document.body,"mousemove",To,!1);return co(),function(){qr.remove(),Kr.remove()}},[Yn,uo]),b.useEffect(function(){if(fn.current){for(var qr=[],Kr=(0,hn.bn)(fn.current);Kr;)qr.push(Kr),Kr=Kr.parentElement;return qr.forEach(function(so){return so.addEventListener("scroll",co,!1)}),window.addEventListener("resize",co,!1),window.addEventListener("scroll",co,!1),jn.addEventListener("scroll",co,!1),function(){qr.forEach(function(so){return so.removeEventListener("scroll",co)}),window.removeEventListener("resize",co),window.removeEventListener("scroll",co),jn.removeEventListener("scroll",co)}}},[jn]),b.useEffect(function(){Lr.isHiddenScrollBar||$r(function(qr){var Kr=fn.current;return Kr?(0,Et.Z)((0,Et.Z)({},qr),{},{scrollLeft:Kr.scrollLeft/Kr.scrollWidth*Kr.clientWidth}):qr})},[Lr.isHiddenScrollBar]),fr<=sr||!Yn||Lr.isHiddenScrollBar?null:b.createElement("div",{style:{height:(0,st.Z)(),width:sr,bottom:Dn},className:"".concat(xr,"-sticky-scroll")},b.createElement("div",{onMouseDown:Co,ref:Un,className:Xe()("".concat(xr,"-sticky-scroll-bar"),(0,pe.Z)({},"".concat(xr,"-sticky-scroll-bar-active"),uo)),style:{width:"".concat(Yn,"px"),transform:"translate3d(".concat(Lr.scrollLeft,"px, 0, 0)")}}))},Cr=b.forwardRef(ar);function qn(Se){return null}var Gn=qn;function Jn(Se){return null}var gr=Jn,Ge="rc-table",bt=[],Vt={};function Ht(){return"No Data"}function tn(Se,be){var ht=(0,Et.Z)({rowKey:"key",prefixCls:Ge,emptyText:Ht},Se),Rt=ht.prefixCls,en=ht.className,fn=ht.rowClassName,Pn=ht.style,Dn=ht.data,jn=ht.rowKey,Mn=ht.scroll,xr=ht.tableLayout,fr=ht.direction,sr=ht.title,Yn=ht.footer,Un=ht.summary,kr=ht.caption,Dr=ht.id,Lr=ht.showHeader,$r=ht.components,Zr=ht.emptyText,Gr=ht.onRow,to=ht.onHeaderRow,uo=ht.onScroll,io=ht.internalHooks,$o=ht.transformColumns,Do=ht.internalRefs,Co=ht.tailor,To=ht.getContainerWidth,co=ht.sticky,ho=ht.rowHoverable,qr=ho===void 0?!0:ho,Kr=Dn||bt,so=!!Kr.length,mo=io===fe,Oo=b.useCallback(function(fa,va){return(0,Nt.Z)($r,fa)||va},[$r]),_r=b.useMemo(function(){return typeof jn=="function"?jn:function(fa){var va=fa&&fa[jn];return va}},[jn]),Qo=Oo(["body"]),ta=Oe(),za=(0,rt.Z)(ta,3),Fa=za[0],wa=za[1],Na=za[2],Ka=ze(ht,Kr,_r),na=(0,rt.Z)(Ka,6),ra=na[0],Va=na[1],qa=na[2],xo=na[3],zo=na[4],yo=na[5],lo=Mn==null?void 0:Mn.x,la=b.useState(0),ha=(0,rt.Z)(la,2),Ia=ha[0],Sa=ha[1],Ua=dt((0,Et.Z)((0,Et.Z)((0,Et.Z)({},ht),ra),{},{expandable:!!ra.expandedRowRender,columnTitle:ra.columnTitle,expandedKeys:qa,getRowKey:_r,onTriggerExpand:yo,expandIcon:xo,expandIconColumnIndex:ra.expandIconColumnIndex,direction:fr,scrollWidth:mo&&Co&&typeof lo=="number"?lo:null,clientWidth:Ia}),mo?$o:null),ni=(0,rt.Z)(Ua,4),Eo=ni[0],Mo=ni[1],pa=ni[2],Ca=ni[3],ya=pa!=null?pa:lo,li=b.useMemo(function(){return{columns:Eo,flattenColumns:Mo}},[Eo,Mo]),Ga=b.useRef(),ji=b.useRef(),Ma=b.useRef(),ca=b.useRef();b.useImperativeHandle(be,function(){return{nativeElement:Ga.current,scrollTo:function(va){var Ii;if(Ma.current instanceof HTMLElement){var Qi=va.index,Pi=va.top,is=va.key;if(Kt(Pi)){var Tl;(Tl=Ma.current)===null||Tl===void 0||Tl.scrollTo({top:Pi})}else{var Dl,ls=is!=null?is:_r(Kr[Qi]);(Dl=Ma.current.querySelector('[data-row-key="'.concat(ls,'"]')))===null||Dl===void 0||Dl.scrollIntoView()}}else(Ii=Ma.current)!==null&&Ii!==void 0&&Ii.scrollTo&&Ma.current.scrollTo(va)}}});var Ea=b.useRef(),Da=b.useState(!1),ri=(0,rt.Z)(Da,2),ja=ri[0],da=ri[1],Ta=b.useState(!1),ma=(0,rt.Z)(Ta,2),xi=ma[0],_a=ma[1],Ri=b.useState(new Map),Wi=(0,rt.Z)(Ri,2),Cl=Wi[0],Oa=Wi[1],hs=Ct(Mo),ki=hs.map(function(fa){return Cl.get(fa)}),il=b.useMemo(function(){return ki},[ki.join("_")]),Yi=Me(il,Mo,fr),$i=Mn&&Pt(Mn.y),Ba=Mn&&Pt(ya)||!!ra.fixed,Ji=Ba&&Mo.some(function(fa){var va=fa.fixed;return va}),Nl=b.useRef(),xl=De(co,Rt),Sl=xl.isSticky,Os=xl.offsetHeader,Bs=xl.offsetSummary,Is=xl.offsetScroll,Ps=xl.stickyClassName,js=xl.container,Go=b.useMemo(function(){return Un==null?void 0:Un(Kr)},[Un,Kr]),aa=($i||Sl)&&b.isValidElement(Go)&&Go.type===me&&Go.props.fixed,La,Xa,pi;$i&&(Xa={overflowY:so?"scroll":"auto",maxHeight:Mn.y}),Ba&&(La={overflowX:"auto"},$i||(Xa={overflowY:"hidden"}),pi={width:ya===!0?"auto":ya,minWidth:"100%"});var si=b.useCallback(function(fa,va){Oa(function(Ii){if(Ii.get(fa)!==va){var Qi=new Map(Ii);return Qi.set(fa,va),Qi}return Ii})},[]),pl=St(null),Bi=(0,rt.Z)(pl,2),os=Bi[0],Ws=Bi[1];function vs(fa,va){va&&(typeof va=="function"?va(fa):va.scrollLeft!==fa&&(va.scrollLeft=fa,va.scrollLeft!==fa&&setTimeout(function(){va.scrollLeft=fa},0)))}var Yl=(0,xe.Z)(function(fa){var va=fa.currentTarget,Ii=fa.scrollLeft,Qi=fr==="rtl",Pi=typeof Ii=="number"?Ii:va.scrollLeft,is=va||Vt;if(!Ws()||Ws()===is){var Tl;os(is),vs(Pi,ji.current),vs(Pi,Ma.current),vs(Pi,Ea.current),vs(Pi,(Tl=Nl.current)===null||Tl===void 0?void 0:Tl.setScrollLeft)}var Dl=va||ji.current;if(Dl){var ls=mo&&Co&&typeof ya=="number"?ya:Dl.scrollWidth,eu=Dl.clientWidth;if(ls===eu){da(!1),_a(!1);return}Qi?(da(-Pi<ls-eu),_a(-Pi>0)):(da(Pi>0),_a(Pi<ls-eu))}}),As=(0,xe.Z)(function(fa){Yl(fa),uo==null||uo(fa)}),Jl=function(){if(Ba&&Ma.current){var va;Yl({currentTarget:(0,hn.bn)(Ma.current),scrollLeft:(va=Ma.current)===null||va===void 0?void 0:va.scrollLeft})}else da(!1),_a(!1)},$s=function(va){var Ii,Qi=va.width;(Ii=Nl.current)===null||Ii===void 0||Ii.checkScrollBarVisible();var Pi=Ga.current?Ga.current.offsetWidth:Qi;mo&&To&&Ga.current&&(Pi=To(Ga.current,Pi)||Pi),Pi!==Ia&&(Jl(),Sa(Pi))},Fs=b.useRef(!1);b.useEffect(function(){Fs.current&&Jl()},[Ba,Dn,Eo.length]),b.useEffect(function(){Fs.current=!0},[]);var Ks=b.useState(0),au=(0,rt.Z)(Ks,2),Ml=au[0],Vs=au[1],yu=b.useState(!0),Us=(0,rt.Z)(yu,2),ps=Us[0],bu=Us[1];(0,ge.Z)(function(){(!Co||!mo)&&(Ma.current instanceof Element?Vs((0,st.o)(Ma.current).width):Vs((0,st.o)(ca.current).width)),bu((0,nt.G)("position","sticky"))},[]),b.useEffect(function(){mo&&Do&&(Do.body.current=Ma.current)});var Cu=b.useCallback(function(fa){return b.createElement(b.Fragment,null,b.createElement(Cn,fa),aa==="top"&&b.createElement(Re,fa,Go))},[aa,Go]),ms=b.useCallback(function(fa){return b.createElement(Re,fa,Go)},[Go]),Gs=Oo(["table"],"table"),gs=b.useMemo(function(){return xr||(Ji?ya==="max-content"?"auto":"fixed":$i||Sl||Mo.some(function(fa){var va=fa.ellipsis;return va})?"fixed":"auto")},[$i,Ji,Mo,xr,Sl]),Xs,ys={colWidths:il,columCount:Mo.length,stickyOffsets:Yi,onHeaderRow:to,fixHeader:$i,scroll:Mn},Ys=b.useMemo(function(){return so?null:typeof Zr=="function"?Zr():Zr},[so,Zr]),iu=b.createElement(nn,{data:Kr,measureColumnWidth:$i||Ba||Sl}),Js=b.createElement(dr,{colWidths:Mo.map(function(fa){var va=fa.width;return va}),columns:Mo}),Qs=kr!=null?b.createElement("caption",{className:"".concat(Rt,"-caption")},kr):void 0,xu=(0,we.Z)(ht,{data:!0}),Ns=(0,we.Z)(ht,{aria:!0});if($i||Sl){var Ql;typeof Qo=="function"?(Ql=Qo(Kr,{scrollbarSize:Ml,ref:Ma,onScroll:Yl}),ys.colWidths=Mo.map(function(fa,va){var Ii=fa.width,Qi=va===Mo.length-1?Ii-Ml:Ii;return typeof Qi=="number"&&!Number.isNaN(Qi)?Qi:0})):Ql=b.createElement("div",{style:(0,Et.Z)((0,Et.Z)({},La),Xa),onScroll:As,ref:Ma,className:Xe()("".concat(Rt,"-body"))},b.createElement(Gs,(0,tt.Z)({style:(0,Et.Z)((0,Et.Z)({},pi),{},{tableLayout:gs})},Ns),Qs,Js,iu,!aa&&Go&&b.createElement(Re,{stickyOffsets:Yi,flattenColumns:Mo},Go)));var as=(0,Et.Z)((0,Et.Z)((0,Et.Z)({noData:!Kr.length,maxContentScroll:Ba&&ya==="max-content"},ys),li),{},{direction:fr,stickyClassName:Ps,onScroll:Yl});Xs=b.createElement(b.Fragment,null,Lr!==!1&&b.createElement(qt,(0,tt.Z)({},as,{stickyTopOffset:Os,className:"".concat(Rt,"-header"),ref:ji}),Cu),Ql,aa&&aa!=="top"&&b.createElement(qt,(0,tt.Z)({},as,{stickyBottomOffset:Bs,className:"".concat(Rt,"-summary"),ref:Ea}),ms),Sl&&Ma.current&&Ma.current instanceof Element&&b.createElement(Cr,{ref:Nl,offsetScroll:Is,scrollBodyRef:Ma,onScroll:Yl,container:js,direction:fr}))}else Xs=b.createElement("div",{style:(0,Et.Z)((0,Et.Z)({},La),Xa),className:Xe()("".concat(Rt,"-content")),onScroll:Yl,ref:Ma},b.createElement(Gs,(0,tt.Z)({style:(0,Et.Z)((0,Et.Z)({},pi),{},{tableLayout:gs})},Ns),Qs,Js,Lr!==!1&&b.createElement(Cn,(0,tt.Z)({},ys,li)),iu,Go&&b.createElement(Re,{stickyOffsets:Yi,flattenColumns:Mo},Go)));var qs=b.createElement("div",(0,tt.Z)({className:Xe()(Rt,en,(0,pe.Z)((0,pe.Z)((0,pe.Z)((0,pe.Z)((0,pe.Z)((0,pe.Z)((0,pe.Z)((0,pe.Z)((0,pe.Z)((0,pe.Z)({},"".concat(Rt,"-rtl"),fr==="rtl"),"".concat(Rt,"-ping-left"),ja),"".concat(Rt,"-ping-right"),xi),"".concat(Rt,"-layout-fixed"),xr==="fixed"),"".concat(Rt,"-fixed-header"),$i),"".concat(Rt,"-fixed-column"),Ji),"".concat(Rt,"-fixed-column-gapped"),Ji&&Ca),"".concat(Rt,"-scroll-horizontal"),Ba),"".concat(Rt,"-has-fix-left"),Mo[0]&&Mo[0].fixed),"".concat(Rt,"-has-fix-right"),Mo[Mo.length-1]&&Mo[Mo.length-1].fixed==="right")),style:Pn,id:Dr,ref:Ga},xu),sr&&b.createElement(it,{className:"".concat(Rt,"-title")},sr(Kr)),b.createElement("div",{ref:ca,className:"".concat(Rt,"-container")},Xs),Yn&&b.createElement(it,{className:"".concat(Rt,"-footer")},Yn(Kr)));Ba&&(qs=b.createElement(qe.Z,{onResize:$s},qs));var _s=gt(Mo,Yi,fr),Su=b.useMemo(function(){return{scrollX:ya,prefixCls:Rt,getComponent:Oo,scrollbarSize:Ml,direction:fr,fixedInfoList:_s,isSticky:Sl,supportSticky:ps,componentWidth:Ia,fixHeader:$i,fixColumn:Ji,horizonScroll:Ba,tableLayout:gs,rowClassName:fn,expandedRowClassName:ra.expandedRowClassName,expandIcon:xo,expandableType:Va,expandRowByClick:ra.expandRowByClick,expandedRowRender:ra.expandedRowRender,onTriggerExpand:yo,expandIconColumnIndex:ra.expandIconColumnIndex,indentSize:ra.indentSize,allColumnsFixedLeft:Mo.every(function(fa){return fa.fixed==="left"}),emptyNode:Ys,columns:Eo,flattenColumns:Mo,onColumnResize:si,hoverStartRow:Fa,hoverEndRow:wa,onHover:Na,rowExpandable:ra.rowExpandable,onRow:Gr,getRowKey:_r,expandedKeys:qa,childrenColumnName:zo,rowHoverable:qr}},[ya,Rt,Oo,Ml,fr,_s,Sl,ps,Ia,$i,Ji,Ba,gs,fn,ra.expandedRowClassName,xo,Va,ra.expandRowByClick,ra.expandedRowRender,yo,ra.expandIconColumnIndex,ra.indentSize,Ys,Eo,Mo,si,Fa,wa,Na,ra.rowExpandable,Gr,_r,qa,zo,qr]);return b.createElement(ut.Provider,{value:Su},qs)}var An=b.forwardRef(tn);function Vn(Se){return mt(An,Se)}var tr=Vn();tr.EXPAND_COLUMN=Pe,tr.INTERNAL_HOOKS=fe,tr.Column=Gn,tr.ColumnGroup=gr,tr.Summary=Fe;var Nn=tr,or=z(48911),cr=Ae(null),nr=Ae(null);function hr(Se,be,ht){var Rt=be||1;return ht[Se+Rt]-(ht[Se]||0)}function lr(Se){var be=Se.rowInfo,ht=Se.column,Rt=Se.colIndex,en=Se.indent,fn=Se.index,Pn=Se.component,Dn=Se.renderIndex,jn=Se.record,Mn=Se.style,xr=Se.className,fr=Se.inverse,sr=Se.getHeight,Yn=ht.render,Un=ht.dataIndex,kr=ht.className,Dr=ht.width,Lr=de(nr,["columnsOffset"]),$r=Lr.columnsOffset,Zr=_e(be,ht,Rt,en,fn),Gr=Zr.key,to=Zr.fixedInfo,uo=Zr.appendCellNode,io=Zr.additionalCellProps,$o=io.style,Do=io.colSpan,Co=Do===void 0?1:Do,To=io.rowSpan,co=To===void 0?1:To,ho=Rt-1,qr=hr(ho,Co,$r),Kr=Co>1?Dr-qr:0,so=(0,Et.Z)((0,Et.Z)((0,Et.Z)({},$o),Mn),{},{flex:"0 0 ".concat(qr,"px"),width:"".concat(qr,"px"),marginRight:Kr,pointerEvents:"auto"}),mo=b.useMemo(function(){return fr?co<=1:Co===0||co===0||co>1},[co,Co,fr]);mo?so.visibility="hidden":fr&&(so.height=sr==null?void 0:sr(co));var Oo=mo?function(){return null}:Yn,_r={};return(co===0||Co===0)&&(_r.rowSpan=1,_r.colSpan=1),b.createElement(gn,(0,tt.Z)({className:Xe()(kr,xr),ellipsis:ht.ellipsis,align:ht.align,scope:ht.rowScope,component:Pn,prefixCls:be.prefixCls,key:Gr,record:jn,index:fn,renderIndex:Dn,dataIndex:Un,render:Oo,shouldCellUpdate:ht.shouldCellUpdate},to,{appendNode:uo,additionalProps:(0,Et.Z)((0,Et.Z)({},io),{},{style:so},_r)}))}var Er=lr,Ir=["data","index","className","rowKey","style","extra","getHeight"],zr=b.forwardRef(function(Se,be){var ht=Se.data,Rt=Se.index,en=Se.className,fn=Se.rowKey,Pn=Se.style,Dn=Se.extra,jn=Se.getHeight,Mn=(0,oe.Z)(Se,Ir),xr=ht.record,fr=ht.indent,sr=ht.index,Yn=de(ut,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),Un=Yn.scrollX,kr=Yn.flattenColumns,Dr=Yn.prefixCls,Lr=Yn.fixColumn,$r=Yn.componentWidth,Zr=de(cr,["getComponent"]),Gr=Zr.getComponent,to=Mt(xr,fn,Rt,fr),uo=Gr(["body","row"],"div"),io=Gr(["body","cell"],"div"),$o=to.rowSupportExpand,Do=to.expanded,Co=to.rowProps,To=to.expandedRowRender,co=to.expandedRowClassName,ho;if($o&&Do){var qr=To(xr,Rt,fr+1,Do),Kr=Gt(co,xr,Rt,fr),so={};Lr&&(so={style:(0,pe.Z)({},"--virtual-width","".concat($r,"px"))});var mo="".concat(Dr,"-expanded-row-cell");ho=b.createElement(uo,{className:Xe()("".concat(Dr,"-expanded-row"),"".concat(Dr,"-expanded-row-level-").concat(fr+1),Kr)},b.createElement(gn,{component:io,prefixCls:Dr,className:Xe()(mo,(0,pe.Z)({},"".concat(mo,"-fixed"),Lr)),additionalProps:so},qr))}var Oo=(0,Et.Z)((0,Et.Z)({},Pn),{},{width:Un});Dn&&(Oo.position="absolute",Oo.pointerEvents="none");var _r=b.createElement(uo,(0,tt.Z)({},Co,Mn,{"data-row-key":fn,ref:$o?null:be,className:Xe()(en,"".concat(Dr,"-row"),Co==null?void 0:Co.className,(0,pe.Z)({},"".concat(Dr,"-row-extra"),Dn)),style:(0,Et.Z)((0,Et.Z)({},Oo),Co==null?void 0:Co.style)}),kr.map(function(Qo,ta){return b.createElement(Er,{key:ta,component:io,rowInfo:to,column:Qo,colIndex:ta,indent:fr,index:Rt,renderIndex:sr,record:xr,inverse:Dn,getHeight:jn})}));return $o?b.createElement("div",{ref:be},_r,ho):_r}),Pr=Xt(zr),Or=Pr,Sr=b.forwardRef(function(Se,be){var ht=Se.data,Rt=Se.onScroll,en=de(ut,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),fn=en.flattenColumns,Pn=en.onColumnResize,Dn=en.getRowKey,jn=en.expandedKeys,Mn=en.prefixCls,xr=en.childrenColumnName,fr=en.scrollX,sr=en.direction,Yn=de(cr),Un=Yn.sticky,kr=Yn.scrollY,Dr=Yn.listItemHeight,Lr=Yn.getComponent,$r=Yn.onScroll,Zr=b.useRef(),Gr=It(ht,xr,jn,Dn),to=b.useMemo(function(){var ho=0;return fn.map(function(qr){var Kr=qr.width,so=qr.key;return ho+=Kr,[so,Kr,ho]})},[fn]),uo=b.useMemo(function(){return to.map(function(ho){return ho[2]})},[to]);b.useEffect(function(){to.forEach(function(ho){var qr=(0,rt.Z)(ho,2),Kr=qr[0],so=qr[1];Pn(Kr,so)})},[to]),b.useImperativeHandle(be,function(){var ho,qr={scrollTo:function(so){var mo;(mo=Zr.current)===null||mo===void 0||mo.scrollTo(so)},nativeElement:(ho=Zr.current)===null||ho===void 0?void 0:ho.nativeElement};return Object.defineProperty(qr,"scrollLeft",{get:function(){var so;return((so=Zr.current)===null||so===void 0?void 0:so.getScrollInfo().x)||0},set:function(so){var mo;(mo=Zr.current)===null||mo===void 0||mo.scrollTo({left:so})}}),qr});var io=function(qr,Kr){var so,mo=(so=Gr[Kr])===null||so===void 0?void 0:so.record,Oo=qr.onCell;if(Oo){var _r,Qo=Oo(mo,Kr);return(_r=Qo==null?void 0:Qo.rowSpan)!==null&&_r!==void 0?_r:1}return 1},$o=function(qr){var Kr=qr.start,so=qr.end,mo=qr.getSize,Oo=qr.offsetY;if(so<0)return null;for(var _r=fn.filter(function(xo){return io(xo,Kr)===0}),Qo=Kr,ta=function(zo){if(_r=_r.filter(function(yo){return io(yo,zo)===0}),!_r.length)return Qo=zo,1},za=Kr;za>=0&&!ta(za);za-=1);for(var Fa=fn.filter(function(xo){return io(xo,so)!==1}),wa=so,Na=function(zo){if(Fa=Fa.filter(function(yo){return io(yo,zo)!==1}),!Fa.length)return wa=Math.max(zo-1,so),1},Ka=so;Ka<Gr.length&&!Na(Ka);Ka+=1);for(var na=[],ra=function(zo){var yo=Gr[zo];if(!yo)return 1;fn.some(function(lo){return io(lo,zo)>1})&&na.push(zo)},Va=Qo;Va<=wa;Va+=1)ra(Va);var qa=na.map(function(xo){var zo=Gr[xo],yo=Dn(zo.record,xo),lo=function(Ia){var Sa=xo+Ia-1,Ua=Dn(Gr[Sa].record,Sa),ni=mo(yo,Ua);return ni.bottom-ni.top},la=mo(yo);return b.createElement(Or,{key:xo,data:zo,rowKey:yo,index:xo,style:{top:-Oo+la.top},extra:!0,getHeight:lo})});return qa},Do=b.useMemo(function(){return{columnsOffset:uo}},[uo]),Co="".concat(Mn,"-tbody"),To=Lr(["body","wrapper"]),co={};return Un&&(co.position="sticky",co.bottom=0,(0,yt.Z)(Un)==="object"&&Un.offsetScroll&&(co.bottom=Un.offsetScroll)),b.createElement(nr.Provider,{value:Do},b.createElement(or.Z,{fullHeight:!1,ref:Zr,prefixCls:"".concat(Co,"-virtual"),styles:{horizontalScrollBar:co},className:Co,height:kr,itemHeight:Dr||24,data:Gr,itemKey:function(qr){return Dn(qr.record)},component:To,scrollWidth:fr,direction:sr,onVirtualScroll:function(qr){var Kr,so=qr.x;Rt({currentTarget:(Kr=Zr.current)===null||Kr===void 0?void 0:Kr.nativeElement,scrollLeft:so})},onScroll:$r,extraRender:$o},function(ho,qr,Kr){var so=Dn(ho.record,qr);return b.createElement(Or,{data:ho,rowKey:so,index:qr,style:Kr.style})}))}),Tr=Xt(Sr),br=Tr,wr=function(be,ht){var Rt=ht.ref,en=ht.onScroll;return b.createElement(br,{ref:Rt,data:be,onScroll:en})};function _n(Se,be){var ht=Se.data,Rt=Se.columns,en=Se.scroll,fn=Se.sticky,Pn=Se.prefixCls,Dn=Pn===void 0?Ge:Pn,jn=Se.className,Mn=Se.listItemHeight,xr=Se.components,fr=Se.onScroll,sr=en||{},Yn=sr.x,Un=sr.y;typeof Yn!="number"&&(Yn=1),typeof Un!="number"&&(Un=500);var kr=(0,ct.zX)(function($r,Zr){return(0,Nt.Z)(xr,$r)||Zr}),Dr=(0,ct.zX)(fr),Lr=b.useMemo(function(){return{sticky:fn,scrollY:Un,listItemHeight:Mn,getComponent:kr,onScroll:Dr}},[fn,Un,Mn,kr,Dr]);return b.createElement(cr.Provider,{value:Lr},b.createElement(Nn,(0,tt.Z)({},Se,{className:Xe()(jn,"".concat(Dn,"-virtual")),scroll:(0,Et.Z)((0,Et.Z)({},en),{},{x:Yn}),components:(0,Et.Z)((0,Et.Z)({},xr),{},{body:ht!=null&&ht.length?wr:void 0}),columns:Rt,internalHooks:fe,tailor:!0,ref:be})))}var In=b.forwardRef(_n);function er(Se){return mt(In,Se)}var Rn=er(),bn=null,mr=Se=>null,Hn=Se=>null,Xn=z(84105),vr=z(82661),Ar=z(34643),Fr=z(34061),Rr=z(18929);function Ur(Se){const[be,ht]=(0,b.useState)(null);return[(0,b.useCallback)((fn,Pn,Dn)=>{const jn=be!=null?be:fn,Mn=Math.min(jn||0,fn),xr=Math.max(jn||0,fn),fr=Pn.slice(Mn,xr+1).map(Un=>Se(Un)),sr=fr.some(Un=>!Dn.has(Un)),Yn=[];return fr.forEach(Un=>{sr?(Dn.has(Un)||Yn.push(Un),Dn.add(Un)):(Dn.delete(Un),Yn.push(Un))}),ht(sr?xr:null),Yn},[be]),fn=>{ht(fn)}]}var jr=z(32383),ro=z(62673),Yr=z(75727),Xr=z(47889);const eo={},vo="SELECT_ALL",Fo="SELECT_INVERT",Yo="SELECT_NONE",Bo=[],Ko=(Se,be)=>{let ht=[];return(be||[]).forEach(Rt=>{ht.push(Rt),Rt&&typeof Rt=="object"&&Se in Rt&&(ht=[].concat((0,Ye.Z)(ht),(0,Ye.Z)(Ko(Se,Rt[Se]))))}),ht};var Qr=(Se,be)=>{const{preserveSelectedRowKeys:ht,selectedRowKeys:Rt,defaultSelectedRowKeys:en,getCheckboxProps:fn,onChange:Pn,onSelect:Dn,onSelectAll:jn,onSelectInvert:Mn,onSelectNone:xr,onSelectMultiple:fr,columnWidth:sr,type:Yn,selections:Un,fixed:kr,renderCell:Dr,hideSelectAll:Lr,checkStrictly:$r=!0}=be||{},{prefixCls:Zr,data:Gr,pageData:to,getRecordByKey:uo,getRowKey:io,expandType:$o,childrenColumnName:Do,locale:Co,getPopupContainer:To}=Se,co=(0,jr.ln)("Table"),[ho,qr]=Ur(xo=>xo),[Kr,so]=(0,Rr.Z)(Rt||en||Bo,{value:Rt}),mo=b.useRef(new Map),Oo=(0,b.useCallback)(xo=>{if(ht){const zo=new Map;xo.forEach(yo=>{let lo=uo(yo);!lo&&mo.current.has(yo)&&(lo=mo.current.get(yo)),zo.set(yo,lo)}),mo.current=zo}},[uo,ht]);b.useEffect(()=>{Oo(Kr)},[Kr]);const _r=(0,b.useMemo)(()=>Ko(Do,to),[Do,to]),{keyEntities:Qo}=(0,b.useMemo)(()=>{if($r)return{keyEntities:null};let xo=Gr;if(ht){const zo=new Set(_r.map((lo,la)=>io(lo,la))),yo=Array.from(mo.current).reduce((lo,la)=>{let[ha,Ia]=la;return zo.has(ha)?lo:lo.concat(Ia)},[]);xo=[].concat((0,Ye.Z)(xo),(0,Ye.Z)(yo))}return(0,Fr.I8)(xo,{externalGetKey:io,childrenPropName:Do})},[Gr,io,$r,Do,ht,_r]),ta=(0,b.useMemo)(()=>{const xo=new Map;return _r.forEach((zo,yo)=>{const lo=io(zo,yo),la=(fn?fn(zo):null)||{};xo.set(lo,la)}),xo},[_r,io,fn]),za=(0,b.useCallback)(xo=>{const zo=io(xo);let yo;return ta.has(zo)?yo=ta.get(io(xo)):yo=fn?fn(xo):void 0,!!(yo!=null&&yo.disabled)},[ta,io]),[Fa,wa]=(0,b.useMemo)(()=>{if($r)return[Kr||[],[]];const{checkedKeys:xo,halfCheckedKeys:zo}=(0,Ar.S)(Kr,!0,Qo,za);return[xo||[],zo]},[Kr,$r,Qo,za]),Na=(0,b.useMemo)(()=>{const xo=Yn==="radio"?Fa.slice(0,1):Fa;return new Set(xo)},[Fa,Yn]),Ka=(0,b.useMemo)(()=>Yn==="radio"?new Set:new Set(wa),[wa,Yn]);b.useEffect(()=>{be||so(Bo)},[!!be]);const na=(0,b.useCallback)((xo,zo)=>{let yo,lo;Oo(xo),ht?(yo=xo,lo=xo.map(la=>mo.current.get(la))):(yo=[],lo=[],xo.forEach(la=>{const ha=uo(la);ha!==void 0&&(yo.push(la),lo.push(ha))})),so(yo),Pn==null||Pn(yo,lo,{type:zo})},[so,uo,Pn,ht]),ra=(0,b.useCallback)((xo,zo,yo,lo)=>{if(Dn){const la=yo.map(ha=>uo(ha));Dn(uo(xo),zo,la,lo)}na(yo,"single")},[Dn,uo,na]),Va=(0,b.useMemo)(()=>!Un||Lr?null:(Un===!0?[vo,Fo,Yo]:Un).map(zo=>zo===vo?{key:"all",text:Co.selectionAll,onSelect(){na(Gr.map((yo,lo)=>io(yo,lo)).filter(yo=>{const lo=ta.get(yo);return!(lo!=null&&lo.disabled)||Na.has(yo)}),"all")}}:zo===Fo?{key:"invert",text:Co.selectInvert,onSelect(){const yo=new Set(Na);to.forEach((la,ha)=>{const Ia=io(la,ha),Sa=ta.get(Ia);Sa!=null&&Sa.disabled||(yo.has(Ia)?yo.delete(Ia):yo.add(Ia))});const lo=Array.from(yo);Mn&&(co.deprecated(!1,"onSelectInvert","onChange"),Mn(lo)),na(lo,"invert")}}:zo===Yo?{key:"none",text:Co.selectNone,onSelect(){xr==null||xr(),na(Array.from(Na).filter(yo=>{const lo=ta.get(yo);return lo==null?void 0:lo.disabled}),"none")}}:zo).map(zo=>Object.assign(Object.assign({},zo),{onSelect:function(){for(var yo,lo,la=arguments.length,ha=new Array(la),Ia=0;Ia<la;Ia++)ha[Ia]=arguments[Ia];(lo=zo.onSelect)===null||lo===void 0||(yo=lo).call.apply(yo,[zo].concat(ha)),qr(null)}})),[Un,Na,to,io,Mn,na]);return[(0,b.useCallback)(xo=>{var zo;if(!be)return xo.filter(ca=>ca!==eo);let yo=(0,Ye.Z)(xo);const lo=new Set(Na),la=_r.map(io).filter(ca=>!ta.get(ca).disabled),ha=la.every(ca=>lo.has(ca)),Ia=la.some(ca=>lo.has(ca)),Sa=()=>{const ca=[];ha?la.forEach(Da=>{lo.delete(Da),ca.push(Da)}):la.forEach(Da=>{lo.has(Da)||(lo.add(Da),ca.push(Da))});const Ea=Array.from(lo);jn==null||jn(!ha,Ea.map(Da=>uo(Da)),ca.map(Da=>uo(Da))),na(Ea,"all"),qr(null)};let Ua,ni;if(Yn!=="radio"){let ca;if(Va){const da={getPopupContainer:To,items:Va.map((Ta,ma)=>{const{key:xi,text:_a,onSelect:Ri}=Ta;return{key:xi!=null?xi:ma,onClick:()=>{Ri==null||Ri(la)},label:_a}})};ca=b.createElement("div",{className:`${Zr}-selection-extra`},b.createElement(Yr.Z,{menu:da,getPopupContainer:To},b.createElement("span",null,b.createElement(Xn.Z,null))))}const Ea=_r.map((da,Ta)=>{const ma=io(da,Ta),xi=ta.get(ma)||{};return Object.assign({checked:lo.has(ma)},xi)}).filter(da=>{let{disabled:Ta}=da;return Ta}),Da=!!Ea.length&&Ea.length===_r.length,ri=Da&&Ea.every(da=>{let{checked:Ta}=da;return Ta}),ja=Da&&Ea.some(da=>{let{checked:Ta}=da;return Ta});ni=b.createElement(ro.default,{checked:Da?ri:!!_r.length&&ha,indeterminate:Da?!ri&&ja:!ha&&Ia,onChange:Sa,disabled:_r.length===0||Da,"aria-label":ca?"Custom selection":"Select all",skipGroup:!0}),Ua=!Lr&&b.createElement("div",{className:`${Zr}-selection`},ni,ca)}let Eo;Yn==="radio"?Eo=(ca,Ea,Da)=>{const ri=io(Ea,Da),ja=lo.has(ri),da=ta.get(ri);return{node:b.createElement(Xr.ZP,Object.assign({},da,{checked:ja,onClick:Ta=>{var ma;Ta.stopPropagation(),(ma=da==null?void 0:da.onClick)===null||ma===void 0||ma.call(da,Ta)},onChange:Ta=>{var ma;lo.has(ri)||ra(ri,!0,[ri],Ta.nativeEvent),(ma=da==null?void 0:da.onChange)===null||ma===void 0||ma.call(da,Ta)}})),checked:ja}}:Eo=(ca,Ea,Da)=>{var ri;const ja=io(Ea,Da),da=lo.has(ja),Ta=Ka.has(ja),ma=ta.get(ja);let xi;return $o==="nest"?xi=Ta:xi=(ri=ma==null?void 0:ma.indeterminate)!==null&&ri!==void 0?ri:Ta,{node:b.createElement(ro.default,Object.assign({},ma,{indeterminate:xi,checked:da,skipGroup:!0,onClick:_a=>{var Ri;_a.stopPropagation(),(Ri=ma==null?void 0:ma.onClick)===null||Ri===void 0||Ri.call(ma,_a)},onChange:_a=>{var Ri;const{nativeEvent:Wi}=_a,{shiftKey:Cl}=Wi,Oa=la.findIndex(ki=>ki===ja),hs=Fa.some(ki=>la.includes(ki));if(Cl&&$r&&hs){const ki=ho(Oa,la,lo),il=Array.from(lo);fr==null||fr(!da,il.map(Yi=>uo(Yi)),ki.map(Yi=>uo(Yi))),na(il,"multiple")}else{const ki=Fa;if($r){const il=da?(0,vr._5)(ki,ja):(0,vr.L0)(ki,ja);ra(ja,!da,il,Wi)}else{const il=(0,Ar.S)([].concat((0,Ye.Z)(ki),[ja]),!0,Qo,za),{checkedKeys:Yi,halfCheckedKeys:$i}=il;let Ba=Yi;if(da){const Ji=new Set(Yi);Ji.delete(ja),Ba=(0,Ar.S)(Array.from(Ji),{checked:!1,halfCheckedKeys:$i},Qo,za).checkedKeys}ra(ja,!da,Ba,Wi)}}qr(da?null:Oa),(Ri=ma==null?void 0:ma.onChange)===null||Ri===void 0||Ri.call(ma,_a)}})),checked:da}};const Mo=(ca,Ea,Da)=>{const{node:ri,checked:ja}=Eo(ca,Ea,Da);return Dr?Dr(ja,Ea,Da,ri):ri};if(!yo.includes(eo))if(yo.findIndex(ca=>{var Ea;return((Ea=ca[zn])===null||Ea===void 0?void 0:Ea.columnType)==="EXPAND_COLUMN"})===0){const[ca,...Ea]=yo;yo=[ca,eo].concat((0,Ye.Z)(Ea))}else yo=[eo].concat((0,Ye.Z)(yo));const pa=yo.indexOf(eo);yo=yo.filter((ca,Ea)=>ca!==eo||Ea===pa);const Ca=yo[pa-1],ya=yo[pa+1];let li=kr;li===void 0&&((ya==null?void 0:ya.fixed)!==void 0?li=ya.fixed:(Ca==null?void 0:Ca.fixed)!==void 0&&(li=Ca.fixed)),li&&Ca&&((zo=Ca[zn])===null||zo===void 0?void 0:zo.columnType)==="EXPAND_COLUMN"&&Ca.fixed===void 0&&(Ca.fixed=li);const Ga=Xe()(`${Zr}-selection-col`,{[`${Zr}-selection-col-with-dropdown`]:Un&&Yn==="checkbox"}),ji=()=>be!=null&&be.columnTitle?typeof be.columnTitle=="function"?be.columnTitle(ni):be.columnTitle:Ua,Ma={fixed:li,width:sr,className:`${Zr}-selection-column`,title:ji(),render:Mo,onCell:be.onCell,[zn]:{className:Ga}};return yo.map(ca=>ca===eo?Ma:ca)},[io,_r,be,Fa,Na,Ka,sr,Va,$o,ta,fr,ra,za]),Na]},Vo=z(2738);function Wo(Se,be){return Se._antProxy=Se._antProxy||{},Object.keys(be).forEach(ht=>{if(!(ht in Se._antProxy)){const Rt=Se[ht];Se._antProxy[ht]=Rt,Se[ht]=be[ht]}}),Se}function po(Se,be){return(0,b.useImperativeHandle)(Se,()=>{const ht=be(),{nativeElement:Rt}=ht;return typeof Proxy!="undefined"?new Proxy(Rt,{get(en,fn){return ht[fn]?ht[fn]:Reflect.get(en,fn)}}):Wo(Rt,ht)})}var ko=z(83010),Xo=z(48755),Ao=z(38406),Zo=z(83397),Ho=z(31756),ba=z(13783),Ha=z(85981),xa=z(31709),ga=z(29787),Ei=z(57700);function wi(Se){return be=>{const{prefixCls:ht,onExpand:Rt,record:en,expanded:fn,expandable:Pn}=be,Dn=`${ht}-row-expand-icon`;return b.createElement("button",{type:"button",onClick:jn=>{Rt(en,jn),jn.stopPropagation()},className:Xe()(Dn,{[`${Dn}-spaced`]:!Pn,[`${Dn}-expanded`]:Pn&&fn,[`${Dn}-collapsed`]:Pn&&!fn}),"aria-label":fn?Se.collapse:Se.expand,"aria-expanded":fn})}}var Io=wi;function Lo(Se){return(ht,Rt)=>{const en=ht.querySelector(`.${Se}-container`);let fn=Rt;if(en){const Pn=getComputedStyle(en),Dn=parseInt(Pn.borderLeftWidth,10),jn=parseInt(Pn.borderRightWidth,10);fn=Rt-Dn-jn}return fn}}const Wr=(Se,be)=>"key"in Se&&Se.key!==void 0&&Se.key!==null?Se.key:Se.dataIndex?Array.isArray(Se.dataIndex)?Se.dataIndex.join("."):Se.dataIndex:be;function Hr(Se,be){return be?`${be}-${Se}`:`${Se}`}const no=(Se,be)=>typeof Se=="function"?Se(be):Se,bo=(Se,be)=>{const ht=no(Se,be);return Object.prototype.toString.call(ht)==="[object Object]"?"":ht};var ua={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"},qo=ua,wo=z(7657),Po=function(be,ht){return b.createElement(wo.Z,(0,tt.Z)({},be,{ref:ht,icon:qo}))},ia=b.forwardRef(Po),Ja=ia,Wa=z(9981),ci=z(40192);function ai(Se){const be=b.useRef(Se),ht=(0,ci.Z)();return[()=>be.current,Rt=>{be.current=Rt,ht()}]}var $a=z(7939),Di=z(584),di=z(93041),yi=z(78857),Gi=z(18287),sl=z(47472),Zi=z(49397),ml=Se=>{const{value:be,filterSearch:ht,tablePrefixCls:Rt,locale:en,onChange:fn}=Se;return ht?b.createElement("div",{className:`${Rt}-filter-dropdown-search`},b.createElement(Zi.Z,{prefix:b.createElement(sl.Z,null),placeholder:en.filterSearchPlaceholder,onChange:fn,value:be,htmlSize:1,className:`${Rt}-filter-dropdown-search-input`})):null},kl=z(10228);const Ll=Se=>{const{keyCode:be}=Se;be===kl.Z.ENTER&&Se.stopPropagation()};var Zl=b.forwardRef((Se,be)=>b.createElement("div",{className:Se.className,onClick:ht=>ht.stopPropagation(),onKeyDown:Ll,ref:be},Se.children));function Xi(Se){let be=[];return(Se||[]).forEach(ht=>{let{value:Rt,children:en}=ht;be.push(Rt),en&&(be=[].concat((0,Ye.Z)(be),(0,Ye.Z)(Xi(en))))}),be}function tl(Se){return Se.some(be=>{let{children:ht}=be;return ht})}function Bl(Se,be){return typeof be=="string"||typeof be=="number"?be==null?void 0:be.toString().toLowerCase().includes(Se.trim().toLowerCase()):!1}function Hl(Se){let{filters:be,prefixCls:ht,filteredKeys:Rt,filterMultiple:en,searchValue:fn,filterSearch:Pn}=Se;return be.map((Dn,jn)=>{const Mn=String(Dn.value);if(Dn.children)return{key:Mn||jn,label:Dn.text,popupClassName:`${ht}-dropdown-submenu`,children:Hl({filters:Dn.children,prefixCls:ht,filteredKeys:Rt,filterMultiple:en,searchValue:fn,filterSearch:Pn})};const xr=en?ro.default:Xr.ZP,fr={key:Dn.value!==void 0?Mn:jn,label:b.createElement(b.Fragment,null,b.createElement(xr,{checked:Rt.includes(Mn)}),b.createElement("span",null,Dn.text))};return fn.trim()?typeof Pn=="function"?Pn(fn,Dn)?fr:null:Bl(fn,Dn.text)?fr:null:fr})}function gl(Se){return Se||[]}var zl=Se=>{var be,ht,Rt,en;const{tablePrefixCls:fn,prefixCls:Pn,column:Dn,dropdownPrefixCls:jn,columnKey:Mn,filterOnClose:xr,filterMultiple:fr,filterMode:sr="menu",filterSearch:Yn=!1,filterState:Un,triggerFilter:kr,locale:Dr,children:Lr,getPopupContainer:$r,rootClassName:Zr}=Se,{filterResetToDefaultFilteredValue:Gr,defaultFilteredValue:to,filterDropdownProps:uo={},filterDropdownOpen:io,filterDropdownVisible:$o,onFilterDropdownVisibleChange:Do,onFilterDropdownOpenChange:Co}=Dn,[To,co]=b.useState(!1),ho=!!(Un&&(!((be=Un.filteredKeys)===null||be===void 0)&&be.length||Un.forceFiltered)),qr=Eo=>{var Mo;co(Eo),(Mo=uo.onOpenChange)===null||Mo===void 0||Mo.call(uo,Eo),Co==null||Co(Eo),Do==null||Do(Eo)},Kr=(en=(Rt=(ht=uo.open)!==null&&ht!==void 0?ht:io)!==null&&Rt!==void 0?Rt:$o)!==null&&en!==void 0?en:To,so=Un==null?void 0:Un.filteredKeys,[mo,Oo]=ai(gl(so)),_r=Eo=>{let{selectedKeys:Mo}=Eo;Oo(Mo)},Qo=(Eo,Mo)=>{let{node:pa,checked:Ca}=Mo;_r(fr?{selectedKeys:Eo}:{selectedKeys:Ca&&pa.key?[pa.key]:[]})};b.useEffect(()=>{To&&_r({selectedKeys:gl(so)})},[so]);const[ta,za]=b.useState([]),Fa=Eo=>{za(Eo)},[wa,Na]=b.useState(""),Ka=Eo=>{const{value:Mo}=Eo.target;Na(Mo)};b.useEffect(()=>{To||Na("")},[To]);const na=Eo=>{const Mo=Eo!=null&&Eo.length?Eo:null;if(Mo===null&&(!Un||!Un.filteredKeys)||(0,Ee.Z)(Mo,Un==null?void 0:Un.filteredKeys,!0))return null;kr({column:Dn,key:Mn,filteredKeys:Mo})},ra=()=>{qr(!1),na(mo())},Va=function(){let{confirm:Eo,closeDropdown:Mo}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};Eo&&na([]),Mo&&qr(!1),Na(""),Oo(Gr?(to||[]).map(pa=>String(pa)):[])},qa=function(){let{closeDropdown:Eo}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};Eo&&qr(!1),na(mo())},xo=(Eo,Mo)=>{Mo.source==="trigger"&&(Eo&&so!==void 0&&Oo(gl(so)),qr(Eo),!Eo&&!Dn.filterDropdown&&xr&&ra())},zo=Xe()({[`${jn}-menu-without-submenu`]:!tl(Dn.filters||[])}),yo=Eo=>{if(Eo.target.checked){const Mo=Xi(Dn==null?void 0:Dn.filters).map(pa=>String(pa));Oo(Mo)}else Oo([])},lo=Eo=>{let{filters:Mo}=Eo;return(Mo||[]).map((pa,Ca)=>{const ya=String(pa.value),li={title:pa.text,key:pa.value!==void 0?ya:String(Ca)};return pa.children&&(li.children=lo({filters:pa.children})),li})},la=Eo=>{var Mo;return Object.assign(Object.assign({},Eo),{text:Eo.title,value:Eo.key,children:((Mo=Eo.children)===null||Mo===void 0?void 0:Mo.map(pa=>la(pa)))||[]})};let ha;const{direction:Ia,renderEmpty:Sa}=b.useContext(Xo.E_);if(typeof Dn.filterDropdown=="function")ha=Dn.filterDropdown({prefixCls:`${jn}-custom`,setSelectedKeys:Eo=>_r({selectedKeys:Eo}),selectedKeys:mo(),confirm:qa,clearFilters:Va,filters:Dn.filters,visible:Kr,close:()=>{qr(!1)}});else if(Dn.filterDropdown)ha=Dn.filterDropdown;else{const Eo=mo()||[],Mo=()=>{var Ca,ya;const li=(Ca=Sa==null?void 0:Sa("Table.filter"))!==null&&Ca!==void 0?Ca:b.createElement(Di.Z,{image:Di.Z.PRESENTED_IMAGE_SIMPLE,description:Dr.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if((Dn.filters||[]).length===0)return li;if(sr==="tree")return b.createElement(b.Fragment,null,b.createElement(ml,{filterSearch:Yn,value:wa,onChange:Ka,tablePrefixCls:fn,locale:Dr}),b.createElement("div",{className:`${fn}-filter-dropdown-tree`},fr?b.createElement(ro.default,{checked:Eo.length===Xi(Dn.filters).length,indeterminate:Eo.length>0&&Eo.length<Xi(Dn.filters).length,className:`${fn}-filter-dropdown-checkall`,onChange:yo},(ya=Dr==null?void 0:Dr.filterCheckall)!==null&&ya!==void 0?ya:Dr==null?void 0:Dr.filterCheckAll):null,b.createElement(Gi.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:fr,checkStrictly:!fr,className:`${jn}-menu`,onCheck:Qo,checkedKeys:Eo,selectedKeys:Eo,showIcon:!1,treeData:lo({filters:Dn.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:wa.trim()?Ma=>typeof Yn=="function"?Yn(wa,la(Ma)):Bl(wa,Ma.title):void 0})));const Ga=Hl({filters:Dn.filters||[],filterSearch:Yn,prefixCls:Pn,filteredKeys:mo(),filterMultiple:fr,searchValue:wa}),ji=Ga.every(Ma=>Ma===null);return b.createElement(b.Fragment,null,b.createElement(ml,{filterSearch:Yn,value:wa,onChange:Ka,tablePrefixCls:fn,locale:Dr}),ji?li:b.createElement(di.default,{selectable:!0,multiple:fr,prefixCls:`${jn}-menu`,className:zo,onSelect:_r,onDeselect:_r,selectedKeys:Eo,getPopupContainer:$r,openKeys:ta,onOpenChange:Fa,items:Ga}))},pa=()=>Gr?(0,Ee.Z)((to||[]).map(Ca=>String(Ca)),Eo,!0):Eo.length===0;ha=b.createElement(b.Fragment,null,Mo(),b.createElement("div",{className:`${Pn}-dropdown-btns`},b.createElement($a.ZP,{type:"link",size:"small",disabled:pa(),onClick:()=>Va()},Dr.filterReset),b.createElement($a.ZP,{type:"primary",size:"small",onClick:ra},Dr.filterConfirm)))}Dn.filterDropdown&&(ha=b.createElement(yi.J,{selectable:void 0},ha)),ha=b.createElement(Zl,{className:`${Pn}-dropdown`},ha);const Ua=()=>{let Eo;return typeof Dn.filterIcon=="function"?Eo=Dn.filterIcon(ho):Dn.filterIcon?Eo=Dn.filterIcon:Eo=b.createElement(Ja,null),b.createElement("span",{role:"button",tabIndex:-1,className:Xe()(`${Pn}-trigger`,{active:ho}),onClick:Mo=>{Mo.stopPropagation()}},Eo)},ni=(0,Wa.Z)({trigger:["click"],placement:Ia==="rtl"?"bottomLeft":"bottomRight",children:Ua(),getPopupContainer:$r},Object.assign(Object.assign({},uo),{rootClassName:Xe()(Zr,uo.rootClassName),open:Kr,onOpenChange:xo,dropdownRender:()=>typeof(uo==null?void 0:uo.dropdownRender)=="function"?uo.dropdownRender(ha):ha}));return b.createElement("div",{className:`${Pn}-column`},b.createElement("span",{className:`${fn}-column-title`},Lr),b.createElement(Yr.Z,Object.assign({},ni)))};const ul=(Se,be,ht)=>{let Rt=[];return(Se||[]).forEach((en,fn)=>{var Pn;const Dn=Hr(fn,ht);if(en.filters||"filterDropdown"in en||"onFilter"in en)if("filteredValue"in en){let jn=en.filteredValue;"filterDropdown"in en||(jn=(Pn=jn==null?void 0:jn.map(String))!==null&&Pn!==void 0?Pn:jn),Rt.push({column:en,key:Wr(en,Dn),filteredKeys:jn,forceFiltered:en.filtered})}else Rt.push({column:en,key:Wr(en,Dn),filteredKeys:be&&en.defaultFilteredValue?en.defaultFilteredValue:void 0,forceFiltered:en.filtered});"children"in en&&(Rt=[].concat((0,Ye.Z)(Rt),(0,Ye.Z)(ul(en.children,be,Dn))))}),Rt};function fi(Se,be,ht,Rt,en,fn,Pn,Dn,jn){return ht.map((Mn,xr)=>{const fr=Hr(xr,Dn),{filterOnClose:sr=!0,filterMultiple:Yn=!0,filterMode:Un,filterSearch:kr}=Mn;let Dr=Mn;if(Dr.filters||Dr.filterDropdown){const Lr=Wr(Dr,fr),$r=Rt.find(Zr=>{let{key:Gr}=Zr;return Lr===Gr});Dr=Object.assign(Object.assign({},Dr),{title:Zr=>b.createElement(zl,{tablePrefixCls:Se,prefixCls:`${Se}-filter`,dropdownPrefixCls:be,column:Dr,columnKey:Lr,filterState:$r,filterOnClose:sr,filterMultiple:Yn,filterMode:Un,filterSearch:kr,triggerFilter:fn,locale:en,getPopupContainer:Pn,rootClassName:jn},no(Mn.title,Zr))})}return"children"in Dr&&(Dr=Object.assign(Object.assign({},Dr),{children:fi(Se,be,Dr.children,Rt,en,fn,Pn,fr,jn)})),Dr})}const oa=Se=>{const be={};return Se.forEach(ht=>{let{key:Rt,filteredKeys:en,column:fn}=ht;const Pn=Rt,{filters:Dn,filterDropdown:jn}=fn;if(jn)be[Pn]=en||null;else if(Array.isArray(en)){const Mn=Xi(Dn);be[Pn]=Mn.filter(xr=>en.includes(String(xr)))}else be[Pn]=null}),be},Uo=(Se,be,ht)=>be.reduce((en,fn)=>{const{column:{onFilter:Pn,filters:Dn},filteredKeys:jn}=fn;return Pn&&jn&&jn.length?en.map(Mn=>Object.assign({},Mn)).filter(Mn=>jn.some(xr=>{const fr=Xi(Dn),sr=fr.findIndex(Un=>String(Un)===String(xr)),Yn=sr!==-1?fr[sr]:xr;return Mn[ht]&&(Mn[ht]=Uo(Mn[ht],be,ht)),Pn(Yn,Mn)})):en},Se),ti=Se=>Se.flatMap(be=>"children"in be?[be].concat((0,Ye.Z)(ti(be.children||[]))):[be]);var Aa=Se=>{const{prefixCls:be,dropdownPrefixCls:ht,mergedColumns:Rt,onFilterChange:en,getPopupContainer:fn,locale:Pn,rootClassName:Dn}=Se,jn=(0,jr.ln)("Table"),Mn=b.useMemo(()=>ti(Rt||[]),[Rt]),[xr,fr]=b.useState(()=>ul(Mn,!0)),sr=b.useMemo(()=>{const Dr=ul(Mn,!1);if(Dr.length===0)return Dr;let Lr=!0,$r=!0;if(Dr.forEach(Zr=>{let{filteredKeys:Gr}=Zr;Gr!==void 0?Lr=!1:$r=!1}),Lr){const Zr=(Mn||[]).map((Gr,to)=>Wr(Gr,Hr(to)));return xr.filter(Gr=>{let{key:to}=Gr;return Zr.includes(to)}).map(Gr=>{const to=Mn[Zr.findIndex(uo=>uo===Gr.key)];return Object.assign(Object.assign({},Gr),{column:Object.assign(Object.assign({},Gr.column),to),forceFiltered:to.filtered})})}return Dr},[Mn,xr]),Yn=b.useMemo(()=>oa(sr),[sr]),Un=Dr=>{const Lr=sr.filter($r=>{let{key:Zr}=$r;return Zr!==Dr.key});Lr.push(Dr),fr(Lr),en(oa(Lr),Lr)};return[Dr=>fi(be,ht,Dr,sr,Pn,Un,fn,void 0,Dn),sr,Yn]},pn=(Se,be,ht)=>{const Rt=b.useRef({});function en(fn){var Pn;if(!Rt.current||Rt.current.data!==Se||Rt.current.childrenColumnName!==be||Rt.current.getRowKey!==ht){let jn=function(Mn){Mn.forEach((xr,fr)=>{const sr=ht(xr,fr);Dn.set(sr,xr),xr&&typeof xr=="object"&&be in xr&&jn(xr[be]||[])})};const Dn=new Map;jn(Se),Rt.current={data:Se,childrenColumnName:be,kvMap:Dn,getRowKey:ht}}return(Pn=Rt.current.kvMap)===null||Pn===void 0?void 0:Pn.get(fn)}return[en]},Hi=function(Se,be){var ht={};for(var Rt in Se)Object.prototype.hasOwnProperty.call(Se,Rt)&&be.indexOf(Rt)<0&&(ht[Rt]=Se[Rt]);if(Se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var en=0,Rt=Object.getOwnPropertySymbols(Se);en<Rt.length;en++)be.indexOf(Rt[en])<0&&Object.prototype.propertyIsEnumerable.call(Se,Rt[en])&&(ht[Rt[en]]=Se[Rt[en]]);return ht};const nl=10;function Oi(Se,be){const ht={current:Se.current,pageSize:Se.pageSize};return Object.keys(be&&typeof be=="object"?be:{}).forEach(en=>{const fn=Se[en];typeof fn!="function"&&(ht[en]=fn)}),ht}function Ni(Se,be,ht){const Rt=ht&&typeof ht=="object"?ht:{},{total:en=0}=Rt,fn=Hi(Rt,["total"]),[Pn,Dn]=(0,b.useState)(()=>({current:"defaultCurrent"in fn?fn.defaultCurrent:1,pageSize:"defaultPageSize"in fn?fn.defaultPageSize:nl})),jn=(0,Wa.Z)(Pn,fn,{total:en>0?en:Se}),Mn=Math.ceil((en||Se)/jn.pageSize);jn.current>Mn&&(jn.current=Mn||1);const xr=(sr,Yn)=>{Dn({current:sr!=null?sr:1,pageSize:Yn||jn.pageSize})},fr=(sr,Yn)=>{var Un;ht&&((Un=ht.onChange)===null||Un===void 0||Un.call(ht,sr,Yn)),xr(sr,Yn),be(sr,Yn||(jn==null?void 0:jn.pageSize))};return ht===!1?[{},()=>{}]:[Object.assign(Object.assign({},jn),{onChange:fr}),xr]}var Mi=Ni,cl=z(89489),cs=z(59477),jl=z(25399);const Pl="ascend",dl="descend",_o=Se=>typeof Se.sorter=="object"&&typeof Se.sorter.multiple=="number"?Se.sorter.multiple:!1,ii=Se=>typeof Se=="function"?Se:Se&&typeof Se=="object"&&Se.compare?Se.compare:!1,bi=(Se,be)=>be?Se[Se.indexOf(be)+1]:Se[0],rl=(Se,be,ht)=>{let Rt=[];const en=(fn,Pn)=>{Rt.push({column:fn,key:Wr(fn,Pn),multiplePriority:_o(fn),sortOrder:fn.sortOrder})};return(Se||[]).forEach((fn,Pn)=>{const Dn=Hr(Pn,ht);fn.children?("sortOrder"in fn&&en(fn,Dn),Rt=[].concat((0,Ye.Z)(Rt),(0,Ye.Z)(rl(fn.children,be,Dn)))):fn.sorter&&("sortOrder"in fn?en(fn,Dn):be&&fn.defaultSortOrder&&Rt.push({column:fn,key:Wr(fn,Dn),multiplePriority:_o(fn),sortOrder:fn.defaultSortOrder}))}),Rt},Wl=(Se,be,ht,Rt,en,fn,Pn,Dn)=>(be||[]).map((Mn,xr)=>{const fr=Hr(xr,Dn);let sr=Mn;if(sr.sorter){const Yn=sr.sortDirections||en,Un=sr.showSorterTooltip===void 0?Pn:sr.showSorterTooltip,kr=Wr(sr,fr),Dr=ht.find(Do=>{let{key:Co}=Do;return Co===kr}),Lr=Dr?Dr.sortOrder:null,$r=bi(Yn,Lr);let Zr;if(Mn.sortIcon)Zr=Mn.sortIcon({sortOrder:Lr});else{const Do=Yn.includes(Pl)&&b.createElement(cs.Z,{className:Xe()(`${Se}-column-sorter-up`,{active:Lr===Pl})}),Co=Yn.includes(dl)&&b.createElement(cl.Z,{className:Xe()(`${Se}-column-sorter-down`,{active:Lr===dl})});Zr=b.createElement("span",{className:Xe()(`${Se}-column-sorter`,{[`${Se}-column-sorter-full`]:!!(Do&&Co)})},b.createElement("span",{className:`${Se}-column-sorter-inner`,"aria-hidden":"true"},Do,Co))}const{cancelSort:Gr,triggerAsc:to,triggerDesc:uo}=fn||{};let io=Gr;$r===dl?io=uo:$r===Pl&&(io=to);const $o=typeof Un=="object"?Object.assign({title:io},Un):{title:io};sr=Object.assign(Object.assign({},sr),{className:Xe()(sr.className,{[`${Se}-column-sort`]:Lr}),title:Do=>{const Co=`${Se}-column-sorters`,To=b.createElement("span",{className:`${Se}-column-title`},no(Mn.title,Do)),co=b.createElement("div",{className:Co},To,Zr);return Un?typeof Un!="boolean"&&(Un==null?void 0:Un.target)==="sorter-icon"?b.createElement("div",{className:`${Co} ${Se}-column-sorters-tooltip-target-sorter`},To,b.createElement(jl.Z,Object.assign({},$o),Zr)):b.createElement(jl.Z,Object.assign({},$o),co):co},onHeaderCell:Do=>{var Co;const To=((Co=Mn.onHeaderCell)===null||Co===void 0?void 0:Co.call(Mn,Do))||{},co=To.onClick,ho=To.onKeyDown;To.onClick=so=>{Rt({column:Mn,key:kr,sortOrder:$r,multiplePriority:_o(Mn)}),co==null||co(so)},To.onKeyDown=so=>{so.keyCode===kl.Z.ENTER&&(Rt({column:Mn,key:kr,sortOrder:$r,multiplePriority:_o(Mn)}),ho==null||ho(so))};const qr=bo(Mn.title,{}),Kr=qr==null?void 0:qr.toString();return Lr&&(To["aria-sort"]=Lr==="ascend"?"ascending":"descending"),To["aria-label"]=Kr||"",To.className=Xe()(To.className,`${Se}-column-has-sorters`),To.tabIndex=0,Mn.ellipsis&&(To.title=(qr!=null?qr:"").toString()),To}})}return"children"in sr&&(sr=Object.assign(Object.assign({},sr),{children:Wl(Se,sr.children,ht,Rt,en,fn,Pn,fr)})),sr}),es=Se=>{const{column:be,sortOrder:ht}=Se;return{column:be,order:ht,field:be.dataIndex,columnKey:be.key}},ds=Se=>{const be=Se.filter(ht=>{let{sortOrder:Rt}=ht;return Rt}).map(es);if(be.length===0&&Se.length){const ht=Se.length-1;return Object.assign(Object.assign({},es(Se[ht])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return be.length<=1?be[0]||{}:be},El=(Se,be,ht)=>{const Rt=be.slice().sort((Pn,Dn)=>Dn.multiplePriority-Pn.multiplePriority),en=Se.slice(),fn=Rt.filter(Pn=>{let{column:{sorter:Dn},sortOrder:jn}=Pn;return ii(Dn)&&jn});return fn.length?en.sort((Pn,Dn)=>{for(let jn=0;jn<fn.length;jn+=1){const Mn=fn[jn],{column:{sorter:xr},sortOrder:fr}=Mn,sr=ii(xr);if(sr&&fr){const Yn=sr(Pn,Dn,fr);if(Yn!==0)return fr===Pl?Yn:-Yn}}return 0}).map(Pn=>{const Dn=Pn[ht];return Dn?Object.assign(Object.assign({},Pn),{[ht]:El(Dn,be,ht)}):Pn}):en};var xs=Se=>{const{prefixCls:be,mergedColumns:ht,sortDirections:Rt,tableLocale:en,showSorterTooltip:fn,onSorterChange:Pn}=Se,[Dn,jn]=b.useState(rl(ht,!0)),Mn=(kr,Dr)=>{const Lr=[];return kr.forEach(($r,Zr)=>{const Gr=Hr(Zr,Dr);if(Lr.push(Wr($r,Gr)),Array.isArray($r.children)){const to=Mn($r.children,Gr);Lr.push.apply(Lr,(0,Ye.Z)(to))}}),Lr},xr=b.useMemo(()=>{let kr=!0;const Dr=rl(ht,!1);if(!Dr.length){const Gr=Mn(ht);return Dn.filter(to=>{let{key:uo}=to;return Gr.includes(uo)})}const Lr=[];function $r(Gr){kr?Lr.push(Gr):Lr.push(Object.assign(Object.assign({},Gr),{sortOrder:null}))}let Zr=null;return Dr.forEach(Gr=>{Zr===null?($r(Gr),Gr.sortOrder&&(Gr.multiplePriority===!1?kr=!1:Zr=!0)):(Zr&&Gr.multiplePriority!==!1||(kr=!1),$r(Gr))}),Lr},[ht,Dn]),fr=b.useMemo(()=>{var kr,Dr;const Lr=xr.map($r=>{let{column:Zr,sortOrder:Gr}=$r;return{column:Zr,order:Gr}});return{sortColumns:Lr,sortColumn:(kr=Lr[0])===null||kr===void 0?void 0:kr.column,sortOrder:(Dr=Lr[0])===null||Dr===void 0?void 0:Dr.order}},[xr]),sr=kr=>{let Dr;kr.multiplePriority===!1||!xr.length||xr[0].multiplePriority===!1?Dr=[kr]:Dr=[].concat((0,Ye.Z)(xr.filter(Lr=>{let{key:$r}=Lr;return $r!==kr.key})),[kr]),jn(Dr),Pn(ds(Dr),Dr)};return[kr=>Wl(be,kr,xr,sr,Rt,en,fn),xr,fr,()=>ds(xr)]};const $l=(Se,be)=>Se.map(Rt=>{const en=Object.assign({},Rt);return en.title=no(Rt.title,be),"children"in en&&(en.children=$l(en.children,be)),en});var ts=Se=>[b.useCallback(ht=>$l(ht,Se),[Se])],Es=Vn((Se,be)=>{const{_renderTimes:ht}=Se,{_renderTimes:Rt}=be;return ht!==Rt}),Kl=er((Se,be)=>{const{_renderTimes:ht}=Se,{_renderTimes:Rt}=be;return ht!==Rt}),No=z(36237),Al=z(17835),Nr=z(63356),Jo=z(16931),ea=z(51636),ka=Se=>{const{componentCls:be,lineWidth:ht,lineType:Rt,tableBorderColor:en,tableHeaderBg:fn,tablePaddingVertical:Pn,tablePaddingHorizontal:Dn,calc:jn}=Se,Mn=`${(0,No.unit)(ht)} ${Rt} ${en}`,xr=(fr,sr,Yn)=>({[`&${be}-${fr}`]:{[`> ${be}-container`]:{[`> ${be}-content, > ${be}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${be}-expanded-row-fixed`]:{margin:`${(0,No.unit)(jn(sr).mul(-1).equal())}
|
|
|
${(0,No.unit)(jn(jn(Yn).add(ht)).mul(-1).equal())}`}}}}}});return{[`${be}-wrapper`]:{[`${be}${be}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${be}-title`]:{border:Mn,borderBottom:0},[`> ${be}-container`]:{borderInlineStart:Mn,borderTop:Mn,[`
|
|
|
> ${be}-content,
|
|
|
> ${be}-header,
|
|
|
> ${be}-body,
|
|
|
> ${be}-summary
|
|
|
`]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:Mn},"> thead":{"> tr:not(:last-child) > th":{borderBottom:Mn},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${be}-cell-fix-right-first::after`]:{borderInlineEnd:Mn}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${be}-expanded-row-fixed`]:{margin:`${(0,No.unit)(jn(Pn).mul(-1).equal())} ${(0,No.unit)(jn(jn(Dn).add(ht)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:ht,bottom:0,borderInlineEnd:Mn,content:'""'}}}}}},[`&${be}-scroll-horizontal`]:{[`> ${be}-container > ${be}-body`]:{"> table > tbody":{[`
|
|
|
> tr${be}-expanded-row,
|
|
|
> tr${be}-placeholder
|
|
|
`]:{"> th, > td":{borderInlineEnd:0}}}}}},xr("middle",Se.tablePaddingVerticalMiddle,Se.tablePaddingHorizontalMiddle)),xr("small",Se.tablePaddingVerticalSmall,Se.tablePaddingHorizontalSmall)),{[`> ${be}-footer`]:{border:Mn,borderTop:0}}),[`${be}-cell`]:{[`${be}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${(0,No.unit)(ht)} 0 ${(0,No.unit)(ht)} ${fn}`}},[`${be}-bordered ${be}-cell-scrollbar`]:{borderInlineEnd:Mn}}}},fl=Se=>{const{componentCls:be}=Se;return{[`${be}-wrapper`]:{[`${be}-cell-ellipsis`]:Object.assign(Object.assign({},Nr.vS),{wordBreak:"keep-all",[`
|
|
|
&${be}-cell-fix-left-last,
|
|
|
&${be}-cell-fix-right-first
|
|
|
`]:{overflow:"visible",[`${be}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${be}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},ns=Se=>{const{componentCls:be}=Se;return{[`${be}-wrapper`]:{[`${be}-tbody > tr${be}-placeholder`]:{textAlign:"center",color:Se.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:Se.colorBgContainer}}}}},Ul=Se=>{const{componentCls:be,antCls:ht,motionDurationSlow:Rt,lineWidth:en,paddingXS:fn,lineType:Pn,tableBorderColor:Dn,tableExpandIconBg:jn,tableExpandColumnWidth:Mn,borderRadius:xr,tablePaddingVertical:fr,tablePaddingHorizontal:sr,tableExpandedRowBg:Yn,paddingXXS:Un,expandIconMarginTop:kr,expandIconSize:Dr,expandIconHalfInner:Lr,expandIconScale:$r,calc:Zr}=Se,Gr=`${(0,No.unit)(en)} ${Pn} ${Dn}`,to=Zr(Un).sub(en).equal();return{[`${be}-wrapper`]:{[`${be}-expand-icon-col`]:{width:Mn},[`${be}-row-expand-icon-cell`]:{textAlign:"center",[`${be}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${be}-row-indent`]:{height:1,float:"left"},[`${be}-row-expand-icon`]:Object.assign(Object.assign({},(0,Nr.Nd)(Se)),{position:"relative",float:"left",width:Dr,height:Dr,color:"inherit",lineHeight:(0,No.unit)(Dr),background:jn,border:Gr,borderRadius:xr,transform:`scale(${$r})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${Rt} ease-out`,content:'""'},"&::before":{top:Lr,insetInlineEnd:to,insetInlineStart:to,height:en},"&::after":{top:to,bottom:to,insetInlineStart:Lr,width:en,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${be}-row-indent + ${be}-row-expand-icon`]:{marginTop:kr,marginInlineEnd:fn},[`tr${be}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:Yn}},[`${ht}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${be}-expanded-row-fixed`]:{position:"relative",margin:`${(0,No.unit)(Zr(fr).mul(-1).equal())} ${(0,No.unit)(Zr(sr).mul(-1).equal())}`,padding:`${(0,No.unit)(fr)} ${(0,No.unit)(sr)}`}}}},Gl=Se=>{const{componentCls:be,antCls:ht,iconCls:Rt,tableFilterDropdownWidth:en,tableFilterDropdownSearchWidth:fn,paddingXXS:Pn,paddingXS:Dn,colorText:jn,lineWidth:Mn,lineType:xr,tableBorderColor:fr,headerIconColor:sr,fontSizeSM:Yn,tablePaddingHorizontal:Un,borderRadius:kr,motionDurationSlow:Dr,colorTextDescription:Lr,colorPrimary:$r,tableHeaderFilterActiveBg:Zr,colorTextDisabled:Gr,tableFilterDropdownBg:to,tableFilterDropdownHeight:uo,controlItemBgHover:io,controlItemBgActive:$o,boxShadowSecondary:Do,filterDropdownMenuBg:Co,calc:To}=Se,co=`${ht}-dropdown`,ho=`${be}-filter-dropdown`,qr=`${ht}-tree`,Kr=`${(0,No.unit)(Mn)} ${xr} ${fr}`;return[{[`${be}-wrapper`]:{[`${be}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${be}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:To(Pn).mul(-1).equal(),marginInline:`${(0,No.unit)(Pn)} ${(0,No.unit)(To(Un).div(2).mul(-1).equal())}`,padding:`0 ${(0,No.unit)(Pn)}`,color:sr,fontSize:Yn,borderRadius:kr,cursor:"pointer",transition:`all ${Dr}`,"&:hover":{color:Lr,background:Zr},"&.active":{color:$r}}}},{[`${ht}-dropdown`]:{[ho]:Object.assign(Object.assign({},(0,Nr.Wf)(Se)),{minWidth:en,backgroundColor:to,borderRadius:kr,boxShadow:Do,overflow:"hidden",[`${co}-menu`]:{maxHeight:uo,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:Co,"&:empty::after":{display:"block",padding:`${(0,No.unit)(Dn)} 0`,color:Gr,fontSize:Yn,textAlign:"center",content:'"Not Found"'}},[`${ho}-tree`]:{paddingBlock:`${(0,No.unit)(Dn)} 0`,paddingInline:Dn,[qr]:{padding:0},[`${qr}-treenode ${qr}-node-content-wrapper:hover`]:{backgroundColor:io},[`${qr}-treenode-checkbox-checked ${qr}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:$o}}},[`${ho}-search`]:{padding:Dn,borderBottom:Kr,"&-input":{input:{minWidth:fn},[Rt]:{color:Gr}}},[`${ho}-checkall`]:{width:"100%",marginBottom:Pn,marginInlineStart:Pn},[`${ho}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${(0,No.unit)(To(Dn).sub(Mn).equal())} ${(0,No.unit)(Dn)}`,overflow:"hidden",borderTop:Kr}})}},{[`${ht}-dropdown ${ho}, ${ho}-submenu`]:{[`${ht}-checkbox-wrapper + span`]:{paddingInlineStart:Dn,color:jn},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},vl=Se=>{const{componentCls:be,lineWidth:ht,colorSplit:Rt,motionDurationSlow:en,zIndexTableFixed:fn,tableBg:Pn,zIndexTableSticky:Dn,calc:jn}=Se,Mn=Rt;return{[`${be}-wrapper`]:{[`
|
|
|
${be}-cell-fix-left,
|
|
|
${be}-cell-fix-right
|
|
|
`]:{position:"sticky !important",zIndex:fn,background:Pn},[`
|
|
|
${be}-cell-fix-left-first::after,
|
|
|
${be}-cell-fix-left-last::after
|
|
|
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:jn(ht).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${en}`,content:'""',pointerEvents:"none"},[`${be}-cell-fix-left-all::after`]:{display:"none"},[`
|
|
|
${be}-cell-fix-right-first::after,
|
|
|
${be}-cell-fix-right-last::after
|
|
|
`]:{position:"absolute",top:0,bottom:jn(ht).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${en}`,content:'""',pointerEvents:"none"},[`${be}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:jn(Dn).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${en}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${be}-ping-left`]:{[`&:not(${be}-has-fix-left) ${be}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${Mn}`},[`
|
|
|
${be}-cell-fix-left-first::after,
|
|
|
${be}-cell-fix-left-last::after
|
|
|
`]:{boxShadow:`inset 10px 0 8px -8px ${Mn}`},[`${be}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${be}-ping-right`]:{[`&:not(${be}-has-fix-right) ${be}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${Mn}`},[`
|
|
|
${be}-cell-fix-right-first::after,
|
|
|
${be}-cell-fix-right-last::after
|
|
|
`]:{boxShadow:`inset -10px 0 8px -8px ${Mn}`}},[`${be}-fixed-column-gapped`]:{[`
|
|
|
${be}-cell-fix-left-first::after,
|
|
|
${be}-cell-fix-left-last::after,
|
|
|
${be}-cell-fix-right-first::after,
|
|
|
${be}-cell-fix-right-last::after
|
|
|
`]:{boxShadow:"none"}}}}},Vi=Se=>{const{componentCls:be,antCls:ht,margin:Rt}=Se;return{[`${be}-wrapper`]:{[`${be}-pagination${ht}-pagination`]:{margin:`${(0,No.unit)(Rt)} 0`},[`${be}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:Se.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},fo=Se=>{const{componentCls:be,tableRadius:ht}=Se;return{[`${be}-wrapper`]:{[be]:{[`${be}-title, ${be}-header`]:{borderRadius:`${(0,No.unit)(ht)} ${(0,No.unit)(ht)} 0 0`},[`${be}-title + ${be}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${be}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:ht,borderStartEndRadius:ht,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:ht},"> *:last-child":{borderStartEndRadius:ht}}},"&-footer":{borderRadius:`0 0 ${(0,No.unit)(ht)} ${(0,No.unit)(ht)}`}}}}},ru=Se=>{const{componentCls:be}=Se;return{[`${be}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${be}-pagination-left`]:{justifyContent:"flex-end"},[`${be}-pagination-right`]:{justifyContent:"flex-start"},[`${be}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${be}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${be}-row-indent`]:{float:"right"}}}}},Xl=Se=>{const{componentCls:be,antCls:ht,iconCls:Rt,fontSizeIcon:en,padding:fn,paddingXS:Pn,headerIconColor:Dn,headerIconHoverColor:jn,tableSelectionColumnWidth:Mn,tableSelectedRowBg:xr,tableSelectedRowHoverBg:fr,tableRowHoverBg:sr,tablePaddingHorizontal:Yn,calc:Un}=Se;return{[`${be}-wrapper`]:{[`${be}-selection-col`]:{width:Mn,[`&${be}-selection-col-with-dropdown`]:{width:Un(Mn).add(en).add(Un(fn).div(4)).equal()}},[`${be}-bordered ${be}-selection-col`]:{width:Un(Mn).add(Un(Pn).mul(2)).equal(),[`&${be}-selection-col-with-dropdown`]:{width:Un(Mn).add(en).add(Un(fn).div(4)).add(Un(Pn).mul(2)).equal()}},[`
|
|
|
table tr th${be}-selection-column,
|
|
|
table tr td${be}-selection-column,
|
|
|
${be}-selection-column
|
|
|
`]:{paddingInlineEnd:Se.paddingXS,paddingInlineStart:Se.paddingXS,textAlign:"center",[`${ht}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${be}-selection-column${be}-cell-fix-left`]:{zIndex:Un(Se.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${be}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${be}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${be}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${Se.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:(0,No.unit)(Un(Yn).div(4).equal()),[Rt]:{color:Dn,fontSize:en,verticalAlign:"baseline","&:hover":{color:jn}}},[`${be}-tbody`]:{[`${be}-row`]:{[`&${be}-row-selected`]:{[`> ${be}-cell`]:{background:xr,"&-row-hover":{background:fr}}},[`> ${be}-cell-row-hover`]:{background:sr}}}}}},du=Se=>{const{componentCls:be,tableExpandColumnWidth:ht,calc:Rt}=Se,en=(fn,Pn,Dn,jn)=>({[`${be}${be}-${fn}`]:{fontSize:jn,[`
|
|
|
${be}-title,
|
|
|
${be}-footer,
|
|
|
${be}-cell,
|
|
|
${be}-thead > tr > th,
|
|
|
${be}-tbody > tr > th,
|
|
|
${be}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{padding:`${(0,No.unit)(Pn)} ${(0,No.unit)(Dn)}`},[`${be}-filter-trigger`]:{marginInlineEnd:(0,No.unit)(Rt(Dn).div(2).mul(-1).equal())},[`${be}-expanded-row-fixed`]:{margin:`${(0,No.unit)(Rt(Pn).mul(-1).equal())} ${(0,No.unit)(Rt(Dn).mul(-1).equal())}`},[`${be}-tbody`]:{[`${be}-wrapper:only-child ${be}`]:{marginBlock:(0,No.unit)(Rt(Pn).mul(-1).equal()),marginInline:`${(0,No.unit)(Rt(ht).sub(Dn).equal())} ${(0,No.unit)(Rt(Dn).mul(-1).equal())}`}},[`${be}-selection-extra`]:{paddingInlineStart:(0,No.unit)(Rt(Dn).div(4).equal())}}});return{[`${be}-wrapper`]:Object.assign(Object.assign({},en("middle",Se.tablePaddingVerticalMiddle,Se.tablePaddingHorizontalMiddle,Se.tableFontSizeMiddle)),en("small",Se.tablePaddingVerticalSmall,Se.tablePaddingHorizontalSmall,Se.tableFontSizeSmall))}},fu=Se=>{const{componentCls:be,marginXXS:ht,fontSizeIcon:Rt,headerIconColor:en,headerIconHoverColor:fn}=Se;return{[`${be}-wrapper`]:{[`${be}-thead th${be}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${Se.motionDurationSlow}, left 0s`,"&:hover":{background:Se.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:Se.colorPrimary},[`
|
|
|
&${be}-cell-fix-left:hover,
|
|
|
&${be}-cell-fix-right:hover
|
|
|
`]:{background:Se.tableFixedHeaderSortActiveBg}},[`${be}-thead th${be}-column-sort`]:{background:Se.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${be}-column-sort`]:{background:Se.tableBodySortBg},[`${be}-column-title`]:{position:"relative",zIndex:1,flex:1,minWidth:0},[`${be}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${be}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${be}-column-sorter`]:{marginInlineStart:ht,color:en,fontSize:0,transition:`color ${Se.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:Rt,"&.active":{color:Se.colorPrimary}},[`${be}-column-sorter-up + ${be}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${be}-column-sorters:hover ${be}-column-sorter`]:{color:fn}}}},hu=Se=>{const{componentCls:be,opacityLoading:ht,tableScrollThumbBg:Rt,tableScrollThumbBgHover:en,tableScrollThumbSize:fn,tableScrollBg:Pn,zIndexTableSticky:Dn,stickyScrollBarBorderRadius:jn,lineWidth:Mn,lineType:xr,tableBorderColor:fr}=Se,sr=`${(0,No.unit)(Mn)} ${xr} ${fr}`;return{[`${be}-wrapper`]:{[`${be}-sticky`]:{"&-holder":{position:"sticky",zIndex:Dn,background:Se.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${(0,No.unit)(fn)} !important`,zIndex:Dn,display:"flex",alignItems:"center",background:Pn,borderTop:sr,opacity:ht,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:fn,backgroundColor:Rt,borderRadius:jn,transition:`all ${Se.motionDurationSlow}, transform 0s`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:en}}}}}}},zi=Se=>{const{componentCls:be,lineWidth:ht,tableBorderColor:Rt,calc:en}=Se,fn=`${(0,No.unit)(ht)} ${Se.lineType} ${Rt}`;return{[`${be}-wrapper`]:{[`${be}-summary`]:{position:"relative",zIndex:Se.zIndexTableFixed,background:Se.tableBg,"> tr":{"> th, > td":{borderBottom:fn}}},[`div${be}-summary`]:{boxShadow:`0 ${(0,No.unit)(en(ht).mul(-1).equal())} 0 ${Rt}`}}}},Ti=Se=>{const{componentCls:be,motionDurationMid:ht,lineWidth:Rt,lineType:en,tableBorderColor:fn,calc:Pn}=Se,Dn=`${(0,No.unit)(Rt)} ${en} ${fn}`,jn=`${be}-expanded-row-cell`;return{[`${be}-wrapper`]:{[`${be}-tbody-virtual`]:{[`${be}-tbody-virtual-holder-inner`]:{[`
|
|
|
& > ${be}-row,
|
|
|
& > div:not(${be}-row) > ${be}-row
|
|
|
`]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${be}-cell`]:{borderBottom:Dn,transition:`background ${ht}`},[`${be}-expanded-row`]:{[`${jn}${jn}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${(0,No.unit)(Rt)})`,borderInlineEnd:"none"}}},[`${be}-bordered`]:{[`${be}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:Dn,position:"absolute"},[`${be}-cell`]:{borderInlineEnd:Dn,[`&${be}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:Pn(Rt).mul(-1).equal(),borderInlineStart:Dn}}},[`&${be}-virtual`]:{[`${be}-placeholder ${be}-cell`]:{borderInlineEnd:Dn,borderBottom:Dn}}}}}};const vi=Se=>{const{componentCls:be,fontWeightStrong:ht,tablePaddingVertical:Rt,tablePaddingHorizontal:en,tableExpandColumnWidth:fn,lineWidth:Pn,lineType:Dn,tableBorderColor:jn,tableFontSize:Mn,tableBg:xr,tableRadius:fr,tableHeaderTextColor:sr,motionDurationMid:Yn,tableHeaderBg:Un,tableHeaderCellSplitColor:kr,tableFooterTextColor:Dr,tableFooterBg:Lr,calc:$r}=Se,Zr=`${(0,No.unit)(Pn)} ${Dn} ${jn}`;return{[`${be}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,Nr.dF)()),{[be]:Object.assign(Object.assign({},(0,Nr.Wf)(Se)),{fontSize:Mn,background:xr,borderRadius:`${(0,No.unit)(fr)} ${(0,No.unit)(fr)} 0 0`,scrollbarColor:`${Se.tableScrollThumbBg} ${Se.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${(0,No.unit)(fr)} ${(0,No.unit)(fr)} 0 0`,borderCollapse:"separate",borderSpacing:0},[`
|
|
|
${be}-cell,
|
|
|
${be}-thead > tr > th,
|
|
|
${be}-tbody > tr > th,
|
|
|
${be}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{position:"relative",padding:`${(0,No.unit)(Rt)} ${(0,No.unit)(en)}`,overflowWrap:"break-word"},[`${be}-title`]:{padding:`${(0,No.unit)(Rt)} ${(0,No.unit)(en)}`},[`${be}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:sr,fontWeight:ht,textAlign:"start",background:Un,borderBottom:Zr,transition:`background ${Yn} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${be}-selection-column):not(${be}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:kr,transform:"translateY(-50%)",transition:`background-color ${Yn}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${be}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${Yn}, border-color ${Yn}`,borderBottom:Zr,[`
|
|
|
> ${be}-wrapper:only-child,
|
|
|
> ${be}-expanded-row-fixed > ${be}-wrapper:only-child
|
|
|
`]:{[be]:{marginBlock:(0,No.unit)($r(Rt).mul(-1).equal()),marginInline:`${(0,No.unit)($r(fn).sub(en).equal())}
|
|
|
${(0,No.unit)($r(en).mul(-1).equal())}`,[`${be}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:sr,fontWeight:ht,textAlign:"start",background:Un,borderBottom:Zr,transition:`background ${Yn} ease`}}},[`${be}-footer`]:{padding:`${(0,No.unit)(Rt)} ${(0,No.unit)(en)}`,color:Dr,background:Lr}})}},fs=Se=>{const{colorFillAlter:be,colorBgContainer:ht,colorTextHeading:Rt,colorFillSecondary:en,colorFillContent:fn,controlItemBgActive:Pn,controlItemBgActiveHover:Dn,padding:jn,paddingSM:Mn,paddingXS:xr,colorBorderSecondary:fr,borderRadiusLG:sr,controlHeight:Yn,colorTextPlaceholder:Un,fontSize:kr,fontSizeSM:Dr,lineHeight:Lr,lineWidth:$r,colorIcon:Zr,colorIconHover:Gr,opacityLoading:to,controlInteractiveSize:uo}=Se,io=new Al.FastColor(en).onBackground(ht).toHexString(),$o=new Al.FastColor(fn).onBackground(ht).toHexString(),Do=new Al.FastColor(be).onBackground(ht).toHexString(),Co=new Al.FastColor(Zr),To=new Al.FastColor(Gr),co=uo/2-$r,ho=co*2+$r*3;return{headerBg:Do,headerColor:Rt,headerSortActiveBg:io,headerSortHoverBg:$o,bodySortBg:Do,rowHoverBg:Do,rowSelectedBg:Pn,rowSelectedHoverBg:Dn,rowExpandedBg:be,cellPaddingBlock:jn,cellPaddingInline:jn,cellPaddingBlockMD:Mn,cellPaddingInlineMD:xr,cellPaddingBlockSM:xr,cellPaddingInlineSM:xr,borderColor:fr,headerBorderRadius:sr,footerBg:Do,footerColor:Rt,cellFontSize:kr,cellFontSizeMD:kr,cellFontSizeSM:kr,headerSplitColor:fr,fixedHeaderSortActiveBg:io,headerFilterHoverBg:fn,filterDropdownMenuBg:ht,filterDropdownBg:ht,expandIconBg:ht,selectionColumnWidth:Yn,stickyScrollBarBg:Un,stickyScrollBarBorderRadius:100,expandIconMarginTop:(kr*Lr-$r*3)/2-Math.ceil((Dr*1.4-$r*3)/2),headerIconColor:Co.clone().setA(Co.a*to).toRgbString(),headerIconHoverColor:To.clone().setA(To.a*to).toRgbString(),expandIconHalfInner:co,expandIconSize:ho,expandIconScale:uo/ho}},ou=2;var Ds=(0,Jo.I$)("Table",Se=>{const{colorTextHeading:be,colorSplit:ht,colorBgContainer:Rt,controlInteractiveSize:en,headerBg:fn,headerColor:Pn,headerSortActiveBg:Dn,headerSortHoverBg:jn,bodySortBg:Mn,rowHoverBg:xr,rowSelectedBg:fr,rowSelectedHoverBg:sr,rowExpandedBg:Yn,cellPaddingBlock:Un,cellPaddingInline:kr,cellPaddingBlockMD:Dr,cellPaddingInlineMD:Lr,cellPaddingBlockSM:$r,cellPaddingInlineSM:Zr,borderColor:Gr,footerBg:to,footerColor:uo,headerBorderRadius:io,cellFontSize:$o,cellFontSizeMD:Do,cellFontSizeSM:Co,headerSplitColor:To,fixedHeaderSortActiveBg:co,headerFilterHoverBg:ho,filterDropdownBg:qr,expandIconBg:Kr,selectionColumnWidth:so,stickyScrollBarBg:mo,calc:Oo}=Se,_r=(0,ea.mergeToken)(Se,{tableFontSize:$o,tableBg:Rt,tableRadius:io,tablePaddingVertical:Un,tablePaddingHorizontal:kr,tablePaddingVerticalMiddle:Dr,tablePaddingHorizontalMiddle:Lr,tablePaddingVerticalSmall:$r,tablePaddingHorizontalSmall:Zr,tableBorderColor:Gr,tableHeaderTextColor:Pn,tableHeaderBg:fn,tableFooterTextColor:uo,tableFooterBg:to,tableHeaderCellSplitColor:To,tableHeaderSortBg:Dn,tableHeaderSortHoverBg:jn,tableBodySortBg:Mn,tableFixedHeaderSortActiveBg:co,tableHeaderFilterActiveBg:ho,tableFilterDropdownBg:qr,tableRowHoverBg:xr,tableSelectedRowBg:fr,tableSelectedRowHoverBg:sr,zIndexTableFixed:ou,zIndexTableSticky:Oo(ou).add(1).equal({unit:!1}),tableFontSizeMiddle:Do,tableFontSizeSmall:Co,tableSelectionColumnWidth:so,tableExpandIconBg:Kr,tableExpandColumnWidth:Oo(en).add(Oo(Se.padding).mul(2)).equal(),tableExpandedRowBg:Yn,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:mo,tableScrollThumbBgHover:be,tableScrollBg:ht});return[vi(_r),Vi(_r),zi(_r),fu(_r),Gl(_r),ka(_r),fo(_r),Ul(_r),zi(_r),ns(_r),Xl(_r),vl(_r),hu(_r),fl(_r),du(_r),ru(_r),Ti(_r)]},fs,{unitless:{expandIconScale:!0}});const vu=[],pu=(Se,be)=>{var ht,Rt;const{prefixCls:en,className:fn,rootClassName:Pn,style:Dn,size:jn,bordered:Mn,dropdownPrefixCls:xr,dataSource:fr,pagination:sr,rowSelection:Yn,rowKey:Un="key",rowClassName:kr,columns:Dr,children:Lr,childrenColumnName:$r,onChange:Zr,getPopupContainer:Gr,loading:to,expandIcon:uo,expandable:io,expandedRowRender:$o,expandIconColumnIndex:Do,indentSize:Co,scroll:To,sortDirections:co,locale:ho,showSorterTooltip:qr={target:"full-header"},virtual:Kr}=Se,so=(0,jr.ln)("Table"),mo=b.useMemo(()=>Dr||Jt(Lr),[Dr,Lr]),Oo=b.useMemo(()=>mo.some(Go=>Go.responsive),[mo]),_r=(0,ba.Z)(Oo),Qo=b.useMemo(()=>{const Go=new Set(Object.keys(_r).filter(aa=>_r[aa]));return mo.filter(aa=>!aa.responsive||aa.responsive.some(La=>Go.has(La)))},[mo,_r]),ta=(0,Vo.Z)(Se,["className","style","columns"]),{locale:za=Ha.Z,direction:Fa,table:wa,renderEmpty:Na,getPrefixCls:Ka,getPopupContainer:na}=b.useContext(Xo.E_),ra=(0,Ho.Z)(jn),Va=Object.assign(Object.assign({},za.Table),ho),qa=fr||vu,xo=Ka("table",en),zo=Ka("dropdown",xr),[,yo]=(0,Ei.ZP)(),lo=(0,Zo.Z)(xo),[la,ha,Ia]=Ds(xo,lo),Sa=Object.assign(Object.assign({childrenColumnName:$r,expandIconColumnIndex:Do},io),{expandIcon:(ht=io==null?void 0:io.expandIcon)!==null&&ht!==void 0?ht:(Rt=wa==null?void 0:wa.expandable)===null||Rt===void 0?void 0:Rt.expandIcon}),{childrenColumnName:Ua="children"}=Sa,ni=b.useMemo(()=>qa.some(Go=>Go==null?void 0:Go[Ua])?"nest":$o||io!=null&&io.expandedRowRender?"row":null,[qa]),Eo={body:b.useRef(null)},Mo=Lo(xo),pa=b.useRef(null),Ca=b.useRef(null);po(be,()=>Object.assign(Object.assign({},Ca.current),{nativeElement:pa.current}));const ya=b.useMemo(()=>typeof Un=="function"?Un:Go=>Go==null?void 0:Go[Un],[Un]),[li]=pn(qa,Ua,ya),Ga={},ji=function(Go,aa){let La=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Xa,pi,si,pl;const Bi=Object.assign(Object.assign({},Ga),Go);La&&((Xa=Ga.resetPagination)===null||Xa===void 0||Xa.call(Ga),!((pi=Bi.pagination)===null||pi===void 0)&&pi.current&&(Bi.pagination.current=1),sr&&((si=sr.onChange)===null||si===void 0||si.call(sr,1,(pl=Bi.pagination)===null||pl===void 0?void 0:pl.pageSize))),To&&To.scrollToFirstRowOnChange!==!1&&Eo.body.current&&(0,ko.Z)(0,{getContainer:()=>Eo.body.current}),Zr==null||Zr(Bi.pagination,Bi.filters,Bi.sorter,{currentDataSource:Uo(El(qa,Bi.sorterStates,Ua),Bi.filterStates,Ua),action:aa})},Ma=(Go,aa)=>{ji({sorter:Go,sorterStates:aa},"sort",!1)},[ca,Ea,Da,ri]=xs({prefixCls:xo,mergedColumns:Qo,onSorterChange:Ma,sortDirections:co||["ascend","descend"],tableLocale:Va,showSorterTooltip:qr}),ja=b.useMemo(()=>El(qa,Ea,Ua),[qa,Ea]);Ga.sorter=ri(),Ga.sorterStates=Ea;const da=(Go,aa)=>{ji({filters:Go,filterStates:aa},"filter",!0)},[Ta,ma,xi]=Aa({prefixCls:xo,locale:Va,dropdownPrefixCls:zo,mergedColumns:Qo,onFilterChange:da,getPopupContainer:Gr||na,rootClassName:Xe()(Pn,lo)}),_a=Uo(ja,ma,Ua);Ga.filters=xi,Ga.filterStates=ma;const Ri=b.useMemo(()=>{const Go={};return Object.keys(xi).forEach(aa=>{xi[aa]!==null&&(Go[aa]=xi[aa])}),Object.assign(Object.assign({},Da),{filters:Go})},[Da,xi]),[Wi]=ts(Ri),Cl=(Go,aa)=>{ji({pagination:Object.assign(Object.assign({},Ga.pagination),{current:Go,pageSize:aa})},"paginate")},[Oa,hs]=Mi(_a.length,Cl,sr);Ga.pagination=sr===!1?{}:Oi(Oa,sr),Ga.resetPagination=hs;const ki=b.useMemo(()=>{if(sr===!1||!Oa.pageSize)return _a;const{current:Go=1,total:aa,pageSize:La=nl}=Oa;return _a.length<aa?_a.length>La?_a.slice((Go-1)*La,Go*La):_a:_a.slice((Go-1)*La,Go*La)},[!!sr,_a,Oa==null?void 0:Oa.current,Oa==null?void 0:Oa.pageSize,Oa==null?void 0:Oa.total]),[il,Yi]=Qr({prefixCls:xo,data:_a,pageData:ki,getRowKey:ya,getRecordByKey:li,expandType:ni,childrenColumnName:Ua,locale:Va,getPopupContainer:Gr||na},Yn),$i=(Go,aa,La)=>{let Xa;return typeof kr=="function"?Xa=Xe()(kr(Go,aa,La)):Xa=Xe()(kr),Xe()({[`${xo}-row-selected`]:Yi.has(ya(Go,aa))},Xa)};Sa.__PARENT_RENDER_ICON__=Sa.expandIcon,Sa.expandIcon=Sa.expandIcon||uo||Io(Va),ni==="nest"&&Sa.expandIconColumnIndex===void 0?Sa.expandIconColumnIndex=Yn?1:0:Sa.expandIconColumnIndex>0&&Yn&&(Sa.expandIconColumnIndex-=1),typeof Sa.indentSize!="number"&&(Sa.indentSize=typeof Co=="number"?Co:15);const Ba=b.useCallback(Go=>Wi(il(Ta(ca(Go)))),[ca,Ta,il]);let Ji,Nl;if(sr!==!1&&(Oa!=null&&Oa.total)){let Go;Oa.size?Go=Oa.size:Go=ra==="small"||ra==="middle"?"small":void 0;const aa=pi=>b.createElement(xa.Z,Object.assign({},Oa,{className:Xe()(`${xo}-pagination ${xo}-pagination-${pi}`,Oa.className),size:Go})),La=Fa==="rtl"?"left":"right",{position:Xa}=Oa;if(Xa!==null&&Array.isArray(Xa)){const pi=Xa.find(Bi=>Bi.includes("top")),si=Xa.find(Bi=>Bi.includes("bottom")),pl=Xa.every(Bi=>`${Bi}`=="none");!pi&&!si&&!pl&&(Nl=aa(La)),pi&&(Ji=aa(pi.toLowerCase().replace("top",""))),si&&(Nl=aa(si.toLowerCase().replace("bottom","")))}else Nl=aa(La)}let xl;typeof to=="boolean"?xl={spinning:to}:typeof to=="object"&&(xl=Object.assign({spinning:!0},to));const Sl=Xe()(Ia,lo,`${xo}-wrapper`,wa==null?void 0:wa.className,{[`${xo}-wrapper-rtl`]:Fa==="rtl"},fn,Pn,ha),Os=Object.assign(Object.assign({},wa==null?void 0:wa.style),Dn),Bs=typeof(ho==null?void 0:ho.emptyText)!="undefined"?ho.emptyText:(Na==null?void 0:Na("Table"))||b.createElement(Ao.Z,{componentName:"Table"}),Is=Kr?Kl:Es,Ps={},js=b.useMemo(()=>{const{fontSize:Go,lineHeight:aa,lineWidth:La,padding:Xa,paddingXS:pi,paddingSM:si}=yo,pl=Math.floor(Go*aa);switch(ra){case"middle":return si*2+pl+La;case"small":return pi*2+pl+La;default:return Xa*2+pl+La}},[yo,ra]);return Kr&&(Ps.listItemHeight=js),la(b.createElement("div",{ref:pa,className:Sl,style:Os},b.createElement(ga.Z,Object.assign({spinning:!1},xl),Ji,b.createElement(Is,Object.assign({},Ps,ta,{ref:Ca,columns:Qo,direction:Fa,expandable:Sa,prefixCls:xo,className:Xe()({[`${xo}-middle`]:ra==="middle",[`${xo}-small`]:ra==="small",[`${xo}-bordered`]:Mn,[`${xo}-empty`]:qa.length===0},Ia,lo,ha),data:ki,rowKey:ya,rowClassName:$i,emptyText:Bs,internalHooks:fe,internalRefs:Eo,transformColumns:Ba,getContainerWidth:Mo})),Nl)))};var mu=b.forwardRef(pu);const Hs=(Se,be)=>{const ht=b.useRef(0);return ht.current+=1,b.createElement(mu,Object.assign({},Se,{ref:be,_renderTimes:ht.current}))},bl=b.forwardRef(Hs);bl.SELECTION_COLUMN=eo,bl.EXPAND_COLUMN=Pe,bl.SELECTION_ALL=vo,bl.SELECTION_INVERT=Fo,bl.SELECTION_NONE=Yo,bl.Column=mr,bl.ColumnGroup=Hn,bl.Summary=Fe;var zs=bl,gu=zs},96599:function(Kn,cn,z){"use strict";z.d(cn,{default:function(){return Xe}});var b=z(59301),Pe=z(92310),fe=z.n(Pe),rt=z(2738),xe=z(29509),ge=z(78776),Ee=z(22703),Qe=z(12919),Ae=z(48755),de=z(36237),tt=z(17835),ve=z(63356),Lt=z(51636),at=z(16931);const Ve=ue=>{const{paddingXXS:Nt,lineWidth:et,tagPaddingHorizontal:wt,componentCls:ln,calc:ke}=ue,he=ke(wt).sub(et).equal(),Ct=ke(Nt).sub(et).equal();return{[ln]:Object.assign(Object.assign({},(0,ve.Wf)(ue)),{display:"inline-block",height:"auto",marginInlineEnd:ue.marginXS,paddingInline:he,fontSize:ue.tagFontSize,lineHeight:ue.tagLineHeight,whiteSpace:"nowrap",background:ue.defaultBg,border:`${(0,de.unit)(ue.lineWidth)} ${ue.lineType} ${ue.colorBorder}`,borderRadius:ue.borderRadiusSM,opacity:1,transition:`all ${ue.motionDurationMid}`,textAlign:"start",position:"relative",[`&${ln}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:ue.defaultColor},[`${ln}-close-icon`]:{marginInlineStart:Ct,fontSize:ue.tagIconSize,color:ue.colorTextDescription,cursor:"pointer",transition:`all ${ue.motionDurationMid}`,"&:hover":{color:ue.colorTextHeading}},[`&${ln}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${ue.iconCls}-close, ${ue.iconCls}-close:hover`]:{color:ue.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${ln}-checkable-checked):hover`]:{color:ue.colorPrimary,backgroundColor:ue.colorFillSecondary},"&:active, &-checked":{color:ue.colorTextLightSolid},"&-checked":{backgroundColor:ue.colorPrimary,"&:hover":{backgroundColor:ue.colorPrimaryHover}},"&:active":{backgroundColor:ue.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${ue.iconCls} + span, > span + ${ue.iconCls}`]:{marginInlineStart:he}}),[`${ln}-borderless`]:{borderColor:"transparent",background:ue.tagBorderlessBg}}},Ne=ue=>{const{lineWidth:Nt,fontSizeIcon:et,calc:wt}=ue,ln=ue.fontSizeSM;return(0,Lt.mergeToken)(ue,{tagFontSize:ln,tagLineHeight:(0,de.unit)(wt(ue.lineHeightSM).mul(ln).equal()),tagIconSize:wt(et).sub(wt(Nt).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:ue.defaultBg})},Ze=ue=>({defaultBg:new tt.FastColor(ue.colorFillQuaternary).onBackground(ue.colorBgContainer).toHexString(),defaultColor:ue.colorText});var pt=(0,at.I$)("Tag",ue=>{const Nt=Ne(ue);return Ve(Nt)},Ze),mt=function(ue,Nt){var et={};for(var wt in ue)Object.prototype.hasOwnProperty.call(ue,wt)&&Nt.indexOf(wt)<0&&(et[wt]=ue[wt]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ln=0,wt=Object.getOwnPropertySymbols(ue);ln<wt.length;ln++)Nt.indexOf(wt[ln])<0&&Object.prototype.propertyIsEnumerable.call(ue,wt[ln])&&(et[wt[ln]]=ue[wt[ln]]);return et},He=b.forwardRef((ue,Nt)=>{const{prefixCls:et,style:wt,className:ln,checked:ke,onChange:he,onClick:Ct}=ue,Pt=mt(ue,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:Kt,tag:Ce}=b.useContext(Ae.E_),ot=gn=>{he==null||he(!ke),Ct==null||Ct(gn)},lt=Kt("tag",et),[Wt,ct,$t]=pt(lt),vt=fe()(lt,`${lt}-checkable`,{[`${lt}-checkable-checked`]:ke},Ce==null?void 0:Ce.className,ln,ct,$t);return Wt(b.createElement("span",Object.assign({},Pt,{ref:Nt,style:Object.assign(Object.assign({},wt),Ce==null?void 0:Ce.style),className:vt,onClick:ot})))}),Ke=z(93427);const ut=ue=>(0,Ke.Z)(ue,(Nt,et)=>{let{textColor:wt,lightBorderColor:ln,lightColor:ke,darkColor:he}=et;return{[`${ue.componentCls}${ue.componentCls}-${Nt}`]:{color:wt,background:ke,borderColor:ln,"&-inverse":{color:ue.colorTextLightSolid,background:he,borderColor:he},[`&${ue.componentCls}-borderless`]:{borderColor:"transparent"}}}});var ft=(0,at.bk)(["Tag","preset"],ue=>{const Nt=Ne(ue);return ut(Nt)},Ze);function jt(ue){return typeof ue!="string"?ue:ue.charAt(0).toUpperCase()+ue.slice(1)}const Ot=(ue,Nt,et)=>{const wt=jt(et);return{[`${ue.componentCls}${ue.componentCls}-${Nt}`]:{color:ue[`color${et}`],background:ue[`color${wt}Bg`],borderColor:ue[`color${wt}Border`],[`&${ue.componentCls}-borderless`]:{borderColor:"transparent"}}}};var yt=(0,at.bk)(["Tag","status"],ue=>{const Nt=Ne(ue);return[Ot(Nt,"success","Success"),Ot(Nt,"processing","Info"),Ot(Nt,"error","Error"),Ot(Nt,"warning","Warning")]},Ze),Et=function(ue,Nt){var et={};for(var wt in ue)Object.prototype.hasOwnProperty.call(ue,wt)&&Nt.indexOf(wt)<0&&(et[wt]=ue[wt]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ln=0,wt=Object.getOwnPropertySymbols(ue);ln<wt.length;ln++)Nt.indexOf(wt[ln])<0&&Object.prototype.propertyIsEnumerable.call(ue,wt[ln])&&(et[wt[ln]]=ue[wt[ln]]);return et};const Je=b.forwardRef((ue,Nt)=>{const{prefixCls:et,className:wt,rootClassName:ln,style:ke,children:he,icon:Ct,color:Pt,onClose:Kt,bordered:Ce=!0,visible:ot}=ue,lt=Et(ue,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:Wt,direction:ct,tag:$t}=b.useContext(Ae.E_),[vt,gn]=b.useState(!0),Tt=(0,rt.Z)(lt,["closeIcon","closable"]);b.useEffect(()=>{ot!==void 0&&gn(ot)},[ot]);const ie=(0,xe.o2)(Pt),ne=(0,xe.yT)(Pt),te=ie||ne,oe=Object.assign(Object.assign({backgroundColor:Pt&&!te?Pt:void 0},$t==null?void 0:$t.style),ke),se=Wt("tag",et),[re,le,me]=pt(se),Dt=fe()(se,$t==null?void 0:$t.className,{[`${se}-${Pt}`]:te,[`${se}-has-color`]:Pt&&!te,[`${se}-hidden`]:!vt,[`${se}-rtl`]:ct==="rtl",[`${se}-borderless`]:!Ce},wt,ln,le,me),Re=Be=>{Be.stopPropagation(),Kt==null||Kt(Be),!Be.defaultPrevented&&gn(!1)},[,Fe]=(0,ge.Z)((0,ge.w)(ue),(0,ge.w)($t),{closable:!1,closeIconRender:Be=>{const It=b.createElement("span",{className:`${se}-close-icon`,onClick:Re},Be);return(0,Ee.wm)(Be,It,Mt=>({onClick:kt=>{var Yt;(Yt=Mt==null?void 0:Mt.onClick)===null||Yt===void 0||Yt.call(Mt,kt),Re(kt)},className:fe()(Mt==null?void 0:Mt.className,`${se}-close-icon`)}))}}),qe=typeof lt.onClick=="function"||he&&he.type==="a",nt=Ct||null,st=nt?b.createElement(b.Fragment,null,nt,he&&b.createElement("span",null,he)):he,we=b.createElement("span",Object.assign({},Tt,{ref:Nt,className:Dt,style:oe}),st,Fe,ie&&b.createElement(ft,{key:"preset",prefixCls:se}),ne&&b.createElement(yt,{key:"status",prefixCls:se}));return re(qe?b.createElement(Qe.Z,{component:"Tag"},we):we)});Je.CheckableTag=He;var Xe=Je},53420:function(Kn,cn,z){"use strict";z.d(cn,{default:function(){return Tn}});var b=z(59301),Pe=z(92310),fe=z.n(Pe),rt=z(54476),xe=z(94480),ge=z(33885),Ee=z(42978),Qe=z(75931),Ae=z(76190),de=z(37463),tt=z(6551),ve=z(34643),Lt=z(18929),at=z(48736),Ve=function(_t){var Cn=b.useRef({valueLabels:new Map});return b.useMemo(function(){var Bn=Cn.current.valueLabels,Ln=new Map,Zn=_t.map(function(yr){var ur=yr.value,Jt=yr.label,wn=Jt!=null?Jt:Bn.get(ur);return Ln.set(ur,wn),(0,ge.Z)((0,ge.Z)({},yr),{},{label:wn})});return Cn.current.valueLabels=Ln,[Zn]},[_t])},Ne=function(Cn,Bn,Ln,Zn){return b.useMemo(function(){var yr=function(ze){return ze.map(function(gt){var $e=gt.value;return $e})},ur=yr(Cn),Jt=yr(Bn),wn=ur.filter(function(dt){return!Zn[dt]}),un=ur,sn=Jt;if(Ln){var We=(0,ve.S)(ur,!0,Zn);un=We.checkedKeys,sn=We.halfCheckedKeys}return[Array.from(new Set([].concat((0,xe.Z)(wn),(0,xe.Z)(un)))),sn]},[Cn,Bn,Ln,Zn])},Ze=Ne,pt=z(34061),mt=function(_t,Cn){return b.useMemo(function(){var Bn=(0,pt.I8)(_t,{fieldNames:Cn,initWrapper:function(Zn){return(0,ge.Z)((0,ge.Z)({},Zn),{},{valueEntities:new Map})},processEntity:function(Zn,yr){var ur=Zn.node[Cn.value];if(0)var Jt;yr.valueEntities.set(ur,Zn)}});return Bn},[_t,Cn])},Xt=z(20068),He=z(11592),Ke=function(){return null},ut=Ke,ft=["children","value"];function jt(_t){return(0,He.Z)(_t).map(function(Cn){if(!b.isValidElement(Cn)||!Cn.type)return null;var Bn=Cn,Ln=Bn.key,Zn=Bn.props,yr=Zn.children,ur=Zn.value,Jt=(0,Qe.Z)(Zn,ft),wn=(0,ge.Z)({key:Ln,value:ur},Jt),un=jt(yr);return un.length&&(wn.children=un),wn}).filter(function(Cn){return Cn})}function Ot(_t){if(!_t)return _t;var Cn=(0,ge.Z)({},_t);return"props"in Cn||Object.defineProperty(Cn,"props",{get:function(){return(0,at.ZP)(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),Cn}}),Cn}function yt(_t,Cn,Bn,Ln,Zn,yr){var ur=null,Jt=null;function wn(){function un(sn){var We=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",dt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return sn.map(function(ze,gt){var $e="".concat(We,"-").concat(gt),St=ze[yr.value],Oe=Bn.includes(St),Ft=un(ze[yr.children]||[],$e,Oe),Zt=b.createElement(ut,ze,Ft.map(function(Te){return Te.node}));if(Cn===St&&(ur=Zt),Oe){var De={pos:$e,node:Zt,children:Ft};return dt||Jt.push(De),De}return null}).filter(function(ze){return ze})}Jt||(Jt=[],un(Ln),Jt.sort(function(sn,We){var dt=sn.node.props.value,ze=We.node.props.value,gt=Bn.indexOf(dt),$e=Bn.indexOf(ze);return gt-$e}))}Object.defineProperty(_t,"triggerNode",{get:function(){return(0,at.ZP)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),wn(),ur}}),Object.defineProperty(_t,"allCheckedNodes",{get:function(){return(0,at.ZP)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),wn(),Zn?Jt:Jt.map(function(sn){var We=sn.node;return We})}})}var Et=function(Cn,Bn,Ln){var Zn=Ln.fieldNames,yr=Ln.treeNodeFilterProp,ur=Ln.filterTreeNode,Jt=Zn.children;return b.useMemo(function(){if(!Bn||ur===!1)return Cn;var wn=typeof ur=="function"?ur:function(sn,We){return String(We[yr]).toUpperCase().includes(Bn.toUpperCase())},un=function sn(We){var dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return We.reduce(function(ze,gt){var $e=gt[Jt],St=dt||wn(Bn,Ot(gt)),Oe=sn($e||[],St);return(St||Oe.length)&&ze.push((0,ge.Z)((0,ge.Z)({},gt),{},(0,Xt.Z)({isLeaf:void 0},Jt,Oe))),ze},[])};return un(Cn)},[Cn,Bn,Jt,yr,ur])},pe=Et;function Je(_t){var Cn=b.useRef();Cn.current=_t;var Bn=b.useCallback(function(){return Cn.current.apply(Cn,arguments)},[]);return Bn}function Xe(_t,Cn){var Bn=Cn.id,Ln=Cn.pId,Zn=Cn.rootPId,yr=new Map,ur=[];return _t.forEach(function(Jt){var wn=Jt[Bn],un=(0,ge.Z)((0,ge.Z)({},Jt),{},{key:Jt.key||wn});yr.set(wn,un)}),yr.forEach(function(Jt){var wn=Jt[Ln],un=yr.get(wn);un?(un.children=un.children||[],un.children.push(Jt)):(wn===Zn||Zn===null)&&ur.push(Jt)}),ur}function ue(_t,Cn,Bn){return b.useMemo(function(){if(_t){if(Bn){var Ln=(0,ge.Z)({id:"id",pId:"pId",rootPId:null},(0,Ae.Z)(Bn)==="object"?Bn:{});return Xe(_t,Ln)}return _t}return jt(Cn)},[Cn,Bn,_t])}var Nt=b.createContext(null),et=Nt,wt=z(19251),ln=z(3741),ke=z(10228),he=z(80547),Ct=b.createContext(null),Pt=Ct,Kt=function(Cn){return Array.isArray(Cn)?Cn:Cn!==void 0?[Cn]:[]},Ce=function(Cn){var Bn=Cn||{},Ln=Bn.label,Zn=Bn.value,yr=Bn.children;return{_title:Ln?[Ln]:["title","label"],value:Zn||"value",key:Zn||"value",children:yr||"children"}},ot=function(Cn){return!Cn||Cn.disabled||Cn.disableCheckbox||Cn.checkable===!1},lt=function(Cn,Bn){var Ln=[],Zn=function yr(ur){ur.forEach(function(Jt){var wn=Jt[Bn.children];wn&&(Ln.push(Jt[Bn.value]),yr(wn))})};return Zn(Cn),Ln},Wt=function(Cn){return Cn==null},ct=z(70425),$t={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},vt=function(Cn,Bn){var Ln=(0,de.lk)(),Zn=Ln.prefixCls,yr=Ln.multiple,ur=Ln.searchValue,Jt=Ln.toggleOpen,wn=Ln.open,un=Ln.notFoundContent,sn=b.useContext(Pt),We=sn.virtual,dt=sn.listHeight,ze=sn.listItemHeight,gt=sn.listItemScrollOffset,$e=sn.treeData,St=sn.fieldNames,Oe=sn.onSelect,Ft=sn.dropdownMatchSelectWidth,Zt=sn.treeExpandAction,De=sn.treeTitleRender,Te=sn.onPopupScroll,Me=sn.leftMaxCount,je=sn.leafCountOnly,it=sn.valueEntities,an=b.useContext(et),dn=an.checkable,hn=an.checkedKeys,$n=an.halfCheckedKeys,ar=an.treeExpandedKeys,Cr=an.treeDefaultExpandAll,qn=an.treeDefaultExpandedKeys,Gn=an.onTreeExpand,Jn=an.treeIcon,gr=an.showTreeIcon,Ge=an.switcherIcon,bt=an.treeLine,Vt=an.treeNodeFilterProp,Ht=an.loadData,tn=an.treeLoadedKeys,An=an.treeMotion,Vn=an.onTreeLoad,tr=an.keyEntities,Nn=b.useRef(),or=(0,he.Z)(function(){return $e},[wn,$e],function(Yr,Xr){return Xr[0]&&Yr[1]!==Xr[1]}),cr=b.useMemo(function(){return dn?{checked:hn,halfChecked:$n}:null},[dn,hn,$n]);b.useEffect(function(){if(wn&&!yr&&hn.length){var Yr;(Yr=Nn.current)===null||Yr===void 0||Yr.scrollTo({key:hn[0]})}},[wn]);var nr=function(Xr){Xr.preventDefault()},hr=function(Xr,eo){var vo=eo.node;dn&&ot(vo)||(Oe(vo.key,{selected:!hn.includes(vo.key)}),yr||Jt(!1))},lr=b.useState(qn),Er=(0,Ee.Z)(lr,2),Ir=Er[0],zr=Er[1],Pr=b.useState(null),Or=(0,Ee.Z)(Pr,2),Sr=Or[0],Tr=Or[1],br=b.useMemo(function(){return ar?(0,xe.Z)(ar):ur?Sr:Ir},[Ir,Sr,ar,ur]),wr=function(Xr){zr(Xr),Tr(Xr),Gn&&Gn(Xr)},_n=String(ur).toLowerCase(),In=function(Xr){return _n?String(Xr[Vt]).toLowerCase().includes(_n):!1};b.useEffect(function(){ur&&Tr(lt($e,St))},[ur]);var er=b.useState(function(){return new Map}),Rn=(0,Ee.Z)(er,2),bn=Rn[0],ir=Rn[1];b.useEffect(function(){Me&&ir(new Map)},[Me]);function mr(Yr){var Xr=Yr[St.value];if(!bn.has(Xr)){var eo=it.get(Xr),vo=(eo.children||[]).length===0;if(vo)bn.set(Xr,!1);else{var Fo=eo.children.filter(function(Bo){return!Bo.node.disabled&&!Bo.node.disableCheckbox&&!hn.includes(Bo.node[St.value])}),Yo=Fo.length;bn.set(Xr,Yo>Me)}}return bn.get(Xr)}var On=(0,ct.zX)(function(Yr){var Xr=Yr[St.value];return hn.includes(Xr)||Me===null?!1:Me<=0?!0:je&&Me?mr(Yr):!1}),Hn=function Yr(Xr){var eo=(0,wt.Z)(Xr),vo;try{for(eo.s();!(vo=eo.n()).done;){var Fo=vo.value;if(!(Fo.disabled||Fo.selectable===!1)){if(ur){if(In(Fo))return Fo}else return Fo;if(Fo[St.children]){var Yo=Yr(Fo[St.children]);if(Yo)return Yo}}}}catch(Bo){eo.e(Bo)}finally{eo.f()}return null},Xn=b.useState(null),vr=(0,Ee.Z)(Xn,2),Ar=vr[0],Fr=vr[1],Rr=tr[Ar];b.useEffect(function(){if(wn){var Yr=null,Xr=function(){var vo=Hn(or);return vo?vo[St.value]:null};!yr&&hn.length&&!ur?Yr=hn[0]:Yr=Xr(),Fr(Yr)}},[wn,ur]),b.useImperativeHandle(Bn,function(){var Yr;return{scrollTo:(Yr=Nn.current)===null||Yr===void 0?void 0:Yr.scrollTo,onKeyDown:function(eo){var vo,Fo=eo.which;switch(Fo){case ke.Z.UP:case ke.Z.DOWN:case ke.Z.LEFT:case ke.Z.RIGHT:(vo=Nn.current)===null||vo===void 0||vo.onKeyDown(eo);break;case ke.Z.ENTER:{if(Rr){var Yo=On(Rr.node),Bo=(Rr==null?void 0:Rr.node)||{},Ko=Bo.selectable,Jr=Bo.value,Qr=Bo.disabled;Ko!==!1&&!Qr&&!Yo&&hr(null,{node:{key:Ar},selected:!hn.includes(Jr)})}break}case ke.Z.ESC:Jt(!1)}},onKeyUp:function(){}}});var Ur=(0,he.Z)(function(){return!ur},[ur,ar||Ir],function(Yr,Xr){var eo=(0,Ee.Z)(Yr,1),vo=eo[0],Fo=(0,Ee.Z)(Xr,2),Yo=Fo[0],Bo=Fo[1];return vo!==Yo&&!!(Yo||Bo)}),jr=Ur?Ht:null;if(or.length===0)return b.createElement("div",{role:"listbox",className:"".concat(Zn,"-empty"),onMouseDown:nr},un);var ro={fieldNames:St};return tn&&(ro.loadedKeys=tn),br&&(ro.expandedKeys=br),b.createElement("div",{onMouseDown:nr},Rr&&wn&&b.createElement("span",{style:$t,"aria-live":"assertive"},Rr.node.value),b.createElement(ln.y6.Provider,{value:{nodeDisabled:On}},b.createElement(ln.ZP,(0,rt.Z)({ref:Nn,focusable:!1,prefixCls:"".concat(Zn,"-tree"),treeData:or,height:dt,itemHeight:ze,itemScrollOffset:gt,virtual:We!==!1&&Ft!==!1,multiple:yr,icon:Jn,showIcon:gr,switcherIcon:Ge,showLine:bt,loadData:jr,motion:An,activeKey:Ar,checkable:dn,checkStrictly:!0,checkedKeys:cr,selectedKeys:dn?[]:hn,defaultExpandAll:Cr,titleRender:De},ro,{onActiveChange:Fr,onSelect:hr,onCheck:hr,onExpand:wr,onLoad:Vn,filterTreeNode:In,expandAction:Zt,onScroll:Te}))))},gn=b.forwardRef(vt),Tt=gn,ie="SHOW_ALL",ne="SHOW_PARENT",te="SHOW_CHILD";function oe(_t,Cn,Bn,Ln){var Zn=new Set(_t);return Cn===te?_t.filter(function(yr){var ur=Bn[yr];return!ur||!ur.children||!ur.children.some(function(Jt){var wn=Jt.node;return Zn.has(wn[Ln.value])})||!ur.children.every(function(Jt){var wn=Jt.node;return ot(wn)||Zn.has(wn[Ln.value])})}):Cn===ne?_t.filter(function(yr){var ur=Bn[yr],Jt=ur?ur.parent:null;return!Jt||ot(Jt.node)||!Zn.has(Jt.key)}):_t}function se(_t){var Cn=_t.searchPlaceholder,Bn=_t.treeCheckStrictly,Ln=_t.treeCheckable,Zn=_t.labelInValue,yr=_t.value,ur=_t.multiple,Jt=_t.showCheckedStrategy,wn=_t.maxCount;warning(!Cn,"`searchPlaceholder` has been removed."),Bn&&Zn===!1&&warning(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(Zn||Bn)&&warning(toArray(yr).every(function(un){return un&&_typeof(un)==="object"&&"value"in un}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),Bn||ur||Ln?warning(!yr||Array.isArray(yr),"`value` should be an array when `TreeSelect` is checkable or multiple."):warning(!Array.isArray(yr),"`value` should not be array when `TreeSelect` is single mode."),wn&&(Jt==="SHOW_ALL"&&!Bn||Jt==="SHOW_PARENT")&&warning(!1,"`maxCount` not work with `showCheckedStrategy=SHOW_ALL` (when `treeCheckStrictly=false`) or `showCheckedStrategy=SHOW_PARENT`.")}var re=null,le=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","maxCount","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","listItemScrollOffset","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion","treeTitleRender","onPopupScroll"];function me(_t){return!_t||(0,Ae.Z)(_t)!=="object"}var Dt=b.forwardRef(function(_t,Cn){var Bn=_t.id,Ln=_t.prefixCls,Zn=Ln===void 0?"rc-tree-select":Ln,yr=_t.value,ur=_t.defaultValue,Jt=_t.onChange,wn=_t.onSelect,un=_t.onDeselect,sn=_t.searchValue,We=_t.inputValue,dt=_t.onSearch,ze=_t.autoClearSearchValue,gt=ze===void 0?!0:ze,$e=_t.filterTreeNode,St=_t.treeNodeFilterProp,Oe=St===void 0?"value":St,Ft=_t.showCheckedStrategy,Zt=_t.treeNodeLabelProp,De=_t.multiple,Te=_t.treeCheckable,Me=_t.treeCheckStrictly,je=_t.labelInValue,it=_t.maxCount,an=_t.fieldNames,dn=_t.treeDataSimpleMode,hn=_t.treeData,$n=_t.children,ar=_t.loadData,Cr=_t.treeLoadedKeys,qn=_t.onTreeLoad,Gn=_t.treeDefaultExpandAll,Jn=_t.treeExpandedKeys,gr=_t.treeDefaultExpandedKeys,Ge=_t.onTreeExpand,bt=_t.treeExpandAction,Vt=_t.virtual,Ht=_t.listHeight,tn=Ht===void 0?200:Ht,An=_t.listItemHeight,Vn=An===void 0?20:An,tr=_t.listItemScrollOffset,Nn=tr===void 0?0:tr,or=_t.onDropdownVisibleChange,cr=_t.dropdownMatchSelectWidth,nr=cr===void 0?!0:cr,hr=_t.treeLine,lr=_t.treeIcon,Er=_t.showTreeIcon,Ir=_t.switcherIcon,zr=_t.treeMotion,Pr=_t.treeTitleRender,Or=_t.onPopupScroll,Sr=(0,Qe.Z)(_t,le),Tr=(0,tt.ZP)(Bn),br=Te&&!Me,wr=Te||Me,_n=Me||je,In=wr||De,er=(0,Lt.Z)(ur,{value:yr}),Rn=(0,Ee.Z)(er,2),bn=Rn[0],ir=Rn[1],mr=b.useMemo(function(){return Te?Ft||te:ie},[Ft,Te]),On=b.useMemo(function(){return Ce(an)},[JSON.stringify(an)]),Hn=(0,Lt.Z)("",{value:sn!==void 0?sn:We,postState:function(Hr){return Hr||""}}),Xn=(0,Ee.Z)(Hn,2),vr=Xn[0],Ar=Xn[1],Fr=function(Hr){Ar(Hr),dt==null||dt(Hr)},Rr=ue(hn,$n,dn),Ur=mt(Rr,On),jr=Ur.keyEntities,ro=Ur.valueEntities,Yr=b.useCallback(function(Wr){var Hr=[],no=[];return Wr.forEach(function(bo){ro.has(bo)?no.push(bo):Hr.push(bo)}),{missingRawValues:Hr,existRawValues:no}},[ro]),Xr=pe(Rr,vr,{fieldNames:On,treeNodeFilterProp:Oe,filterTreeNode:$e}),eo=b.useCallback(function(Wr){if(Wr){if(Zt)return Wr[Zt];for(var Hr=On._title,no=0;no<Hr.length;no+=1){var bo=Wr[Hr[no]];if(bo!==void 0)return bo}}},[On,Zt]),vo=b.useCallback(function(Wr){var Hr=Kt(Wr);return Hr.map(function(no){return me(no)?{value:no}:no})},[]),Fo=b.useCallback(function(Wr){var Hr=vo(Wr);return Hr.map(function(no){var bo=no.label,ua=no.value,qo=no.halfChecked,wo,Po=ro.get(ua);if(Po){var ia;bo=Pr?Pr(Po.node):(ia=bo)!==null&&ia!==void 0?ia:eo(Po.node),wo=Po.node.disabled}else if(bo===void 0){var Ja=vo(bn).find(function(Wa){return Wa.value===ua});bo=Ja.label}return{label:bo,value:ua,halfChecked:qo,disabled:wo}})},[ro,eo,vo,bn]),Yo=b.useMemo(function(){return vo(bn===null?[]:bn)},[vo,bn]),Bo=b.useMemo(function(){var Wr=[],Hr=[];return Yo.forEach(function(no){no.halfChecked?Hr.push(no):Wr.push(no)}),[Wr,Hr]},[Yo]),Ko=(0,Ee.Z)(Bo,2),Jr=Ko[0],Qr=Ko[1],Vo=b.useMemo(function(){return Jr.map(function(Wr){return Wr.value})},[Jr]),Wo=Ze(Jr,Qr,br,jr),po=(0,Ee.Z)(Wo,2),ko=po[0],Xo=po[1],Ao=b.useMemo(function(){var Wr=oe(ko,mr,jr,On),Hr=Wr.map(function(qo){var wo,Po;return(wo=(Po=jr[qo])===null||Po===void 0||(Po=Po.node)===null||Po===void 0?void 0:Po[On.value])!==null&&wo!==void 0?wo:qo}),no=Hr.map(function(qo){var wo=Jr.find(function(ia){return ia.value===qo}),Po=je?wo==null?void 0:wo.label:Pr==null?void 0:Pr(wo);return{value:qo,label:Po}}),bo=Fo(no),ua=bo[0];return!In&&ua&&Wt(ua.value)&&Wt(ua.label)?[]:bo.map(function(qo){var wo;return(0,ge.Z)((0,ge.Z)({},qo),{},{label:(wo=qo.label)!==null&&wo!==void 0?wo:qo.value})})},[On,In,ko,Jr,Fo,mr,jr]),Zo=Ve(Ao),Ho=(0,Ee.Z)(Zo,1),ba=Ho[0],Ha=b.useMemo(function(){return In&&(mr==="SHOW_CHILD"||Me||!Te)?it:null},[it,In,Me,mr,Te]),xa=Je(function(Wr,Hr,no){var bo=oe(Wr,mr,jr,On);if(!(Ha&&bo.length>Ha)){var ua=Fo(Wr);if(ir(ua),gt&&Ar(""),Jt){var qo=Wr;br&&(qo=bo.map(function(di){var yi=ro.get(di);return yi?yi.node[On.value]:di}));var wo=Hr||{triggerValue:void 0,selected:void 0},Po=wo.triggerValue,ia=wo.selected,Ja=qo;if(Me){var Wa=Qr.filter(function(di){return!qo.includes(di.value)});Ja=[].concat((0,xe.Z)(Ja),(0,xe.Z)(Wa))}var ci=Fo(Ja),ai={preValue:Jr,triggerValue:Po},$a=!0;(Me||no==="selection"&&!ia)&&($a=!1),yt(ai,Po,Wr,Rr,$a,On),wr?ai.checked=ia:ai.selected=ia;var Di=_n?ci:ci.map(function(di){return di.value});Jt(In?Di:Di[0],_n?null:ci.map(function(di){return di.label}),ai)}}}),ga=b.useCallback(function(Wr,Hr){var no,bo=Hr.selected,ua=Hr.source,qo=jr[Wr],wo=qo==null?void 0:qo.node,Po=(no=wo==null?void 0:wo[On.value])!==null&&no!==void 0?no:Wr;if(!In)xa([Po],{selected:!0,triggerValue:Po},"option");else{var ia=bo?[].concat((0,xe.Z)(Vo),[Po]):ko.filter(function(yi){return yi!==Po});if(br){var Ja=Yr(ia),Wa=Ja.missingRawValues,ci=Ja.existRawValues,ai=ci.map(function(yi){return ro.get(yi).key}),$a;if(bo){var Di=(0,ve.S)(ai,!0,jr);$a=Di.checkedKeys}else{var di=(0,ve.S)(ai,{checked:!1,halfCheckedKeys:Xo},jr);$a=di.checkedKeys}ia=[].concat((0,xe.Z)(Wa),(0,xe.Z)($a.map(function(yi){return jr[yi].node[On.value]})))}xa(ia,{selected:bo,triggerValue:Po},ua||"option")}bo||!In?wn==null||wn(Po,Ot(wo)):un==null||un(Po,Ot(wo))},[Yr,ro,jr,On,In,Vo,xa,br,wn,un,ko,Xo,it]),Ei=b.useCallback(function(Wr){if(or){var Hr={};Object.defineProperty(Hr,"documentClickClose",{get:function(){return(0,at.ZP)(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),or(Wr,Hr)}},[or]),wi=Je(function(Wr,Hr){var no=Wr.map(function(bo){return bo.value});if(Hr.type==="clear"){xa(no,{},"selection");return}Hr.values.length&&ga(Hr.values[0].value,{selected:!1,source:"selection"})}),Io=b.useMemo(function(){return{virtual:Vt,dropdownMatchSelectWidth:nr,listHeight:tn,listItemHeight:Vn,listItemScrollOffset:Nn,treeData:Xr,fieldNames:On,onSelect:ga,treeExpandAction:bt,treeTitleRender:Pr,onPopupScroll:Or,leftMaxCount:it===void 0?null:it-ba.length,leafCountOnly:mr==="SHOW_CHILD"&&!Me&&!!Te,valueEntities:ro}},[Vt,nr,tn,Vn,Nn,Xr,On,ga,bt,Pr,Or,it,ba.length,mr,Me,Te,ro]),Lo=b.useMemo(function(){return{checkable:wr,loadData:ar,treeLoadedKeys:Cr,onTreeLoad:qn,checkedKeys:ko,halfCheckedKeys:Xo,treeDefaultExpandAll:Gn,treeExpandedKeys:Jn,treeDefaultExpandedKeys:gr,onTreeExpand:Ge,treeIcon:lr,treeMotion:zr,showTreeIcon:Er,switcherIcon:Ir,treeLine:hr,treeNodeFilterProp:Oe,keyEntities:jr}},[wr,ar,Cr,qn,ko,Xo,Gn,Jn,gr,Ge,lr,zr,Er,Ir,hr,Oe,jr]);return b.createElement(Pt.Provider,{value:Io},b.createElement(et.Provider,{value:Lo},b.createElement(de.Ac,(0,rt.Z)({ref:Cn},Sr,{id:Tr,prefixCls:Zn,mode:In?"multiple":void 0,displayValues:ba,onDisplayValuesChange:wi,searchValue:vr,onSearch:Fr,OptionList:Tt,emptyOptions:!Rr.length,onDropdownVisibleChange:Ei,dropdownMatchSelectWidth:nr}))))}),Re=Dt;Re.TreeNode=ut,Re.SHOW_ALL=ie,Re.SHOW_PARENT=ne,Re.SHOW_CHILD=te;var Fe=Re,qe=Fe,nt=z(2738),st=z(75030),we=z(86641),Be=z(45915),It=z(82855),Mt=z(48755),kt=z(38406),Yt=z(2171),At=z(83397),vn=z(31756),Gt=z(56553),_e=z(24971),Bt=z(1722),Ut=z(90376),on=z(68525),Le=z(90005),xt=z(70045),zt=z(57700),nn=z(85278),Sn=z(36237),zn=z(36170),rr=z(51636),pr=z(16931),kn=z(12425);const dr=_t=>{const{componentCls:Cn,treePrefixCls:Bn,colorBgElevated:Ln}=_t,Zn=`.${Bn}`;return[{[`${Cn}-dropdown`]:[{padding:`${(0,Sn.unit)(_t.paddingXS)} ${(0,Sn.unit)(_t.calc(_t.paddingXS).div(2).equal())}`},(0,kn.Yk)(Bn,(0,rr.mergeToken)(_t,{colorBgContainer:Ln}),!1),{[Zn]:{borderRadius:0,[`${Zn}-list-holder-inner`]:{alignItems:"stretch",[`${Zn}-treenode`]:{[`${Zn}-node-content-wrapper`]:{flex:"auto"}}}}},(0,zn.C2)(`${Bn}-checkbox`,_t),{"&-rtl":{direction:"rtl",[`${Zn}-switcher${Zn}-switcher_close`]:{[`${Zn}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]},Ye=null;function Qt(_t,Cn,Bn){return(0,pr.I$)("TreeSelect",Ln=>{const Zn=(0,rr.mergeToken)(Ln,{treePrefixCls:Cn});return[dr(Zn)]},kn.TM)(_t,Bn)}var yn=function(_t,Cn){var Bn={};for(var Ln in _t)Object.prototype.hasOwnProperty.call(_t,Ln)&&Cn.indexOf(Ln)<0&&(Bn[Ln]=_t[Ln]);if(_t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Zn=0,Ln=Object.getOwnPropertySymbols(_t);Zn<Ln.length;Zn++)Cn.indexOf(Ln[Zn])<0&&Object.prototype.propertyIsEnumerable.call(_t,Ln[Zn])&&(Bn[Ln[Zn]]=_t[Ln[Zn]]);return Bn};const xn=(_t,Cn)=>{var Bn;const{prefixCls:Ln,size:Zn,disabled:yr,bordered:ur=!0,className:Jt,rootClassName:wn,treeCheckable:un,multiple:sn,listHeight:We=256,listItemHeight:dt,placement:ze,notFoundContent:gt,switcherIcon:$e,treeLine:St,getPopupContainer:Oe,popupClassName:Ft,dropdownClassName:Zt,treeIcon:De=!1,transitionName:Te,choiceTransitionName:Me="",status:je,treeExpandAction:it,builtinPlacements:an,dropdownMatchSelectWidth:dn,popupMatchSelectWidth:hn,allowClear:$n,variant:ar,dropdownStyle:Cr,tagRender:qn,maxCount:Gn,showCheckedStrategy:Jn,treeCheckStrictly:gr}=_t,Ge=yn(_t,["prefixCls","size","disabled","bordered","className","rootClassName","treeCheckable","multiple","listHeight","listItemHeight","placement","notFoundContent","switcherIcon","treeLine","getPopupContainer","popupClassName","dropdownClassName","treeIcon","transitionName","choiceTransitionName","status","treeExpandAction","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","allowClear","variant","dropdownStyle","tagRender","maxCount","showCheckedStrategy","treeCheckStrictly"]),{getPopupContainer:bt,getPrefixCls:Vt,renderEmpty:Ht,direction:tn,virtual:An,popupMatchSelectWidth:Vn,popupOverflow:tr}=b.useContext(Mt.E_),[,Nn]=(0,zt.ZP)(),or=dt!=null?dt:(Nn==null?void 0:Nn.controlHeightSM)+(Nn==null?void 0:Nn.paddingXXS),cr=Vt(),nr=Vt("select",Ln),hr=Vt("select-tree",Ln),lr=Vt("tree-select",Ln),{compactSize:Er,compactItemClassnames:Ir}=(0,xt.ri)(nr,tn),zr=(0,At.Z)(nr),Pr=(0,At.Z)(lr),[Or,Sr,Tr]=(0,Ut.Z)(nr,zr),[br]=Qt(lr,hr,Pr),[wr,_n]=(0,_e.Z)("treeSelect",ar,ur),In=fe()(Ft||Zt,`${lr}-dropdown`,{[`${lr}-dropdown-rtl`]:tn==="rtl"},wn,Tr,zr,Pr,Sr),er=!!(un||sn),Rn=b.useMemo(()=>{if(!(Gn&&(Jn==="SHOW_ALL"&&!gr||Jn==="SHOW_PARENT")))return Gn},[Gn,Jn,gr]),bn=(0,Le.Z)(_t.suffixIcon,_t.showArrow),ir=(Bn=hn!=null?hn:dn)!==null&&Bn!==void 0?Bn:Vn,{status:mr,hasFeedback:On,isFormItemInput:Hn,feedbackIcon:Xn}=b.useContext(Gt.aM),vr=(0,It.F)(mr,je),{suffixIcon:Ar,removeIcon:Fr,clearIcon:Rr}=(0,on.Z)(Object.assign(Object.assign({},Ge),{multiple:er,showSuffixIcon:bn,hasFeedback:On,feedbackIcon:Xn,prefixCls:nr,componentName:"TreeSelect"})),Ur=$n===!0?{clearIcon:Rr}:$n;let jr;gt!==void 0?jr=gt:jr=(Ht==null?void 0:Ht("Select"))||b.createElement(kt.Z,{componentName:"Select"});const ro=(0,nt.Z)(Ge,["suffixIcon","removeIcon","clearIcon","itemIcon","switcherIcon"]),Yr=b.useMemo(()=>ze!==void 0?ze:tn==="rtl"?"bottomRight":"bottomLeft",[ze,tn]),Xr=(0,vn.Z)(Jr=>{var Qr;return(Qr=Zn!=null?Zn:Er)!==null&&Qr!==void 0?Qr:Jr}),eo=b.useContext(Yt.Z),vo=yr!=null?yr:eo,Fo=fe()(!Ln&&lr,{[`${nr}-lg`]:Xr==="large",[`${nr}-sm`]:Xr==="small",[`${nr}-rtl`]:tn==="rtl",[`${nr}-${wr}`]:_n,[`${nr}-in-form-item`]:Hn},(0,It.Z)(nr,vr,On),Ir,Jt,wn,Tr,zr,Pr,Sr),Yo=Jr=>b.createElement(nn.Z,{prefixCls:hr,switcherIcon:$e,treeNodeProps:Jr,showLine:St}),[Bo]=(0,st.Cn)("SelectLike",Cr==null?void 0:Cr.zIndex),Ko=b.createElement(qe,Object.assign({virtual:An,disabled:vo},ro,{dropdownMatchSelectWidth:ir,builtinPlacements:(0,Bt.Z)(an,tr),ref:Cn,prefixCls:nr,className:Fo,listHeight:We,listItemHeight:or,treeCheckable:un&&b.createElement("span",{className:`${nr}-tree-checkbox-inner`}),treeLine:!!St,suffixIcon:Ar,multiple:er,placement:Yr,removeIcon:Fr,allowClear:Ur,switcherIcon:Yo,showTreeIcon:De,notFoundContent:jr,getPopupContainer:Oe||bt,treeMotion:null,dropdownClassName:In,dropdownStyle:Object.assign(Object.assign({},Cr),{zIndex:Bo}),choiceTransitionName:(0,we.m)(cr,"",Me),transitionName:(0,we.m)(cr,"slide-up",Te),treeExpandAction:it,tagRender:er?qn:void 0,maxCount:Rn,showCheckedStrategy:Jn,treeCheckStrictly:gr}));return Or(br(Ko))},En=b.forwardRef(xn),Fn=(0,Be.Z)(En,"dropdownAlign",_t=>(0,nt.Z)(_t,["visible"]));En.TreeNode=ut,En.SHOW_ALL=ie,En.SHOW_PARENT=ne,En.SHOW_CHILD=te,En._InternalPanelDoNotUseOrYouWillBeFired=Fn;var Tn=En},18287:function(Kn,cn,z){"use strict";z.d(cn,{default:function(){return Kt}});var b=z(3741),Pe=z(94480),fe=z(59301),rt=z(52671),xe=z(8657),ge=z(54476),Ee={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},Qe=Ee,Ae=z(7657),de=function(ot,lt){return fe.createElement(Ae.Z,(0,ge.Z)({},ot,{ref:lt,icon:Qe}))},tt=fe.forwardRef(de),ve=tt,Lt=z(92310),at=z.n(Lt),Ve=z(82661),Ne=z(34061),Ze=z(48755),pt=z(56082),mt=z(86641),Xt=z(57700),He=z(12425);const Ke=4;function ut(Ce){const{dropPosition:ot,dropLevelOffset:lt,prefixCls:Wt,indent:ct,direction:$t="ltr"}=Ce,vt=$t==="ltr"?"left":"right",gn=$t==="ltr"?"right":"left",Tt={[vt]:-lt*ct+Ke,[gn]:0};switch(ot){case-1:Tt.top=-3;break;case 1:Tt.bottom=-3;break;default:Tt.bottom=-3,Tt[vt]=ct+Ke;break}return fe.createElement("div",{style:Tt,className:`${Wt}-drop-indicator`})}var ft=ut,jt=z(85278),yt=fe.forwardRef((Ce,ot)=>{var lt;const{getPrefixCls:Wt,direction:ct,virtual:$t,tree:vt}=fe.useContext(Ze.E_),{prefixCls:gn,className:Tt,showIcon:ie=!1,showLine:ne,switcherIcon:te,switcherLoadingIcon:oe,blockNode:se=!1,children:re,checkable:le=!1,selectable:me=!0,draggable:Dt,motion:Re,style:Fe}=Ce,qe=Wt("tree",gn),nt=Wt(),st=Re!=null?Re:Object.assign(Object.assign({},(0,mt.Z)(nt)),{motionAppear:!1}),we=Object.assign(Object.assign({},Ce),{checkable:le,selectable:me,showIcon:ie,motion:st,blockNode:se,showLine:!!ne,dropIndicatorRender:ft}),[Be,It,Mt]=(0,He.ZP)(qe),[,kt]=(0,Xt.ZP)(),Yt=kt.paddingXS/2+(((lt=kt.Tree)===null||lt===void 0?void 0:lt.titleHeight)||kt.controlHeightSM),At=fe.useMemo(()=>{if(!Dt)return!1;let Gt={};switch(typeof Dt){case"function":Gt.nodeDraggable=Dt;break;case"object":Gt=Object.assign({},Dt);break;default:break}return Gt.icon!==!1&&(Gt.icon=Gt.icon||fe.createElement(pt.Z,null)),Gt},[Dt]),vn=Gt=>fe.createElement(jt.Z,{prefixCls:qe,switcherIcon:te,switcherLoadingIcon:oe,treeNodeProps:Gt,showLine:ne});return Be(fe.createElement(b.ZP,Object.assign({itemHeight:Yt,ref:ot,virtual:$t},we,{style:Object.assign(Object.assign({},vt==null?void 0:vt.style),Fe),prefixCls:qe,className:at()({[`${qe}-icon-hide`]:!ie,[`${qe}-block-node`]:se,[`${qe}-unselectable`]:!me,[`${qe}-rtl`]:ct==="rtl"},vt==null?void 0:vt.className,Tt,It,Mt),direction:ct,checkable:le&&fe.createElement("span",{className:`${qe}-checkbox-inner`}),selectable:me,switcherIcon:vn,draggable:At}),re))});const Et=0,pe=1,Je=2;function Xe(Ce,ot,lt){const{key:Wt,children:ct}=lt;function $t(vt){const gn=vt[Wt],Tt=vt[ct];ot(gn,vt)!==!1&&Xe(Tt||[],ot,lt)}Ce.forEach($t)}function ue(Ce){let{treeData:ot,expandedKeys:lt,startKey:Wt,endKey:ct,fieldNames:$t}=Ce;const vt=[];let gn=Et;if(Wt&&Wt===ct)return[Wt];if(!Wt||!ct)return[];function Tt(ie){return ie===Wt||ie===ct}return Xe(ot,ie=>{if(gn===Je)return!1;if(Tt(ie)){if(vt.push(ie),gn===Et)gn=pe;else if(gn===pe)return gn=Je,!1}else gn===pe&&vt.push(ie);return lt.includes(ie)},(0,Ne.w$)($t)),vt}function Nt(Ce,ot,lt){const Wt=(0,Pe.Z)(ot),ct=[];return Xe(Ce,($t,vt)=>{const gn=Wt.indexOf($t);return gn!==-1&&(ct.push(vt),Wt.splice(gn,1)),!!Wt.length},(0,Ne.w$)(lt)),ct}var et=function(Ce,ot){var lt={};for(var Wt in Ce)Object.prototype.hasOwnProperty.call(Ce,Wt)&&ot.indexOf(Wt)<0&&(lt[Wt]=Ce[Wt]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,Wt=Object.getOwnPropertySymbols(Ce);ct<Wt.length;ct++)ot.indexOf(Wt[ct])<0&&Object.prototype.propertyIsEnumerable.call(Ce,Wt[ct])&&(lt[Wt[ct]]=Ce[Wt[ct]]);return lt};function wt(Ce){const{isLeaf:ot,expanded:lt}=Ce;return ot?fe.createElement(rt.Z,null):lt?fe.createElement(xe.Z,null):fe.createElement(ve,null)}function ln(Ce){let{treeData:ot,children:lt}=Ce;return ot||(0,Ne.zn)(lt)}const ke=(Ce,ot)=>{var{defaultExpandAll:lt,defaultExpandParent:Wt,defaultExpandedKeys:ct}=Ce,$t=et(Ce,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const vt=fe.useRef(null),gn=fe.useRef(null),Tt=()=>{const{keyEntities:Be}=(0,Ne.I8)(ln($t));let It;return lt?It=Object.keys(Be):Wt?It=(0,Ve.r7)($t.expandedKeys||ct||[],Be):It=$t.expandedKeys||ct||[],It},[ie,ne]=fe.useState($t.selectedKeys||$t.defaultSelectedKeys||[]),[te,oe]=fe.useState(()=>Tt());fe.useEffect(()=>{"selectedKeys"in $t&&ne($t.selectedKeys)},[$t.selectedKeys]),fe.useEffect(()=>{"expandedKeys"in $t&&oe($t.expandedKeys)},[$t.expandedKeys]);const se=(Be,It)=>{var Mt;return"expandedKeys"in $t||oe(Be),(Mt=$t.onExpand)===null||Mt===void 0?void 0:Mt.call($t,Be,It)},re=(Be,It)=>{var Mt;const{multiple:kt,fieldNames:Yt}=$t,{node:At,nativeEvent:vn}=It,{key:Gt=""}=At,_e=ln($t),Bt=Object.assign(Object.assign({},It),{selected:!0}),Ut=(vn==null?void 0:vn.ctrlKey)||(vn==null?void 0:vn.metaKey),on=vn==null?void 0:vn.shiftKey;let Le;kt&&Ut?(Le=Be,vt.current=Gt,gn.current=Le,Bt.selectedNodes=Nt(_e,Le,Yt)):kt&&on?(Le=Array.from(new Set([].concat((0,Pe.Z)(gn.current||[]),(0,Pe.Z)(ue({treeData:_e,expandedKeys:te,startKey:Gt,endKey:vt.current,fieldNames:Yt}))))),Bt.selectedNodes=Nt(_e,Le,Yt)):(Le=[Gt],vt.current=Gt,gn.current=Le,Bt.selectedNodes=Nt(_e,Le,Yt)),(Mt=$t.onSelect)===null||Mt===void 0||Mt.call($t,Le,Bt),"selectedKeys"in $t||ne(Le)},{getPrefixCls:le,direction:me}=fe.useContext(Ze.E_),{prefixCls:Dt,className:Re,showIcon:Fe=!0,expandAction:qe="click"}=$t,nt=et($t,["prefixCls","className","showIcon","expandAction"]),st=le("tree",Dt),we=at()(`${st}-directory`,{[`${st}-directory-rtl`]:me==="rtl"},Re);return fe.createElement(yt,Object.assign({icon:wt,ref:ot,blockNode:!0},nt,{showIcon:Fe,expandAction:qe,prefixCls:st,className:we,expandedKeys:te,selectedKeys:ie,onSelect:re,onExpand:se}))};var Ct=fe.forwardRef(ke);const Pt=yt;Pt.DirectoryTree=Ct,Pt.TreeNode=b.OF;var Kt=Pt},12425:function(Kn,cn,z){"use strict";z.d(cn,{ZP:function(){return Ve},Yk:function(){return ve},TM:function(){return Lt}});var b=z(36237),Pe=z(36170),fe=z(63356),rt=z(34961),xe=z(51636),ge=z(16931);const Ee=Ne=>{let{treeCls:Ze,treeNodeCls:pt,directoryNodeSelectedBg:mt,directoryNodeSelectedColor:Xt,motionDurationMid:He,borderRadius:Ke,controlItemBgHover:ut}=Ne;return{[`${Ze}${Ze}-directory ${pt}`]:{[`${Ze}-node-content-wrapper`]:{position:"static",[`> *:not(${Ze}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${He}`,content:'""',borderRadius:Ke},"&:hover:before":{background:ut}},[`${Ze}-switcher, ${Ze}-checkbox, ${Ze}-draggable-icon`]:{zIndex:1},"&-selected":{[`${Ze}-switcher, ${Ze}-draggable-icon`]:{color:Xt},[`${Ze}-node-content-wrapper`]:{color:Xt,background:"transparent","&:before, &:hover:before":{background:mt}}}}}},Qe=new b.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),Ae=(Ne,Ze)=>({[`.${Ne}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${Ze.motionDurationSlow}`}}}),de=(Ne,Ze)=>({[`.${Ne}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:Ze.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${(0,b.unit)(Ze.lineWidthBold)} solid ${Ze.colorPrimary}`,borderRadius:"50%",content:'""'}}}),tt=(Ne,Ze)=>{const{treeCls:pt,treeNodeCls:mt,treeNodePadding:Xt,titleHeight:He,indentSize:Ke,nodeSelectedBg:ut,nodeHoverBg:ft,colorTextQuaternary:jt,controlItemBgActiveDisabled:Ot}=Ze;return{[pt]:Object.assign(Object.assign({},(0,fe.Wf)(Ze)),{background:Ze.colorBgContainer,borderRadius:Ze.borderRadius,transition:`background-color ${Ze.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${pt}-rtl ${pt}-switcher_close ${pt}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${pt}-active-focused)`]:Object.assign({},(0,fe.oN)(Ze)),[`${pt}-list-holder-inner`]:{alignItems:"flex-start"},[`&${pt}-block-node`]:{[`${pt}-list-holder-inner`]:{alignItems:"stretch",[`${pt}-node-content-wrapper`]:{flex:"auto"},[`${mt}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${Ze.colorPrimary}`,opacity:0,animationName:Qe,animationDuration:Ze.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:Ze.borderRadius}}},[mt]:{display:"flex",alignItems:"flex-start",marginBottom:Xt,lineHeight:(0,b.unit)(He),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:Xt},[`&-disabled ${pt}-node-content-wrapper`]:{color:Ze.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${pt}-checkbox-disabled + ${pt}-node-selected,&${mt}-disabled${mt}-selected ${pt}-node-content-wrapper`]:{backgroundColor:Ot},[`${pt}-checkbox-disabled`]:{pointerEvents:"unset"},[`&:not(${mt}-disabled)`]:{[`${pt}-node-content-wrapper`]:{"&:hover":{color:Ze.nodeHoverColor}}},[`&-active ${pt}-node-content-wrapper`]:{background:Ze.controlItemBgHover},[`&:not(${mt}-disabled).filter-node ${pt}-title`]:{color:Ze.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",[`${pt}-draggable-icon`]:{flexShrink:0,width:He,textAlign:"center",visibility:"visible",color:jt},[`&${mt}-disabled ${pt}-draggable-icon`]:{visibility:"hidden"}}},[`${pt}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:Ke}},[`${pt}-draggable-icon`]:{visibility:"hidden"},[`${pt}-switcher, ${pt}-checkbox`]:{marginInlineEnd:Ze.calc(Ze.calc(He).sub(Ze.controlInteractiveSize)).div(2).equal()},[`${pt}-switcher`]:Object.assign(Object.assign({},Ae(Ne,Ze)),{position:"relative",flex:"none",alignSelf:"stretch",width:He,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${Ze.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:He,height:He,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:Ze.borderRadius,transition:`all ${Ze.motionDurationSlow}`},[`&:not(${pt}-switcher-noop):hover:before`]:{backgroundColor:Ze.colorBgTextHover},[`&_close ${pt}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:Ze.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:Ze.calc(He).div(2).equal(),bottom:Ze.calc(Xt).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${Ze.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:Ze.calc(Ze.calc(He).div(2).equal()).mul(.8).equal(),height:Ze.calc(He).div(2).equal(),borderBottom:`1px solid ${Ze.colorBorder}`,content:'""'}}}),[`${pt}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:He,paddingBlock:0,paddingInline:Ze.paddingXS,background:"transparent",borderRadius:Ze.borderRadius,cursor:"pointer",transition:`all ${Ze.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},de(Ne,Ze)),{"&:hover":{backgroundColor:ft},[`&${pt}-node-selected`]:{color:Ze.nodeSelectedColor,backgroundColor:ut},[`${pt}-iconEle`]:{display:"inline-block",width:He,height:He,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${pt}-unselectable ${pt}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${mt}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${Ze.colorPrimary}`},"&-show-line":{[`${pt}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:Ze.calc(He).div(2).equal(),bottom:Ze.calc(Xt).mul(-1).equal(),borderInlineEnd:`1px solid ${Ze.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${pt}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${mt}-leaf-last ${pt}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${(0,b.unit)(Ze.calc(He).div(2).equal())} !important`}})}},ve=function(Ne,Ze){let pt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const mt=`.${Ne}`,Xt=`${mt}-treenode`,He=Ze.calc(Ze.paddingXS).div(2).equal(),Ke=(0,xe.mergeToken)(Ze,{treeCls:mt,treeNodeCls:Xt,treeNodePadding:He});return[tt(Ne,Ke),pt&&Ee(Ke)].filter(Boolean)},Lt=Ne=>{const{controlHeightSM:Ze,controlItemBgHover:pt,controlItemBgActive:mt}=Ne,Xt=Ze;return{titleHeight:Xt,indentSize:Xt,nodeHoverBg:pt,nodeHoverColor:Ne.colorText,nodeSelectedBg:mt,nodeSelectedColor:Ne.colorText}},at=Ne=>{const{colorTextLightSolid:Ze,colorPrimary:pt}=Ne;return Object.assign(Object.assign({},Lt(Ne)),{directoryNodeSelectedColor:Ze,directoryNodeSelectedBg:pt})};var Ve=(0,ge.I$)("Tree",(Ne,Ze)=>{let{prefixCls:pt}=Ze;return[{[Ne.componentCls]:(0,Pe.C2)(`${pt}-checkbox`,Ne)},ve(pt,Ne),(0,rt.Z)(Ne)]},at)},85278:function(Kn,cn,z){"use strict";z.d(cn,{Z:function(){return Ze}});var b=z(59301),Pe=z(54476),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"},rt=fe,xe=z(7657),ge=function(mt,Xt){return b.createElement(xe.Z,(0,Pe.Z)({},mt,{ref:Xt,icon:rt}))},Ee=b.forwardRef(ge),Qe=Ee,Ae=z(52671),de=z(58617),tt=z(15075),ve=z(43531),Lt=z(92310),at=z.n(Lt),Ve=z(22703),Ze=pt=>{const{prefixCls:mt,switcherIcon:Xt,treeNodeProps:He,showLine:Ke,switcherLoadingIcon:ut}=pt,{isLeaf:ft,expanded:jt,loading:Ot}=He;if(Ot)return b.isValidElement(ut)?ut:b.createElement(de.Z,{className:`${mt}-switcher-loading-icon`});let yt;if(Ke&&typeof Ke=="object"&&(yt=Ke.showLeafIcon),ft){if(!Ke)return null;if(typeof yt!="boolean"&&yt){const Je=typeof yt=="function"?yt(He):yt,Xe=`${mt}-switcher-line-custom-icon`;return b.isValidElement(Je)?(0,Ve.Tm)(Je,{className:at()(Je.props.className||"",Xe)}):Je}return yt?b.createElement(Ae.Z,{className:`${mt}-switcher-line-icon`}):b.createElement("span",{className:`${mt}-switcher-leaf-line`})}const Et=`${mt}-switcher-icon`,pe=typeof Xt=="function"?Xt(He):Xt;return b.isValidElement(pe)?(0,Ve.Tm)(pe,{className:at()(pe.props.className||"",Et)}):pe!==void 0?pe:Ke?jt?b.createElement(tt.Z,{className:`${mt}-switcher-line-icon`}):b.createElement(ve.Z,{className:`${mt}-switcher-line-icon`}):b.createElement(Qe,{className:Et})}},94968:function(Kn,cn,z){"use strict";z.d(cn,{default:function(){return St}});var b=z(59301),Pe=z(94480),fe=z(4676),rt=z(92310),xe=z.n(rt),ge=z(54476),Ee=z(67732),Qe=z(83652),Ae=z(31226),de=z(42403),tt=z(158),ve=z(20068),Lt=z(33885),at=z(75931),Ve=z(76190),Ne=z(75044),Ze=z(3202),pt=z(26112),mt=z(48736),Xt=function(Oe,Ft){if(Oe&&Ft){var Zt=Array.isArray(Ft)?Ft:Ft.split(","),De=Oe.name||"",Te=Oe.type||"",Me=Te.replace(/\/.*$/,"");return Zt.some(function(je){var it=je.trim();if(/^\*(\/\*)?$/.test(je))return!0;if(it.charAt(0)==="."){var an=De.toLowerCase(),dn=it.toLowerCase(),hn=[dn];return(dn===".jpg"||dn===".jpeg")&&(hn=[".jpg",".jpeg"]),hn.some(function($n){return an.endsWith($n)})}return/\/\*$/.test(it)?Me===it.replace(/\/.*$/,""):Te===it?!0:/^\w+$/.test(it)?((0,mt.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(it,"'.Skip for check.")),!0):!1})}return!0};function He(Oe,Ft){var Zt="cannot ".concat(Oe.method," ").concat(Oe.action," ").concat(Ft.status,"'"),De=new Error(Zt);return De.status=Ft.status,De.method=Oe.method,De.url=Oe.action,De}function Ke(Oe){var Ft=Oe.responseText||Oe.response;if(!Ft)return Ft;try{return JSON.parse(Ft)}catch(Zt){return Ft}}function ut(Oe){var Ft=new XMLHttpRequest;Oe.onProgress&&Ft.upload&&(Ft.upload.onprogress=function(Me){Me.total>0&&(Me.percent=Me.loaded/Me.total*100),Oe.onProgress(Me)});var Zt=new FormData;Oe.data&&Object.keys(Oe.data).forEach(function(Te){var Me=Oe.data[Te];if(Array.isArray(Me)){Me.forEach(function(je){Zt.append("".concat(Te,"[]"),je)});return}Zt.append(Te,Me)}),Oe.file instanceof Blob?Zt.append(Oe.filename,Oe.file,Oe.file.name):Zt.append(Oe.filename,Oe.file),Ft.onerror=function(Me){Oe.onError(Me)},Ft.onload=function(){return Ft.status<200||Ft.status>=300?Oe.onError(He(Oe,Ft),Ke(Ft)):Oe.onSuccess(Ke(Ft),Ft)},Ft.open(Oe.method,Oe.action,!0),Oe.withCredentials&&"withCredentials"in Ft&&(Ft.withCredentials=!0);var De=Oe.headers||{};return De["X-Requested-With"]!==null&&Ft.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(De).forEach(function(Te){De[Te]!==null&&Ft.setRequestHeader(Te,De[Te])}),Ft.send(Zt),{abort:function(){Ft.abort()}}}var ft=function(){var Oe=(0,Ze.Z)((0,Ne.Z)().mark(function Ft(Zt,De){var Te,Me,je,it,an,dn,hn,$n;return(0,Ne.Z)().wrap(function(Cr){for(;;)switch(Cr.prev=Cr.next){case 0:dn=function(){return dn=(0,Ze.Z)((0,Ne.Z)().mark(function Gn(Jn){return(0,Ne.Z)().wrap(function(Ge){for(;;)switch(Ge.prev=Ge.next){case 0:return Ge.abrupt("return",new Promise(function(bt){Jn.file(function(Vt){De(Vt)?(Jn.fullPath&&!Vt.webkitRelativePath&&(Object.defineProperties(Vt,{webkitRelativePath:{writable:!0}}),Vt.webkitRelativePath=Jn.fullPath.replace(/^\//,""),Object.defineProperties(Vt,{webkitRelativePath:{writable:!1}})),bt(Vt)):bt(null)})}));case 1:case"end":return Ge.stop()}},Gn)})),dn.apply(this,arguments)},an=function(Gn){return dn.apply(this,arguments)},it=function(){return it=(0,Ze.Z)((0,Ne.Z)().mark(function Gn(Jn){var gr,Ge,bt,Vt,Ht;return(0,Ne.Z)().wrap(function(An){for(;;)switch(An.prev=An.next){case 0:gr=Jn.createReader(),Ge=[];case 2:return An.next=5,new Promise(function(Vn){gr.readEntries(Vn,function(){return Vn([])})});case 5:if(bt=An.sent,Vt=bt.length,Vt){An.next=9;break}return An.abrupt("break",12);case 9:for(Ht=0;Ht<Vt;Ht++)Ge.push(bt[Ht]);An.next=2;break;case 12:return An.abrupt("return",Ge);case 13:case"end":return An.stop()}},Gn)})),it.apply(this,arguments)},je=function(Gn){return it.apply(this,arguments)},Te=[],Me=[],Zt.forEach(function(qn){return Me.push(qn.webkitGetAsEntry())}),hn=function(){var qn=(0,Ze.Z)((0,Ne.Z)().mark(function Gn(Jn,gr){var Ge,bt;return(0,Ne.Z)().wrap(function(Ht){for(;;)switch(Ht.prev=Ht.next){case 0:if(Jn){Ht.next=2;break}return Ht.abrupt("return");case 2:if(Jn.path=gr||"",!Jn.isFile){Ht.next=10;break}return Ht.next=6,an(Jn);case 6:Ge=Ht.sent,Ge&&Te.push(Ge),Ht.next=15;break;case 10:if(!Jn.isDirectory){Ht.next=15;break}return Ht.next=13,je(Jn);case 13:bt=Ht.sent,Me.push.apply(Me,(0,Pe.Z)(bt));case 15:case"end":return Ht.stop()}},Gn)}));return function(Jn,gr){return qn.apply(this,arguments)}}(),$n=0;case 9:if(!($n<Me.length)){Cr.next=15;break}return Cr.next=12,hn(Me[$n]);case 12:$n++,Cr.next=9;break;case 15:return Cr.abrupt("return",Te);case 16:case"end":return Cr.stop()}},Ft)}));return function(Zt,De){return Oe.apply(this,arguments)}}(),jt=ft,Ot=+new Date,yt=0;function Et(){return"rc-upload-".concat(Ot,"-").concat(++yt)}var pe=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],Je=function(Oe){(0,de.Z)(Zt,Oe);var Ft=(0,tt.Z)(Zt);function Zt(){var De;(0,Ee.Z)(this,Zt);for(var Te=arguments.length,Me=new Array(Te),je=0;je<Te;je++)Me[je]=arguments[je];return De=Ft.call.apply(Ft,[this].concat(Me)),(0,ve.Z)((0,Ae.Z)(De),"state",{uid:Et()}),(0,ve.Z)((0,Ae.Z)(De),"reqs",{}),(0,ve.Z)((0,Ae.Z)(De),"fileInput",void 0),(0,ve.Z)((0,Ae.Z)(De),"_isMounted",void 0),(0,ve.Z)((0,Ae.Z)(De),"onChange",function(it){var an=De.props,dn=an.accept,hn=an.directory,$n=it.target.files,ar=(0,Pe.Z)($n).filter(function(Cr){return!hn||Xt(Cr,dn)});De.uploadFiles(ar),De.reset()}),(0,ve.Z)((0,Ae.Z)(De),"onClick",function(it){var an=De.fileInput;if(an){var dn=it.target,hn=De.props.onClick;if(dn&&dn.tagName==="BUTTON"){var $n=an.parentNode;$n.focus(),dn.blur()}an.click(),hn&&hn(it)}}),(0,ve.Z)((0,Ae.Z)(De),"onKeyDown",function(it){it.key==="Enter"&&De.onClick(it)}),(0,ve.Z)((0,Ae.Z)(De),"onFileDrop",function(){var it=(0,Ze.Z)((0,Ne.Z)().mark(function an(dn){var hn,$n,ar;return(0,Ne.Z)().wrap(function(qn){for(;;)switch(qn.prev=qn.next){case 0:if(hn=De.props.multiple,dn.preventDefault(),dn.type!=="dragover"){qn.next=4;break}return qn.abrupt("return");case 4:if(!De.props.directory){qn.next=11;break}return qn.next=7,jt(Array.prototype.slice.call(dn.dataTransfer.items),function(Gn){return Xt(Gn,De.props.accept)});case 7:$n=qn.sent,De.uploadFiles($n),qn.next=14;break;case 11:ar=(0,Pe.Z)(dn.dataTransfer.files).filter(function(Gn){return Xt(Gn,De.props.accept)}),hn===!1&&(ar=ar.slice(0,1)),De.uploadFiles(ar);case 14:case"end":return qn.stop()}},an)}));return function(an){return it.apply(this,arguments)}}()),(0,ve.Z)((0,Ae.Z)(De),"uploadFiles",function(it){var an=(0,Pe.Z)(it),dn=an.map(function(hn){return hn.uid=Et(),De.processFile(hn,an)});Promise.all(dn).then(function(hn){var $n=De.props.onBatchStart;$n==null||$n(hn.map(function(ar){var Cr=ar.origin,qn=ar.parsedFile;return{file:Cr,parsedFile:qn}})),hn.filter(function(ar){return ar.parsedFile!==null}).forEach(function(ar){De.post(ar)})})}),(0,ve.Z)((0,Ae.Z)(De),"processFile",function(){var it=(0,Ze.Z)((0,Ne.Z)().mark(function an(dn,hn){var $n,ar,Cr,qn,Gn,Jn,gr,Ge,bt;return(0,Ne.Z)().wrap(function(Ht){for(;;)switch(Ht.prev=Ht.next){case 0:if($n=De.props.beforeUpload,ar=dn,!$n){Ht.next=14;break}return Ht.prev=3,Ht.next=6,$n(dn,hn);case 6:ar=Ht.sent,Ht.next=12;break;case 9:Ht.prev=9,Ht.t0=Ht.catch(3),ar=!1;case 12:if(ar!==!1){Ht.next=14;break}return Ht.abrupt("return",{origin:dn,parsedFile:null,action:null,data:null});case 14:if(Cr=De.props.action,typeof Cr!="function"){Ht.next=21;break}return Ht.next=18,Cr(dn);case 18:qn=Ht.sent,Ht.next=22;break;case 21:qn=Cr;case 22:if(Gn=De.props.data,typeof Gn!="function"){Ht.next=29;break}return Ht.next=26,Gn(dn);case 26:Jn=Ht.sent,Ht.next=30;break;case 29:Jn=Gn;case 30:return gr=((0,Ve.Z)(ar)==="object"||typeof ar=="string")&&ar?ar:dn,gr instanceof File?Ge=gr:Ge=new File([gr],dn.name,{type:dn.type}),bt=Ge,bt.uid=dn.uid,Ht.abrupt("return",{origin:dn,data:Jn,parsedFile:bt,action:qn});case 35:case"end":return Ht.stop()}},an,null,[[3,9]])}));return function(an,dn){return it.apply(this,arguments)}}()),(0,ve.Z)((0,Ae.Z)(De),"saveFileInput",function(it){De.fileInput=it}),De}return(0,Qe.Z)(Zt,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(Te){var Me=this,je=Te.data,it=Te.origin,an=Te.action,dn=Te.parsedFile;if(this._isMounted){var hn=this.props,$n=hn.onStart,ar=hn.customRequest,Cr=hn.name,qn=hn.headers,Gn=hn.withCredentials,Jn=hn.method,gr=it.uid,Ge=ar||ut,bt={action:an,filename:Cr,data:je,file:dn,headers:qn,withCredentials:Gn,method:Jn||"post",onProgress:function(Ht){var tn=Me.props.onProgress;tn==null||tn(Ht,dn)},onSuccess:function(Ht,tn){var An=Me.props.onSuccess;An==null||An(Ht,dn,tn),delete Me.reqs[gr]},onError:function(Ht,tn){var An=Me.props.onError;An==null||An(Ht,tn,dn),delete Me.reqs[gr]}};$n(it),this.reqs[gr]=Ge(bt)}}},{key:"reset",value:function(){this.setState({uid:Et()})}},{key:"abort",value:function(Te){var Me=this.reqs;if(Te){var je=Te.uid?Te.uid:Te;Me[je]&&Me[je].abort&&Me[je].abort(),delete Me[je]}else Object.keys(Me).forEach(function(it){Me[it]&&Me[it].abort&&Me[it].abort(),delete Me[it]})}},{key:"render",value:function(){var Te=this.props,Me=Te.component,je=Te.prefixCls,it=Te.className,an=Te.classNames,dn=an===void 0?{}:an,hn=Te.disabled,$n=Te.id,ar=Te.name,Cr=Te.style,qn=Te.styles,Gn=qn===void 0?{}:qn,Jn=Te.multiple,gr=Te.accept,Ge=Te.capture,bt=Te.children,Vt=Te.directory,Ht=Te.openFileDialogOnClick,tn=Te.onMouseEnter,An=Te.onMouseLeave,Vn=Te.hasControlInside,tr=(0,at.Z)(Te,pe),Nn=xe()((0,ve.Z)((0,ve.Z)((0,ve.Z)({},je,!0),"".concat(je,"-disabled"),hn),it,it)),or=Vt?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},cr=hn?{}:{onClick:Ht?this.onClick:function(){},onKeyDown:Ht?this.onKeyDown:function(){},onMouseEnter:tn,onMouseLeave:An,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:Vn?void 0:"0"};return b.createElement(Me,(0,ge.Z)({},cr,{className:Nn,role:Vn?void 0:"button",style:Cr}),b.createElement("input",(0,ge.Z)({},(0,pt.Z)(tr,{aria:!0,data:!0}),{id:$n,name:ar,disabled:hn,type:"file",ref:this.saveFileInput,onClick:function(hr){return hr.stopPropagation()},key:this.state.uid,style:(0,Lt.Z)({display:"none"},Gn.input),className:dn.input,accept:gr},or,{multiple:Jn,onChange:this.onChange},Ge!=null?{capture:Ge}:{})),bt)}}]),Zt}(b.Component),Xe=Je;function ue(){}var Nt=function(Oe){(0,de.Z)(Zt,Oe);var Ft=(0,tt.Z)(Zt);function Zt(){var De;(0,Ee.Z)(this,Zt);for(var Te=arguments.length,Me=new Array(Te),je=0;je<Te;je++)Me[je]=arguments[je];return De=Ft.call.apply(Ft,[this].concat(Me)),(0,ve.Z)((0,Ae.Z)(De),"uploader",void 0),(0,ve.Z)((0,Ae.Z)(De),"saveUploader",function(it){De.uploader=it}),De}return(0,Qe.Z)(Zt,[{key:"abort",value:function(Te){this.uploader.abort(Te)}},{key:"render",value:function(){return b.createElement(Xe,(0,ge.Z)({},this.props,{ref:this.saveUploader}))}}]),Zt}(b.Component);(0,ve.Z)(Nt,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:ue,onError:ue,onSuccess:ue,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});var et=Nt,wt=et,ln=z(18929),ke=z(48755),he=z(2171),Ct=z(9017),Pt=z(85981),Kt=z(63356),Ce=z(34961),ot=z(16931),lt=z(51636),Wt=z(36237),$t=Oe=>{const{componentCls:Ft,iconCls:Zt}=Oe;return{[`${Ft}-wrapper`]:{[`${Ft}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:Oe.colorFillAlter,border:`${(0,Wt.unit)(Oe.lineWidth)} dashed ${Oe.colorBorder}`,borderRadius:Oe.borderRadiusLG,cursor:"pointer",transition:`border-color ${Oe.motionDurationSlow}`,[Ft]:{padding:Oe.padding},[`${Ft}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:Oe.borderRadiusLG,"&:focus-visible":{outline:`${(0,Wt.unit)(Oe.lineWidthFocus)} solid ${Oe.colorPrimaryBorder}`}},[`${Ft}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`
|
|
|
&:not(${Ft}-disabled):hover,
|
|
|
&-hover:not(${Ft}-disabled)
|
|
|
`]:{borderColor:Oe.colorPrimaryHover},[`p${Ft}-drag-icon`]:{marginBottom:Oe.margin,[Zt]:{color:Oe.colorPrimary,fontSize:Oe.uploadThumbnailSize}},[`p${Ft}-text`]:{margin:`0 0 ${(0,Wt.unit)(Oe.marginXXS)}`,color:Oe.colorTextHeading,fontSize:Oe.fontSizeLG},[`p${Ft}-hint`]:{color:Oe.colorTextDescription,fontSize:Oe.fontSize},[`&${Ft}-disabled`]:{[`p${Ft}-drag-icon ${Zt},
|
|
|
p${Ft}-text,
|
|
|
p${Ft}-hint
|
|
|
`]:{color:Oe.colorTextDisabled}}}}}},gn=Oe=>{const{componentCls:Ft,iconCls:Zt,fontSize:De,lineHeight:Te,calc:Me}=Oe,je=`${Ft}-list-item`,it=`${je}-actions`,an=`${je}-action`;return{[`${Ft}-wrapper`]:{[`${Ft}-list`]:Object.assign(Object.assign({},(0,Kt.dF)()),{lineHeight:Oe.lineHeight,[je]:{position:"relative",height:Me(Oe.lineHeight).mul(De).equal(),marginTop:Oe.marginXS,fontSize:De,display:"flex",alignItems:"center",transition:`background-color ${Oe.motionDurationSlow}`,borderRadius:Oe.borderRadiusSM,"&:hover":{backgroundColor:Oe.controlItemBgHover},[`${je}-name`]:Object.assign(Object.assign({},Kt.vS),{padding:`0 ${(0,Wt.unit)(Oe.paddingXS)}`,lineHeight:Te,flex:"auto",transition:`all ${Oe.motionDurationSlow}`}),[it]:{whiteSpace:"nowrap",[an]:{opacity:0},[Zt]:{color:Oe.actionsColor,transition:`all ${Oe.motionDurationSlow}`},[`
|
|
|
${an}:focus-visible,
|
|
|
&.picture ${an}
|
|
|
`]:{opacity:1}},[`${Ft}-icon ${Zt}`]:{color:Oe.colorTextDescription,fontSize:De},[`${je}-progress`]:{position:"absolute",bottom:Oe.calc(Oe.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:Me(De).add(Oe.paddingXS).equal(),fontSize:De,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${je}:hover ${an}`]:{opacity:1},[`${je}-error`]:{color:Oe.colorError,[`${je}-name, ${Ft}-icon ${Zt}`]:{color:Oe.colorError},[it]:{[`${Zt}, ${Zt}:hover`]:{color:Oe.colorError},[an]:{opacity:1}}},[`${Ft}-list-item-container`]:{transition:`opacity ${Oe.motionDurationSlow}, height ${Oe.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Tt=z(99495),ne=Oe=>{const{componentCls:Ft}=Oe,Zt=new Wt.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:Oe.calc(Oe.marginXS).div(-2).equal()}}),De=new Wt.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:Oe.calc(Oe.marginXS).div(-2).equal()}}),Te=`${Ft}-animate-inline`;return[{[`${Ft}-wrapper`]:{[`${Te}-appear, ${Te}-enter, ${Te}-leave`]:{animationDuration:Oe.motionDurationSlow,animationTimingFunction:Oe.motionEaseInOutCirc,animationFillMode:"forwards"},[`${Te}-appear, ${Te}-enter`]:{animationName:Zt},[`${Te}-leave`]:{animationName:De}}},{[`${Ft}-wrapper`]:(0,Tt.J$)(Oe)},Zt,De]},te=z(68361);const oe=Oe=>{const{componentCls:Ft,iconCls:Zt,uploadThumbnailSize:De,uploadProgressOffset:Te,calc:Me}=Oe,je=`${Ft}-list`,it=`${je}-item`;return{[`${Ft}-wrapper`]:{[`
|
|
|
${je}${je}-picture,
|
|
|
${je}${je}-picture-card,
|
|
|
${je}${je}-picture-circle
|
|
|
`]:{[it]:{position:"relative",height:Me(De).add(Me(Oe.lineWidth).mul(2)).add(Me(Oe.paddingXS).mul(2)).equal(),padding:Oe.paddingXS,border:`${(0,Wt.unit)(Oe.lineWidth)} ${Oe.lineType} ${Oe.colorBorder}`,borderRadius:Oe.borderRadiusLG,"&:hover":{background:"transparent"},[`${it}-thumbnail`]:Object.assign(Object.assign({},Kt.vS),{width:De,height:De,lineHeight:(0,Wt.unit)(Me(De).add(Oe.paddingSM).equal()),textAlign:"center",flex:"none",[Zt]:{fontSize:Oe.fontSizeHeading2,color:Oe.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${it}-progress`]:{bottom:Te,width:`calc(100% - ${(0,Wt.unit)(Me(Oe.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:Me(De).add(Oe.paddingXS).equal()}},[`${it}-error`]:{borderColor:Oe.colorError,[`${it}-thumbnail ${Zt}`]:{[`svg path[fill='${te.blue[0]}']`]:{fill:Oe.colorErrorBg},[`svg path[fill='${te.blue.primary}']`]:{fill:Oe.colorError}}},[`${it}-uploading`]:{borderStyle:"dashed",[`${it}-name`]:{marginBottom:Te}}},[`${je}${je}-picture-circle ${it}`]:{[`&, &::before, ${it}-thumbnail`]:{borderRadius:"50%"}}}}},se=Oe=>{const{componentCls:Ft,iconCls:Zt,fontSizeLG:De,colorTextLightSolid:Te,calc:Me}=Oe,je=`${Ft}-list`,it=`${je}-item`,an=Oe.uploadPicCardSize;return{[`
|
|
|
${Ft}-wrapper${Ft}-picture-card-wrapper,
|
|
|
${Ft}-wrapper${Ft}-picture-circle-wrapper
|
|
|
`]:Object.assign(Object.assign({},(0,Kt.dF)()),{display:"block",[`${Ft}${Ft}-select`]:{width:an,height:an,textAlign:"center",verticalAlign:"top",backgroundColor:Oe.colorFillAlter,border:`${(0,Wt.unit)(Oe.lineWidth)} dashed ${Oe.colorBorder}`,borderRadius:Oe.borderRadiusLG,cursor:"pointer",transition:`border-color ${Oe.motionDurationSlow}`,[`> ${Ft}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${Ft}-disabled):hover`]:{borderColor:Oe.colorPrimary}},[`${je}${je}-picture-card, ${je}${je}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:Oe.marginXS,marginInlineEnd:Oe.marginXS}},"@supports (gap: 1px)":{gap:Oe.marginXS},[`${je}-item-container`]:{display:"inline-block",width:an,height:an,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[it]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${(0,Wt.unit)(Me(Oe.paddingXS).mul(2).equal())})`,height:`calc(100% - ${(0,Wt.unit)(Me(Oe.paddingXS).mul(2).equal())})`,backgroundColor:Oe.colorBgMask,opacity:0,transition:`all ${Oe.motionDurationSlow}`,content:'" "'}},[`${it}:hover`]:{[`&::before, ${it}-actions`]:{opacity:1}},[`${it}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${Oe.motionDurationSlow}`,[`
|
|
|
${Zt}-eye,
|
|
|
${Zt}-download,
|
|
|
${Zt}-delete
|
|
|
`]:{zIndex:10,width:De,margin:`0 ${(0,Wt.unit)(Oe.marginXXS)}`,fontSize:De,cursor:"pointer",transition:`all ${Oe.motionDurationSlow}`,color:Te,"&:hover":{color:Te},svg:{verticalAlign:"baseline"}}},[`${it}-thumbnail, ${it}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${it}-name`]:{display:"none",textAlign:"center"},[`${it}-file + ${it}-name`]:{position:"absolute",bottom:Oe.margin,display:"block",width:`calc(100% - ${(0,Wt.unit)(Me(Oe.paddingXS).mul(2).equal())})`},[`${it}-uploading`]:{[`&${it}`]:{backgroundColor:Oe.colorFillAlter},[`&::before, ${Zt}-eye, ${Zt}-download, ${Zt}-delete`]:{display:"none"}},[`${it}-progress`]:{bottom:Oe.marginXL,width:`calc(100% - ${(0,Wt.unit)(Me(Oe.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${Ft}-wrapper${Ft}-picture-circle-wrapper`]:{[`${Ft}${Ft}-select`]:{borderRadius:"50%"}}}};var le=Oe=>{const{componentCls:Ft}=Oe;return{[`${Ft}-rtl`]:{direction:"rtl"}}};const me=Oe=>{const{componentCls:Ft,colorTextDisabled:Zt}=Oe;return{[`${Ft}-wrapper`]:Object.assign(Object.assign({},(0,Kt.Wf)(Oe)),{[Ft]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${Ft}-select`]:{display:"inline-block"},[`${Ft}-hidden`]:{display:"none"},[`${Ft}-disabled`]:{color:Zt,cursor:"not-allowed"}})}},Dt=Oe=>({actionsColor:Oe.colorTextDescription});var Re=(0,ot.I$)("Upload",Oe=>{const{fontSizeHeading3:Ft,fontHeight:Zt,lineWidth:De,controlHeightLG:Te,calc:Me}=Oe,je=(0,lt.mergeToken)(Oe,{uploadThumbnailSize:Me(Ft).mul(2).equal(),uploadProgressOffset:Me(Me(Zt).div(2)).add(De).equal(),uploadPicCardSize:Me(Te).mul(2.55).equal()});return[me(je),$t(je),oe(je),se(je),gn(je),ne(je),le(je),(0,Ce.Z)(je)]},Dt),Fe={icon:function(Ft,Zt){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:Zt}},{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:Ft}}]}},name:"file",theme:"twotone"},qe=Fe,nt=z(7657),st=function(Ft,Zt){return b.createElement(nt.Z,(0,ge.Z)({},Ft,{ref:Zt,icon:qe}))},we=b.forwardRef(st),Be=we,It=z(58617),Mt={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"},kt=Mt,Yt=function(Ft,Zt){return b.createElement(nt.Z,(0,ge.Z)({},Ft,{ref:Zt,icon:kt}))},At=b.forwardRef(Yt),vn=At,Gt={icon:function(Ft,Zt){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:Ft}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:Zt}},{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:Zt}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:Zt}},{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:Ft}}]}},name:"picture",theme:"twotone"},_e=Gt,Bt=function(Ft,Zt){return b.createElement(nt.Z,(0,ge.Z)({},Ft,{ref:Zt,icon:_e}))},Ut=b.forwardRef(Bt),on=Ut,Le=z(77900),xt=z(2738),zt=z(40192),nn=z(86641),Sn=z(22703),zn=z(7939);function rr(Oe){return Object.assign(Object.assign({},Oe),{lastModified:Oe.lastModified,lastModifiedDate:Oe.lastModifiedDate,name:Oe.name,size:Oe.size,type:Oe.type,uid:Oe.uid,percent:0,originFileObj:Oe})}function pr(Oe,Ft){const Zt=(0,Pe.Z)(Ft),De=Zt.findIndex(Te=>{let{uid:Me}=Te;return Me===Oe.uid});return De===-1?Zt.push(Oe):Zt[De]=Oe,Zt}function kn(Oe,Ft){const Zt=Oe.uid!==void 0?"uid":"name";return Ft.filter(De=>De[Zt]===Oe[Zt])[0]}function dr(Oe,Ft){const Zt=Oe.uid!==void 0?"uid":"name",De=Ft.filter(Te=>Te[Zt]!==Oe[Zt]);return De.length===Ft.length?null:De}const Ye=function(){const Ft=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),De=Ft[Ft.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(De)||[""])[0]},Qt=Oe=>Oe.indexOf("image/")===0,yn=Oe=>{if(Oe.type&&!Oe.thumbUrl)return Qt(Oe.type);const Ft=Oe.thumbUrl||Oe.url||"",Zt=Ye(Ft);return/^data:image\//.test(Ft)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(Zt)?!0:!(/^data:/.test(Ft)||Zt)},xn=200;function qt(Oe){return new Promise(Ft=>{if(!Oe.type||!Qt(Oe.type)){Ft("");return}const Zt=document.createElement("canvas");Zt.width=xn,Zt.height=xn,Zt.style.cssText=`position: fixed; left: 0; top: 0; width: ${xn}px; height: ${xn}px; z-index: 9999; display: none;`,document.body.appendChild(Zt);const De=Zt.getContext("2d"),Te=new Image;if(Te.onload=()=>{const{width:Me,height:je}=Te;let it=xn,an=xn,dn=0,hn=0;Me>je?(an=je*(xn/Me),hn=-(an-it)/2):(it=Me*(xn/je),dn=-(it-an)/2),De.drawImage(Te,dn,hn,it,an);const $n=Zt.toDataURL();document.body.removeChild(Zt),window.URL.revokeObjectURL(Te.src),Ft($n)},Te.crossOrigin="anonymous",Oe.type.startsWith("image/svg+xml")){const Me=new FileReader;Me.onload=()=>{Me.result&&typeof Me.result=="string"&&(Te.src=Me.result)},Me.readAsDataURL(Oe)}else if(Oe.type.startsWith("image/gif")){const Me=new FileReader;Me.onload=()=>{Me.result&&Ft(Me.result)},Me.readAsDataURL(Oe)}else Te.src=window.URL.createObjectURL(Oe)})}var En=z(26227),Fn=z(41464),Tn=z(15277),_t=z(89787),Cn=z(25399),Ln=b.forwardRef((Oe,Ft)=>{let{prefixCls:Zt,className:De,style:Te,locale:Me,listType:je,file:it,items:an,progress:dn,iconRender:hn,actionIconRender:$n,itemRender:ar,isImgUrl:Cr,showPreviewIcon:qn,showRemoveIcon:Gn,showDownloadIcon:Jn,previewIcon:gr,removeIcon:Ge,downloadIcon:bt,extra:Vt,onPreview:Ht,onDownload:tn,onClose:An}=Oe;var Vn,tr;const{status:Nn}=it,[or,cr]=b.useState(Nn);b.useEffect(()=>{Nn!=="removed"&&cr(Nn)},[Nn]);const[nr,hr]=b.useState(!1);b.useEffect(()=>{const Hn=setTimeout(()=>{hr(!0)},300);return()=>{clearTimeout(Hn)}},[]);const lr=hn(it);let Er=b.createElement("div",{className:`${Zt}-icon`},lr);if(je==="picture"||je==="picture-card"||je==="picture-circle")if(or==="uploading"||!it.thumbUrl&&!it.url){const Hn=xe()(`${Zt}-list-item-thumbnail`,{[`${Zt}-list-item-file`]:or!=="uploading"});Er=b.createElement("div",{className:Hn},lr)}else{const Hn=Cr!=null&&Cr(it)?b.createElement("img",{src:it.thumbUrl||it.url,alt:it.name,className:`${Zt}-list-item-image`,crossOrigin:it.crossOrigin}):lr,Xn=xe()(`${Zt}-list-item-thumbnail`,{[`${Zt}-list-item-file`]:Cr&&!Cr(it)});Er=b.createElement("a",{className:Xn,onClick:vr=>Ht(it,vr),href:it.url||it.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Hn)}const Ir=xe()(`${Zt}-list-item`,`${Zt}-list-item-${or}`),zr=typeof it.linkProps=="string"?JSON.parse(it.linkProps):it.linkProps,Pr=(typeof Gn=="function"?Gn(it):Gn)?$n((typeof Ge=="function"?Ge(it):Ge)||b.createElement(En.Z,null),()=>An(it),Zt,Me.removeFile,!0):null,Or=(typeof Jn=="function"?Jn(it):Jn)&&or==="done"?$n((typeof bt=="function"?bt(it):bt)||b.createElement(Fn.Z,null),()=>tn(it),Zt,Me.downloadFile):null,Sr=je!=="picture-card"&&je!=="picture-circle"&&b.createElement("span",{key:"download-delete",className:xe()(`${Zt}-list-item-actions`,{picture:je==="picture"})},Or,Pr),Tr=typeof Vt=="function"?Vt(it):Vt,br=Tr&&b.createElement("span",{className:`${Zt}-list-item-extra`},Tr),wr=xe()(`${Zt}-list-item-name`),_n=it.url?b.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:wr,title:it.name},zr,{href:it.url,onClick:Hn=>Ht(it,Hn)}),it.name,br):b.createElement("span",{key:"view",className:wr,onClick:Hn=>Ht(it,Hn),title:it.name},it.name,br),In=(typeof qn=="function"?qn(it):qn)&&(it.url||it.thumbUrl)?b.createElement("a",{href:it.url||it.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:Hn=>Ht(it,Hn),title:Me.previewFile},typeof gr=="function"?gr(it):gr||b.createElement(Tn.Z,null)):null,er=(je==="picture-card"||je==="picture-circle")&&or!=="uploading"&&b.createElement("span",{className:`${Zt}-list-item-actions`},In,or==="done"&&Or,Pr),{getPrefixCls:Rn}=b.useContext(ke.E_),bn=Rn(),ir=b.createElement("div",{className:Ir},Er,_n,Sr,er,nr&&b.createElement(Le.default,{motionName:`${bn}-fade`,visible:or==="uploading",motionDeadline:2e3},Hn=>{let{className:Xn}=Hn;const vr="percent"in it?b.createElement(_t.Z,Object.assign({},dn,{type:"line",percent:it.percent,"aria-label":it["aria-label"],"aria-labelledby":it["aria-labelledby"]})):null;return b.createElement("div",{className:xe()(`${Zt}-list-item-progress`,Xn)},vr)})),mr=it.response&&typeof it.response=="string"?it.response:((Vn=it.error)===null||Vn===void 0?void 0:Vn.statusText)||((tr=it.error)===null||tr===void 0?void 0:tr.message)||Me.uploadError,On=or==="error"?b.createElement(Cn.Z,{title:mr,getPopupContainer:Hn=>Hn.parentNode},ir):ir;return b.createElement("div",{className:xe()(`${Zt}-list-item-container`,De),style:Te,ref:Ft},ar?ar(On,it,an,{download:tn.bind(null,it),preview:Ht.bind(null,it),remove:An.bind(null,it)}):On)});const Zn=(Oe,Ft)=>{const{listType:Zt="text",previewFile:De=qt,onPreview:Te,onDownload:Me,onRemove:je,locale:it,iconRender:an,isImageUrl:dn=yn,prefixCls:hn,items:$n=[],showPreviewIcon:ar=!0,showRemoveIcon:Cr=!0,showDownloadIcon:qn=!1,removeIcon:Gn,previewIcon:Jn,downloadIcon:gr,extra:Ge,progress:bt={size:[-1,2],showInfo:!1},appendAction:Vt,appendActionVisible:Ht=!0,itemRender:tn,disabled:An}=Oe,Vn=(0,zt.Z)(),[tr,Nn]=b.useState(!1),or=["picture-card","picture-circle"].includes(Zt);b.useEffect(()=>{Zt.startsWith("picture")&&($n||[]).forEach(br=>{!(br.originFileObj instanceof File||br.originFileObj instanceof Blob)||br.thumbUrl!==void 0||(br.thumbUrl="",De==null||De(br.originFileObj).then(wr=>{br.thumbUrl=wr||"",Vn()}))})},[Zt,$n,De]),b.useEffect(()=>{Nn(!0)},[]);const cr=(br,wr)=>{if(Te)return wr==null||wr.preventDefault(),Te(br)},nr=br=>{typeof Me=="function"?Me(br):br.url&&window.open(br.url)},hr=br=>{je==null||je(br)},lr=br=>{if(an)return an(br,Zt);const wr=br.status==="uploading";if(Zt.startsWith("picture")){const _n=Zt==="picture"?b.createElement(It.Z,null):it.uploading,In=dn!=null&&dn(br)?b.createElement(on,null):b.createElement(Be,null);return wr?_n:In}return wr?b.createElement(It.Z,null):b.createElement(vn,null)},Er=(br,wr,_n,In,er)=>{const Rn={type:"text",size:"small",title:In,onClick:bn=>{var ir,mr;wr(),b.isValidElement(br)&&((mr=(ir=br.props).onClick)===null||mr===void 0||mr.call(ir,bn))},className:`${_n}-list-item-action`};return er&&(Rn.disabled=An),b.isValidElement(br)?b.createElement(zn.ZP,Object.assign({},Rn,{icon:(0,Sn.Tm)(br,Object.assign(Object.assign({},br.props),{onClick:()=>{}}))})):b.createElement(zn.ZP,Object.assign({},Rn),b.createElement("span",null,br))};b.useImperativeHandle(Ft,()=>({handlePreview:cr,handleDownload:nr}));const{getPrefixCls:Ir}=b.useContext(ke.E_),zr=Ir("upload",hn),Pr=Ir(),Or=xe()(`${zr}-list`,`${zr}-list-${Zt}`),Sr=b.useMemo(()=>(0,xt.Z)((0,nn.Z)(Pr),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[Pr]),Tr=Object.assign(Object.assign({},or?{}:Sr),{motionDeadline:2e3,motionName:`${zr}-${or?"animate-inline":"animate"}`,keys:(0,Pe.Z)($n.map(br=>({key:br.uid,file:br}))),motionAppear:tr});return b.createElement("div",{className:Or},b.createElement(Le.CSSMotionList,Object.assign({},Tr,{component:!1}),br=>{let{key:wr,file:_n,className:In,style:er}=br;return b.createElement(Ln,{key:wr,locale:it,prefixCls:zr,className:In,style:er,file:_n,items:$n,progress:bt,listType:Zt,isImgUrl:dn,showPreviewIcon:ar,showRemoveIcon:Cr,showDownloadIcon:qn,removeIcon:Gn,previewIcon:Jn,downloadIcon:gr,extra:Ge,iconRender:lr,actionIconRender:Er,itemRender:tn,onPreview:cr,onDownload:nr,onClose:hr})}),Vt&&b.createElement(Le.default,Object.assign({},Tr,{visible:Ht,forceRender:!0}),br=>{let{className:wr,style:_n}=br;return(0,Sn.Tm)(Vt,In=>({className:xe()(In.className,wr),style:Object.assign(Object.assign(Object.assign({},_n),{pointerEvents:wr?"none":void 0}),In.style)}))}))};var ur=b.forwardRef(Zn),Jt=function(Oe,Ft,Zt,De){function Te(Me){return Me instanceof Zt?Me:new Zt(function(je){je(Me)})}return new(Zt||(Zt=Promise))(function(Me,je){function it(hn){try{dn(De.next(hn))}catch($n){je($n)}}function an(hn){try{dn(De.throw(hn))}catch($n){je($n)}}function dn(hn){hn.done?Me(hn.value):Te(hn.value).then(it,an)}dn((De=De.apply(Oe,Ft||[])).next())})};const wn=`__LIST_IGNORE_${Date.now()}__`,un=(Oe,Ft)=>{const{fileList:Zt,defaultFileList:De,onRemove:Te,showUploadList:Me=!0,listType:je="text",onPreview:it,onDownload:an,onChange:dn,onDrop:hn,previewFile:$n,disabled:ar,locale:Cr,iconRender:qn,isImageUrl:Gn,progress:Jn,prefixCls:gr,className:Ge,type:bt="select",children:Vt,style:Ht,itemRender:tn,maxCount:An,data:Vn={},multiple:tr=!1,hasControlInside:Nn=!0,action:or="",accept:cr="",supportServerRender:nr=!0,rootClassName:hr}=Oe,lr=b.useContext(he.Z),Er=ar!=null?ar:lr,[Ir,zr]=(0,ln.Z)(De||[],{value:Zt,postState:po=>po!=null?po:[]}),[Pr,Or]=b.useState("drop"),Sr=b.useRef(null),Tr=b.useRef(null);b.useMemo(()=>{const po=Date.now();(Zt||[]).forEach((ko,Xo)=>{!ko.uid&&!Object.isFrozen(ko)&&(ko.uid=`__AUTO__${po}_${Xo}__`)})},[Zt]);const br=(po,ko,Xo)=>{let Ao=(0,Pe.Z)(ko),Zo=!1;An===1?Ao=Ao.slice(-1):An&&(Zo=Ao.length>An,Ao=Ao.slice(0,An)),(0,fe.flushSync)(()=>{zr(Ao)});const Ho={file:po,fileList:Ao};Xo&&(Ho.event=Xo),(!Zo||po.status==="removed"||Ao.some(ba=>ba.uid===po.uid))&&(0,fe.flushSync)(()=>{dn==null||dn(Ho)})},wr=(po,ko)=>Jt(void 0,void 0,void 0,function*(){const{beforeUpload:Xo,transformFile:Ao}=Oe;let Zo=po;if(Xo){const Ho=yield Xo(po,ko);if(Ho===!1)return!1;if(delete po[wn],Ho===wn)return Object.defineProperty(po,wn,{value:!0,configurable:!0}),!1;typeof Ho=="object"&&Ho&&(Zo=Ho)}return Ao&&(Zo=yield Ao(Zo)),Zo}),_n=po=>{const ko=po.filter(Zo=>!Zo.file[wn]);if(!ko.length)return;const Xo=ko.map(Zo=>rr(Zo.file));let Ao=(0,Pe.Z)(Ir);Xo.forEach(Zo=>{Ao=pr(Zo,Ao)}),Xo.forEach((Zo,Ho)=>{let ba=Zo;if(ko[Ho].parsedFile)Zo.status="uploading";else{const{originFileObj:Ha}=Zo;let xa;try{xa=new File([Ha],Ha.name,{type:Ha.type})}catch(ga){xa=new Blob([Ha],{type:Ha.type}),xa.name=Ha.name,xa.lastModifiedDate=new Date,xa.lastModified=new Date().getTime()}xa.uid=Zo.uid,ba=xa}br(ba,Ao)})},In=(po,ko,Xo)=>{try{typeof po=="string"&&(po=JSON.parse(po))}catch(Ho){}if(!kn(ko,Ir))return;const Ao=rr(ko);Ao.status="done",Ao.percent=100,Ao.response=po,Ao.xhr=Xo;const Zo=pr(Ao,Ir);br(Ao,Zo)},er=(po,ko)=>{if(!kn(ko,Ir))return;const Xo=rr(ko);Xo.status="uploading",Xo.percent=po.percent;const Ao=pr(Xo,Ir);br(Xo,Ao,po)},Rn=(po,ko,Xo)=>{if(!kn(Xo,Ir))return;const Ao=rr(Xo);Ao.error=po,Ao.response=ko,Ao.status="error";const Zo=pr(Ao,Ir);br(Ao,Zo)},bn=po=>{let ko;Promise.resolve(typeof Te=="function"?Te(po):Te).then(Xo=>{var Ao;if(Xo===!1)return;const Zo=dr(po,Ir);Zo&&(ko=Object.assign(Object.assign({},po),{status:"removed"}),Ir==null||Ir.forEach(Ho=>{const ba=ko.uid!==void 0?"uid":"name";Ho[ba]===ko[ba]&&!Object.isFrozen(Ho)&&(Ho.status="removed")}),(Ao=Sr.current)===null||Ao===void 0||Ao.abort(ko),br(ko,Zo))})},ir=po=>{Or(po.type),po.type==="drop"&&(hn==null||hn(po))};b.useImperativeHandle(Ft,()=>({onBatchStart:_n,onSuccess:In,onProgress:er,onError:Rn,fileList:Ir,upload:Sr.current,nativeElement:Tr.current}));const{getPrefixCls:mr,direction:On,upload:Hn}=b.useContext(ke.E_),Xn=mr("upload",gr),vr=Object.assign(Object.assign({onBatchStart:_n,onError:Rn,onProgress:er,onSuccess:In},Oe),{data:Vn,multiple:tr,action:or,accept:cr,supportServerRender:nr,prefixCls:Xn,disabled:Er,beforeUpload:wr,onChange:void 0,hasControlInside:Nn});delete vr.className,delete vr.style,(!Vt||Er)&&delete vr.id;const Ar=`${Xn}-wrapper`,[Fr,Rr,Ur]=Re(Xn,Ar),[jr]=(0,Ct.Z)("Upload",Pt.Z.Upload),{showRemoveIcon:ro,showPreviewIcon:Yr,showDownloadIcon:Xr,removeIcon:eo,previewIcon:vo,downloadIcon:Fo,extra:Yo}=typeof Me=="boolean"?{}:Me,Bo=typeof ro=="undefined"?!Er:ro,Ko=(po,ko)=>Me?b.createElement(ur,{prefixCls:Xn,listType:je,items:Ir,previewFile:$n,onPreview:it,onDownload:an,onRemove:bn,showRemoveIcon:Bo,showPreviewIcon:Yr,showDownloadIcon:Xr,removeIcon:eo,previewIcon:vo,downloadIcon:Fo,iconRender:qn,extra:Yo,locale:Object.assign(Object.assign({},jr),Cr),isImageUrl:Gn,progress:Jn,appendAction:po,appendActionVisible:ko,itemRender:tn,disabled:Er}):po,Jr=xe()(Ar,Ge,hr,Rr,Ur,Hn==null?void 0:Hn.className,{[`${Xn}-rtl`]:On==="rtl",[`${Xn}-picture-card-wrapper`]:je==="picture-card",[`${Xn}-picture-circle-wrapper`]:je==="picture-circle"}),Qr=Object.assign(Object.assign({},Hn==null?void 0:Hn.style),Ht);if(bt==="drag"){const po=xe()(Rr,Xn,`${Xn}-drag`,{[`${Xn}-drag-uploading`]:Ir.some(ko=>ko.status==="uploading"),[`${Xn}-drag-hover`]:Pr==="dragover",[`${Xn}-disabled`]:Er,[`${Xn}-rtl`]:On==="rtl"});return Fr(b.createElement("span",{className:Jr,ref:Tr},b.createElement("div",{className:po,style:Qr,onDrop:ir,onDragOver:ir,onDragLeave:ir},b.createElement(wt,Object.assign({},vr,{ref:Sr,className:`${Xn}-btn`}),b.createElement("div",{className:`${Xn}-drag-container`},Vt))),Ko()))}const Vo=xe()(Xn,`${Xn}-select`,{[`${Xn}-disabled`]:Er,[`${Xn}-hidden`]:!Vt}),Wo=b.createElement("div",{className:Vo},b.createElement(wt,Object.assign({},vr,{ref:Sr})));return Fr(je==="picture-card"||je==="picture-circle"?b.createElement("span",{className:Jr,ref:Tr},Ko(Wo,!!Vt)):b.createElement("span",{className:Jr,ref:Tr},Wo,Ko()))};var We=b.forwardRef(un),dt=function(Oe,Ft){var Zt={};for(var De in Oe)Object.prototype.hasOwnProperty.call(Oe,De)&&Ft.indexOf(De)<0&&(Zt[De]=Oe[De]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Te=0,De=Object.getOwnPropertySymbols(Oe);Te<De.length;Te++)Ft.indexOf(De[Te])<0&&Object.prototype.propertyIsEnumerable.call(Oe,De[Te])&&(Zt[De[Te]]=Oe[De[Te]]);return Zt},gt=b.forwardRef((Oe,Ft)=>{var{style:Zt,height:De,hasControlInside:Te=!1}=Oe,Me=dt(Oe,["style","height","hasControlInside"]);return b.createElement(We,Object.assign({ref:Ft,hasControlInside:Te},Me,{type:"drag",style:Object.assign(Object.assign({},Zt),{height:De})}))});const $e=We;$e.Dragger=gt,$e.LIST_IGNORE=wn;var St=$e},99498:function(Kn,cn,z){(function(b){b(z(89780))})(function(b){b.defineOption("placeholder","",function(Qe,Ae,de){var tt=de&&de!=b.Init;if(Ae&&!tt)Qe.on("blur",xe),Qe.on("change",ge),Qe.on("swapDoc",ge),b.on(Qe.getInputField(),"compositionupdate",Qe.state.placeholderCompose=function(){rt(Qe)}),ge(Qe);else if(!Ae&&tt){Qe.off("blur",xe),Qe.off("change",ge),Qe.off("swapDoc",ge),b.off(Qe.getInputField(),"compositionupdate",Qe.state.placeholderCompose),Pe(Qe);var ve=Qe.getWrapperElement();ve.className=ve.className.replace(" CodeMirror-empty","")}Ae&&!Qe.hasFocus()&&xe(Qe)});function Pe(Qe){Qe.state.placeholder&&(Qe.state.placeholder.parentNode.removeChild(Qe.state.placeholder),Qe.state.placeholder=null)}function fe(Qe){Pe(Qe);var Ae=Qe.state.placeholder=document.createElement("pre");Ae.style.cssText="height: 0; overflow: visible",Ae.style.direction=Qe.getOption("direction"),Ae.className="CodeMirror-placeholder CodeMirror-line-like";var de=Qe.getOption("placeholder");typeof de=="string"&&(de=document.createTextNode(de)),Ae.appendChild(de),Qe.display.lineSpace.insertBefore(Ae,Qe.display.lineSpace.firstChild)}function rt(Qe){setTimeout(function(){var Ae=!1,de=Qe.getInputField();de.nodeName=="TEXTAREA"?Ae=!de.value:Qe.lineCount()==1&&(Ae=!/[^\u200b]/.test(de.querySelector(".CodeMirror-line").textContent)),Ae?fe(Qe):Pe(Qe)},20)}function xe(Qe){Ee(Qe)&&fe(Qe)}function ge(Qe){var Ae=Qe.getWrapperElement(),de=Ee(Qe);Ae.className=Ae.className.replace(" CodeMirror-empty","")+(de?" CodeMirror-empty":""),de?fe(Qe):Pe(Qe)}function Ee(Qe){return Qe.lineCount()===1&&Qe.getLine(0)===""}})},25717:function(Kn,cn,z){(function(b){b(z(89780))})(function(b){var Pe={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},fe=b.Pos;b.defineOption("autoCloseBrackets",!1,function(Ve,Ne,Ze){Ze&&Ze!=b.Init&&(Ve.removeKeyMap(xe),Ve.state.closeBrackets=null),Ne&&(ge(rt(Ne,"pairs")),Ve.state.closeBrackets=Ne,Ve.addKeyMap(xe))});function rt(Ve,Ne){return Ne=="pairs"&&typeof Ve=="string"?Ve:typeof Ve=="object"&&Ve[Ne]!=null?Ve[Ne]:Pe[Ne]}var xe={Backspace:Ae,Enter:de};function ge(Ve){for(var Ne=0;Ne<Ve.length;Ne++){var Ze=Ve.charAt(Ne),pt="'"+Ze+"'";xe[pt]||(xe[pt]=Ee(Ze))}}ge(Pe.pairs+"`");function Ee(Ve){return function(Ne){return ve(Ne,Ve)}}function Qe(Ve){var Ne=Ve.state.closeBrackets;if(!Ne||Ne.override)return Ne;var Ze=Ve.getModeAt(Ve.getCursor());return Ze.closeBrackets||Ne}function Ae(Ve){var Ne=Qe(Ve);if(!Ne||Ve.getOption("disableInput"))return b.Pass;for(var Ze=rt(Ne,"pairs"),pt=Ve.listSelections(),mt=0;mt<pt.length;mt++){if(!pt[mt].empty())return b.Pass;var Xt=Lt(Ve,pt[mt].head);if(!Xt||Ze.indexOf(Xt)%2!=0)return b.Pass}for(var mt=pt.length-1;mt>=0;mt--){var He=pt[mt].head;Ve.replaceRange("",fe(He.line,He.ch-1),fe(He.line,He.ch+1),"+delete")}}function de(Ve){var Ne=Qe(Ve),Ze=Ne&&rt(Ne,"explode");if(!Ze||Ve.getOption("disableInput"))return b.Pass;for(var pt=Ve.listSelections(),mt=0;mt<pt.length;mt++){if(!pt[mt].empty())return b.Pass;var Xt=Lt(Ve,pt[mt].head);if(!Xt||Ze.indexOf(Xt)%2!=0)return b.Pass}Ve.operation(function(){var He=Ve.lineSeparator()||`
|
|
|
`;Ve.replaceSelection(He+He,null),Ve.execCommand("goCharLeft"),pt=Ve.listSelections();for(var Ke=0;Ke<pt.length;Ke++){var ut=pt[Ke].head.line;Ve.indentLine(ut,null,!0),Ve.indentLine(ut+1,null,!0)}})}function tt(Ve){var Ne=b.cmpPos(Ve.anchor,Ve.head)>0;return{anchor:new fe(Ve.anchor.line,Ve.anchor.ch+(Ne?-1:1)),head:new fe(Ve.head.line,Ve.head.ch+(Ne?1:-1))}}function ve(Ve,Ne){var Ze=Qe(Ve);if(!Ze||Ve.getOption("disableInput"))return b.Pass;var pt=rt(Ze,"pairs"),mt=pt.indexOf(Ne);if(mt==-1)return b.Pass;for(var Xt=rt(Ze,"closeBefore"),He=rt(Ze,"triples"),Ke=pt.charAt(mt+1)==Ne,ut=Ve.listSelections(),ft=mt%2==0,jt,Ot=0;Ot<ut.length;Ot++){var yt=ut[Ot],Et=yt.head,pe,Je=Ve.getRange(Et,fe(Et.line,Et.ch+1));if(ft&&!yt.empty())pe="surround";else if((Ke||!ft)&&Je==Ne)Ke&&at(Ve,Et)?pe="both":He.indexOf(Ne)>=0&&Ve.getRange(Et,fe(Et.line,Et.ch+3))==Ne+Ne+Ne?pe="skipThree":pe="skip";else if(Ke&&Et.ch>1&&He.indexOf(Ne)>=0&&Ve.getRange(fe(Et.line,Et.ch-2),Et)==Ne+Ne){if(Et.ch>2&&/\bstring/.test(Ve.getTokenTypeAt(fe(Et.line,Et.ch-2))))return b.Pass;pe="addFour"}else if(Ke){var Xe=Et.ch==0?" ":Ve.getRange(fe(Et.line,Et.ch-1),Et);if(!b.isWordChar(Je)&&Xe!=Ne&&!b.isWordChar(Xe))pe="both";else return b.Pass}else if(ft&&(Je.length===0||/\s/.test(Je)||Xt.indexOf(Je)>-1))pe="both";else return b.Pass;if(!jt)jt=pe;else if(jt!=pe)return b.Pass}var ue=mt%2?pt.charAt(mt-1):Ne,Nt=mt%2?Ne:pt.charAt(mt+1);Ve.operation(function(){if(jt=="skip")Ve.execCommand("goCharRight");else if(jt=="skipThree")for(var et=0;et<3;et++)Ve.execCommand("goCharRight");else if(jt=="surround"){for(var wt=Ve.getSelections(),et=0;et<wt.length;et++)wt[et]=ue+wt[et]+Nt;Ve.replaceSelections(wt,"around"),wt=Ve.listSelections().slice();for(var et=0;et<wt.length;et++)wt[et]=tt(wt[et]);Ve.setSelections(wt)}else jt=="both"?(Ve.replaceSelection(ue+Nt,null),Ve.triggerElectric(ue+Nt),Ve.execCommand("goCharLeft")):jt=="addFour"&&(Ve.replaceSelection(ue+ue+ue+ue,"before"),Ve.execCommand("goCharRight"))})}function Lt(Ve,Ne){var Ze=Ve.getRange(fe(Ne.line,Ne.ch-1),fe(Ne.line,Ne.ch+1));return Ze.length==2?Ze:null}function at(Ve,Ne){var Ze=Ve.getTokenAt(fe(Ne.line,Ne.ch+1));return/\bstring/.test(Ze.type)&&Ze.start==Ne.ch&&(Ne.ch==0||!/\bstring/.test(Ve.getTokenTypeAt(Ne)))}})},6313:function(Kn,cn,z){(function(b){b(z(89780),z(32855))})(function(b){b.defineOption("autoCloseTags",!1,function(Ae,de,tt){if(tt!=b.Init&&tt&&Ae.removeKeyMap("autoCloseTags"),!!de){var ve={name:"autoCloseTags"};(typeof de!="object"||de.whenClosing!==!1)&&(ve["'/'"]=function(Lt){return ge(Lt)}),(typeof de!="object"||de.whenOpening!==!1)&&(ve["'>'"]=function(Lt){return rt(Lt)}),Ae.addKeyMap(ve)}});var Pe=["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 rt(Ae){if(Ae.getOption("disableInput"))return b.Pass;for(var de=Ae.listSelections(),tt=[],ve=Ae.getOption("autoCloseTags"),Lt=0;Lt<de.length;Lt++){if(!de[Lt].empty())return b.Pass;var at=de[Lt].head,Ve=Ae.getTokenAt(at),Ne=b.innerMode(Ae.getMode(),Ve.state),Ze=Ne.state,pt=Ne.mode.xmlCurrentTag&&Ne.mode.xmlCurrentTag(Ze),mt=pt&&pt.name;if(!mt)return b.Pass;var Xt=Ne.mode.configuration=="html",He=typeof ve=="object"&&ve.dontCloseTags||Xt&&Pe,Ke=typeof ve=="object"&&ve.indentTags||Xt&&fe;Ve.end>at.ch&&(mt=mt.slice(0,mt.length-Ve.end+at.ch));var ut=mt.toLowerCase();if(!mt||Ve.type=="string"&&(Ve.end!=at.ch||!/[\"\']/.test(Ve.string.charAt(Ve.string.length-1))||Ve.string.length==1)||Ve.type=="tag"&&pt.close||Ve.string.indexOf("/")==at.ch-Ve.start-1||He&&Ee(He,ut)>-1||Qe(Ae,Ne.mode.xmlCurrentContext&&Ne.mode.xmlCurrentContext(Ze)||[],mt,at,!0))return b.Pass;var ft=typeof ve=="object"&&ve.emptyTags;if(ft&&Ee(ft,mt)>-1){tt[Lt]={text:"/>",newPos:b.Pos(at.line,at.ch+2)};continue}var jt=Ke&&Ee(Ke,ut)>-1;tt[Lt]={indent:jt,text:">"+(jt?`
|
|
|
|
|
|
`:"")+"</"+mt+">",newPos:jt?b.Pos(at.line+1,0):b.Pos(at.line,at.ch+1)}}for(var Ot=typeof ve=="object"&&ve.dontIndentOnAutoClose,Lt=de.length-1;Lt>=0;Lt--){var yt=tt[Lt];Ae.replaceRange(yt.text,de[Lt].head,de[Lt].anchor,"+insert");var Et=Ae.listSelections().slice(0);Et[Lt]={head:yt.newPos,anchor:yt.newPos},Ae.setSelections(Et),!Ot&&yt.indent&&(Ae.indentLine(yt.newPos.line,null,!0),Ae.indentLine(yt.newPos.line+1,null,!0))}}function xe(Ae,de){for(var tt=Ae.listSelections(),ve=[],Lt=de?"/":"</",at=Ae.getOption("autoCloseTags"),Ve=typeof at=="object"&&at.dontIndentOnSlash,Ne=0;Ne<tt.length;Ne++){if(!tt[Ne].empty())return b.Pass;var Ze=tt[Ne].head,pt=Ae.getTokenAt(Ze),mt=b.innerMode(Ae.getMode(),pt.state),Xt=mt.state;if(de&&(pt.type=="string"||pt.string.charAt(0)!="<"||pt.start!=Ze.ch-1))return b.Pass;var He,Ke=mt.mode.name!="xml"&&Ae.getMode().name=="htmlmixed";if(Ke&&mt.mode.name=="javascript")He=Lt+"script";else if(Ke&&mt.mode.name=="css")He=Lt+"style";else{var ut=mt.mode.xmlCurrentContext&&mt.mode.xmlCurrentContext(Xt);if(!ut||ut.length&&Qe(Ae,ut,ut[ut.length-1],Ze))return b.Pass;He=Lt+ut[ut.length-1]}Ae.getLine(Ze.line).charAt(pt.end)!=">"&&(He+=">"),ve[Ne]=He}if(Ae.replaceSelections(ve),tt=Ae.listSelections(),!Ve)for(var Ne=0;Ne<tt.length;Ne++)(Ne==tt.length-1||tt[Ne].head.line<tt[Ne+1].head.line)&&Ae.indentLine(tt[Ne].head.line)}function ge(Ae){return Ae.getOption("disableInput")?b.Pass:xe(Ae,!0)}b.commands.closeTag=function(Ae){return xe(Ae)};function Ee(Ae,de){if(Ae.indexOf)return Ae.indexOf(de);for(var tt=0,ve=Ae.length;tt<ve;++tt)if(Ae[tt]==de)return tt;return-1}function Qe(Ae,de,tt,ve,Lt){if(!b.scanForClosingTag)return!1;var at=Math.min(Ae.lastLine()+1,ve.line+500),Ve=b.scanForClosingTag(Ae,ve,null,at);if(!Ve||Ve.tag!=tt)return!1;for(var Ne=Lt?1:0,Ze=de.length-1;Ze>=0&&de[Ze]==tt;Ze--)++Ne;ve=Ve.to;for(var Ze=1;Ze<Ne;Ze++){var pt=b.scanForClosingTag(Ae,ve,null,at);if(!pt||pt.tag!=tt)return!1;ve=pt.to}return!0}})},32855:function(Kn,cn,z){(function(b){b(z(89780))})(function(b){"use strict";var Pe=b.Pos;function fe(Ze,pt){return Ze.line-pt.line||Ze.ch-pt.ch}var rt="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",xe=rt+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",ge=new RegExp("<(/?)(["+rt+"]["+xe+"]*)","g");function Ee(Ze,pt,mt,Xt){this.line=pt,this.ch=mt,this.cm=Ze,this.text=Ze.getLine(pt),this.min=Xt?Math.max(Xt.from,Ze.firstLine()):Ze.firstLine(),this.max=Xt?Math.min(Xt.to-1,Ze.lastLine()):Ze.lastLine()}function Qe(Ze,pt){var mt=Ze.cm.getTokenTypeAt(Pe(Ze.line,pt));return mt&&/\btag\b/.test(mt)}function Ae(Ze){if(!(Ze.line>=Ze.max))return Ze.ch=0,Ze.text=Ze.cm.getLine(++Ze.line),!0}function de(Ze){if(!(Ze.line<=Ze.min))return Ze.text=Ze.cm.getLine(--Ze.line),Ze.ch=Ze.text.length,!0}function tt(Ze){for(;;){var pt=Ze.text.indexOf(">",Ze.ch);if(pt==-1){if(Ae(Ze))continue;return}if(!Qe(Ze,pt+1)){Ze.ch=pt+1;continue}var mt=Ze.text.lastIndexOf("/",pt),Xt=mt>-1&&!/\S/.test(Ze.text.slice(mt+1,pt));return Ze.ch=pt+1,Xt?"selfClose":"regular"}}function ve(Ze){for(;;){var pt=Ze.ch?Ze.text.lastIndexOf("<",Ze.ch-1):-1;if(pt==-1){if(de(Ze))continue;return}if(!Qe(Ze,pt+1)){Ze.ch=pt;continue}ge.lastIndex=pt,Ze.ch=pt;var mt=ge.exec(Ze.text);if(mt&&mt.index==pt)return mt}}function Lt(Ze){for(;;){ge.lastIndex=Ze.ch;var pt=ge.exec(Ze.text);if(!pt){if(Ae(Ze))continue;return}if(!Qe(Ze,pt.index+1)){Ze.ch=pt.index+1;continue}return Ze.ch=pt.index+pt[0].length,pt}}function at(Ze){for(;;){var pt=Ze.ch?Ze.text.lastIndexOf(">",Ze.ch-1):-1;if(pt==-1){if(de(Ze))continue;return}if(!Qe(Ze,pt+1)){Ze.ch=pt;continue}var mt=Ze.text.lastIndexOf("/",pt),Xt=mt>-1&&!/\S/.test(Ze.text.slice(mt+1,pt));return Ze.ch=pt+1,Xt?"selfClose":"regular"}}function Ve(Ze,pt){for(var mt=[];;){var Xt=Lt(Ze),He,Ke=Ze.line,ut=Ze.ch-(Xt?Xt[0].length:0);if(!Xt||!(He=tt(Ze)))return;if(He!="selfClose")if(Xt[1]){for(var ft=mt.length-1;ft>=0;--ft)if(mt[ft]==Xt[2]){mt.length=ft;break}if(ft<0&&(!pt||pt==Xt[2]))return{tag:Xt[2],from:Pe(Ke,ut),to:Pe(Ze.line,Ze.ch)}}else mt.push(Xt[2])}}function Ne(Ze,pt){for(var mt=[];;){var Xt=at(Ze);if(!Xt)return;if(Xt=="selfClose"){ve(Ze);continue}var He=Ze.line,Ke=Ze.ch,ut=ve(Ze);if(!ut)return;if(ut[1])mt.push(ut[2]);else{for(var ft=mt.length-1;ft>=0;--ft)if(mt[ft]==ut[2]){mt.length=ft;break}if(ft<0&&(!pt||pt==ut[2]))return{tag:ut[2],from:Pe(Ze.line,Ze.ch),to:Pe(He,Ke)}}}}b.registerHelper("fold","xml",function(Ze,pt){for(var mt=new Ee(Ze,pt.line,0);;){var Xt=Lt(mt);if(!Xt||mt.line!=pt.line)return;var He=tt(mt);if(!He)return;if(!Xt[1]&&He!="selfClose"){var Ke=Pe(mt.line,mt.ch),ut=Ve(mt,Xt[2]);return ut&&fe(ut.from,Ke)>0?{from:Ke,to:ut.from}:null}}}),b.findMatchingTag=function(Ze,pt,mt){var Xt=new Ee(Ze,pt.line,pt.ch,mt);if(!(Xt.text.indexOf(">")==-1&&Xt.text.indexOf("<")==-1)){var He=tt(Xt),Ke=He&&Pe(Xt.line,Xt.ch),ut=He&&ve(Xt);if(!(!He||!ut||fe(Xt,pt)>0)){var ft={from:Pe(Xt.line,Xt.ch),to:Ke,tag:ut[2]};return He=="selfClose"?{open:ft,close:null,at:"open"}:ut[1]?{open:Ne(Xt,ut[2]),close:ft,at:"close"}:(Xt=new Ee(Ze,Ke.line,Ke.ch,mt),{open:ft,close:Ve(Xt,ut[2]),at:"open"})}}},b.findEnclosingTag=function(Ze,pt,mt,Xt){for(var He=new Ee(Ze,pt.line,pt.ch,mt);;){var Ke=Ne(He,Xt);if(!Ke)break;var ut=new Ee(Ze,pt.line,pt.ch,mt),ft=Ve(ut,Ke.tag);if(ft)return{open:Ke,close:ft}}},b.scanForClosingTag=function(Ze,pt,mt,Xt){var He=new Ee(Ze,pt.line,pt.ch,Xt?{from:0,to:Xt}:null);return Ve(He,mt)}})},89780:function(Kn){(function(cn,z){Kn.exports=z()})(this,function(){"use strict";var cn=navigator.userAgent,z=navigator.platform,b=/gecko\/\d/i.test(cn),Pe=/MSIE \d/.test(cn),fe=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(cn),rt=/Edge\/(\d+)/.exec(cn),xe=Pe||fe||rt,ge=xe&&(Pe?document.documentMode||6:+(rt||fe)[1]),Ee=!rt&&/WebKit\//.test(cn),Qe=Ee&&/Qt\/\d+\.\d+/.test(cn),Ae=!rt&&/Chrome\//.test(cn),de=/Opera\//.test(cn),tt=/Apple Computer/.test(navigator.vendor),ve=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(cn),Lt=/PhantomJS/.test(cn),at=!rt&&/AppleWebKit/.test(cn)&&/Mobile\/\w+/.test(cn),Ve=/Android/.test(cn),Ne=at||Ve||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(cn),Ze=at||/Mac/.test(z),pt=/\bCrOS\b/.test(cn),mt=/win/i.test(z),Xt=de&&cn.match(/Version\/(\d*\.\d*)/);Xt&&(Xt=Number(Xt[1])),Xt&&Xt>=15&&(de=!1,Ee=!0);var He=Ze&&(Qe||de&&(Xt==null||Xt<12.11)),Ke=b||xe&&ge>=9;function ut(a){return new RegExp("(^|\\s)"+a+"(?:$|\\s)\\s*")}var ft=function(a,y){var E=a.className,x=ut(y).exec(E);if(x){var ee=E.slice(x.index+x[0].length);a.className=E.slice(0,x.index)+(ee?x[1]+ee:"")}};function jt(a){for(var y=a.childNodes.length;y>0;--y)a.removeChild(a.firstChild);return a}function Ot(a,y){return jt(a).appendChild(y)}function yt(a,y,E,x){var ee=document.createElement(a);if(E&&(ee.className=E),x&&(ee.style.cssText=x),typeof y=="string")ee.appendChild(document.createTextNode(y));else if(y)for(var ae=0;ae<y.length;++ae)ee.appendChild(y[ae]);return ee}function Et(a,y,E,x){var ee=yt(a,y,E,x);return ee.setAttribute("role","presentation"),ee}var pe;document.createRange?pe=function(a,y,E,x){var ee=document.createRange();return ee.setEnd(x||a,E),ee.setStart(a,y),ee}:pe=function(a,y,E){var x=document.body.createTextRange();try{x.moveToElementText(a.parentNode)}catch(ee){return x}return x.collapse(!0),x.moveEnd("character",E),x.moveStart("character",y),x};function Je(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 Xe(){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 ue(a,y){var E=a.className;ut(y).test(E)||(a.className+=(E?" ":"")+y)}function Nt(a,y){for(var E=a.split(" "),x=0;x<E.length;x++)E[x]&&!ut(E[x]).test(y)&&(y+=" "+E[x]);return y}var et=function(a){a.select()};at?et=function(a){a.selectionStart=0,a.selectionEnd=a.value.length}:xe&&(et=function(a){try{a.select()}catch(y){}});function wt(a){var y=Array.prototype.slice.call(arguments,1);return function(){return a.apply(null,y)}}function ln(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 ke(a,y,E,x,ee){y==null&&(y=a.search(/[^\s\u00a0]/),y==-1&&(y=a.length));for(var ae=x||0,ce=ee||0;;){var ye=a.indexOf(" ",ae);if(ye<0||ye>=y)return ce+(y-ae);ce+=ye-ae,ce+=E-ce%E,ae=ye+1}}var he=function(){this.id=null,this.f=null,this.time=0,this.handler=wt(this.onTimeout,this)};he.prototype.onTimeout=function(a){a.id=0,a.time<=+new Date?a.f():setTimeout(a.handler,a.time-+new Date)},he.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 Ct(a,y){for(var E=0;E<a.length;++E)if(a[E]==y)return E;return-1}var Pt=50,Kt={toString:function(){return"CodeMirror.Pass"}},Ce={scroll:!1},ot={origin:"*mouse"},lt={origin:"+move"};function Wt(a,y,E){for(var x=0,ee=0;;){var ae=a.indexOf(" ",x);ae==-1&&(ae=a.length);var ce=ae-x;if(ae==a.length||ee+ce>=y)return x+Math.min(ce,y-ee);if(ee+=ae-x,ee+=E-ee%E,x=ae+1,ee>=y)return x}}var ct=[""];function $t(a){for(;ct.length<=a;)ct.push(vt(ct)+" ");return ct[a]}function vt(a){return a[a.length-1]}function gn(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,ee=E(y);x<a.length&&E(a[x])<=ee;)x++;a.splice(x,0,y)}function ie(){}function ne(a,y){var E;return Object.create?E=Object.create(a):(ie.prototype=a,E=new ie),y&&ln(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 se(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 me(a){return a.charCodeAt(0)>=768&&le.test(a)}function Dt(a,y,E){for(;(E<0?y>0:y<a.length)&&me(a.charAt(y));)y+=E;return y}function Re(a,y,E){for(var x=y>E?-1:1;;){if(y==E)return y;var ee=(y+E)/2,ae=x<0?Math.ceil(ee):Math.floor(ee);if(ae==y)return a(ae)?y:E;a(ae)?E=ae:y=ae+x}}function Fe(a,y,E,x){if(!a)return x(y,E,"ltr",0);for(var ee=!1,ae=0;ae<a.length;++ae){var ce=a[ae];(ce.from<E&&ce.to>y||y==E&&ce.to==y)&&(x(Math.max(ce.from,y),Math.min(ce.to,E),ce.level==1?"rtl":"ltr",ae),ee=!0)}ee||x(y,E,"ltr")}var qe=null;function nt(a,y,E){var x;qe=null;for(var ee=0;ee<a.length;++ee){var ae=a[ee];if(ae.from<y&&ae.to>y)return ee;ae.to==y&&(ae.from!=ae.to&&E=="before"?x=ee:qe=ee),ae.from==y&&(ae.from!=ae.to&&E!="before"?x=ee:qe=ee)}return x!=null?x:qe}var st=function(){var a="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",y="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function E(Ue){return Ue<=247?a.charAt(Ue):1424<=Ue&&Ue<=1524?"R":1536<=Ue&&Ue<=1785?y.charAt(Ue-1536):1774<=Ue&&Ue<=2220?"r":8192<=Ue&&Ue<=8203?"w":Ue==8204?"b":"L"}var x=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,ee=/[stwN]/,ae=/[LRr]/,ce=/[Lb1n]/,ye=/[1n]/;function Ie(Ue,rn,mn){this.level=Ue,this.from=rn,this.to=mn}return function(Ue,rn){var mn=rn=="ltr"?"L":"R";if(Ue.length==0||rn=="ltr"&&!x.test(Ue))return!1;for(var Qn=Ue.length,Wn=[],Br=0;Br<Qn;++Br)Wn.push(E(Ue.charCodeAt(Br)));for(var Mr=0,Vr=mn;Mr<Qn;++Mr){var oo=Wn[Mr];oo=="m"?Wn[Mr]=Vr:Vr=oo}for(var go=0,ao=mn;go<Qn;++go){var So=Wn[go];So=="1"&&ao=="r"?Wn[go]="n":ae.test(So)&&(ao=So,So=="r"&&(Wn[go]="R"))}for(var jo=1,Ro=Wn[0];jo<Qn-1;++jo){var sa=Wn[jo];sa=="+"&&Ro=="1"&&Wn[jo+1]=="1"?Wn[jo]="1":sa==","&&Ro==Wn[jo+1]&&(Ro=="1"||Ro=="n")&&(Wn[jo]=Ro),Ro=sa}for(var Za=0;Za<Qn;++Za){var Ai=Wn[Za];if(Ai==",")Wn[Za]="N";else if(Ai=="%"){var ei=void 0;for(ei=Za+1;ei<Qn&&Wn[ei]=="%";++ei);for(var ll=Za&&Wn[Za-1]=="!"||ei<Qn&&Wn[ei]=="1"?"1":"N",qi=Za;qi<ei;++qi)Wn[qi]=ll;Za=ei-1}}for(var mi=0,_i=mn;mi<Qn;++mi){var Li=Wn[mi];_i=="L"&&Li=="1"?Wn[mi]="L":ae.test(Li)&&(_i=Li)}for(var Si=0;Si<Qn;++Si)if(ee.test(Wn[Si])){var gi=void 0;for(gi=Si+1;gi<Qn&&ee.test(Wn[gi]);++gi);for(var oi=(Si?Wn[Si-1]:mn)=="L",el=(gi<Qn?Wn[gi]:mn)=="L",Rs=oi==el?oi?"L":"R":mn,ss=Si;ss<gi;++ss)Wn[ss]=Rs;Si=gi-1}for(var Ki=[],Rl,Fi=0;Fi<Qn;)if(ce.test(Wn[Fi])){var Ou=Fi;for(++Fi;Fi<Qn&&ce.test(Wn[Fi]);++Fi);Ki.push(new Ie(0,Ou,Fi))}else{var ql=Fi,bs=Ki.length,Cs=rn=="rtl"?1:0;for(++Fi;Fi<Qn&&Wn[Fi]!="L";++Fi);for(var Ui=ql;Ui<Fi;)if(ye.test(Wn[Ui])){ql<Ui&&(Ki.splice(bs,0,new Ie(1,ql,Ui)),bs+=Cs);var ks=Ui;for(++Ui;Ui<Fi&&ye.test(Wn[Ui]);++Ui);Ki.splice(bs,0,new Ie(2,ks,Ui)),bs+=Cs,ql=Ui}else++Ui;ql<Fi&&Ki.splice(bs,0,new Ie(1,ql,Fi))}return rn=="ltr"&&(Ki[0].level==1&&(Rl=Ue.match(/^\s+/))&&(Ki[0].from=Rl[0].length,Ki.unshift(new Ie(0,0,Rl[0].length))),vt(Ki).level==1&&(Rl=Ue.match(/\s+$/))&&(vt(Ki).to-=Rl[0].length,Ki.push(new Ie(0,Qn-Rl[0].length,Qn)))),rn=="rtl"?Ki.reverse():Ki}}();function we(a,y){var E=a.order;return E==null&&(E=a.order=st(a.text,y)),E}var Be=[],It=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]||Be).concat(E)}};function Mt(a,y){return a._handlers&&a._handlers[y]||Be}function kt(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,ee=x&&x[y];if(ee){var ae=Ct(ee,E);ae>-1&&(x[y]=ee.slice(0,ae).concat(ee.slice(ae+1)))}}}function Yt(a,y){var E=Mt(a,y);if(E.length)for(var x=Array.prototype.slice.call(arguments,2),ee=0;ee<E.length;++ee)E[ee].apply(null,x)}function At(a,y,E){return typeof y=="string"&&(y={type:y,preventDefault:function(){this.defaultPrevented=!0}}),Yt(a,E||y.type,a,y),on(y)||y.codemirrorIgnore}function vn(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)Ct(E,y[x])==-1&&E.push(y[x])}function Gt(a,y){return Mt(a,y).length>0}function _e(a){a.prototype.on=function(y,E){It(this,y,E)},a.prototype.off=function(y,E){kt(this,y,E)}}function Bt(a){a.preventDefault?a.preventDefault():a.returnValue=!1}function Ut(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0}function on(a){return a.defaultPrevented!=null?a.defaultPrevented:a.returnValue==!1}function Le(a){Bt(a),Ut(a)}function xt(a){return a.target||a.srcElement}function zt(a){var y=a.which;return y==null&&(a.button&1?y=1:a.button&2?y=3:a.button&4&&(y=2)),Ze&&a.ctrlKey&&y==1&&(y=3),y}var nn=function(){if(xe&&ge<9)return!1;var a=yt("div");return"draggable"in a||"dragDrop"in a}(),Sn;function zn(a){if(Sn==null){var y=yt("span","\u200B");Ot(a,yt("span",[y,document.createTextNode("x")])),a.firstChild.offsetHeight!=0&&(Sn=y.offsetWidth<=1&&y.offsetHeight>2&&!(xe&&ge<8))}var E=Sn?yt("span","\u200B"):yt("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return E.setAttribute("cm-text",""),E}var rr;function pr(a){if(rr!=null)return rr;var y=Ot(a,document.createTextNode("A\u062EA")),E=pe(y,0,1).getBoundingClientRect(),x=pe(y,1,2).getBoundingClientRect();return jt(a),!E||E.left==E.right?!1:rr=x.right-E.right<3}var kn=`
|
|
|
|
|
|
b`.split(/\n/).length!=3?function(a){for(var y=0,E=[],x=a.length;y<=x;){var ee=a.indexOf(`
|
|
|
`,y);ee==-1&&(ee=a.length);var ae=a.slice(y,a.charAt(ee-1)=="\r"?ee-1:ee),ce=ae.indexOf("\r");ce!=-1?(E.push(ae.slice(0,ce)),y+=ce+1):(E.push(ae),y=ee+1)}return E}:function(a){return a.split(/\r\n?|\n/)},dr=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},Ye=function(){var a=yt("div");return"oncopy"in a?!0:(a.setAttribute("oncopy","return;"),typeof a.oncopy=="function")}(),Qt=null;function yn(a){if(Qt!=null)return Qt;var y=Ot(a,yt("span","x")),E=y.getBoundingClientRect(),x=pe(y,0,1).getBoundingClientRect();return Qt=Math.abs(E.left-x.left)>1}var xn={},qt={};function En(a,y){arguments.length>2&&(y.dependencies=Array.prototype.slice.call(arguments,2)),xn[a]=y}function Fn(a,y){qt[a]=y}function Tn(a){if(typeof a=="string"&&qt.hasOwnProperty(a))a=qt[a];else if(a&&typeof a.name=="string"&&qt.hasOwnProperty(a.name)){var y=qt[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 Tn("application/xml");if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(a))return Tn("application/json")}return typeof a=="string"?{name:a}:a||{name:"null"}}function _t(a,y){y=Tn(y);var E=xn[y.name];if(!E)return _t(a,"text/plain");var x=E(a,y);if(Cn.hasOwnProperty(y.name)){var ee=Cn[y.name];for(var ae in ee)ee.hasOwnProperty(ae)&&(x.hasOwnProperty(ae)&&(x["_"+ae]=x[ae]),x[ae]=ee[ae])}if(x.name=y.name,y.helperType&&(x.helperType=y.helperType),y.modeProps)for(var ce in y.modeProps)x[ce]=y.modeProps[ce];return x}var Cn={};function Bn(a,y){var E=Cn.hasOwnProperty(a)?Cn[a]:Cn[a]={};ln(y,E)}function Ln(a,y){if(y===!0)return y;if(a.copyState)return a.copyState(y);var E={};for(var x in y){var ee=y[x];ee instanceof Array&&(ee=ee.concat([])),E[x]=ee}return E}function Zn(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 yr(a,y,E){return a.startState?a.startState(y,E):!0}var ur=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};ur.prototype.eol=function(){return this.pos>=this.string.length},ur.prototype.sol=function(){return this.pos==this.lineStart},ur.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},ur.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},ur.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},ur.prototype.eatWhile=function(a){for(var y=this.pos;this.eat(a););return this.pos>y},ur.prototype.eatSpace=function(){for(var a=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>a},ur.prototype.skipToEnd=function(){this.pos=this.string.length},ur.prototype.skipTo=function(a){var y=this.string.indexOf(a,this.pos);if(y>-1)return this.pos=y,!0},ur.prototype.backUp=function(a){this.pos-=a},ur.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=ke(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?ke(this.string,this.lineStart,this.tabSize):0)},ur.prototype.indentation=function(){return ke(this.string,null,this.tabSize)-(this.lineStart?ke(this.string,this.lineStart,this.tabSize):0)},ur.prototype.match=function(a,y,E){if(typeof a=="string"){var x=function(ce){return E?ce.toLowerCase():ce},ee=this.string.substr(this.pos,a.length);if(x(ee)==x(a))return y!==!1&&(this.pos+=a.length),!0}else{var ae=this.string.slice(this.pos).match(a);return ae&&ae.index>0?null:(ae&&y!==!1&&(this.pos+=ae[0].length),ae)}},ur.prototype.current=function(){return this.string.slice(this.start,this.pos)},ur.prototype.hideFirstChars=function(a,y){this.lineStart+=a;try{return y()}finally{this.lineStart-=a}},ur.prototype.lookAhead=function(a){var y=this.lineOracle;return y&&y.lookAhead(a)},ur.prototype.baseToken=function(){var a=this.lineOracle;return a&&a.baseToken(this.pos)};function Jt(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 ee=E.children[x],ae=ee.chunkSize();if(y<ae){E=ee;break}y-=ae}return E.lines[y]}function wn(a,y,E){var x=[],ee=y.line;return a.iter(y.line,E.line+1,function(ae){var ce=ae.text;ee==E.line&&(ce=ce.slice(0,E.ch)),ee==y.line&&(ce=ce.slice(y.ch)),x.push(ce),++ee}),x}function un(a,y,E){var x=[];return a.iter(y,E,function(ee){x.push(ee.text)}),x}function sn(a,y){var E=y-a.height;if(E)for(var x=a;x;x=x.parent)x.height+=E}function We(a){if(a.parent==null)return null;for(var y=a.parent,E=Ct(y.lines,a),x=y.parent;x;y=x,x=x.parent)for(var ee=0;x.children[ee]!=y;++ee)E+=x.children[ee].chunkSize();return E+y.first}function dt(a,y){var E=a.first;e:do{for(var x=0;x<a.children.length;++x){var ee=a.children[x],ae=ee.height;if(y<ae){a=ee;continue e}y-=ae,E+=ee.chunkSize()}return E}while(!a.lines);for(var ce=0;ce<a.lines.length;++ce){var ye=a.lines[ce],Ie=ye.height;if(y<Ie)break;y-=Ie}return E+ce}function ze(a,y){return y>=a.first&&y<a.first+a.size}function gt(a,y){return String(a.lineNumberFormatter(y+a.firstLineNumber))}function $e(a,y,E){if(E===void 0&&(E=null),!(this instanceof $e))return new $e(a,y,E);this.line=a,this.ch=y,this.sticky=E}function St(a,y){return a.line-y.line||a.ch-y.ch}function Oe(a,y){return a.sticky==y.sticky&&St(a,y)==0}function Ft(a){return $e(a.line,a.ch)}function Zt(a,y){return St(a,y)<0?y:a}function De(a,y){return St(a,y)<0?a:y}function Te(a,y){return Math.max(a.first,Math.min(y,a.first+a.size-1))}function Me(a,y){if(y.line<a.first)return $e(a.first,0);var E=a.first+a.size-1;return y.line>E?$e(E,Jt(a,E).text.length):je(y,Jt(a,y.line).text.length)}function je(a,y){var E=a.ch;return E==null||E>y?$e(a.line,y):E<0?$e(a.line,0):a}function it(a,y){for(var E=[],x=0;x<y.length;x++)E[x]=Me(a,y[x]);return E}var an=function(a,y){this.state=a,this.lookAhead=y},dn=function(a,y,E,x){this.state=y,this.doc=a,this.line=E,this.maxLookAhead=x||0,this.baseTokens=null,this.baseTokenPos=1};dn.prototype.lookAhead=function(a){var y=this.doc.getLine(this.line+a);return y!=null&&a>this.maxLookAhead&&(this.maxLookAhead=a),y},dn.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}},dn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},dn.fromSaved=function(a,y,E){return y instanceof an?new dn(a,Ln(a.mode,y.state),E,y.lookAhead):new dn(a,Ln(a.mode,y),E)},dn.prototype.save=function(a){var y=a!==!1?Ln(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new an(y,this.maxLookAhead):y};function hn(a,y,E,x){var ee=[a.state.modeGen],ae={};bt(a,y.text,a.doc.mode,E,function(Ue,rn){return ee.push(Ue,rn)},ae,x);for(var ce=E.state,ye=function(Ue){E.baseTokens=ee;var rn=a.state.overlays[Ue],mn=1,Qn=0;E.state=!0,bt(a,y.text,rn.mode,E,function(Wn,Br){for(var Mr=mn;Qn<Wn;){var Vr=ee[mn];Vr>Wn&&ee.splice(mn,1,Wn,ee[mn+1],Vr),mn+=2,Qn=Math.min(Wn,Vr)}if(Br)if(rn.opaque)ee.splice(Mr,mn-Mr,Wn,"overlay "+Br),mn=Mr+2;else for(;Mr<mn;Mr+=2){var oo=ee[Mr+1];ee[Mr+1]=(oo?oo+" ":"")+"overlay "+Br}},ae),E.state=ce,E.baseTokens=null,E.baseTokenPos=1},Ie=0;Ie<a.state.overlays.length;++Ie)ye(Ie);return{styles:ee,classes:ae.bgClass||ae.textClass?ae:null}}function $n(a,y,E){if(!y.styles||y.styles[0]!=a.state.modeGen){var x=ar(a,We(y)),ee=y.text.length>a.options.maxHighlightLength&&Ln(a.doc.mode,x.state),ae=hn(a,y,x);ee&&(x.state=ee),y.stateAfter=x.save(!ee),y.styles=ae.styles,ae.classes?y.styleClasses=ae.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 ar(a,y,E){var x=a.doc,ee=a.display;if(!x.mode.startState)return new dn(x,!0,y);var ae=Vt(a,y,E),ce=ae>x.first&&Jt(x,ae-1).stateAfter,ye=ce?dn.fromSaved(x,ce,ae):new dn(x,yr(x.mode),ae);return x.iter(ae,y,function(Ie){Cr(a,Ie.text,ye);var Ue=ye.line;Ie.stateAfter=Ue==y-1||Ue%5==0||Ue>=ee.viewFrom&&Ue<ee.viewTo?ye.save():null,ye.nextLine()}),E&&(x.modeFrontier=ye.line),ye}function Cr(a,y,E,x){var ee=a.doc.mode,ae=new ur(y,a.options.tabSize,E);for(ae.start=ae.pos=x||0,y==""&&qn(ee,E.state);!ae.eol();)Gn(ee,ae,E.state),ae.start=ae.pos}function qn(a,y){if(a.blankLine)return a.blankLine(y);if(a.innerMode){var E=Zn(a,y);if(E.mode.blankLine)return E.mode.blankLine(E.state)}}function Gn(a,y,E,x){for(var ee=0;ee<10;ee++){x&&(x[0]=Zn(a,E).mode);var ae=a.token(y,E);if(y.pos>y.start)return ae}throw new Error("Mode "+a.name+" failed to advance stream.")}var Jn=function(a,y,E){this.start=a.start,this.end=a.pos,this.string=a.current(),this.type=y||null,this.state=E};function gr(a,y,E,x){var ee=a.doc,ae=ee.mode,ce;y=Me(ee,y);var ye=Jt(ee,y.line),Ie=ar(a,y.line,E),Ue=new ur(ye.text,a.options.tabSize,Ie),rn;for(x&&(rn=[]);(x||Ue.pos<y.ch)&&!Ue.eol();)Ue.start=Ue.pos,ce=Gn(ae,Ue,Ie.state),x&&rn.push(new Jn(Ue,ce,Ln(ee.mode,Ie.state)));return x?rn:new Jn(Ue,ce,Ie.state)}function Ge(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 bt(a,y,E,x,ee,ae,ce){var ye=E.flattenSpans;ye==null&&(ye=a.options.flattenSpans);var Ie=0,Ue=null,rn=new ur(y,a.options.tabSize,x),mn,Qn=a.options.addModeClass&&[null];for(y==""&&Ge(qn(E,x.state),ae);!rn.eol();){if(rn.pos>a.options.maxHighlightLength?(ye=!1,ce&&Cr(a,y,x,rn.pos),rn.pos=y.length,mn=null):mn=Ge(Gn(E,rn,x.state,Qn),ae),Qn){var Wn=Qn[0].name;Wn&&(mn="m-"+(mn?Wn+" "+mn:Wn))}if(!ye||Ue!=mn){for(;Ie<rn.start;)Ie=Math.min(rn.start,Ie+5e3),ee(Ie,Ue);Ue=mn}rn.start=rn.pos}for(;Ie<rn.pos;){var Br=Math.min(rn.pos,Ie+5e3);ee(Br,Ue),Ie=Br}}function Vt(a,y,E){for(var x,ee,ae=a.doc,ce=E?-1:y-(a.doc.mode.innerMode?1e3:100),ye=y;ye>ce;--ye){if(ye<=ae.first)return ae.first;var Ie=Jt(ae,ye-1),Ue=Ie.stateAfter;if(Ue&&(!E||ye+(Ue instanceof an?Ue.lookAhead:0)<=ae.modeFrontier))return ye;var rn=ke(Ie.text,null,a.options.tabSize);(ee==null||x>rn)&&(ee=ye-1,x=rn)}return ee}function Ht(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 ee=Jt(a,x).stateAfter;if(ee&&(!(ee instanceof an)||x+ee.lookAhead<y)){E=x+1;break}}a.highlightFrontier=Math.min(a.highlightFrontier,E)}}var tn=!1,An=!1;function Vn(){tn=!0}function tr(){An=!0}function Nn(a,y,E){this.marker=a,this.from=y,this.to=E}function or(a,y){if(a)for(var E=0;E<a.length;++E){var x=a[E];if(x.marker==y)return x}}function cr(a,y){for(var E,x=0;x<a.length;++x)a[x]!=y&&(E||(E=[])).push(a[x]);return E}function nr(a,y){a.markedSpans=a.markedSpans?a.markedSpans.concat([y]):[y],y.marker.attachLine(a)}function hr(a,y,E){var x;if(a)for(var ee=0;ee<a.length;++ee){var ae=a[ee],ce=ae.marker,ye=ae.from==null||(ce.inclusiveLeft?ae.from<=y:ae.from<y);if(ye||ae.from==y&&ce.type=="bookmark"&&(!E||!ae.marker.insertLeft)){var Ie=ae.to==null||(ce.inclusiveRight?ae.to>=y:ae.to>y);(x||(x=[])).push(new Nn(ce,ae.from,Ie?null:ae.to))}}return x}function lr(a,y,E){var x;if(a)for(var ee=0;ee<a.length;++ee){var ae=a[ee],ce=ae.marker,ye=ae.to==null||(ce.inclusiveRight?ae.to>=y:ae.to>y);if(ye||ae.from==y&&ce.type=="bookmark"&&(!E||ae.marker.insertLeft)){var Ie=ae.from==null||(ce.inclusiveLeft?ae.from<=y:ae.from<y);(x||(x=[])).push(new Nn(ce,Ie?null:ae.from-y,ae.to==null?null:ae.to-y))}}return x}function Er(a,y){if(y.full)return null;var E=ze(a,y.from.line)&&Jt(a,y.from.line).markedSpans,x=ze(a,y.to.line)&&Jt(a,y.to.line).markedSpans;if(!E&&!x)return null;var ee=y.from.ch,ae=y.to.ch,ce=St(y.from,y.to)==0,ye=hr(E,ee,ce),Ie=lr(x,ae,ce),Ue=y.text.length==1,rn=vt(y.text).length+(Ue?ee:0);if(ye)for(var mn=0;mn<ye.length;++mn){var Qn=ye[mn];if(Qn.to==null){var Wn=or(Ie,Qn.marker);Wn?Ue&&(Qn.to=Wn.to==null?null:Wn.to+rn):Qn.to=ee}}if(Ie)for(var Br=0;Br<Ie.length;++Br){var Mr=Ie[Br];if(Mr.to!=null&&(Mr.to+=rn),Mr.from==null){var Vr=or(ye,Mr.marker);Vr||(Mr.from=rn,Ue&&(ye||(ye=[])).push(Mr))}else Mr.from+=rn,Ue&&(ye||(ye=[])).push(Mr)}ye&&(ye=Ir(ye)),Ie&&Ie!=ye&&(Ie=Ir(Ie));var oo=[ye];if(!Ue){var go=y.text.length-2,ao;if(go>0&&ye)for(var So=0;So<ye.length;++So)ye[So].to==null&&(ao||(ao=[])).push(new Nn(ye[So].marker,null,null));for(var jo=0;jo<go;++jo)oo.push(ao);oo.push(Ie)}return oo}function Ir(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 zr(a,y,E){var x=null;if(a.iter(y.line,E.line+1,function(Wn){if(Wn.markedSpans)for(var Br=0;Br<Wn.markedSpans.length;++Br){var Mr=Wn.markedSpans[Br].marker;Mr.readOnly&&(!x||Ct(x,Mr)==-1)&&(x||(x=[])).push(Mr)}}),!x)return null;for(var ee=[{from:y,to:E}],ae=0;ae<x.length;++ae)for(var ce=x[ae],ye=ce.find(0),Ie=0;Ie<ee.length;++Ie){var Ue=ee[Ie];if(!(St(Ue.to,ye.from)<0||St(Ue.from,ye.to)>0)){var rn=[Ie,1],mn=St(Ue.from,ye.from),Qn=St(Ue.to,ye.to);(mn<0||!ce.inclusiveLeft&&!mn)&&rn.push({from:Ue.from,to:ye.from}),(Qn>0||!ce.inclusiveRight&&!Qn)&&rn.push({from:ye.to,to:Ue.to}),ee.splice.apply(ee,rn),Ie+=rn.length-3}}return ee}function Pr(a){var y=a.markedSpans;if(y){for(var E=0;E<y.length;++E)y[E].marker.detachLine(a);a.markedSpans=null}}function Or(a,y){if(y){for(var E=0;E<y.length;++E)y[E].marker.attachLine(a);a.markedSpans=y}}function Sr(a){return a.inclusiveLeft?-1:0}function Tr(a){return a.inclusiveRight?1:0}function br(a,y){var E=a.lines.length-y.lines.length;if(E!=0)return E;var x=a.find(),ee=y.find(),ae=St(x.from,ee.from)||Sr(a)-Sr(y);if(ae)return-ae;var ce=St(x.to,ee.to)||Tr(a)-Tr(y);return ce||y.id-a.id}function wr(a,y){var E=An&&a.markedSpans,x;if(E)for(var ee=void 0,ae=0;ae<E.length;++ae)ee=E[ae],ee.marker.collapsed&&(y?ee.from:ee.to)==null&&(!x||br(x,ee.marker)<0)&&(x=ee.marker);return x}function _n(a){return wr(a,!0)}function In(a){return wr(a,!1)}function er(a,y){var E=An&&a.markedSpans,x;if(E)for(var ee=0;ee<E.length;++ee){var ae=E[ee];ae.marker.collapsed&&(ae.from==null||ae.from<y)&&(ae.to==null||ae.to>y)&&(!x||br(x,ae.marker)<0)&&(x=ae.marker)}return x}function Rn(a,y,E,x,ee){var ae=Jt(a,y),ce=An&&ae.markedSpans;if(ce)for(var ye=0;ye<ce.length;++ye){var Ie=ce[ye];if(Ie.marker.collapsed){var Ue=Ie.marker.find(0),rn=St(Ue.from,E)||Sr(Ie.marker)-Sr(ee),mn=St(Ue.to,x)||Tr(Ie.marker)-Tr(ee);if(!(rn>=0&&mn<=0||rn<=0&&mn>=0)&&(rn<=0&&(Ie.marker.inclusiveRight&&ee.inclusiveLeft?St(Ue.to,E)>=0:St(Ue.to,E)>0)||rn>=0&&(Ie.marker.inclusiveRight&&ee.inclusiveLeft?St(Ue.from,x)<=0:St(Ue.from,x)<0)))return!0}}}function bn(a){for(var y;y=_n(a);)a=y.find(-1,!0).line;return a}function ir(a){for(var y;y=In(a);)a=y.find(1,!0).line;return a}function mr(a){for(var y,E;y=In(a);)a=y.find(1,!0).line,(E||(E=[])).push(a);return E}function On(a,y){var E=Jt(a,y),x=bn(E);return E==x?y:We(x)}function Hn(a,y){if(y>a.lastLine())return y;var E=Jt(a,y),x;if(!Xn(a,E))return y;for(;x=In(E);)E=x.find(1,!0).line;return We(E)+1}function Xn(a,y){var E=An&&y.markedSpans;if(E){for(var x=void 0,ee=0;ee<E.length;++ee)if(x=E[ee],!!x.marker.collapsed){if(x.from==null)return!0;if(!x.marker.widgetNode&&x.from==0&&x.marker.inclusiveLeft&&vr(a,y,x))return!0}}}function vr(a,y,E){if(E.to==null){var x=E.marker.find(1,!0);return vr(a,x.line,or(x.line.markedSpans,E.marker))}if(E.marker.inclusiveRight&&E.to==y.text.length)return!0;for(var ee=void 0,ae=0;ae<y.markedSpans.length;++ae)if(ee=y.markedSpans[ae],ee.marker.collapsed&&!ee.marker.widgetNode&&ee.from==E.to&&(ee.to==null||ee.to!=E.from)&&(ee.marker.inclusiveLeft||E.marker.inclusiveRight)&&vr(a,y,ee))return!0}function Ar(a){a=bn(a);for(var y=0,E=a.parent,x=0;x<E.lines.length;++x){var ee=E.lines[x];if(ee==a)break;y+=ee.height}for(var ae=E.parent;ae;E=ae,ae=E.parent)for(var ce=0;ce<ae.children.length;++ce){var ye=ae.children[ce];if(ye==E)break;y+=ye.height}return y}function Fr(a){if(a.height==0)return 0;for(var y=a.text.length,E,x=a;E=_n(x);){var ee=E.find(0,!0);x=ee.from.line,y+=ee.from.ch-ee.to.ch}for(x=a;E=In(x);){var ae=E.find(0,!0);y-=x.text.length-ae.from.ch,x=ae.to.line,y+=x.text.length-ae.to.ch}return y}function Rr(a){var y=a.display,E=a.doc;y.maxLine=Jt(E,E.first),y.maxLineLength=Fr(y.maxLine),y.maxLineChanged=!0,E.iter(function(x){var ee=Fr(x);ee>y.maxLineLength&&(y.maxLineLength=ee,y.maxLine=x)})}var Ur=function(a,y,E){this.text=a,Or(this,y),this.height=E?E(this):1};Ur.prototype.lineNo=function(){return We(this)},_e(Ur);function jr(a,y,E,x){a.text=y,a.stateAfter&&(a.stateAfter=null),a.styles&&(a.styles=null),a.order!=null&&(a.order=null),Pr(a),Or(a,E);var ee=x?x(a):1;ee!=a.height&&sn(a,ee)}function ro(a){a.parent=null,Pr(a)}var Yr={},Xr={};function eo(a,y){if(!a||/^\s*$/.test(a))return null;var E=y.addModeClass?Xr:Yr;return E[a]||(E[a]=a.replace(/\S+/g,"cm-$&"))}function vo(a,y){var E=Et("span",null,null,Ee?"padding-right: .1px":null),x={pre:Et("pre",[E],"CodeMirror-line"),content:E,col:0,pos:0,cm:a,trailingSpace:!1,splitSpaces:a.getOption("lineWrapping")};y.measure={};for(var ee=0;ee<=(y.rest?y.rest.length:0);ee++){var ae=ee?y.rest[ee-1]:y.line,ce=void 0;x.pos=0,x.addToken=Yo,pr(a.display.measure)&&(ce=we(ae,a.doc.direction))&&(x.addToken=Ko(x.addToken,ce)),x.map=[];var ye=y!=a.display.externalMeasured&&We(ae);Qr(ae,x,$n(a,ae,ye)),ae.styleClasses&&(ae.styleClasses.bgClass&&(x.bgClass=Nt(ae.styleClasses.bgClass,x.bgClass||"")),ae.styleClasses.textClass&&(x.textClass=Nt(ae.styleClasses.textClass,x.textClass||""))),x.map.length==0&&x.map.push(0,0,x.content.appendChild(zn(a.display.measure))),ee==0?(y.measure.map=x.map,y.measure.cache={}):((y.measure.maps||(y.measure.maps=[])).push(x.map),(y.measure.caches||(y.measure.caches=[])).push({}))}if(Ee){var Ie=x.content.lastChild;(/\bcm-tab\b/.test(Ie.className)||Ie.querySelector&&Ie.querySelector(".cm-tab"))&&(x.content.className="cm-tab-wrap-hack")}return Yt(a,"renderLine",a,y.line,x.pre),x.pre.className&&(x.textClass=Nt(x.pre.className,x.textClass||"")),x}function Fo(a){var y=yt("span","\u2022","cm-invalidchar");return y.title="\\u"+a.charCodeAt(0).toString(16),y.setAttribute("aria-label",y.title),y}function Yo(a,y,E,x,ee,ae,ce){if(y){var ye=a.splitSpaces?Bo(y,a.trailingSpace):y,Ie=a.cm.state.specialChars,Ue=!1,rn;if(!Ie.test(y))a.col+=y.length,rn=document.createTextNode(ye),a.map.push(a.pos,a.pos+y.length,rn),xe&&ge<9&&(Ue=!0),a.pos+=y.length;else{rn=document.createDocumentFragment();for(var mn=0;;){Ie.lastIndex=mn;var Qn=Ie.exec(y),Wn=Qn?Qn.index-mn:y.length-mn;if(Wn){var Br=document.createTextNode(ye.slice(mn,mn+Wn));xe&&ge<9?rn.appendChild(yt("span",[Br])):rn.appendChild(Br),a.map.push(a.pos,a.pos+Wn,Br),a.col+=Wn,a.pos+=Wn}if(!Qn)break;mn+=Wn+1;var Mr=void 0;if(Qn[0]==" "){var Vr=a.cm.options.tabSize,oo=Vr-a.col%Vr;Mr=rn.appendChild(yt("span",$t(oo),"cm-tab")),Mr.setAttribute("role","presentation"),Mr.setAttribute("cm-text"," "),a.col+=oo}else Qn[0]=="\r"||Qn[0]==`
|
|
|
`?(Mr=rn.appendChild(yt("span",Qn[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Mr.setAttribute("cm-text",Qn[0]),a.col+=1):(Mr=a.cm.options.specialCharPlaceholder(Qn[0]),Mr.setAttribute("cm-text",Qn[0]),xe&&ge<9?rn.appendChild(yt("span",[Mr])):rn.appendChild(Mr),a.col+=1);a.map.push(a.pos,a.pos+1,Mr),a.pos++}}if(a.trailingSpace=ye.charCodeAt(y.length-1)==32,E||x||ee||Ue||ae||ce){var go=E||"";x&&(go+=x),ee&&(go+=ee);var ao=yt("span",[rn],go,ae);if(ce)for(var So in ce)ce.hasOwnProperty(So)&&So!="style"&&So!="class"&&ao.setAttribute(So,ce[So]);return a.content.appendChild(ao)}a.content.appendChild(rn)}}function Bo(a,y){if(a.length>1&&!/ /.test(a))return a;for(var E=y,x="",ee=0;ee<a.length;ee++){var ae=a.charAt(ee);ae==" "&&E&&(ee==a.length-1||a.charCodeAt(ee+1)==32)&&(ae="\xA0"),x+=ae,E=ae==" "}return x}function Ko(a,y){return function(E,x,ee,ae,ce,ye,Ie){ee=ee?ee+" cm-force-border":"cm-force-border";for(var Ue=E.pos,rn=Ue+x.length;;){for(var mn=void 0,Qn=0;Qn<y.length&&(mn=y[Qn],!(mn.to>Ue&&mn.from<=Ue));Qn++);if(mn.to>=rn)return a(E,x,ee,ae,ce,ye,Ie);a(E,x.slice(0,mn.to-Ue),ee,ae,null,ye,Ie),ae=null,x=x.slice(mn.to-Ue),Ue=mn.to}}}function Jr(a,y,E,x){var ee=!x&&E.widgetNode;ee&&a.map.push(a.pos,a.pos+y,ee),!x&&a.cm.display.input.needsContentAttribute&&(ee||(ee=a.content.appendChild(document.createElement("span"))),ee.setAttribute("cm-marker",E.id)),ee&&(a.cm.display.input.setUneditable(ee),a.content.appendChild(ee)),a.pos+=y,a.trailingSpace=!1}function Qr(a,y,E){var x=a.markedSpans,ee=a.text,ae=0;if(!x){for(var ce=1;ce<E.length;ce+=2)y.addToken(y,ee.slice(ae,ae=E[ce]),eo(E[ce+1],y.cm.options));return}for(var ye=ee.length,Ie=0,Ue=1,rn="",mn,Qn,Wn=0,Br,Mr,Vr,oo,go;;){if(Wn==Ie){Br=Mr=Vr=Qn="",go=null,oo=null,Wn=1/0;for(var ao=[],So=void 0,jo=0;jo<x.length;++jo){var Ro=x[jo],sa=Ro.marker;if(sa.type=="bookmark"&&Ro.from==Ie&&sa.widgetNode)ao.push(sa);else if(Ro.from<=Ie&&(Ro.to==null||Ro.to>Ie||sa.collapsed&&Ro.to==Ie&&Ro.from==Ie)){if(Ro.to!=null&&Ro.to!=Ie&&Wn>Ro.to&&(Wn=Ro.to,Mr=""),sa.className&&(Br+=" "+sa.className),sa.css&&(Qn=(Qn?Qn+";":"")+sa.css),sa.startStyle&&Ro.from==Ie&&(Vr+=" "+sa.startStyle),sa.endStyle&&Ro.to==Wn&&(So||(So=[])).push(sa.endStyle,Ro.to),sa.title&&((go||(go={})).title=sa.title),sa.attributes)for(var Za in sa.attributes)(go||(go={}))[Za]=sa.attributes[Za];sa.collapsed&&(!oo||br(oo.marker,sa)<0)&&(oo=Ro)}else Ro.from>Ie&&Wn>Ro.from&&(Wn=Ro.from)}if(So)for(var Ai=0;Ai<So.length;Ai+=2)So[Ai+1]==Wn&&(Mr+=" "+So[Ai]);if(!oo||oo.from==Ie)for(var ei=0;ei<ao.length;++ei)Jr(y,0,ao[ei]);if(oo&&(oo.from||0)==Ie){if(Jr(y,(oo.to==null?ye+1:oo.to)-Ie,oo.marker,oo.from==null),oo.to==null)return;oo.to==Ie&&(oo=!1)}}if(Ie>=ye)break;for(var ll=Math.min(ye,Wn);;){if(rn){var qi=Ie+rn.length;if(!oo){var mi=qi>ll?rn.slice(0,ll-Ie):rn;y.addToken(y,mi,mn?mn+Br:Br,Vr,Ie+mi.length==Wn?Mr:"",Qn,go)}if(qi>=ll){rn=rn.slice(ll-Ie),Ie=ll;break}Ie=qi,Vr=""}rn=ee.slice(ae,ae=E[Ue++]),mn=eo(E[Ue++],y.cm.options)}}}function Vo(a,y,E){this.line=y,this.rest=mr(y),this.size=this.rest?We(vt(this.rest))-E+1:1,this.node=this.text=null,this.hidden=Xn(a,y)}function Wo(a,y,E){for(var x=[],ee,ae=y;ae<E;ae=ee){var ce=new Vo(a.doc,Jt(a.doc,ae),ae);ee=ae+ce.size,x.push(ce)}return x}var po=null;function ko(a){po?po.ops.push(a):a.ownsGroup=po={ops:[a],delayedCallbacks:[]}}function Xo(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 ee=a.ops[x];if(ee.cursorActivityHandlers)for(;ee.cursorActivityCalled<ee.cursorActivityHandlers.length;)ee.cursorActivityHandlers[ee.cursorActivityCalled++].call(null,ee.cm)}}while(E<y.length)}function Ao(a,y){var E=a.ownsGroup;if(E)try{Xo(E)}finally{po=null,y(E)}}var Zo=null;function Ho(a,y){var E=Mt(a,y);if(E.length){var x=Array.prototype.slice.call(arguments,2),ee;po?ee=po.delayedCallbacks:Zo?ee=Zo:(ee=Zo=[],setTimeout(ba,0));for(var ae=function(ye){ee.push(function(){return E[ye].apply(null,x)})},ce=0;ce<E.length;++ce)ae(ce)}}function ba(){var a=Zo;Zo=null;for(var y=0;y<a.length;++y)a[y]()}function Ha(a,y,E,x){for(var ee=0;ee<y.changes.length;ee++){var ae=y.changes[ee];ae=="text"?wi(a,y):ae=="gutter"?Lo(a,y,E,x):ae=="class"?Io(a,y):ae=="widget"&&Wr(a,y,x)}y.changes=null}function xa(a){return a.node==a.text&&(a.node=yt("div",null,null,"position: relative"),a.text.parentNode&&a.text.parentNode.replaceChild(a.node,a.text),a.node.appendChild(a.text),xe&&ge<8&&(a.node.style.zIndex=2)),a.node}function ga(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=xa(y);y.background=x.insertBefore(yt("div",null,E),x.firstChild),a.display.input.setUneditable(y.background)}}function Ei(a,y){var E=a.display.externalMeasured;return E&&E.line==y.line?(a.display.externalMeasured=null,y.measure=E.measure,E.built):vo(a,y)}function wi(a,y){var E=y.text.className,x=Ei(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,Io(a,y)):E&&(y.text.className=E)}function Io(a,y){ga(a,y),y.line.wrapClass?xa(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 Lo(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 ee=xa(y);y.gutterBackground=yt("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),ee.insertBefore(y.gutterBackground,y.text)}var ae=y.line.gutterMarkers;if(a.options.lineNumbers||ae){var ce=xa(y),ye=y.gutter=yt("div",null,"CodeMirror-gutter-wrapper","left: "+(a.options.fixedGutter?x.fixedPos:-x.gutterTotalWidth)+"px");if(a.display.input.setUneditable(ye),ce.insertBefore(ye,y.text),y.line.gutterClass&&(ye.className+=" "+y.line.gutterClass),a.options.lineNumbers&&(!ae||!ae["CodeMirror-linenumbers"])&&(y.lineNumber=ye.appendChild(yt("div",gt(a.options,E),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+x.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+a.display.lineNumInnerWidth+"px"))),ae)for(var Ie=0;Ie<a.display.gutterSpecs.length;++Ie){var Ue=a.display.gutterSpecs[Ie].className,rn=ae.hasOwnProperty(Ue)&&ae[Ue];rn&&ye.appendChild(yt("div",[rn],"CodeMirror-gutter-elt","left: "+x.gutterLeft[Ue]+"px; width: "+x.gutterWidth[Ue]+"px"))}}}function Wr(a,y,E){y.alignable&&(y.alignable=null);for(var x=ut("CodeMirror-linewidget"),ee=y.node.firstChild,ae=void 0;ee;ee=ae)ae=ee.nextSibling,x.test(ee.className)&&y.node.removeChild(ee);no(a,y,E)}function Hr(a,y,E,x){var ee=Ei(a,y);return y.text=y.node=ee.pre,ee.bgClass&&(y.bgClass=ee.bgClass),ee.textClass&&(y.textClass=ee.textClass),Io(a,y),Lo(a,y,E,x),no(a,y,x),y.node}function no(a,y,E){if(bo(a,y.line,y,E,!0),y.rest)for(var x=0;x<y.rest.length;x++)bo(a,y.rest[x],y,E,!1)}function bo(a,y,E,x,ee){if(y.widgets)for(var ae=xa(E),ce=0,ye=y.widgets;ce<ye.length;++ce){var Ie=ye[ce],Ue=yt("div",[Ie.node],"CodeMirror-linewidget"+(Ie.className?" "+Ie.className:""));Ie.handleMouseEvents||Ue.setAttribute("cm-ignore-events","true"),ua(Ie,Ue,E,x),a.display.input.setUneditable(Ue),ee&&Ie.above?ae.insertBefore(Ue,E.gutter||E.text):ae.appendChild(Ue),Ho(Ie,"redraw")}}function ua(a,y,E,x){if(a.noHScroll){(E.alignable||(E.alignable=[])).push(y);var ee=x.wrapperWidth;y.style.left=x.fixedPos+"px",a.coverGutter||(ee-=x.gutterTotalWidth,y.style.paddingLeft=x.gutterTotalWidth+"px"),y.style.width=ee+"px"}a.coverGutter&&(y.style.zIndex=5,y.style.position="relative",a.noHScroll||(y.style.marginLeft=-x.gutterTotalWidth+"px"))}function qo(a){if(a.height!=null)return a.height;var y=a.doc.cm;if(!y)return 0;if(!Je(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;"),Ot(y.display.measure,yt("div",[a.node],null,E))}return a.height=a.node.parentNode.offsetHeight}function wo(a,y){for(var E=xt(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 Po(a){return a.lineSpace.offsetTop}function ia(a){return a.mover.offsetHeight-a.lineSpace.offsetHeight}function Ja(a){if(a.cachedPaddingH)return a.cachedPaddingH;var y=Ot(a.measure,yt("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 Wa(a){return Pt-a.display.nativeBarWidth}function ci(a){return a.display.scroller.clientWidth-Wa(a)-a.display.barWidth}function ai(a){return a.display.scroller.clientHeight-Wa(a)-a.display.barHeight}function $a(a,y,E){var x=a.options.lineWrapping,ee=x&&ci(a);if(!y.measure.heights||x&&y.measure.width!=ee){var ae=y.measure.heights=[];if(x){y.measure.width=ee;for(var ce=y.text.firstChild.getClientRects(),ye=0;ye<ce.length-1;ye++){var Ie=ce[ye],Ue=ce[ye+1];Math.abs(Ie.bottom-Ue.bottom)>2&&ae.push((Ie.bottom+Ue.top)/2-E.top)}}ae.push(E.bottom-E.top)}}function Di(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 ee=0;ee<a.rest.length;ee++)if(We(a.rest[ee])>E)return{map:a.measure.maps[ee],cache:a.measure.caches[ee],before:!0}}function di(a,y){y=bn(y);var E=We(y),x=a.display.externalMeasured=new Vo(a.doc,y,E);x.lineN=E;var ee=x.built=vo(a,x);return x.text=ee.pre,Ot(a.display.lineMeasure,ee.pre),x}function yi(a,y,E,x){return Zi(a,sl(a,y),E,x)}function Gi(a,y){if(y>=a.display.viewFrom&&y<a.display.viewTo)return a.display.view[_o(a,y)];var E=a.display.externalMeasured;if(E&&y>=E.lineN&&y<E.lineN+E.size)return E}function sl(a,y){var E=We(y),x=Gi(a,E);x&&!x.text?x=null:x&&x.changes&&(Ha(a,x,E,cl(a)),a.curOp.forceUpdate=!0),x||(x=di(a,y));var ee=Di(x,y,E);return{line:y,view:x,rect:null,map:ee.map,cache:ee.cache,before:ee.before,hasHeights:!1}}function Zi(a,y,E,x,ee){y.before&&(E=-1);var ae=E+(x||""),ce;return y.cache.hasOwnProperty(ae)?ce=y.cache[ae]:(y.rect||(y.rect=y.view.text.getBoundingClientRect()),y.hasHeights||($a(a,y.view,y.rect),y.hasHeights=!0),ce=Ll(a,y,E,x),ce.bogus||(y.cache[ae]=ce)),{left:ce.left,right:ce.right,top:ee?ce.rtop:ce.top,bottom:ee?ce.rbottom:ce.bottom}}var _l={left:0,right:0,top:0,bottom:0};function ml(a,y,E){for(var x,ee,ae,ce,ye,Ie,Ue=0;Ue<a.length;Ue+=3)if(ye=a[Ue],Ie=a[Ue+1],y<ye?(ee=0,ae=1,ce="left"):y<Ie?(ee=y-ye,ae=ee+1):(Ue==a.length-3||y==Ie&&a[Ue+3]>y)&&(ae=Ie-ye,ee=ae-1,y>=Ie&&(ce="right")),ee!=null){if(x=a[Ue+2],ye==Ie&&E==(x.insertLeft?"left":"right")&&(ce=E),E=="left"&&ee==0)for(;Ue&&a[Ue-2]==a[Ue-3]&&a[Ue-1].insertLeft;)x=a[(Ue-=3)+2],ce="left";if(E=="right"&&ee==Ie-ye)for(;Ue<a.length-3&&a[Ue+3]==a[Ue+4]&&!a[Ue+5].insertLeft;)x=a[(Ue+=3)+2],ce="right";break}return{node:x,start:ee,end:ae,collapse:ce,coverStart:ye,coverEnd:Ie}}function kl(a,y){var E=_l;if(y=="left")for(var x=0;x<a.length&&(E=a[x]).left==E.right;x++);else for(var ee=a.length-1;ee>=0&&(E=a[ee]).left==E.right;ee--);return E}function Ll(a,y,E,x){var ee=ml(y.map,E,x),ae=ee.node,ce=ee.start,ye=ee.end,Ie=ee.collapse,Ue;if(ae.nodeType==3){for(var rn=0;rn<4;rn++){for(;ce&&me(y.line.text.charAt(ee.coverStart+ce));)--ce;for(;ee.coverStart+ye<ee.coverEnd&&me(y.line.text.charAt(ee.coverStart+ye));)++ye;if(xe&&ge<9&&ce==0&&ye==ee.coverEnd-ee.coverStart?Ue=ae.parentNode.getBoundingClientRect():Ue=kl(pe(ae,ce,ye).getClientRects(),x),Ue.left||Ue.right||ce==0)break;ye=ce,ce=ce-1,Ie="right"}xe&&ge<11&&(Ue=us(a.display.measure,Ue))}else{ce>0&&(Ie=x="right");var mn;a.options.lineWrapping&&(mn=ae.getClientRects()).length>1?Ue=mn[x=="right"?mn.length-1:0]:Ue=ae.getBoundingClientRect()}if(xe&&ge<9&&!ce&&(!Ue||!Ue.left&&!Ue.right)){var Qn=ae.parentNode.getClientRects()[0];Qn?Ue={left:Qn.left,right:Qn.left+Mi(a.display),top:Qn.top,bottom:Qn.bottom}:Ue=_l}for(var Wn=Ue.top-y.rect.top,Br=Ue.bottom-y.rect.top,Mr=(Wn+Br)/2,Vr=y.view.measure.heights,oo=0;oo<Vr.length-1&&!(Mr<Vr[oo]);oo++);var go=oo?Vr[oo-1]:0,ao=Vr[oo],So={left:(Ie=="right"?Ue.right:Ue.left)-y.rect.left,right:(Ie=="left"?Ue.left:Ue.right)-y.rect.left,top:go,bottom:ao};return!Ue.left&&!Ue.right&&(So.bogus=!0),a.options.singleCursorHeightPerLine||(So.rtop=Wn,So.rbottom=Br),So}function us(a,y){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!yn(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 Zl(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 Xi(a){a.display.externalMeasure=null,jt(a.display.lineMeasure);for(var y=0;y<a.display.view.length;y++)Zl(a.display.view[y])}function tl(a){Xi(a),a.display.cachedCharWidth=a.display.cachedTextHeight=a.display.cachedPaddingH=null,a.options.lineWrapping||(a.display.maxLineChanged=!0),a.display.lineNumChars=null}function Bl(){return Ae&&Ve?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Hl(){return Ae&&Ve?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function gl(a){var y=0;if(a.widgets)for(var E=0;E<a.widgets.length;++E)a.widgets[E].above&&(y+=qo(a.widgets[E]));return y}function Il(a,y,E,x,ee){if(!ee){var ae=gl(y);E.top+=ae,E.bottom+=ae}if(x=="line")return E;x||(x="local");var ce=Ar(y);if(x=="local"?ce+=Po(a.display):ce-=a.display.viewOffset,x=="page"||x=="window"){var ye=a.display.lineSpace.getBoundingClientRect();ce+=ye.top+(x=="window"?0:Hl());var Ie=ye.left+(x=="window"?0:Bl());E.left+=Ie,E.right+=Ie}return E.top+=ce,E.bottom+=ce,E}function zl(a,y,E){if(E=="div")return y;var x=y.left,ee=y.top;if(E=="page")x-=Bl(),ee-=Hl();else if(E=="local"||!E){var ae=a.display.sizer.getBoundingClientRect();x+=ae.left,ee+=ae.top}var ce=a.display.lineSpace.getBoundingClientRect();return{left:x-ce.left,top:ee-ce.top}}function ul(a,y,E,x,ee){return x||(x=Jt(a.doc,y.line)),Il(a,x,yi(a,x,y.ch,ee),E)}function fi(a,y,E,x,ee,ae){x=x||Jt(a.doc,y.line),ee||(ee=sl(a,x));function ce(Br,Mr){var Vr=Zi(a,ee,Br,Mr?"right":"left",ae);return Mr?Vr.left=Vr.right:Vr.right=Vr.left,Il(a,x,Vr,E)}var ye=we(x,a.doc.direction),Ie=y.ch,Ue=y.sticky;if(Ie>=x.text.length?(Ie=x.text.length,Ue="before"):Ie<=0&&(Ie=0,Ue="after"),!ye)return ce(Ue=="before"?Ie-1:Ie,Ue=="before");function rn(Br,Mr,Vr){var oo=ye[Mr],go=oo.level==1;return ce(Vr?Br-1:Br,go!=Vr)}var mn=nt(ye,Ie,Ue),Qn=qe,Wn=rn(Ie,mn,Ue=="before");return Qn!=null&&(Wn.other=rn(Ie,Qn,Ue!="before")),Wn}function oa(a,y){var E=0;y=Me(a.doc,y),a.options.lineWrapping||(E=Mi(a.display)*y.ch);var x=Jt(a.doc,y.line),ee=Ar(x)+Po(a.display);return{left:E,right:E,top:ee,bottom:ee+x.height}}function Uo(a,y,E,x,ee){var ae=$e(a,y,E);return ae.xRel=ee,x&&(ae.outside=x),ae}function ti(a,y,E){var x=a.doc;if(E+=a.display.viewOffset,E<0)return Uo(x.first,0,null,-1,-1);var ee=dt(x,E),ae=x.first+x.size-1;if(ee>ae)return Uo(x.first+x.size-1,Jt(x,ae).text.length,null,1,1);y<0&&(y=0);for(var ce=Jt(x,ee);;){var ye=pn(a,ce,ee,y,E),Ie=er(ce,ye.ch+(ye.xRel>0||ye.outside>0?1:0));if(!Ie)return ye;var Ue=Ie.find(1);if(Ue.line==ee)return Ue;ce=Jt(x,ee=Ue.line)}}function hi(a,y,E,x){x-=gl(y);var ee=y.text.length,ae=Re(function(ce){return Zi(a,E,ce-1).bottom<=x},ee,0);return ee=Re(function(ce){return Zi(a,E,ce).top>x},ae,ee),{begin:ae,end:ee}}function Aa(a,y,E,x){E||(E=sl(a,y));var ee=Il(a,y,Zi(a,E,x),"line").top;return hi(a,y,E,ee)}function Ra(a,y,E,x){return a.bottom<=E?!1:a.top>E?!0:(x?a.left:a.right)>y}function pn(a,y,E,x,ee){ee-=Ar(y);var ae=sl(a,y),ce=gl(y),ye=0,Ie=y.text.length,Ue=!0,rn=we(y,a.doc.direction);if(rn){var mn=(a.options.lineWrapping?nl:Hi)(a,y,E,ae,rn,x,ee);Ue=mn.level!=1,ye=Ue?mn.from:mn.to-1,Ie=Ue?mn.to:mn.from-1}var Qn=null,Wn=null,Br=Re(function(jo){var Ro=Zi(a,ae,jo);return Ro.top+=ce,Ro.bottom+=ce,Ra(Ro,x,ee,!1)?(Ro.top<=ee&&Ro.left<=x&&(Qn=jo,Wn=Ro),!0):!1},ye,Ie),Mr,Vr,oo=!1;if(Wn){var go=x-Wn.left<Wn.right-x,ao=go==Ue;Br=Qn+(ao?0:1),Vr=ao?"after":"before",Mr=go?Wn.left:Wn.right}else{!Ue&&(Br==Ie||Br==ye)&&Br++,Vr=Br==0?"after":Br==y.text.length?"before":Zi(a,ae,Br-(Ue?1:0)).bottom+ce<=ee==Ue?"after":"before";var So=fi(a,$e(E,Br,Vr),"line",y,ae);Mr=So.left,oo=ee<So.top?-1:ee>=So.bottom?1:0}return Br=Dt(y.text,Br,1),Uo(E,Br,Vr,oo,x-Mr)}function Hi(a,y,E,x,ee,ae,ce){var ye=Re(function(mn){var Qn=ee[mn],Wn=Qn.level!=1;return Ra(fi(a,$e(E,Wn?Qn.to:Qn.from,Wn?"before":"after"),"line",y,x),ae,ce,!0)},0,ee.length-1),Ie=ee[ye];if(ye>0){var Ue=Ie.level!=1,rn=fi(a,$e(E,Ue?Ie.from:Ie.to,Ue?"after":"before"),"line",y,x);Ra(rn,ae,ce,!0)&&rn.top>ce&&(Ie=ee[ye-1])}return Ie}function nl(a,y,E,x,ee,ae,ce){var ye=hi(a,y,x,ce),Ie=ye.begin,Ue=ye.end;/\s/.test(y.text.charAt(Ue-1))&&Ue--;for(var rn=null,mn=null,Qn=0;Qn<ee.length;Qn++){var Wn=ee[Qn];if(!(Wn.from>=Ue||Wn.to<=Ie)){var Br=Wn.level!=1,Mr=Zi(a,x,Br?Math.min(Ue,Wn.to)-1:Math.max(Ie,Wn.from)).right,Vr=Mr<ae?ae-Mr+1e9:Mr-ae;(!rn||mn>Vr)&&(rn=Wn,mn=Vr)}}return rn||(rn=ee[ee.length-1]),rn.from<Ie&&(rn={from:Ie,to:rn.to,level:rn.level}),rn.to>Ue&&(rn={from:rn.from,to:Ue,level:rn.level}),rn}var Oi;function Ni(a){if(a.cachedTextHeight!=null)return a.cachedTextHeight;if(Oi==null){Oi=yt("pre",null,"CodeMirror-line-like");for(var y=0;y<49;++y)Oi.appendChild(document.createTextNode("x")),Oi.appendChild(yt("br"));Oi.appendChild(document.createTextNode("x"))}Ot(a.measure,Oi);var E=Oi.offsetHeight/50;return E>3&&(a.cachedTextHeight=E),jt(a.measure),E||1}function Mi(a){if(a.cachedCharWidth!=null)return a.cachedCharWidth;var y=yt("span","xxxxxxxxxx"),E=yt("pre",[y],"CodeMirror-line-like");Ot(a.measure,E);var x=y.getBoundingClientRect(),ee=(x.right-x.left)/10;return ee>2&&(a.cachedCharWidth=ee),ee||10}function cl(a){for(var y=a.display,E={},x={},ee=y.gutters.clientLeft,ae=y.gutters.firstChild,ce=0;ae;ae=ae.nextSibling,++ce){var ye=a.display.gutterSpecs[ce].className;E[ye]=ae.offsetLeft+ae.clientLeft+ee,x[ye]=ae.clientWidth}return{fixedPos:cs(y),gutterTotalWidth:y.gutters.offsetWidth,gutterLeft:E,gutterWidth:x,wrapperWidth:y.wrapper.clientWidth}}function cs(a){return a.scroller.getBoundingClientRect().left-a.sizer.getBoundingClientRect().left}function jl(a){var y=Ni(a.display),E=a.options.lineWrapping,x=E&&Math.max(5,a.display.scroller.clientWidth/Mi(a.display)-3);return function(ee){if(Xn(a.doc,ee))return 0;var ae=0;if(ee.widgets)for(var ce=0;ce<ee.widgets.length;ce++)ee.widgets[ce].height&&(ae+=ee.widgets[ce].height);return E?ae+(Math.ceil(ee.text.length/x)||1)*y:ae+y}}function Pl(a){var y=a.doc,E=jl(a);y.iter(function(x){var ee=E(x);ee!=x.height&&sn(x,ee)})}function dl(a,y,E,x){var ee=a.display;if(!E&&xt(y).getAttribute("cm-not-content")=="true")return null;var ae,ce,ye=ee.lineSpace.getBoundingClientRect();try{ae=y.clientX-ye.left,ce=y.clientY-ye.top}catch(mn){return null}var Ie=ti(a,ae,ce),Ue;if(x&&Ie.xRel>0&&(Ue=Jt(a.doc,Ie.line).text).length==Ie.ch){var rn=ke(Ue,Ue.length,a.options.tabSize)-Ue.length;Ie=$e(Ie.line,Math.max(0,Math.round((ae-Ja(a.display).left)/Mi(a.display))-rn))}return Ie}function _o(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 ii(a,y,E,x){y==null&&(y=a.doc.first),E==null&&(E=a.doc.first+a.doc.size),x||(x=0);var ee=a.display;if(x&&E<ee.viewTo&&(ee.updateLineNumbers==null||ee.updateLineNumbers>y)&&(ee.updateLineNumbers=y),a.curOp.viewChanged=!0,y>=ee.viewTo)An&&On(a.doc,y)<ee.viewTo&&rl(a);else if(E<=ee.viewFrom)An&&Hn(a.doc,E+x)>ee.viewFrom?rl(a):(ee.viewFrom+=x,ee.viewTo+=x);else if(y<=ee.viewFrom&&E>=ee.viewTo)rl(a);else if(y<=ee.viewFrom){var ae=Wl(a,E,E+x,1);ae?(ee.view=ee.view.slice(ae.index),ee.viewFrom=ae.lineN,ee.viewTo+=x):rl(a)}else if(E>=ee.viewTo){var ce=Wl(a,y,y,-1);ce?(ee.view=ee.view.slice(0,ce.index),ee.viewTo=ce.lineN):rl(a)}else{var ye=Wl(a,y,y,-1),Ie=Wl(a,E,E+x,1);ye&&Ie?(ee.view=ee.view.slice(0,ye.index).concat(Wo(a,ye.lineN,Ie.lineN)).concat(ee.view.slice(Ie.index)),ee.viewTo+=x):rl(a)}var Ue=ee.externalMeasured;Ue&&(E<Ue.lineN?Ue.lineN+=x:y<Ue.lineN+Ue.size&&(ee.externalMeasured=null))}function bi(a,y,E){a.curOp.viewChanged=!0;var x=a.display,ee=a.display.externalMeasured;if(ee&&y>=ee.lineN&&y<ee.lineN+ee.size&&(x.externalMeasured=null),!(y<x.viewFrom||y>=x.viewTo)){var ae=x.view[_o(a,y)];if(ae.node!=null){var ce=ae.changes||(ae.changes=[]);Ct(ce,E)==-1&&ce.push(E)}}}function rl(a){a.display.viewFrom=a.display.viewTo=a.doc.first,a.display.view=[],a.display.viewOffset=0}function Wl(a,y,E,x){var ee=_o(a,y),ae,ce=a.display.view;if(!An||E==a.doc.first+a.doc.size)return{index:ee,lineN:E};for(var ye=a.display.viewFrom,Ie=0;Ie<ee;Ie++)ye+=ce[Ie].size;if(ye!=y){if(x>0){if(ee==ce.length-1)return null;ae=ye+ce[ee].size-y,ee++}else ae=ye-y;y+=ae,E+=ae}for(;On(a.doc,E)!=E;){if(ee==(x<0?0:ce.length-1))return null;E+=x*ce[ee-(x<0?1:0)].size,ee+=x}return{index:ee,lineN:E}}function es(a,y,E){var x=a.display,ee=x.view;ee.length==0||y>=x.viewTo||E<=x.viewFrom?(x.view=Wo(a,y,E),x.viewFrom=y):(x.viewFrom>y?x.view=Wo(a,y,x.viewFrom).concat(x.view):x.viewFrom<y&&(x.view=x.view.slice(_o(a,y))),x.viewFrom=y,x.viewTo<E?x.view=x.view.concat(Wo(a,x.viewTo,E)):x.viewTo>E&&(x.view=x.view.slice(0,_o(a,E)))),x.viewTo=E}function ds(a){for(var y=a.display.view,E=0,x=0;x<y.length;x++){var ee=y[x];!ee.hidden&&(!ee.node||ee.changes)&&++E}return E}function El(a){a.display.input.showSelection(a.display.input.prepareSelection())}function Ls(a,y){y===void 0&&(y=!0);for(var E=a.doc,x={},ee=x.cursors=document.createDocumentFragment(),ae=x.selection=document.createDocumentFragment(),ce=0;ce<E.sel.ranges.length;ce++)if(!(!y&&ce==E.sel.primIndex)){var ye=E.sel.ranges[ce];if(!(ye.from().line>=a.display.viewTo||ye.to().line<a.display.viewFrom)){var Ie=ye.empty();(Ie||a.options.showCursorWhenSelecting)&&xs(a,ye.head,ee),Ie||nu(a,ye,ae)}}return x}function xs(a,y,E){var x=fi(a,y,"div",null,null,!a.options.singleCursorHeightPerLine),ee=E.appendChild(yt("div","\xA0","CodeMirror-cursor"));if(ee.style.left=x.left+"px",ee.style.top=x.top+"px",ee.style.height=Math.max(0,x.bottom-x.top)*a.options.cursorHeight+"px",x.other){var ae=E.appendChild(yt("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));ae.style.display="",ae.style.left=x.other.left+"px",ae.style.top=x.other.top+"px",ae.style.height=(x.other.bottom-x.other.top)*.85+"px"}}function $l(a,y){return a.top-y.top||a.left-y.left}function nu(a,y,E){var x=a.display,ee=a.doc,ae=document.createDocumentFragment(),ce=Ja(a.display),ye=ce.left,Ie=Math.max(x.sizerWidth,ci(a)-x.sizer.offsetLeft)-ce.right,Ue=ee.direction=="ltr";function rn(ao,So,jo,Ro){So<0&&(So=0),So=Math.round(So),Ro=Math.round(Ro),ae.appendChild(yt("div",null,"CodeMirror-selected","position: absolute; left: "+ao+`px;
|
|
|
top: `+So+"px; width: "+(jo==null?Ie-ao:jo)+`px;
|
|
|
height: `+(Ro-So)+"px"))}function mn(ao,So,jo){var Ro=Jt(ee,ao),sa=Ro.text.length,Za,Ai;function ei(mi,_i){return ul(a,$e(ao,mi),"div",Ro,_i)}function ll(mi,_i,Li){var Si=Aa(a,Ro,null,mi),gi=_i=="ltr"==(Li=="after")?"left":"right",oi=Li=="after"?Si.begin:Si.end-(/\s/.test(Ro.text.charAt(Si.end-1))?2:1);return ei(oi,gi)[gi]}var qi=we(Ro,ee.direction);return Fe(qi,So||0,jo==null?sa:jo,function(mi,_i,Li,Si){var gi=Li=="ltr",oi=ei(mi,gi?"left":"right"),el=ei(_i-1,gi?"right":"left"),Rs=So==null&&mi==0,ss=jo==null&&_i==sa,Ki=Si==0,Rl=!qi||Si==qi.length-1;if(el.top-oi.top<=3){var Fi=(Ue?Rs:ss)&&Ki,Ou=(Ue?ss:Rs)&&Rl,ql=Fi?ye:(gi?oi:el).left,bs=Ou?Ie:(gi?el:oi).right;rn(ql,oi.top,bs-ql,oi.bottom)}else{var Cs,Ui,ks,Bu;gi?(Cs=Ue&&Rs&&Ki?ye:oi.left,Ui=Ue?Ie:ll(mi,Li,"before"),ks=Ue?ye:ll(_i,Li,"after"),Bu=Ue&&ss&&Rl?Ie:el.right):(Cs=Ue?ll(mi,Li,"before"):ye,Ui=!Ue&&Rs&&Ki?Ie:oi.right,ks=!Ue&&ss&&Rl?ye:el.left,Bu=Ue?ll(_i,Li,"after"):Ie),rn(Cs,oi.top,Ui-Cs,oi.bottom),oi.bottom<el.top&&rn(ye,oi.bottom,null,el.top),rn(ks,el.top,Bu-ks,el.bottom)}(!Za||$l(oi,Za)<0)&&(Za=oi),$l(el,Za)<0&&(Za=el),(!Ai||$l(oi,Ai)<0)&&(Ai=oi),$l(el,Ai)<0&&(Ai=el)}),{start:Za,end:Ai}}var Qn=y.from(),Wn=y.to();if(Qn.line==Wn.line)mn(Qn.line,Qn.ch,Wn.ch);else{var Br=Jt(ee,Qn.line),Mr=Jt(ee,Wn.line),Vr=bn(Br)==bn(Mr),oo=mn(Qn.line,Qn.ch,Vr?Br.text.length+1:null).end,go=mn(Wn.line,Vr?0:null,Wn.ch).start;Vr&&(oo.top<go.top-2?(rn(oo.right,oo.top,null,oo.bottom),rn(ye,go.top,go.left,go.bottom)):rn(oo.right,oo.top,go.left-oo.right,oo.bottom)),oo.bottom<go.top&&rn(ye,oo.bottom,null,go.top)}E.appendChild(ae)}function ts(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()||Kl(a),y.cursorDiv.style.visibility=(E=!E)?"":"hidden"},a.options.cursorBlinkRate):a.options.cursorBlinkRate<0&&(y.cursorDiv.style.visibility="hidden")}}function Ss(a){a.state.focused||(a.display.input.focus(),ws(a))}function Es(a){a.state.delayingBlurEvent=!0,setTimeout(function(){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1,Kl(a))},100)}function ws(a,y){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1),a.options.readOnly!="nocursor"&&(a.state.focused||(Yt(a,"focus",a,y),a.state.focused=!0,ue(a.display.wrapper,"CodeMirror-focused"),!a.curOp&&a.display.selForContextMenu!=a.doc.sel&&(a.display.input.reset(),Ee&&setTimeout(function(){return a.display.input.reset(!0)},20)),a.display.input.receivedFocus()),ts(a))}function Kl(a,y){a.state.delayingBlurEvent||(a.state.focused&&(Yt(a,"blur",a,y),a.state.focused=!1,ft(a.display.wrapper,"CodeMirror-focused")),clearInterval(a.display.blinker),setTimeout(function(){a.state.focused||(a.display.shift=!1)},150))}function No(a){for(var y=a.display,E=y.lineDiv.offsetTop,x=0;x<y.view.length;x++){var ee=y.view[x],ae=a.options.lineWrapping,ce=void 0,ye=0;if(!ee.hidden){if(xe&&ge<8){var Ie=ee.node.offsetTop+ee.node.offsetHeight;ce=Ie-E,E=Ie}else{var Ue=ee.node.getBoundingClientRect();ce=Ue.bottom-Ue.top,!ae&&ee.text.firstChild&&(ye=ee.text.firstChild.getBoundingClientRect().right-Ue.left-1)}var rn=ee.line.height-ce;if((rn>.005||rn<-.005)&&(sn(ee.line,ce),Al(ee.line),ee.rest))for(var mn=0;mn<ee.rest.length;mn++)Al(ee.rest[mn]);if(ye>a.display.sizerWidth){var Qn=Math.ceil(ye/Mi(a.display));Qn>a.display.maxLineLength&&(a.display.maxLineLength=Qn,a.display.maxLine=ee.line,a.display.maxLineChanged=!0)}}}}function Al(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 Nr(a,y,E){var x=E&&E.top!=null?Math.max(0,E.top):a.scroller.scrollTop;x=Math.floor(x-Po(a));var ee=E&&E.bottom!=null?E.bottom:x+a.wrapper.clientHeight,ae=dt(y,x),ce=dt(y,ee);if(E&&E.ensure){var ye=E.ensure.from.line,Ie=E.ensure.to.line;ye<ae?(ae=ye,ce=dt(y,Ar(Jt(y,ye))+a.wrapper.clientHeight)):Math.min(Ie,y.lastLine())>=ce&&(ae=dt(y,Ar(Jt(y,Ie))-a.wrapper.clientHeight),ce=Ie)}return{from:ae,to:Math.max(ce,ae+1)}}function Jo(a,y){if(!At(a,"scrollCursorIntoView")){var E=a.display,x=E.sizer.getBoundingClientRect(),ee=null;if(y.top+x.top<0?ee=!0:y.bottom+x.top>(window.innerHeight||document.documentElement.clientHeight)&&(ee=!1),ee!=null&&!Lt){var ae=yt("div","\u200B",null,`position: absolute;
|
|
|
top: `+(y.top-E.viewOffset-Po(a.display))+`px;
|
|
|
height: `+(y.bottom-y.top+Wa(a)+E.barHeight)+`px;
|
|
|
left: `+y.left+"px; width: "+Math.max(2,y.right-y.left)+"px;");a.display.lineSpace.appendChild(ae),ae.scrollIntoView(ee),a.display.lineSpace.removeChild(ae)}}}function ea(a,y,E,x){x==null&&(x=0);var ee;!a.options.lineWrapping&&y==E&&(y=y.ch?$e(y.line,y.sticky=="before"?y.ch-1:y.ch,"after"):y,E=y.sticky=="before"?$e(y.line,y.ch+1,"before"):y);for(var ae=0;ae<5;ae++){var ce=!1,ye=fi(a,y),Ie=!E||E==y?ye:fi(a,E);ee={left:Math.min(ye.left,Ie.left),top:Math.min(ye.top,Ie.top)-x,right:Math.max(ye.left,Ie.left),bottom:Math.max(ye.bottom,Ie.bottom)+x};var Ue=ka(a,ee),rn=a.doc.scrollTop,mn=a.doc.scrollLeft;if(Ue.scrollTop!=null&&(yl(a,Ue.scrollTop),Math.abs(a.doc.scrollTop-rn)>1&&(ce=!0)),Ue.scrollLeft!=null&&(hl(a,Ue.scrollLeft),Math.abs(a.doc.scrollLeft-mn)>1&&(ce=!0)),!ce)break}return ee}function Qa(a,y){var E=ka(a,y);E.scrollTop!=null&&yl(a,E.scrollTop),E.scrollLeft!=null&&hl(a,E.scrollLeft)}function ka(a,y){var E=a.display,x=Ni(a.display);y.top<0&&(y.top=0);var ee=a.curOp&&a.curOp.scrollTop!=null?a.curOp.scrollTop:E.scroller.scrollTop,ae=ai(a),ce={};y.bottom-y.top>ae&&(y.bottom=y.top+ae);var ye=a.doc.height+ia(E),Ie=y.top<x,Ue=y.bottom>ye-x;if(y.top<ee)ce.scrollTop=Ie?0:y.top;else if(y.bottom>ee+ae){var rn=Math.min(y.top,(Ue?ye:y.bottom)-ae);rn!=ee&&(ce.scrollTop=rn)}var mn=a.options.fixedGutter?0:E.gutters.offsetWidth,Qn=a.curOp&&a.curOp.scrollLeft!=null?a.curOp.scrollLeft:E.scroller.scrollLeft-mn,Wn=ci(a)-E.gutters.offsetWidth,Br=y.right-y.left>Wn;return Br&&(y.right=y.left+Wn),y.left<10?ce.scrollLeft=0:y.left<Qn?ce.scrollLeft=Math.max(0,y.left+mn-(Br?0:10)):y.right>Wn+Qn-3&&(ce.scrollLeft=y.right+(Br?0:10)-Wn),ce}function Vl(a,y){y!=null&&(Fl(a),a.curOp.scrollTop=(a.curOp.scrollTop==null?a.doc.scrollTop:a.curOp.scrollTop)+y)}function fl(a){Fl(a);var y=a.getCursor();a.curOp.scrollToPos={from:y,to:y,margin:a.options.cursorScrollMargin}}function wl(a,y,E){(y!=null||E!=null)&&Fl(a),y!=null&&(a.curOp.scrollLeft=y),E!=null&&(a.curOp.scrollTop=E)}function ns(a,y){Fl(a),a.curOp.scrollToPos=y}function Fl(a){var y=a.curOp.scrollToPos;if(y){a.curOp.scrollToPos=null;var E=oa(a,y.from),x=oa(a,y.to);Ul(a,E,x,y.margin)}}function Ul(a,y,E,x){var ee=ka(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});wl(a,ee.scrollLeft,ee.scrollTop)}function yl(a,y){Math.abs(a.doc.scrollTop-y)<2||(b||zs(a,{top:y}),Gl(a,y,!0),b&&zs(a),fs(a,100))}function Gl(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 hl(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,ht(a),a.display.scroller.scrollLeft!=y&&(a.display.scroller.scrollLeft=y),a.display.scrollbars.setScrollLeft(y))}function vl(a){var y=a.display,E=y.gutters.offsetWidth,x=Math.round(a.doc.height+ia(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+Wa(a)+y.barHeight,nativeBarWidth:y.nativeBarWidth,gutterWidth:E}}var ol=function(a,y,E){this.cm=E;var x=this.vert=yt("div",[yt("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),ee=this.horiz=yt("div",[yt("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");x.tabIndex=ee.tabIndex=-1,a(x),a(ee),It(x,"scroll",function(){x.clientHeight&&y(x.scrollTop,"vertical")}),It(ee,"scroll",function(){ee.clientWidth&&y(ee.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,xe&&ge<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};ol.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 ee=a.viewHeight-(y?x:0);this.vert.firstChild.style.height=Math.max(0,a.scrollHeight-a.clientHeight+ee)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(y){this.horiz.style.display="block",this.horiz.style.right=E?x+"px":"0",this.horiz.style.left=a.barLeft+"px";var ae=a.viewWidth-a.barLeft-(E?x:0);this.horiz.firstChild.style.width=Math.max(0,a.scrollWidth-a.clientWidth+ae)+"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}},ol.prototype.setScrollLeft=function(a){this.horiz.scrollLeft!=a&&(this.horiz.scrollLeft=a),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},ol.prototype.setScrollTop=function(a){this.vert.scrollTop!=a&&(this.vert.scrollTop=a),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},ol.prototype.zeroWidthHack=function(){var a=Ze&&!ve?"12px":"18px";this.horiz.style.height=this.vert.style.width=a,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new he,this.disableVert=new he},ol.prototype.enableZeroWidthBar=function(a,y,E){a.style.pointerEvents="auto";function x(){var ee=a.getBoundingClientRect(),ae=E=="vert"?document.elementFromPoint(ee.right-1,(ee.top+ee.bottom)/2):document.elementFromPoint((ee.right+ee.left)/2,ee.bottom-1);ae!=a?a.style.pointerEvents="none":y.set(1e3,x)}y.set(1e3,x)},ol.prototype.clear=function(){var a=this.horiz.parentNode;a.removeChild(this.horiz),a.removeChild(this.vert)};var Vi=function(){};Vi.prototype.update=function(){return{bottom:0,right:0}},Vi.prototype.setScrollLeft=function(){},Vi.prototype.setScrollTop=function(){},Vi.prototype.clear=function(){};function al(a,y){y||(y=vl(a));var E=a.display.barWidth,x=a.display.barHeight;fo(a,y);for(var ee=0;ee<4&&E!=a.display.barWidth||x!=a.display.barHeight;ee++)E!=a.display.barWidth&&a.options.lineWrapping&&No(a),fo(a,vl(a)),E=a.display.barWidth,x=a.display.barHeight}function fo(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 Zs={native:ol,null:Vi};function ru(a){a.display.scrollbars&&(a.display.scrollbars.clear(),a.display.scrollbars.addClass&&ft(a.display.wrapper,a.display.scrollbars.addClass)),a.display.scrollbars=new Zs[a.options.scrollbarStyle](function(y){a.display.wrapper.insertBefore(y,a.display.scrollbarFiller),It(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"?hl(a,y):yl(a,y)},a),a.display.scrollbars.addClass&&ue(a.display.wrapper,a.display.scrollbars.addClass)}var Iu=0;function Xl(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:++Iu},ko(a.curOp)}function rs(a){var y=a.curOp;y&&Ao(y,function(E){for(var x=0;x<E.ops.length;x++)E.ops[x].cm.curOp=null;du(E)})}function du(a){for(var y=a.ops,E=0;E<y.length;E++)Pu(y[E]);for(var x=0;x<y.length;x++)fu(y[x]);for(var ee=0;ee<y.length;ee++)Au(y[ee]);for(var ae=0;ae<y.length;ae++)hu(y[ae]);for(var ce=0;ce<y.length;ce++)Fu(y[ce])}function Pu(a){var y=a.cm,E=y.display;vu(y),a.updateMaxLine&&Rr(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 Ds(y,a.mustUpdate&&{top:a.scrollTop,ensure:a.scrollToPos},a.forceUpdate)}function fu(a){a.updatedDisplay=a.mustUpdate&&Hs(a.cm,a.update)}function Au(a){var y=a.cm,E=y.display;a.updatedDisplay&&No(y),a.barMeasure=vl(y),E.maxLineChanged&&!y.options.lineWrapping&&(a.adjustWidthTo=yi(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+Wa(y)+y.display.barWidth),a.maxScrollLeft=Math.max(0,E.sizer.offsetLeft+a.adjustWidthTo-ci(y))),(a.updatedDisplay||a.selectionChanged)&&(a.preparedSelection=E.input.prepareSelection())}function hu(a){var y=a.cm;a.adjustWidthTo!=null&&(y.display.sizer.style.minWidth=a.adjustWidthTo+"px",a.maxScrollLeft<y.doc.scrollLeft&&hl(y,Math.min(y.display.scroller.scrollLeft,a.maxScrollLeft),!0),y.display.maxLineChanged=!1);var E=a.focus&&a.focus==Xe();a.preparedSelection&&y.display.input.showSelection(a.preparedSelection,E),(a.updatedDisplay||a.startHeight!=y.doc.height)&&al(y,a.barMeasure),a.updatedDisplay&&be(y,a.barMeasure),a.selectionChanged&&ts(y),y.state.focused&&a.updateInput&&y.display.input.reset(a.typing),E&&Ss(a.cm)}function Fu(a){var y=a.cm,E=y.display,x=y.doc;if(a.updatedDisplay&&bl(y,a.update),E.wheelStartX!=null&&(a.scrollTop!=null||a.scrollLeft!=null||a.scrollToPos)&&(E.wheelStartX=E.wheelStartY=null),a.scrollTop!=null&&Gl(y,a.scrollTop,a.forceScroll),a.scrollLeft!=null&&hl(y,a.scrollLeft,!0,!0),a.scrollToPos){var ee=ea(y,Me(x,a.scrollToPos.from),Me(x,a.scrollToPos.to),a.scrollToPos.margin);Jo(y,ee)}var ae=a.maybeHiddenMarkers,ce=a.maybeUnhiddenMarkers;if(ae)for(var ye=0;ye<ae.length;++ye)ae[ye].lines.length||Yt(ae[ye],"hide");if(ce)for(var Ie=0;Ie<ce.length;++Ie)ce[Ie].lines.length&&Yt(ce[Ie],"unhide");E.wrapper.offsetHeight&&(x.scrollTop=y.display.scroller.scrollTop),a.changeObjs&&Yt(y,"changes",y,a.changeObjs),a.update&&a.update.finish()}function zi(a,y){if(a.curOp)return y();Xl(a);try{return y()}finally{rs(a)}}function Ci(a,y){return function(){if(a.curOp)return y.apply(a,arguments);Xl(a);try{return y.apply(a,arguments)}finally{rs(a)}}}function Ti(a){return function(){if(this.curOp)return a.apply(this,arguments);Xl(this);try{return a.apply(this,arguments)}finally{rs(this)}}}function vi(a){return function(){var y=this.cm;if(!y||y.curOp)return a.apply(this,arguments);Xl(y);try{return a.apply(this,arguments)}finally{rs(y)}}}function fs(a,y){a.doc.highlightFrontier<a.display.viewTo&&a.state.highlight.set(y,wt(ou,a))}function ou(a){var y=a.doc;if(!(y.highlightFrontier>=a.display.viewTo)){var E=+new Date+a.options.workTime,x=ar(a,y.highlightFrontier),ee=[];y.iter(x.line,Math.min(y.first+y.size,a.display.viewTo+500),function(ae){if(x.line>=a.display.viewFrom){var ce=ae.styles,ye=ae.text.length>a.options.maxHighlightLength?Ln(y.mode,x.state):null,Ie=hn(a,ae,x,!0);ye&&(x.state=ye),ae.styles=Ie.styles;var Ue=ae.styleClasses,rn=Ie.classes;rn?ae.styleClasses=rn:Ue&&(ae.styleClasses=null);for(var mn=!ce||ce.length!=ae.styles.length||Ue!=rn&&(!Ue||!rn||Ue.bgClass!=rn.bgClass||Ue.textClass!=rn.textClass),Qn=0;!mn&&Qn<ce.length;++Qn)mn=ce[Qn]!=ae.styles[Qn];mn&&ee.push(x.line),ae.stateAfter=x.save(),x.nextLine()}else ae.text.length<=a.options.maxHighlightLength&&Cr(a,ae.text,x),ae.stateAfter=x.line%5==0?x.save():null,x.nextLine();if(+new Date>E)return fs(a,a.options.workDelay),!0}),y.highlightFrontier=x.line,y.modeFrontier=Math.max(y.modeFrontier,x.line),ee.length&&zi(a,function(){for(var ae=0;ae<ee.length;ae++)bi(a,ee[ae],"text")})}}var Ds=function(a,y,E){var x=a.display;this.viewport=y,this.visible=Nr(x,a.doc,y),this.editorIsHidden=!x.wrapper.offsetWidth,this.wrapperHeight=x.wrapper.clientHeight,this.wrapperWidth=x.wrapper.clientWidth,this.oldDisplayWidth=ci(a),this.force=E,this.dims=cl(a),this.events=[]};Ds.prototype.signal=function(a,y){Gt(a,y)&&this.events.push(arguments)},Ds.prototype.finish=function(){for(var a=0;a<this.events.length;a++)Yt.apply(null,this.events[a])};function vu(a){var y=a.display;!y.scrollbarsClipped&&y.scroller.offsetWidth&&(y.nativeBarWidth=y.scroller.offsetWidth-y.scroller.clientWidth,y.heightForcer.style.height=Wa(a)+"px",y.sizer.style.marginBottom=-y.nativeBarWidth+"px",y.sizer.style.borderRightWidth=Wa(a)+"px",y.scrollbarsClipped=!0)}function pu(a){if(a.hasFocus())return null;var y=Xe();if(!y||!Je(a.display.lineDiv,y))return null;var E={activeElt:y};if(window.getSelection){var x=window.getSelection();x.anchorNode&&x.extend&&Je(a.display.lineDiv,x.anchorNode)&&(E.anchorNode=x.anchorNode,E.anchorOffset=x.anchorOffset,E.focusNode=x.focusNode,E.focusOffset=x.focusOffset)}return E}function mu(a){if(!(!a||!a.activeElt||a.activeElt==Xe())&&(a.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(a.activeElt.nodeName)&&a.anchorNode&&Je(document.body,a.anchorNode)&&Je(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 Hs(a,y){var E=a.display,x=a.doc;if(y.editorIsHidden)return rl(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&&ds(a)==0)return!1;Rt(a)&&(rl(a),y.dims=cl(a));var ee=x.first+x.size,ae=Math.max(y.visible.from-a.options.viewportMargin,x.first),ce=Math.min(ee,y.visible.to+a.options.viewportMargin);E.viewFrom<ae&&ae-E.viewFrom<20&&(ae=Math.max(x.first,E.viewFrom)),E.viewTo>ce&&E.viewTo-ce<20&&(ce=Math.min(ee,E.viewTo)),An&&(ae=On(a.doc,ae),ce=Hn(a.doc,ce));var ye=ae!=E.viewFrom||ce!=E.viewTo||E.lastWrapHeight!=y.wrapperHeight||E.lastWrapWidth!=y.wrapperWidth;es(a,ae,ce),E.viewOffset=Ar(Jt(a.doc,E.viewFrom)),a.display.mover.style.top=E.viewOffset+"px";var Ie=ds(a);if(!ye&&Ie==0&&!y.force&&E.renderedView==E.view&&(E.updateLineNumbers==null||E.updateLineNumbers>=E.viewTo))return!1;var Ue=pu(a);return Ie>4&&(E.lineDiv.style.display="none"),gu(a,E.updateLineNumbers,y.dims),Ie>4&&(E.lineDiv.style.display=""),E.renderedView=E.view,mu(Ue),jt(E.cursorDiv),jt(E.selectionDiv),E.gutters.style.height=E.sizer.style.minHeight=0,ye&&(E.lastWrapHeight=y.wrapperHeight,E.lastWrapWidth=y.wrapperWidth,fs(a,400)),E.updateLineNumbers=null,!0}function bl(a,y){for(var E=y.viewport,x=!0;;x=!1){if(!x||!a.options.lineWrapping||y.oldDisplayWidth==ci(a)){if(E&&E.top!=null&&(E={top:Math.min(a.doc.height+ia(a.display)-ai(a),E.top)}),y.visible=Nr(a.display,a.doc,E),y.visible.from>=a.display.viewFrom&&y.visible.to<=a.display.viewTo)break}else x&&(y.visible=Nr(a.display,a.doc,E));if(!Hs(a,y))break;No(a);var ee=vl(a);El(a),al(a,ee),be(a,ee),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 zs(a,y){var E=new Ds(a,y);if(Hs(a,E)){No(a),bl(a,E);var x=vl(a);El(a),al(a,x),be(a,x),E.finish()}}function gu(a,y,E){var x=a.display,ee=a.options.lineNumbers,ae=x.lineDiv,ce=ae.firstChild;function ye(Br){var Mr=Br.nextSibling;return Ee&&Ze&&a.display.currentWheelTarget==Br?Br.style.display="none":Br.parentNode.removeChild(Br),Mr}for(var Ie=x.view,Ue=x.viewFrom,rn=0;rn<Ie.length;rn++){var mn=Ie[rn];if(!mn.hidden)if(!mn.node||mn.node.parentNode!=ae){var Qn=Hr(a,mn,Ue,E);ae.insertBefore(Qn,ce)}else{for(;ce!=mn.node;)ce=ye(ce);var Wn=ee&&y!=null&&y<=Ue&&mn.lineNumber;mn.changes&&(Ct(mn.changes,"gutter")>-1&&(Wn=!1),Ha(a,mn,Ue,E)),Wn&&(jt(mn.lineNumber),mn.lineNumber.appendChild(document.createTextNode(gt(a.options,Ue)))),ce=mn.node.nextSibling}Ue+=mn.size}for(;ce;)ce=ye(ce)}function Se(a){var y=a.gutters.offsetWidth;a.sizer.style.marginLeft=y+"px"}function be(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+Wa(a)+"px"}function ht(a){var y=a.display,E=y.view;if(!(!y.alignWidgets&&(!y.gutters.firstChild||!a.options.fixedGutter))){for(var x=cs(y)-y.scroller.scrollLeft+a.doc.scrollLeft,ee=y.gutters.offsetWidth,ae=x+"px",ce=0;ce<E.length;ce++)if(!E[ce].hidden){a.options.fixedGutter&&(E[ce].gutter&&(E[ce].gutter.style.left=ae),E[ce].gutterBackground&&(E[ce].gutterBackground.style.left=ae));var ye=E[ce].alignable;if(ye)for(var Ie=0;Ie<ye.length;Ie++)ye[Ie].style.left=ae}a.options.fixedGutter&&(y.gutters.style.left=x+ee+"px")}}function Rt(a){if(!a.options.lineNumbers)return!1;var y=a.doc,E=gt(a.options,y.first+y.size-1),x=a.display;if(E.length!=x.lineNumChars){var ee=x.measure.appendChild(yt("div",[yt("div",E)],"CodeMirror-linenumber CodeMirror-gutter-elt")),ae=ee.firstChild.offsetWidth,ce=ee.offsetWidth-ae;return x.lineGutter.style.width="",x.lineNumInnerWidth=Math.max(ae,x.lineGutter.offsetWidth-ce)+1,x.lineNumWidth=x.lineNumInnerWidth+ce,x.lineNumChars=x.lineNumInnerWidth?E.length:-1,x.lineGutter.style.width=x.lineNumWidth+"px",Se(a.display),!0}return!1}function en(a,y){for(var E=[],x=!1,ee=0;ee<a.length;ee++){var ae=a[ee],ce=null;if(typeof ae!="string"&&(ce=ae.style,ae=ae.className),ae=="CodeMirror-linenumbers")if(y)x=!0;else continue;E.push({className:ae,style:ce})}return y&&!x&&E.push({className:"CodeMirror-linenumbers",style:null}),E}function fn(a){var y=a.gutters,E=a.gutterSpecs;jt(y),a.lineGutter=null;for(var x=0;x<E.length;++x){var ee=E[x],ae=ee.className,ce=ee.style,ye=y.appendChild(yt("div",null,"CodeMirror-gutter "+ae));ce&&(ye.style.cssText=ce),ae=="CodeMirror-linenumbers"&&(a.lineGutter=ye,ye.style.width=(a.lineNumWidth||1)+"px")}y.style.display=E.length?"":"none",Se(a)}function Pn(a){fn(a.display),ii(a),ht(a)}function Dn(a,y,E,x){var ee=this;this.input=E,ee.scrollbarFiller=yt("div",null,"CodeMirror-scrollbar-filler"),ee.scrollbarFiller.setAttribute("cm-not-content","true"),ee.gutterFiller=yt("div",null,"CodeMirror-gutter-filler"),ee.gutterFiller.setAttribute("cm-not-content","true"),ee.lineDiv=Et("div",null,"CodeMirror-code"),ee.selectionDiv=yt("div",null,null,"position: relative; z-index: 1"),ee.cursorDiv=yt("div",null,"CodeMirror-cursors"),ee.measure=yt("div",null,"CodeMirror-measure"),ee.lineMeasure=yt("div",null,"CodeMirror-measure"),ee.lineSpace=Et("div",[ee.measure,ee.lineMeasure,ee.selectionDiv,ee.cursorDiv,ee.lineDiv],null,"position: relative; outline: none");var ae=Et("div",[ee.lineSpace],"CodeMirror-lines");ee.mover=yt("div",[ae],null,"position: relative"),ee.sizer=yt("div",[ee.mover],"CodeMirror-sizer"),ee.sizerWidth=null,ee.heightForcer=yt("div",null,null,"position: absolute; height: "+Pt+"px; width: 1px;"),ee.gutters=yt("div",null,"CodeMirror-gutters"),ee.lineGutter=null,ee.scroller=yt("div",[ee.sizer,ee.heightForcer,ee.gutters],"CodeMirror-scroll"),ee.scroller.setAttribute("tabIndex","-1"),ee.wrapper=yt("div",[ee.scrollbarFiller,ee.gutterFiller,ee.scroller],"CodeMirror"),xe&&ge<8&&(ee.gutters.style.zIndex=-1,ee.scroller.style.paddingRight=0),!Ee&&!(b&&Ne)&&(ee.scroller.draggable=!0),a&&(a.appendChild?a.appendChild(ee.wrapper):a(ee.wrapper)),ee.viewFrom=ee.viewTo=y.first,ee.reportedViewFrom=ee.reportedViewTo=y.first,ee.view=[],ee.renderedView=null,ee.externalMeasured=null,ee.viewOffset=0,ee.lastWrapHeight=ee.lastWrapWidth=0,ee.updateLineNumbers=null,ee.nativeBarWidth=ee.barHeight=ee.barWidth=0,ee.scrollbarsClipped=!1,ee.lineNumWidth=ee.lineNumInnerWidth=ee.lineNumChars=null,ee.alignWidgets=!1,ee.cachedCharWidth=ee.cachedTextHeight=ee.cachedPaddingH=null,ee.maxLine=null,ee.maxLineLength=0,ee.maxLineChanged=!1,ee.wheelDX=ee.wheelDY=ee.wheelStartX=ee.wheelStartY=null,ee.shift=!1,ee.selForContextMenu=null,ee.activeTouch=null,ee.gutterSpecs=en(x.gutters,x.lineNumbers),fn(ee),E.init(ee)}var jn=0,Mn=null;xe?Mn=-.53:b?Mn=15:Ae?Mn=-.7:tt&&(Mn=-1/3);function xr(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 fr(a){var y=xr(a);return y.x*=Mn,y.y*=Mn,y}function sr(a,y){var E=xr(y),x=E.x,ee=E.y,ae=a.display,ce=ae.scroller,ye=ce.scrollWidth>ce.clientWidth,Ie=ce.scrollHeight>ce.clientHeight;if(x&&ye||ee&&Ie){if(ee&&Ze&&Ee){e:for(var Ue=y.target,rn=ae.view;Ue!=ce;Ue=Ue.parentNode)for(var mn=0;mn<rn.length;mn++)if(rn[mn].node==Ue){a.display.currentWheelTarget=Ue;break e}}if(x&&!b&&!de&&Mn!=null){ee&&Ie&&yl(a,Math.max(0,ce.scrollTop+ee*Mn)),hl(a,Math.max(0,ce.scrollLeft+x*Mn)),(!ee||ee&&Ie)&&Bt(y),ae.wheelStartX=null;return}if(ee&&Mn!=null){var Qn=ee*Mn,Wn=a.doc.scrollTop,Br=Wn+ae.wrapper.clientHeight;Qn<0?Wn=Math.max(0,Wn+Qn-50):Br=Math.min(a.doc.height,Br+Qn+50),zs(a,{top:Wn,bottom:Br})}jn<20&&(ae.wheelStartX==null?(ae.wheelStartX=ce.scrollLeft,ae.wheelStartY=ce.scrollTop,ae.wheelDX=x,ae.wheelDY=ee,setTimeout(function(){if(ae.wheelStartX!=null){var Mr=ce.scrollLeft-ae.wheelStartX,Vr=ce.scrollTop-ae.wheelStartY,oo=Vr&&ae.wheelDY&&Vr/ae.wheelDY||Mr&&ae.wheelDX&&Mr/ae.wheelDX;ae.wheelStartX=ae.wheelStartY=null,oo&&(Mn=(Mn*jn+oo)/(jn+1),++jn)}},200)):(ae.wheelDX+=x,ae.wheelDY+=ee))}}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(!Oe(E.anchor,x.anchor)||!Oe(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 Un(Ft(this.ranges[y].anchor),Ft(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(St(y,x.from())>=0&&St(a,x.to())<=0)return E}return-1};var Un=function(a,y){this.anchor=a,this.head=y};Un.prototype.from=function(){return De(this.anchor,this.head)},Un.prototype.to=function(){return Zt(this.anchor,this.head)},Un.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function kr(a,y,E){var x=a&&a.options.selectionsMayTouch,ee=y[E];y.sort(function(Qn,Wn){return St(Qn.from(),Wn.from())}),E=Ct(y,ee);for(var ae=1;ae<y.length;ae++){var ce=y[ae],ye=y[ae-1],Ie=St(ye.to(),ce.from());if(x&&!ce.empty()?Ie>0:Ie>=0){var Ue=De(ye.from(),ce.from()),rn=Zt(ye.to(),ce.to()),mn=ye.empty()?ce.from()==ce.head:ye.from()==ye.head;ae<=E&&--E,y.splice(--ae,2,new Un(mn?rn:Ue,mn?Ue:rn))}}return new Yn(y,E)}function Dr(a,y){return new Yn([new Un(a,y||a)],0)}function Lr(a){return a.text?$e(a.from.line+a.text.length-1,vt(a.text).length+(a.text.length==1?a.from.ch:0)):a.to}function $r(a,y){if(St(a,y.from)<0)return a;if(St(a,y.to)<=0)return Lr(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+=Lr(y).ch-y.to.ch),$e(E,x)}function Zr(a,y){for(var E=[],x=0;x<a.sel.ranges.length;x++){var ee=a.sel.ranges[x];E.push(new Un($r(ee.anchor,y),$r(ee.head,y)))}return kr(a.cm,E,a.sel.primIndex)}function Gr(a,y,E){return a.line==y.line?$e(E.line,a.ch-y.ch+E.ch):$e(E.line+(a.line-y.line),a.ch)}function to(a,y,E){for(var x=[],ee=$e(a.first,0),ae=ee,ce=0;ce<y.length;ce++){var ye=y[ce],Ie=Gr(ye.from,ee,ae),Ue=Gr(Lr(ye),ee,ae);if(ee=ye.to,ae=Ue,E=="around"){var rn=a.sel.ranges[ce],mn=St(rn.head,rn.anchor)<0;x[ce]=new Un(mn?Ue:Ie,mn?Ie:Ue)}else x[ce]=new Un(Ie,Ie)}return new Yn(x,a.sel.primIndex)}function uo(a){a.doc.mode=_t(a.options,a.doc.modeOption),io(a)}function io(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,fs(a,100),a.state.modeGen++,a.curOp&&ii(a)}function $o(a,y){return y.from.ch==0&&y.to.ch==0&&vt(y.text)==""&&(!a.cm||a.cm.options.wholeLineUpdateBefore)}function Do(a,y,E,x){function ee(go){return E?E[go]:null}function ae(go,ao,So){jr(go,ao,So,x),Ho(go,"change",go,y)}function ce(go,ao){for(var So=[],jo=go;jo<ao;++jo)So.push(new Ur(Ue[jo],ee(jo),x));return So}var ye=y.from,Ie=y.to,Ue=y.text,rn=Jt(a,ye.line),mn=Jt(a,Ie.line),Qn=vt(Ue),Wn=ee(Ue.length-1),Br=Ie.line-ye.line;if(y.full)a.insert(0,ce(0,Ue.length)),a.remove(Ue.length,a.size-Ue.length);else if($o(a,y)){var Mr=ce(0,Ue.length-1);ae(mn,mn.text,Wn),Br&&a.remove(ye.line,Br),Mr.length&&a.insert(ye.line,Mr)}else if(rn==mn)if(Ue.length==1)ae(rn,rn.text.slice(0,ye.ch)+Qn+rn.text.slice(Ie.ch),Wn);else{var Vr=ce(1,Ue.length-1);Vr.push(new Ur(Qn+rn.text.slice(Ie.ch),Wn,x)),ae(rn,rn.text.slice(0,ye.ch)+Ue[0],ee(0)),a.insert(ye.line+1,Vr)}else if(Ue.length==1)ae(rn,rn.text.slice(0,ye.ch)+Ue[0]+mn.text.slice(Ie.ch),ee(0)),a.remove(ye.line+1,Br);else{ae(rn,rn.text.slice(0,ye.ch)+Ue[0],ee(0)),ae(mn,Qn+mn.text.slice(Ie.ch),Wn);var oo=ce(1,Ue.length-1);Br>1&&a.remove(ye.line+1,Br-1),a.insert(ye.line+1,oo)}Ho(a,"change",a,y)}function Co(a,y,E){function x(ee,ae,ce){if(ee.linked)for(var ye=0;ye<ee.linked.length;++ye){var Ie=ee.linked[ye];if(Ie.doc!=ae){var Ue=ce&&Ie.sharedHist;E&&!Ue||(y(Ie.doc,Ue),x(Ie.doc,ee,Ue))}}}x(a,null,!0)}function To(a,y){if(y.cm)throw new Error("This document is already in use.");a.doc=y,y.cm=a,Pl(a),uo(a),co(a),a.options.lineWrapping||Rr(a),a.options.mode=y.modeOption,ii(a)}function co(a){(a.doc.direction=="rtl"?ue:ft)(a.display.lineDiv,"CodeMirror-rtl")}function ho(a){zi(a,function(){co(a),ii(a)})}function qr(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 Kr(a,y){var E={from:Ft(y.from),to:Lr(y),text:wn(a,y.from,y.to)};return za(a,E,y.from.line,y.to.line+1),Co(a,function(x){return za(x,E,y.from.line,y.to.line+1)},!0),E}function so(a){for(;a.length;){var y=vt(a);if(y.ranges)a.pop();else break}}function mo(a,y){if(y)return so(a.done),vt(a.done);if(a.done.length&&!vt(a.done).ranges)return vt(a.done);if(a.done.length>1&&!a.done[a.done.length-2].ranges)return a.done.pop(),vt(a.done)}function Oo(a,y,E,x){var ee=a.history;ee.undone.length=0;var ae=+new Date,ce,ye;if((ee.lastOp==x||ee.lastOrigin==y.origin&&y.origin&&(y.origin.charAt(0)=="+"&&ee.lastModTime>ae-(a.cm?a.cm.options.historyEventDelay:500)||y.origin.charAt(0)=="*"))&&(ce=mo(ee,ee.lastOp==x)))ye=vt(ce.changes),St(y.from,y.to)==0&&St(y.from,ye.to)==0?ye.to=Lr(y):ce.changes.push(Kr(a,y));else{var Ie=vt(ee.done);for((!Ie||!Ie.ranges)&&ta(a.sel,ee.done),ce={changes:[Kr(a,y)],generation:ee.generation},ee.done.push(ce);ee.done.length>ee.undoDepth;)ee.done.shift(),ee.done[0].ranges||ee.done.shift()}ee.done.push(E),ee.generation=++ee.maxGeneration,ee.lastModTime=ee.lastSelTime=ae,ee.lastOp=ee.lastSelOp=x,ee.lastOrigin=ee.lastSelOrigin=y.origin,ye||Yt(a,"historyAdded")}function _r(a,y,E,x){var ee=y.charAt(0);return ee=="*"||ee=="+"&&E.ranges.length==x.ranges.length&&E.somethingSelected()==x.somethingSelected()&&new Date-a.history.lastSelTime<=(a.cm?a.cm.options.historyEventDelay:500)}function Qo(a,y,E,x){var ee=a.history,ae=x&&x.origin;E==ee.lastSelOp||ae&&ee.lastSelOrigin==ae&&(ee.lastModTime==ee.lastSelTime&&ee.lastOrigin==ae||_r(a,ae,vt(ee.done),y))?ee.done[ee.done.length-1]=y:ta(y,ee.done),ee.lastSelTime=+new Date,ee.lastSelOrigin=ae,ee.lastSelOp=E,x&&x.clearRedo!==!1&&so(ee.undone)}function ta(a,y){var E=vt(y);E&&E.ranges&&E.equals(a)||y.push(a)}function za(a,y,E,x){var ee=y["spans_"+a.id],ae=0;a.iter(Math.max(a.first,E),Math.min(a.first+a.size,x),function(ce){ce.markedSpans&&((ee||(ee=y["spans_"+a.id]={}))[ae]=ce.markedSpans),++ae})}function Fa(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 wa(a,y){var E=y["spans_"+a.id];if(!E)return null;for(var x=[],ee=0;ee<y.text.length;++ee)x.push(Fa(E[ee]));return x}function Na(a,y){var E=wa(a,y),x=Er(a,y);if(!E)return x;if(!x)return E;for(var ee=0;ee<E.length;++ee){var ae=E[ee],ce=x[ee];if(ae&&ce)e:for(var ye=0;ye<ce.length;++ye){for(var Ie=ce[ye],Ue=0;Ue<ae.length;++Ue)if(ae[Ue].marker==Ie.marker)continue e;ae.push(Ie)}else ce&&(E[ee]=ce)}return E}function Ka(a,y,E){for(var x=[],ee=0;ee<a.length;++ee){var ae=a[ee];if(ae.ranges){x.push(E?Yn.prototype.deepCopy.call(ae):ae);continue}var ce=ae.changes,ye=[];x.push({changes:ye});for(var Ie=0;Ie<ce.length;++Ie){var Ue=ce[Ie],rn=void 0;if(ye.push({from:Ue.from,to:Ue.to,text:Ue.text}),y)for(var mn in Ue)(rn=mn.match(/^spans_(\d+)$/))&&Ct(y,Number(rn[1]))>-1&&(vt(ye)[mn]=Ue[mn],delete Ue[mn])}}return x}function na(a,y,E,x){if(x){var ee=a.anchor;if(E){var ae=St(y,ee)<0;ae!=St(E,ee)<0?(ee=y,y=E):ae!=St(y,E)<0&&(y=E)}return new Un(ee,y)}else return new Un(E||y,y)}function ra(a,y,E,x,ee){ee==null&&(ee=a.cm&&(a.cm.display.shift||a.extend)),lo(a,new Yn([na(a.sel.primary(),y,E,ee)],0),x)}function Va(a,y,E){for(var x=[],ee=a.cm&&(a.cm.display.shift||a.extend),ae=0;ae<a.sel.ranges.length;ae++)x[ae]=na(a.sel.ranges[ae],y[ae],null,ee);var ce=kr(a.cm,x,a.sel.primIndex);lo(a,ce,E)}function qa(a,y,E,x){var ee=a.sel.ranges.slice(0);ee[y]=E,lo(a,kr(a.cm,ee,a.sel.primIndex),x)}function xo(a,y,E,x){lo(a,Dr(y,E),x)}function zo(a,y,E){var x={ranges:y.ranges,update:function(ee){this.ranges=[];for(var ae=0;ae<ee.length;ae++)this.ranges[ae]=new Un(Me(a,ee[ae].anchor),Me(a,ee[ae].head))},origin:E&&E.origin};return Yt(a,"beforeSelectionChange",a,x),a.cm&&Yt(a.cm,"beforeSelectionChange",a.cm,x),x.ranges!=y.ranges?kr(a.cm,x.ranges,x.ranges.length-1):y}function yo(a,y,E){var x=a.history.done,ee=vt(x);ee&&ee.ranges?(x[x.length-1]=y,la(a,y,E)):lo(a,y,E)}function lo(a,y,E){la(a,y,E),Qo(a,a.sel,a.cm?a.cm.curOp.id:NaN,E)}function la(a,y,E){(Gt(a,"beforeSelectionChange")||a.cm&&Gt(a.cm,"beforeSelectionChange"))&&(y=zo(a,y,E));var x=E&&E.bias||(St(y.primary().head,a.sel.primary().head)<0?-1:1);ha(a,Sa(a,y,x,!0)),!(E&&E.scroll===!1)&&a.cm&&fl(a.cm)}function ha(a,y){y.equals(a.sel)||(a.sel=y,a.cm&&(a.cm.curOp.updateInput=1,a.cm.curOp.selectionChanged=!0,vn(a.cm)),Ho(a,"cursorActivity",a))}function Ia(a){ha(a,Sa(a,a.sel,null,!1))}function Sa(a,y,E,x){for(var ee,ae=0;ae<y.ranges.length;ae++){var ce=y.ranges[ae],ye=y.ranges.length==a.sel.ranges.length&&a.sel.ranges[ae],Ie=ni(a,ce.anchor,ye&&ye.anchor,E,x),Ue=ni(a,ce.head,ye&&ye.head,E,x);(ee||Ie!=ce.anchor||Ue!=ce.head)&&(ee||(ee=y.ranges.slice(0,ae)),ee[ae]=new Un(Ie,Ue))}return ee?kr(a.cm,ee,y.primIndex):y}function Ua(a,y,E,x,ee){var ae=Jt(a,y.line);if(ae.markedSpans)for(var ce=0;ce<ae.markedSpans.length;++ce){var ye=ae.markedSpans[ce],Ie=ye.marker,Ue="selectLeft"in Ie?!Ie.selectLeft:Ie.inclusiveLeft,rn="selectRight"in Ie?!Ie.selectRight:Ie.inclusiveRight;if((ye.from==null||(Ue?ye.from<=y.ch:ye.from<y.ch))&&(ye.to==null||(rn?ye.to>=y.ch:ye.to>y.ch))){if(ee&&(Yt(Ie,"beforeCursorEnter"),Ie.explicitlyCleared))if(ae.markedSpans){--ce;continue}else break;if(!Ie.atomic)continue;if(E){var mn=Ie.find(x<0?1:-1),Qn=void 0;if((x<0?rn:Ue)&&(mn=Eo(a,mn,-x,mn&&mn.line==y.line?ae:null)),mn&&mn.line==y.line&&(Qn=St(mn,E))&&(x<0?Qn<0:Qn>0))return Ua(a,mn,y,x,ee)}var Wn=Ie.find(x<0?-1:1);return(x<0?Ue:rn)&&(Wn=Eo(a,Wn,x,Wn.line==y.line?ae:null)),Wn?Ua(a,Wn,y,x,ee):null}}return y}function ni(a,y,E,x,ee){var ae=x||1,ce=Ua(a,y,E,ae,ee)||!ee&&Ua(a,y,E,ae,!0)||Ua(a,y,E,-ae,ee)||!ee&&Ua(a,y,E,-ae,!0);return ce||(a.cantEdit=!0,$e(a.first,0))}function Eo(a,y,E,x){return E<0&&y.ch==0?y.line>a.first?Me(a,$e(y.line-1)):null:E>0&&y.ch==(x||Jt(a,y.line)).text.length?y.line<a.first+a.size-1?$e(y.line+1,0):null:new $e(y.line,y.ch+E)}function Mo(a){a.setSelection($e(a.firstLine(),0),$e(a.lastLine()),Ce)}function pa(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(ee,ae,ce,ye){ee&&(x.from=Me(a,ee)),ae&&(x.to=Me(a,ae)),ce&&(x.text=ce),ye!==void 0&&(x.origin=ye)}),Yt(a,"beforeChange",a,x),a.cm&&Yt(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 Ca(a,y,E){if(a.cm){if(!a.cm.curOp)return Ci(a.cm,Ca)(a,y,E);if(a.cm.state.suppressEdits)return}if(!((Gt(a,"beforeChange")||a.cm&&Gt(a.cm,"beforeChange"))&&(y=pa(a,y,!0),!y))){var x=tn&&!E&&zr(a,y.from,y.to);if(x)for(var ee=x.length-1;ee>=0;--ee)ya(a,{from:x[ee].from,to:x[ee].to,text:ee?[""]:y.text,origin:y.origin});else ya(a,y)}}function ya(a,y){if(!(y.text.length==1&&y.text[0]==""&&St(y.from,y.to)==0)){var E=Zr(a,y);Oo(a,y,E,a.cm?a.cm.curOp.id:NaN),ji(a,y,E,Er(a,y));var x=[];Co(a,function(ee,ae){!ae&&Ct(x,ee.history)==-1&&(ri(ee.history,y),x.push(ee.history)),ji(ee,y,null,Er(ee,y))})}}function li(a,y,E){var x=a.cm&&a.cm.state.suppressEdits;if(!(x&&!E)){for(var ee=a.history,ae,ce=a.sel,ye=y=="undo"?ee.done:ee.undone,Ie=y=="undo"?ee.undone:ee.done,Ue=0;Ue<ye.length&&(ae=ye[Ue],!(E?ae.ranges&&!ae.equals(a.sel):!ae.ranges));Ue++);if(Ue!=ye.length){for(ee.lastOrigin=ee.lastSelOrigin=null;;)if(ae=ye.pop(),ae.ranges){if(ta(ae,Ie),E&&!ae.equals(a.sel)){lo(a,ae,{clearRedo:!1});return}ce=ae}else if(x){ye.push(ae);return}else break;var rn=[];ta(ce,Ie),Ie.push({changes:rn,generation:ee.generation}),ee.generation=ae.generation||++ee.maxGeneration;for(var mn=Gt(a,"beforeChange")||a.cm&&Gt(a.cm,"beforeChange"),Qn=function(Mr){var Vr=ae.changes[Mr];if(Vr.origin=y,mn&&!pa(a,Vr,!1))return ye.length=0,{};rn.push(Kr(a,Vr));var oo=Mr?Zr(a,Vr):vt(ye);ji(a,Vr,oo,Na(a,Vr)),!Mr&&a.cm&&a.cm.scrollIntoView({from:Vr.from,to:Lr(Vr)});var go=[];Co(a,function(ao,So){!So&&Ct(go,ao.history)==-1&&(ri(ao.history,Vr),go.push(ao.history)),ji(ao,Vr,null,Na(ao,Vr))})},Wn=ae.changes.length-1;Wn>=0;--Wn){var Br=Qn(Wn);if(Br)return Br.v}}}}function Ga(a,y){if(y!=0&&(a.first+=y,a.sel=new Yn(gn(a.sel.ranges,function(ee){return new Un($e(ee.anchor.line+y,ee.anchor.ch),$e(ee.head.line+y,ee.head.ch))}),a.sel.primIndex),a.cm)){ii(a.cm,a.first,a.first-y,y);for(var E=a.cm.display,x=E.viewFrom;x<E.viewTo;x++)bi(a.cm,x,"gutter")}}function ji(a,y,E,x){if(a.cm&&!a.cm.curOp)return Ci(a.cm,ji)(a,y,E,x);if(y.to.line<a.first){Ga(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 ee=y.text.length-1-(a.first-y.from.line);Ga(a,ee),y={from:$e(a.first,0),to:$e(y.to.line+ee,y.to.ch),text:[vt(y.text)],origin:y.origin}}var ae=a.lastLine();y.to.line>ae&&(y={from:y.from,to:$e(ae,Jt(a,ae).text.length),text:[y.text[0]],origin:y.origin}),y.removed=wn(a,y.from,y.to),E||(E=Zr(a,y)),a.cm?Ma(a.cm,y,x):Do(a,y,x),la(a,E,Ce),a.cantEdit&&ni(a,$e(a.firstLine(),0))&&(a.cantEdit=!1)}}function Ma(a,y,E){var x=a.doc,ee=a.display,ae=y.from,ce=y.to,ye=!1,Ie=ae.line;a.options.lineWrapping||(Ie=We(bn(Jt(x,ae.line))),x.iter(Ie,ce.line+1,function(Wn){if(Wn==ee.maxLine)return ye=!0,!0})),x.sel.contains(y.from,y.to)>-1&&vn(a),Do(x,y,E,jl(a)),a.options.lineWrapping||(x.iter(Ie,ae.line+y.text.length,function(Wn){var Br=Fr(Wn);Br>ee.maxLineLength&&(ee.maxLine=Wn,ee.maxLineLength=Br,ee.maxLineChanged=!0,ye=!1)}),ye&&(a.curOp.updateMaxLine=!0)),Ht(x,ae.line),fs(a,400);var Ue=y.text.length-(ce.line-ae.line)-1;y.full?ii(a):ae.line==ce.line&&y.text.length==1&&!$o(a.doc,y)?bi(a,ae.line,"text"):ii(a,ae.line,ce.line+1,Ue);var rn=Gt(a,"changes"),mn=Gt(a,"change");if(mn||rn){var Qn={from:ae,to:ce,text:y.text,removed:y.removed,origin:y.origin};mn&&Ho(a,"change",a,Qn),rn&&(a.curOp.changeObjs||(a.curOp.changeObjs=[])).push(Qn)}a.display.selForContextMenu=null}function ca(a,y,E,x,ee){var ae;x||(x=E),St(x,E)<0&&(ae=[x,E],E=ae[0],x=ae[1]),typeof y=="string"&&(y=a.splitLines(y)),Ca(a,{from:E,to:x,text:y,origin:ee})}function Ea(a,y,E,x){E<a.line?a.line+=x:y<a.line&&(a.line=y,a.ch=0)}function Da(a,y,E,x){for(var ee=0;ee<a.length;++ee){var ae=a[ee],ce=!0;if(ae.ranges){ae.copied||(ae=a[ee]=ae.deepCopy(),ae.copied=!0);for(var ye=0;ye<ae.ranges.length;ye++)Ea(ae.ranges[ye].anchor,y,E,x),Ea(ae.ranges[ye].head,y,E,x);continue}for(var Ie=0;Ie<ae.changes.length;++Ie){var Ue=ae.changes[Ie];if(E<Ue.from.line)Ue.from=$e(Ue.from.line+x,Ue.from.ch),Ue.to=$e(Ue.to.line+x,Ue.to.ch);else if(y<=Ue.to.line){ce=!1;break}}ce||(a.splice(0,ee+1),ee=0)}}function ri(a,y){var E=y.from.line,x=y.to.line,ee=y.text.length-(x-E)-1;Da(a.done,E,x,ee),Da(a.undone,E,x,ee)}function ja(a,y,E,x){var ee=y,ae=y;return typeof y=="number"?ae=Jt(a,Te(a,y)):ee=We(y),ee==null?null:(x(ae,ee)&&a.cm&&bi(a.cm,ee,E),ae)}function da(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}da.prototype={chunkSize:function(){return this.lines.length},removeInner:function(a,y){for(var E=a,x=a+y;E<x;++E){var ee=this.lines[E];this.height-=ee.height,ro(ee),Ho(ee,"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 Ta(a){this.children=a;for(var y=0,E=0,x=0;x<a.length;++x){var ee=a[x];y+=ee.chunkSize(),E+=ee.height,ee.parent=this}this.size=y,this.height=E,this.parent=null}Ta.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],ee=x.chunkSize();if(a<ee){var ae=Math.min(y,ee-a),ce=x.height;if(x.removeInner(a,ae),this.height-=ce-x.height,ee==ae&&(this.children.splice(E--,1),x.parent=null),(y-=ae)==0)break;a=0}else a-=ee}if(this.size-y<25&&(this.children.length>1||!(this.children[0]instanceof da))){var ye=[];this.collapse(ye),this.children=[new da(ye)],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 ee=this.children[x],ae=ee.chunkSize();if(a<=ae){if(ee.insertInner(a,y,E),ee.lines&&ee.lines.length>50){for(var ce=ee.lines.length%25+25,ye=ce;ye<ee.lines.length;){var Ie=new da(ee.lines.slice(ye,ye+=25));ee.height-=Ie.height,this.children.splice(++x,0,Ie),Ie.parent=this}ee.lines=ee.lines.slice(0,ce),this.maybeSpill()}break}a-=ae}},maybeSpill:function(){if(!(this.children.length<=10)){var a=this;do{var y=a.children.splice(a.children.length-5,5),E=new Ta(y);if(a.parent){a.size-=E.size,a.height-=E.height;var ee=Ct(a.parent.children,a);a.parent.children.splice(ee+1,0,E)}else{var x=new Ta(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 ee=this.children[x],ae=ee.chunkSize();if(a<ae){var ce=Math.min(y,ae-a);if(ee.iterN(a,ce,E))return!0;if((y-=ce)==0)break;a=0}else a-=ae}}};var ma=function(a,y,E){if(E)for(var x in E)E.hasOwnProperty(x)&&(this[x]=E[x]);this.doc=a,this.node=y};ma.prototype.clear=function(){var a=this.doc.cm,y=this.line.widgets,E=this.line,x=We(E);if(!(x==null||!y)){for(var ee=0;ee<y.length;++ee)y[ee]==this&&y.splice(ee--,1);y.length||(E.widgets=null);var ae=qo(this);sn(E,Math.max(0,E.height-ae)),a&&(zi(a,function(){xi(a,E,-ae),bi(a,x,"widget")}),Ho(a,"lineWidgetCleared",a,this,x))}},ma.prototype.changed=function(){var a=this,y=this.height,E=this.doc.cm,x=this.line;this.height=null;var ee=qo(this)-y;ee&&(Xn(this.doc,x)||sn(x,x.height+ee),E&&zi(E,function(){E.curOp.forceUpdate=!0,xi(E,x,ee),Ho(E,"lineWidgetChanged",E,a,We(x))}))},_e(ma);function xi(a,y,E){Ar(y)<(a.curOp&&a.curOp.scrollTop||a.doc.scrollTop)&&Vl(a,E)}function _a(a,y,E,x){var ee=new ma(a,E,x),ae=a.cm;return ae&&ee.noHScroll&&(ae.display.alignWidgets=!0),ja(a,y,"widget",function(ce){var ye=ce.widgets||(ce.widgets=[]);if(ee.insertAt==null?ye.push(ee):ye.splice(Math.min(ye.length-1,Math.max(0,ee.insertAt)),0,ee),ee.line=ce,ae&&!Xn(a,ce)){var Ie=Ar(ce)<a.scrollTop;sn(ce,ce.height+qo(ee)),Ie&&Vl(ae,ee.height),ae.curOp.forceUpdate=!0}return!0}),ae&&Ho(ae,"lineWidgetAdded",ae,ee,typeof y=="number"?y:We(y)),ee}var Ri=0,Wi=function(a,y){this.lines=[],this.type=y,this.doc=a,this.id=++Ri};Wi.prototype.clear=function(){if(!this.explicitlyCleared){var a=this.doc.cm,y=a&&!a.curOp;if(y&&Xl(a),Gt(this,"clear")){var E=this.find();E&&Ho(this,"clear",E.from,E.to)}for(var x=null,ee=null,ae=0;ae<this.lines.length;++ae){var ce=this.lines[ae],ye=or(ce.markedSpans,this);a&&!this.collapsed?bi(a,We(ce),"text"):a&&(ye.to!=null&&(ee=We(ce)),ye.from!=null&&(x=We(ce))),ce.markedSpans=cr(ce.markedSpans,ye),ye.from==null&&this.collapsed&&!Xn(this.doc,ce)&&a&&sn(ce,Ni(a.display))}if(a&&this.collapsed&&!a.options.lineWrapping)for(var Ie=0;Ie<this.lines.length;++Ie){var Ue=bn(this.lines[Ie]),rn=Fr(Ue);rn>a.display.maxLineLength&&(a.display.maxLine=Ue,a.display.maxLineLength=rn,a.display.maxLineChanged=!0)}x!=null&&a&&this.collapsed&&ii(a,x,ee+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,a&&Ia(a.doc)),a&&Ho(a,"markerCleared",a,this,x,ee),y&&rs(a),this.parent&&this.parent.clear()}},Wi.prototype.find=function(a,y){a==null&&this.type=="bookmark"&&(a=1);for(var E,x,ee=0;ee<this.lines.length;++ee){var ae=this.lines[ee],ce=or(ae.markedSpans,this);if(ce.from!=null&&(E=$e(y?ae:We(ae),ce.from),a==-1))return E;if(ce.to!=null&&(x=$e(y?ae:We(ae),ce.to),a==1))return x}return E&&{from:E,to:x}},Wi.prototype.changed=function(){var a=this,y=this.find(-1,!0),E=this,x=this.doc.cm;!y||!x||zi(x,function(){var ee=y.line,ae=We(y.line),ce=Gi(x,ae);if(ce&&(Zl(ce),x.curOp.selectionChanged=x.curOp.forceUpdate=!0),x.curOp.updateMaxLine=!0,!Xn(E.doc,ee)&&E.height!=null){var ye=E.height;E.height=null;var Ie=qo(E)-ye;Ie&&sn(ee,ee.height+Ie)}Ho(x,"markerChanged",x,a)})},Wi.prototype.attachLine=function(a){if(!this.lines.length&&this.doc.cm){var y=this.doc.cm.curOp;(!y.maybeHiddenMarkers||Ct(y.maybeHiddenMarkers,this)==-1)&&(y.maybeUnhiddenMarkers||(y.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(a)},Wi.prototype.detachLine=function(a){if(this.lines.splice(Ct(this.lines,a),1),!this.lines.length&&this.doc.cm){var y=this.doc.cm.curOp;(y.maybeHiddenMarkers||(y.maybeHiddenMarkers=[])).push(this)}},_e(Wi);function Cl(a,y,E,x,ee){if(x&&x.shared)return hs(a,y,E,x,ee);if(a.cm&&!a.cm.curOp)return Ci(a.cm,Cl)(a,y,E,x,ee);var ae=new Wi(a,ee),ce=St(y,E);if(x&&ln(x,ae,!1),ce>0||ce==0&&ae.clearWhenEmpty!==!1)return ae;if(ae.replacedWith&&(ae.collapsed=!0,ae.widgetNode=Et("span",[ae.replacedWith],"CodeMirror-widget"),x.handleMouseEvents||ae.widgetNode.setAttribute("cm-ignore-events","true"),x.insertLeft&&(ae.widgetNode.insertLeft=!0)),ae.collapsed){if(Rn(a,y.line,y,E,ae)||y.line!=E.line&&Rn(a,E.line,y,E,ae))throw new Error("Inserting collapsed marker partially overlapping an existing one");tr()}ae.addToHistory&&Oo(a,{from:y,to:E,origin:"markText"},a.sel,NaN);var ye=y.line,Ie=a.cm,Ue;if(a.iter(ye,E.line+1,function(mn){Ie&&ae.collapsed&&!Ie.options.lineWrapping&&bn(mn)==Ie.display.maxLine&&(Ue=!0),ae.collapsed&&ye!=y.line&&sn(mn,0),nr(mn,new Nn(ae,ye==y.line?y.ch:null,ye==E.line?E.ch:null)),++ye}),ae.collapsed&&a.iter(y.line,E.line+1,function(mn){Xn(a,mn)&&sn(mn,0)}),ae.clearOnEnter&&It(ae,"beforeCursorEnter",function(){return ae.clear()}),ae.readOnly&&(Vn(),(a.history.done.length||a.history.undone.length)&&a.clearHistory()),ae.collapsed&&(ae.id=++Ri,ae.atomic=!0),Ie){if(Ue&&(Ie.curOp.updateMaxLine=!0),ae.collapsed)ii(Ie,y.line,E.line+1);else if(ae.className||ae.startStyle||ae.endStyle||ae.css||ae.attributes||ae.title)for(var rn=y.line;rn<=E.line;rn++)bi(Ie,rn,"text");ae.atomic&&Ia(Ie.doc),Ho(Ie,"markerAdded",Ie,ae)}return ae}var Oa=function(a,y){this.markers=a,this.primary=y;for(var E=0;E<a.length;++E)a[E].parent=this};Oa.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var a=0;a<this.markers.length;++a)this.markers[a].clear();Ho(this,"clear")}},Oa.prototype.find=function(a,y){return this.primary.find(a,y)},_e(Oa);function hs(a,y,E,x,ee){x=ln(x),x.shared=!1;var ae=[Cl(a,y,E,x,ee)],ce=ae[0],ye=x.widgetNode;return Co(a,function(Ie){ye&&(x.widgetNode=ye.cloneNode(!0)),ae.push(Cl(Ie,Me(Ie,y),Me(Ie,E),x,ee));for(var Ue=0;Ue<Ie.linked.length;++Ue)if(Ie.linked[Ue].isParent)return;ce=vt(ae)}),new Oa(ae,ce)}function ki(a){return a.findMarks($e(a.first,0),a.clipPos($e(a.lastLine())),function(y){return y.parent})}function il(a,y){for(var E=0;E<y.length;E++){var x=y[E],ee=x.find(),ae=a.clipPos(ee.from),ce=a.clipPos(ee.to);if(St(ae,ce)){var ye=Cl(a,ae,ce,x.primary,x.primary.type);x.markers.push(ye),ye.parent=x}}}function Yi(a){for(var y=function(x){var ee=a[x],ae=[ee.primary.doc];Co(ee.primary.doc,function(Ie){return ae.push(Ie)});for(var ce=0;ce<ee.markers.length;ce++){var ye=ee.markers[ce];Ct(ae,ye.doc)==-1&&(ye.parent=null,ee.markers.splice(ce--,1))}},E=0;E<a.length;E++)y(E)}var $i=0,Ba=function(a,y,E,x,ee){if(!(this instanceof Ba))return new Ba(a,y,E,x,ee);E==null&&(E=0),Ta.call(this,[new da([new Ur("",null)])]),this.first=E,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=E;var ae=$e(E,0);this.sel=Dr(ae),this.history=new qr(null),this.id=++$i,this.modeOption=y,this.lineSep=x,this.direction=ee=="rtl"?"rtl":"ltr",this.extend=!1,typeof a=="string"&&(a=this.splitLines(a)),Do(this,{from:ae,to:ae,text:a}),lo(this,Dr(ae),Ce)};Ba.prototype=ne(Ta.prototype,{constructor:Ba,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=un(this,this.first,this.first+this.size);return a===!1?y:y.join(a||this.lineSeparator())},setValue:vi(function(a){var y=$e(this.first,0),E=this.first+this.size-1;Ca(this,{from:y,to:$e(E,Jt(this,E).text.length),text:this.splitLines(a),origin:"setValue",full:!0},!0),this.cm&&wl(this.cm,0,0),lo(this,Dr(y),Ce)}),replaceRange:function(a,y,E,x){y=Me(this,y),E=E?Me(this,E):y,ca(this,a,y,E,x)},getRange:function(a,y,E){var x=wn(this,Me(this,a),Me(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(ze(this,a))return Jt(this,a)},getLineNumber:function(a){return We(a)},getLineHandleVisualStart:function(a){return typeof a=="number"&&(a=Jt(this,a)),bn(a)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(a){return Me(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:vi(function(a,y,E){xo(this,Me(this,typeof a=="number"?$e(a,y||0):a),null,E)}),setSelection:vi(function(a,y,E){xo(this,Me(this,a),Me(this,y||a),E)}),extendSelection:vi(function(a,y,E){ra(this,Me(this,a),y&&Me(this,y),E)}),extendSelections:vi(function(a,y){Va(this,it(this,a),y)}),extendSelectionsBy:vi(function(a,y){var E=gn(this.sel.ranges,a);Va(this,it(this,E),y)}),setSelections:vi(function(a,y,E){if(a.length){for(var x=[],ee=0;ee<a.length;ee++)x[ee]=new Un(Me(this,a[ee].anchor),Me(this,a[ee].head));y==null&&(y=Math.min(a.length-1,this.sel.primIndex)),lo(this,kr(this.cm,x,y),E)}}),addSelection:vi(function(a,y,E){var x=this.sel.ranges.slice(0);x.push(new Un(Me(this,a),Me(this,y||a))),lo(this,kr(this.cm,x,x.length-1),E)}),getSelection:function(a){for(var y=this.sel.ranges,E,x=0;x<y.length;x++){var ee=wn(this,y[x].from(),y[x].to());E=E?E.concat(ee):ee}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 ee=wn(this,E[x].from(),E[x].to());a!==!1&&(ee=ee.join(a||this.lineSeparator())),y[x]=ee}return y},replaceSelection:function(a,y,E){for(var x=[],ee=0;ee<this.sel.ranges.length;ee++)x[ee]=a;this.replaceSelections(x,y,E||"+input")},replaceSelections:vi(function(a,y,E){for(var x=[],ee=this.sel,ae=0;ae<ee.ranges.length;ae++){var ce=ee.ranges[ae];x[ae]={from:ce.from(),to:ce.to(),text:this.splitLines(a[ae]),origin:E}}for(var ye=y&&y!="end"&&to(this,x,y),Ie=x.length-1;Ie>=0;Ie--)Ca(this,x[Ie]);ye?yo(this,ye):this.cm&&fl(this.cm)}),undo:vi(function(){li(this,"undo")}),redo:vi(function(){li(this,"redo")}),undoSelection:vi(function(){li(this,"undo",!0)}),redoSelection:vi(function(){li(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 ee=0;ee<a.undone.length;ee++)a.undone[ee].ranges||++E;return{undo:y,redo:E}},clearHistory:function(){var a=this;this.history=new qr(this.history.maxGeneration),Co(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:Ka(this.history.done),undone:Ka(this.history.undone)}},setHistory:function(a){var y=this.history=new qr(this.history.maxGeneration);y.done=Ka(a.done.slice(0),null,!0),y.undone=Ka(a.undone.slice(0),null,!0)},setGutterMarker:vi(function(a,y,E){return ja(this,a,"gutter",function(x){var ee=x.gutterMarkers||(x.gutterMarkers={});return ee[y]=E,!E&&re(ee)&&(x.gutterMarkers=null),!0})}),clearGutter:vi(function(a){var y=this;this.iter(function(E){E.gutterMarkers&&E.gutterMarkers[a]&&ja(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(!ze(this,a)||(y=a,a=Jt(this,a),!a))return null}else if(y=We(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:vi(function(a,y,E){return ja(this,a,y=="gutter"?"gutter":"class",function(x){var ee=y=="text"?"textClass":y=="background"?"bgClass":y=="gutter"?"gutterClass":"wrapClass";if(!x[ee])x[ee]=E;else{if(ut(E).test(x[ee]))return!1;x[ee]+=" "+E}return!0})}),removeLineClass:vi(function(a,y,E){return ja(this,a,y=="gutter"?"gutter":"class",function(x){var ee=y=="text"?"textClass":y=="background"?"bgClass":y=="gutter"?"gutterClass":"wrapClass",ae=x[ee];if(ae)if(E==null)x[ee]=null;else{var ce=ae.match(ut(E));if(!ce)return!1;var ye=ce.index+ce[0].length;x[ee]=ae.slice(0,ce.index)+(!ce.index||ye==ae.length?"":" ")+ae.slice(ye)||null}else return!1;return!0})}),addLineWidget:vi(function(a,y,E){return _a(this,a,y,E)}),removeLineWidget:function(a){a.clear()},markText:function(a,y,E){return Cl(this,Me(this,a),Me(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=Me(this,a),Cl(this,a,a,E,"bookmark")},findMarksAt:function(a){a=Me(this,a);var y=[],E=Jt(this,a.line).markedSpans;if(E)for(var x=0;x<E.length;++x){var ee=E[x];(ee.from==null||ee.from<=a.ch)&&(ee.to==null||ee.to>=a.ch)&&y.push(ee.marker.parent||ee.marker)}return y},findMarks:function(a,y,E){a=Me(this,a),y=Me(this,y);var x=[],ee=a.line;return this.iter(a.line,y.line+1,function(ae){var ce=ae.markedSpans;if(ce)for(var ye=0;ye<ce.length;ye++){var Ie=ce[ye];!(Ie.to!=null&&ee==a.line&&a.ch>=Ie.to||Ie.from==null&&ee!=a.line||Ie.from!=null&&ee==y.line&&Ie.from>=y.ch)&&(!E||E(Ie.marker))&&x.push(Ie.marker.parent||Ie.marker)}++ee}),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(ee){var ae=ee.text.length+x;if(ae>a)return y=a,!0;a-=ae,++E}),Me(this,$e(E,y))},indexFromPos:function(a){a=Me(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 Ba(un(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 Ba(un(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}],il(x,ki(this)),x},unlinkDoc:function(a){if(a instanceof Ya&&(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),Yi(ki(this));break}}if(a.history==this.history){var x=[a.id];Co(a,function(ee){return x.push(ee.id)},!0),a.history=new qr(null),a.history.done=Ka(this.history.done,x),a.history.undone=Ka(this.history.undone,x)}},iterLinkedDocs:function(a){Co(this,a)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(a){return this.lineSep?a.split(this.lineSep):kn(a)},lineSeparator:function(){return this.lineSep||`
|
|
|
`},setDirection:vi(function(a){a!="rtl"&&(a="ltr"),a!=this.direction&&(this.direction=a,this.iter(function(y){return y.order=null}),this.cm&&ho(this.cm))})}),Ba.prototype.eachLine=Ba.prototype.iter;var Ji=0;function Nl(a){var y=this;if(Os(y),!(At(y,a)||wo(y.display,a))){Bt(a),xe&&(Ji=+new Date);var E=dl(y,a,!0),x=a.dataTransfer.files;if(!(!E||y.isReadOnly()))if(x&&x.length&&window.FileReader&&window.File)for(var ee=x.length,ae=Array(ee),ce=0,ye=function(){++ce==ee&&Ci(y,function(){E=Me(y.doc,E);var Wn={from:E,to:E,text:y.doc.splitLines(ae.filter(function(Br){return Br!=null}).join(y.doc.lineSeparator())),origin:"paste"};Ca(y.doc,Wn),yo(y.doc,Dr(Me(y.doc,E),Me(y.doc,Lr(Wn))))})()},Ie=function(Wn,Br){if(y.options.allowDropFileTypes&&Ct(y.options.allowDropFileTypes,Wn.type)==-1){ye();return}var Mr=new FileReader;Mr.onerror=function(){return ye()},Mr.onload=function(){var Vr=Mr.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Vr)){ye();return}ae[Br]=Vr,ye()},Mr.readAsText(Wn)},Ue=0;Ue<x.length;Ue++)Ie(x[Ue],Ue);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 rn=a.dataTransfer.getData("Text");if(rn){var mn;if(y.state.draggingText&&!y.state.draggingText.copy&&(mn=y.listSelections()),la(y.doc,Dr(E,E)),mn)for(var Qn=0;Qn<mn.length;++Qn)ca(y.doc,"",mn[Qn].anchor,mn[Qn].head,"drag");y.replaceSelection(rn,"around","paste"),y.display.input.focus()}}catch(Wn){}}}}function xl(a,y){if(xe&&(!a.state.draggingText||+new Date-Ji<100)){Le(y);return}if(!(At(a,y)||wo(a.display,y))&&(y.dataTransfer.setData("Text",a.getSelection()),y.dataTransfer.effectAllowed="copyMove",y.dataTransfer.setDragImage&&!tt)){var E=yt("img",null,null,"position: fixed; left: 0; top: 0;");E.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",de&&(E.width=E.height=1,a.display.wrapper.appendChild(E),E._top=E.offsetTop),y.dataTransfer.setDragImage(E,0,0),de&&E.parentNode.removeChild(E)}}function Sl(a,y){var E=dl(a,y);if(E){var x=document.createDocumentFragment();xs(a,E,x),a.display.dragCursor||(a.display.dragCursor=yt("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),a.display.lineSpace.insertBefore(a.display.dragCursor,a.display.cursorDiv)),Ot(a.display.dragCursor,x)}}function Os(a){a.display.dragCursor&&(a.display.lineSpace.removeChild(a.display.dragCursor),a.display.dragCursor=null)}function Bs(a){if(document.getElementsByClassName){for(var y=document.getElementsByClassName("CodeMirror"),E=[],x=0;x<y.length;x++){var ee=y[x].CodeMirror;ee&&E.push(ee)}E.length&&E[0].operation(function(){for(var ae=0;ae<E.length;ae++)a(E[ae])})}}var Is=!1;function Ps(){Is||(js(),Is=!0)}function js(){var a;It(window,"resize",function(){a==null&&(a=setTimeout(function(){a=null,Bs(Go)},100))}),It(window,"blur",function(){return Bs(Kl)})}function Go(a){var y=a.display;y.cachedCharWidth=y.cachedTextHeight=y.cachedPaddingH=null,y.scrollbarsClipped=!1,a.setSize()}for(var aa={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"},La=0;La<10;La++)aa[La+48]=aa[La+96]=String(La);for(var Xa=65;Xa<=90;Xa++)aa[Xa]=String.fromCharCode(Xa);for(var pi=1;pi<=12;pi++)aa[pi+111]=aa[pi+63235]="F"+pi;var si={};si.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"},si.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"},si.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"},si.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"]},si.default=Ze?si.macDefault:si.pcDefault;function pl(a){var y=a.split(/-(?!$)/);a=y[y.length-1];for(var E,x,ee,ae,ce=0;ce<y.length-1;ce++){var ye=y[ce];if(/^(cmd|meta|m)$/i.test(ye))ae=!0;else if(/^a(lt)?$/i.test(ye))E=!0;else if(/^(c|ctrl|control)$/i.test(ye))x=!0;else if(/^s(hift)?$/i.test(ye))ee=!0;else throw new Error("Unrecognized modifier name: "+ye)}return E&&(a="Alt-"+a),x&&(a="Ctrl-"+a),ae&&(a="Cmd-"+a),ee&&(a="Shift-"+a),a}function Bi(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 ee=gn(E.split(" "),pl),ae=0;ae<ee.length;ae++){var ce=void 0,ye=void 0;ae==ee.length-1?(ye=ee.join(" "),ce=x):(ye=ee.slice(0,ae+1).join(" "),ce="...");var Ie=y[ye];if(!Ie)y[ye]=ce;else if(Ie!=ce)throw new Error("Inconsistent bindings for "+ye)}delete a[E]}for(var Ue in y)a[Ue]=y[Ue];return a}function os(a,y,E,x){y=As(y);var ee=y.call?y.call(a,x):y[a];if(ee===!1)return"nothing";if(ee==="...")return"multi";if(ee!=null&&E(ee))return"handled";if(y.fallthrough){if(Object.prototype.toString.call(y.fallthrough)!="[object Array]")return os(a,y.fallthrough,E,x);for(var ae=0;ae<y.fallthrough.length;ae++){var ce=os(a,y.fallthrough[ae],E,x);if(ce)return ce}}}function Ws(a){var y=typeof a=="string"?a:aa[a.keyCode];return y=="Ctrl"||y=="Alt"||y=="Shift"||y=="Mod"}function vs(a,y,E){var x=a;return y.altKey&&x!="Alt"&&(a="Alt-"+a),(He?y.metaKey:y.ctrlKey)&&x!="Ctrl"&&(a="Ctrl-"+a),(He?y.ctrlKey:y.metaKey)&&x!="Mod"&&(a="Cmd-"+a),!E&&y.shiftKey&&x!="Shift"&&(a="Shift-"+a),a}function Yl(a,y){if(de&&a.keyCode==34&&a.char)return!1;var E=aa[a.keyCode];return E==null||a.altGraphKey?!1:(a.keyCode==3&&a.code&&(E=a.code),vs(E,a,y))}function As(a){return typeof a=="string"?si[a]:a}function Jl(a,y){for(var E=a.doc.sel.ranges,x=[],ee=0;ee<E.length;ee++){for(var ae=y(E[ee]);x.length&&St(ae.from,vt(x).to)<=0;){var ce=x.pop();if(St(ce.from,ae.from)<0){ae.from=ce.from;break}}x.push(ae)}zi(a,function(){for(var ye=x.length-1;ye>=0;ye--)ca(a.doc,"",x[ye].from,x[ye].to,"+delete");fl(a)})}function $s(a,y,E){var x=Dt(a.text,y+E,E);return x<0||x>a.text.length?null:x}function Fs(a,y,E){var x=$s(a,y.ch,E);return x==null?null:new $e(y.line,x,E<0?"after":"before")}function Ks(a,y,E,x,ee){if(a){y.doc.direction=="rtl"&&(ee=-ee);var ae=we(E,y.doc.direction);if(ae){var ce=ee<0?vt(ae):ae[0],ye=ee<0==(ce.level==1),Ie=ye?"after":"before",Ue;if(ce.level>0||y.doc.direction=="rtl"){var rn=sl(y,E);Ue=ee<0?E.text.length-1:0;var mn=Zi(y,rn,Ue).top;Ue=Re(function(Qn){return Zi(y,rn,Qn).top==mn},ee<0==(ce.level==1)?ce.from:ce.to-1,Ue),Ie=="before"&&(Ue=$s(E,Ue,1))}else Ue=ee<0?ce.to:ce.from;return new $e(x,Ue,Ie)}}return new $e(x,ee<0?E.text.length:0,ee<0?"before":"after")}function au(a,y,E,x){var ee=we(y,a.doc.direction);if(!ee)return Fs(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 ae=nt(ee,E.ch,E.sticky),ce=ee[ae];if(a.doc.direction=="ltr"&&ce.level%2==0&&(x>0?ce.to>E.ch:ce.from<E.ch))return Fs(y,E,x);var ye=function(oo,go){return $s(y,oo instanceof $e?oo.ch:oo,go)},Ie,Ue=function(oo){return a.options.lineWrapping?(Ie=Ie||sl(a,y),Aa(a,y,Ie,oo)):{begin:0,end:y.text.length}},rn=Ue(E.sticky=="before"?ye(E,-1):E.ch);if(a.doc.direction=="rtl"||ce.level==1){var mn=ce.level==1==x<0,Qn=ye(E,mn?1:-1);if(Qn!=null&&(mn?Qn<=ce.to&&Qn<=rn.end:Qn>=ce.from&&Qn>=rn.begin)){var Wn=mn?"before":"after";return new $e(E.line,Qn,Wn)}}var Br=function(oo,go,ao){for(var So=function(Za,Ai){return Ai?new $e(E.line,ye(Za,1),"before"):new $e(E.line,Za,"after")};oo>=0&&oo<ee.length;oo+=go){var jo=ee[oo],Ro=go>0==(jo.level!=1),sa=Ro?ao.begin:ye(ao.end,-1);if(jo.from<=sa&&sa<jo.to||(sa=Ro?jo.from:ye(jo.to,-1),ao.begin<=sa&&sa<ao.end))return So(sa,Ro)}},Mr=Br(ae+x,x,rn);if(Mr)return Mr;var Vr=x>0?rn.end:ye(rn.begin,-1);return Vr!=null&&!(x>0&&Vr==y.text.length)&&(Mr=Br(x>0?0:ee.length-1,x,Ue(Vr)),Mr)?Mr:null}var Ml={selectAll:Mo,singleSelection:function(a){return a.setSelection(a.getCursor("anchor"),a.getCursor("head"),Ce)},killLine:function(a){return Jl(a,function(y){if(y.empty()){var E=Jt(a.doc,y.head.line).text.length;return y.head.ch==E&&y.head.line<a.lastLine()?{from:y.head,to:$e(y.head.line+1,0)}:{from:y.head,to:$e(y.head.line,E)}}else return{from:y.from(),to:y.to()}})},deleteLine:function(a){return Jl(a,function(y){return{from:$e(y.from().line,0),to:Me(a.doc,$e(y.to().line+1,0))}})},delLineLeft:function(a){return Jl(a,function(y){return{from:$e(y.from().line,0),to:y.from()}})},delWrappedLineLeft:function(a){return Jl(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 Jl(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($e(a.firstLine(),0))},goDocEnd:function(a){return a.extendSelection($e(a.lastLine()))},goLineStart:function(a){return a.extendSelectionsBy(function(y){return Vs(a,y.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(a){return a.extendSelectionsBy(function(y){return Us(a,y.head)},{origin:"+move",bias:1})},goLineEnd:function(a){return a.extendSelectionsBy(function(y){return yu(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")},lt)},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")},lt)},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/)?Us(a,y.head):x},lt)},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,ee=0;ee<E.length;ee++){var ae=E[ee].from(),ce=ke(a.getLine(ae.line),ae.ch,x);y.push($t(x-ce%x))}a.replaceSelections(y)},defaultTab:function(a){a.somethingSelected()?a.indentSelection("add"):a.execCommand("insertTab")},transposeChars:function(a){return zi(a,function(){for(var y=a.listSelections(),E=[],x=0;x<y.length;x++)if(y[x].empty()){var ee=y[x].head,ae=Jt(a.doc,ee.line).text;if(ae){if(ee.ch==ae.length&&(ee=new $e(ee.line,ee.ch-1)),ee.ch>0)ee=new $e(ee.line,ee.ch+1),a.replaceRange(ae.charAt(ee.ch-1)+ae.charAt(ee.ch-2),$e(ee.line,ee.ch-2),ee,"+transpose");else if(ee.line>a.doc.first){var ce=Jt(a.doc,ee.line-1).text;ce&&(ee=new $e(ee.line,1),a.replaceRange(ae.charAt(0)+a.doc.lineSeparator()+ce.charAt(ce.length-1),$e(ee.line-1,ce.length-1),ee,"+transpose"))}}E.push(new Un(ee,ee))}a.setSelections(E)})},newlineAndIndent:function(a){return zi(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);fl(a)})},openLine:function(a){return a.replaceSelection(`
|
|
|
`,"start")},toggleOverwrite:function(a){return a.toggleOverwrite()}};function Vs(a,y){var E=Jt(a.doc,y),x=bn(E);return x!=E&&(y=We(x)),Ks(!0,a,x,y,1)}function yu(a,y){var E=Jt(a.doc,y),x=ir(E);return x!=E&&(y=We(x)),Ks(!0,a,E,y,-1)}function Us(a,y){var E=Vs(a,y.line),x=Jt(a.doc,E.line),ee=we(x,a.doc.direction);if(!ee||ee[0].level==0){var ae=Math.max(E.ch,x.text.search(/\S/)),ce=y.line==E.line&&y.ch<=ae&&y.ch;return $e(E.line,ce?0:ae,E.sticky)}return E}function ps(a,y,E){if(typeof y=="string"&&(y=Ml[y],!y))return!1;a.display.input.ensurePolled();var x=a.display.shift,ee=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),E&&(a.display.shift=!1),ee=y(a)!=Kt}finally{a.display.shift=x,a.state.suppressEdits=!1}return ee}function bu(a,y,E){for(var x=0;x<a.state.keyMaps.length;x++){var ee=os(y,a.state.keyMaps[x],E,a);if(ee)return ee}return a.options.extraKeys&&os(y,a.options.extraKeys,E,a)||os(y,a.options.keyMap,E,a)}var Cu=new he;function ms(a,y,E,x){var ee=a.state.keySeq;if(ee){if(Ws(y))return"handled";if(/\'$/.test(y)?a.state.keySeq=null:Cu.set(50,function(){a.state.keySeq==ee&&(a.state.keySeq=null,a.display.input.reset())}),Gs(a,ee+" "+y,E,x))return!0}return Gs(a,y,E,x)}function Gs(a,y,E,x){var ee=bu(a,y,x);return ee=="multi"&&(a.state.keySeq=y),ee=="handled"&&Ho(a,"keyHandled",a,y,E),(ee=="handled"||ee=="multi")&&(Bt(E),ts(a)),!!ee}function gs(a,y){var E=Yl(y,!0);return E?y.shiftKey&&!a.state.keySeq?ms(a,"Shift-"+E,y,function(x){return ps(a,x,!0)})||ms(a,E,y,function(x){if(typeof x=="string"?/^go[A-Z]/.test(x):x.motion)return ps(a,x)}):ms(a,E,y,function(x){return ps(a,x)}):!1}function Xs(a,y,E){return ms(a,"'"+E+"'",y,function(x){return ps(a,x,!0)})}var ys=null;function Ys(a){var y=this;if(!(a.target&&a.target!=y.display.input.getField())&&(y.curOp.focus=Xe(),!At(y,a))){xe&&ge<11&&a.keyCode==27&&(a.returnValue=!1);var E=a.keyCode;y.display.shift=E==16||a.shiftKey;var x=gs(y,a);de&&(ys=x?E:null,!x&&E==88&&!Ye&&(Ze?a.metaKey:a.ctrlKey)&&y.replaceSelection("",null,"cut")),b&&!Ze&&!x&&E==46&&a.shiftKey&&!a.ctrlKey&&document.execCommand&&document.execCommand("cut"),E==18&&!/\bCodeMirror-crosshair\b/.test(y.display.lineDiv.className)&&iu(y)}}function iu(a){var y=a.display.lineDiv;ue(y,"CodeMirror-crosshair");function E(x){(x.keyCode==18||!x.altKey)&&(ft(y,"CodeMirror-crosshair"),kt(document,"keyup",E),kt(document,"mouseover",E))}It(document,"keyup",E),It(document,"mouseover",E)}function Js(a){a.keyCode==16&&(this.doc.sel.shift=!1),At(this,a)}function Qs(a){var y=this;if(!(a.target&&a.target!=y.display.input.getField())&&!(wo(y.display,a)||At(y,a)||a.ctrlKey&&!a.altKey||Ze&&a.metaKey)){var E=a.keyCode,x=a.charCode;if(de&&E==ys){ys=null,Bt(a);return}if(!(de&&(!a.which||a.which<10)&&gs(y,a))){var ee=String.fromCharCode(x==null?E:x);ee!="\b"&&(Xs(y,a,ee)||y.display.input.onKeyPress(a))}}}var xu=400,Ns=function(a,y,E){this.time=a,this.pos=y,this.button=E};Ns.prototype.compare=function(a,y,E){return this.time+xu>a&&St(y,this.pos)==0&&E==this.button};var Ql,as;function qs(a,y){var E=+new Date;return as&&as.compare(E,a,y)?(Ql=as=null,"triple"):Ql&&Ql.compare(E,a,y)?(as=new Ns(E,a,y),Ql=null,"double"):(Ql=new Ns(E,a,y),as=null,"single")}function _s(a){var y=this,E=y.display;if(!(At(y,a)||E.activeTouch&&E.input.supportsTouch())){if(E.input.ensurePolled(),E.shift=a.shiftKey,wo(E,a)){Ee||(E.scroller.draggable=!1,setTimeout(function(){return E.scroller.draggable=!0},100));return}if(!Dl(y,a)){var x=dl(y,a),ee=zt(a),ae=x?qs(x,ee):"single";window.focus(),ee==1&&y.state.selectingText&&y.state.selectingText(a),!(x&&Su(y,ee,x,ae,a))&&(ee==1?x?va(y,x,ae,a):xt(a)==E.scroller&&Bt(a):ee==2?(x&&ra(y.doc,x),setTimeout(function(){return E.input.focus()},20)):ee==3&&(Ke?y.display.input.onContextMenu(a):Es(y)))}}}function Su(a,y,E,x,ee){var ae="Click";return x=="double"?ae="Double"+ae:x=="triple"&&(ae="Triple"+ae),ae=(y==1?"Left":y==2?"Middle":"Right")+ae,ms(a,vs(ae,ee),ee,function(ce){if(typeof ce=="string"&&(ce=Ml[ce]),!ce)return!1;var ye=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),ye=ce(a,E)!=Kt}finally{a.state.suppressEdits=!1}return ye})}function fa(a,y,E){var x=a.getOption("configureMouse"),ee=x?x(a,y,E):{};if(ee.unit==null){var ae=pt?E.shiftKey&&E.metaKey:E.altKey;ee.unit=ae?"rectangle":y=="single"?"char":y=="double"?"word":"line"}return(ee.extend==null||a.doc.extend)&&(ee.extend=a.doc.extend||E.shiftKey),ee.addNew==null&&(ee.addNew=Ze?E.metaKey:E.ctrlKey),ee.moveOnDrag==null&&(ee.moveOnDrag=!(Ze?E.altKey:E.ctrlKey)),ee}function va(a,y,E,x){xe?setTimeout(wt(Ss,a),0):a.curOp.focus=Xe();var ee=fa(a,E,x),ae=a.doc.sel,ce;a.options.dragDrop&&nn&&!a.isReadOnly()&&E=="single"&&(ce=ae.contains(y))>-1&&(St((ce=ae.ranges[ce]).from(),y)<0||y.xRel>0)&&(St(ce.to(),y)>0||y.xRel<0)?Ii(a,x,y,ee):Pi(a,x,y,ee)}function Ii(a,y,E,x){var ee=a.display,ae=!1,ce=Ci(a,function(Ue){Ee&&(ee.scroller.draggable=!1),a.state.draggingText=!1,kt(ee.wrapper.ownerDocument,"mouseup",ce),kt(ee.wrapper.ownerDocument,"mousemove",ye),kt(ee.scroller,"dragstart",Ie),kt(ee.scroller,"drop",ce),ae||(Bt(Ue),x.addNew||ra(a.doc,E,null,null,x.extend),Ee&&!tt||xe&&ge==9?setTimeout(function(){ee.wrapper.ownerDocument.body.focus({preventScroll:!0}),ee.input.focus()},20):ee.input.focus())}),ye=function(Ue){ae=ae||Math.abs(y.clientX-Ue.clientX)+Math.abs(y.clientY-Ue.clientY)>=10},Ie=function(){return ae=!0};Ee&&(ee.scroller.draggable=!0),a.state.draggingText=ce,ce.copy=!x.moveOnDrag,ee.scroller.dragDrop&&ee.scroller.dragDrop(),It(ee.wrapper.ownerDocument,"mouseup",ce),It(ee.wrapper.ownerDocument,"mousemove",ye),It(ee.scroller,"dragstart",Ie),It(ee.scroller,"drop",ce),Es(a),setTimeout(function(){return ee.input.focus()},20)}function Qi(a,y,E){if(E=="char")return new Un(y,y);if(E=="word")return a.findWordAt(y);if(E=="line")return new Un($e(y.line,0),Me(a.doc,$e(y.line+1,0)));var x=E(a,y);return new Un(x.from,x.to)}function Pi(a,y,E,x){var ee=a.display,ae=a.doc;Bt(y);var ce,ye,Ie=ae.sel,Ue=Ie.ranges;if(x.addNew&&!x.extend?(ye=ae.sel.contains(E),ye>-1?ce=Ue[ye]:ce=new Un(E,E)):(ce=ae.sel.primary(),ye=ae.sel.primIndex),x.unit=="rectangle")x.addNew||(ce=new Un(E,E)),E=dl(a,y,!0,!0),ye=-1;else{var rn=Qi(a,E,x.unit);x.extend?ce=na(ce,rn.anchor,rn.head,x.extend):ce=rn}x.addNew?ye==-1?(ye=Ue.length,lo(ae,kr(a,Ue.concat([ce]),ye),{scroll:!1,origin:"*mouse"})):Ue.length>1&&Ue[ye].empty()&&x.unit=="char"&&!x.extend?(lo(ae,kr(a,Ue.slice(0,ye).concat(Ue.slice(ye+1)),0),{scroll:!1,origin:"*mouse"}),Ie=ae.sel):qa(ae,ye,ce,ot):(ye=0,lo(ae,new Yn([ce],0),ot),Ie=ae.sel);var mn=E;function Qn(ao){if(St(mn,ao)!=0)if(mn=ao,x.unit=="rectangle"){for(var So=[],jo=a.options.tabSize,Ro=ke(Jt(ae,E.line).text,E.ch,jo),sa=ke(Jt(ae,ao.line).text,ao.ch,jo),Za=Math.min(Ro,sa),Ai=Math.max(Ro,sa),ei=Math.min(E.line,ao.line),ll=Math.min(a.lastLine(),Math.max(E.line,ao.line));ei<=ll;ei++){var qi=Jt(ae,ei).text,mi=Wt(qi,Za,jo);Za==Ai?So.push(new Un($e(ei,mi),$e(ei,mi))):qi.length>mi&&So.push(new Un($e(ei,mi),$e(ei,Wt(qi,Ai,jo))))}So.length||So.push(new Un(E,E)),lo(ae,kr(a,Ie.ranges.slice(0,ye).concat(So),ye),{origin:"*mouse",scroll:!1}),a.scrollIntoView(ao)}else{var _i=ce,Li=Qi(a,ao,x.unit),Si=_i.anchor,gi;St(Li.anchor,Si)>0?(gi=Li.head,Si=De(_i.from(),Li.anchor)):(gi=Li.anchor,Si=Zt(_i.to(),Li.head));var oi=Ie.ranges.slice(0);oi[ye]=is(a,new Un(Me(ae,Si),gi)),lo(ae,kr(a,oi,ye),ot)}}var Wn=ee.wrapper.getBoundingClientRect(),Br=0;function Mr(ao){var So=++Br,jo=dl(a,ao,!0,x.unit=="rectangle");if(jo)if(St(jo,mn)!=0){a.curOp.focus=Xe(),Qn(jo);var Ro=Nr(ee,ae);(jo.line>=Ro.to||jo.line<Ro.from)&&setTimeout(Ci(a,function(){Br==So&&Mr(ao)}),150)}else{var sa=ao.clientY<Wn.top?-20:ao.clientY>Wn.bottom?20:0;sa&&setTimeout(Ci(a,function(){Br==So&&(ee.scroller.scrollTop+=sa,Mr(ao))}),50)}}function Vr(ao){a.state.selectingText=!1,Br=1/0,ao&&(Bt(ao),ee.input.focus()),kt(ee.wrapper.ownerDocument,"mousemove",oo),kt(ee.wrapper.ownerDocument,"mouseup",go),ae.history.lastSelOrigin=null}var oo=Ci(a,function(ao){ao.buttons===0||!zt(ao)?Vr(ao):Mr(ao)}),go=Ci(a,Vr);a.state.selectingText=go,It(ee.wrapper.ownerDocument,"mousemove",oo),It(ee.wrapper.ownerDocument,"mouseup",go)}function is(a,y){var E=y.anchor,x=y.head,ee=Jt(a.doc,E.line);if(St(E,x)==0&&E.sticky==x.sticky)return y;var ae=we(ee);if(!ae)return y;var ce=nt(ae,E.ch,E.sticky),ye=ae[ce];if(ye.from!=E.ch&&ye.to!=E.ch)return y;var Ie=ce+(ye.from==E.ch==(ye.level!=1)?0:1);if(Ie==0||Ie==ae.length)return y;var Ue;if(x.line!=E.line)Ue=(x.line-E.line)*(a.doc.direction=="ltr"?1:-1)>0;else{var rn=nt(ae,x.ch,x.sticky),mn=rn-ce||(x.ch-E.ch)*(ye.level==1?-1:1);rn==Ie-1||rn==Ie?Ue=mn<0:Ue=mn>0}var Qn=ae[Ie+(Ue?-1:0)],Wn=Ue==(Qn.level==1),Br=Wn?Qn.from:Qn.to,Mr=Wn?"after":"before";return E.ch==Br&&E.sticky==Mr?y:new Un(new $e(E.line,Br,Mr),x)}function Tl(a,y,E,x){var ee,ae;if(y.touches)ee=y.touches[0].clientX,ae=y.touches[0].clientY;else try{ee=y.clientX,ae=y.clientY}catch(Qn){return!1}if(ee>=Math.floor(a.display.gutters.getBoundingClientRect().right))return!1;x&&Bt(y);var ce=a.display,ye=ce.lineDiv.getBoundingClientRect();if(ae>ye.bottom||!Gt(a,E))return on(y);ae-=ye.top-ce.viewOffset;for(var Ie=0;Ie<a.display.gutterSpecs.length;++Ie){var Ue=ce.gutters.childNodes[Ie];if(Ue&&Ue.getBoundingClientRect().right>=ee){var rn=dt(a.doc,ae),mn=a.display.gutterSpecs[Ie];return Yt(a,E,a,rn,mn.className,y),on(y)}}}function Dl(a,y){return Tl(a,y,"gutterClick",!0)}function ls(a,y){wo(a.display,y)||eu(a,y)||At(a,y,"contextmenu")||Ke||a.display.input.onContextMenu(y)}function eu(a,y){return Gt(a,"gutterContextMenu")?Tl(a,y,"gutterContextMenu",!1):!1}function Nu(a){a.display.wrapper.className=a.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+a.options.theme.replace(/(^|\s)\s*/g," cm-s-"),tl(a)}var Ms={toString:function(){return"CodeMirror.Init"}},Mu={},lu={};function Wu(a){var y=a.optionHandlers;function E(x,ee,ae,ce){a.defaults[x]=ee,ae&&(y[x]=ce?function(ye,Ie,Ue){Ue!=Ms&&ae(ye,Ie,Ue)}:ae)}a.defineOption=E,a.Init=Ms,E("value","",function(x,ee){return x.setValue(ee)},!0),E("mode",null,function(x,ee){x.doc.modeOption=ee,uo(x)},!0),E("indentUnit",2,uo,!0),E("indentWithTabs",!1),E("smartIndent",!0),E("tabSize",4,function(x){io(x),tl(x),ii(x)},!0),E("lineSeparator",null,function(x,ee){if(x.doc.lineSep=ee,!!ee){var ae=[],ce=x.doc.first;x.doc.iter(function(Ie){for(var Ue=0;;){var rn=Ie.text.indexOf(ee,Ue);if(rn==-1)break;Ue=rn+ee.length,ae.push($e(ce,rn))}ce++});for(var ye=ae.length-1;ye>=0;ye--)ca(x.doc,ee,ae[ye],$e(ae[ye].line,ae[ye].ch+ee.length))}}),E("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(x,ee,ae){x.state.specialChars=new RegExp(ee.source+(ee.test(" ")?"":"| "),"g"),ae!=Ms&&x.refresh()}),E("specialCharPlaceholder",Fo,function(x){return x.refresh()},!0),E("electricChars",!0),E("inputStyle",Ne?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),E("spellcheck",!1,function(x,ee){return x.getInputField().spellcheck=ee},!0),E("autocorrect",!1,function(x,ee){return x.getInputField().autocorrect=ee},!0),E("autocapitalize",!1,function(x,ee){return x.getInputField().autocapitalize=ee},!0),E("rtlMoveVisually",!mt),E("wholeLineUpdateBefore",!0),E("theme","default",function(x){Nu(x),Pn(x)},!0),E("keyMap","default",function(x,ee,ae){var ce=As(ee),ye=ae!=Ms&&As(ae);ye&&ye.detach&&ye.detach(x,ce),ce.attach&&ce.attach(x,ye||null)}),E("extraKeys",null),E("configureMouse",null),E("lineWrapping",!1,Ku,!0),E("gutters",[],function(x,ee){x.display.gutterSpecs=en(ee,x.options.lineNumbers),Pn(x)},!0),E("fixedGutter",!0,function(x,ee){x.display.gutters.style.left=ee?cs(x.display)+"px":"0",x.refresh()},!0),E("coverGutterNextToScrollbar",!1,function(x){return al(x)},!0),E("scrollbarStyle","native",function(x){ru(x),al(x),x.display.scrollbars.setScrollTop(x.doc.scrollTop),x.display.scrollbars.setScrollLeft(x.doc.scrollLeft)},!0),E("lineNumbers",!1,function(x,ee){x.display.gutterSpecs=en(x.options.gutters,ee),Pn(x)},!0),E("firstLineNumber",1,Pn,!0),E("lineNumberFormatter",function(x){return x},Pn,!0),E("showCursorWhenSelecting",!1,El,!0),E("resetSelectionOnContextMenu",!0),E("lineWiseCopyCut",!0),E("pasteLinesPerSelection",!0),E("selectionsMayTouch",!1),E("readOnly",!1,function(x,ee){ee=="nocursor"&&(Kl(x),x.display.input.blur()),x.display.input.readOnlyChanged(ee)}),E("screenReaderLabel",null,function(x,ee){ee=ee===""?null:ee,x.display.input.screenReaderLabelChanged(ee)}),E("disableInput",!1,function(x,ee){ee||x.display.input.reset()},!0),E("dragDrop",!0,$u),E("allowDropFileTypes",null),E("cursorBlinkRate",530),E("cursorScrollMargin",0),E("cursorHeight",1,El,!0),E("singleCursorHeightPerLine",!0,El,!0),E("workTime",100),E("workDelay",100),E("flattenSpans",!0,io,!0),E("addModeClass",!1,io,!0),E("pollInterval",100),E("undoDepth",200,function(x,ee){return x.doc.history.undoDepth=ee}),E("historyEventDelay",1250),E("viewportMargin",10,function(x){return x.refresh()},!0),E("maxHighlightLength",1e4,io,!0),E("moveInputWithCursor",!0,function(x,ee){ee||x.display.input.resetPosition()}),E("tabindex",null,function(x,ee){return x.display.input.getField().tabIndex=ee||""}),E("autofocus",null),E("direction","ltr",function(x,ee){return x.doc.setDirection(ee)},!0),E("phrases",null)}function $u(a,y,E){var x=E&&E!=Ms;if(!y!=!x){var ee=a.display.dragFunctions,ae=y?It:kt;ae(a.display.scroller,"dragstart",ee.start),ae(a.display.scroller,"dragenter",ee.enter),ae(a.display.scroller,"dragover",ee.over),ae(a.display.scroller,"dragleave",ee.leave),ae(a.display.scroller,"drop",ee.drop)}}function Ku(a){a.options.lineWrapping?(ue(a.display.wrapper,"CodeMirror-wrap"),a.display.sizer.style.minWidth="",a.display.sizerWidth=null):(ft(a.display.wrapper,"CodeMirror-wrap"),Rr(a)),Pl(a),ii(a),tl(a),setTimeout(function(){return al(a)},100)}function Ya(a,y){var E=this;if(!(this instanceof Ya))return new Ya(a,y);this.options=y=y?ln(y):{},ln(Mu,y,!1);var x=y.value;typeof x=="string"?x=new Ba(x,y.mode,null,y.lineSeparator,y.direction):y.mode&&(x.modeOption=y.mode),this.doc=x;var ee=new Ya.inputStyles[y.inputStyle](this),ae=this.display=new Dn(a,x,ee,y);ae.wrapper.CodeMirror=this,Nu(this),y.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),ru(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 he,keySeq:null,specialChars:null},y.autofocus&&!Ne&&ae.input.focus(),xe&&ge<11&&setTimeout(function(){return E.display.input.reset(!0)},20),Vu(this),Ps(),Xl(this),this.curOp.forceUpdate=!0,To(this,x),y.autofocus&&!Ne||this.hasFocus()?setTimeout(function(){E.hasFocus()&&!E.state.focused&&ws(E)},20):Kl(this);for(var ce in lu)lu.hasOwnProperty(ce)&&lu[ce](this,y[ce],Ms);Rt(this),y.finishInit&&y.finishInit(this);for(var ye=0;ye<Eu.length;++ye)Eu[ye](this);rs(this),Ee&&y.lineWrapping&&getComputedStyle(ae.lineDiv).textRendering=="optimizelegibility"&&(ae.lineDiv.style.textRendering="auto")}Ya.defaults=Mu,Ya.optionHandlers=lu;function Vu(a){var y=a.display;It(y.scroller,"mousedown",Ci(a,_s)),xe&&ge<11?It(y.scroller,"dblclick",Ci(a,function(Ie){if(!At(a,Ie)){var Ue=dl(a,Ie);if(!(!Ue||Dl(a,Ie)||wo(a.display,Ie))){Bt(Ie);var rn=a.findWordAt(Ue);ra(a.doc,rn.anchor,rn.head)}}})):It(y.scroller,"dblclick",function(Ie){return At(a,Ie)||Bt(Ie)}),It(y.scroller,"contextmenu",function(Ie){return ls(a,Ie)}),It(y.input.getField(),"contextmenu",function(Ie){y.scroller.contains(Ie.target)||ls(a,Ie)});var E,x={end:0};function ee(){y.activeTouch&&(E=setTimeout(function(){return y.activeTouch=null},1e3),x=y.activeTouch,x.end=+new Date)}function ae(Ie){if(Ie.touches.length!=1)return!1;var Ue=Ie.touches[0];return Ue.radiusX<=1&&Ue.radiusY<=1}function ce(Ie,Ue){if(Ue.left==null)return!0;var rn=Ue.left-Ie.left,mn=Ue.top-Ie.top;return rn*rn+mn*mn>20*20}It(y.scroller,"touchstart",function(Ie){if(!At(a,Ie)&&!ae(Ie)&&!Dl(a,Ie)){y.input.ensurePolled(),clearTimeout(E);var Ue=+new Date;y.activeTouch={start:Ue,moved:!1,prev:Ue-x.end<=300?x:null},Ie.touches.length==1&&(y.activeTouch.left=Ie.touches[0].pageX,y.activeTouch.top=Ie.touches[0].pageY)}}),It(y.scroller,"touchmove",function(){y.activeTouch&&(y.activeTouch.moved=!0)}),It(y.scroller,"touchend",function(Ie){var Ue=y.activeTouch;if(Ue&&!wo(y,Ie)&&Ue.left!=null&&!Ue.moved&&new Date-Ue.start<300){var rn=a.coordsChar(y.activeTouch,"page"),mn;!Ue.prev||ce(Ue,Ue.prev)?mn=new Un(rn,rn):!Ue.prev.prev||ce(Ue,Ue.prev.prev)?mn=a.findWordAt(rn):mn=new Un($e(rn.line,0),Me(a.doc,$e(rn.line+1,0))),a.setSelection(mn.anchor,mn.head),a.focus(),Bt(Ie)}ee()}),It(y.scroller,"touchcancel",ee),It(y.scroller,"scroll",function(){y.scroller.clientHeight&&(yl(a,y.scroller.scrollTop),hl(a,y.scroller.scrollLeft,!0),Yt(a,"scroll",a))}),It(y.scroller,"mousewheel",function(Ie){return sr(a,Ie)}),It(y.scroller,"DOMMouseScroll",function(Ie){return sr(a,Ie)}),It(y.wrapper,"scroll",function(){return y.wrapper.scrollTop=y.wrapper.scrollLeft=0}),y.dragFunctions={enter:function(Ie){At(a,Ie)||Le(Ie)},over:function(Ie){At(a,Ie)||(Sl(a,Ie),Le(Ie))},start:function(Ie){return xl(a,Ie)},drop:Ci(a,Nl),leave:function(Ie){At(a,Ie)||Os(a)}};var ye=y.input.getField();It(ye,"keyup",function(Ie){return Js.call(a,Ie)}),It(ye,"keydown",Ci(a,Ys)),It(ye,"keypress",Ci(a,Qs)),It(ye,"focus",function(Ie){return ws(a,Ie)}),It(ye,"blur",function(Ie){return Kl(a,Ie)})}var Eu=[];Ya.defineInitHook=function(a){return Eu.push(a)};function tu(a,y,E,x){var ee=a.doc,ae;E==null&&(E="add"),E=="smart"&&(ee.mode.indent?ae=ar(a,y).state:E="prev");var ce=a.options.tabSize,ye=Jt(ee,y),Ie=ke(ye.text,null,ce);ye.stateAfter&&(ye.stateAfter=null);var Ue=ye.text.match(/^\s*/)[0],rn;if(!x&&!/\S/.test(ye.text))rn=0,E="not";else if(E=="smart"&&(rn=ee.mode.indent(ae,ye.text.slice(Ue.length),ye.text),rn==Kt||rn>150)){if(!x)return;E="prev"}E=="prev"?y>ee.first?rn=ke(Jt(ee,y-1).text,null,ce):rn=0:E=="add"?rn=Ie+a.options.indentUnit:E=="subtract"?rn=Ie-a.options.indentUnit:typeof E=="number"&&(rn=Ie+E),rn=Math.max(0,rn);var mn="",Qn=0;if(a.options.indentWithTabs)for(var Wn=Math.floor(rn/ce);Wn;--Wn)Qn+=ce,mn+=" ";if(Qn<rn&&(mn+=$t(rn-Qn)),mn!=Ue)return ca(ee,mn,$e(y,0),$e(y,Ue.length),"+input"),ye.stateAfter=null,!0;for(var Br=0;Br<ee.sel.ranges.length;Br++){var Mr=ee.sel.ranges[Br];if(Mr.head.line==y&&Mr.head.ch<Ue.length){var Vr=$e(y,Ue.length);qa(ee,Br,new Un(Vr,Vr));break}}}var Ol=null;function su(a){Ol=a}function wu(a,y,E,x,ee){var ae=a.doc;a.display.shift=!1,x||(x=ae.sel);var ce=+new Date-200,ye=ee=="paste"||a.state.pasteIncoming>ce,Ie=kn(y),Ue=null;if(ye&&x.ranges.length>1)if(Ol&&Ol.text.join(`
|
|
|
`)==y){if(x.ranges.length%Ol.text.length==0){Ue=[];for(var rn=0;rn<Ol.text.length;rn++)Ue.push(ae.splitLines(Ol.text[rn]))}}else Ie.length==x.ranges.length&&a.options.pasteLinesPerSelection&&(Ue=gn(Ie,function(oo){return[oo]}));for(var mn=a.curOp.updateInput,Qn=x.ranges.length-1;Qn>=0;Qn--){var Wn=x.ranges[Qn],Br=Wn.from(),Mr=Wn.to();Wn.empty()&&(E&&E>0?Br=$e(Br.line,Br.ch-E):a.state.overwrite&&!ye?Mr=$e(Mr.line,Math.min(Jt(ae,Mr.line).text.length,Mr.ch+vt(Ie).length)):ye&&Ol&&Ol.lineWise&&Ol.text.join(`
|
|
|
`)==Ie.join(`
|
|
|
`)&&(Br=Mr=$e(Br.line,0)));var Vr={from:Br,to:Mr,text:Ue?Ue[Qn%Ue.length]:Ie,origin:ee||(ye?"paste":a.state.cutIncoming>ce?"cut":"+input")};Ca(a.doc,Vr),Ho(a,"inputRead",a,Vr)}y&&!ye&&Ru(a,y),fl(a),a.curOp.updateInput<2&&(a.curOp.updateInput=mn),a.curOp.typing=!0,a.state.pasteIncoming=a.state.cutIncoming=-1}function Tu(a,y){var E=a.clipboardData&&a.clipboardData.getData("Text");if(E)return a.preventDefault(),!y.isReadOnly()&&!y.options.disableInput&&zi(y,function(){return wu(y,E,0,null,"paste")}),!0}function Ru(a,y){if(!(!a.options.electricChars||!a.options.smartIndent))for(var E=a.doc.sel,x=E.ranges.length-1;x>=0;x--){var ee=E.ranges[x];if(!(ee.head.ch>100||x&&E.ranges[x-1].head.line==ee.head.line)){var ae=a.getModeAt(ee.head),ce=!1;if(ae.electricChars){for(var ye=0;ye<ae.electricChars.length;ye++)if(y.indexOf(ae.electricChars.charAt(ye))>-1){ce=tu(a,ee.head.line,"smart");break}}else ae.electricInput&&ae.electricInput.test(Jt(a.doc,ee.head.line).text.slice(0,ee.head.ch))&&(ce=tu(a,ee.head.line,"smart"));ce&&Ho(a,"electricInput",a,ee.head.line)}}}function ku(a){for(var y=[],E=[],x=0;x<a.doc.sel.ranges.length;x++){var ee=a.doc.sel.ranges[x].head.line,ae={anchor:$e(ee,0),head:$e(ee+1,0)};E.push(ae),y.push(a.getRange(ae.anchor,ae.head))}return{text:y,ranges:E}}function Lu(a,y,E,x){a.setAttribute("autocorrect",E?"":"off"),a.setAttribute("autocapitalize",x?"":"off"),a.setAttribute("spellcheck",!!y)}function Zu(){var a=yt("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),y=yt("div",[a],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return Ee?a.style.width="1000px":a.setAttribute("wrap","off"),at&&(a.style.border="1px solid black"),Lu(a),y}function Uu(a){var y=a.optionHandlers,E=a.helpers={};a.prototype={constructor:a,focus:function(){window.focus(),this.display.input.focus()},setOption:function(x,ee){var ae=this.options,ce=ae[x];ae[x]==ee&&x!="mode"||(ae[x]=ee,y.hasOwnProperty(x)&&Ci(this,y[x])(this,ee,ce),Yt(this,"optionChange",this,x))},getOption:function(x){return this.options[x]},getDoc:function(){return this.doc},addKeyMap:function(x,ee){this.state.keyMaps[ee?"push":"unshift"](As(x))},removeKeyMap:function(x){for(var ee=this.state.keyMaps,ae=0;ae<ee.length;++ae)if(ee[ae]==x||ee[ae].name==x)return ee.splice(ae,1),!0},addOverlay:Ti(function(x,ee){var ae=x.token?x:a.getMode(this.options,x);if(ae.startState)throw new Error("Overlays may not be stateful.");Tt(this.state.overlays,{mode:ae,modeSpec:x,opaque:ee&&ee.opaque,priority:ee&&ee.priority||0},function(ce){return ce.priority}),this.state.modeGen++,ii(this)}),removeOverlay:Ti(function(x){for(var ee=this.state.overlays,ae=0;ae<ee.length;++ae){var ce=ee[ae].modeSpec;if(ce==x||typeof x=="string"&&ce.name==x){ee.splice(ae,1),this.state.modeGen++,ii(this);return}}}),indentLine:Ti(function(x,ee,ae){typeof ee!="string"&&typeof ee!="number"&&(ee==null?ee=this.options.smartIndent?"smart":"prev":ee=ee?"add":"subtract"),ze(this.doc,x)&&tu(this,x,ee,ae)}),indentSelection:Ti(function(x){for(var ee=this.doc.sel.ranges,ae=-1,ce=0;ce<ee.length;ce++){var ye=ee[ce];if(ye.empty())ye.head.line>ae&&(tu(this,ye.head.line,x,!0),ae=ye.head.line,ce==this.doc.sel.primIndex&&fl(this));else{var Ie=ye.from(),Ue=ye.to(),rn=Math.max(ae,Ie.line);ae=Math.min(this.lastLine(),Ue.line-(Ue.ch?0:1))+1;for(var mn=rn;mn<ae;++mn)tu(this,mn,x);var Qn=this.doc.sel.ranges;Ie.ch==0&&ee.length==Qn.length&&Qn[ce].from().ch>0&&qa(this.doc,ce,new Un(Ie,Qn[ce].to()),Ce)}}}),getTokenAt:function(x,ee){return gr(this,x,ee)},getLineTokens:function(x,ee){return gr(this,$e(x),ee,!0)},getTokenTypeAt:function(x){x=Me(this.doc,x);var ee=$n(this,Jt(this.doc,x.line)),ae=0,ce=(ee.length-1)/2,ye=x.ch,Ie;if(ye==0)Ie=ee[2];else for(;;){var Ue=ae+ce>>1;if((Ue?ee[Ue*2-1]:0)>=ye)ce=Ue;else if(ee[Ue*2+1]<ye)ae=Ue+1;else{Ie=ee[Ue*2+2];break}}var rn=Ie?Ie.indexOf("overlay "):-1;return rn<0?Ie:rn==0?null:Ie.slice(0,rn-1)},getModeAt:function(x){var ee=this.doc.mode;return ee.innerMode?a.innerMode(ee,this.getTokenAt(x).state).mode:ee},getHelper:function(x,ee){return this.getHelpers(x,ee)[0]},getHelpers:function(x,ee){var ae=[];if(!E.hasOwnProperty(ee))return ae;var ce=E[ee],ye=this.getModeAt(x);if(typeof ye[ee]=="string")ce[ye[ee]]&&ae.push(ce[ye[ee]]);else if(ye[ee])for(var Ie=0;Ie<ye[ee].length;Ie++){var Ue=ce[ye[ee][Ie]];Ue&&ae.push(Ue)}else ye.helperType&&ce[ye.helperType]?ae.push(ce[ye.helperType]):ce[ye.name]&&ae.push(ce[ye.name]);for(var rn=0;rn<ce._global.length;rn++){var mn=ce._global[rn];mn.pred(ye,this)&&Ct(ae,mn.val)==-1&&ae.push(mn.val)}return ae},getStateAfter:function(x,ee){var ae=this.doc;return x=Te(ae,x==null?ae.first+ae.size-1:x),ar(this,x+1,ee).state},cursorCoords:function(x,ee){var ae,ce=this.doc.sel.primary();return x==null?ae=ce.head:typeof x=="object"?ae=Me(this.doc,x):ae=x?ce.from():ce.to(),fi(this,ae,ee||"page")},charCoords:function(x,ee){return ul(this,Me(this.doc,x),ee||"page")},coordsChar:function(x,ee){return x=zl(this,x,ee||"page"),ti(this,x.left,x.top)},lineAtHeight:function(x,ee){return x=zl(this,{top:x,left:0},ee||"page").top,dt(this.doc,x+this.display.viewOffset)},heightAtLine:function(x,ee,ae){var ce=!1,ye;if(typeof x=="number"){var Ie=this.doc.first+this.doc.size-1;x<this.doc.first?x=this.doc.first:x>Ie&&(x=Ie,ce=!0),ye=Jt(this.doc,x)}else ye=x;return Il(this,ye,{top:0,left:0},ee||"page",ae||ce).top+(ce?this.doc.height-Ar(ye):0)},defaultTextHeight:function(){return Ni(this.display)},defaultCharWidth:function(){return Mi(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(x,ee,ae,ce,ye){var Ie=this.display;x=fi(this,Me(this.doc,x));var Ue=x.bottom,rn=x.left;if(ee.style.position="absolute",ee.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(ee),Ie.sizer.appendChild(ee),ce=="over")Ue=x.top;else if(ce=="above"||ce=="near"){var mn=Math.max(Ie.wrapper.clientHeight,this.doc.height),Qn=Math.max(Ie.sizer.clientWidth,Ie.lineSpace.clientWidth);(ce=="above"||x.bottom+ee.offsetHeight>mn)&&x.top>ee.offsetHeight?Ue=x.top-ee.offsetHeight:x.bottom+ee.offsetHeight<=mn&&(Ue=x.bottom),rn+ee.offsetWidth>Qn&&(rn=Qn-ee.offsetWidth)}ee.style.top=Ue+"px",ee.style.left=ee.style.right="",ye=="right"?(rn=Ie.sizer.clientWidth-ee.offsetWidth,ee.style.right="0px"):(ye=="left"?rn=0:ye=="middle"&&(rn=(Ie.sizer.clientWidth-ee.offsetWidth)/2),ee.style.left=rn+"px"),ae&&Qa(this,{left:rn,top:Ue,right:rn+ee.offsetWidth,bottom:Ue+ee.offsetHeight})},triggerOnKeyDown:Ti(Ys),triggerOnKeyPress:Ti(Qs),triggerOnKeyUp:Js,triggerOnMouseDown:Ti(_s),execCommand:function(x){if(Ml.hasOwnProperty(x))return Ml[x].call(null,this)},triggerElectric:Ti(function(x){Ru(this,x)}),findPosH:function(x,ee,ae,ce){var ye=1;ee<0&&(ye=-1,ee=-ee);for(var Ie=Me(this.doc,x),Ue=0;Ue<ee&&(Ie=Du(this.doc,Ie,ye,ae,ce),!Ie.hitSide);++Ue);return Ie},moveH:Ti(function(x,ee){var ae=this;this.extendSelectionsBy(function(ce){return ae.display.shift||ae.doc.extend||ce.empty()?Du(ae.doc,ce.head,x,ee,ae.options.rtlMoveVisually):x<0?ce.from():ce.to()},lt)}),deleteH:Ti(function(x,ee){var ae=this.doc.sel,ce=this.doc;ae.somethingSelected()?ce.replaceSelection("",null,"+delete"):Jl(this,function(ye){var Ie=Du(ce,ye.head,x,ee,!1);return x<0?{from:Ie,to:ye.head}:{from:ye.head,to:Ie}})}),findPosV:function(x,ee,ae,ce){var ye=1,Ie=ce;ee<0&&(ye=-1,ee=-ee);for(var Ue=Me(this.doc,x),rn=0;rn<ee;++rn){var mn=fi(this,Ue,"div");if(Ie==null?Ie=mn.left:mn.left=Ie,Ue=Hu(this,mn,ye,ae),Ue.hitSide)break}return Ue},moveV:Ti(function(x,ee){var ae=this,ce=this.doc,ye=[],Ie=!this.display.shift&&!ce.extend&&ce.sel.somethingSelected();if(ce.extendSelectionsBy(function(rn){if(Ie)return x<0?rn.from():rn.to();var mn=fi(ae,rn.head,"div");rn.goalColumn!=null&&(mn.left=rn.goalColumn),ye.push(mn.left);var Qn=Hu(ae,mn,x,ee);return ee=="page"&&rn==ce.sel.primary()&&Vl(ae,ul(ae,Qn,"div").top-mn.top),Qn},lt),ye.length)for(var Ue=0;Ue<ce.sel.ranges.length;Ue++)ce.sel.ranges[Ue].goalColumn=ye[Ue]}),findWordAt:function(x){var ee=this.doc,ae=Jt(ee,x.line).text,ce=x.ch,ye=x.ch;if(ae){var Ie=this.getHelper(x,"wordChars");(x.sticky=="before"||ye==ae.length)&&ce?--ce:++ye;for(var Ue=ae.charAt(ce),rn=se(Ue,Ie)?function(mn){return se(mn,Ie)}:/\s/.test(Ue)?function(mn){return/\s/.test(mn)}:function(mn){return!/\s/.test(mn)&&!se(mn)};ce>0&&rn(ae.charAt(ce-1));)--ce;for(;ye<ae.length&&rn(ae.charAt(ye));)++ye}return new Un($e(x.line,ce),$e(x.line,ye))},toggleOverwrite:function(x){x!=null&&x==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?ue(this.display.cursorDiv,"CodeMirror-overwrite"):ft(this.display.cursorDiv,"CodeMirror-overwrite"),Yt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Xe()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Ti(function(x,ee){wl(this,x,ee)}),getScrollInfo:function(){var x=this.display.scroller;return{left:x.scrollLeft,top:x.scrollTop,height:x.scrollHeight-Wa(this)-this.display.barHeight,width:x.scrollWidth-Wa(this)-this.display.barWidth,clientHeight:ai(this),clientWidth:ci(this)}},scrollIntoView:Ti(function(x,ee){x==null?(x={from:this.doc.sel.primary().head,to:null},ee==null&&(ee=this.options.cursorScrollMargin)):typeof x=="number"?x={from:$e(x,0),to:null}:x.from==null&&(x={from:x,to:null}),x.to||(x.to=x.from),x.margin=ee||0,x.from.line!=null?ns(this,x):Ul(this,x.from,x.to,x.margin)}),setSize:Ti(function(x,ee){var ae=this,ce=function(Ie){return typeof Ie=="number"||/^\d+$/.test(String(Ie))?Ie+"px":Ie};x!=null&&(this.display.wrapper.style.width=ce(x)),ee!=null&&(this.display.wrapper.style.height=ce(ee)),this.options.lineWrapping&&Xi(this);var ye=this.display.viewFrom;this.doc.iter(ye,this.display.viewTo,function(Ie){if(Ie.widgets){for(var Ue=0;Ue<Ie.widgets.length;Ue++)if(Ie.widgets[Ue].noHScroll){bi(ae,ye,"widget");break}}++ye}),this.curOp.forceUpdate=!0,Yt(this,"refresh",this)}),operation:function(x){return zi(this,x)},startOperation:function(){return Xl(this)},endOperation:function(){return rs(this)},refresh:Ti(function(){var x=this.display.cachedTextHeight;ii(this),this.curOp.forceUpdate=!0,tl(this),wl(this,this.doc.scrollLeft,this.doc.scrollTop),Se(this.display),(x==null||Math.abs(x-Ni(this.display))>.5||this.options.lineWrapping)&&Pl(this),Yt(this,"refresh",this)}),swapDoc:Ti(function(x){var ee=this.doc;return ee.cm=null,this.state.selectingText&&this.state.selectingText(),To(this,x),tl(this),this.display.input.reset(),wl(this,x.scrollLeft,x.scrollTop),this.curOp.forceScroll=!0,Ho(this,"swapDoc",this,ee),ee}),phrase:function(x){var ee=this.options.phrases;return ee&&Object.prototype.hasOwnProperty.call(ee,x)?ee[x]:x},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},_e(a),a.registerHelper=function(x,ee,ae){E.hasOwnProperty(x)||(E[x]=a[x]={_global:[]}),E[x][ee]=ae},a.registerGlobalHelper=function(x,ee,ae,ce){a.registerHelper(x,ee,ce),E[x]._global.push({pred:ae,val:ce})}}function Du(a,y,E,x,ee){var ae=y,ce=E,ye=Jt(a,y.line),Ie=ee&&a.direction=="rtl"?-E:E;function Ue(){var go=y.line+Ie;return go<a.first||go>=a.first+a.size?!1:(y=new $e(go,y.ch,y.sticky),ye=Jt(a,go))}function rn(go){var ao;if(x=="codepoint"){var So=ye.text.charCodeAt(y.ch+(x>0?0:-1));isNaN(So)?ao=null:ao=new $e(y.line,Math.max(0,Math.min(ye.text.length,y.ch+E*(So>=55296&&So<56320?2:1))),-E)}else ee?ao=au(a.cm,ye,y,E):ao=Fs(ye,y,E);if(ao==null)if(!go&&Ue())y=Ks(ee,a.cm,ye,y.line,Ie);else return!1;else y=ao;return!0}if(x=="char"||x=="codepoint")rn();else if(x=="column")rn(!0);else if(x=="word"||x=="group")for(var mn=null,Qn=x=="group",Wn=a.cm&&a.cm.getHelper(y,"wordChars"),Br=!0;!(E<0&&!rn(!Br));Br=!1){var Mr=ye.text.charAt(y.ch)||`
|
|
|
`,Vr=se(Mr,Wn)?"w":Qn&&Mr==`
|
|
|
`?"n":!Qn||/\s/.test(Mr)?null:"p";if(Qn&&!Br&&!Vr&&(Vr="s"),mn&&mn!=Vr){E<0&&(E=1,rn(),y.sticky="after");break}if(Vr&&(mn=Vr),E>0&&!rn(!Br))break}var oo=ni(a,y,ae,ce,!0);return Oe(ae,oo)&&(oo.hitSide=!0),oo}function Hu(a,y,E,x){var ee=a.doc,ae=y.left,ce;if(x=="page"){var ye=Math.min(a.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Ie=Math.max(ye-.5*Ni(a.display),3);ce=(E>0?y.bottom:y.top)+E*Ie}else x=="line"&&(ce=E>0?y.bottom+3:y.top-3);for(var Ue;Ue=ti(a,ae,ce),!!Ue.outside;){if(E<0?ce<=0:ce>=ee.height){Ue.hitSide=!0;break}ce+=E*5}return Ue}var Pa=function(a){this.cm=a,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new he,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Pa.prototype.init=function(a){var y=this,E=this,x=E.cm,ee=E.div=a.lineDiv;Lu(ee,x.options.spellcheck,x.options.autocorrect,x.options.autocapitalize);function ae(ye){for(var Ie=ye.target;Ie;Ie=Ie.parentNode){if(Ie==ee)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Ie.className))break}return!1}It(ee,"paste",function(ye){!ae(ye)||At(x,ye)||Tu(ye,x)||ge<=11&&setTimeout(Ci(x,function(){return y.updateFromDOM()}),20)}),It(ee,"compositionstart",function(ye){y.composing={data:ye.data,done:!1}}),It(ee,"compositionupdate",function(ye){y.composing||(y.composing={data:ye.data,done:!1})}),It(ee,"compositionend",function(ye){y.composing&&(ye.data!=y.composing.data&&y.readFromDOMSoon(),y.composing.done=!0)}),It(ee,"touchstart",function(){return E.forceCompositionEnd()}),It(ee,"input",function(){y.composing||y.readFromDOMSoon()});function ce(ye){if(!(!ae(ye)||At(x,ye))){if(x.somethingSelected())su({lineWise:!1,text:x.getSelections()}),ye.type=="cut"&&x.replaceSelection("",null,"cut");else if(x.options.lineWiseCopyCut){var Ie=ku(x);su({lineWise:!0,text:Ie.text}),ye.type=="cut"&&x.operation(function(){x.setSelections(Ie.ranges,0,Ce),x.replaceSelection("",null,"cut")})}else return;if(ye.clipboardData){ye.clipboardData.clearData();var Ue=Ol.text.join(`
|
|
|
`);if(ye.clipboardData.setData("Text",Ue),ye.clipboardData.getData("Text")==Ue){ye.preventDefault();return}}var rn=Zu(),mn=rn.firstChild;x.display.lineSpace.insertBefore(rn,x.display.lineSpace.firstChild),mn.value=Ol.text.join(`
|
|
|
`);var Qn=document.activeElement;et(mn),setTimeout(function(){x.display.lineSpace.removeChild(rn),Qn.focus(),Qn==ee&&E.showPrimarySelection()},50)}}It(ee,"copy",ce),It(ee,"cut",ce)},Pa.prototype.screenReaderLabelChanged=function(a){a?this.div.setAttribute("aria-label",a):this.div.removeAttribute("aria-label")},Pa.prototype.prepareSelection=function(){var a=Ls(this.cm,!1);return a.focus=document.activeElement==this.div,a},Pa.prototype.showSelection=function(a,y){!a||!this.cm.display.view.length||((a.focus||y)&&this.showPrimarySelection(),this.showMultipleSelections(a))},Pa.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Pa.prototype.showPrimarySelection=function(){var a=this.getSelection(),y=this.cm,E=y.doc.sel.primary(),x=E.from(),ee=E.to();if(y.display.viewTo==y.display.viewFrom||x.line>=y.display.viewTo||ee.line<y.display.viewFrom){a.removeAllRanges();return}var ae=uu(y,a.anchorNode,a.anchorOffset),ce=uu(y,a.focusNode,a.focusOffset);if(!(ae&&!ae.bad&&ce&&!ce.bad&&St(De(ae,ce),x)==0&&St(Zt(ae,ce),ee)==0)){var ye=y.display.view,Ie=x.line>=y.display.viewFrom&&zu(y,x)||{node:ye[0].measure.map[2],offset:0},Ue=ee.line<y.display.viewTo&&zu(y,ee);if(!Ue){var rn=ye[ye.length-1].measure,mn=rn.maps?rn.maps[rn.maps.length-1]:rn.map;Ue={node:mn[mn.length-1],offset:mn[mn.length-2]-mn[mn.length-3]}}if(!Ie||!Ue){a.removeAllRanges();return}var Qn=a.rangeCount&&a.getRangeAt(0),Wn;try{Wn=pe(Ie.node,Ie.offset,Ue.offset,Ue.node)}catch(Br){}Wn&&(!b&&y.state.focused?(a.collapse(Ie.node,Ie.offset),Wn.collapsed||(a.removeAllRanges(),a.addRange(Wn))):(a.removeAllRanges(),a.addRange(Wn)),Qn&&a.anchorNode==null?a.addRange(Qn):b&&this.startGracePeriod()),this.rememberSelection()}},Pa.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)},Pa.prototype.showMultipleSelections=function(a){Ot(this.cm.display.cursorDiv,a.cursors),Ot(this.cm.display.selectionDiv,a.selection)},Pa.prototype.rememberSelection=function(){var a=this.getSelection();this.lastAnchorNode=a.anchorNode,this.lastAnchorOffset=a.anchorOffset,this.lastFocusNode=a.focusNode,this.lastFocusOffset=a.focusOffset},Pa.prototype.selectionInEditor=function(){var a=this.getSelection();if(!a.rangeCount)return!1;var y=a.getRangeAt(0).commonAncestorContainer;return Je(this.div,y)},Pa.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Pa.prototype.blur=function(){this.div.blur()},Pa.prototype.getField=function(){return this.div},Pa.prototype.supportsTouch=function(){return!0},Pa.prototype.receivedFocus=function(){var a=this;this.selectionInEditor()?this.pollSelection():zi(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)},Pa.prototype.selectionChanged=function(){var a=this.getSelection();return a.anchorNode!=this.lastAnchorNode||a.anchorOffset!=this.lastAnchorOffset||a.focusNode!=this.lastFocusNode||a.focusOffset!=this.lastFocusOffset},Pa.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var a=this.getSelection(),y=this.cm;if(Ve&&Ae&&this.cm.display.gutterSpecs.length&&Gu(a.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var E=uu(y,a.anchorNode,a.anchorOffset),x=uu(y,a.focusNode,a.focusOffset);E&&x&&zi(y,function(){lo(y.doc,Dr(E,x),Ce),(E.bad||x.bad)&&(y.curOp.selectionChanged=!0)})}}},Pa.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(),ee=E.to();if(x.ch==0&&x.line>a.firstLine()&&(x=$e(x.line-1,Jt(a.doc,x.line-1).length)),ee.ch==Jt(a.doc,ee.line).text.length&&ee.line<a.lastLine()&&(ee=$e(ee.line+1,0)),x.line<y.viewFrom||ee.line>y.viewTo-1)return!1;var ae,ce,ye;x.line==y.viewFrom||(ae=_o(a,x.line))==0?(ce=We(y.view[0].line),ye=y.view[0].node):(ce=We(y.view[ae].line),ye=y.view[ae-1].node.nextSibling);var Ie=_o(a,ee.line),Ue,rn;if(Ie==y.view.length-1?(Ue=y.viewTo-1,rn=y.lineDiv.lastChild):(Ue=We(y.view[Ie+1].line)-1,rn=y.view[Ie+1].node.previousSibling),!ye)return!1;for(var mn=a.doc.splitLines(Xu(a,ye,rn,ce,Ue)),Qn=wn(a.doc,$e(ce,0),$e(Ue,Jt(a.doc,Ue).text.length));mn.length>1&&Qn.length>1;)if(vt(mn)==vt(Qn))mn.pop(),Qn.pop(),Ue--;else if(mn[0]==Qn[0])mn.shift(),Qn.shift(),ce++;else break;for(var Wn=0,Br=0,Mr=mn[0],Vr=Qn[0],oo=Math.min(Mr.length,Vr.length);Wn<oo&&Mr.charCodeAt(Wn)==Vr.charCodeAt(Wn);)++Wn;for(var go=vt(mn),ao=vt(Qn),So=Math.min(go.length-(mn.length==1?Wn:0),ao.length-(Qn.length==1?Wn:0));Br<So&&go.charCodeAt(go.length-Br-1)==ao.charCodeAt(ao.length-Br-1);)++Br;if(mn.length==1&&Qn.length==1&&ce==x.line)for(;Wn&&Wn>x.ch&&go.charCodeAt(go.length-Br-1)==ao.charCodeAt(ao.length-Br-1);)Wn--,Br++;mn[mn.length-1]=go.slice(0,go.length-Br).replace(/^\u200b+/,""),mn[0]=mn[0].slice(Wn).replace(/\u200b+$/,"");var jo=$e(ce,Wn),Ro=$e(Ue,Qn.length?vt(Qn).length-Br:0);if(mn.length>1||mn[0]||St(jo,Ro))return ca(a.doc,mn,jo,Ro,"+input"),!0},Pa.prototype.ensurePolled=function(){this.forceCompositionEnd()},Pa.prototype.reset=function(){this.forceCompositionEnd()},Pa.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Pa.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))},Pa.prototype.updateFromDOM=function(){var a=this;(this.cm.isReadOnly()||!this.pollContent())&&zi(this.cm,function(){return ii(a.cm)})},Pa.prototype.setUneditable=function(a){a.contentEditable="false"},Pa.prototype.onKeyPress=function(a){a.charCode==0||this.composing||(a.preventDefault(),this.cm.isReadOnly()||Ci(this.cm,wu)(this.cm,String.fromCharCode(a.charCode==null?a.keyCode:a.charCode),0))},Pa.prototype.readOnlyChanged=function(a){this.div.contentEditable=String(a!="nocursor")},Pa.prototype.onContextMenu=function(){},Pa.prototype.resetPosition=function(){},Pa.prototype.needsContentAttribute=!0;function zu(a,y){var E=Gi(a,y.line);if(!E||E.hidden)return null;var x=Jt(a.doc,y.line),ee=Di(E,x,y.line),ae=we(x,a.doc.direction),ce="left";if(ae){var ye=nt(ae,y.ch);ce=ye%2?"right":"left"}var Ie=ml(ee.map,y.ch,ce);return Ie.offset=Ie.collapse=="right"?Ie.end:Ie.start,Ie}function Gu(a){for(var y=a;y;y=y.parentNode)if(/CodeMirror-gutter-wrapper/.test(y.className))return!0;return!1}function Ts(a,y){return y&&(a.bad=!0),a}function Xu(a,y,E,x,ee){var ae="",ce=!1,ye=a.doc.lineSeparator(),Ie=!1;function Ue(Wn){return function(Br){return Br.id==Wn}}function rn(){ce&&(ae+=ye,Ie&&(ae+=ye),ce=Ie=!1)}function mn(Wn){Wn&&(rn(),ae+=Wn)}function Qn(Wn){if(Wn.nodeType==1){var Br=Wn.getAttribute("cm-text");if(Br){mn(Br);return}var Mr=Wn.getAttribute("cm-marker"),Vr;if(Mr){var oo=a.findMarks($e(x,0),$e(ee+1,0),Ue(+Mr));oo.length&&(Vr=oo[0].find(0))&&mn(wn(a.doc,Vr.from,Vr.to).join(ye));return}if(Wn.getAttribute("contenteditable")=="false")return;var go=/^(pre|div|p|li|table|br)$/i.test(Wn.nodeName);if(!/^br$/i.test(Wn.nodeName)&&Wn.textContent.length==0)return;go&&rn();for(var ao=0;ao<Wn.childNodes.length;ao++)Qn(Wn.childNodes[ao]);/^(pre|p)$/i.test(Wn.nodeName)&&(Ie=!0),go&&(ce=!0)}else Wn.nodeType==3&&mn(Wn.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Qn(y),y!=E;)y=y.nextSibling,Ie=!1;return ae}function uu(a,y,E){var x;if(y==a.display.lineDiv){if(x=a.display.lineDiv.childNodes[E],!x)return Ts(a.clipPos($e(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 ee=0;ee<a.display.view.length;ee++){var ae=a.display.view[ee];if(ae.node==x)return Yu(ae,y,E)}}function Yu(a,y,E){var x=a.text.firstChild,ee=!1;if(!y||!Je(x,y))return Ts($e(We(a.line),0),!0);if(y==x&&(ee=!0,y=x.childNodes[E],E=0,!y)){var ae=a.rest?vt(a.rest):a.line;return Ts($e(We(ae),ae.text.length),ee)}var ce=y.nodeType==3?y:null,ye=y;for(!ce&&y.childNodes.length==1&&y.firstChild.nodeType==3&&(ce=y.firstChild,E&&(E=ce.nodeValue.length));ye.parentNode!=x;)ye=ye.parentNode;var Ie=a.measure,Ue=Ie.maps;function rn(Vr,oo,go){for(var ao=-1;ao<(Ue?Ue.length:0);ao++)for(var So=ao<0?Ie.map:Ue[ao],jo=0;jo<So.length;jo+=3){var Ro=So[jo+2];if(Ro==Vr||Ro==oo){var sa=We(ao<0?a.line:a.rest[ao]),Za=So[jo]+go;return(go<0||Ro!=Vr)&&(Za=So[jo+(go?1:0)]),$e(sa,Za)}}}var mn=rn(ce,ye,E);if(mn)return Ts(mn,ee);for(var Qn=ye.nextSibling,Wn=ce?ce.nodeValue.length-E:0;Qn;Qn=Qn.nextSibling){if(mn=rn(Qn,Qn.firstChild,0),mn)return Ts($e(mn.line,mn.ch-Wn),ee);Wn+=Qn.textContent.length}for(var Br=ye.previousSibling,Mr=E;Br;Br=Br.previousSibling){if(mn=rn(Br,Br.firstChild,-1),mn)return Ts($e(mn.line,mn.ch+Mr),ee);Mr+=Br.textContent.length}}var ui=function(a){this.cm=a,this.prevInput="",this.pollingFast=!1,this.polling=new he,this.hasSelection=!1,this.composing=null};ui.prototype.init=function(a){var y=this,E=this,x=this.cm;this.createField(a);var ee=this.textarea;a.wrapper.insertBefore(this.wrapper,a.wrapper.firstChild),at&&(ee.style.width="0px"),It(ee,"input",function(){xe&&ge>=9&&y.hasSelection&&(y.hasSelection=null),E.poll()}),It(ee,"paste",function(ce){At(x,ce)||Tu(ce,x)||(x.state.pasteIncoming=+new Date,E.fastPoll())});function ae(ce){if(!At(x,ce)){if(x.somethingSelected())su({lineWise:!1,text:x.getSelections()});else if(x.options.lineWiseCopyCut){var ye=ku(x);su({lineWise:!0,text:ye.text}),ce.type=="cut"?x.setSelections(ye.ranges,null,Ce):(E.prevInput="",ee.value=ye.text.join(`
|
|
|
`),et(ee))}else return;ce.type=="cut"&&(x.state.cutIncoming=+new Date)}}It(ee,"cut",ae),It(ee,"copy",ae),It(a.scroller,"paste",function(ce){if(!(wo(a,ce)||At(x,ce))){if(!ee.dispatchEvent){x.state.pasteIncoming=+new Date,E.focus();return}var ye=new Event("paste");ye.clipboardData=ce.clipboardData,ee.dispatchEvent(ye)}}),It(a.lineSpace,"selectstart",function(ce){wo(a,ce)||Bt(ce)}),It(ee,"compositionstart",function(){var ce=x.getCursor("from");E.composing&&E.composing.range.clear(),E.composing={start:ce,range:x.markText(ce,x.getCursor("to"),{className:"CodeMirror-composing"})}}),It(ee,"compositionend",function(){E.composing&&(E.poll(),E.composing.range.clear(),E.composing=null)})},ui.prototype.createField=function(a){this.wrapper=Zu(),this.textarea=this.wrapper.firstChild},ui.prototype.screenReaderLabelChanged=function(a){a?this.textarea.setAttribute("aria-label",a):this.textarea.removeAttribute("aria-label")},ui.prototype.prepareSelection=function(){var a=this.cm,y=a.display,E=a.doc,x=Ls(a);if(a.options.moveInputWithCursor){var ee=fi(a,E.sel.primary().head,"div"),ae=y.wrapper.getBoundingClientRect(),ce=y.lineDiv.getBoundingClientRect();x.teTop=Math.max(0,Math.min(y.wrapper.clientHeight-10,ee.top+ce.top-ae.top)),x.teLeft=Math.max(0,Math.min(y.wrapper.clientWidth-10,ee.left+ce.left-ae.left))}return x},ui.prototype.showSelection=function(a){var y=this.cm,E=y.display;Ot(E.cursorDiv,a.cursors),Ot(E.selectionDiv,a.selection),a.teTop!=null&&(this.wrapper.style.top=a.teTop+"px",this.wrapper.style.left=a.teLeft+"px")},ui.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&&et(this.textarea),xe&&ge>=9&&(this.hasSelection=E)}else a||(this.prevInput=this.textarea.value="",xe&&ge>=9&&(this.hasSelection=null))}},ui.prototype.getField=function(){return this.textarea},ui.prototype.supportsTouch=function(){return!1},ui.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!Ne||Xe()!=this.textarea))try{this.textarea.focus()}catch(a){}},ui.prototype.blur=function(){this.textarea.blur()},ui.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},ui.prototype.receivedFocus=function(){this.slowPoll()},ui.prototype.slowPoll=function(){var a=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){a.poll(),a.cm.state.focused&&a.slowPoll()})},ui.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)},ui.prototype.poll=function(){var a=this,y=this.cm,E=this.textarea,x=this.prevInput;if(this.contextMenuPending||!y.state.focused||dr(E)&&!x&&!this.composing||y.isReadOnly()||y.options.disableInput||y.state.keySeq)return!1;var ee=E.value;if(ee==x&&!y.somethingSelected())return!1;if(xe&&ge>=9&&this.hasSelection===ee||Ze&&/[\uf700-\uf7ff]/.test(ee))return y.display.input.reset(),!1;if(y.doc.sel==y.display.selForContextMenu){var ae=ee.charCodeAt(0);if(ae==8203&&!x&&(x="\u200B"),ae==8666)return this.reset(),this.cm.execCommand("undo")}for(var ce=0,ye=Math.min(x.length,ee.length);ce<ye&&x.charCodeAt(ce)==ee.charCodeAt(ce);)++ce;return zi(y,function(){wu(y,ee.slice(ce),x.length-ce,null,a.composing?"*compose":null),ee.length>1e3||ee.indexOf(`
|
|
|
`)>-1?E.value=a.prevInput="":a.prevInput=ee,a.composing&&(a.composing.range.clear(),a.composing.range=y.markText(a.composing.start,y.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},ui.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ui.prototype.onKeyPress=function(){xe&&ge>=9&&(this.hasSelection=null),this.fastPoll()},ui.prototype.onContextMenu=function(a){var y=this,E=y.cm,x=E.display,ee=y.textarea;y.contextMenuPending&&y.contextMenuPending();var ae=dl(E,a),ce=x.scroller.scrollTop;if(!ae||de)return;var ye=E.options.resetSelectionOnContextMenu;ye&&E.doc.sel.contains(ae)==-1&&Ci(E,lo)(E.doc,Dr(ae),Ce);var Ie=ee.style.cssText,Ue=y.wrapper.style.cssText,rn=y.wrapper.offsetParent.getBoundingClientRect();y.wrapper.style.cssText="position: static",ee.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
|
top: `+(a.clientY-rn.top-5)+"px; left: "+(a.clientX-rn.left-5)+`px;
|
|
|
z-index: 1000; background: `+(xe?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var mn;Ee&&(mn=window.scrollY),x.input.focus(),Ee&&window.scrollTo(null,mn),x.input.reset(),E.somethingSelected()||(ee.value=y.prevInput=" "),y.contextMenuPending=Wn,x.selForContextMenu=E.doc.sel,clearTimeout(x.detectingSelectAll);function Qn(){if(ee.selectionStart!=null){var Mr=E.somethingSelected(),Vr="\u200B"+(Mr?ee.value:"");ee.value="\u21DA",ee.value=Vr,y.prevInput=Mr?"":"\u200B",ee.selectionStart=1,ee.selectionEnd=Vr.length,x.selForContextMenu=E.doc.sel}}function Wn(){if(y.contextMenuPending==Wn&&(y.contextMenuPending=!1,y.wrapper.style.cssText=Ue,ee.style.cssText=Ie,xe&&ge<9&&x.scrollbars.setScrollTop(x.scroller.scrollTop=ce),ee.selectionStart!=null)){(!xe||xe&&ge<9)&&Qn();var Mr=0,Vr=function(){x.selForContextMenu==E.doc.sel&&ee.selectionStart==0&&ee.selectionEnd>0&&y.prevInput=="\u200B"?Ci(E,Mo)(E):Mr++<10?x.detectingSelectAll=setTimeout(Vr,500):(x.selForContextMenu=null,x.input.reset())};x.detectingSelectAll=setTimeout(Vr,200)}}if(xe&&ge>=9&&Qn(),Ke){Le(a);var Br=function(){kt(window,"mouseup",Br),setTimeout(Wn,20)};It(window,"mouseup",Br)}else setTimeout(Wn,50)},ui.prototype.readOnlyChanged=function(a){a||this.reset(),this.textarea.disabled=a=="nocursor",this.textarea.readOnly=!!a},ui.prototype.setUneditable=function(){},ui.prototype.needsContentAttribute=!1;function Ju(a,y){if(y=y?ln(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=Xe();y.autofocus=E==a||a.getAttribute("autofocus")!=null&&E==document.body}function x(){a.value=ye.getValue()}var ee;if(a.form&&(It(a.form,"submit",x),!y.leaveSubmitMethodAlone)){var ae=a.form;ee=ae.submit;try{var ce=ae.submit=function(){x(),ae.submit=ee,ae.submit(),ae.submit=ce}}catch(Ie){}}y.finishInit=function(Ie){Ie.save=x,Ie.getTextArea=function(){return a},Ie.toTextArea=function(){Ie.toTextArea=isNaN,x(),a.parentNode.removeChild(Ie.getWrapperElement()),a.style.display="",a.form&&(kt(a.form,"submit",x),!y.leaveSubmitMethodAlone&&typeof a.form.submit=="function"&&(a.form.submit=ee))}},a.style.display="none";var ye=Ya(function(Ie){return a.parentNode.insertBefore(Ie,a.nextSibling)},y);return ye}function Qu(a){a.off=kt,a.on=It,a.wheelEventPixels=fr,a.Doc=Ba,a.splitLines=kn,a.countColumn=ke,a.findColumn=Wt,a.isWordChar=oe,a.Pass=Kt,a.signal=Yt,a.Line=Ur,a.changeEnd=Lr,a.scrollbarModel=Zs,a.Pos=$e,a.cmpPos=St,a.modes=xn,a.mimeModes=qt,a.resolveMode=Tn,a.getMode=_t,a.modeExtensions=Cn,a.extendMode=Bn,a.copyState=Ln,a.startState=yr,a.innerMode=Zn,a.commands=Ml,a.keyMap=si,a.keyName=Yl,a.isModifierKey=Ws,a.lookupKey=os,a.normalizeKeyMap=Bi,a.StringStream=ur,a.SharedTextMarker=Oa,a.TextMarker=Wi,a.LineWidget=ma,a.e_preventDefault=Bt,a.e_stopPropagation=Ut,a.e_stop=Le,a.addClass=ue,a.contains=Je,a.rmClass=ft,a.keyNames=aa}Wu(Ya),Uu(Ya);var qu="iter insert remove copy getEditor constructor".split(" ");for(var cu in Ba.prototype)Ba.prototype.hasOwnProperty(cu)&&Ct(qu,cu)<0&&(Ya.prototype[cu]=function(a){return function(){return a.apply(this.doc,arguments)}}(Ba.prototype[cu]));return _e(Ba),Ya.inputStyles={textarea:ui,contenteditable:Pa},Ya.defineMode=function(a){!Ya.defaults.mode&&a!="null"&&(Ya.defaults.mode=a),En.apply(this,arguments)},Ya.defineMIME=Fn,Ya.defineMode("null",function(){return{token:function(a){return a.skipToEnd()}}}),Ya.defineMIME("text/plain","null"),Ya.defineExtension=function(a,y){Ya.prototype[a]=y},Ya.defineDocExtension=function(a,y){Ba.prototype[a]=y},Ya.fromTextArea=Ju,Qu(Ya),Ya.version="5.58.2",Ya})},25419:function(Kn,cn,z){(function(b){b(z(89780),z(15525),z(98101))})(function(b){"use strict";b.defineMode("markdown",function(Pe,fe){var rt=b.getMode(Pe,"text/html"),xe=rt.name=="null";function ge(ke){if(b.findModeByName){var he=b.findModeByName(ke);he&&(ke=he.mime||he.mimes[0])}var Ct=b.getMode(Pe,ke);return Ct.name=="null"?null:Ct}fe.highlightFormatting===void 0&&(fe.highlightFormatting=!1),fe.maxBlockquoteDepth===void 0&&(fe.maxBlockquoteDepth=0),fe.taskLists===void 0&&(fe.taskLists=!1),fe.strikethrough===void 0&&(fe.strikethrough=!1),fe.emoji===void 0&&(fe.emoji=!1),fe.fencedCodeBlockHighlighting===void 0&&(fe.fencedCodeBlockHighlighting=!0),fe.fencedCodeBlockDefaultMode===void 0&&(fe.fencedCodeBlockDefaultMode="text/plain"),fe.xml===void 0&&(fe.xml=!0),fe.tokenTypeOverrides===void 0&&(fe.tokenTypeOverrides={});var Ee={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var Qe in Ee)Ee.hasOwnProperty(Qe)&&fe.tokenTypeOverrides[Qe]&&(Ee[Qe]=fe.tokenTypeOverrides[Qe]);var Ae=/^([*\-_])(?:\s*\1){2,}\s*$/,de=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,tt=/^\[(x| )\](?=\s)/i,ve=fe.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,Lt=/^ {0,3}(?:\={1,}|-{2,})\s*$/,at=/^[^#!\[\]*_\\<>` "'(~:]+/,Ve=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,Ne=/^\s*\[[^\]]+?\]:.*$/,Ze=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,pt=" ";function mt(ke,he,Ct){return he.f=he.inline=Ct,Ct(ke,he)}function Xt(ke,he,Ct){return he.f=he.block=Ct,Ct(ke,he)}function He(ke){return!ke||!/\S/.test(ke.string)}function Ke(ke){if(ke.linkTitle=!1,ke.linkHref=!1,ke.linkText=!1,ke.em=!1,ke.strong=!1,ke.strikethrough=!1,ke.quote=0,ke.indentedCode=!1,ke.f==ft){var he=xe;if(!he){var Ct=b.innerMode(rt,ke.htmlState);he=Ct.mode.name=="xml"&&Ct.state.tagStart===null&&!Ct.state.context&&Ct.state.tokenize.isInText}he&&(ke.f=Et,ke.block=ut,ke.htmlState=null)}return ke.trailingSpace=0,ke.trailingSpaceNewLine=!1,ke.prevLine=ke.thisLine,ke.thisLine={stream:null},null}function ut(ke,he){var Ct=ke.column()===he.indentation,Pt=He(he.prevLine.stream),Kt=he.indentedCode,Ce=he.prevLine.hr,ot=he.list!==!1,lt=(he.listStack[he.listStack.length-1]||0)+3;he.indentedCode=!1;var Wt=he.indentation;if(he.indentationDiff===null&&(he.indentationDiff=he.indentation,ot)){for(he.list=null;Wt<he.listStack[he.listStack.length-1];)he.listStack.pop(),he.listStack.length?he.indentation=he.listStack[he.listStack.length-1]:he.list=!1;he.list!==!1&&(he.indentationDiff=Wt-he.listStack[he.listStack.length-1])}var ct=!Pt&&!Ce&&!he.prevLine.header&&(!ot||!Kt)&&!he.prevLine.fencedCodeEnd,$t=(he.list===!1||Ce||Pt)&&he.indentation<=lt&&ke.match(Ae),vt=null;if(he.indentationDiff>=4&&(Kt||he.prevLine.fencedCodeEnd||he.prevLine.header||Pt))return ke.skipToEnd(),he.indentedCode=!0,Ee.code;if(ke.eatSpace())return null;if(Ct&&he.indentation<=lt&&(vt=ke.match(ve))&&vt[1].length<=6)return he.quote=0,he.header=vt[1].length,he.thisLine.header=!0,fe.highlightFormatting&&(he.formatting="header"),he.f=he.inline,Ot(he);if(he.indentation<=lt&&ke.eat(">"))return he.quote=Ct?1:he.quote+1,fe.highlightFormatting&&(he.formatting="quote"),ke.eatSpace(),Ot(he);if(!$t&&!he.setext&&Ct&&he.indentation<=lt&&(vt=ke.match(de))){var gn=vt[1]?"ol":"ul";return he.indentation=Wt+ke.current().length,he.list=!0,he.quote=0,he.listStack.push(he.indentation),he.em=!1,he.strong=!1,he.code=!1,he.strikethrough=!1,fe.taskLists&&ke.match(tt,!1)&&(he.taskList=!0),he.f=he.inline,fe.highlightFormatting&&(he.formatting=["list","list-"+gn]),Ot(he)}else{if(Ct&&he.indentation<=lt&&(vt=ke.match(Ve,!0)))return he.quote=0,he.fencedEndRE=new RegExp(vt[1]+"+ *$"),he.localMode=fe.fencedCodeBlockHighlighting&&ge(vt[2]||fe.fencedCodeBlockDefaultMode),he.localMode&&(he.localState=b.startState(he.localMode)),he.f=he.block=jt,fe.highlightFormatting&&(he.formatting="code-block"),he.code=-1,Ot(he);if(he.setext||(!ct||!ot)&&!he.quote&&he.list===!1&&!he.code&&!$t&&!Ne.test(ke.string)&&(vt=ke.lookAhead(1))&&(vt=vt.match(Lt)))return he.setext?(he.header=he.setext,he.setext=0,ke.skipToEnd(),fe.highlightFormatting&&(he.formatting="header")):(he.header=vt[0].charAt(0)=="="?1:2,he.setext=he.header),he.thisLine.header=!0,he.f=he.inline,Ot(he);if($t)return ke.skipToEnd(),he.hr=!0,he.thisLine.hr=!0,Ee.hr;if(ke.peek()==="[")return mt(ke,he,Nt)}return mt(ke,he,he.inline)}function ft(ke,he){var Ct=rt.token(ke,he.htmlState);if(!xe){var Pt=b.innerMode(rt,he.htmlState);(Pt.mode.name=="xml"&&Pt.state.tagStart===null&&!Pt.state.context&&Pt.state.tokenize.isInText||he.md_inside&&ke.current().indexOf(">")>-1)&&(he.f=Et,he.block=ut,he.htmlState=null)}return Ct}function jt(ke,he){var Ct=he.listStack[he.listStack.length-1]||0,Pt=he.indentation<Ct,Kt=Ct+3;if(he.fencedEndRE&&he.indentation<=Kt&&(Pt||ke.match(he.fencedEndRE))){fe.highlightFormatting&&(he.formatting="code-block");var Ce;return Pt||(Ce=Ot(he)),he.localMode=he.localState=null,he.block=ut,he.f=Et,he.fencedEndRE=null,he.code=0,he.thisLine.fencedCodeEnd=!0,Pt?Xt(ke,he,he.block):Ce}else return he.localMode?he.localMode.token(ke,he.localState):(ke.skipToEnd(),Ee.code)}function Ot(ke){var he=[];if(ke.formatting){he.push(Ee.formatting),typeof ke.formatting=="string"&&(ke.formatting=[ke.formatting]);for(var Ct=0;Ct<ke.formatting.length;Ct++)he.push(Ee.formatting+"-"+ke.formatting[Ct]),ke.formatting[Ct]==="header"&&he.push(Ee.formatting+"-"+ke.formatting[Ct]+"-"+ke.header),ke.formatting[Ct]==="quote"&&(!fe.maxBlockquoteDepth||fe.maxBlockquoteDepth>=ke.quote?he.push(Ee.formatting+"-"+ke.formatting[Ct]+"-"+ke.quote):he.push("error"))}if(ke.taskOpen)return he.push("meta"),he.length?he.join(" "):null;if(ke.taskClosed)return he.push("property"),he.length?he.join(" "):null;if(ke.linkHref?he.push(Ee.linkHref,"url"):(ke.strong&&he.push(Ee.strong),ke.em&&he.push(Ee.em),ke.strikethrough&&he.push(Ee.strikethrough),ke.emoji&&he.push(Ee.emoji),ke.linkText&&he.push(Ee.linkText),ke.code&&he.push(Ee.code),ke.image&&he.push(Ee.image),ke.imageAltText&&he.push(Ee.imageAltText,"link"),ke.imageMarker&&he.push(Ee.imageMarker)),ke.header&&he.push(Ee.header,Ee.header+"-"+ke.header),ke.quote&&(he.push(Ee.quote),!fe.maxBlockquoteDepth||fe.maxBlockquoteDepth>=ke.quote?he.push(Ee.quote+"-"+ke.quote):he.push(Ee.quote+"-"+fe.maxBlockquoteDepth)),ke.list!==!1){var Pt=(ke.listStack.length-1)%3;Pt?Pt===1?he.push(Ee.list2):he.push(Ee.list3):he.push(Ee.list1)}return ke.trailingSpaceNewLine?he.push("trailing-space-new-line"):ke.trailingSpace&&he.push("trailing-space-"+(ke.trailingSpace%2?"a":"b")),he.length?he.join(" "):null}function yt(ke,he){if(ke.match(at,!0))return Ot(he)}function Et(ke,he){var Ct=he.text(ke,he);if(typeof Ct!="undefined")return Ct;if(he.list)return he.list=null,Ot(he);if(he.taskList){var Pt=ke.match(tt,!0)[1]===" ";return Pt?he.taskOpen=!0:he.taskClosed=!0,fe.highlightFormatting&&(he.formatting="task"),he.taskList=!1,Ot(he)}if(he.taskOpen=!1,he.taskClosed=!1,he.header&&ke.match(/^#+$/,!0))return fe.highlightFormatting&&(he.formatting="header"),Ot(he);var Kt=ke.next();if(he.linkTitle){he.linkTitle=!1;var Ce=Kt;Kt==="("&&(Ce=")"),Ce=(Ce+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var ot="^\\s*(?:[^"+Ce+"\\\\]+|\\\\\\\\|\\\\.)"+Ce;if(ke.match(new RegExp(ot),!0))return Ee.linkHref}if(Kt==="`"){var lt=he.formatting;fe.highlightFormatting&&(he.formatting="code"),ke.eatWhile("`");var Wt=ke.current().length;if(he.code==0&&(!he.quote||Wt==1))return he.code=Wt,Ot(he);if(Wt==he.code){var ct=Ot(he);return he.code=0,ct}else return he.formatting=lt,Ot(he)}else if(he.code)return Ot(he);if(Kt==="\\"&&(ke.next(),fe.highlightFormatting)){var $t=Ot(he),vt=Ee.formatting+"-escape";return $t?$t+" "+vt:vt}if(Kt==="!"&&ke.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return he.imageMarker=!0,he.image=!0,fe.highlightFormatting&&(he.formatting="image"),Ot(he);if(Kt==="["&&he.imageMarker&&ke.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return he.imageMarker=!1,he.imageAltText=!0,fe.highlightFormatting&&(he.formatting="image"),Ot(he);if(Kt==="]"&&he.imageAltText){fe.highlightFormatting&&(he.formatting="image");var $t=Ot(he);return he.imageAltText=!1,he.image=!1,he.inline=he.f=Je,$t}if(Kt==="["&&!he.image)return he.linkText&&ke.match(/^.*?\]/)||(he.linkText=!0,fe.highlightFormatting&&(he.formatting="link")),Ot(he);if(Kt==="]"&&he.linkText){fe.highlightFormatting&&(he.formatting="link");var $t=Ot(he);return he.linkText=!1,he.inline=he.f=ke.match(/\(.*?\)| ?\[.*?\]/,!1)?Je:Et,$t}if(Kt==="<"&&ke.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){he.f=he.inline=pe,fe.highlightFormatting&&(he.formatting="link");var $t=Ot(he);return $t?$t+=" ":$t="",$t+Ee.linkInline}if(Kt==="<"&&ke.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){he.f=he.inline=pe,fe.highlightFormatting&&(he.formatting="link");var $t=Ot(he);return $t?$t+=" ":$t="",$t+Ee.linkEmail}if(fe.xml&&Kt==="<"&&ke.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var gn=ke.string.indexOf(">",ke.pos);if(gn!=-1){var Tt=ke.string.substring(ke.start,gn);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Tt)&&(he.md_inside=!0)}return ke.backUp(1),he.htmlState=b.startState(rt),Xt(ke,he,ft)}if(fe.xml&&Kt==="<"&&ke.match(/^\/\w*?>/))return he.md_inside=!1,"tag";if(Kt==="*"||Kt==="_"){for(var ie=1,ne=ke.pos==1?" ":ke.string.charAt(ke.pos-2);ie<3&&ke.eat(Kt);)ie++;var te=ke.peek()||" ",oe=!/\s/.test(te)&&(!Ze.test(te)||/\s/.test(ne)||Ze.test(ne)),se=!/\s/.test(ne)&&(!Ze.test(ne)||/\s/.test(te)||Ze.test(te)),re=null,le=null;if(ie%2&&(!he.em&&oe&&(Kt==="*"||!se||Ze.test(ne))?re=!0:he.em==Kt&&se&&(Kt==="*"||!oe||Ze.test(te))&&(re=!1)),ie>1&&(!he.strong&&oe&&(Kt==="*"||!se||Ze.test(ne))?le=!0:he.strong==Kt&&se&&(Kt==="*"||!oe||Ze.test(te))&&(le=!1)),le!=null||re!=null){fe.highlightFormatting&&(he.formatting=re==null?"strong":le==null?"em":"strong em"),re===!0&&(he.em=Kt),le===!0&&(he.strong=Kt);var ct=Ot(he);return re===!1&&(he.em=!1),le===!1&&(he.strong=!1),ct}}else if(Kt===" "&&(ke.eat("*")||ke.eat("_"))){if(ke.peek()===" ")return Ot(he);ke.backUp(1)}if(fe.strikethrough){if(Kt==="~"&&ke.eatWhile(Kt)){if(he.strikethrough){fe.highlightFormatting&&(he.formatting="strikethrough");var ct=Ot(he);return he.strikethrough=!1,ct}else if(ke.match(/^[^\s]/,!1))return he.strikethrough=!0,fe.highlightFormatting&&(he.formatting="strikethrough"),Ot(he)}else if(Kt===" "&&ke.match(/^~~/,!0)){if(ke.peek()===" ")return Ot(he);ke.backUp(2)}}if(fe.emoji&&Kt===":"&&ke.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){he.emoji=!0,fe.highlightFormatting&&(he.formatting="emoji");var me=Ot(he);return he.emoji=!1,me}return Kt===" "&&(ke.match(/^ +$/,!1)?he.trailingSpace++:he.trailingSpace&&(he.trailingSpaceNewLine=!0)),Ot(he)}function pe(ke,he){var Ct=ke.next();if(Ct===">"){he.f=he.inline=Et,fe.highlightFormatting&&(he.formatting="link");var Pt=Ot(he);return Pt?Pt+=" ":Pt="",Pt+Ee.linkInline}return ke.match(/^[^>]+/,!0),Ee.linkInline}function Je(ke,he){if(ke.eatSpace())return null;var Ct=ke.next();return Ct==="("||Ct==="["?(he.f=he.inline=ue(Ct==="("?")":"]"),fe.highlightFormatting&&(he.formatting="link-string"),he.linkHref=!0,Ot(he)):"error"}var Xe={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function ue(ke){return function(he,Ct){var Pt=he.next();if(Pt===ke){Ct.f=Ct.inline=Et,fe.highlightFormatting&&(Ct.formatting="link-string");var Kt=Ot(Ct);return Ct.linkHref=!1,Kt}return he.match(Xe[ke]),Ct.linkHref=!0,Ot(Ct)}}function Nt(ke,he){return ke.match(/^([^\]\\]|\\.)*\]:/,!1)?(he.f=et,ke.next(),fe.highlightFormatting&&(he.formatting="link"),he.linkText=!0,Ot(he)):mt(ke,he,Et)}function et(ke,he){if(ke.match(/^\]:/,!0)){he.f=he.inline=wt,fe.highlightFormatting&&(he.formatting="link");var Ct=Ot(he);return he.linkText=!1,Ct}return ke.match(/^([^\]\\]|\\.)+/,!0),Ee.linkText}function wt(ke,he){return ke.eatSpace()?null:(ke.match(/^[^\s]+/,!0),ke.peek()===void 0?he.linkTitle=!0:ke.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),he.f=he.inline=Et,Ee.linkHref+" url")}var ln={startState:function(){return{f:ut,prevLine:{stream:null},thisLine:{stream:null},block:ut,htmlState:null,indentation:0,inline:Et,text:yt,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(ke){return{f:ke.f,prevLine:ke.prevLine,thisLine:ke.thisLine,block:ke.block,htmlState:ke.htmlState&&b.copyState(rt,ke.htmlState),indentation:ke.indentation,localMode:ke.localMode,localState:ke.localMode?b.copyState(ke.localMode,ke.localState):null,inline:ke.inline,text:ke.text,formatting:!1,linkText:ke.linkText,linkTitle:ke.linkTitle,linkHref:ke.linkHref,code:ke.code,em:ke.em,strong:ke.strong,strikethrough:ke.strikethrough,emoji:ke.emoji,header:ke.header,setext:ke.setext,hr:ke.hr,taskList:ke.taskList,list:ke.list,listStack:ke.listStack.slice(0),quote:ke.quote,indentedCode:ke.indentedCode,trailingSpace:ke.trailingSpace,trailingSpaceNewLine:ke.trailingSpaceNewLine,md_inside:ke.md_inside,fencedEndRE:ke.fencedEndRE}},token:function(ke,he){if(he.formatting=!1,ke!=he.thisLine.stream){if(he.header=0,he.hr=!1,ke.match(/^\s*$/,!0))return Ke(he),null;if(he.prevLine=he.thisLine,he.thisLine={stream:ke},he.taskList=!1,he.trailingSpace=0,he.trailingSpaceNewLine=!1,!he.localState&&(he.f=he.block,he.f!=ft)){var Ct=ke.match(/^\s*/,!0)[0].replace(/\t/g,pt).length;if(he.indentation=Ct,he.indentationDiff=null,Ct>0)return null}}return he.f(ke,he)},innerMode:function(ke){return ke.block==ft?{state:ke.htmlState,mode:rt}:ke.localState?{state:ke.localState,mode:ke.localMode}:{state:ke,mode:ln}},indent:function(ke,he,Ct){return ke.block==ft&&rt.indent?rt.indent(ke.htmlState,he,Ct):ke.localState&&ke.localMode.indent?ke.localMode.indent(ke.localState,he,Ct):b.Pass},blankLine:Ke,getType:Ot,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return ln},"xml"),b.defineMIME("text/markdown","markdown"),b.defineMIME("text/x-markdown","markdown")})},98101:function(Kn,cn,z){(function(b){b(z(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 Pe=0;Pe<b.modeInfo.length;Pe++){var fe=b.modeInfo[Pe];fe.mimes&&(fe.mime=fe.mimes[0])}b.findModeByMIME=function(rt){rt=rt.toLowerCase();for(var xe=0;xe<b.modeInfo.length;xe++){var ge=b.modeInfo[xe];if(ge.mime==rt)return ge;if(ge.mimes){for(var Ee=0;Ee<ge.mimes.length;Ee++)if(ge.mimes[Ee]==rt)return ge}}if(/\+xml$/.test(rt))return b.findModeByMIME("application/xml");if(/\+json$/.test(rt))return b.findModeByMIME("application/json")},b.findModeByExtension=function(rt){rt=rt.toLowerCase();for(var xe=0;xe<b.modeInfo.length;xe++){var ge=b.modeInfo[xe];if(ge.ext){for(var Ee=0;Ee<ge.ext.length;Ee++)if(ge.ext[Ee]==rt)return ge}}},b.findModeByFileName=function(rt){for(var xe=0;xe<b.modeInfo.length;xe++){var ge=b.modeInfo[xe];if(ge.file&&ge.file.test(rt))return ge}var Ee=rt.lastIndexOf("."),Qe=Ee>-1&&rt.substring(Ee+1,rt.length);if(Qe)return b.findModeByExtension(Qe)},b.findModeByName=function(rt){rt=rt.toLowerCase();for(var xe=0;xe<b.modeInfo.length;xe++){var ge=b.modeInfo[xe];if(ge.name.toLowerCase()==rt)return ge;if(ge.alias){for(var Ee=0;Ee<ge.alias.length;Ee++)if(ge.alias[Ee].toLowerCase()==rt)return ge}}}})},67549:function(Kn,cn,z){(function(b){b(z(89780))})(function(b){"use strict";b.defineMode("stex",function(Pe,fe){"use strict";function rt(at,Ve){at.cmdState.push(Ve)}function xe(at){return at.cmdState.length>0?at.cmdState[at.cmdState.length-1]:null}function ge(at){var Ve=at.cmdState.pop();Ve&&Ve.closeBracket()}function Ee(at){for(var Ve=at.cmdState,Ne=Ve.length-1;Ne>=0;Ne--){var Ze=Ve[Ne];if(Ze.name!="DEFAULT")return Ze}return{styleIdentifier:function(){return null}}}function Qe(at,Ve,Ne){return function(){this.name=at,this.bracketNo=0,this.style=Ve,this.styles=Ne,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var Ae={};Ae.importmodule=Qe("importmodule","tag",["string","builtin"]),Ae.documentclass=Qe("documentclass","tag",["","atom"]),Ae.usepackage=Qe("usepackage","tag",["atom"]),Ae.begin=Qe("begin","tag",["atom"]),Ae.end=Qe("end","tag",["atom"]),Ae.label=Qe("label","tag",["atom"]),Ae.ref=Qe("ref","tag",["atom"]),Ae.eqref=Qe("eqref","tag",["atom"]),Ae.cite=Qe("cite","tag",["atom"]),Ae.bibitem=Qe("bibitem","tag",["atom"]),Ae.Bibitem=Qe("Bibitem","tag",["atom"]),Ae.RBibitem=Qe("RBibitem","tag",["atom"]),Ae.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function de(at,Ve){at.f=Ve}function tt(at,Ve){var Ne;if(at.match(/^\\[a-zA-Z@]+/)){var Ze=at.current().slice(1);return Ne=Ae.hasOwnProperty(Ze)?Ae[Ze]:Ae.DEFAULT,Ne=new Ne,rt(Ve,Ne),de(Ve,Lt),Ne.style}if(at.match(/^\\[$&%#{}_]/)||at.match(/^\\[,;!\/\\]/))return"tag";if(at.match("\\["))return de(Ve,function(mt,Xt){return ve(mt,Xt,"\\]")}),"keyword";if(at.match("\\("))return de(Ve,function(mt,Xt){return ve(mt,Xt,"\\)")}),"keyword";if(at.match("$$"))return de(Ve,function(mt,Xt){return ve(mt,Xt,"$$")}),"keyword";if(at.match("$"))return de(Ve,function(mt,Xt){return ve(mt,Xt,"$")}),"keyword";var pt=at.next();if(pt=="%")return at.skipToEnd(),"comment";if(pt=="}"||pt=="]"){if(Ne=xe(Ve),Ne)Ne.closeBracket(pt),de(Ve,Lt);else return"error";return"bracket"}else return pt=="{"||pt=="["?(Ne=Ae.DEFAULT,Ne=new Ne,rt(Ve,Ne),"bracket"):/\d/.test(pt)?(at.eatWhile(/[\w.%]/),"atom"):(at.eatWhile(/[\w\-_]/),Ne=Ee(Ve),Ne.name=="begin"&&(Ne.argument=at.current()),Ne.styleIdentifier())}function ve(at,Ve,Ne){if(at.eatSpace())return null;if(Ne&&at.match(Ne))return de(Ve,tt),"keyword";if(at.match(/^\\[a-zA-Z@]+/))return"tag";if(at.match(/^[a-zA-Z]+/))return"variable-2";if(at.match(/^\\[$&%#{}_]/)||at.match(/^\\[,;!\/]/)||at.match(/^[\^_&]/))return"tag";if(at.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(at.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var Ze=at.next();return Ze=="{"||Ze=="}"||Ze=="["||Ze=="]"||Ze=="("||Ze==")"?"bracket":Ze=="%"?(at.skipToEnd(),"comment"):"error"}function Lt(at,Ve){var Ne=at.peek(),Ze;return Ne=="{"||Ne=="["?(Ze=xe(Ve),Ze.openBracket(Ne),at.eat(Ne),de(Ve,tt),"bracket"):/[ \t\r]/.test(Ne)?(at.eat(Ne),null):(de(Ve,tt),ge(Ve),tt(at,Ve))}return{startState:function(){var at=fe.inMathMode?function(Ve,Ne){return ve(Ve,Ne)}:tt;return{cmdState:[],f:at}},copyState:function(at){return{cmdState:at.cmdState.slice(),f:at.f}},token:function(at,Ve){return Ve.f(at,Ve)},blankLine:function(at){at.f=tt,at.cmdState.length=0},lineComment:"%"}}),b.defineMIME("text/x-stex","stex"),b.defineMIME("text/x-latex","stex")})},15525:function(Kn,cn,z){(function(b){b(z(89780))})(function(b){"use strict";var Pe={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(rt,xe){var ge=rt.indentUnit,Ee={},Qe=xe.htmlMode?Pe:fe;for(var Ae in Qe)Ee[Ae]=Qe[Ae];for(var Ae in xe)Ee[Ae]=xe[Ae];var de,tt;function ve(pe,Je){function Xe(et){return Je.tokenize=et,et(pe,Je)}var ue=pe.next();if(ue=="<")return pe.eat("!")?pe.eat("[")?pe.match("CDATA[")?Xe(Ve("atom","]]>")):null:pe.match("--")?Xe(Ve("comment","-->")):pe.match("DOCTYPE",!0,!0)?(pe.eatWhile(/[\w\._\-]/),Xe(Ne(1))):null:pe.eat("?")?(pe.eatWhile(/[\w\._\-]/),Je.tokenize=Ve("meta","?>"),"meta"):(de=pe.eat("/")?"closeTag":"openTag",Je.tokenize=Lt,"tag bracket");if(ue=="&"){var Nt;return pe.eat("#")?pe.eat("x")?Nt=pe.eatWhile(/[a-fA-F\d]/)&&pe.eat(";"):Nt=pe.eatWhile(/[\d]/)&&pe.eat(";"):Nt=pe.eatWhile(/[\w\.\-:]/)&&pe.eat(";"),Nt?"atom":"error"}else return pe.eatWhile(/[^&<]/),null}ve.isInText=!0;function Lt(pe,Je){var Xe=pe.next();if(Xe==">"||Xe=="/"&&pe.eat(">"))return Je.tokenize=ve,de=Xe==">"?"endTag":"selfcloseTag","tag bracket";if(Xe=="=")return de="equals",null;if(Xe=="<"){Je.tokenize=ve,Je.state=Xt,Je.tagName=Je.tagStart=null;var ue=Je.tokenize(pe,Je);return ue?ue+" tag error":"tag error"}else return/[\'\"]/.test(Xe)?(Je.tokenize=at(Xe),Je.stringStartCol=pe.column(),Je.tokenize(pe,Je)):(pe.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function at(pe){var Je=function(Xe,ue){for(;!Xe.eol();)if(Xe.next()==pe){ue.tokenize=Lt;break}return"string"};return Je.isInAttribute=!0,Je}function Ve(pe,Je){return function(Xe,ue){for(;!Xe.eol();){if(Xe.match(Je)){ue.tokenize=ve;break}Xe.next()}return pe}}function Ne(pe){return function(Je,Xe){for(var ue;(ue=Je.next())!=null;){if(ue=="<")return Xe.tokenize=Ne(pe+1),Xe.tokenize(Je,Xe);if(ue==">")if(pe==1){Xe.tokenize=ve;break}else return Xe.tokenize=Ne(pe-1),Xe.tokenize(Je,Xe)}return"meta"}}function Ze(pe,Je,Xe){this.prev=pe.context,this.tagName=Je,this.indent=pe.indented,this.startOfLine=Xe,(Ee.doNotIndent.hasOwnProperty(Je)||pe.context&&pe.context.noIndent)&&(this.noIndent=!0)}function pt(pe){pe.context&&(pe.context=pe.context.prev)}function mt(pe,Je){for(var Xe;;){if(!pe.context||(Xe=pe.context.tagName,!Ee.contextGrabbers.hasOwnProperty(Xe)||!Ee.contextGrabbers[Xe].hasOwnProperty(Je)))return;pt(pe)}}function Xt(pe,Je,Xe){return pe=="openTag"?(Xe.tagStart=Je.column(),He):pe=="closeTag"?Ke:Xt}function He(pe,Je,Xe){return pe=="word"?(Xe.tagName=Je.current(),tt="tag",jt):Ee.allowMissingTagName&&pe=="endTag"?(tt="tag bracket",jt(pe,Je,Xe)):(tt="error",He)}function Ke(pe,Je,Xe){if(pe=="word"){var ue=Je.current();return Xe.context&&Xe.context.tagName!=ue&&Ee.implicitlyClosed.hasOwnProperty(Xe.context.tagName)&&pt(Xe),Xe.context&&Xe.context.tagName==ue||Ee.matchClosing===!1?(tt="tag",ut):(tt="tag error",ft)}else return Ee.allowMissingTagName&&pe=="endTag"?(tt="tag bracket",ut(pe,Je,Xe)):(tt="error",ft)}function ut(pe,Je,Xe){return pe!="endTag"?(tt="error",ut):(pt(Xe),Xt)}function ft(pe,Je,Xe){return tt="error",ut(pe,Je,Xe)}function jt(pe,Je,Xe){if(pe=="word")return tt="attribute",Ot;if(pe=="endTag"||pe=="selfcloseTag"){var ue=Xe.tagName,Nt=Xe.tagStart;return Xe.tagName=Xe.tagStart=null,pe=="selfcloseTag"||Ee.autoSelfClosers.hasOwnProperty(ue)?mt(Xe,ue):(mt(Xe,ue),Xe.context=new Ze(Xe,ue,Nt==Xe.indented)),Xt}return tt="error",jt}function Ot(pe,Je,Xe){return pe=="equals"?yt:(Ee.allowMissing||(tt="error"),jt(pe,Je,Xe))}function yt(pe,Je,Xe){return pe=="string"?Et:pe=="word"&&Ee.allowUnquoted?(tt="string",jt):(tt="error",jt(pe,Je,Xe))}function Et(pe,Je,Xe){return pe=="string"?Et:jt(pe,Je,Xe)}return{startState:function(pe){var Je={tokenize:ve,state:Xt,indented:pe||0,tagName:null,tagStart:null,context:null};return pe!=null&&(Je.baseIndent=pe),Je},token:function(pe,Je){if(!Je.tagName&&pe.sol()&&(Je.indented=pe.indentation()),pe.eatSpace())return null;de=null;var Xe=Je.tokenize(pe,Je);return(Xe||de)&&Xe!="comment"&&(tt=null,Je.state=Je.state(de||Xe,pe,Je),tt&&(Xe=tt=="error"?Xe+" error":tt)),Xe},indent:function(pe,Je,Xe){var ue=pe.context;if(pe.tokenize.isInAttribute)return pe.tagStart==pe.indented?pe.stringStartCol+1:pe.indented+ge;if(ue&&ue.noIndent)return b.Pass;if(pe.tokenize!=Lt&&pe.tokenize!=ve)return Xe?Xe.match(/^(\s*)/)[0].length:0;if(pe.tagName)return Ee.multilineTagIndentPastTag!==!1?pe.tagStart+pe.tagName.length+2:pe.tagStart+ge*(Ee.multilineTagIndentFactor||1);if(Ee.alignCDATA&&/<!\[CDATA\[/.test(Je))return 0;var Nt=Je&&/^<(\/)?([\w_:\.-]*)/.exec(Je);if(Nt&&Nt[1])for(;ue;)if(ue.tagName==Nt[2]){ue=ue.prev;break}else if(Ee.implicitlyClosed.hasOwnProperty(ue.tagName))ue=ue.prev;else break;else if(Nt)for(;ue;){var et=Ee.contextGrabbers[ue.tagName];if(et&&et.hasOwnProperty(Nt[2]))ue=ue.prev;else break}for(;ue&&ue.prev&&!ue.startOfLine;)ue=ue.prev;return ue?ue.indent+ge:pe.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:Ee.htmlMode?"html":"xml",helperType:Ee.htmlMode?"html":"xml",skipAttribute:function(pe){pe.state==yt&&(pe.state=jt)},xmlCurrentTag:function(pe){return pe.tagName?{name:pe.tagName,close:pe.type=="closeTag"}:null},xmlCurrentContext:function(pe){for(var Je=[],Xe=pe.context;Xe;Xe=Xe.prev)Xe.tagName&&Je.push(Xe.tagName);return Je.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(Kn,cn,z){"use strict";z.d(cn,{hP:function(){return Tt}});var b=function(ie,ne){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(te,oe){te.__proto__=oe}||function(te,oe){for(var se in oe)Object.prototype.hasOwnProperty.call(oe,se)&&(te[se]=oe[se])})(ie,ne)};function Pe(ie,ne){function te(){this.constructor=ie}b(ie,ne),ie.prototype=ne===null?Object.create(ne):(te.prototype=ne.prototype,new te)}function fe(ie,ne,te,oe){return new(te||(te=Promise))(function(se,re){function le(Re){try{Dt(oe.next(Re))}catch(Fe){re(Fe)}}function me(Re){try{Dt(oe.throw(Re))}catch(Fe){re(Fe)}}function Dt(Re){var Fe;Re.done?se(Re.value):(Fe=Re.value,Fe instanceof te?Fe:new te(function(qe){qe(Fe)})).then(le,me)}Dt((oe=oe.apply(ie,ne||[])).next())})}function rt(ie,ne){var te,oe,se,re,le={label:0,sent:function(){if(1&se[0])throw se[1];return se[1]},trys:[],ops:[]};return re={next:me(0),throw:me(1),return:me(2)},typeof Symbol=="function"&&(re[Symbol.iterator]=function(){return this}),re;function me(Dt){return function(Re){return function(Fe){if(te)throw new TypeError("Generator is already executing.");for(;le;)try{if(te=1,oe&&(se=2&Fe[0]?oe.return:Fe[0]?oe.throw||((se=oe.return)&&se.call(oe),0):oe.next)&&!(se=se.call(oe,Fe[1])).done)return se;switch(oe=0,se&&(Fe=[2&Fe[0],se.value]),Fe[0]){case 0:case 1:se=Fe;break;case 4:return le.label++,{value:Fe[1],done:!1};case 5:le.label++,oe=Fe[1],Fe=[0];continue;case 7:Fe=le.ops.pop(),le.trys.pop();continue;default:if(se=le.trys,!((se=se.length>0&&se[se.length-1])||Fe[0]!==6&&Fe[0]!==2)){le=0;continue}if(Fe[0]===3&&(!se||Fe[1]>se[0]&&Fe[1]<se[3])){le.label=Fe[1];break}if(Fe[0]===6&&le.label<se[1]){le.label=se[1],se=Fe;break}if(se&&le.label<se[2]){le.label=se[2],le.ops.push(Fe);break}se[2]&&le.ops.pop(),le.trys.pop();continue}Fe=ne.call(ie,le)}catch(qe){Fe=[6,qe],oe=0}finally{te=se=0}if(5&Fe[0])throw Fe[1];return{value:Fe[0]?Fe[1]:void 0,done:!0}}([Dt,Re])}}}function xe(){for(var ie=0,ne=0,te=arguments.length;ne<te;ne++)ie+=arguments[ne].length;var oe=Array(ie),se=0;for(ne=0;ne<te;ne++)for(var re=arguments[ne],le=0,me=re.length;le<me;le++,se++)oe[se]=re[le];return oe}var ge=function(){function ie(){}return ie.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},ie.setAttributes=function(ne,te){for(var oe=0,se=te;oe<se.length;oe++){var re=se[oe],le=re[0],me=re[1];ne.setAttribute(le,me)}},ie.createRect=function(ne,te,oe){var se=document.createElementNS("http://www.w3.org/2000/svg","rect");return se.setAttribute("width",ne.toString()),se.setAttribute("height",te.toString()),oe&&ie.setAttributes(se,oe),se},ie.createLine=function(ne,te,oe,se,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",se.toString()),re&&ie.setAttributes(le,re),le},ie.createPolygon=function(ne,te){var oe=document.createElementNS("http://www.w3.org/2000/svg","polygon");return oe.setAttribute("points",ne),te&&ie.setAttributes(oe,te),oe},ie.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&&ie.setAttributes(oe,te),oe},ie.createEllipse=function(ne,te,oe){var se=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return se.setAttribute("cx",(ne/2).toString()),se.setAttribute("cy",(te/2).toString()),se.setAttribute("rx",(ne/2).toString()),se.setAttribute("ry",(te/2).toString()),oe&&ie.setAttributes(se,oe),se},ie.createGroup=function(ne){var te=document.createElementNS("http://www.w3.org/2000/svg","g");return ne&&ie.setAttributes(te,ne),te},ie.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},ie.createMarker=function(ne,te,oe,se,re,le,me){var Dt=document.createElementNS("http://www.w3.org/2000/svg","marker");return ie.setAttributes(Dt,[["id",ne],["orient",te],["markerWidth",oe.toString()],["markerHeight",se.toString()],["refX",re.toString()],["refY",le.toString()]]),Dt.appendChild(me),Dt},ie.createText=function(ne){var te=document.createElementNS("http://www.w3.org/2000/svg","text");return te.setAttribute("x","0"),te.setAttribute("y","0"),ne&&ie.setAttributes(te,ne),te},ie.createTSpan=function(ne,te){var oe=document.createElementNS("http://www.w3.org/2000/svg","tspan");return oe.textContent=ne,te&&ie.setAttributes(oe,te),oe},ie.createImage=function(ne){var te=document.createElementNS("http://www.w3.org/2000/svg","image");return ne&&ie.setAttributes(te,ne),te},ie.createPoint=function(ne,te){var oe=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return oe.x=ne,oe.y=te,oe},ie.createPath=function(ne,te){var oe=document.createElementNS("http://www.w3.org/2000/svg","path");return oe.setAttribute("d",ne),te&&ie.setAttributes(oe,te),oe},ie}(),Ee=function(){function ie(){}return ie.addKey=function(ne){ie.key=ne},Object.defineProperty(ie,"isLicensed",{get:function(){return!!ie.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(ie.key)},enumerable:!1,configurable:!0}),ie}(),Qe=function(){function ie(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return ie.prototype.rasterize=function(ne,te,oe){var se=this;return new Promise(function(re){var le=oe!==void 0?oe:document.createElement("canvas");ne===null&&(se.markersOnly=!0,se.naturalSize=!1);var me=document.createElementNS("http://www.w3.org/2000/svg","svg");me.setAttribute("xmlns","http://www.w3.org/2000/svg"),me.setAttribute("width",te.width.baseVal.valueAsString),me.setAttribute("height",te.height.baseVal.valueAsString),me.setAttribute("viewBox","0 0 "+te.viewBox.baseVal.width.toString()+" "+te.viewBox.baseVal.height.toString()),me.innerHTML=te.innerHTML,se.naturalSize===!0?(me.width.baseVal.value=ne.naturalWidth,me.height.baseVal.value=ne.naturalHeight):se.width!==void 0&&se.height!==void 0&&(me.width.baseVal.value=se.width,me.height.baseVal.value=se.height),le.width=me.width.baseVal.value,le.height=me.height.baseVal.value;var Dt=me.outerHTML,Re=le.getContext("2d");se.markersOnly!==!0&&Re.drawImage(ne,0,0,le.width,le.height);var Fe=window.URL,qe=new Image(le.width,le.height);qe.setAttribute("crossOrigin","anonymous");var nt=new Blob([Dt],{type:"image/svg+xml"}),st=Fe.createObjectURL(nt);qe.onload=function(){Re.drawImage(qe,0,0),Fe.revokeObjectURL(st);var we=le.toDataURL(se.imageType,se.imageQuality);re(we)},qe.src=st})},ie}(),Ae=function(){},de=function(){function ie(ne){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+ne+"_"}return Object.defineProperty(ie.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(ie.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(ie.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),ie.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},ie.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)},ie.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 ve("fade_in",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
|
`)),this.addClass(new ve("fade_out",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
|
`))},ie.prototype.removeStyleSheet=function(){var ne;this.styleSheet&&(((ne=this.styleSheetRoot)!==null&&ne!==void 0?ne:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},ie}(),tt=function(ie,ne){this.selector=ie,this.style=ne},ve=function(ie,ne){this.localName=ie,this.style=ne},Lt=function(){function ie(ne,te,oe,se,re){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=ne,this.displayMode=te,this.markerItems=oe,this.uiStyleSettings=se,this.styles=re,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return ie.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 se=document.createElement("div");se.className=this.toolbarBlockStyleClass.name,se.style.whiteSpace="nowrap",se.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(se),this.addActionButton(se,'<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(se,'<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()},ie.prototype.addButtonClickListener=function(ne){this.buttonClickListeners.push(ne)},ie.prototype.removeButtonClickListener=function(ne){this.buttonClickListeners.indexOf(ne)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(ne),1)},ie.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},ie.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]))}},ie.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")},ie.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)})},ie.prototype.addActionButton=function(ne,te,oe){var se=this,re=document.createElement("div");switch(re.className=""+this.toolbarButtonStyleClass.name,re.innerHTML=te,re.setAttribute("data-action",oe),re.addEventListener("click",function(){se.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)},ie.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new ve("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 ve("toolbar_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new ve("toolbar-block",`
|
|
|
display: inline-block;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new ve("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 ve("toolbar-overflow-block_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`));var ne=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new ve("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 ve("toolbar_button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new ve("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+`
|
|
|
`))},ie.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"},ie.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])},ie.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)},ie.prototype.setActiveMarkerButton=function(ne){var te=this.markerButtons.find(function(oe){return oe.getAttribute("data-type-name")===ne});te&&this.setActiveButton(te)},ie.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")})},ie}(),at=function(){function ie(ne,te,oe,se){this.panels=[],this.panelButtons=[],this.markerjsContainer=ne,this.displayMode=te,this.uiStyleSettings=oe,this.styles=se,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return ie.prototype.addStyles=function(){var ne;this.toolboxStyleClass=this.styles.addClass(new ve("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 ve("toolbox_colors",`
|
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
|
`));var te=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new ve("toolbox-button-row",`
|
|
|
display: flex;
|
|
|
cursor: default;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new ve("toolbox-button-row_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new ve("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 ve("toolbox-panel-row_colors",`
|
|
|
background-color: `+((ne=this.uiStyleSettings.toolboxBackgroundColor)!==null&&ne!==void 0?ne:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new ve("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 ve("toolbox-button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new ve("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;
|
|
|
`))},ie.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)},ie.prototype.setPanelButtons=function(ne){var te,oe,se=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=se.uiStyleSettings;var me=document.createElement("div");me.className=se.toolboxButtonStyleClass.name+" "+((le=se.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&le!==void 0?le:se.toolboxButtonStyleColorsClass.name),me.innerHTML=re.icon,me.title=re.title,me.addEventListener("click",function(){se.panelButtonClick(re)}),se.panelButtons.push(me),se.buttonRow.appendChild(me)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},ie.prototype.panelButtonClick=function(ne){var te=this,oe=-1;if(ne!==this.activePanel){oe=this.panels.indexOf(ne),this.panelRow.innerHTML="";var se=ne.getUi();se.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(se),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 me,Dt;re.className=te.toolboxButtonStyleClass.name+" "+(le===oe?""+((me=te.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&me!==void 0?me:te.toolboxActiveButtonStyleColorsClass.name):""+((Dt=te.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Dt!==void 0?Dt:te.toolboxButtonStyleColorsClass.name))})},ie}(),Ve=function(ie,ne){this.title=ie,this.icon=ne},Ne=function(ie){function ne(te,oe,se,re){var le=ie.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=se,le.setCurrentColor=le.setCurrentColor.bind(le),le.getColorBox=le.getColorBox.bind(le),le}return Pe(ne,ie),ne.prototype.getUi=function(){var te=this,oe=document.createElement("div");return oe.style.overflow="hidden",oe.style.whiteSpace="nowrap",this.colors.forEach(function(se){var re=te.getColorBox(se);oe.appendChild(re),te.colorBoxes.push(re)}),oe},ne.prototype.getColorBox=function(te){var oe=this,se=this.uiStyleSettings.toolbarHeight/4,re=this.uiStyleSettings.toolbarHeight-se,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 me=document.createElement("div");return me.style.display="inline-block",me.style.width=re-2+"px",me.style.height=re-2+"px",me.style.backgroundColor=te,me.style.borderRadius=re/2+"px",te==="transparent"&&(me.style.fill=this.uiStyleSettings.toolboxAccentColor,me.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(me),le},ne.prototype.setCurrentColor=function(te,oe){var se=this;this.currentColor=te,this.colorBoxes.forEach(function(re){re.style.borderColor=re===oe?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(te)},ne}(Ve),Ze=function(){function ie(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(ie.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),ie.prototype.ownsTarget=function(ne){return!1},Object.defineProperty(ie.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),ie.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},ie.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},ie.prototype.pointerDown=function(ne,te){},ie.prototype.dblClick=function(ne,te){},ie.prototype.manipulate=function(ne){},ie.prototype.pointerUp=function(ne){this.stateChanged()},ie.prototype.dispose=function(){},ie.prototype.addMarkerVisualToContainer=function(ne){this.container.childNodes.length>0?this.container.insertBefore(ne,this.container.childNodes[0]):this.container.appendChild(ne)},ie.prototype.getState=function(){return{typeName:ie.typeName,state:this.state,notes:this.notes}},ie.prototype.restoreState=function(ne){this._state=ne.state,this.notes=ne.notes},ie.prototype.scale=function(ne,te){},ie.prototype.colorChanged=function(ne){this.onColorChanged&&this.onColorChanged(ne),this.stateChanged()},ie.prototype.fillColorChanged=function(ne){this.onFillColorChanged&&this.onFillColorChanged(ne),this.stateChanged()},ie.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)}},ie.typeName="MarkerBase",ie}(),pt=function(){function ie(){this.findGripByVisual=this.findGripByVisual.bind(this)}return ie.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},ie}(),mt=function(){function ie(){this.GRIP_SIZE=10,this.visual=ge.createGroup(),this.visual.appendChild(ge.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(ge.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return ie.prototype.ownsTarget=function(ne){return ne===this.visual||ne===this.visual.childNodes[0]||ne===this.visual.childNodes[1]},ie}(),Xt=function(){function ie(){}return ie.toITransformMatrix=function(ne){return{a:ne.a,b:ne.b,c:ne.c,d:ne.d,e:ne.e,f:ne.f}},ie.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},ie}(),He=function(ie){function ne(te,oe,se){var re=ie.call(this,te,oe,se)||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(ge.createTransform()),re.setupControlBox(),re}return Pe(ne,ie),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=ge.createTransform();this._visual.transform.baseVal.appendItem(oe)},enumerable:!1,configurable:!0}),ne.prototype.ownsTarget=function(te){return!!ie.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){ie.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 se=this.unrotatePoint(te);if(this.manipulationStartX=se.x,this.manipulationStartY=se.y,this.offsetX=se.x-this.left,this.offsetY=se.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;ie.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,se=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,se=this.manipulationStartWidth+this.manipulationStartLeft-oe;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:se=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}se>=0?(this.left=oe,this.width=se):(this.left=oe+se,this.width=-se),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(),se=ge.createPoint(te.x,te.y);return{x:(se=se.matrixTransform(oe)).x,y:se.y}},ne.prototype.unrotatePoint=function(te){if(this.rotationAngle===0)return te;var oe=this.container.getCTM();oe=oe.inverse();var se=ge.createPoint(te.x,te.y);return{x:(se=se.matrixTransform(oe)).x,y:se.y}},ne.prototype.select=function(){ie.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},ne.prototype.deselect=function(){ie.prototype.deselect.call(this),this.controlBox.style.display="none"},ne.prototype.setupControlBox=function(){this.controlBox=ge.createGroup();var te=ge.createTransform();te.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(te),this.container.appendChild(this.controlBox),this.controlRect=ge.createRect(this.width+this.CB_DISTANCE,this.height+this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"],["fill","transparent"],["pointer-events","none"]]),this.controlBox.appendChild(this.controlRect),this.globalSettings.disableRotation!==!0&&(this.rotatorGripLine=ge.createLine((this.width+2*this.CB_DISTANCE)/2,this.top-this.CB_DISTANCE,(this.width+2*this.CB_DISTANCE)/2,this.top-3*this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.appendChild(this.rotatorGripLine)),this.controlGrips=new pt,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 mt;return te.visual.transform.baseVal.appendItem(ge.createTransform()),this.controlBox.appendChild(te.visual),te},ne.prototype.positionGrips=function(){var te=this.controlGrips.topLeft.GRIP_SIZE,oe=-te/2,se=oe,re=(this.width+this.CB_DISTANCE)/2-te/2,le=(this.height+this.CB_DISTANCE)/2-te/2,me=this.height+this.CB_DISTANCE-te/2,Dt=this.width+this.CB_DISTANCE-te/2;this.positionGrip(this.controlGrips.topLeft.visual,oe,se),this.positionGrip(this.controlGrips.topCenter.visual,re,se),this.positionGrip(this.controlGrips.topRight.visual,Dt,se),this.positionGrip(this.controlGrips.centerLeft.visual,oe,le),this.positionGrip(this.controlGrips.centerRight.visual,Dt,le),this.positionGrip(this.controlGrips.bottomLeft.visual,oe,me),this.positionGrip(this.controlGrips.bottomCenter.visual,re,me),this.positionGrip(this.controlGrips.bottomRight.visual,Dt,me),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,re,se-3*this.CB_DISTANCE)},ne.prototype.positionGrip=function(te,oe,se){var re=te.transform.baseVal.getItem(0);re.setTranslate(oe,se),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:Xt.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:Xt.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},ie.prototype.getState.call(this))},ne.prototype.restoreState=function(te){ie.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(Xt.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,oe.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(Xt.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,oe.containerTransformMatrix))},ne.prototype.scale=function(te,oe){ie.prototype.scale.call(this,te,oe);var se=this.rotatePoint({x:this.left,y:this.top}),re=this.unrotatePoint({x:se.x*te,y:se.y*oe});this.left=re.x,this.top=re.y,this.width=this.width*te,this.height=this.height*oe,this.adjustControlBox()},ne}(Ze),Ke=function(ie){function ne(te,oe,se){var re=ie.call(this,te,oe,se)||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 Pe(ne,ie),ne.prototype.ownsTarget=function(te){return!(!ie.prototype.ownsTarget.call(this,te)&&te!==this.visual)},ne.prototype.createVisual=function(){this.visual=ge.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},ne.prototype.pointerDown=function(te,oe){ie.prototype.pointerDown.call(this,te,oe),this.state==="new"&&(this.createVisual(),this.moveVisual(te),this._state="creating")},ne.prototype.manipulate=function(te){ie.prototype.manipulate.call(this,te)},ne.prototype.resize=function(te){ie.prototype.resize.call(this,te),this.setSize()},ne.prototype.setSize=function(){ie.prototype.setSize.call(this),ge.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},ne.prototype.pointerUp=function(te){ie.prototype.pointerUp.call(this,te),this.setSize()},ne.prototype.setStrokeColor=function(te){this.strokeColor=te,this.visual&&ge.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(te),this.stateChanged()},ne.prototype.setFillColor=function(te){this.fillColor=te,this.visual&&ge.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},ne.prototype.setStrokeWidth=function(te){this.strokeWidth=te,this.visual&&ge.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ne.prototype.setStrokeDasharray=function(te){this.strokeDasharray=te,this.visual&&ge.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},ie.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(),ie.prototype.restoreState.call(this,te),this.setSize()},ne.prototype.scale=function(te,oe){ie.prototype.scale.call(this,te,oe),this.setSize()},ne.title="Rectangle marker",ne}(He),ut=function(ie){function ne(te,oe,se,re){var le=ie.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=se,le.setCurrentWidth=le.setCurrentWidth.bind(le),le}return Pe(ne,ie),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(se){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=se===te.currentWidth?te.uiStyleSettings.toolboxAccentColor:"transparent",re.addEventListener("click",function(){te.setCurrentWidth(se,re)}),oe.appendChild(re);var le=document.createElement("div");le.innerText=se.toString(),le.style.marginRight="5px",re.appendChild(le);var me=document.createElement("div");me.style.minHeight="20px",me.style.flexGrow="2",me.style.display="flex",me.style.alignItems="center";var Dt=document.createElement("hr");Dt.style.minWidth="20px",Dt.style.border="0px",Dt.style.borderTop=se+"px solid "+te.uiStyleSettings.toolboxColor,Dt.style.flexGrow="2",me.appendChild(Dt),re.appendChild(me),te.widthBoxes.push(re)}),oe},ne.prototype.setCurrentWidth=function(te,oe){var se=this;this.currentWidth=te,this.widthBoxes.forEach(function(re){re.style.borderColor=re===oe?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},ne}(Ve),ft=function(ie){function ne(te,oe,se,re){var le=ie.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=se,le.setCurrentStyle=le.setCurrentStyle.bind(le),le}return Pe(ne,ie),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(se){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=se===te.currentStyle?te.uiStyleSettings.toolboxAccentColor:"transparent",re.addEventListener("click",function(){te.setCurrentStyle(se,re)}),oe.appendChild(re);var le=document.createElement("div");le.style.minHeight="20px",le.style.flexGrow="2",le.style.overflow="hidden";var me=`<svg width="100" height="20">
|
|
|
<line x1="0" y1="10" x2="100" y2="10" stroke="`+te.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(se!==""?'stroke-dasharray="'+se+'"':"")+` />
|
|
|
</svg>`;le.innerHTML=me,re.appendChild(le),te.styleBoxes.push(re)}),oe},ne.prototype.setCurrentStyle=function(te,oe){var se=this;this.currentStyle=te,this.styleBoxes.forEach(function(re){re.style.borderColor=re===oe?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},ne}(Ve),jt=function(ie){function ne(te,oe,se){var re=ie.call(this,te,oe,se)||this;return re.strokeColor=se.defaultColor,re.strokeWidth=se.defaultStrokeWidth,re.strokeDasharray=se.defaultStrokeDasharray,re.strokePanel=new Ne("Line color",se.defaultColorSet,se.defaultColor),re.strokePanel.onColorChanged=re.setStrokeColor,re.strokeWidthPanel=new ut("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),re.strokeWidthPanel.onWidthChanged=re.setStrokeWidth,re.strokeStylePanel=new ft("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),re.strokeStylePanel.onStyleChanged=re.setStrokeDasharray,re}return Pe(ne,ie),Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ne.prototype.getState=function(){var te=ie.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}(Ke),Ot=function(){this.defaultColorSet=["#EF4444","#10B981","#2563EB","#FFFF00","#7C3AED","#F472B6","#000000","#FFFFFF"],this.defaultColor=this.defaultColorSet[0],this.defaultFillColor=this.defaultColorSet[0],this.defaultStrokeColor=this.defaultColorSet[7],this.defaultHighlightColor=this.defaultColorSet[3],this.defaultStrokeWidth=3,this.defaultStrokeDasharray="",this.defaultHighlightOpacity=.5,this.defaultFontFamily="Helvetica, Arial, sans-serif",this.defaultStrokeWidths=[1,2,3,5,10],this.defaultStrokeDasharrays=["","3","12 3","9 6 3 6"],this.defaultOpacitySteps=[.1,.25,.5,.75,1],this.displayMode="inline",this.defaultFontFamilies=['Times, "Times New Roman", serif',"Helvetica, Arial, sans-serif",'Courier, "Courier New", monospace',"cursive","fantasy"],this.popupMargin=30,this.newFreehandMarkerOnPointerUp=!1,this.defaultColorsFollowCurrentColors=!1,this.freehandPixelRatio=1,this.disableRotation=!1,this.defaultCaptionFontSize="1rem",this.defaultCaptionText="Text"},yt=function(ie){function ne(te,oe,se){var re=ie.call(this,te,oe,se)||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 Pe(ne,ie),ne.prototype.ownsTarget=function(te){return!!ie.prototype.ownsTarget.call(this,te)||!(!this.grip1.ownsTarget(te)&&!this.grip2.ownsTarget(te))},ne.prototype.pointerDown=function(te,oe){ie.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;ie.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(){ie.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},ne.prototype.deselect=function(){ie.prototype.deselect.call(this),this.controlBox.style.display="none"},ne.prototype.setupControlBox=function(){this.controlBox=ge.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 mt;return te.visual.transform.baseVal.appendItem(ge.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,se){var re=te.transform.baseVal.getItem(0);re.setTranslate(oe,se),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},ie.prototype.getState.call(this))},ne.prototype.restoreState=function(te){ie.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){ie.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}(Ze),Et=function(ie){function ne(te,oe,se){var re=ie.call(this,te,oe,se)||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=se.defaultColor,re.strokeWidth=se.defaultStrokeWidth,re.strokeDasharray=se.defaultStrokeDasharray,re.strokePanel=new Ne("Line color",se.defaultColorSet,se.defaultColor),re.strokePanel.onColorChanged=re.setStrokeColor,re.strokeWidthPanel=new ut("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),re.strokeWidthPanel.onWidthChanged=re.setStrokeWidth,re.strokeStylePanel=new ft("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),re.strokeStylePanel.onStyleChanged=re.setStrokeDasharray,re}return Pe(ne,ie),ne.prototype.ownsTarget=function(te){return!(!ie.prototype.ownsTarget.call(this,te)&&te!==this.visual&&te!==this.selectorLine&&te!==this.visibleLine)},ne.prototype.createVisual=function(){this.visual=ge.createGroup(),this.selectorLine=ge.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=ge.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},ne.prototype.pointerDown=function(te,oe){ie.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()),ge.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),ge.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),ge.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},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},ie.prototype.getState.call(this));return te.typeName=ne.typeName,te},ne.prototype.restoreState=function(te){ie.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}(yt),pe=function(ie){function ne(te,oe,se,re){var le=ie.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=se,le.setCurrentFont=le.setCurrentFont.bind(le),le}return Pe(ne,ie),ne.prototype.getUi=function(){var te=this,oe=document.createElement("div");return oe.style.overflow="hidden",oe.style.flexGrow="2",this.fonts.forEach(function(se){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=se===te.currentFont?te.uiStyleSettings.toolboxAccentColor:"transparent",re.addEventListener("click",function(){te.setCurrentFont(se,re)}),oe.appendChild(re);var le=document.createElement("div");le.style.display="flex",le.style.minHeight="20px",le.style.flexGrow="2",le.style.fontFamily=se,le.style.overflow="hidden";var me=document.createElement("div");me.style.whiteSpace="nowrap",me.style.overflow="hidden",me.style.textOverflow="ellipsis",me.innerHTML="The quick brown fox jumps over the lazy dog",le.appendChild(me),re.appendChild(le),te.fontBoxes.push(re)}),oe},ne.prototype.setCurrentFont=function(te,oe){var se=this;this.currentFont=te,this.fontBoxes.forEach(function(re){re.style.borderColor=re===oe?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},ne}(Ve),Je=function(ie){function ne(te,oe,se){var re=ie.call(this,te,oe,se)||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=se.defaultColor,re.fontFamily=se.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 Ne("Color",se.defaultColorSet,se.defaultColor),re.colorPanel.onColorChanged=re.setColor,re.fontFamilyPanel=new pe("Font",se.defaultFontFamilies,se.defaultFontFamily),re.fontFamilyPanel.onFontChanged=re.setFont,re}return Pe(ne,ie),ne.prototype.ownsTarget=function(te){if(ie.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(se){se===te&&(oe=!0)}),oe},ne.prototype.createVisual=function(){this.visual=ge.createGroup(),this.bgRectangle=ge.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=ge.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(ge.createTransform()),this.textElement.transform.baseVal.appendItem(ge.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},ne.prototype.pointerDown=function(te,oe){ie.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(ge.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 se=(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(se,re)}return oe},ne.prototype.getTextPosition=function(te){var oe=this.textElement.getBBox(),se=0,re=0;return oe.width>0&&oe.height>0&&(se=(this.width-oe.width*te)/2,re=this.height/2-oe.height*te/2),{x:se,y:re}},ne.prototype.sizeText=function(){var te=this.textElement.getBBox(),oe=this.getTextScale(),se=this.getTextPosition(oe);se.y-=te.y*oe,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+se.x+"px, "+se.y+"px) scale("+oe+", "+oe+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(se.x,se.y),this.textElement.transform.baseVal.getItem(1).setScale(oe,oe))},ne.prototype.manipulate=function(te){ie.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){ie.prototype.resize.call(this,te),this.isMoved=!0,this.setSize(),this.sizeText()},ne.prototype.setSize=function(){ie.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(ge.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),ge.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},ne.prototype.pointerUp=function(te){var oe=this.state;oe==="creating"&&(this._suppressMarkerCreateEvent=!0),ie.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 se=oe.clipboardData.getData("text"),re=window.getSelection();if(!re.rangeCount)return!1;re.deleteFromDocument(),re.getRangeAt(0).insertNode(document.createTextNode(se)),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}),se=this.textElement.getBBox(),re={x:se.width*te,y:se.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(){ie.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},ne.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),ie.prototype.deselect.call(this)},ne.prototype.dblClick=function(te,oe){ie.prototype.dblClick.call(this,te,oe),this.showTextEditor()},ne.prototype.setColor=function(te){this.textElement&&ge.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&&ge.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},ie.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(),ie.prototype.restoreState.call(this,te),this.setSize()},ne.prototype.scale=function(te,oe){ie.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}(He),Xe=function(ie){function ne(te,oe,se){var re=ie.call(this,te,oe,se)||this;return re.color="transparent",re.lineWidth=3,re.drawing=!1,re.pixelRatio=1,re.color=se.defaultColor,re.lineWidth=se.defaultStrokeWidth,re.pixelRatio=se.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 Ne("Color",se.defaultColorSet,se.defaultColor),re.colorPanel.onColorChanged=re.setColor,re.lineWidthPanel=new ut("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),re.lineWidthPanel.onWidthChanged=re.setLineWidth,re}return Pe(ne,ie),ne.prototype.ownsTarget=function(te){return!(!ie.prototype.ownsTarget.call(this,te)&&te!==this.visual&&te!==this.drawingImage)},ne.prototype.createVisual=function(){this.visual=ge.createGroup(),this.drawingImage=ge.createImage(),this.visual.appendChild(this.drawingImage);var te=ge.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):ie.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()):ie.prototype.manipulate.call(this,te)},ne.prototype.resize=function(te){ie.prototype.resize.call(this,te),ge.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),ge.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()):ie.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(),ie.prototype.select.call(this)},ne.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),ie.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],se=oe[0],re=oe[1],le=oe[2],me=oe[3],Dt=!1,Re=0;Re<this.canvasElement.height;Re++)for(var Fe=0;Fe<this.canvasElement.width;Fe++)te.data[Re*this.canvasElement.width*4+4*Fe+3]>0&&(Dt=!0,Re<re&&(re=Re),Fe<se&&(se=Fe),Re>me&&(me=Re),Fe>le&&(le=Fe));if(Dt){this.left=se/this.pixelRatio,this.top=re/this.pixelRatio,this.width=(le-se)/this.pixelRatio,this.height=(me-re)/this.pixelRatio;var qe=document.createElement("canvas");qe.width=le-se,qe.height=me-re,qe.getContext("2d").putImageData(this.canvasContext.getImageData(se,re,le-se,me-re),0,0),this.drawingImgUrl=qe.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},ne.prototype.setDrawingImage=function(){ge.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),ge.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},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},ie.prototype.getState.call(this));return te.typeName=ne.typeName,te},ne.prototype.restoreState=function(te){this.createVisual(),ie.prototype.restoreState.call(this,te),this.drawingImgUrl=te.drawingImgUrl,this.setDrawingImage()},ne.prototype.scale=function(te,oe){ie.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}(He),ue=function(ie){function ne(te,oe,se){var re=ie.call(this,te,se||'<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 Pe(ne,ie),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 se=function(me){var Dt="both";switch(me){case 0:Dt="both";break;case 1:Dt="start";break;case 2:Dt="end";break;case 3:Dt="none"}var Re=document.createElement("div");if(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=Dt===re.currentType?re.uiStyleSettings.toolboxAccentColor:"transparent",Re.addEventListener("click",function(){te.setCurrentType(Dt,Re)}),oe.appendChild(Re),Dt==="both"||Dt==="start"){var Fe=document.createElement("div");Fe.style.display="flex",Fe.style.alignItems="center",Fe.style.minHeight="20px",Fe.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>`,Fe.style.marginLeft="5px",Re.appendChild(Fe)}var qe=document.createElement("div");qe.style.display="flex",qe.style.alignItems="center",qe.style.minHeight="20px",qe.style.flexGrow="2";var nt=document.createElement("hr");if(nt.style.minWidth="20px",nt.style.border="0px",nt.style.borderTop="3px solid "+(re.uiStyleSettings!==void 0?re.uiStyleSettings.toolboxColor:"#eeeeee"),nt.style.flexGrow="2",qe.appendChild(nt),Re.appendChild(qe),Dt==="both"||Dt==="end"){var st=document.createElement("div");st.style.display="flex",st.style.alignItems="center",st.style.minHeight="20px",st.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>`,st.style.marginRight="5px",Re.appendChild(st)}re.typeBoxes.push(Re)},re=this,le=0;le<4;le++)se(le);return oe},ne.prototype.setCurrentType=function(te,oe){var se=this;this.currentType=te,this.typeBoxes.forEach(function(re){re.style.borderColor=re===oe?se.uiStyleSettings!==void 0?se.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},ne}(Ve),Nt=function(ie){function ne(te,oe,se){var re=ie.call(this,te,oe,se)||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 ue("Arrow type","end"),re.arrowTypePanel.onArrowTypeChanged=re.setArrowType,re}return Pe(ne,ie),ne.prototype.ownsTarget=function(te){return!(!ie.prototype.ownsTarget.call(this,te)&&te!==this.arrow1&&te!==this.arrow2)},ne.prototype.getArrowPoints=function(te,oe){var se=this.arrowBaseWidth+2*this.strokeWidth,re=this.arrowBaseHeight+2*this.strokeWidth;return te-se/2+","+(oe+re/2)+" "+te+","+(oe-re/2)+" "+(te+se/2)+","+(oe+re/2)},ne.prototype.createTips=function(){this.arrow1=ge.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(ge.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=ge.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(ge.createTransform()),this.visual.appendChild(this.arrow2)},ne.prototype.pointerDown=function(te,oe){ie.prototype.pointerDown.call(this,te,oe),this.state==="creating"&&this.createTips()},ne.prototype.adjustVisual=function(){if(ie.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2){this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",ge.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),ge.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var 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 se=this.arrow2.transform.baseVal.getItem(0);se.setRotate(te+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(se,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},ie.prototype.getState.call(this));return te.typeName=ne.typeName,te},ne.prototype.restoreState=function(te){ie.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}(Et),et=function(ie){function ne(te,oe,se){var re=ie.call(this,te,oe,se)||this;return re.fillColor=se.defaultFillColor,re.strokeWidth=0,re.fillPanel=new Ne("Color",se.defaultColorSet,se.defaultFillColor),re.fillPanel.onColorChanged=re.setFillColor,re}return Pe(ne,ie),Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),ne.prototype.getState=function(){var te=ie.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}(Ke),wt=function(ie){function ne(te,oe,se,re){var le=ie.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=se,le.setCurrentOpacity=le.setCurrentOpacity.bind(le),le}return Pe(ne,ie),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(se){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=se===te.currentOpacity?te.uiStyleSettings.toolboxAccentColor:"transparent",re.addEventListener("click",function(){te.setCurrentOpacity(se,re)}),oe.appendChild(re);var le=document.createElement("div");le.innerText=100*se+"%",re.appendChild(le),te.opacityBoxes.push(re)}),oe},ne.prototype.setCurrentOpacity=function(te,oe){var se=this;this.currentOpacity=te,this.opacityBoxes.forEach(function(re){re.style.borderColor=re===oe?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},ne}(Ve),ln=function(ie){function ne(te,oe,se){var re=ie.call(this,te,oe,se)||this;return re.setOpacity=re.setOpacity.bind(re),re.fillColor=se.defaultHighlightColor,re.strokeWidth=0,re.opacity=se.defaultHighlightOpacity,re.fillPanel=new Ne("Color",se.defaultColorSet,re.fillColor),re.fillPanel.onColorChanged=re.setFillColor,re.opacityPanel=new wt("Opacity",se.defaultOpacitySteps,re.opacity),re.opacityPanel.onOpacityChanged=re.setOpacity,re}return Pe(ne,ie),ne.prototype.setOpacity=function(te){this.opacity=te,this.visual&&ge.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=ie.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}(et),ke='<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>',he='<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>',Ct=function(ie){function ne(te,oe,se){var re=ie.call(this,te,oe,se)||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=se.defaultStrokeColor,re.bgColor=se.defaultFillColor,re.fontFamily=se.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 Ne("Text color",se.defaultColorSet,re.color,ke),re.colorPanel.onColorChanged=re.setColor,re.bgColorPanel=new Ne("Fill color",se.defaultColorSet,re.bgColor,he),re.bgColorPanel.onColorChanged=re.setBgColor,re.fontFamilyPanel=new pe("Font",se.defaultFontFamilies,se.defaultFontFamily),re.fontFamilyPanel.onFontChanged=re.setFont,re.tipGrip=new mt,re.tipGrip.visual.transform.baseVal.appendItem(ge.createTransform()),re.controlBox.appendChild(re.tipGrip.visual),re}return Pe(ne,ie),ne.prototype.ownsTarget=function(te){return ie.prototype.ownsTarget.call(this,te)||this.tipGrip.ownsTarget(te)||this.tip===te},ne.prototype.createTip=function(){ge.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=ge.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},ne.prototype.pointerDown=function(te,oe){this.state==="new"&&ie.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):ie.prototype.pointerDown.call(this,te,oe)},ne.prototype.pointerUp=function(te){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,ie.prototype.pointerUp.call(this,te);else{var oe=this.state==="creating";ie.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 ie.prototype.manipulate.call(this,te)},ne.prototype.setBgColor=function(te){this.bgRectangle&&this.tip&&(ge.setAttributes(this.bgRectangle,[["fill",te]]),ge.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),se=this.height/5;te&&(this.tipPosition={x:oe+se/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))?(se=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:oe,y:0},this.tipBase2Position={x:oe+se,y:0}):(this.tipBase1Position={x:0,y:oe},this.tipBase2Position={x:0,y:oe+se}):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))?(se=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-oe-se,y:0},this.tipBase2Position={x:this.width-oe,y:0}):(this.tipBase1Position={x:this.width,y:oe},this.tipBase2Position={x:this.width,y:oe+se}):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))?(se=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-oe-se,y:this.height},this.tipBase2Position={x:this.width-oe,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-oe-se},this.tipBase2Position={x:this.width,y:this.height-oe}):re<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(se=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:oe,y:this.height},this.tipBase2Position={x:oe+se,y:this.height}):(this.tipBase1Position={x:0,y:this.height-oe},this.tipBase2Position={x:0,y:this.height-oe-se})},ne.prototype.resize=function(te){ie.prototype.resize.call(this,te),this.positionTip()},ne.prototype.positionTip=function(){ge.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(),ie.prototype.select.call(this)},ne.prototype.getState=function(){var te=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},ie.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,ie.prototype.restoreState.call(this,te),this.createTip(),this.setTipPoints()},ne.prototype.scale=function(te,oe){ie.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}(Je),Pt=function(ie){function ne(te,oe,se){var re=ie.call(this,te,oe,se)||this;return re.fillColor="transparent",re.strokeColor="transparent",re.strokeWidth=0,re.strokeDasharray="",re.opacity=1,re.strokeColor=se.defaultColor,re.strokeWidth=se.defaultStrokeWidth,re.strokeDasharray=se.defaultStrokeDasharray,re.fillColor=se.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 Ne("Line color",xe(se.defaultColorSet,["transparent"]),se.defaultColor),re.strokePanel.onColorChanged=re.setStrokeColor,re.fillPanel=new Ne("Fill color",xe(se.defaultColorSet,["transparent"]),re.fillColor,he),re.fillPanel.onColorChanged=re.setFillColor,re.strokeWidthPanel=new ut("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),re.strokeWidthPanel.onWidthChanged=re.setStrokeWidth,re.strokeStylePanel=new ft("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),re.strokeStylePanel.onStyleChanged=re.setStrokeDasharray,re.opacityPanel=new wt("Opacity",se.defaultOpacitySteps,re.opacity),re.opacityPanel.onOpacityChanged=re.setOpacity,re}return Pe(ne,ie),ne.prototype.ownsTarget=function(te){return!(!ie.prototype.ownsTarget.call(this,te)&&te!==this.visual)},ne.prototype.createVisual=function(){this.visual=ge.createEllipse(this.width/2,this.height/2,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},ne.prototype.pointerDown=function(te,oe){ie.prototype.pointerDown.call(this,te,oe),this.state==="new"&&(this.createVisual(),this.moveVisual(te),this._state="creating")},ne.prototype.manipulate=function(te){ie.prototype.manipulate.call(this,te)},ne.prototype.resize=function(te){ie.prototype.resize.call(this,te),this.setSize()},ne.prototype.setSize=function(){ie.prototype.setSize.call(this),ge.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},ne.prototype.pointerUp=function(te){ie.prototype.pointerUp.call(this,te),this.setSize()},ne.prototype.setStrokeColor=function(te){this.strokeColor=te,this.visual&&ge.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(te),this.stateChanged()},ne.prototype.setFillColor=function(te){this.fillColor=te,this.visual&&ge.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(te),this.stateChanged()},ne.prototype.setStrokeWidth=function(te){this.strokeWidth=te,this.visual&&ge.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ne.prototype.setStrokeDasharray=function(te){this.strokeDasharray=te,this.visual&&ge.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},ne.prototype.setOpacity=function(te){this.opacity=te,this.visual&&ge.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},ie.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(),ie.prototype.restoreState.call(this,te),this.setSize()},ne.prototype.scale=function(te,oe){ie.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}(He),Kt=function(ie){function ne(te,oe,se){return ie.call(this,te,oe,se)||this}return Pe(ne,ie),Object.defineProperty(ne.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),ne.prototype.ownsTarget=function(te){return!(!ie.prototype.ownsTarget.call(this,te)&&te!==this.tip1&&te!==this.tip2)},ne.prototype.createTips=function(){this.tip1=ge.createLine(this.x1-this.tipLength/2,this.y1,this.x1+this.tipLength/2,this.y1,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip1.transform.baseVal.appendItem(ge.createTransform()),this.visual.appendChild(this.tip1),this.tip2=ge.createLine(this.x2-this.tipLength/2,this.y2,this.x2+this.tipLength/2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip2.transform.baseVal.appendItem(ge.createTransform()),this.visual.appendChild(this.tip2)},ne.prototype.pointerDown=function(te,oe){ie.prototype.pointerDown.call(this,te,oe),this.state==="creating"&&this.createTips()},ne.prototype.adjustVisual=function(){if(ie.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(ge.setAttributes(this.tip1,[["x1",(this.x1-this.tipLength/2).toString()],["y1",this.y1.toString()],["x2",(this.x1+this.tipLength/2).toString()],["y2",this.y1.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),ge.setAttributes(this.tip2,[["x1",(this.x2-this.tipLength/2).toString()],["y1",this.y2.toString()],["x2",(this.x2+this.tipLength/2).toString()],["y2",this.y2.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),Math.abs(this.x1-this.x2)>.1)){var 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 se=this.tip2.transform.baseVal.getItem(0);se.setRotate(te+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(se,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=ie.prototype.getState.call(this);return te.typeName=ne.typeName,te},ne.prototype.restoreState=function(te){ie.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}(Et),Ce=function(ie){function ne(te,oe,se){var re=ie.call(this,te,oe,se)||this;return re.strokePanel.colors=se.defaultColorSet,re.fillColor="transparent",re}return Pe(ne,ie),Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ne.prototype.getState=function(){var te=ie.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}(Pt),ot=function(){function ie(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(ie.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),ie.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))},ie.prototype.replaceLastUndoStep=function(ne){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=ne)},ie.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},ie.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}},ie.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},ie}(),lt=function(ie){function ne(te,oe,se){var re=ie.call(this,te,oe,se)||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=se.defaultColor,re.strokeWidth=se.defaultStrokeWidth,re.strokeDasharray=se.defaultStrokeDasharray,re.strokePanel=new Ne("Line color",se.defaultColorSet,se.defaultColor),re.strokePanel.onColorChanged=re.setStrokeColor,re.strokeWidthPanel=new ut("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),re.strokeWidthPanel.onWidthChanged=re.setStrokeWidth,re.strokeStylePanel=new ft("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),re.strokeStylePanel.onStyleChanged=re.setStrokeDasharray,re}return Pe(ne,ie),ne.prototype.ownsTarget=function(te){return!(!ie.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=ge.createGroup(),this.selectorCurve=ge.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=ge.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},ne.prototype.pointerDown=function(te,oe){ie.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()),ge.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),ge.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),ge.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},ne.prototype.setupControlBox=function(){ie.prototype.setupControlBox.call(this),this.curveControlLine1=ge.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=ge.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},ne.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,ie.prototype.addControlGrips.call(this)},ne.prototype.positionGrips=function(){ie.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),ie.prototype.manipulate.call(this,te)},ne.prototype.resize=function(te){this.activeGrip===this.curveGrip&&(this.curveX=te.x,this.curveY=te.y),ie.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,ie.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},ie.prototype.getState.call(this));return te.typeName=ne.typeName,te},ne.prototype.restoreState=function(te){ie.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}(yt),Wt=function(ie){function ne(te,oe,se){var re=ie.call(this,te,oe,se)||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=se.defaultColor,re.strokeWidth=se.defaultStrokeWidth,re.strokeDasharray=se.defaultStrokeDasharray,re.fillColor=se.defaultFillColor,re.textColor=se.defaultStrokeColor,re.fontFamily=se.defaultFontFamily,re.fontSize=se.defaultCaptionFontSize,re.captionText=se.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 Ne("Line color",xe(se.defaultColorSet,["transparent"]),re.strokeColor),re.strokePanel.onColorChanged=re.setStrokeColor,re.fillPanel=new Ne("Fill color",xe(se.defaultColorSet,["transparent"]),re.fillColor,he),re.fillPanel.onColorChanged=re.setFillColor,re.strokeWidthPanel=new ut("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),re.strokeWidthPanel.onWidthChanged=re.setStrokeWidth,re.strokeStylePanel=new ft("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),re.strokeStylePanel.onStyleChanged=re.setStrokeDasharray,re.fontFamilyPanel=new pe("Font",se.defaultFontFamilies,se.defaultFontFamily),re.fontFamilyPanel.onFontChanged=re.setFont,re.textColorPanel=new Ne("Text color",se.defaultColorSet,re.textColor,ke),re.textColorPanel.onColorChanged=re.setTextColor,re}return Pe(ne,ie),ne.prototype.ownsTarget=function(te){return!(!ie.prototype.ownsTarget.call(this,te)&&te!==this.visual&&te!==this.frame&&te!==this.captionBg&&te!==this.captionElement)},ne.prototype.createVisual=function(){this.visual=ge.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=ge.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=ge.createText([["fill",this.textColor],["font-family",this.fontFamily]]),this.captionElement.style.fontSize=this.fontSize,this.captionElement.style.textAnchor="start",this.captionElement.style.dominantBaseline="text-before-edge",this.captionElement.textContent=this.captionText,this.visual.appendChild(this.captionElement),this.frame=ge.createRect(this.width,this.height,[["fill","transparent"],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray]]),this.visual.appendChild(this.frame),this.sizeCaption()},ne.prototype.setCaptionText=function(te){this.captionText=te,this.captionElement.textContent=this.captionText,this.sizeCaption()},ne.prototype.pointerDown=function(te,oe){ie.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){ie.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){ie.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),ge.setAttributes(this.captionBg,[["width",this.captionBoxWidth.toString()],["height",this.captionBoxHeight.toString()],["clip-path","path('M0,0 H"+this.width+" V"+this.height+" H"+-this.width+" Z')"]]),ge.setAttributes(this.captionElement,[["x",this.PADDING.toString()],["y",this.PADDING.toString()],["clip-path","path('M0,0 H"+(this.width-this.PADDING)+" V"+this.height+" H"+(-this.width-this.PADDING)+" Z')"]])},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&&ge.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&&ge.setAttributes(this.captionElement,[["fill",te]]),this.textColor=te,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},ne.prototype.setSize=function(){ie.prototype.setSize.call(this),ge.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},ne.prototype.pointerUp=function(te){ie.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){ie.prototype.dblClick.call(this,te,oe),this.showTextEditor()},ne.prototype.setStrokeColor=function(te){this.strokeColor=te,this.frame&&ge.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(te),this.stateChanged()},ne.prototype.setFillColor=function(te){this.fillColor=te,this.captionBg&&ge.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(te),this.stateChanged()},ne.prototype.setStrokeWidth=function(te){this.strokeWidth=te,this.frame&&ge.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ne.prototype.setStrokeDasharray=function(te){this.strokeDasharray=te,this.frame&&ge.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},ie.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(),ie.prototype.restoreState.call(this,te),this.setSize()},ne.prototype.scale=function(te,oe){ie.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}(He),ct=function(){function ie(ne,te){te===void 0&&(te=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=ne,this.cancelable=te}return Object.defineProperty(ie.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),ie.prototype.preventDefault=function(){this._defaultPrevented=!0},ie}(),$t=function(ie){function ne(te,oe,se){var re=ie.call(this,te,!1)||this;return re.dataUrl=oe,re.state=se,re}return Pe(ne,ie),ne}(ct),vt=function(ie){function ne(te,oe,se){se===void 0&&(se=!1);var re=ie.call(this,te,se)||this;return re.marker=oe,re}return Pe(ne,ie),ne}(ct),gn=function(){function ie(){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 ie.prototype.addEventListener=function(ne,te){this[ne].push(te)},ie.prototype.removeEventListener=function(ne,te){var oe=this[ne].indexOf(te);oe>-1&&this[ne].splice(oe,1)},ie}(),Tt=function(){function ie(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 Ot,this._isOpen=!1,this.undoRedoManager=new ot,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.renderMarkersOnly=!1,this.zoomSteps=[1,1.5,2,4],this._zoomLevel=1,this._isResizing=!1,this.prevPanPoint={x:0,y:0},this.eventListeners=new gn,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=ie.instanceCounter++,this.styles=new de(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(ie.prototype,"ALL_MARKER_TYPES",{get:function(){return[jt,Xe,Nt,Je,Ce,Pt,ln,Ct,Kt,et,Et,lt,Wt]},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[jt,Xe,Nt,Je,Pt,ln,Ct]},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"BASIC_MARKER_TYPES",{get:function(){return[jt,Xe,Nt,Je,ln]},enumerable:!1,configurable:!0}),Object.defineProperty(ie.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 se=te.ALL_MARKER_TYPES.find(function(re){return re.typeName===oe});se!==void 0&&te._availableMarkerTypes.push(se)}else te._availableMarkerTypes.push(oe)})},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ie.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(ie.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),ie.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),Ee.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},ie.prototype.show=function(){var ne=this;this.styles.styleSheetRoot===void 0&&Ae.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Ae.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(te){return te(new ct(ne))})},ie.prototype.render=function(){return fe(this,void 0,void 0,function(){var ne;return rt(this,function(te){switch(te.label){case 0:return this.setCurrentMarker(),(ne=new Qe).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()]}})})},ie.prototype.close=function(ne){var te=this;if(ne===void 0&&(ne=!1),this.isOpen){var oe=!1;ne||this.eventListeners.beforeclose.forEach(function(se){var re=new ct(te,!0);se(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(se){return se(new ct(te))}),this.detachEvents(),this._isOpen=!1)}},ie.prototype.addMarkersToToolbar=function(){for(var ne,te=[],oe=0;oe<arguments.length;oe++)te[oe]=arguments[oe];(ne=this._availableMarkerTypes).push.apply(ne,te)},ie.prototype.addRenderEventListener=function(ne){this.addEventListener("render",function(te){ne(te.dataUrl,te.state)})},ie.prototype.removeRenderEventListener=function(ne){},ie.prototype.addCloseEventListener=function(ne){this.addEventListener("close",function(){ne()})},ie.prototype.removeCloseEventListener=function(ne){},ie.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))},ie.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)},ie.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},ie.prototype.resize=function(ne,te){this._isResizing=!0;var oe=ne/this.imageWidth,se=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,se),this._isResizing=!1},ie.prototype.scaleMarkers=function(ne,te){var oe,se=this;this._currentMarker&&this._currentMarker instanceof Je?this._currentMarker.scale(ne,te):(oe=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(re){re!==se._currentMarker&&re.scale(ne,te)}),oe!==void 0&&this.setCurrentMarker(oe)},ie.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"},ie.prototype.setTopLeft=function(){var ne=this.editingTarget.getBoundingClientRect(),te=this.editorCanvas.getBoundingClientRect();this.left=ne.left-te.left,this.top=ne.top-te.top},ie.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)},ie.prototype.addDefs=function(){for(var ne,te=[],oe=0;oe<arguments.length;oe++)te[oe]=arguments[oe];this.defs=ge.createDefs(),this.addDefsToImage(),(ne=this.defs).append.apply(ne,te)},ie.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},ie.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)},ie.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},ie.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},ie.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)},ie.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},ie.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)},ie.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()},ie.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")},ie.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"},ie.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},ie.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 Lt(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 at(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},ie.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},ie.prototype.removeMarker=function(ne){this.markerImage.removeChild(ne.container),this.markers.indexOf(ne)>-1&&this.markers.splice(this.markers.indexOf(ne),1),ne.dispose()},ie.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())},ie.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()}},ie.prototype.deleteSelectedMarker=function(){var ne=this;if(this._currentMarker!==void 0){var te=!1;if(this.eventListeners.markerbeforedelete.forEach(function(se){var re=new vt(ne,ne._currentMarker,!0);se(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(se){return se(new vt(ne,oe))})}}},ie.prototype.clear=function(){var ne=this,te=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(le){var me=new vt(ne,void 0,!0);le(me),me.defaultPrevented&&(te=!0)}),!te)){this.setCurrentMarker();for(var oe=function(le){var me=se.markers[le];se.setCurrentMarker(se.markers[le]),se._currentMarker.dispose(),se.markerImage.removeChild(se._currentMarker.container),se.markers.splice(se.markers.indexOf(se._currentMarker),1),se.eventListeners.markerdelete.forEach(function(Dt){return Dt(new vt(ne,me))})},se=this,re=this.markers.length-1;re>=0;re--)oe(re);this.addUndoStep()}},Object.defineProperty(ie.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),ie.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))},ie.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)},ie.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},ie.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 se=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(te),se<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(re){return re(new ct(ne))})}else this.undoRedoManager.replaceLastUndoStep(te),this.eventListeners.statechange.forEach(function(re){return re(new ct(ne))})}},ie.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},ie.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 ct(ne))}))},ie.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},ie.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 ct(ne))}))},ie.prototype.stepZoom=function(){var ne=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=ne<this.zoomSteps.length-1?this.zoomSteps[ne+1]:this.zoomSteps[0]},ie.prototype.panTo=function(ne){this.contentDiv.scrollBy({left:this.prevPanPoint.x-ne.x,top:this.prevPanPoint.y-ne.y}),this.prevPanPoint=ne},ie.prototype.startRenderAndClose=function(){return fe(this,void 0,void 0,function(){var ne,te,oe=this;return rt(this,function(se){switch(se.label){case 0:return[4,this.render()];case 1:return ne=se.sent(),te=this.getState(),this.eventListeners.render.forEach(function(re){return re(new $t(oe,ne,te))}),this.close(!0),[2]}})})},ie.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},ie.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 se=te._availableMarkerTypes.find(function(le){return le.typeName===oe.typeName});if(se!==void 0){var re=te.addNewMarker(se);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 ct(te))})},ie.prototype.addNewMarker=function(ne){var te=ge.createGroup();return this.markerImage.appendChild(te),new ne(te,this.overlayContainer,this.settings)},ie.prototype.createNewMarker=function(ne){var te,oe=this;(te=typeof ne=="string"?this._availableMarkerTypes.find(function(se){return se.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(se){return se(new vt(oe,oe._currentMarker))}))},ie.prototype.markerCreated=function(ne){var te=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(ne),this.setCurrentMarker(ne),ne instanceof Xe&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(Xe):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(oe){return oe(new vt(te,te._currentMarker))})},ie.prototype.colorChanged=function(ne){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=ne,this.settings.defaultStrokeColor=ne)},ie.prototype.fillColorChanged=function(ne){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=ne)},ie.prototype.markerStateChanged=function(ne){var te=this;this.eventListeners.markerchange.forEach(function(oe){return oe(new vt(te,ne))})},ie.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 vt(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 vt(te,te._currentMarker))}))},ie.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))},ie.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()}},ie.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}))},ie.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()},ie.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},ie.prototype.onKeyUp=function(ne){this._currentMarker===void 0||this.notesArea!==void 0||ne.key!=="Delete"&&ne.key!=="Backspace"||this.deleteSelectedMarker()},ie.prototype.clientToLocalCoordinates=function(ne,te){var oe=this.markerImage.getBoundingClientRect();return{x:(ne-oe.left)/this.zoomLevel,y:(te-oe.top)/this.zoomLevel}},ie.prototype.onWindowResize=function(){this.positionUI()},ie.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()},ie.prototype.addLicenseKey=function(ne){Ee.addKey(ne)},ie.prototype.addEventListener=function(ne,te){this.eventListeners.addEventListener(ne,te)},ie.prototype.removeEventListener=function(ne,te){this.eventListeners.removeEventListener(ne,te)},ie.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(ie.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),ie.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 ct(ne))}))},ie.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 ct(ne))}))},ie.instanceCounter=0,ie}()},6551:function(Kn,cn,z){"use strict";z.d(cn,{ZP:function(){return Ee}});var b=z(42978),Pe=z(59301),fe=z(47273),rt=0,xe=(0,fe.Z)();function ge(){var Qe;return xe?(Qe=rt,rt+=1):Qe="TEST_OR_SSR",Qe}function Ee(Qe){var Ae=Pe.useState(),de=(0,b.Z)(Ae,2),tt=de[0],ve=de[1];return Pe.useEffect(function(){ve("rc_select_".concat(ge()))},[]),Qe||tt}},37463:function(Kn,cn,z){"use strict";z.d(cn,{Ac:function(){return At},Xo:function(){return Gt},Wx:function(){return Bt},ZP:function(){return sn},lk:function(){return Xt}});var b=z(54476),Pe=z(94480),fe=z(20068),rt=z(33885),xe=z(42978),ge=z(75931),Ee=z(76190),Qe=z(18929),Ae=z(48736),de=z(59301),tt=z(92310),ve=z.n(tt),Lt=z(34280),at=z(49658),Ve=z(8654),Ne=function(dt){var ze=dt.className,gt=dt.customizeIcon,$e=dt.customizeIconProps,St=dt.children,Oe=dt.onMouseDown,Ft=dt.onClick,Zt=typeof gt=="function"?gt($e):gt;return de.createElement("span",{className:ze,onMouseDown:function(Te){Te.preventDefault(),Oe==null||Oe(Te)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Ft,"aria-hidden":!0},Zt!==void 0?Zt:de.createElement("span",{className:ve()(ze.split(/\s+/).map(function(De){return"".concat(De,"-icon")}))},St))},Ze=Ne,pt=function(dt,ze,gt,$e,St){var Oe=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Ft=arguments.length>6?arguments[6]:void 0,Zt=arguments.length>7?arguments[7]:void 0,De=de.useMemo(function(){if((0,Ee.Z)($e)==="object")return $e.clearIcon;if(St)return St},[$e,St]),Te=de.useMemo(function(){return!!(!Oe&&$e&&(gt.length||Ft)&&!(Zt==="combobox"&&Ft===""))},[$e,Oe,gt.length,Ft,Zt]);return{allowClear:Te,clearIcon:de.createElement(Ze,{className:"".concat(dt,"-clear"),onMouseDown:ze,customizeIcon:De},"\xD7")}},mt=de.createContext(null);function Xt(){return de.useContext(mt)}function He(){var We=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,dt=de.useState(!1),ze=(0,xe.Z)(dt,2),gt=ze[0],$e=ze[1],St=de.useRef(null),Oe=function(){window.clearTimeout(St.current)};de.useEffect(function(){return Oe},[]);var Ft=function(De,Te){Oe(),St.current=window.setTimeout(function(){$e(De),Te&&Te()},We)};return[gt,Ft,Oe]}function Ke(){var We=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,dt=de.useRef(null),ze=de.useRef(null);de.useEffect(function(){return function(){window.clearTimeout(ze.current)}},[]);function gt($e){($e||dt.current===null)&&(dt.current=$e),window.clearTimeout(ze.current),ze.current=window.setTimeout(function(){dt.current=null},We)}return[function(){return dt.current},gt]}function ut(We,dt,ze,gt){var $e=de.useRef(null);$e.current={open:dt,triggerOpen:ze,customizedTrigger:gt},de.useEffect(function(){function St(Oe){var Ft;if(!((Ft=$e.current)!==null&&Ft!==void 0&&Ft.customizedTrigger)){var Zt=Oe.target;Zt.shadowRoot&&Oe.composed&&(Zt=Oe.composedPath()[0]||Zt),$e.current.open&&We().filter(function(De){return De}).every(function(De){return!De.contains(Zt)&&De!==Zt})&&$e.current.triggerOpen(!1)}}return window.addEventListener("mousedown",St),function(){return window.removeEventListener("mousedown",St)}},[])}var ft=z(10228);function jt(We){return We&&![ft.Z.ESC,ft.Z.SHIFT,ft.Z.BACKSPACE,ft.Z.TAB,ft.Z.WIN_KEY,ft.Z.ALT,ft.Z.META,ft.Z.WIN_KEY_RIGHT,ft.Z.CTRL,ft.Z.SEMICOLON,ft.Z.EQUALS,ft.Z.CAPS_LOCK,ft.Z.CONTEXT_MENU,ft.Z.F1,ft.Z.F2,ft.Z.F3,ft.Z.F4,ft.Z.F5,ft.Z.F6,ft.Z.F7,ft.Z.F8,ft.Z.F9,ft.Z.F10,ft.Z.F11,ft.Z.F12].includes(We)}var Ot=z(26112),yt=z(83836);function Et(We,dt,ze){var gt=(0,rt.Z)((0,rt.Z)({},We),ze?dt:{});return Object.keys(dt).forEach(function($e){var St=dt[$e];typeof St=="function"&&(gt[$e]=function(){for(var Oe,Ft=arguments.length,Zt=new Array(Ft),De=0;De<Ft;De++)Zt[De]=arguments[De];return St.apply(void 0,Zt),(Oe=We[$e])===null||Oe===void 0?void 0:Oe.call.apply(Oe,[We].concat(Zt))})}),gt}var pe=Et,Je=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],Xe=function(dt,ze){var gt=dt.prefixCls,$e=dt.id,St=dt.inputElement,Oe=dt.autoFocus,Ft=dt.autoComplete,Zt=dt.editable,De=dt.activeDescendantId,Te=dt.value,Me=dt.open,je=dt.attrs,it=(0,ge.Z)(dt,Je),an=St||de.createElement("input",null),dn=an,hn=dn.ref,$n=dn.props;return(0,Ae.Kp)(!("maxLength"in an.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),an=de.cloneElement(an,(0,rt.Z)((0,rt.Z)((0,rt.Z)({type:"search"},pe(it,$n,!0)),{},{id:$e,ref:(0,Ve.sQ)(ze,hn),autoComplete:Ft||"off",autoFocus:Oe,className:ve()("".concat(gt,"-selection-search-input"),$n==null?void 0:$n.className),role:"combobox","aria-expanded":Me||!1,"aria-haspopup":"listbox","aria-owns":"".concat($e,"_list"),"aria-autocomplete":"list","aria-controls":"".concat($e,"_list"),"aria-activedescendant":Me?De:void 0},je),{},{value:Zt?Te:"",readOnly:!Zt,unselectable:Zt?null:"on",style:(0,rt.Z)((0,rt.Z)({},$n.style),{},{opacity:Zt?null:0})})),an},ue=de.forwardRef(Xe),Nt=ue;function et(We){return Array.isArray(We)?We:We!==void 0?[We]:[]}var wt=typeof window!="undefined"&&window.document&&window.document.documentElement,ln=wt;function ke(We){return We!=null}function he(We){return!We&&We!==0}function Ct(We){return["string","number"].includes((0,Ee.Z)(We))}function Pt(We){var dt=void 0;return We&&(Ct(We.title)?dt=We.title.toString():Ct(We.label)&&(dt=We.label.toString())),dt}function Kt(We,dt){ln?de.useLayoutEffect(We,dt):de.useEffect(We,dt)}function Ce(We){var dt;return(dt=We.key)!==null&&dt!==void 0?dt:We.value}var ot=function(dt){dt.preventDefault(),dt.stopPropagation()},lt=function(dt){var ze=dt.id,gt=dt.prefixCls,$e=dt.values,St=dt.open,Oe=dt.searchValue,Ft=dt.autoClearSearchValue,Zt=dt.inputRef,De=dt.placeholder,Te=dt.disabled,Me=dt.mode,je=dt.showSearch,it=dt.autoFocus,an=dt.autoComplete,dn=dt.activeDescendantId,hn=dt.tabIndex,$n=dt.removeIcon,ar=dt.maxTagCount,Cr=dt.maxTagTextLength,qn=dt.maxTagPlaceholder,Gn=qn===void 0?function(Rn){return"+ ".concat(Rn.length," ...")}:qn,Jn=dt.tagRender,gr=dt.onToggleOpen,Ge=dt.onRemove,bt=dt.onInputChange,Vt=dt.onInputPaste,Ht=dt.onInputKeyDown,tn=dt.onInputMouseDown,An=dt.onInputCompositionStart,Vn=dt.onInputCompositionEnd,tr=dt.onInputBlur,Nn=de.useRef(null),or=(0,de.useState)(0),cr=(0,xe.Z)(or,2),nr=cr[0],hr=cr[1],lr=(0,de.useState)(!1),Er=(0,xe.Z)(lr,2),Ir=Er[0],zr=Er[1],Pr="".concat(gt,"-selection"),Or=St||Me==="multiple"&&Ft===!1||Me==="tags"?Oe:"",Sr=Me==="tags"||Me==="multiple"&&Ft===!1||je&&(St||Ir);Kt(function(){hr(Nn.current.scrollWidth)},[Or]);var Tr=function(bn,ir,mr,On,Hn){return de.createElement("span",{title:Pt(bn),className:ve()("".concat(Pr,"-item"),(0,fe.Z)({},"".concat(Pr,"-item-disabled"),mr))},de.createElement("span",{className:"".concat(Pr,"-item-content")},ir),On&&de.createElement(Ze,{className:"".concat(Pr,"-item-remove"),onMouseDown:ot,onClick:Hn,customizeIcon:$n},"\xD7"))},br=function(bn,ir,mr,On,Hn,Xn){var vr=function(Fr){ot(Fr),gr(!St)};return de.createElement("span",{onMouseDown:vr},Jn({label:ir,value:bn,disabled:mr,closable:On,onClose:Hn,isMaxTag:!!Xn}))},wr=function(bn){var ir=bn.disabled,mr=bn.label,On=bn.value,Hn=!Te&&!ir,Xn=mr;if(typeof Cr=="number"&&(typeof mr=="string"||typeof mr=="number")){var vr=String(Xn);vr.length>Cr&&(Xn="".concat(vr.slice(0,Cr),"..."))}var Ar=function(Rr){Rr&&Rr.stopPropagation(),Ge(bn)};return typeof Jn=="function"?br(On,Xn,ir,Hn,Ar):Tr(bn,Xn,ir,Hn,Ar)},_n=function(bn){if(!$e.length)return null;var ir=typeof Gn=="function"?Gn(bn):Gn;return typeof Jn=="function"?br(void 0,ir,!1,!1,void 0,!0):Tr({title:ir},ir,!1)},In=de.createElement("div",{className:"".concat(Pr,"-search"),style:{width:nr},onFocus:function(){zr(!0)},onBlur:function(){zr(!1)}},de.createElement(Nt,{ref:Zt,open:St,prefixCls:gt,id:ze,inputElement:null,disabled:Te,autoFocus:it,autoComplete:an,editable:Sr,activeDescendantId:dn,value:Or,onKeyDown:Ht,onMouseDown:tn,onChange:bt,onPaste:Vt,onCompositionStart:An,onCompositionEnd:Vn,onBlur:tr,tabIndex:hn,attrs:(0,Ot.Z)(dt,!0)}),de.createElement("span",{ref:Nn,className:"".concat(Pr,"-search-mirror"),"aria-hidden":!0},Or,"\xA0")),er=de.createElement(yt.Z,{prefixCls:"".concat(Pr,"-overflow"),data:$e,renderItem:wr,renderRest:_n,suffix:In,itemKey:Ce,maxCount:ar});return de.createElement("span",{className:"".concat(Pr,"-wrap")},er,!$e.length&&!Or&&de.createElement("span",{className:"".concat(Pr,"-placeholder")},De))},Wt=lt,ct=function(dt){var ze=dt.inputElement,gt=dt.prefixCls,$e=dt.id,St=dt.inputRef,Oe=dt.disabled,Ft=dt.autoFocus,Zt=dt.autoComplete,De=dt.activeDescendantId,Te=dt.mode,Me=dt.open,je=dt.values,it=dt.placeholder,an=dt.tabIndex,dn=dt.showSearch,hn=dt.searchValue,$n=dt.activeValue,ar=dt.maxLength,Cr=dt.onInputKeyDown,qn=dt.onInputMouseDown,Gn=dt.onInputChange,Jn=dt.onInputPaste,gr=dt.onInputCompositionStart,Ge=dt.onInputCompositionEnd,bt=dt.onInputBlur,Vt=dt.title,Ht=de.useState(!1),tn=(0,xe.Z)(Ht,2),An=tn[0],Vn=tn[1],tr=Te==="combobox",Nn=tr||dn,or=je[0],cr=hn||"";tr&&$n&&!An&&(cr=$n),de.useEffect(function(){tr&&Vn(!1)},[tr,$n]);var nr=Te!=="combobox"&&!Me&&!dn?!1:!!cr,hr=Vt===void 0?Pt(or):Vt,lr=de.useMemo(function(){return or?null:de.createElement("span",{className:"".concat(gt,"-selection-placeholder"),style:nr?{visibility:"hidden"}:void 0},it)},[or,nr,it,gt]);return de.createElement("span",{className:"".concat(gt,"-selection-wrap")},de.createElement("span",{className:"".concat(gt,"-selection-search")},de.createElement(Nt,{ref:St,prefixCls:gt,id:$e,open:Me,inputElement:ze,disabled:Oe,autoFocus:Ft,autoComplete:Zt,editable:Nn,activeDescendantId:De,value:cr,onKeyDown:Cr,onMouseDown:qn,onChange:function(Ir){Vn(!0),Gn(Ir)},onPaste:Jn,onCompositionStart:gr,onCompositionEnd:Ge,onBlur:bt,tabIndex:an,attrs:(0,Ot.Z)(dt,!0),maxLength:tr?ar:void 0})),!tr&&or?de.createElement("span",{className:"".concat(gt,"-selection-item"),title:hr,style:nr?{visibility:"hidden"}:void 0},or.label):null,lr)},$t=ct,vt=function(dt,ze){var gt=(0,de.useRef)(null),$e=(0,de.useRef)(!1),St=dt.prefixCls,Oe=dt.open,Ft=dt.mode,Zt=dt.showSearch,De=dt.tokenWithEnter,Te=dt.disabled,Me=dt.prefix,je=dt.autoClearSearchValue,it=dt.onSearch,an=dt.onSearchSubmit,dn=dt.onToggleOpen,hn=dt.onInputKeyDown,$n=dt.onInputBlur,ar=dt.domRef;de.useImperativeHandle(ze,function(){return{focus:function(hr){gt.current.focus(hr)},blur:function(){gt.current.blur()}}});var Cr=Ke(0),qn=(0,xe.Z)(Cr,2),Gn=qn[0],Jn=qn[1],gr=function(hr){var lr=hr.which,Er=gt.current instanceof HTMLTextAreaElement;!Er&&Oe&&(lr===ft.Z.UP||lr===ft.Z.DOWN)&&hr.preventDefault(),hn&&hn(hr),lr===ft.Z.ENTER&&Ft==="tags"&&!$e.current&&!Oe&&(an==null||an(hr.target.value)),!(Er&&!Oe&&~[ft.Z.UP,ft.Z.DOWN,ft.Z.LEFT,ft.Z.RIGHT].indexOf(lr))&&jt(lr)&&dn(!0)},Ge=function(){Jn(!0)},bt=(0,de.useRef)(null),Vt=function(hr){it(hr,!0,$e.current)!==!1&&dn(!0)},Ht=function(){$e.current=!0},tn=function(hr){$e.current=!1,Ft!=="combobox"&&Vt(hr.target.value)},An=function(hr){var lr=hr.target.value;if(De&&bt.current&&/[\r\n]/.test(bt.current)){var Er=bt.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");lr=lr.replace(Er,bt.current)}bt.current=null,Vt(lr)},Vn=function(hr){var lr=hr.clipboardData,Er=lr==null?void 0:lr.getData("text");bt.current=Er||""},tr=function(hr){var lr=hr.target;if(lr!==gt.current){var Er=document.body.style.msTouchAction!==void 0;Er?setTimeout(function(){gt.current.focus()}):gt.current.focus()}},Nn=function(hr){var lr=Gn();hr.target!==gt.current&&!lr&&!(Ft==="combobox"&&Te)&&hr.preventDefault(),(Ft!=="combobox"&&(!Zt||!lr)||!Oe)&&(Oe&&je!==!1&&it("",!0,!1),dn())},or={inputRef:gt,onInputKeyDown:gr,onInputMouseDown:Ge,onInputChange:An,onInputPaste:Vn,onInputCompositionStart:Ht,onInputCompositionEnd:tn,onInputBlur:$n},cr=Ft==="multiple"||Ft==="tags"?de.createElement(Wt,(0,b.Z)({},dt,or)):de.createElement($t,(0,b.Z)({},dt,or));return de.createElement("div",{ref:ar,className:"".concat(St,"-selector"),onClick:tr,onMouseDown:Nn},Me&&de.createElement("div",{className:"".concat(St,"-prefix")},Me),cr)},gn=de.forwardRef(vt),Tt=gn,ie=z(65030),ne=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],te=function(dt){var ze=dt===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:ze,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:ze,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:ze,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:ze,adjustY:1},htmlRegion:"scroll"}}},oe=function(dt,ze){var gt=dt.prefixCls,$e=dt.disabled,St=dt.visible,Oe=dt.children,Ft=dt.popupElement,Zt=dt.animation,De=dt.transitionName,Te=dt.dropdownStyle,Me=dt.dropdownClassName,je=dt.direction,it=je===void 0?"ltr":je,an=dt.placement,dn=dt.builtinPlacements,hn=dt.dropdownMatchSelectWidth,$n=dt.dropdownRender,ar=dt.dropdownAlign,Cr=dt.getPopupContainer,qn=dt.empty,Gn=dt.getTriggerDOMNode,Jn=dt.onPopupVisibleChange,gr=dt.onPopupMouseEnter,Ge=(0,ge.Z)(dt,ne),bt="".concat(gt,"-dropdown"),Vt=Ft;$n&&(Vt=$n(Ft));var Ht=de.useMemo(function(){return dn||te(hn)},[dn,hn]),tn=Zt?"".concat(bt,"-").concat(Zt):De,An=typeof hn=="number",Vn=de.useMemo(function(){return An?null:hn===!1?"minWidth":"width"},[hn,An]),tr=Te;An&&(tr=(0,rt.Z)((0,rt.Z)({},tr),{},{width:hn}));var Nn=de.useRef(null);return de.useImperativeHandle(ze,function(){return{getPopupElement:function(){var cr;return(cr=Nn.current)===null||cr===void 0?void 0:cr.popupElement}}}),de.createElement(ie.Z,(0,b.Z)({},Ge,{showAction:Jn?["click"]:[],hideAction:Jn?["click"]:[],popupPlacement:an||(it==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Ht,prefixCls:bt,popupTransitionName:tn,popup:de.createElement("div",{onMouseEnter:gr},Vt),ref:Nn,stretch:Vn,popupAlign:ar,popupVisible:St,getPopupContainer:Cr,popupClassName:ve()(Me,(0,fe.Z)({},"".concat(bt,"-empty"),qn)),popupStyle:tr,getTriggerDOMNode:Gn,onPopupVisibleChange:Jn}),Oe)},se=de.forwardRef(oe),re=se,le=z(66712);function me(We,dt){var ze=We.key,gt;return"value"in We&&(gt=We.value),ze!=null?ze:gt!==void 0?gt:"rc-index-key-".concat(dt)}function Dt(We){return typeof We!="undefined"&&!Number.isNaN(We)}function Re(We,dt){var ze=We||{},gt=ze.label,$e=ze.value,St=ze.options,Oe=ze.groupLabel,Ft=gt||(dt?"children":"label");return{label:Ft,value:$e||"value",options:St||"options",groupLabel:Oe||Ft}}function Fe(We){var dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ze=dt.fieldNames,gt=dt.childrenAsData,$e=[],St=Re(ze,!1),Oe=St.label,Ft=St.value,Zt=St.options,De=St.groupLabel;function Te(Me,je){Array.isArray(Me)&&Me.forEach(function(it){if(je||!(Zt in it)){var an=it[Ft];$e.push({key:me(it,$e.length),groupOption:je,data:it,label:it[Oe],value:an})}else{var dn=it[De];dn===void 0&>&&(dn=it.label),$e.push({key:me(it,$e.length),group:!0,data:it,label:dn}),Te(it[Zt],!0)}})}return Te(We,!1),$e}function qe(We){var dt=(0,rt.Z)({},We);return"props"in dt||Object.defineProperty(dt,"props",{get:function(){return(0,Ae.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),dt}}),dt}var nt=function(dt,ze,gt){if(!ze||!ze.length)return null;var $e=!1,St=function Ft(Zt,De){var Te=(0,le.Z)(De),Me=Te[0],je=Te.slice(1);if(!Me)return[Zt];var it=Zt.split(Me);return $e=$e||it.length>1,it.reduce(function(an,dn){return[].concat((0,Pe.Z)(an),(0,Pe.Z)(Ft(dn,je)))},[]).filter(Boolean)},Oe=St(dt,ze);return $e?typeof gt!="undefined"?Oe.slice(0,gt):Oe:null},st=de.createContext(null),we=st;function Be(We){var dt=We.visible,ze=We.values;if(!dt)return null;var gt=50;return de.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(ze.slice(0,gt).map(function($e){var St=$e.label,Oe=$e.value;return["number","string"].includes((0,Ee.Z)(St))?St:Oe}).join(", ")),ze.length>gt?", ...":null)}var It=["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"],Mt=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],kt=function(dt){return dt==="tags"||dt==="multiple"},Yt=de.forwardRef(function(We,dt){var ze,gt=We.id,$e=We.prefixCls,St=We.className,Oe=We.showSearch,Ft=We.tagRender,Zt=We.direction,De=We.omitDomProps,Te=We.displayValues,Me=We.onDisplayValuesChange,je=We.emptyOptions,it=We.notFoundContent,an=it===void 0?"Not Found":it,dn=We.onClear,hn=We.mode,$n=We.disabled,ar=We.loading,Cr=We.getInputElement,qn=We.getRawInputElement,Gn=We.open,Jn=We.defaultOpen,gr=We.onDropdownVisibleChange,Ge=We.activeValue,bt=We.onActiveValueChange,Vt=We.activeDescendantId,Ht=We.searchValue,tn=We.autoClearSearchValue,An=We.onSearch,Vn=We.onSearchSplit,tr=We.tokenSeparators,Nn=We.allowClear,or=We.prefix,cr=We.suffixIcon,nr=We.clearIcon,hr=We.OptionList,lr=We.animation,Er=We.transitionName,Ir=We.dropdownStyle,zr=We.dropdownClassName,Pr=We.dropdownMatchSelectWidth,Or=We.dropdownRender,Sr=We.dropdownAlign,Tr=We.placement,br=We.builtinPlacements,wr=We.getPopupContainer,_n=We.showAction,In=_n===void 0?[]:_n,er=We.onFocus,Rn=We.onBlur,bn=We.onKeyUp,ir=We.onKeyDown,mr=We.onMouseDown,On=(0,ge.Z)(We,It),Hn=kt(hn),Xn=(Oe!==void 0?Oe:Hn)||hn==="combobox",vr=(0,rt.Z)({},On);Mt.forEach(function(oa){delete vr[oa]}),De==null||De.forEach(function(oa){delete vr[oa]});var Ar=de.useState(!1),Fr=(0,xe.Z)(Ar,2),Rr=Fr[0],Ur=Fr[1];de.useEffect(function(){Ur((0,at.Z)())},[]);var jr=de.useRef(null),ro=de.useRef(null),Yr=de.useRef(null),Xr=de.useRef(null),eo=de.useRef(null),vo=de.useRef(!1),Fo=He(),Yo=(0,xe.Z)(Fo,3),Bo=Yo[0],Ko=Yo[1],Jr=Yo[2];de.useImperativeHandle(dt,function(){var oa,Uo;return{focus:(oa=Xr.current)===null||oa===void 0?void 0:oa.focus,blur:(Uo=Xr.current)===null||Uo===void 0?void 0:Uo.blur,scrollTo:function(hi){var Aa;return(Aa=eo.current)===null||Aa===void 0?void 0:Aa.scrollTo(hi)},nativeElement:jr.current||ro.current}});var Qr=de.useMemo(function(){var oa;if(hn!=="combobox")return Ht;var Uo=(oa=Te[0])===null||oa===void 0?void 0:oa.value;return typeof Uo=="string"||typeof Uo=="number"?String(Uo):""},[Ht,hn,Te]),Vo=hn==="combobox"&&typeof Cr=="function"&&Cr()||null,Wo=typeof qn=="function"&&qn(),po=(0,Ve.x1)(ro,Wo==null||(ze=Wo.props)===null||ze===void 0?void 0:ze.ref),ko=de.useState(!1),Xo=(0,xe.Z)(ko,2),Ao=Xo[0],Zo=Xo[1];(0,Lt.Z)(function(){Zo(!0)},[]);var Ho=(0,Qe.Z)(!1,{defaultValue:Jn,value:Gn}),ba=(0,xe.Z)(Ho,2),Ha=ba[0],xa=ba[1],ga=Ao?Ha:!1,Ei=!an&&je;($n||Ei&&ga&&hn==="combobox")&&(ga=!1);var wi=Ei?!1:ga,Io=de.useCallback(function(oa){var Uo=oa!==void 0?oa:!ga;$n||(xa(Uo),ga!==Uo&&(gr==null||gr(Uo)))},[$n,ga,xa,gr]),Lo=de.useMemo(function(){return(tr||[]).some(function(oa){return[`
|
|
|
`,`\r
|
|
|
`].includes(oa)})},[tr]),Wr=de.useContext(we)||{},Hr=Wr.maxCount,no=Wr.rawValues,bo=function(Uo,ti,hi){if(!(Hn&&Dt(Hr)&&(no==null?void 0:no.size)>=Hr)){var Aa=!0,Ra=Uo;bt==null||bt(null);var pn=nt(Uo,tr,Dt(Hr)?Hr-no.size:void 0),Hi=hi?null:pn;return hn!=="combobox"&&Hi&&(Ra="",Vn==null||Vn(Hi),Io(!1),Aa=!1),An&&Qr!==Ra&&An(Ra,{source:ti?"typing":"effect"}),Aa}},ua=function(Uo){!Uo||!Uo.trim()||An(Uo,{source:"submit"})};de.useEffect(function(){!ga&&!Hn&&hn!=="combobox"&&bo("",!1,!1)},[ga]),de.useEffect(function(){Ha&&$n&&xa(!1),$n&&!vo.current&&Ko(!1)},[$n]);var qo=Ke(),wo=(0,xe.Z)(qo,2),Po=wo[0],ia=wo[1],Ja=de.useRef(!1),Wa=function(Uo){var ti=Po(),hi=Uo.key,Aa=hi==="Enter";if(Aa&&(hn!=="combobox"&&Uo.preventDefault(),ga||Io(!0)),ia(!!Qr),hi==="Backspace"&&!ti&&Hn&&!Qr&&Te.length){for(var Ra=(0,Pe.Z)(Te),pn=null,Hi=Ra.length-1;Hi>=0;Hi-=1){var nl=Ra[Hi];if(!nl.disabled){Ra.splice(Hi,1),pn=nl;break}}pn&&Me(Ra,{type:"remove",values:[pn]})}for(var Oi=arguments.length,Ni=new Array(Oi>1?Oi-1:0),Mi=1;Mi<Oi;Mi++)Ni[Mi-1]=arguments[Mi];if(ga&&(!Aa||!Ja.current)){var cl;Aa&&(Ja.current=!0),(cl=eo.current)===null||cl===void 0||cl.onKeyDown.apply(cl,[Uo].concat(Ni))}ir==null||ir.apply(void 0,[Uo].concat(Ni))},ci=function(Uo){for(var ti=arguments.length,hi=new Array(ti>1?ti-1:0),Aa=1;Aa<ti;Aa++)hi[Aa-1]=arguments[Aa];if(ga){var Ra;(Ra=eo.current)===null||Ra===void 0||Ra.onKeyUp.apply(Ra,[Uo].concat(hi))}Uo.key==="Enter"&&(Ja.current=!1),bn==null||bn.apply(void 0,[Uo].concat(hi))},ai=function(Uo){var ti=Te.filter(function(hi){return hi!==Uo});Me(ti,{type:"remove",values:[Uo]})},$a=function(){Ja.current=!1},Di=de.useRef(!1),di=function(){Ko(!0),$n||(er&&!Di.current&&er.apply(void 0,arguments),In.includes("focus")&&Io(!0)),Di.current=!0},yi=function(){vo.current=!0,Ko(!1,function(){Di.current=!1,vo.current=!1,Io(!1)}),!$n&&(Qr&&(hn==="tags"?An(Qr,{source:"submit"}):hn==="multiple"&&An("",{source:"blur"})),Rn&&Rn.apply(void 0,arguments))},Gi=[];de.useEffect(function(){return function(){Gi.forEach(function(oa){return clearTimeout(oa)}),Gi.splice(0,Gi.length)}},[]);var sl=function(Uo){var ti,hi=Uo.target,Aa=(ti=Yr.current)===null||ti===void 0?void 0:ti.getPopupElement();if(Aa&&Aa.contains(hi)){var Ra=setTimeout(function(){var Oi=Gi.indexOf(Ra);if(Oi!==-1&&Gi.splice(Oi,1),Jr(),!Rr&&!Aa.contains(document.activeElement)){var Ni;(Ni=Xr.current)===null||Ni===void 0||Ni.focus()}});Gi.push(Ra)}for(var pn=arguments.length,Hi=new Array(pn>1?pn-1:0),nl=1;nl<pn;nl++)Hi[nl-1]=arguments[nl];mr==null||mr.apply(void 0,[Uo].concat(Hi))},Zi=de.useState({}),_l=(0,xe.Z)(Zi,2),ml=_l[1];function kl(){ml({})}var Ll;Wo&&(Ll=function(Uo){Io(Uo)}),ut(function(){var oa;return[jr.current,(oa=Yr.current)===null||oa===void 0?void 0:oa.getPopupElement()]},wi,Io,!!Wo);var us=de.useMemo(function(){return(0,rt.Z)((0,rt.Z)({},We),{},{notFoundContent:an,open:ga,triggerOpen:wi,id:gt,showSearch:Xn,multiple:Hn,toggleOpen:Io})},[We,an,wi,ga,gt,Xn,Hn,Io]),Zl=!!cr||ar,Xi;Zl&&(Xi=de.createElement(Ze,{className:ve()("".concat($e,"-arrow"),(0,fe.Z)({},"".concat($e,"-arrow-loading"),ar)),customizeIcon:cr,customizeIconProps:{loading:ar,searchValue:Qr,open:ga,focused:Bo,showSearch:Xn}}));var tl=function(){var Uo;dn==null||dn(),(Uo=Xr.current)===null||Uo===void 0||Uo.focus(),Me([],{type:"clear",values:Te}),bo("",!1,!1)},Bl=pt($e,tl,Te,Nn,nr,$n,Qr,hn),Hl=Bl.allowClear,gl=Bl.clearIcon,Il=de.createElement(hr,{ref:eo}),zl=ve()($e,St,(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($e,"-focused"),Bo),"".concat($e,"-multiple"),Hn),"".concat($e,"-single"),!Hn),"".concat($e,"-allow-clear"),Nn),"".concat($e,"-show-arrow"),Zl),"".concat($e,"-disabled"),$n),"".concat($e,"-loading"),ar),"".concat($e,"-open"),ga),"".concat($e,"-customize-input"),Vo),"".concat($e,"-show-search"),Xn)),ul=de.createElement(re,{ref:Yr,disabled:$n,prefixCls:$e,visible:wi,popupElement:Il,animation:lr,transitionName:Er,dropdownStyle:Ir,dropdownClassName:zr,direction:Zt,dropdownMatchSelectWidth:Pr,dropdownRender:Or,dropdownAlign:Sr,placement:Tr,builtinPlacements:br,getPopupContainer:wr,empty:je,getTriggerDOMNode:function(Uo){return ro.current||Uo},onPopupVisibleChange:Ll,onPopupMouseEnter:kl},Wo?de.cloneElement(Wo,{ref:po}):de.createElement(Tt,(0,b.Z)({},We,{domRef:ro,prefixCls:$e,inputElement:Vo,ref:Xr,id:gt,prefix:or,showSearch:Xn,autoClearSearchValue:tn,mode:hn,activeDescendantId:Vt,tagRender:Ft,values:Te,open:ga,onToggleOpen:Io,activeValue:Ge,searchValue:Qr,onSearch:bo,onSearchSubmit:ua,onRemove:ai,tokenWithEnter:Lo,onInputBlur:$a}))),fi;return Wo?fi=ul:fi=de.createElement("div",(0,b.Z)({className:zl},vr,{ref:jr,onMouseDown:sl,onKeyDown:Wa,onKeyUp:ci,onFocus:di,onBlur:yi}),de.createElement(Be,{visible:Bo&&!ga,values:Te}),ul,Xi,Hl&&gl),de.createElement(mt.Provider,{value:us},fi)}),At=Yt,vn=function(){return null};vn.isSelectOptGroup=!0;var Gt=vn,_e=function(){return null};_e.isSelectOption=!0;var Bt=_e,Ut=z(80547),on=z(2738),Le=z(48911);function xt(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var zt=["disabled","title","children","style","className"];function nn(We){return typeof We=="string"||typeof We=="number"}var Sn=function(dt,ze){var gt=Xt(),$e=gt.prefixCls,St=gt.id,Oe=gt.open,Ft=gt.multiple,Zt=gt.mode,De=gt.searchValue,Te=gt.toggleOpen,Me=gt.notFoundContent,je=gt.onPopupScroll,it=de.useContext(we),an=it.maxCount,dn=it.flattenOptions,hn=it.onActiveValue,$n=it.defaultActiveFirstOption,ar=it.onSelect,Cr=it.menuItemSelectedIcon,qn=it.rawValues,Gn=it.fieldNames,Jn=it.virtual,gr=it.direction,Ge=it.listHeight,bt=it.listItemHeight,Vt=it.optionRender,Ht="".concat($e,"-item"),tn=(0,Ut.Z)(function(){return dn},[Oe,dn],function(_n,In){return In[0]&&_n[1]!==In[1]}),An=de.useRef(null),Vn=de.useMemo(function(){return Ft&&Dt(an)&&(qn==null?void 0:qn.size)>=an},[Ft,an,qn==null?void 0:qn.size]),tr=function(In){In.preventDefault()},Nn=function(In){var er;(er=An.current)===null||er===void 0||er.scrollTo(typeof In=="number"?{index:In}:In)},or=de.useCallback(function(_n){return Zt==="combobox"?!1:qn.has(_n)},[Zt,(0,Pe.Z)(qn).toString(),qn.size]),cr=function(In){for(var er=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Rn=tn.length,bn=0;bn<Rn;bn+=1){var ir=(In+bn*er+Rn)%Rn,mr=tn[ir]||{},On=mr.group,Hn=mr.data;if(!On&&!(Hn!=null&&Hn.disabled)&&(or(Hn.value)||!Vn))return ir}return-1},nr=de.useState(function(){return cr(0)}),hr=(0,xe.Z)(nr,2),lr=hr[0],Er=hr[1],Ir=function(In){var er=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Er(In);var Rn={source:er?"keyboard":"mouse"},bn=tn[In];if(!bn){hn(null,-1,Rn);return}hn(bn.value,In,Rn)};(0,de.useEffect)(function(){Ir($n!==!1?cr(0):-1)},[tn.length,De]);var zr=de.useCallback(function(_n){return Zt==="combobox"?String(_n).toLowerCase()===De.toLowerCase():qn.has(_n)},[Zt,De,(0,Pe.Z)(qn).toString(),qn.size]);(0,de.useEffect)(function(){var _n=setTimeout(function(){if(!Ft&&Oe&&qn.size===1){var er=Array.from(qn)[0],Rn=tn.findIndex(function(bn){var ir=bn.data;return De?String(ir.value).startsWith(De):ir.value===er});Rn!==-1&&(Ir(Rn),Nn(Rn))}});if(Oe){var In;(In=An.current)===null||In===void 0||In.scrollTo(void 0)}return function(){return clearTimeout(_n)}},[Oe,De]);var Pr=function(In){In!==void 0&&ar(In,{selected:!qn.has(In)}),Ft||Te(!1)};if(de.useImperativeHandle(ze,function(){return{onKeyDown:function(In){var er=In.which,Rn=In.ctrlKey;switch(er){case ft.Z.N:case ft.Z.P:case ft.Z.UP:case ft.Z.DOWN:{var bn=0;if(er===ft.Z.UP?bn=-1:er===ft.Z.DOWN?bn=1:xt()&&Rn&&(er===ft.Z.N?bn=1:er===ft.Z.P&&(bn=-1)),bn!==0){var ir=cr(lr+bn,bn);Nn(ir),Ir(ir,!0)}break}case ft.Z.TAB:case ft.Z.ENTER:{var mr,On=tn[lr];On&&!(On!=null&&(mr=On.data)!==null&&mr!==void 0&&mr.disabled)&&!Vn?Pr(On.value):Pr(void 0),Oe&&In.preventDefault();break}case ft.Z.ESC:Te(!1),Oe&&In.stopPropagation()}},onKeyUp:function(){},scrollTo:function(In){Nn(In)}}}),tn.length===0)return de.createElement("div",{role:"listbox",id:"".concat(St,"_list"),className:"".concat(Ht,"-empty"),onMouseDown:tr},Me);var Or=Object.keys(Gn).map(function(_n){return Gn[_n]}),Sr=function(In){return In.label};function Tr(_n,In){var er=_n.group;return{role:er?"presentation":"option",id:"".concat(St,"_list_").concat(In)}}var br=function(In){var er=tn[In];if(!er)return null;var Rn=er.data||{},bn=Rn.value,ir=er.group,mr=(0,Ot.Z)(Rn,!0),On=Sr(er);return er?de.createElement("div",(0,b.Z)({"aria-label":typeof On=="string"&&!ir?On:null},mr,{key:In},Tr(er,In),{"aria-selected":zr(bn)}),bn):null},wr={role:"listbox",id:"".concat(St,"_list")};return de.createElement(de.Fragment,null,Jn&&de.createElement("div",(0,b.Z)({},wr,{style:{height:0,width:0,overflow:"hidden"}}),br(lr-1),br(lr),br(lr+1)),de.createElement(Le.Z,{itemKey:"key",ref:An,data:tn,height:Ge,itemHeight:bt,fullHeight:!1,onMouseDown:tr,onScroll:je,virtual:Jn,direction:gr,innerProps:Jn?null:wr},function(_n,In){var er=_n.group,Rn=_n.groupOption,bn=_n.data,ir=_n.label,mr=_n.value,On=bn.key;if(er){var Hn,Xn=(Hn=bn.title)!==null&&Hn!==void 0?Hn:nn(ir)?ir.toString():void 0;return de.createElement("div",{className:ve()(Ht,"".concat(Ht,"-group"),bn.className),title:Xn},ir!==void 0?ir:On)}var vr=bn.disabled,Ar=bn.title,Fr=bn.children,Rr=bn.style,Ur=bn.className,jr=(0,ge.Z)(bn,zt),ro=(0,on.Z)(jr,Or),Yr=or(mr),Xr=vr||!Yr&&Vn,eo="".concat(Ht,"-option"),vo=ve()(Ht,eo,Ur,(0,fe.Z)((0,fe.Z)((0,fe.Z)((0,fe.Z)({},"".concat(eo,"-grouped"),Rn),"".concat(eo,"-active"),lr===In&&!Xr),"".concat(eo,"-disabled"),Xr),"".concat(eo,"-selected"),Yr)),Fo=Sr(_n),Yo=!Cr||typeof Cr=="function"||Yr,Bo=typeof Fo=="number"?Fo:Fo||mr,Ko=nn(Bo)?Bo.toString():void 0;return Ar!==void 0&&(Ko=Ar),de.createElement("div",(0,b.Z)({},(0,Ot.Z)(ro),Jn?{}:Tr(_n,In),{"aria-selected":zr(mr),className:vo,title:Ko,onMouseMove:function(){lr===In||Xr||Ir(In)},onClick:function(){Xr||Pr(mr)},style:Rr}),de.createElement("div",{className:"".concat(eo,"-content")},typeof Vt=="function"?Vt(_n,{index:In}):Bo),de.isValidElement(Cr)||Yr,Yo&&de.createElement(Ze,{className:"".concat(Ht,"-option-state"),customizeIcon:Cr,customizeIconProps:{value:mr,disabled:Xr,isSelected:Yr}},Yr?"\u2713":null))}))},zn=de.forwardRef(Sn),rr=zn,pr=function(We,dt){var ze=de.useRef({values:new Map,options:new Map}),gt=de.useMemo(function(){var St=ze.current,Oe=St.values,Ft=St.options,Zt=We.map(function(Me){if(Me.label===void 0){var je;return(0,rt.Z)((0,rt.Z)({},Me),{},{label:(je=Oe.get(Me.value))===null||je===void 0?void 0:je.label})}return Me}),De=new Map,Te=new Map;return Zt.forEach(function(Me){De.set(Me.value,Me),Te.set(Me.value,dt.get(Me.value)||Ft.get(Me.value))}),ze.current.values=De,ze.current.options=Te,Zt},[We,dt]),$e=de.useCallback(function(St){return dt.get(St)||ze.current.options.get(St)},[dt]);return[gt,$e]};function kn(We,dt){return et(We).join("").toUpperCase().includes(dt)}var dr=function(We,dt,ze,gt,$e){return de.useMemo(function(){if(!ze||gt===!1)return We;var St=dt.options,Oe=dt.label,Ft=dt.value,Zt=[],De=typeof gt=="function",Te=ze.toUpperCase(),Me=De?gt:function(it,an){return $e?kn(an[$e],Te):an[St]?kn(an[Oe!=="children"?Oe:"label"],Te):kn(an[Ft],Te)},je=De?function(it){return qe(it)}:function(it){return it};return We.forEach(function(it){if(it[St]){var an=Me(ze,je(it));if(an)Zt.push(it);else{var dn=it[St].filter(function(hn){return Me(ze,je(hn))});dn.length&&Zt.push((0,rt.Z)((0,rt.Z)({},it),{},(0,fe.Z)({},St,dn)))}return}Me(ze,je(it))&&Zt.push(it)}),Zt},[We,gt,$e,ze,dt])},Ye=z(6551),Qt=z(11592),yn=["children","value"],xn=["children"];function qt(We){var dt=We,ze=dt.key,gt=dt.props,$e=gt.children,St=gt.value,Oe=(0,ge.Z)(gt,yn);return(0,rt.Z)({key:ze,value:St!==void 0?St:ze,children:$e},Oe)}function En(We){var dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Qt.Z)(We).map(function(ze,gt){if(!de.isValidElement(ze)||!ze.type)return null;var $e=ze,St=$e.type.isSelectOptGroup,Oe=$e.key,Ft=$e.props,Zt=Ft.children,De=(0,ge.Z)(Ft,xn);return dt||!St?qt(ze):(0,rt.Z)((0,rt.Z)({key:"__RC_SELECT_GRP__".concat(Oe===null?gt:Oe,"__"),label:Oe},De),{},{options:En(Zt)})}).filter(function(ze){return ze})}var Fn=function(dt,ze,gt,$e,St){return de.useMemo(function(){var Oe=dt,Ft=!dt;Ft&&(Oe=En(ze));var Zt=new Map,De=new Map,Te=function(it,an,dn){dn&&typeof dn=="string"&&it.set(an[dn],an)},Me=function je(it){for(var an=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,dn=0;dn<it.length;dn+=1){var hn=it[dn];!hn[gt.options]||an?(Zt.set(hn[gt.value],hn),Te(De,hn,gt.label),Te(De,hn,$e),Te(De,hn,St)):je(hn[gt.options],!0)}};return Me(Oe),{options:Oe,valueOptions:Zt,labelOptions:De}},[dt,ze,gt,$e,St])},Tn=Fn;function _t(We){var dt=de.useRef();dt.current=We;var ze=de.useCallback(function(){return dt.current.apply(dt,arguments)},[]);return ze}function Cn(We){var dt=We.mode,ze=We.options,gt=We.children,$e=We.backfill,St=We.allowClear,Oe=We.placeholder,Ft=We.getInputElement,Zt=We.showSearch,De=We.onSearch,Te=We.defaultOpen,Me=We.autoFocus,je=We.labelInValue,it=We.value,an=We.inputValue,dn=We.optionLabelProp,hn=isMultiple(dt),$n=Zt!==void 0?Zt:hn||dt==="combobox",ar=ze||convertChildrenToData(gt);if(warning(dt!=="tags"||ar.every(function(Jn){return!Jn.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),dt==="tags"||dt==="combobox"){var Cr=ar.some(function(Jn){return Jn.options?Jn.options.some(function(gr){return typeof("value"in gr?gr.value:gr.key)=="number"}):typeof("value"in Jn?Jn.value:Jn.key)=="number"});warning(!Cr,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(dt!=="combobox"||!dn,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(dt==="combobox"||!$e,"`backfill` only works with `combobox` mode."),warning(dt==="combobox"||!Ft,"`getInputElement` only work with `combobox` mode."),noteOnce(dt!=="combobox"||!Ft||!St||!Oe,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),De&&!$n&&dt!=="combobox"&&dt!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Te||Me,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),it!=null){var qn=toArray(it);warning(!je||qn.every(function(Jn){return _typeof(Jn)==="object"&&("key"in Jn||"value"in Jn)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!hn||Array.isArray(it),"`value` should be array when `mode` is `multiple` or `tags`")}if(gt){var Gn=null;toNodeArray(gt).some(function(Jn){if(!React.isValidElement(Jn)||!Jn.type)return!1;var gr=Jn,Ge=gr.type;if(Ge.isSelectOption)return!1;if(Ge.isSelectOptGroup){var bt=toNodeArray(Jn.props.children).every(function(Vt){return!React.isValidElement(Vt)||!Jn.type||Vt.type.isSelectOption?!0:(Gn=Vt.type,!1)});return!bt}return Gn=Ge,!0}),Gn&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Gn.displayName||Gn.name||Gn,"`.")),warning(an===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Bn(We,dt){if(We){var ze=function gt($e){for(var St=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Oe=0;Oe<$e.length;Oe++){var Ft=$e[Oe];if(Ft[dt==null?void 0:dt.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!St&&Array.isArray(Ft[dt==null?void 0:dt.options])&>(Ft[dt==null?void 0:dt.options],!0))break}};ze(We)}}var Ln=null,Zn=["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"],yr=["inputValue"];function ur(We){return!We||(0,Ee.Z)(We)!=="object"}var Jt=de.forwardRef(function(We,dt){var ze=We.id,gt=We.mode,$e=We.prefixCls,St=$e===void 0?"rc-select":$e,Oe=We.backfill,Ft=We.fieldNames,Zt=We.inputValue,De=We.searchValue,Te=We.onSearch,Me=We.autoClearSearchValue,je=Me===void 0?!0:Me,it=We.onSelect,an=We.onDeselect,dn=We.dropdownMatchSelectWidth,hn=dn===void 0?!0:dn,$n=We.filterOption,ar=We.filterSort,Cr=We.optionFilterProp,qn=We.optionLabelProp,Gn=We.options,Jn=We.optionRender,gr=We.children,Ge=We.defaultActiveFirstOption,bt=We.menuItemSelectedIcon,Vt=We.virtual,Ht=We.direction,tn=We.listHeight,An=tn===void 0?200:tn,Vn=We.listItemHeight,tr=Vn===void 0?20:Vn,Nn=We.labelRender,or=We.value,cr=We.defaultValue,nr=We.labelInValue,hr=We.onChange,lr=We.maxCount,Er=(0,ge.Z)(We,Zn),Ir=(0,Ye.ZP)(ze),zr=kt(gt),Pr=!!(!Gn&&gr),Or=de.useMemo(function(){return $n===void 0&>==="combobox"?!1:$n},[$n,gt]),Sr=de.useMemo(function(){return Re(Ft,Pr)},[JSON.stringify(Ft),Pr]),Tr=(0,Qe.Z)("",{value:De!==void 0?De:Zt,postState:function(Lo){return Lo||""}}),br=(0,xe.Z)(Tr,2),wr=br[0],_n=br[1],In=Tn(Gn,gr,Sr,Cr,qn),er=In.valueOptions,Rn=In.labelOptions,bn=In.options,ir=de.useCallback(function(Io){var Lo=et(Io);return Lo.map(function(Wr){var Hr,no,bo,ua,qo;if(ur(Wr))Hr=Wr;else{var wo;bo=Wr.key,no=Wr.label,Hr=(wo=Wr.value)!==null&&wo!==void 0?wo:bo}var Po=er.get(Hr);if(Po){var ia;if(no===void 0&&(no=Po==null?void 0:Po[qn||Sr.label]),bo===void 0&&(bo=(ia=Po==null?void 0:Po.key)!==null&&ia!==void 0?ia:Hr),ua=Po==null?void 0:Po.disabled,qo=Po==null?void 0:Po.title,0)var Ja}return{label:no,value:Hr,key:bo,disabled:ua,title:qo}})},[Sr,qn,er]),mr=(0,Qe.Z)(cr,{value:or}),On=(0,xe.Z)(mr,2),Hn=On[0],Xn=On[1],vr=de.useMemo(function(){var Io,Lo=zr&&Hn===null?[]:Hn,Wr=ir(Lo);return gt==="combobox"&&he((Io=Wr[0])===null||Io===void 0?void 0:Io.value)?[]:Wr},[Hn,ir,gt,zr]),Ar=pr(vr,er),Fr=(0,xe.Z)(Ar,2),Rr=Fr[0],Ur=Fr[1],jr=de.useMemo(function(){if(!gt&&Rr.length===1){var Io=Rr[0];if(Io.value===null&&(Io.label===null||Io.label===void 0))return[]}return Rr.map(function(Lo){var Wr;return(0,rt.Z)((0,rt.Z)({},Lo),{},{label:(Wr=typeof Nn=="function"?Nn(Lo):Lo.label)!==null&&Wr!==void 0?Wr:Lo.value})})},[gt,Rr,Nn]),ro=de.useMemo(function(){return new Set(Rr.map(function(Io){return Io.value}))},[Rr]);de.useEffect(function(){if(gt==="combobox"){var Io,Lo=(Io=Rr[0])===null||Io===void 0?void 0:Io.value;_n(ke(Lo)?String(Lo):"")}},[Rr]);var Yr=_t(function(Io,Lo){var Wr=Lo!=null?Lo:Io;return(0,fe.Z)((0,fe.Z)({},Sr.value,Io),Sr.label,Wr)}),Xr=de.useMemo(function(){if(gt!=="tags")return bn;var Io=(0,Pe.Z)(bn),Lo=function(Hr){return er.has(Hr)};return(0,Pe.Z)(Rr).sort(function(Wr,Hr){return Wr.value<Hr.value?-1:1}).forEach(function(Wr){var Hr=Wr.value;Lo(Hr)||Io.push(Yr(Hr,Wr.label))}),Io},[Yr,bn,er,Rr,gt]),eo=dr(Xr,Sr,wr,Or,Cr),vo=de.useMemo(function(){return gt!=="tags"||!wr||eo.some(function(Io){return Io[Cr||"value"]===wr})||eo.some(function(Io){return Io[Sr.value]===wr})?eo:[Yr(wr)].concat((0,Pe.Z)(eo))},[Yr,Cr,gt,eo,wr,Sr]),Fo=function Io(Lo){var Wr=(0,Pe.Z)(Lo).sort(function(Hr,no){return ar(Hr,no,{searchValue:wr})});return Wr.map(function(Hr){return Array.isArray(Hr.options)?(0,rt.Z)((0,rt.Z)({},Hr),{},{options:Hr.options.length>0?Io(Hr.options):Hr.options}):Hr})},Yo=de.useMemo(function(){return ar?Fo(vo):vo},[vo,ar,wr]),Bo=de.useMemo(function(){return Fe(Yo,{fieldNames:Sr,childrenAsData:Pr})},[Yo,Sr,Pr]),Ko=function(Lo){var Wr=ir(Lo);if(Xn(Wr),hr&&(Wr.length!==Rr.length||Wr.some(function(bo,ua){var qo;return((qo=Rr[ua])===null||qo===void 0?void 0:qo.value)!==(bo==null?void 0:bo.value)}))){var Hr=nr?Wr:Wr.map(function(bo){return bo.value}),no=Wr.map(function(bo){return qe(Ur(bo.value))});hr(zr?Hr:Hr[0],zr?no:no[0])}},Jr=de.useState(null),Qr=(0,xe.Z)(Jr,2),Vo=Qr[0],Wo=Qr[1],po=de.useState(0),ko=(0,xe.Z)(po,2),Xo=ko[0],Ao=ko[1],Zo=Ge!==void 0?Ge:gt!=="combobox",Ho=de.useCallback(function(Io,Lo){var Wr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Hr=Wr.source,no=Hr===void 0?"keyboard":Hr;Ao(Lo),Oe&>==="combobox"&&Io!==null&&no==="keyboard"&&Wo(String(Io))},[Oe,gt]),ba=function(Lo,Wr,Hr){var no=function(){var ai,$a=Ur(Lo);return[nr?{label:$a==null?void 0:$a[Sr.label],value:Lo,key:(ai=$a==null?void 0:$a.key)!==null&&ai!==void 0?ai:Lo}:Lo,qe($a)]};if(Wr&&it){var bo=no(),ua=(0,xe.Z)(bo,2),qo=ua[0],wo=ua[1];it(qo,wo)}else if(!Wr&&an&&Hr!=="clear"){var Po=no(),ia=(0,xe.Z)(Po,2),Ja=ia[0],Wa=ia[1];an(Ja,Wa)}},Ha=_t(function(Io,Lo){var Wr,Hr=zr?Lo.selected:!0;Hr?Wr=zr?[].concat((0,Pe.Z)(Rr),[Io]):[Io]:Wr=Rr.filter(function(no){return no.value!==Io}),Ko(Wr),ba(Io,Hr),gt==="combobox"?Wo(""):(!kt||je)&&(_n(""),Wo(""))}),xa=function(Lo,Wr){Ko(Lo);var Hr=Wr.type,no=Wr.values;(Hr==="remove"||Hr==="clear")&&no.forEach(function(bo){ba(bo.value,!1,Hr)})},ga=function(Lo,Wr){if(_n(Lo),Wo(null),Wr.source==="submit"){var Hr=(Lo||"").trim();if(Hr){var no=Array.from(new Set([].concat((0,Pe.Z)(ro),[Hr])));Ko(no),ba(Hr,!0),_n("")}return}Wr.source!=="blur"&&(gt==="combobox"&&Ko(Lo),Te==null||Te(Lo))},Ei=function(Lo){var Wr=Lo;gt!=="tags"&&(Wr=Lo.map(function(no){var bo=Rn.get(no);return bo==null?void 0:bo.value}).filter(function(no){return no!==void 0}));var Hr=Array.from(new Set([].concat((0,Pe.Z)(ro),(0,Pe.Z)(Wr))));Ko(Hr),Hr.forEach(function(no){ba(no,!0)})},wi=de.useMemo(function(){var Io=Vt!==!1&&hn!==!1;return(0,rt.Z)((0,rt.Z)({},In),{},{flattenOptions:Bo,onActiveValue:Ho,defaultActiveFirstOption:Zo,onSelect:Ha,menuItemSelectedIcon:bt,rawValues:ro,fieldNames:Sr,virtual:Io,direction:Ht,listHeight:An,listItemHeight:tr,childrenAsData:Pr,maxCount:lr,optionRender:Jn})},[lr,In,Bo,Ho,Zo,Ha,bt,ro,Sr,Vt,hn,Ht,An,tr,Pr,Jn]);return de.createElement(we.Provider,{value:wi},de.createElement(At,(0,b.Z)({},Er,{id:Ir,prefixCls:St,ref:dt,omitDomProps:yr,mode:gt,displayValues:jr,onDisplayValuesChange:xa,direction:Ht,searchValue:wr,onSearch:ga,autoClearSearchValue:je,onSearchSplit:Ei,dropdownMatchSelectWidth:hn,OptionList:rr,emptyOptions:!Bo.length,activeValue:Vo,activeDescendantId:"".concat(Ir,"_list_").concat(Xo)})))}),wn=Jt;wn.Option=Bt,wn.OptGroup=Gt;var un=wn,sn=un},3703:function(Kn,cn,z){"use strict";z.d(cn,{y:function(){return Ke},Z:function(){return Tt}});var b=z(33885),Pe=z(20068),fe=z(94480),rt=z(76190),xe=z(42978),ge=z(92310),Ee=z.n(ge),Qe=z(6089),Ae=z(18929),de=z(13697),tt=z(48736),ve=z(59301),Lt=z(54476),at=z(75931),Ve=z(4676);function Ne(ie,ne,te){return(ie-ne)/(te-ne)}function Ze(ie,ne,te,oe){var se=Ne(ne,te,oe),re={};switch(ie){case"rtl":re.right="".concat(se*100,"%"),re.transform="translateX(50%)";break;case"btt":re.bottom="".concat(se*100,"%"),re.transform="translateY(50%)";break;case"ttb":re.top="".concat(se*100,"%"),re.transform="translateY(-50%)";break;default:re.left="".concat(se*100,"%"),re.transform="translateX(-50%)";break}return re}function pt(ie,ne){return Array.isArray(ie)?ie[ne]:ie}var mt=z(10228),Xt=ve.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),He=Xt,Ke=ve.createContext({}),ut=["prefixCls","value","valueIndex","onStartMove","onDelete","style","render","dragging","draggingDelete","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"],ft=ve.forwardRef(function(ie,ne){var te=ie.prefixCls,oe=ie.value,se=ie.valueIndex,re=ie.onStartMove,le=ie.onDelete,me=ie.style,Dt=ie.render,Re=ie.dragging,Fe=ie.draggingDelete,qe=ie.onOffsetChange,nt=ie.onChangeComplete,st=ie.onFocus,we=ie.onMouseEnter,Be=(0,at.Z)(ie,ut),It=ve.useContext(He),Mt=It.min,kt=It.max,Yt=It.direction,At=It.disabled,vn=It.keyboard,Gt=It.range,_e=It.tabIndex,Bt=It.ariaLabelForHandle,Ut=It.ariaLabelledByForHandle,on=It.ariaRequired,Le=It.ariaValueTextFormatterForHandle,xt=It.styles,zt=It.classNames,nn="".concat(te,"-handle"),Sn=function(qt){At||re(qt,se)},zn=function(qt){st==null||st(qt,se)},rr=function(qt){we(qt,se)},pr=function(qt){if(!At&&vn){var En=null;switch(qt.which||qt.keyCode){case mt.Z.LEFT:En=Yt==="ltr"||Yt==="btt"?-1:1;break;case mt.Z.RIGHT:En=Yt==="ltr"||Yt==="btt"?1:-1;break;case mt.Z.UP:En=Yt!=="ttb"?1:-1;break;case mt.Z.DOWN:En=Yt!=="ttb"?-1:1;break;case mt.Z.HOME:En="min";break;case mt.Z.END:En="max";break;case mt.Z.PAGE_UP:En=2;break;case mt.Z.PAGE_DOWN:En=-2;break;case mt.Z.BACKSPACE:case mt.Z.DELETE:le==null||le(se);break}En!==null&&(qt.preventDefault(),qe(En,se))}},kn=function(qt){switch(qt.which||qt.keyCode){case mt.Z.LEFT:case mt.Z.RIGHT:case mt.Z.UP:case mt.Z.DOWN:case mt.Z.HOME:case mt.Z.END:case mt.Z.PAGE_UP:case mt.Z.PAGE_DOWN:nt==null||nt();break}},dr=Ze(Yt,oe,Mt,kt),Ye={};if(se!==null){var Qt;Ye={tabIndex:At?null:pt(_e,se),role:"slider","aria-valuemin":Mt,"aria-valuemax":kt,"aria-valuenow":oe,"aria-disabled":At,"aria-label":pt(Bt,se),"aria-labelledby":pt(Ut,se),"aria-required":pt(on,se),"aria-valuetext":(Qt=pt(Le,se))===null||Qt===void 0?void 0:Qt(oe),"aria-orientation":Yt==="ltr"||Yt==="rtl"?"horizontal":"vertical",onMouseDown:Sn,onTouchStart:Sn,onFocus:zn,onMouseEnter:rr,onKeyDown:pr,onKeyUp:kn}}var yn=ve.createElement("div",(0,Lt.Z)({ref:ne,className:Ee()(nn,(0,Pe.Z)((0,Pe.Z)((0,Pe.Z)({},"".concat(nn,"-").concat(se+1),se!==null&&Gt),"".concat(nn,"-dragging"),Re),"".concat(nn,"-dragging-delete"),Fe),zt.handle),style:(0,b.Z)((0,b.Z)((0,b.Z)({},dr),me),xt.handle)},Ye,Be));return Dt&&(yn=Dt(yn,{index:se,prefixCls:te,value:oe,dragging:Re,draggingDelete:Fe})),yn}),jt=ft,Ot=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","draggingDelete","onFocus"],yt=ve.forwardRef(function(ie,ne){var te=ie.prefixCls,oe=ie.style,se=ie.onStartMove,re=ie.onOffsetChange,le=ie.values,me=ie.handleRender,Dt=ie.activeHandleRender,Re=ie.draggingIndex,Fe=ie.draggingDelete,qe=ie.onFocus,nt=(0,at.Z)(ie,Ot),st=ve.useRef({}),we=ve.useState(!1),Be=(0,xe.Z)(we,2),It=Be[0],Mt=Be[1],kt=ve.useState(-1),Yt=(0,xe.Z)(kt,2),At=Yt[0],vn=Yt[1],Gt=function(Le){vn(Le),Mt(!0)},_e=function(Le,xt){Gt(xt),qe==null||qe(Le)},Bt=function(Le,xt){Gt(xt)};ve.useImperativeHandle(ne,function(){return{focus:function(Le){var xt;(xt=st.current[Le])===null||xt===void 0||xt.focus()},hideHelp:function(){(0,Ve.flushSync)(function(){Mt(!1)})}}});var Ut=(0,b.Z)({prefixCls:te,onStartMove:se,onOffsetChange:re,render:me,onFocus:_e,onMouseEnter:Bt},nt);return ve.createElement(ve.Fragment,null,le.map(function(on,Le){var xt=Re===Le;return ve.createElement(jt,(0,Lt.Z)({ref:function(nn){nn?st.current[Le]=nn:delete st.current[Le]},dragging:xt,draggingDelete:xt&&Fe,style:pt(oe,Le),key:Le,value:on,valueIndex:Le},Ut))}),Dt&&It&&ve.createElement(jt,(0,Lt.Z)({key:"a11y"},Ut,{value:le[At],valueIndex:null,dragging:Re!==-1,draggingDelete:Fe,render:Dt,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))}),Et=yt,pe=function(ne){var te=ne.prefixCls,oe=ne.style,se=ne.children,re=ne.value,le=ne.onClick,me=ve.useContext(He),Dt=me.min,Re=me.max,Fe=me.direction,qe=me.includedStart,nt=me.includedEnd,st=me.included,we="".concat(te,"-text"),Be=Ze(Fe,re,Dt,Re);return ve.createElement("span",{className:Ee()(we,(0,Pe.Z)({},"".concat(we,"-active"),st&&qe<=re&&re<=nt)),style:(0,b.Z)((0,b.Z)({},Be),oe),onMouseDown:function(Mt){Mt.stopPropagation()},onClick:function(){le(re)}},se)},Je=pe,Xe=function(ne){var te=ne.prefixCls,oe=ne.marks,se=ne.onClick,re="".concat(te,"-mark");return oe.length?ve.createElement("div",{className:re},oe.map(function(le){var me=le.value,Dt=le.style,Re=le.label;return ve.createElement(Je,{key:me,prefixCls:re,style:Dt,value:me,onClick:se},Re)})):null},ue=Xe,Nt=function(ne){var te=ne.prefixCls,oe=ne.value,se=ne.style,re=ne.activeStyle,le=ve.useContext(He),me=le.min,Dt=le.max,Re=le.direction,Fe=le.included,qe=le.includedStart,nt=le.includedEnd,st="".concat(te,"-dot"),we=Fe&&qe<=oe&&oe<=nt,Be=(0,b.Z)((0,b.Z)({},Ze(Re,oe,me,Dt)),typeof se=="function"?se(oe):se);return we&&(Be=(0,b.Z)((0,b.Z)({},Be),typeof re=="function"?re(oe):re)),ve.createElement("span",{className:Ee()(st,(0,Pe.Z)({},"".concat(st,"-active"),we)),style:Be})},et=Nt,wt=function(ne){var te=ne.prefixCls,oe=ne.marks,se=ne.dots,re=ne.style,le=ne.activeStyle,me=ve.useContext(He),Dt=me.min,Re=me.max,Fe=me.step,qe=ve.useMemo(function(){var nt=new Set;if(oe.forEach(function(we){nt.add(we.value)}),se&&Fe!==null)for(var st=Dt;st<=Re;)nt.add(st),st+=Fe;return Array.from(nt)},[Dt,Re,Fe,se,oe]);return ve.createElement("div",{className:"".concat(te,"-step")},qe.map(function(nt){return ve.createElement(et,{prefixCls:te,key:nt,value:nt,style:re,activeStyle:le})}))},ln=wt,ke=function(ne){var te=ne.prefixCls,oe=ne.style,se=ne.start,re=ne.end,le=ne.index,me=ne.onStartMove,Dt=ne.replaceCls,Re=ve.useContext(He),Fe=Re.direction,qe=Re.min,nt=Re.max,st=Re.disabled,we=Re.range,Be=Re.classNames,It="".concat(te,"-track"),Mt=Ne(se,qe,nt),kt=Ne(re,qe,nt),Yt=function(_e){!st&&me&&me(_e,-1)},At={};switch(Fe){case"rtl":At.right="".concat(Mt*100,"%"),At.width="".concat(kt*100-Mt*100,"%");break;case"btt":At.bottom="".concat(Mt*100,"%"),At.height="".concat(kt*100-Mt*100,"%");break;case"ttb":At.top="".concat(Mt*100,"%"),At.height="".concat(kt*100-Mt*100,"%");break;default:At.left="".concat(Mt*100,"%"),At.width="".concat(kt*100-Mt*100,"%")}var vn=Dt||Ee()(It,(0,Pe.Z)((0,Pe.Z)({},"".concat(It,"-").concat(le+1),le!==null&&we),"".concat(te,"-track-draggable"),me),Be.track);return ve.createElement("div",{className:vn,style:(0,b.Z)((0,b.Z)({},At),oe),onMouseDown:Yt,onTouchStart:Yt})},he=ke,Ct=function(ne){var te=ne.prefixCls,oe=ne.style,se=ne.values,re=ne.startPoint,le=ne.onStartMove,me=ve.useContext(He),Dt=me.included,Re=me.range,Fe=me.min,qe=me.styles,nt=me.classNames,st=ve.useMemo(function(){if(!Re){if(se.length===0)return[];var Be=re!=null?re:Fe,It=se[0];return[{start:Math.min(Be,It),end:Math.max(Be,It)}]}for(var Mt=[],kt=0;kt<se.length-1;kt+=1)Mt.push({start:se[kt],end:se[kt+1]});return Mt},[se,Re,re,Fe]);if(!Dt)return null;var we=st!=null&&st.length&&(nt.tracks||qe.tracks)?ve.createElement(he,{index:null,prefixCls:te,start:st[0].start,end:st[st.length-1].end,replaceCls:Ee()(nt.tracks,"".concat(te,"-tracks")),style:qe.tracks}):null;return ve.createElement(ve.Fragment,null,we,st.map(function(Be,It){var Mt=Be.start,kt=Be.end;return ve.createElement(he,{index:It,prefixCls:te,style:(0,b.Z)((0,b.Z)({},pt(oe,It)),qe.track),start:Mt,end:kt,key:It,onStartMove:le})}))},Pt=Ct,Kt=z(34280),Ce=130;function ot(ie){var ne="targetTouches"in ie?ie.targetTouches[0]:ie;return{pageX:ne.pageX,pageY:ne.pageY}}function lt(ie,ne,te,oe,se,re,le,me,Dt,Re,Fe){var qe=ve.useState(null),nt=(0,xe.Z)(qe,2),st=nt[0],we=nt[1],Be=ve.useState(-1),It=(0,xe.Z)(Be,2),Mt=It[0],kt=It[1],Yt=ve.useState(!1),At=(0,xe.Z)(Yt,2),vn=At[0],Gt=At[1],_e=ve.useState(te),Bt=(0,xe.Z)(_e,2),Ut=Bt[0],on=Bt[1],Le=ve.useState(te),xt=(0,xe.Z)(Le,2),zt=xt[0],nn=xt[1],Sn=ve.useRef(null),zn=ve.useRef(null),rr=ve.useRef(null),pr=ve.useContext(Ke),kn=pr.onDragStart,dr=pr.onDragChange;(0,Kt.Z)(function(){Mt===-1&&on(te)},[te,Mt]),ve.useEffect(function(){return function(){document.removeEventListener("mousemove",Sn.current),document.removeEventListener("mouseup",zn.current),rr.current&&(rr.current.removeEventListener("touchmove",Sn.current),rr.current.removeEventListener("touchend",zn.current))}},[]);var Ye=function(En,Fn,Tn){Fn!==void 0&&we(Fn),on(En);var _t=En;Tn&&(_t=En.filter(function(Cn,Bn){return Bn!==Mt})),le(_t),dr&&dr({rawValues:En,deleteIndex:Tn?Mt:-1,draggingIndex:Mt,draggingValue:Fn})},Qt=(0,Qe.Z)(function(qt,En,Fn){if(qt===-1){var Tn=zt[0],_t=zt[zt.length-1],Cn=oe-Tn,Bn=se-_t,Ln=En*(se-oe);Ln=Math.max(Ln,Cn),Ln=Math.min(Ln,Bn);var Zn=re(Tn+Ln);Ln=Zn-Tn;var yr=zt.map(function(un){return un+Ln});Ye(yr)}else{var ur=(se-oe)*En,Jt=(0,fe.Z)(Ut);Jt[qt]=zt[qt];var wn=Dt(Jt,ur,qt,"dist");Ye(wn.values,wn.value,Fn)}}),yn=function(En,Fn,Tn){En.stopPropagation();var _t=Tn||te,Cn=_t[Fn];kt(Fn),we(Cn),nn(_t),on(_t),Gt(!1);var Bn=ot(En),Ln=Bn.pageX,Zn=Bn.pageY,yr=!1;kn&&kn({rawValues:_t,draggingIndex:Fn,draggingValue:Cn});var ur=function(un){un.preventDefault();var sn=ot(un),We=sn.pageX,dt=sn.pageY,ze=We-Ln,gt=dt-Zn,$e=ie.current.getBoundingClientRect(),St=$e.width,Oe=$e.height,Ft,Zt;switch(ne){case"btt":Ft=-gt/Oe,Zt=ze;break;case"ttb":Ft=gt/Oe,Zt=ze;break;case"rtl":Ft=-ze/St,Zt=gt;break;default:Ft=ze/St,Zt=gt}yr=Re?Math.abs(Zt)>Ce&&Fe<Ut.length:!1,Gt(yr),Qt(Fn,Ft,yr)},Jt=function wn(un){un.preventDefault(),document.removeEventListener("mouseup",wn),document.removeEventListener("mousemove",ur),rr.current&&(rr.current.removeEventListener("touchmove",Sn.current),rr.current.removeEventListener("touchend",zn.current)),Sn.current=null,zn.current=null,rr.current=null,me(yr),kt(-1),Gt(!1)};document.addEventListener("mouseup",Jt),document.addEventListener("mousemove",ur),En.currentTarget.addEventListener("touchend",Jt),En.currentTarget.addEventListener("touchmove",ur),Sn.current=ur,zn.current=Jt,rr.current=En.currentTarget},xn=ve.useMemo(function(){var qt=(0,fe.Z)(te).sort(function(Cn,Bn){return Cn-Bn}),En=(0,fe.Z)(Ut).sort(function(Cn,Bn){return Cn-Bn}),Fn={};En.forEach(function(Cn){Fn[Cn]=(Fn[Cn]||0)+1}),qt.forEach(function(Cn){Fn[Cn]=(Fn[Cn]||0)-1});var Tn=Re?1:0,_t=Object.values(Fn).reduce(function(Cn,Bn){return Cn+Math.abs(Bn)},0);return _t<=Tn?Ut:te},[te,Ut,Re]);return[Mt,st,vn,xn,yn]}var Wt=lt;function ct(ie,ne,te,oe,se,re){var le=ve.useCallback(function(st){return Math.max(ie,Math.min(ne,st))},[ie,ne]),me=ve.useCallback(function(st){if(te!==null){var we=ie+Math.round((le(st)-ie)/te)*te,Be=function(Yt){return(String(Yt).split(".")[1]||"").length},It=Math.max(Be(te),Be(ne),Be(ie)),Mt=Number(we.toFixed(It));return ie<=Mt&&Mt<=ne?Mt:null}return null},[te,ie,ne,le]),Dt=ve.useCallback(function(st){var we=le(st),Be=oe.map(function(kt){return kt.value});te!==null&&Be.push(me(st)),Be.push(ie,ne);var It=Be[0],Mt=ne-ie;return Be.forEach(function(kt){var Yt=Math.abs(we-kt);Yt<=Mt&&(It=kt,Mt=Yt)}),It},[ie,ne,oe,te,le,me]),Re=function st(we,Be,It){var Mt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof Be=="number"){var kt,Yt=we[It],At=Yt+Be,vn=[];oe.forEach(function(on){vn.push(on.value)}),vn.push(ie,ne),vn.push(me(Yt));var Gt=Be>0?1:-1;Mt==="unit"?vn.push(me(Yt+Gt*te)):vn.push(me(At)),vn=vn.filter(function(on){return on!==null}).filter(function(on){return Be<0?on<=Yt:on>=Yt}),Mt==="unit"&&(vn=vn.filter(function(on){return on!==Yt}));var _e=Mt==="unit"?Yt:At;kt=vn[0];var Bt=Math.abs(kt-_e);if(vn.forEach(function(on){var Le=Math.abs(on-_e);Le<Bt&&(kt=on,Bt=Le)}),kt===void 0)return Be<0?ie:ne;if(Mt==="dist")return kt;if(Math.abs(Be)>1){var Ut=(0,fe.Z)(we);return Ut[It]=kt,st(Ut,Be-Gt,It,Mt)}return kt}else{if(Be==="min")return ie;if(Be==="max")return ne}},Fe=function(we,Be,It){var Mt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",kt=we[It],Yt=Re(we,Be,It,Mt);return{value:Yt,changed:Yt!==kt}},qe=function(we){return re===null&&we===0||typeof re=="number"&&we<re},nt=function(we,Be,It){var Mt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",kt=we.map(Dt),Yt=kt[It],At=Re(kt,Be,It,Mt);if(kt[It]=At,se===!1){var vn=re||0;It>0&&kt[It-1]!==Yt&&(kt[It]=Math.max(kt[It],kt[It-1]+vn)),It<kt.length-1&&kt[It+1]!==Yt&&(kt[It]=Math.min(kt[It],kt[It+1]-vn))}else if(typeof re=="number"||re===null){for(var Gt=It+1;Gt<kt.length;Gt+=1)for(var _e=!0;qe(kt[Gt]-kt[Gt-1])&&_e;){var Bt=Fe(kt,1,Gt);kt[Gt]=Bt.value,_e=Bt.changed}for(var Ut=It;Ut>0;Ut-=1)for(var on=!0;qe(kt[Ut]-kt[Ut-1])&&on;){var Le=Fe(kt,-1,Ut-1);kt[Ut-1]=Le.value,on=Le.changed}for(var xt=kt.length-1;xt>0;xt-=1)for(var zt=!0;qe(kt[xt]-kt[xt-1])&&zt;){var nn=Fe(kt,-1,xt-1);kt[xt-1]=nn.value,zt=nn.changed}for(var Sn=0;Sn<kt.length-1;Sn+=1)for(var zn=!0;qe(kt[Sn+1]-kt[Sn])&&zn;){var rr=Fe(kt,1,Sn+1);kt[Sn+1]=rr.value,zn=rr.changed}}return{value:kt[It],values:kt}};return[Dt,nt]}function $t(ie){return(0,ve.useMemo)(function(){if(ie===!0||!ie)return[!!ie,!1,!1,0];var ne=ie.editable,te=ie.draggableTrack,oe=ie.minCount,se=ie.maxCount;return[!0,ne,!ne&&te,oe||0,se]},[ie])}var vt=ve.forwardRef(function(ie,ne){var te=ie.prefixCls,oe=te===void 0?"rc-slider":te,se=ie.className,re=ie.style,le=ie.classNames,me=ie.styles,Dt=ie.id,Re=ie.disabled,Fe=Re===void 0?!1:Re,qe=ie.keyboard,nt=qe===void 0?!0:qe,st=ie.autoFocus,we=ie.onFocus,Be=ie.onBlur,It=ie.min,Mt=It===void 0?0:It,kt=ie.max,Yt=kt===void 0?100:kt,At=ie.step,vn=At===void 0?1:At,Gt=ie.value,_e=ie.defaultValue,Bt=ie.range,Ut=ie.count,on=ie.onChange,Le=ie.onBeforeChange,xt=ie.onAfterChange,zt=ie.onChangeComplete,nn=ie.allowCross,Sn=nn===void 0?!0:nn,zn=ie.pushable,rr=zn===void 0?!1:zn,pr=ie.reverse,kn=ie.vertical,dr=ie.included,Ye=dr===void 0?!0:dr,Qt=ie.startPoint,yn=ie.trackStyle,xn=ie.handleStyle,qt=ie.railStyle,En=ie.dotStyle,Fn=ie.activeDotStyle,Tn=ie.marks,_t=ie.dots,Cn=ie.handleRender,Bn=ie.activeHandleRender,Ln=ie.track,Zn=ie.tabIndex,yr=Zn===void 0?0:Zn,ur=ie.ariaLabelForHandle,Jt=ie.ariaLabelledByForHandle,wn=ie.ariaRequired,un=ie.ariaValueTextFormatterForHandle,sn=ve.useRef(null),We=ve.useRef(null),dt=ve.useMemo(function(){return kn?pr?"ttb":"btt":pr?"rtl":"ltr"},[pr,kn]),ze=$t(Bt),gt=(0,xe.Z)(ze,5),$e=gt[0],St=gt[1],Oe=gt[2],Ft=gt[3],Zt=gt[4],De=ve.useMemo(function(){return isFinite(Mt)?Mt:0},[Mt]),Te=ve.useMemo(function(){return isFinite(Yt)?Yt:100},[Yt]),Me=ve.useMemo(function(){return vn!==null&&vn<=0?1:vn},[vn]),je=ve.useMemo(function(){return typeof rr=="boolean"?rr?Me:!1:rr>=0?rr:!1},[rr,Me]),it=ve.useMemo(function(){return Object.keys(Tn||{}).map(function(Rn){var bn=Tn[Rn],ir={value:Number(Rn)};return bn&&(0,rt.Z)(bn)==="object"&&!ve.isValidElement(bn)&&("label"in bn||"style"in bn)?(ir.style=bn.style,ir.label=bn.label):ir.label=bn,ir}).filter(function(Rn){var bn=Rn.label;return bn||typeof bn=="number"}).sort(function(Rn,bn){return Rn.value-bn.value})},[Tn]),an=ct(De,Te,Me,it,Sn,je),dn=(0,xe.Z)(an,2),hn=dn[0],$n=dn[1],ar=(0,Ae.Z)(_e,{value:Gt}),Cr=(0,xe.Z)(ar,2),qn=Cr[0],Gn=Cr[1],Jn=ve.useMemo(function(){var Rn=qn==null?[]:Array.isArray(qn)?qn:[qn],bn=(0,xe.Z)(Rn,1),ir=bn[0],mr=ir===void 0?De:ir,On=qn===null?[]:[mr];if($e){if(On=(0,fe.Z)(Rn),Ut||qn===void 0){var Hn=Ut>=0?Ut+1:2;for(On=On.slice(0,Hn);On.length<Hn;){var Xn;On.push((Xn=On[On.length-1])!==null&&Xn!==void 0?Xn:De)}}On.sort(function(vr,Ar){return vr-Ar})}return On.forEach(function(vr,Ar){On[Ar]=hn(vr)}),On},[qn,$e,De,Ut,hn]),gr=function(bn){return $e?bn:bn[0]},Ge=(0,Qe.Z)(function(Rn){var bn=(0,fe.Z)(Rn).sort(function(ir,mr){return ir-mr});on&&!(0,de.Z)(bn,Jn,!0)&&on(gr(bn)),Gn(bn)}),bt=(0,Qe.Z)(function(Rn){Rn&&sn.current.hideHelp();var bn=gr(Jn);xt==null||xt(bn),(0,tt.ZP)(!xt,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),zt==null||zt(bn)}),Vt=function(bn){if(!(Fe||!St||Jn.length<=Ft)){var ir=(0,fe.Z)(Jn);ir.splice(bn,1),Le==null||Le(gr(ir)),Ge(ir);var mr=Math.max(0,bn-1);sn.current.hideHelp(),sn.current.focus(mr)}},Ht=Wt(We,dt,Jn,De,Te,hn,Ge,bt,$n,St,Ft),tn=(0,xe.Z)(Ht,5),An=tn[0],Vn=tn[1],tr=tn[2],Nn=tn[3],or=tn[4],cr=function(bn,ir){if(!Fe){var mr=(0,fe.Z)(Jn),On=0,Hn=0,Xn=Te-De;Jn.forEach(function(Ur,jr){var ro=Math.abs(bn-Ur);ro<=Xn&&(Xn=ro,On=jr),Ur<bn&&(Hn=jr)});var vr=On;St&&Xn!==0&&(!Zt||Jn.length<Zt)?(mr.splice(Hn+1,0,bn),vr=Hn+1):mr[On]=bn,$e&&!Jn.length&&Ut===void 0&&mr.push(bn);var Ar=gr(mr);if(Le==null||Le(Ar),Ge(mr),ir){var Fr,Rr;(Fr=document.activeElement)===null||Fr===void 0||(Rr=Fr.blur)===null||Rr===void 0||Rr.call(Fr),sn.current.focus(vr),or(ir,vr,mr)}else xt==null||xt(Ar),(0,tt.ZP)(!xt,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),zt==null||zt(Ar)}},nr=function(bn){bn.preventDefault();var ir=We.current.getBoundingClientRect(),mr=ir.width,On=ir.height,Hn=ir.left,Xn=ir.top,vr=ir.bottom,Ar=ir.right,Fr=bn.clientX,Rr=bn.clientY,Ur;switch(dt){case"btt":Ur=(vr-Rr)/On;break;case"ttb":Ur=(Rr-Xn)/On;break;case"rtl":Ur=(Ar-Fr)/mr;break;default:Ur=(Fr-Hn)/mr}var jr=De+Ur*(Te-De);cr(hn(jr),bn)},hr=ve.useState(null),lr=(0,xe.Z)(hr,2),Er=lr[0],Ir=lr[1],zr=function(bn,ir){if(!Fe){var mr=$n(Jn,bn,ir);Le==null||Le(gr(Jn)),Ge(mr.values),Ir(mr.value)}};ve.useEffect(function(){if(Er!==null){var Rn=Jn.indexOf(Er);Rn>=0&&sn.current.focus(Rn)}Ir(null)},[Er]);var Pr=ve.useMemo(function(){return Oe&&Me===null?!1:Oe},[Oe,Me]),Or=(0,Qe.Z)(function(Rn,bn){or(Rn,bn),Le==null||Le(gr(Jn))}),Sr=An!==-1;ve.useEffect(function(){if(!Sr){var Rn=Jn.lastIndexOf(Vn);sn.current.focus(Rn)}},[Sr]);var Tr=ve.useMemo(function(){return(0,fe.Z)(Nn).sort(function(Rn,bn){return Rn-bn})},[Nn]),br=ve.useMemo(function(){return $e?[Tr[0],Tr[Tr.length-1]]:[De,Tr[0]]},[Tr,$e,De]),wr=(0,xe.Z)(br,2),_n=wr[0],In=wr[1];ve.useImperativeHandle(ne,function(){return{focus:function(){sn.current.focus(0)},blur:function(){var bn,ir=document,mr=ir.activeElement;(bn=We.current)!==null&&bn!==void 0&&bn.contains(mr)&&(mr==null||mr.blur())}}}),ve.useEffect(function(){st&&sn.current.focus(0)},[]);var er=ve.useMemo(function(){return{min:De,max:Te,direction:dt,disabled:Fe,keyboard:nt,step:Me,included:Ye,includedStart:_n,includedEnd:In,range:$e,tabIndex:yr,ariaLabelForHandle:ur,ariaLabelledByForHandle:Jt,ariaRequired:wn,ariaValueTextFormatterForHandle:un,styles:me||{},classNames:le||{}}},[De,Te,dt,Fe,nt,Me,Ye,_n,In,$e,yr,ur,Jt,wn,un,me,le]);return ve.createElement(He.Provider,{value:er},ve.createElement("div",{ref:We,className:Ee()(oe,se,(0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)({},"".concat(oe,"-disabled"),Fe),"".concat(oe,"-vertical"),kn),"".concat(oe,"-horizontal"),!kn),"".concat(oe,"-with-marks"),it.length)),style:re,onMouseDown:nr,id:Dt},ve.createElement("div",{className:Ee()("".concat(oe,"-rail"),le==null?void 0:le.rail),style:(0,b.Z)((0,b.Z)({},qt),me==null?void 0:me.rail)}),Ln!==!1&&ve.createElement(Pt,{prefixCls:oe,style:yn,values:Jn,startPoint:Qt,onStartMove:Pr?Or:void 0}),ve.createElement(ln,{prefixCls:oe,marks:it,dots:_t,style:En,activeStyle:Fn}),ve.createElement(Et,{ref:sn,prefixCls:oe,style:xn,values:Nn,draggingIndex:An,draggingDelete:tr,onStartMove:Or,onOffsetChange:zr,onFocus:we,onBlur:Be,handleRender:Cn,activeHandleRender:Bn,onChangeComplete:bt,onDelete:St?Vt:void 0}),ve.createElement(ue,{prefixCls:oe,marks:it,onClick:cr})))}),gn=vt,Tt=gn},22711:function(Kn,cn,z){"use strict";z.r(cn),z.d(cn,{ResizableTextArea:function(){return pe},default:function(){return Nt}});var b=z(54476),Pe=z(20068),fe=z(33885),rt=z(94480),xe=z(42978),ge=z(75931),Ee=z(92310),Qe=z.n(Ee),Ae=z(36901),de=z(66003),tt=z(30292),ve=z(18929),Lt=z(59301),at=z(76190),Ve=z(29301),Ne=z(34280),Ze=z(16089),pt=`
|
|
|
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;
|
|
|
`,mt=["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"],Xt={},He;function Ke(et){var wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ln=et.getAttribute("id")||et.getAttribute("data-reactid")||et.getAttribute("name");if(wt&&Xt[ln])return Xt[ln];var ke=window.getComputedStyle(et),he=ke.getPropertyValue("box-sizing")||ke.getPropertyValue("-moz-box-sizing")||ke.getPropertyValue("-webkit-box-sizing"),Ct=parseFloat(ke.getPropertyValue("padding-bottom"))+parseFloat(ke.getPropertyValue("padding-top")),Pt=parseFloat(ke.getPropertyValue("border-bottom-width"))+parseFloat(ke.getPropertyValue("border-top-width")),Kt=mt.map(function(ot){return"".concat(ot,":").concat(ke.getPropertyValue(ot))}).join(";"),Ce={sizingStyle:Kt,paddingSize:Ct,borderSize:Pt,boxSizing:he};return wt&&ln&&(Xt[ln]=Ce),Ce}function ut(et){var wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ln=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,ke=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;He||(He=document.createElement("textarea"),He.setAttribute("tab-index","-1"),He.setAttribute("aria-hidden","true"),He.setAttribute("name","hiddenTextarea"),document.body.appendChild(He)),et.getAttribute("wrap")?He.setAttribute("wrap",et.getAttribute("wrap")):He.removeAttribute("wrap");var he=Ke(et,wt),Ct=he.paddingSize,Pt=he.borderSize,Kt=he.boxSizing,Ce=he.sizingStyle;He.setAttribute("style","".concat(Ce,";").concat(pt)),He.value=et.value||et.placeholder||"";var ot=void 0,lt=void 0,Wt,ct=He.scrollHeight;if(Kt==="border-box"?ct+=Pt:Kt==="content-box"&&(ct-=Ct),ln!==null||ke!==null){He.value=" ";var $t=He.scrollHeight-Ct;ln!==null&&(ot=$t*ln,Kt==="border-box"&&(ot=ot+Ct+Pt),ct=Math.max(ot,ct)),ke!==null&&(lt=$t*ke,Kt==="border-box"&&(lt=lt+Ct+Pt),Wt=ct>lt?"":"hidden",ct=Math.min(lt,ct))}var vt={height:ct,overflowY:Wt,resize:"none"};return ot&&(vt.minHeight=ot),lt&&(vt.maxHeight=lt),vt}var ft=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],jt=0,Ot=1,yt=2,Et=Lt.forwardRef(function(et,wt){var ln=et,ke=ln.prefixCls,he=ln.defaultValue,Ct=ln.value,Pt=ln.autoSize,Kt=ln.onResize,Ce=ln.className,ot=ln.style,lt=ln.disabled,Wt=ln.onChange,ct=ln.onInternalAutoSize,$t=(0,ge.Z)(ln,ft),vt=(0,ve.Z)(he,{value:Ct,postState:function(Bt){return Bt!=null?Bt:""}}),gn=(0,xe.Z)(vt,2),Tt=gn[0],ie=gn[1],ne=function(Bt){ie(Bt.target.value),Wt==null||Wt(Bt)},te=Lt.useRef();Lt.useImperativeHandle(wt,function(){return{textArea:te.current}});var oe=Lt.useMemo(function(){return Pt&&(0,at.Z)(Pt)==="object"?[Pt.minRows,Pt.maxRows]:[]},[Pt]),se=(0,xe.Z)(oe,2),re=se[0],le=se[1],me=!!Pt,Dt=function(){try{if(document.activeElement===te.current){var Bt=te.current,Ut=Bt.selectionStart,on=Bt.selectionEnd,Le=Bt.scrollTop;te.current.setSelectionRange(Ut,on),te.current.scrollTop=Le}}catch(xt){}},Re=Lt.useState(yt),Fe=(0,xe.Z)(Re,2),qe=Fe[0],nt=Fe[1],st=Lt.useState(),we=(0,xe.Z)(st,2),Be=we[0],It=we[1],Mt=function(){nt(jt)};(0,Ne.Z)(function(){me&&Mt()},[Ct,re,le,me]),(0,Ne.Z)(function(){if(qe===jt)nt(Ot);else if(qe===Ot){var _e=ut(te.current,!1,re,le);nt(yt),It(_e)}else Dt()},[qe]);var kt=Lt.useRef(),Yt=function(){Ze.Z.cancel(kt.current)},At=function(Bt){qe===yt&&(Kt==null||Kt(Bt),Pt&&(Yt(),kt.current=(0,Ze.Z)(function(){Mt()})))};Lt.useEffect(function(){return Yt},[]);var vn=me?Be:null,Gt=(0,fe.Z)((0,fe.Z)({},ot),vn);return(qe===jt||qe===Ot)&&(Gt.overflowY="hidden",Gt.overflowX="hidden"),Lt.createElement(Ve.Z,{onResize:At,disabled:!(Pt||Kt)},Lt.createElement("textarea",(0,b.Z)({},$t,{ref:te,style:Gt,className:Qe()(ke,Ce,(0,Pe.Z)({},"".concat(ke,"-disabled"),lt)),disabled:lt,value:Tt,onChange:ne})))}),pe=Et,Je=["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"],Xe=Lt.forwardRef(function(et,wt){var ln,ke=et.defaultValue,he=et.value,Ct=et.onFocus,Pt=et.onBlur,Kt=et.onChange,Ce=et.allowClear,ot=et.maxLength,lt=et.onCompositionStart,Wt=et.onCompositionEnd,ct=et.suffix,$t=et.prefixCls,vt=$t===void 0?"rc-textarea":$t,gn=et.showCount,Tt=et.count,ie=et.className,ne=et.style,te=et.disabled,oe=et.hidden,se=et.classNames,re=et.styles,le=et.onResize,me=et.onClear,Dt=et.onPressEnter,Re=et.readOnly,Fe=et.autoSize,qe=et.onKeyDown,nt=(0,ge.Z)(et,Je),st=(0,ve.Z)(ke,{value:he,defaultValue:ke}),we=(0,xe.Z)(st,2),Be=we[0],It=we[1],Mt=Be==null?"":String(Be),kt=Lt.useState(!1),Yt=(0,xe.Z)(kt,2),At=Yt[0],vn=Yt[1],Gt=Lt.useRef(!1),_e=Lt.useState(null),Bt=(0,xe.Z)(_e,2),Ut=Bt[0],on=Bt[1],Le=(0,Lt.useRef)(null),xt=(0,Lt.useRef)(null),zt=function(){var wn;return(wn=xt.current)===null||wn===void 0?void 0:wn.textArea},nn=function(){zt().focus()};(0,Lt.useImperativeHandle)(wt,function(){var Jt;return{resizableTextArea:xt.current,focus:nn,blur:function(){zt().blur()},nativeElement:((Jt=Le.current)===null||Jt===void 0?void 0:Jt.nativeElement)||zt()}}),(0,Lt.useEffect)(function(){vn(function(Jt){return!te&&Jt})},[te]);var Sn=Lt.useState(null),zn=(0,xe.Z)(Sn,2),rr=zn[0],pr=zn[1];Lt.useEffect(function(){if(rr){var Jt;(Jt=zt()).setSelectionRange.apply(Jt,(0,rt.Z)(rr))}},[rr]);var kn=(0,de.Z)(Tt,gn),dr=(ln=kn.max)!==null&&ln!==void 0?ln:ot,Ye=Number(dr)>0,Qt=kn.strategy(Mt),yn=!!dr&&Qt>dr,xn=function(wn,un){var sn=un;!Gt.current&&kn.exceedFormatter&&kn.max&&kn.strategy(un)>kn.max&&(sn=kn.exceedFormatter(un,{max:kn.max}),un!==sn&&pr([zt().selectionStart||0,zt().selectionEnd||0])),It(sn),(0,tt.rJ)(wn.currentTarget,wn,Kt,sn)},qt=function(wn){Gt.current=!0,lt==null||lt(wn)},En=function(wn){Gt.current=!1,xn(wn,wn.currentTarget.value),Wt==null||Wt(wn)},Fn=function(wn){xn(wn,wn.target.value)},Tn=function(wn){wn.key==="Enter"&&Dt&&Dt(wn),qe==null||qe(wn)},_t=function(wn){vn(!0),Ct==null||Ct(wn)},Cn=function(wn){vn(!1),Pt==null||Pt(wn)},Bn=function(wn){It(""),nn(),(0,tt.rJ)(zt(),wn,Kt)},Ln=ct,Zn;kn.show&&(kn.showFormatter?Zn=kn.showFormatter({value:Mt,count:Qt,maxLength:dr}):Zn="".concat(Qt).concat(Ye?" / ".concat(dr):""),Ln=Lt.createElement(Lt.Fragment,null,Ln,Lt.createElement("span",{className:Qe()("".concat(vt,"-data-count"),se==null?void 0:se.count),style:re==null?void 0:re.count},Zn)));var yr=function(wn){var un;le==null||le(wn),(un=zt())!==null&&un!==void 0&&un.style.height&&on(!0)},ur=!Fe&&!gn&&!Ce;return Lt.createElement(Ae.BaseInput,{ref:Le,value:Mt,allowClear:Ce,handleReset:Bn,suffix:Ln,prefixCls:vt,classNames:(0,fe.Z)((0,fe.Z)({},se),{},{affixWrapper:Qe()(se==null?void 0:se.affixWrapper,(0,Pe.Z)((0,Pe.Z)({},"".concat(vt,"-show-count"),gn),"".concat(vt,"-textarea-allow-clear"),Ce))}),disabled:te,focused:At,className:Qe()(ie,yn&&"".concat(vt,"-out-of-range")),style:(0,fe.Z)((0,fe.Z)({},ne),Ut&&!ur?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Zn=="string"?Zn:void 0}},hidden:oe,readOnly:Re,onClear:me},Lt.createElement(pe,(0,b.Z)({},nt,{autoSize:Fe,maxLength:ot,onKeyDown:Tn,onChange:Fn,onFocus:_t,onBlur:Cn,onCompositionStart:qt,onCompositionEnd:En,className:Qe()(se==null?void 0:se.textarea),style:(0,fe.Z)((0,fe.Z)({},re==null?void 0:re.textarea),{},{resize:ne==null?void 0:ne.resize}),disabled:te,prefixCls:vt,onResize:yr,ref:xt,readOnly:Re})))}),ue=Xe,Nt=ue},639:function(Kn,cn,z){"use strict";z.d(cn,{Z:function(){return Xt}});var b=z(54476),Pe=z(20068),fe=z(33885),rt=z(42978),xe=z(75931),ge=z(59301),Ee=z(92310),Qe=z.n(Ee),Ae=z(26112),de=z(30699),tt=function(Ke){for(var ut=Ke.prefixCls,ft=Ke.level,jt=Ke.isStart,Ot=Ke.isEnd,yt="".concat(ut,"-indent-unit"),Et=[],pe=0;pe<ft;pe+=1)Et.push(ge.createElement("span",{key:pe,className:Qe()(yt,(0,Pe.Z)((0,Pe.Z)({},"".concat(yt,"-start"),jt[pe]),"".concat(yt,"-end"),Ot[pe]))}));return ge.createElement("span",{"aria-hidden":"true",className:"".concat(ut,"-indent")},Et)},ve=ge.memo(tt),Lt=z(65065),at=z(34061),Ve=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],Ne="open",Ze="close",pt="---",mt=function(Ke){var ut,ft,jt,Ot=Ke.eventKey,yt=Ke.className,Et=Ke.style,pe=Ke.dragOver,Je=Ke.dragOverGapTop,Xe=Ke.dragOverGapBottom,ue=Ke.isLeaf,Nt=Ke.isStart,et=Ke.isEnd,wt=Ke.expanded,ln=Ke.selected,ke=Ke.checked,he=Ke.halfChecked,Ct=Ke.loading,Pt=Ke.domRef,Kt=Ke.active,Ce=Ke.data,ot=Ke.onMouseMove,lt=Ke.selectable,Wt=(0,xe.Z)(Ke,Ve),ct=ge.useContext(de.k),$t=ge.useContext(de.y),vt=ge.useRef(null),gn=ge.useState(!1),Tt=(0,rt.Z)(gn,2),ie=Tt[0],ne=Tt[1],te=!!(ct.disabled||Ke.disabled||(ut=$t.nodeDisabled)!==null&&ut!==void 0&&ut.call($t,Ce)),oe=ge.useMemo(function(){return!ct.checkable||Ke.checkable===!1?!1:ct.checkable},[ct.checkable,Ke.checkable]),se=function(Qt){te||ct.onNodeSelect(Qt,(0,at.F)(Ke))},re=function(Qt){te||!oe||Ke.disableCheckbox||ct.onNodeCheck(Qt,(0,at.F)(Ke),!ke)},le=ge.useMemo(function(){return typeof lt=="boolean"?lt:ct.selectable},[lt,ct.selectable]),me=function(Qt){ct.onNodeClick(Qt,(0,at.F)(Ke)),le?se(Qt):re(Qt)},Dt=function(Qt){ct.onNodeDoubleClick(Qt,(0,at.F)(Ke))},Re=function(Qt){ct.onNodeMouseEnter(Qt,(0,at.F)(Ke))},Fe=function(Qt){ct.onNodeMouseLeave(Qt,(0,at.F)(Ke))},qe=function(Qt){ct.onNodeContextMenu(Qt,(0,at.F)(Ke))},nt=ge.useMemo(function(){return!!(ct.draggable&&(!ct.draggable.nodeDraggable||ct.draggable.nodeDraggable(Ce)))},[ct.draggable,Ce]),st=function(Qt){Qt.stopPropagation(),ne(!0),ct.onNodeDragStart(Qt,Ke);try{Qt.dataTransfer.setData("text/plain","")}catch(yn){}},we=function(Qt){Qt.preventDefault(),Qt.stopPropagation(),ct.onNodeDragEnter(Qt,Ke)},Be=function(Qt){Qt.preventDefault(),Qt.stopPropagation(),ct.onNodeDragOver(Qt,Ke)},It=function(Qt){Qt.stopPropagation(),ct.onNodeDragLeave(Qt,Ke)},Mt=function(Qt){Qt.stopPropagation(),ne(!1),ct.onNodeDragEnd(Qt,Ke)},kt=function(Qt){Qt.preventDefault(),Qt.stopPropagation(),ne(!1),ct.onNodeDrop(Qt,Ke)},Yt=function(Qt){Ct||ct.onNodeExpand(Qt,(0,at.F)(Ke))},At=ge.useMemo(function(){var Ye=(0,Lt.Z)(ct.keyEntities,Ot)||{},Qt=Ye.children;return!!(Qt||[]).length},[ct.keyEntities,Ot]),vn=ge.useMemo(function(){return ue===!1?!1:ue||!ct.loadData&&!At||ct.loadData&&Ke.loaded&&!At},[ue,ct.loadData,At,Ke.loaded]);ge.useEffect(function(){Ct||typeof ct.loadData=="function"&&wt&&!vn&&!Ke.loaded&&ct.onNodeLoad((0,at.F)(Ke))},[Ct,ct.loadData,ct.onNodeLoad,wt,vn,Ke]);var Gt=ge.useMemo(function(){var Ye;return(Ye=ct.draggable)!==null&&Ye!==void 0&&Ye.icon?ge.createElement("span",{className:"".concat(ct.prefixCls,"-draggable-icon")},ct.draggable.icon):null},[ct.draggable]),_e=function(Qt){var yn=Ke.switcherIcon||ct.switcherIcon;return typeof yn=="function"?yn((0,fe.Z)((0,fe.Z)({},Ke),{},{isLeaf:Qt})):yn},Bt=function(){if(vn){var Qt=_e(!0);return Qt!==!1?ge.createElement("span",{className:Qe()("".concat(ct.prefixCls,"-switcher"),"".concat(ct.prefixCls,"-switcher-noop"))},Qt):null}var yn=_e(!1);return yn!==!1?ge.createElement("span",{onClick:Yt,className:Qe()("".concat(ct.prefixCls,"-switcher"),"".concat(ct.prefixCls,"-switcher_").concat(wt?Ne:Ze))},yn):null},Ut=ge.useMemo(function(){if(!oe)return null;var Ye=typeof oe!="boolean"?oe:null;return ge.createElement("span",{className:Qe()("".concat(ct.prefixCls,"-checkbox"),(0,Pe.Z)((0,Pe.Z)((0,Pe.Z)({},"".concat(ct.prefixCls,"-checkbox-checked"),ke),"".concat(ct.prefixCls,"-checkbox-indeterminate"),!ke&&he),"".concat(ct.prefixCls,"-checkbox-disabled"),te||Ke.disableCheckbox)),onClick:re,role:"checkbox","aria-checked":he?"mixed":ke,"aria-disabled":te||Ke.disableCheckbox,"aria-label":"Select ".concat(typeof Ke.title=="string"?Ke.title:"tree node")},Ye)},[oe,ke,he,te,Ke.disableCheckbox,Ke.title]),on=ge.useMemo(function(){return vn?null:wt?Ne:Ze},[vn,wt]),Le=ge.useMemo(function(){return ge.createElement("span",{className:Qe()("".concat(ct.prefixCls,"-iconEle"),"".concat(ct.prefixCls,"-icon__").concat(on||"docu"),(0,Pe.Z)({},"".concat(ct.prefixCls,"-icon_loading"),Ct))})},[ct.prefixCls,on,Ct]),xt=ge.useMemo(function(){var Ye=!!ct.draggable,Qt=!Ke.disabled&&Ye&&ct.dragOverNodeKey===Ot;return Qt?ct.dropIndicatorRender({dropPosition:ct.dropPosition,dropLevelOffset:ct.dropLevelOffset,indent:ct.indent,prefixCls:ct.prefixCls,direction:ct.direction}):null},[ct.dropPosition,ct.dropLevelOffset,ct.indent,ct.prefixCls,ct.direction,ct.draggable,ct.dragOverNodeKey,ct.dropIndicatorRender]),zt=ge.useMemo(function(){var Ye=Ke.title,Qt=Ye===void 0?pt:Ye,yn="".concat(ct.prefixCls,"-node-content-wrapper"),xn;if(ct.showIcon){var qt=Ke.icon||ct.icon;xn=qt?ge.createElement("span",{className:Qe()("".concat(ct.prefixCls,"-iconEle"),"".concat(ct.prefixCls,"-icon__customize"))},typeof qt=="function"?qt(Ke):qt):Le}else ct.loadData&&Ct&&(xn=Le);var En;return typeof Qt=="function"?En=Qt(Ce):ct.titleRender?En=ct.titleRender(Ce):En=Qt,ge.createElement("span",{ref:vt,title:typeof Qt=="string"?Qt:"",className:Qe()(yn,"".concat(yn,"-").concat(on||"normal"),(0,Pe.Z)({},"".concat(ct.prefixCls,"-node-selected"),!te&&(ln||ie))),onMouseEnter:Re,onMouseLeave:Fe,onContextMenu:qe,onClick:me,onDoubleClick:Dt},xn,ge.createElement("span",{className:"".concat(ct.prefixCls,"-title")},En),xt)},[ct.prefixCls,ct.showIcon,Ke,ct.icon,Le,ct.titleRender,Ce,on,Re,Fe,qe,me,Dt]),nn=(0,Ae.Z)(Wt,{aria:!0,data:!0}),Sn=(0,Lt.Z)(ct.keyEntities,Ot)||{},zn=Sn.level,rr=et[et.length-1],pr=!te&&nt,kn=ct.draggingNodeKey===Ot,dr=lt!==void 0?{"aria-selected":!!lt}:void 0;return ge.createElement("div",(0,b.Z)({ref:Pt,role:"treeitem","aria-expanded":ue?void 0:wt,className:Qe()(yt,"".concat(ct.prefixCls,"-treenode"),(jt={},(0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)(jt,"".concat(ct.prefixCls,"-treenode-disabled"),te),"".concat(ct.prefixCls,"-treenode-switcher-").concat(wt?"open":"close"),!ue),"".concat(ct.prefixCls,"-treenode-checkbox-checked"),ke),"".concat(ct.prefixCls,"-treenode-checkbox-indeterminate"),he),"".concat(ct.prefixCls,"-treenode-selected"),ln),"".concat(ct.prefixCls,"-treenode-loading"),Ct),"".concat(ct.prefixCls,"-treenode-active"),Kt),"".concat(ct.prefixCls,"-treenode-leaf-last"),rr),"".concat(ct.prefixCls,"-treenode-draggable"),nt),"dragging",kn),(0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)(jt,"drop-target",ct.dropTargetKey===Ot),"drop-container",ct.dropContainerKey===Ot),"drag-over",!te&&pe),"drag-over-gap-top",!te&&Je),"drag-over-gap-bottom",!te&&Xe),"filter-node",(ft=ct.filterTreeNode)===null||ft===void 0?void 0:ft.call(ct,(0,at.F)(Ke))),"".concat(ct.prefixCls,"-treenode-leaf"),vn))),style:Et,draggable:pr,onDragStart:pr?st:void 0,onDragEnter:nt?we:void 0,onDragOver:nt?Be:void 0,onDragLeave:nt?It:void 0,onDrop:nt?kt:void 0,onDragEnd:nt?Mt:void 0,onMouseMove:ot},dr,nn),ge.createElement(ve,{prefixCls:ct.prefixCls,level:zn,isStart:Nt,isEnd:et}),Gt,Bt(),Ut,zt)};mt.isTreeNode=1;var Xt=mt},30699:function(Kn,cn,z){"use strict";z.d(cn,{k:function(){return Pe},y:function(){return fe}});var b=z(59301),Pe=b.createContext(null),fe=b.createContext({})},3741:function(Kn,cn,z){"use strict";z.d(cn,{OF:function(){return Ot.Z},y6:function(){return Ze.y},ZP:function(){return te}});var b=z(54476),Pe=z(76190),fe=z(33885),rt=z(94480),xe=z(67732),ge=z(83652),Ee=z(31226),Qe=z(42403),Ae=z(158),de=z(20068),tt=z(92310),ve=z.n(tt),Lt=z(10228),at=z(26112),Ve=z(48736),Ne=z(59301),Ze=z(30699),pt=function(se){var re=se.dropPosition,le=se.dropLevelOffset,me=se.indent,Dt={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(re){case-1:Dt.top=0,Dt.left=-le*me;break;case 1:Dt.bottom=0,Dt.left=-le*me;break;case 0:Dt.bottom=0,Dt.left=me;break}return Ne.createElement("div",{style:Dt})},mt=pt;function Xt(oe){if(oe==null)throw new TypeError("Cannot destructure "+oe)}var He=z(42978),Ke=z(75931),ut=z(34280),ft=z(48911),jt=z(77900),Ot=z(639);function yt(oe,se){var re=Ne.useState(!1),le=(0,He.Z)(re,2),me=le[0],Dt=le[1];(0,ut.Z)(function(){if(me)return oe(),function(){se()}},[me]),(0,ut.Z)(function(){return Dt(!0),function(){Dt(!1)}},[])}var Et=yt,pe=z(34061),Je=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Xe=Ne.forwardRef(function(oe,se){var re=oe.className,le=oe.style,me=oe.motion,Dt=oe.motionNodes,Re=oe.motionType,Fe=oe.onMotionStart,qe=oe.onMotionEnd,nt=oe.active,st=oe.treeNodeRequiredProps,we=(0,Ke.Z)(oe,Je),Be=Ne.useState(!0),It=(0,He.Z)(Be,2),Mt=It[0],kt=It[1],Yt=Ne.useContext(Ze.k),At=Yt.prefixCls,vn=Dt&&Re!=="hide";(0,ut.Z)(function(){Dt&&vn!==Mt&&kt(vn)},[Dt]);var Gt=function(){Dt&&Fe()},_e=Ne.useRef(!1),Bt=function(){Dt&&!_e.current&&(_e.current=!0,qe())};Et(Gt,Bt);var Ut=function(Le){vn===Le&&Bt()};return Dt?Ne.createElement(jt.default,(0,b.Z)({ref:se,visible:Mt},me,{motionAppear:Re==="show",onVisibleChanged:Ut}),function(on,Le){var xt=on.className,zt=on.style;return Ne.createElement("div",{ref:Le,className:ve()("".concat(At,"-treenode-motion"),xt),style:zt},Dt.map(function(nn){var Sn=Object.assign({},(Xt(nn.data),nn.data)),zn=nn.title,rr=nn.key,pr=nn.isStart,kn=nn.isEnd;delete Sn.children;var dr=(0,pe.H8)(rr,st);return Ne.createElement(Ot.Z,(0,b.Z)({},Sn,dr,{title:zn,active:nt,data:nn.data,key:rr,isStart:pr,isEnd:kn}))}))}):Ne.createElement(Ot.Z,(0,b.Z)({domRef:se,className:re,style:le},we,{active:nt}))}),ue=Xe;function Nt(){var oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],re=oe.length,le=se.length;if(Math.abs(re-le)!==1)return{add:!1,key:null};function me(Dt,Re){var Fe=new Map;Dt.forEach(function(nt){Fe.set(nt,!0)});var qe=Re.filter(function(nt){return!Fe.has(nt)});return qe.length===1?qe[0]:null}return re<le?{add:!0,key:me(oe,se)}:{add:!1,key:me(se,oe)}}function et(oe,se,re){var le=oe.findIndex(function(Fe){return Fe.key===re}),me=oe[le+1],Dt=se.findIndex(function(Fe){return Fe.key===re});if(me){var Re=se.findIndex(function(Fe){return Fe.key===me.key});return se.slice(Dt+1,Re)}return se.slice(Dt+1)}var wt=["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"],ln={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},ke=function(){},he="RC_TREE_MOTION_".concat(Math.random()),Ct={key:he},Pt={key:he,level:0,index:0,pos:"0",node:Ct,nodes:[Ct]},Kt={parent:null,children:[],pos:Pt.pos,data:Ct,title:null,key:he,isStart:[],isEnd:[]};function Ce(oe,se,re,le){return se===!1||!re?oe:oe.slice(0,Math.ceil(re/le)+1)}function ot(oe){var se=oe.key,re=oe.pos;return(0,pe.km)(se,re)}function lt(oe){for(var se=String(oe.data.key),re=oe;re.parent;)re=re.parent,se="".concat(re.data.key," > ").concat(se);return se}var Wt=Ne.forwardRef(function(oe,se){var re=oe.prefixCls,le=oe.data,me=oe.selectable,Dt=oe.checkable,Re=oe.expandedKeys,Fe=oe.selectedKeys,qe=oe.checkedKeys,nt=oe.loadedKeys,st=oe.loadingKeys,we=oe.halfCheckedKeys,Be=oe.keyEntities,It=oe.disabled,Mt=oe.dragging,kt=oe.dragOverNodeKey,Yt=oe.dropPosition,At=oe.motion,vn=oe.height,Gt=oe.itemHeight,_e=oe.virtual,Bt=oe.scrollWidth,Ut=oe.focusable,on=oe.activeItem,Le=oe.focused,xt=oe.tabIndex,zt=oe.onKeyDown,nn=oe.onFocus,Sn=oe.onBlur,zn=oe.onActiveChange,rr=oe.onListChangeStart,pr=oe.onListChangeEnd,kn=(0,Ke.Z)(oe,wt),dr=Ne.useRef(null),Ye=Ne.useRef(null);Ne.useImperativeHandle(se,function(){return{scrollTo:function(Ft){dr.current.scrollTo(Ft)},getIndentWidth:function(){return Ye.current.offsetWidth}}});var Qt=Ne.useState(Re),yn=(0,He.Z)(Qt,2),xn=yn[0],qt=yn[1],En=Ne.useState(le),Fn=(0,He.Z)(En,2),Tn=Fn[0],_t=Fn[1],Cn=Ne.useState(le),Bn=(0,He.Z)(Cn,2),Ln=Bn[0],Zn=Bn[1],yr=Ne.useState([]),ur=(0,He.Z)(yr,2),Jt=ur[0],wn=ur[1],un=Ne.useState(null),sn=(0,He.Z)(un,2),We=sn[0],dt=sn[1],ze=Ne.useRef(le);ze.current=le;function gt(){var Oe=ze.current;_t(Oe),Zn(Oe),wn([]),dt(null),pr()}(0,ut.Z)(function(){qt(Re);var Oe=Nt(xn,Re);if(Oe.key!==null)if(Oe.add){var Ft=Tn.findIndex(function(it){var an=it.key;return an===Oe.key}),Zt=Ce(et(Tn,le,Oe.key),_e,vn,Gt),De=Tn.slice();De.splice(Ft+1,0,Kt),Zn(De),wn(Zt),dt("show")}else{var Te=le.findIndex(function(it){var an=it.key;return an===Oe.key}),Me=Ce(et(le,Tn,Oe.key),_e,vn,Gt),je=le.slice();je.splice(Te+1,0,Kt),Zn(je),wn(Me),dt("hide")}else Tn!==le&&(_t(le),Zn(le))},[Re,le]),Ne.useEffect(function(){Mt||gt()},[Mt]);var $e=At?Ln:le,St={expandedKeys:Re,selectedKeys:Fe,loadedKeys:nt,loadingKeys:st,checkedKeys:qe,halfCheckedKeys:we,dragOverNodeKey:kt,dropPosition:Yt,keyEntities:Be};return Ne.createElement(Ne.Fragment,null,Le&&on&&Ne.createElement("span",{style:ln,"aria-live":"assertive"},lt(on)),Ne.createElement("div",null,Ne.createElement("input",{style:ln,disabled:Ut===!1||It,tabIndex:Ut!==!1?xt:null,onKeyDown:zt,onFocus:nn,onBlur:Sn,value:"",onChange:ke,"aria-label":"for screen reader"})),Ne.createElement("div",{className:"".concat(re,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},Ne.createElement("div",{className:"".concat(re,"-indent")},Ne.createElement("div",{ref:Ye,className:"".concat(re,"-indent-unit")}))),Ne.createElement(ft.Z,(0,b.Z)({},kn,{data:$e,itemKey:ot,height:vn,fullHeight:!1,virtual:_e,itemHeight:Gt,scrollWidth:Bt,prefixCls:"".concat(re,"-list"),ref:dr,role:"tree",onVisibleChange:function(Ft){Ft.every(function(Zt){return ot(Zt)!==he})&>()}}),function(Oe){var Ft=Oe.pos,Zt=Object.assign({},(Xt(Oe.data),Oe.data)),De=Oe.title,Te=Oe.key,Me=Oe.isStart,je=Oe.isEnd,it=(0,pe.km)(Te,Ft);delete Zt.key,delete Zt.children;var an=(0,pe.H8)(it,St);return Ne.createElement(ue,(0,b.Z)({},Zt,an,{title:De,active:!!on&&Te===on.key,pos:Ft,data:Oe.data,isStart:Me,isEnd:je,motion:At,motionNodes:Te===he?Jt:null,motionType:We,onMotionStart:rr,onMotionEnd:gt,treeNodeRequiredProps:St,onMouseMove:function(){zn(null)}}))}))}),ct=Wt,$t=z(82661),vt=z(34643),gn=z(65065),Tt=10,ie=function(oe){(0,Qe.Z)(re,oe);var se=(0,Ae.Z)(re);function re(){var le;(0,xe.Z)(this,re);for(var me=arguments.length,Dt=new Array(me),Re=0;Re<me;Re++)Dt[Re]=arguments[Re];return le=se.call.apply(se,[this].concat(Dt)),(0,de.Z)((0,Ee.Z)(le),"destroyed",!1),(0,de.Z)((0,Ee.Z)(le),"delayedDragEnterLogic",void 0),(0,de.Z)((0,Ee.Z)(le),"loadingRetryTimes",{}),(0,de.Z)((0,Ee.Z)(le),"state",{keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:(0,pe.w$)()}),(0,de.Z)((0,Ee.Z)(le),"dragStartMousePosition",null),(0,de.Z)((0,Ee.Z)(le),"dragNodeProps",null),(0,de.Z)((0,Ee.Z)(le),"currentMouseOverDroppableNodeKey",null),(0,de.Z)((0,Ee.Z)(le),"listRef",Ne.createRef()),(0,de.Z)((0,Ee.Z)(le),"onNodeDragStart",function(Fe,qe){var nt=le.state,st=nt.expandedKeys,we=nt.keyEntities,Be=le.props.onDragStart,It=qe.eventKey;le.dragNodeProps=qe,le.dragStartMousePosition={x:Fe.clientX,y:Fe.clientY};var Mt=(0,$t._5)(st,It);le.setState({draggingNodeKey:It,dragChildrenKeys:(0,$t.wA)(It,we),indent:le.listRef.current.getIndentWidth()}),le.setExpandedKeys(Mt),window.addEventListener("dragend",le.onWindowDragEnd),Be==null||Be({event:Fe,node:(0,pe.F)(qe)})}),(0,de.Z)((0,Ee.Z)(le),"onNodeDragEnter",function(Fe,qe){var nt=le.state,st=nt.expandedKeys,we=nt.keyEntities,Be=nt.dragChildrenKeys,It=nt.flattenNodes,Mt=nt.indent,kt=le.props,Yt=kt.onDragEnter,At=kt.onExpand,vn=kt.allowDrop,Gt=kt.direction,_e=qe.pos,Bt=qe.eventKey;if(le.currentMouseOverDroppableNodeKey!==Bt&&(le.currentMouseOverDroppableNodeKey=Bt),!le.dragNodeProps){le.resetDragState();return}var Ut=(0,$t.OM)(Fe,le.dragNodeProps,qe,Mt,le.dragStartMousePosition,vn,It,we,st,Gt),on=Ut.dropPosition,Le=Ut.dropLevelOffset,xt=Ut.dropTargetKey,zt=Ut.dropContainerKey,nn=Ut.dropTargetPos,Sn=Ut.dropAllowed,zn=Ut.dragOverNodeKey;if(Be.includes(xt)||!Sn){le.resetDragState();return}if(le.delayedDragEnterLogic||(le.delayedDragEnterLogic={}),Object.keys(le.delayedDragEnterLogic).forEach(function(rr){clearTimeout(le.delayedDragEnterLogic[rr])}),le.dragNodeProps.eventKey!==qe.eventKey&&(Fe.persist(),le.delayedDragEnterLogic[_e]=window.setTimeout(function(){if(le.state.draggingNodeKey!==null){var rr=(0,rt.Z)(st),pr=(0,gn.Z)(we,qe.eventKey);pr&&(pr.children||[]).length&&(rr=(0,$t.L0)(st,qe.eventKey)),le.props.hasOwnProperty("expandedKeys")||le.setExpandedKeys(rr),At==null||At(rr,{node:(0,pe.F)(qe),expanded:!0,nativeEvent:Fe.nativeEvent})}},800)),le.dragNodeProps.eventKey===xt&&Le===0){le.resetDragState();return}le.setState({dragOverNodeKey:zn,dropPosition:on,dropLevelOffset:Le,dropTargetKey:xt,dropContainerKey:zt,dropTargetPos:nn,dropAllowed:Sn}),Yt==null||Yt({event:Fe,node:(0,pe.F)(qe),expandedKeys:st})}),(0,de.Z)((0,Ee.Z)(le),"onNodeDragOver",function(Fe,qe){var nt=le.state,st=nt.dragChildrenKeys,we=nt.flattenNodes,Be=nt.keyEntities,It=nt.expandedKeys,Mt=nt.indent,kt=le.props,Yt=kt.onDragOver,At=kt.allowDrop,vn=kt.direction;if(le.dragNodeProps){var Gt=(0,$t.OM)(Fe,le.dragNodeProps,qe,Mt,le.dragStartMousePosition,At,we,Be,It,vn),_e=Gt.dropPosition,Bt=Gt.dropLevelOffset,Ut=Gt.dropTargetKey,on=Gt.dropContainerKey,Le=Gt.dropTargetPos,xt=Gt.dropAllowed,zt=Gt.dragOverNodeKey;st.includes(Ut)||!xt||(le.dragNodeProps.eventKey===Ut&&Bt===0?le.state.dropPosition===null&&le.state.dropLevelOffset===null&&le.state.dropTargetKey===null&&le.state.dropContainerKey===null&&le.state.dropTargetPos===null&&le.state.dropAllowed===!1&&le.state.dragOverNodeKey===null||le.resetDragState():_e===le.state.dropPosition&&Bt===le.state.dropLevelOffset&&Ut===le.state.dropTargetKey&&on===le.state.dropContainerKey&&Le===le.state.dropTargetPos&&xt===le.state.dropAllowed&&zt===le.state.dragOverNodeKey||le.setState({dropPosition:_e,dropLevelOffset:Bt,dropTargetKey:Ut,dropContainerKey:on,dropTargetPos:Le,dropAllowed:xt,dragOverNodeKey:zt}),Yt==null||Yt({event:Fe,node:(0,pe.F)(qe)}))}}),(0,de.Z)((0,Ee.Z)(le),"onNodeDragLeave",function(Fe,qe){le.currentMouseOverDroppableNodeKey===qe.eventKey&&!Fe.currentTarget.contains(Fe.relatedTarget)&&(le.resetDragState(),le.currentMouseOverDroppableNodeKey=null);var nt=le.props.onDragLeave;nt==null||nt({event:Fe,node:(0,pe.F)(qe)})}),(0,de.Z)((0,Ee.Z)(le),"onWindowDragEnd",function(Fe){le.onNodeDragEnd(Fe,null,!0),window.removeEventListener("dragend",le.onWindowDragEnd)}),(0,de.Z)((0,Ee.Z)(le),"onNodeDragEnd",function(Fe,qe){var nt=le.props.onDragEnd;le.setState({dragOverNodeKey:null}),le.cleanDragState(),nt==null||nt({event:Fe,node:(0,pe.F)(qe)}),le.dragNodeProps=null,window.removeEventListener("dragend",le.onWindowDragEnd)}),(0,de.Z)((0,Ee.Z)(le),"onNodeDrop",function(Fe,qe){var nt,st=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,we=le.state,Be=we.dragChildrenKeys,It=we.dropPosition,Mt=we.dropTargetKey,kt=we.dropTargetPos,Yt=we.dropAllowed;if(Yt){var At=le.props.onDrop;if(le.setState({dragOverNodeKey:null}),le.cleanDragState(),Mt!==null){var vn=(0,fe.Z)((0,fe.Z)({},(0,pe.H8)(Mt,le.getTreeNodeRequiredProps())),{},{active:((nt=le.getActiveItem())===null||nt===void 0?void 0:nt.key)===Mt,data:(0,gn.Z)(le.state.keyEntities,Mt).node}),Gt=Be.includes(Mt);(0,Ve.ZP)(!Gt,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var _e=(0,$t.yx)(kt),Bt={event:Fe,node:(0,pe.F)(vn),dragNode:le.dragNodeProps?(0,pe.F)(le.dragNodeProps):null,dragNodesKeys:[le.dragNodeProps.eventKey].concat(Be),dropToGap:It!==0,dropPosition:It+Number(_e[_e.length-1])};st||At==null||At(Bt),le.dragNodeProps=null}}}),(0,de.Z)((0,Ee.Z)(le),"cleanDragState",function(){var Fe=le.state.draggingNodeKey;Fe!==null&&le.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),le.dragStartMousePosition=null,le.currentMouseOverDroppableNodeKey=null}),(0,de.Z)((0,Ee.Z)(le),"triggerExpandActionExpand",function(Fe,qe){var nt=le.state,st=nt.expandedKeys,we=nt.flattenNodes,Be=qe.expanded,It=qe.key,Mt=qe.isLeaf;if(!(Mt||Fe.shiftKey||Fe.metaKey||Fe.ctrlKey)){var kt=we.filter(function(At){return At.key===It})[0],Yt=(0,pe.F)((0,fe.Z)((0,fe.Z)({},(0,pe.H8)(It,le.getTreeNodeRequiredProps())),{},{data:kt.data}));le.setExpandedKeys(Be?(0,$t._5)(st,It):(0,$t.L0)(st,It)),le.onNodeExpand(Fe,Yt)}}),(0,de.Z)((0,Ee.Z)(le),"onNodeClick",function(Fe,qe){var nt=le.props,st=nt.onClick,we=nt.expandAction;we==="click"&&le.triggerExpandActionExpand(Fe,qe),st==null||st(Fe,qe)}),(0,de.Z)((0,Ee.Z)(le),"onNodeDoubleClick",function(Fe,qe){var nt=le.props,st=nt.onDoubleClick,we=nt.expandAction;we==="doubleClick"&&le.triggerExpandActionExpand(Fe,qe),st==null||st(Fe,qe)}),(0,de.Z)((0,Ee.Z)(le),"onNodeSelect",function(Fe,qe){var nt=le.state.selectedKeys,st=le.state,we=st.keyEntities,Be=st.fieldNames,It=le.props,Mt=It.onSelect,kt=It.multiple,Yt=qe.selected,At=qe[Be.key],vn=!Yt;vn?kt?nt=(0,$t.L0)(nt,At):nt=[At]:nt=(0,$t._5)(nt,At);var Gt=nt.map(function(_e){var Bt=(0,gn.Z)(we,_e);return Bt?Bt.node:null}).filter(Boolean);le.setUncontrolledState({selectedKeys:nt}),Mt==null||Mt(nt,{event:"select",selected:vn,node:qe,selectedNodes:Gt,nativeEvent:Fe.nativeEvent})}),(0,de.Z)((0,Ee.Z)(le),"onNodeCheck",function(Fe,qe,nt){var st=le.state,we=st.keyEntities,Be=st.checkedKeys,It=st.halfCheckedKeys,Mt=le.props,kt=Mt.checkStrictly,Yt=Mt.onCheck,At=qe.key,vn,Gt={event:"check",node:qe,checked:nt,nativeEvent:Fe.nativeEvent};if(kt){var _e=nt?(0,$t.L0)(Be,At):(0,$t._5)(Be,At),Bt=(0,$t._5)(It,At);vn={checked:_e,halfChecked:Bt},Gt.checkedNodes=_e.map(function(nn){return(0,gn.Z)(we,nn)}).filter(Boolean).map(function(nn){return nn.node}),le.setUncontrolledState({checkedKeys:_e})}else{var Ut=(0,vt.S)([].concat((0,rt.Z)(Be),[At]),!0,we),on=Ut.checkedKeys,Le=Ut.halfCheckedKeys;if(!nt){var xt=new Set(on);xt.delete(At);var zt=(0,vt.S)(Array.from(xt),{checked:!1,halfCheckedKeys:Le},we);on=zt.checkedKeys,Le=zt.halfCheckedKeys}vn=on,Gt.checkedNodes=[],Gt.checkedNodesPositions=[],Gt.halfCheckedKeys=Le,on.forEach(function(nn){var Sn=(0,gn.Z)(we,nn);if(Sn){var zn=Sn.node,rr=Sn.pos;Gt.checkedNodes.push(zn),Gt.checkedNodesPositions.push({node:zn,pos:rr})}}),le.setUncontrolledState({checkedKeys:on},!1,{halfCheckedKeys:Le})}Yt==null||Yt(vn,Gt)}),(0,de.Z)((0,Ee.Z)(le),"onNodeLoad",function(Fe){var qe,nt=Fe.key,st=le.state.keyEntities,we=(0,gn.Z)(st,nt);if(!(we!=null&&(qe=we.children)!==null&&qe!==void 0&&qe.length)){var Be=new Promise(function(It,Mt){le.setState(function(kt){var Yt=kt.loadedKeys,At=Yt===void 0?[]:Yt,vn=kt.loadingKeys,Gt=vn===void 0?[]:vn,_e=le.props,Bt=_e.loadData,Ut=_e.onLoad;if(!Bt||At.includes(nt)||Gt.includes(nt))return null;var on=Bt(Fe);return on.then(function(){var Le=le.state.loadedKeys,xt=(0,$t.L0)(Le,nt);Ut==null||Ut(xt,{event:"load",node:Fe}),le.setUncontrolledState({loadedKeys:xt}),le.setState(function(zt){return{loadingKeys:(0,$t._5)(zt.loadingKeys,nt)}}),It()}).catch(function(Le){if(le.setState(function(zt){return{loadingKeys:(0,$t._5)(zt.loadingKeys,nt)}}),le.loadingRetryTimes[nt]=(le.loadingRetryTimes[nt]||0)+1,le.loadingRetryTimes[nt]>=Tt){var xt=le.state.loadedKeys;(0,Ve.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),le.setUncontrolledState({loadedKeys:(0,$t.L0)(xt,nt)}),It()}Mt(Le)}),{loadingKeys:(0,$t.L0)(Gt,nt)}})});return Be.catch(function(){}),Be}}),(0,de.Z)((0,Ee.Z)(le),"onNodeMouseEnter",function(Fe,qe){var nt=le.props.onMouseEnter;nt==null||nt({event:Fe,node:qe})}),(0,de.Z)((0,Ee.Z)(le),"onNodeMouseLeave",function(Fe,qe){var nt=le.props.onMouseLeave;nt==null||nt({event:Fe,node:qe})}),(0,de.Z)((0,Ee.Z)(le),"onNodeContextMenu",function(Fe,qe){var nt=le.props.onRightClick;nt&&(Fe.preventDefault(),nt({event:Fe,node:qe}))}),(0,de.Z)((0,Ee.Z)(le),"onFocus",function(){var Fe=le.props.onFocus;le.setState({focused:!0});for(var qe=arguments.length,nt=new Array(qe),st=0;st<qe;st++)nt[st]=arguments[st];Fe==null||Fe.apply(void 0,nt)}),(0,de.Z)((0,Ee.Z)(le),"onBlur",function(){var Fe=le.props.onBlur;le.setState({focused:!1}),le.onActiveChange(null);for(var qe=arguments.length,nt=new Array(qe),st=0;st<qe;st++)nt[st]=arguments[st];Fe==null||Fe.apply(void 0,nt)}),(0,de.Z)((0,Ee.Z)(le),"getTreeNodeRequiredProps",function(){var Fe=le.state,qe=Fe.expandedKeys,nt=Fe.selectedKeys,st=Fe.loadedKeys,we=Fe.loadingKeys,Be=Fe.checkedKeys,It=Fe.halfCheckedKeys,Mt=Fe.dragOverNodeKey,kt=Fe.dropPosition,Yt=Fe.keyEntities;return{expandedKeys:qe||[],selectedKeys:nt||[],loadedKeys:st||[],loadingKeys:we||[],checkedKeys:Be||[],halfCheckedKeys:It||[],dragOverNodeKey:Mt,dropPosition:kt,keyEntities:Yt}}),(0,de.Z)((0,Ee.Z)(le),"setExpandedKeys",function(Fe){var qe=le.state,nt=qe.treeData,st=qe.fieldNames,we=(0,pe.oH)(nt,Fe,st);le.setUncontrolledState({expandedKeys:Fe,flattenNodes:we},!0)}),(0,de.Z)((0,Ee.Z)(le),"onNodeExpand",function(Fe,qe){var nt=le.state.expandedKeys,st=le.state,we=st.listChanging,Be=st.fieldNames,It=le.props,Mt=It.onExpand,kt=It.loadData,Yt=qe.expanded,At=qe[Be.key];if(!we){var vn=nt.includes(At),Gt=!Yt;if((0,Ve.ZP)(Yt&&vn||!Yt&&!vn,"Expand state not sync with index check"),nt=Gt?(0,$t.L0)(nt,At):(0,$t._5)(nt,At),le.setExpandedKeys(nt),Mt==null||Mt(nt,{node:qe,expanded:Gt,nativeEvent:Fe.nativeEvent}),Gt&&kt){var _e=le.onNodeLoad(qe);_e&&_e.then(function(){var Bt=(0,pe.oH)(le.state.treeData,nt,Be);le.setUncontrolledState({flattenNodes:Bt})}).catch(function(){var Bt=le.state.expandedKeys,Ut=(0,$t._5)(Bt,At);le.setExpandedKeys(Ut)})}}}),(0,de.Z)((0,Ee.Z)(le),"onListChangeStart",function(){le.setUncontrolledState({listChanging:!0})}),(0,de.Z)((0,Ee.Z)(le),"onListChangeEnd",function(){setTimeout(function(){le.setUncontrolledState({listChanging:!1})})}),(0,de.Z)((0,Ee.Z)(le),"onActiveChange",function(Fe){var qe=le.state.activeKey,nt=le.props,st=nt.onActiveChange,we=nt.itemScrollOffset,Be=we===void 0?0:we;qe!==Fe&&(le.setState({activeKey:Fe}),Fe!==null&&le.scrollTo({key:Fe,offset:Be}),st==null||st(Fe))}),(0,de.Z)((0,Ee.Z)(le),"getActiveItem",function(){var Fe=le.state,qe=Fe.activeKey,nt=Fe.flattenNodes;return qe===null?null:nt.find(function(st){var we=st.key;return we===qe})||null}),(0,de.Z)((0,Ee.Z)(le),"offsetActiveKey",function(Fe){var qe=le.state,nt=qe.flattenNodes,st=qe.activeKey,we=nt.findIndex(function(Mt){var kt=Mt.key;return kt===st});we===-1&&Fe<0&&(we=nt.length),we=(we+Fe+nt.length)%nt.length;var Be=nt[we];if(Be){var It=Be.key;le.onActiveChange(It)}else le.onActiveChange(null)}),(0,de.Z)((0,Ee.Z)(le),"onKeyDown",function(Fe){var qe=le.state,nt=qe.activeKey,st=qe.expandedKeys,we=qe.checkedKeys,Be=qe.fieldNames,It=le.props,Mt=It.onKeyDown,kt=It.checkable,Yt=It.selectable;switch(Fe.which){case Lt.Z.UP:{le.offsetActiveKey(-1),Fe.preventDefault();break}case Lt.Z.DOWN:{le.offsetActiveKey(1),Fe.preventDefault();break}}var At=le.getActiveItem();if(At&&At.data){var vn=le.getTreeNodeRequiredProps(),Gt=At.data.isLeaf===!1||!!(At.data[Be.children]||[]).length,_e=(0,pe.F)((0,fe.Z)((0,fe.Z)({},(0,pe.H8)(nt,vn)),{},{data:At.data,active:!0}));switch(Fe.which){case Lt.Z.LEFT:{Gt&&st.includes(nt)?le.onNodeExpand({},_e):At.parent&&le.onActiveChange(At.parent.key),Fe.preventDefault();break}case Lt.Z.RIGHT:{Gt&&!st.includes(nt)?le.onNodeExpand({},_e):At.children&&At.children.length&&le.onActiveChange(At.children[0].key),Fe.preventDefault();break}case Lt.Z.ENTER:case Lt.Z.SPACE:{kt&&!_e.disabled&&_e.checkable!==!1&&!_e.disableCheckbox?le.onNodeCheck({},_e,!we.includes(nt)):!kt&&Yt&&!_e.disabled&&_e.selectable!==!1&&le.onNodeSelect({},_e);break}}}Mt==null||Mt(Fe)}),(0,de.Z)((0,Ee.Z)(le),"setUncontrolledState",function(Fe){var qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,nt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!le.destroyed){var st=!1,we=!0,Be={};Object.keys(Fe).forEach(function(It){if(le.props.hasOwnProperty(It)){we=!1;return}st=!0,Be[It]=Fe[It]}),st&&(!qe||we)&&le.setState((0,fe.Z)((0,fe.Z)({},Be),nt))}}),(0,de.Z)((0,Ee.Z)(le),"scrollTo",function(Fe){le.listRef.current.scrollTo(Fe)}),le}return(0,ge.Z)(re,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var me=this.props,Dt=me.activeKey,Re=me.itemScrollOffset,Fe=Re===void 0?0:Re;Dt!==void 0&&Dt!==this.state.activeKey&&(this.setState({activeKey:Dt}),Dt!==null&&this.scrollTo({key:Dt,offset:Fe}))}},{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 me=this.state,Dt=me.focused,Re=me.flattenNodes,Fe=me.keyEntities,qe=me.draggingNodeKey,nt=me.activeKey,st=me.dropLevelOffset,we=me.dropContainerKey,Be=me.dropTargetKey,It=me.dropPosition,Mt=me.dragOverNodeKey,kt=me.indent,Yt=this.props,At=Yt.prefixCls,vn=Yt.className,Gt=Yt.style,_e=Yt.showLine,Bt=Yt.focusable,Ut=Yt.tabIndex,on=Ut===void 0?0:Ut,Le=Yt.selectable,xt=Yt.showIcon,zt=Yt.icon,nn=Yt.switcherIcon,Sn=Yt.draggable,zn=Yt.checkable,rr=Yt.checkStrictly,pr=Yt.disabled,kn=Yt.motion,dr=Yt.loadData,Ye=Yt.filterTreeNode,Qt=Yt.height,yn=Yt.itemHeight,xn=Yt.scrollWidth,qt=Yt.virtual,En=Yt.titleRender,Fn=Yt.dropIndicatorRender,Tn=Yt.onContextMenu,_t=Yt.onScroll,Cn=Yt.direction,Bn=Yt.rootClassName,Ln=Yt.rootStyle,Zn=(0,at.Z)(this.props,{aria:!0,data:!0}),yr;Sn&&((0,Pe.Z)(Sn)==="object"?yr=Sn:typeof Sn=="function"?yr={nodeDraggable:Sn}:yr={});var ur={prefixCls:At,selectable:Le,showIcon:xt,icon:zt,switcherIcon:nn,draggable:yr,draggingNodeKey:qe,checkable:zn,checkStrictly:rr,disabled:pr,keyEntities:Fe,dropLevelOffset:st,dropContainerKey:we,dropTargetKey:Be,dropPosition:It,dragOverNodeKey:Mt,indent:kt,direction:Cn,dropIndicatorRender:Fn,loadData:dr,filterTreeNode:Ye,titleRender:En,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return Ne.createElement(Ze.k.Provider,{value:ur},Ne.createElement("div",{className:ve()(At,vn,Bn,(0,de.Z)((0,de.Z)((0,de.Z)({},"".concat(At,"-show-line"),_e),"".concat(At,"-focused"),Dt),"".concat(At,"-active-focused"),nt!==null)),style:Ln},Ne.createElement(ct,(0,b.Z)({ref:this.listRef,prefixCls:At,style:Gt,data:Re,disabled:pr,selectable:Le,checkable:!!zn,motion:kn,dragging:qe!==null,height:Qt,itemHeight:yn,virtual:qt,focusable:Bt,focused:Dt,tabIndex:on,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Tn,onScroll:_t,scrollWidth:xn},this.getTreeNodeRequiredProps(),Zn))))}}],[{key:"getDerivedStateFromProps",value:function(me,Dt){var Re=Dt.prevProps,Fe={prevProps:me};function qe(on){return!Re&&me.hasOwnProperty(on)||Re&&Re[on]!==me[on]}var nt,st=Dt.fieldNames;if(qe("fieldNames")&&(st=(0,pe.w$)(me.fieldNames),Fe.fieldNames=st),qe("treeData")?nt=me.treeData:qe("children")&&((0,Ve.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),nt=(0,pe.zn)(me.children)),nt){Fe.treeData=nt;var we=(0,pe.I8)(nt,{fieldNames:st});Fe.keyEntities=(0,fe.Z)((0,de.Z)({},he,Pt),we.keyEntities)}var Be=Fe.keyEntities||Dt.keyEntities;if(qe("expandedKeys")||Re&&qe("autoExpandParent"))Fe.expandedKeys=me.autoExpandParent||!Re&&me.defaultExpandParent?(0,$t.r7)(me.expandedKeys,Be):me.expandedKeys;else if(!Re&&me.defaultExpandAll){var It=(0,fe.Z)({},Be);delete It[he];var Mt=[];Object.keys(It).forEach(function(on){var Le=It[on];Le.children&&Le.children.length&&Mt.push(Le.key)}),Fe.expandedKeys=Mt}else!Re&&me.defaultExpandedKeys&&(Fe.expandedKeys=me.autoExpandParent||me.defaultExpandParent?(0,$t.r7)(me.defaultExpandedKeys,Be):me.defaultExpandedKeys);if(Fe.expandedKeys||delete Fe.expandedKeys,nt||Fe.expandedKeys){var kt=(0,pe.oH)(nt||Dt.treeData,Fe.expandedKeys||Dt.expandedKeys,st);Fe.flattenNodes=kt}if(me.selectable&&(qe("selectedKeys")?Fe.selectedKeys=(0,$t.BT)(me.selectedKeys,me):!Re&&me.defaultSelectedKeys&&(Fe.selectedKeys=(0,$t.BT)(me.defaultSelectedKeys,me))),me.checkable){var Yt;if(qe("checkedKeys")?Yt=(0,$t.E6)(me.checkedKeys)||{}:!Re&&me.defaultCheckedKeys?Yt=(0,$t.E6)(me.defaultCheckedKeys)||{}:nt&&(Yt=(0,$t.E6)(me.checkedKeys)||{checkedKeys:Dt.checkedKeys,halfCheckedKeys:Dt.halfCheckedKeys}),Yt){var At=Yt,vn=At.checkedKeys,Gt=vn===void 0?[]:vn,_e=At.halfCheckedKeys,Bt=_e===void 0?[]:_e;if(!me.checkStrictly){var Ut=(0,vt.S)(Gt,!0,Be);Gt=Ut.checkedKeys,Bt=Ut.halfCheckedKeys}Fe.checkedKeys=Gt,Fe.halfCheckedKeys=Bt}}return qe("loadedKeys")&&(Fe.loadedKeys=me.loadedKeys),Fe}}]),re}(Ne.Component);(0,de.Z)(ie,"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:mt,allowDrop:function(){return!0},expandAction:!1}),(0,de.Z)(ie,"TreeNode",Ot.Z);var ne=ie,te=ne},82661:function(Kn,cn,z){"use strict";z.d(cn,{BT:function(){return Ne},E6:function(){return mt},L0:function(){return de},OM:function(){return Ve},_5:function(){return Ae},r7:function(){return Xt},wA:function(){return ve},yx:function(){return tt}});var b=z(94480),Pe=z(76190),fe=z(48736),rt=z(59301),xe=z(639),ge=z(65065),Ee=z(34061),Qe=null;function Ae(He,Ke){if(!He)return[];var ut=He.slice(),ft=ut.indexOf(Ke);return ft>=0&&ut.splice(ft,1),ut}function de(He,Ke){var ut=(He||[]).slice();return ut.indexOf(Ke)===-1&&ut.push(Ke),ut}function tt(He){return He.split("-")}function ve(He,Ke){var ut=[],ft=(0,ge.Z)(Ke,He);function jt(){var Ot=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Ot.forEach(function(yt){var Et=yt.key,pe=yt.children;ut.push(Et),jt(pe)})}return jt(ft.children),ut}function Lt(He){if(He.parent){var Ke=tt(He.pos);return Number(Ke[Ke.length-1])===He.parent.children.length-1}return!1}function at(He){var Ke=tt(He.pos);return Number(Ke[Ke.length-1])===0}function Ve(He,Ke,ut,ft,jt,Ot,yt,Et,pe,Je){var Xe,ue=He.clientX,Nt=He.clientY,et=He.target.getBoundingClientRect(),wt=et.top,ln=et.height,ke=(Je==="rtl"?-1:1)*(((jt==null?void 0:jt.x)||0)-ue),he=(ke-12)/ft,Ct=pe.filter(function(te){var oe;return(oe=Et[te])===null||oe===void 0||(oe=oe.children)===null||oe===void 0?void 0:oe.length}),Pt=(0,ge.Z)(Et,ut.eventKey);if(Nt<wt+ln/2){var Kt=yt.findIndex(function(te){return te.key===Pt.key}),Ce=Kt<=0?0:Kt-1,ot=yt[Ce].key;Pt=(0,ge.Z)(Et,ot)}var lt=Pt.key,Wt=Pt,ct=Pt.key,$t=0,vt=0;if(!Ct.includes(lt))for(var gn=0;gn<he&&Lt(Pt);gn+=1)Pt=Pt.parent,vt+=1;var Tt=Ke.data,ie=Pt.node,ne=!0;return at(Pt)&&Pt.level===0&&Nt<wt+ln/2&&Ot({dragNode:Tt,dropNode:ie,dropPosition:-1})&&Pt.key===ut.eventKey?$t=-1:(Wt.children||[]).length&&Ct.includes(ct)?Ot({dragNode:Tt,dropNode:ie,dropPosition:0})?$t=0:ne=!1:vt===0?he>-1.5?Ot({dragNode:Tt,dropNode:ie,dropPosition:1})?$t=1:ne=!1:Ot({dragNode:Tt,dropNode:ie,dropPosition:0})?$t=0:Ot({dragNode:Tt,dropNode:ie,dropPosition:1})?$t=1:ne=!1:Ot({dragNode:Tt,dropNode:ie,dropPosition:1})?$t=1:ne=!1,{dropPosition:$t,dropLevelOffset:vt,dropTargetKey:Pt.key,dropTargetPos:Pt.pos,dragOverNodeKey:ct,dropContainerKey:$t===0?null:((Xe=Pt.parent)===null||Xe===void 0?void 0:Xe.key)||null,dropAllowed:ne}}function Ne(He,Ke){if(He){var ut=Ke.multiple;return ut?He.slice():He.length?[He[0]]:He}}var Ze=function(Ke){return Ke};function pt(He,Ke){if(!He)return[];var ut=Ke||{},ft=ut.processProps,jt=ft===void 0?Ze:ft,Ot=Array.isArray(He)?He:[He];return Ot.map(function(yt){var Et=yt.children,pe=_objectWithoutProperties(yt,Qe),Je=pt(Et,Ke);return React.createElement(TreeNode,_extends({key:pe.key},jt(pe)),Je)})}function mt(He){if(!He)return null;var Ke;if(Array.isArray(He))Ke={checkedKeys:He,halfCheckedKeys:void 0};else if((0,Pe.Z)(He)==="object")Ke={checkedKeys:He.checked||void 0,halfCheckedKeys:He.halfChecked||void 0};else return(0,fe.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return Ke}function Xt(He,Ke){var ut=new Set;function ft(jt){if(!ut.has(jt)){var Ot=(0,ge.Z)(Ke,jt);if(Ot){ut.add(jt);var yt=Ot.parent,Et=Ot.node;Et.disabled||yt&&ft(yt.key)}}}return(He||[]).forEach(function(jt){ft(jt)}),(0,b.Z)(ut)}},34643:function(Kn,cn,z){"use strict";z.d(cn,{S:function(){return Ee}});var b=z(48736),Pe=z(65065);function fe(Qe,Ae){var de=new Set;return Qe.forEach(function(tt){Ae.has(tt)||de.add(tt)}),de}function rt(Qe){var Ae=Qe||{},de=Ae.disabled,tt=Ae.disableCheckbox,ve=Ae.checkable;return!!(de||tt)||ve===!1}function xe(Qe,Ae,de,tt){for(var ve=new Set(Qe),Lt=new Set,at=0;at<=de;at+=1){var Ve=Ae.get(at)||new Set;Ve.forEach(function(mt){var Xt=mt.key,He=mt.node,Ke=mt.children,ut=Ke===void 0?[]:Ke;ve.has(Xt)&&!tt(He)&&ut.filter(function(ft){return!tt(ft.node)}).forEach(function(ft){ve.add(ft.key)})})}for(var Ne=new Set,Ze=de;Ze>=0;Ze-=1){var pt=Ae.get(Ze)||new Set;pt.forEach(function(mt){var Xt=mt.parent,He=mt.node;if(!(tt(He)||!mt.parent||Ne.has(mt.parent.key))){if(tt(mt.parent.node)){Ne.add(Xt.key);return}var Ke=!0,ut=!1;(Xt.children||[]).filter(function(ft){return!tt(ft.node)}).forEach(function(ft){var jt=ft.key,Ot=ve.has(jt);Ke&&!Ot&&(Ke=!1),!ut&&(Ot||Lt.has(jt))&&(ut=!0)}),Ke&&ve.add(Xt.key),ut&&Lt.add(Xt.key),Ne.add(Xt.key)}})}return{checkedKeys:Array.from(ve),halfCheckedKeys:Array.from(fe(Lt,ve))}}function ge(Qe,Ae,de,tt,ve){for(var Lt=new Set(Qe),at=new Set(Ae),Ve=0;Ve<=tt;Ve+=1){var Ne=de.get(Ve)||new Set;Ne.forEach(function(Xt){var He=Xt.key,Ke=Xt.node,ut=Xt.children,ft=ut===void 0?[]:ut;!Lt.has(He)&&!at.has(He)&&!ve(Ke)&&ft.filter(function(jt){return!ve(jt.node)}).forEach(function(jt){Lt.delete(jt.key)})})}at=new Set;for(var Ze=new Set,pt=tt;pt>=0;pt-=1){var mt=de.get(pt)||new Set;mt.forEach(function(Xt){var He=Xt.parent,Ke=Xt.node;if(!(ve(Ke)||!Xt.parent||Ze.has(Xt.parent.key))){if(ve(Xt.parent.node)){Ze.add(He.key);return}var ut=!0,ft=!1;(He.children||[]).filter(function(jt){return!ve(jt.node)}).forEach(function(jt){var Ot=jt.key,yt=Lt.has(Ot);ut&&!yt&&(ut=!1),!ft&&(yt||at.has(Ot))&&(ft=!0)}),ut||Lt.delete(He.key),ft&&at.add(He.key),Ze.add(He.key)}})}return{checkedKeys:Array.from(Lt),halfCheckedKeys:Array.from(fe(at,Lt))}}function Ee(Qe,Ae,de,tt){var ve=[],Lt;tt?Lt=tt:Lt=rt;var at=new Set(Qe.filter(function(pt){var mt=!!(0,Pe.Z)(de,pt);return mt||ve.push(pt),mt})),Ve=new Map,Ne=0;Object.keys(de).forEach(function(pt){var mt=de[pt],Xt=mt.level,He=Ve.get(Xt);He||(He=new Set,Ve.set(Xt,He)),He.add(mt),Ne=Math.max(Ne,Xt)}),(0,b.ZP)(!ve.length,"Tree missing follow keys: ".concat(ve.slice(0,100).map(function(pt){return"'".concat(pt,"'")}).join(", ")));var Ze;return Ae===!0?Ze=xe(at,Ve,Ne,Lt):Ze=ge(at,Ae.halfCheckedKeys,Ve,Ne,Lt),Ze}},65065:function(Kn,cn,z){"use strict";z.d(cn,{Z:function(){return b}});function b(Pe,fe){return Pe[fe]}},34061:function(Kn,cn,z){"use strict";z.d(cn,{F:function(){return Xt},H8:function(){return mt},I8:function(){return pt},km:function(){return ve},oH:function(){return Ne},w$:function(){return Lt},zn:function(){return Ve}});var b=z(76190),Pe=z(94480),fe=z(33885),rt=z(75931),xe=z(11592),ge=z(2738),Ee=z(48736),Qe=z(65065),Ae=["children"];function de(He,Ke){return"".concat(He,"-").concat(Ke)}function tt(He){return He&&He.type&&He.type.isTreeNode}function ve(He,Ke){return He!=null?He:Ke}function Lt(He){var Ke=He||{},ut=Ke.title,ft=Ke._title,jt=Ke.key,Ot=Ke.children,yt=ut||"title";return{title:yt,_title:ft||[yt],key:jt||"key",children:Ot||"children"}}function at(He,Ke){var ut=new Map;function ft(jt){var Ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(jt||[]).forEach(function(yt){var Et=yt[Ke.key],pe=yt[Ke.children];warning(Et!=null,"Tree node must have a certain key: [".concat(Ot).concat(Et,"]"));var Je=String(Et);warning(!ut.has(Je)||Et===null||Et===void 0,"Same 'key' exist in the Tree: ".concat(Je)),ut.set(Je,!0),ft(pe,"".concat(Ot).concat(Je," > "))})}ft(He)}function Ve(He){function Ke(ut){var ft=(0,xe.Z)(ut);return ft.map(function(jt){if(!tt(jt))return(0,Ee.ZP)(!jt,"Tree/TreeNode can only accept TreeNode as children."),null;var Ot=jt.key,yt=jt.props,Et=yt.children,pe=(0,rt.Z)(yt,Ae),Je=(0,fe.Z)({key:Ot},pe),Xe=Ke(Et);return Xe.length&&(Je.children=Xe),Je}).filter(function(jt){return jt})}return Ke(He)}function Ne(He,Ke,ut){var ft=Lt(ut),jt=ft._title,Ot=ft.key,yt=ft.children,Et=new Set(Ke===!0?[]:Ke),pe=[];function Je(Xe){var ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Xe.map(function(Nt,et){for(var wt=de(ue?ue.pos:"0",et),ln=ve(Nt[Ot],wt),ke,he=0;he<jt.length;he+=1){var Ct=jt[he];if(Nt[Ct]!==void 0){ke=Nt[Ct];break}}var Pt=Object.assign((0,ge.Z)(Nt,[].concat((0,Pe.Z)(jt),[Ot,yt])),{title:ke,key:ln,parent:ue,pos:wt,children:null,data:Nt,isStart:[].concat((0,Pe.Z)(ue?ue.isStart:[]),[et===0]),isEnd:[].concat((0,Pe.Z)(ue?ue.isEnd:[]),[et===Xe.length-1])});return pe.push(Pt),Ke===!0||Et.has(ln)?Pt.children=Je(Nt[yt]||[],Pt):Pt.children=[],Pt})}return Je(He),pe}function Ze(He,Ke,ut){var ft={};(0,b.Z)(ut)==="object"?ft=ut:ft={externalGetKey:ut},ft=ft||{};var jt=ft,Ot=jt.childrenPropName,yt=jt.externalGetKey,Et=jt.fieldNames,pe=Lt(Et),Je=pe.key,Xe=pe.children,ue=Ot||Xe,Nt;yt?typeof yt=="string"?Nt=function(ln){return ln[yt]}:typeof yt=="function"&&(Nt=function(ln){return yt(ln)}):Nt=function(ln,ke){return ve(ln[Je],ke)};function et(wt,ln,ke,he){var Ct=wt?wt[ue]:He,Pt=wt?de(ke.pos,ln):"0",Kt=wt?[].concat((0,Pe.Z)(he),[wt]):[];if(wt){var Ce=Nt(wt,Pt),ot={node:wt,index:ln,pos:Pt,key:Ce,parentPos:ke.node?ke.pos:null,level:ke.level+1,nodes:Kt};Ke(ot)}Ct&&Ct.forEach(function(lt,Wt){et(lt,Wt,{node:wt,pos:Pt,level:ke?ke.level+1:-1},Kt)})}et(null)}function pt(He){var Ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ut=Ke.initWrapper,ft=Ke.processEntity,jt=Ke.onProcessFinished,Ot=Ke.externalGetKey,yt=Ke.childrenPropName,Et=Ke.fieldNames,pe=arguments.length>2?arguments[2]:void 0,Je=Ot||pe,Xe={},ue={},Nt={posEntities:Xe,keyEntities:ue};return ut&&(Nt=ut(Nt)||Nt),Ze(He,function(et){var wt=et.node,ln=et.index,ke=et.pos,he=et.key,Ct=et.parentPos,Pt=et.level,Kt=et.nodes,Ce={node:wt,nodes:Kt,index:ln,key:he,pos:ke,level:Pt},ot=ve(he,ke);Xe[ke]=Ce,ue[ot]=Ce,Ce.parent=Xe[Ct],Ce.parent&&(Ce.parent.children=Ce.parent.children||[],Ce.parent.children.push(Ce)),ft&&ft(Ce,Nt)},{externalGetKey:Je,childrenPropName:yt,fieldNames:Et}),jt&&jt(Nt),Nt}function mt(He,Ke){var ut=Ke.expandedKeys,ft=Ke.selectedKeys,jt=Ke.loadedKeys,Ot=Ke.loadingKeys,yt=Ke.checkedKeys,Et=Ke.halfCheckedKeys,pe=Ke.dragOverNodeKey,Je=Ke.dropPosition,Xe=Ke.keyEntities,ue=(0,Qe.Z)(Xe,He),Nt={eventKey:He,expanded:ut.indexOf(He)!==-1,selected:ft.indexOf(He)!==-1,loaded:jt.indexOf(He)!==-1,loading:Ot.indexOf(He)!==-1,checked:yt.indexOf(He)!==-1,halfChecked:Et.indexOf(He)!==-1,pos:String(ue?ue.pos:""),dragOver:pe===He&&Je===0,dragOverGapTop:pe===He&&Je===-1,dragOverGapBottom:pe===He&&Je===1};return Nt}function Xt(He){var Ke=He.data,ut=He.expanded,ft=He.selected,jt=He.checked,Ot=He.loaded,yt=He.loading,Et=He.halfChecked,pe=He.dragOver,Je=He.dragOverGapTop,Xe=He.dragOverGapBottom,ue=He.pos,Nt=He.active,et=He.eventKey,wt=(0,fe.Z)((0,fe.Z)({},Ke),{},{expanded:ut,selected:ft,checked:jt,loaded:Ot,loading:yt,halfChecked:Et,dragOver:pe,dragOverGapTop:Je,dragOverGapBottom:Xe,pos:ue,active:Nt,key:et});return"props"in wt||Object.defineProperty(wt,"props",{get:function(){return(0,Ee.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),He}}),wt}},8224:function(Kn,cn,z){"use strict";z.d(cn,{Z:function(){return Pe}});var b=z(4676);function Pe(fe,rt,xe,ge){var Ee=b.unstable_batchedUpdates?function(Ae){b.unstable_batchedUpdates(xe,Ae)}:xe;return fe!=null&&fe.addEventListener&&fe.addEventListener(rt,Ee,ge),{remove:function(){fe!=null&&fe.removeEventListener&&fe.removeEventListener(rt,Ee,ge)}}}},24514:function(Kn,cn,z){"use strict";z.d(cn,{G:function(){return rt}});var b=z(47273),Pe=function(ge){if((0,b.Z)()&&window.document.documentElement){var Ee=Array.isArray(ge)?ge:[ge],Qe=window.document.documentElement;return Ee.some(function(Ae){return Ae in Qe.style})}return!1},fe=function(ge,Ee){if(!Pe(ge))return!1;var Qe=document.createElement("div"),Ae=Qe.style[ge];return Qe.style[ge]=Ee,Qe.style[ge]!==Ae};function rt(xe,ge){return!Array.isArray(xe)&&ge!==void 0?fe(xe,ge):Pe(xe)}},48911:function(Kn,cn,z){"use strict";z.d(cn,{Z:function(){return Tt}});var b=z(54476),Pe=z(76190),fe=z(33885),rt=z(20068),xe=z(42978),ge=z(75931),Ee=z(92310),Qe=z.n(Ee),Ae=z(29301),de=z(70425),tt=z(34280),ve=z(59301),Lt=z(4676),at=ve.forwardRef(function(ie,ne){var te=ie.height,oe=ie.offsetY,se=ie.offsetX,re=ie.children,le=ie.prefixCls,me=ie.onInnerResize,Dt=ie.innerProps,Re=ie.rtl,Fe=ie.extra,qe={},nt={display:"flex",flexDirection:"column"};return oe!==void 0&&(qe={height:te,position:"relative",overflow:"hidden"},nt=(0,fe.Z)((0,fe.Z)({},nt),{},(0,rt.Z)((0,rt.Z)((0,rt.Z)((0,rt.Z)((0,rt.Z)({transform:"translateY(".concat(oe,"px)")},Re?"marginRight":"marginLeft",-se),"position","absolute"),"left",0),"right",0),"top",0))),ve.createElement("div",{style:qe},ve.createElement(Ae.Z,{onResize:function(we){var Be=we.offsetHeight;Be&&me&&me()}},ve.createElement("div",(0,b.Z)({style:nt,className:Qe()((0,rt.Z)({},"".concat(le,"-holder-inner"),le)),ref:ne},Dt),re,Fe)))});at.displayName="Filler";var Ve=at;function Ne(ie){var ne=ie.children,te=ie.setRef,oe=ve.useCallback(function(se){te(se)},[]);return ve.cloneElement(ne,{ref:oe})}function Ze(ie,ne,te,oe,se,re,le,me){var Dt=me.getKey;return ie.slice(ne,te+1).map(function(Re,Fe){var qe=ne+Fe,nt=le(Re,qe,{style:{width:oe},offsetX:se}),st=Dt(Re);return ve.createElement(Ne,{key:st,setRef:function(Be){return re(Re,Be)}},nt)})}function pt(ie,ne,te,oe){var se=te-ie,re=ne-te,le=Math.min(se,re)*2;if(oe<=le){var me=Math.floor(oe/2);return oe%2?te+me+1:te-me}return se>re?te-(oe-re):te+(oe-se)}function mt(ie,ne,te){var oe=ie.length,se=ne.length,re,le;if(oe===0&&se===0)return null;oe<se?(re=ie,le=ne):(re=ne,le=ie);var me={__EMPTY_ITEM__:!0};function Dt(we){return we!==void 0?te(we):me}for(var Re=null,Fe=Math.abs(oe-se)!==1,qe=0;qe<le.length;qe+=1){var nt=Dt(re[qe]),st=Dt(le[qe]);if(nt!==st){Re=qe,Fe=Fe||nt!==Dt(le[qe+1]);break}}return Re===null?null:{index:Re,multiple:Fe}}function Xt(ie,ne,te){var oe=ve.useState(ie),se=(0,xe.Z)(oe,2),re=se[0],le=se[1],me=ve.useState(null),Dt=(0,xe.Z)(me,2),Re=Dt[0],Fe=Dt[1];return ve.useEffect(function(){var qe=mt(re||[],ie||[],ne);(qe==null?void 0:qe.index)!==void 0&&(te==null||te(qe.index),Fe(ie[qe.index])),le(ie)},[ie]),[Re]}var He=z(16089),Ke=(typeof navigator=="undefined"?"undefined":(0,Pe.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),ut=Ke,ft=function(ie,ne,te,oe){var se=(0,ve.useRef)(!1),re=(0,ve.useRef)(null);function le(){clearTimeout(re.current),se.current=!0,re.current=setTimeout(function(){se.current=!1},50)}var me=(0,ve.useRef)({top:ie,bottom:ne,left:te,right:oe});return me.current.top=ie,me.current.bottom=ne,me.current.left=te,me.current.right=oe,function(Dt,Re){var Fe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,qe=Dt?Re<0&&me.current.left||Re>0&&me.current.right:Re<0&&me.current.top||Re>0&&me.current.bottom;return Fe&&qe?(clearTimeout(re.current),se.current=!1):(!qe||se.current)&&le(),!se.current&&qe}};function jt(ie,ne,te,oe,se,re,le){var me=(0,ve.useRef)(0),Dt=(0,ve.useRef)(null),Re=(0,ve.useRef)(null),Fe=(0,ve.useRef)(!1),qe=ft(ne,te,oe,se);function nt(kt,Yt){if(He.Z.cancel(Dt.current),!qe(!1,Yt)){var At=kt;if(!At._virtualHandled)At._virtualHandled=!0;else return;me.current+=Yt,Re.current=Yt,ut||At.preventDefault(),Dt.current=(0,He.Z)(function(){var vn=Fe.current?10:1;le(me.current*vn,!1),me.current=0})}}function st(kt,Yt){le(Yt,!0),ut||kt.preventDefault()}var we=(0,ve.useRef)(null),Be=(0,ve.useRef)(null);function It(kt){if(ie){He.Z.cancel(Be.current),Be.current=(0,He.Z)(function(){we.current=null},2);var Yt=kt.deltaX,At=kt.deltaY,vn=kt.shiftKey,Gt=Yt,_e=At;(we.current==="sx"||!we.current&&vn&&At&&!Yt)&&(Gt=At,_e=0,we.current="sx");var Bt=Math.abs(Gt),Ut=Math.abs(_e);we.current===null&&(we.current=re&&Bt>Ut?"x":"y"),we.current==="y"?nt(kt,_e):st(kt,Gt)}}function Mt(kt){ie&&(Fe.current=kt.detail===Re.current)}return[It,Mt]}function Ot(ie,ne,te,oe){var se=ve.useMemo(function(){return[new Map,[]]},[ie,te.id,oe]),re=(0,xe.Z)(se,2),le=re[0],me=re[1],Dt=function(Fe){var qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Fe,nt=le.get(Fe),st=le.get(qe);if(nt===void 0||st===void 0)for(var we=ie.length,Be=me.length;Be<we;Be+=1){var It,Mt=ie[Be],kt=ne(Mt);le.set(kt,Be);var Yt=(It=te.get(kt))!==null&&It!==void 0?It:oe;if(me[Be]=(me[Be-1]||0)+Yt,kt===Fe&&(nt=Be),kt===qe&&(st=Be),nt!==void 0&&st!==void 0)break}return{top:me[nt-1]||0,bottom:me[st]}};return Dt}var yt=z(67732),Et=z(83652),pe=function(){function ie(){(0,yt.Z)(this,ie),(0,rt.Z)(this,"maps",void 0),(0,rt.Z)(this,"id",0),(0,rt.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,Et.Z)(ie,[{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}}]),ie}(),Je=pe;function Xe(ie){var ne=parseFloat(ie);return isNaN(ne)?0:ne}function ue(ie,ne,te){var oe=ve.useState(0),se=(0,xe.Z)(oe,2),re=se[0],le=se[1],me=(0,ve.useRef)(new Map),Dt=(0,ve.useRef)(new Je),Re=(0,ve.useRef)(0);function Fe(){Re.current+=1}function qe(){var st=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Fe();var we=function(){var Mt=!1;me.current.forEach(function(kt,Yt){if(kt&&kt.offsetParent){var At=kt.offsetHeight,vn=getComputedStyle(kt),Gt=vn.marginTop,_e=vn.marginBottom,Bt=Xe(Gt),Ut=Xe(_e),on=At+Bt+Ut;Dt.current.get(Yt)!==on&&(Dt.current.set(Yt,on),Mt=!0)}}),Mt&&le(function(kt){return kt+1})};if(st)we();else{Re.current+=1;var Be=Re.current;Promise.resolve().then(function(){Be===Re.current&&we()})}}function nt(st,we){var Be=ie(st),It=me.current.get(Be);we?(me.current.set(Be,we),qe()):me.current.delete(Be),!It!=!we&&(we?ne==null||ne(st):te==null||te(st))}return(0,ve.useEffect)(function(){return Fe},[]),[nt,qe,Dt.current,re]}var Nt=14/15;function et(ie,ne,te){var oe=(0,ve.useRef)(!1),se=(0,ve.useRef)(0),re=(0,ve.useRef)(0),le=(0,ve.useRef)(null),me=(0,ve.useRef)(null),Dt,Re=function(st){if(oe.current){var we=Math.ceil(st.touches[0].pageX),Be=Math.ceil(st.touches[0].pageY),It=se.current-we,Mt=re.current-Be,kt=Math.abs(It)>Math.abs(Mt);kt?se.current=we:re.current=Be;var Yt=te(kt,kt?It:Mt,!1,st);Yt&&st.preventDefault(),clearInterval(me.current),Yt&&(me.current=setInterval(function(){kt?It*=Nt:Mt*=Nt;var At=Math.floor(kt?It:Mt);(!te(kt,At,!0)||Math.abs(At)<=.1)&&clearInterval(me.current)},16))}},Fe=function(){oe.current=!1,Dt()},qe=function(st){Dt(),st.touches.length===1&&!oe.current&&(oe.current=!0,se.current=Math.ceil(st.touches[0].pageX),re.current=Math.ceil(st.touches[0].pageY),le.current=st.target,le.current.addEventListener("touchmove",Re,{passive:!1}),le.current.addEventListener("touchend",Fe,{passive:!0}))};Dt=function(){le.current&&(le.current.removeEventListener("touchmove",Re),le.current.removeEventListener("touchend",Fe))},(0,tt.Z)(function(){return ie&&ne.current.addEventListener("touchstart",qe,{passive:!0}),function(){var nt;(nt=ne.current)===null||nt===void 0||nt.removeEventListener("touchstart",qe),Dt(),clearInterval(me.current)}},[ie])}function wt(ie){return Math.floor(Math.pow(ie,.5))}function ln(ie,ne){var te="touches"in ie?ie.touches[0]:ie;return te[ne?"pageX":"pageY"]-window[ne?"scrollX":"scrollY"]}function ke(ie,ne,te){ve.useEffect(function(){var oe=ne.current;if(ie&&oe){var se=!1,re,le,me=function(){He.Z.cancel(re)},Dt=function nt(){me(),re=(0,He.Z)(function(){te(le),nt()})},Re=function(){se=!1,me()},Fe=function(st){if(!(st.target.draggable||st.button!==0)){var we=st;we._virtualHandled||(we._virtualHandled=!0,se=!0)}},qe=function(st){if(se){var we=ln(st,!1),Be=oe.getBoundingClientRect(),It=Be.top,Mt=Be.bottom;if(we<=It){var kt=It-we;le=-wt(kt),Dt()}else if(we>=Mt){var Yt=we-Mt;le=wt(Yt),Dt()}else me()}};return oe.addEventListener("mousedown",Fe),oe.ownerDocument.addEventListener("mouseup",Re),oe.ownerDocument.addEventListener("mousemove",qe),oe.ownerDocument.addEventListener("dragend",Re),function(){oe.removeEventListener("mousedown",Fe),oe.ownerDocument.removeEventListener("mouseup",Re),oe.ownerDocument.removeEventListener("mousemove",qe),oe.ownerDocument.removeEventListener("dragend",Re),me()}}},[ie])}var he=10;function Ct(ie,ne,te,oe,se,re,le,me){var Dt=ve.useRef(),Re=ve.useState(null),Fe=(0,xe.Z)(Re,2),qe=Fe[0],nt=Fe[1];return(0,tt.Z)(function(){if(qe&&qe.times<he){if(!ie.current){nt(function(kn){return(0,fe.Z)({},kn)});return}re();var st=qe.targetAlign,we=qe.originAlign,Be=qe.index,It=qe.offset,Mt=ie.current.clientHeight,kt=!1,Yt=st,At=null;if(Mt){for(var vn=st||we,Gt=0,_e=0,Bt=0,Ut=Math.min(ne.length-1,Be),on=0;on<=Ut;on+=1){var Le=se(ne[on]);_e=Gt;var xt=te.get(Le);Bt=_e+(xt===void 0?oe:xt),Gt=Bt}for(var zt=vn==="top"?It:Mt-It,nn=Ut;nn>=0;nn-=1){var Sn=se(ne[nn]),zn=te.get(Sn);if(zn===void 0){kt=!0;break}if(zt-=zn,zt<=0)break}switch(vn){case"top":At=_e-It;break;case"bottom":At=Bt-Mt+It;break;default:{var rr=ie.current.scrollTop,pr=rr+Mt;_e<rr?Yt="top":Bt>pr&&(Yt="bottom")}}At!==null&&le(At),At!==qe.lastTop&&(kt=!0)}kt&&nt((0,fe.Z)((0,fe.Z)({},qe),{},{times:qe.times+1,targetAlign:Yt,lastTop:At}))}},[qe,ie.current]),function(st){if(st==null){me();return}if(He.Z.cancel(Dt.current),typeof st=="number")le(st);else if(st&&(0,Pe.Z)(st)==="object"){var we,Be=st.align;"index"in st?we=st.index:we=ne.findIndex(function(kt){return se(kt)===st.key});var It=st.offset,Mt=It===void 0?0:It;nt({times:0,index:we,offset:Mt,originAlign:Be})}}}var Pt=ve.forwardRef(function(ie,ne){var te=ie.prefixCls,oe=ie.rtl,se=ie.scrollOffset,re=ie.scrollRange,le=ie.onStartMove,me=ie.onStopMove,Dt=ie.onScroll,Re=ie.horizontal,Fe=ie.spinSize,qe=ie.containerSize,nt=ie.style,st=ie.thumbStyle,we=ie.showScrollBar,Be=ve.useState(!1),It=(0,xe.Z)(Be,2),Mt=It[0],kt=It[1],Yt=ve.useState(null),At=(0,xe.Z)(Yt,2),vn=At[0],Gt=At[1],_e=ve.useState(null),Bt=(0,xe.Z)(_e,2),Ut=Bt[0],on=Bt[1],Le=!oe,xt=ve.useRef(),zt=ve.useRef(),nn=ve.useState(we),Sn=(0,xe.Z)(nn,2),zn=Sn[0],rr=Sn[1],pr=ve.useRef(),kn=function(){we===!0||we===!1||(clearTimeout(pr.current),rr(!0),pr.current=setTimeout(function(){rr(!1)},3e3))},dr=re-qe||0,Ye=qe-Fe||0,Qt=ve.useMemo(function(){if(se===0||dr===0)return 0;var Bn=se/dr;return Bn*Ye},[se,dr,Ye]),yn=function(Ln){Ln.stopPropagation(),Ln.preventDefault()},xn=ve.useRef({top:Qt,dragging:Mt,pageY:vn,startTop:Ut});xn.current={top:Qt,dragging:Mt,pageY:vn,startTop:Ut};var qt=function(Ln){kt(!0),Gt(ln(Ln,Re)),on(xn.current.top),le(),Ln.stopPropagation(),Ln.preventDefault()};ve.useEffect(function(){var Bn=function(ur){ur.preventDefault()},Ln=xt.current,Zn=zt.current;return Ln.addEventListener("touchstart",Bn,{passive:!1}),Zn.addEventListener("touchstart",qt,{passive:!1}),function(){Ln.removeEventListener("touchstart",Bn),Zn.removeEventListener("touchstart",qt)}},[]);var En=ve.useRef();En.current=dr;var Fn=ve.useRef();Fn.current=Ye,ve.useEffect(function(){if(Mt){var Bn,Ln=function(ur){var Jt=xn.current,wn=Jt.dragging,un=Jt.pageY,sn=Jt.startTop;He.Z.cancel(Bn);var We=xt.current.getBoundingClientRect(),dt=qe/(Re?We.width:We.height);if(wn){var ze=(ln(ur,Re)-un)*dt,gt=sn;!Le&&Re?gt-=ze:gt+=ze;var $e=En.current,St=Fn.current,Oe=St?gt/St:0,Ft=Math.ceil(Oe*$e);Ft=Math.max(Ft,0),Ft=Math.min(Ft,$e),Bn=(0,He.Z)(function(){Dt(Ft,Re)})}},Zn=function(){kt(!1),me()};return window.addEventListener("mousemove",Ln,{passive:!0}),window.addEventListener("touchmove",Ln,{passive:!0}),window.addEventListener("mouseup",Zn,{passive:!0}),window.addEventListener("touchend",Zn,{passive:!0}),function(){window.removeEventListener("mousemove",Ln),window.removeEventListener("touchmove",Ln),window.removeEventListener("mouseup",Zn),window.removeEventListener("touchend",Zn),He.Z.cancel(Bn)}}},[Mt]),ve.useEffect(function(){return kn(),function(){clearTimeout(pr.current)}},[se]),ve.useImperativeHandle(ne,function(){return{delayHidden:kn}});var Tn="".concat(te,"-scrollbar"),_t={position:"absolute",visibility:zn?null:"hidden"},Cn={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return Re?(Object.assign(_t,{height:8,left:0,right:0,bottom:0}),Object.assign(Cn,(0,rt.Z)({height:"100%",width:Fe},Le?"left":"right",Qt))):(Object.assign(_t,(0,rt.Z)({width:8,top:0,bottom:0},Le?"right":"left",0)),Object.assign(Cn,{width:"100%",height:Fe,top:Qt})),ve.createElement("div",{ref:xt,className:Qe()(Tn,(0,rt.Z)((0,rt.Z)((0,rt.Z)({},"".concat(Tn,"-horizontal"),Re),"".concat(Tn,"-vertical"),!Re),"".concat(Tn,"-visible"),zn)),style:(0,fe.Z)((0,fe.Z)({},_t),nt),onMouseDown:yn,onMouseMove:kn},ve.createElement("div",{ref:zt,className:Qe()("".concat(Tn,"-thumb"),(0,rt.Z)({},"".concat(Tn,"-thumb-moving"),Mt)),style:(0,fe.Z)((0,fe.Z)({},Cn),st),onMouseDown:qt}))}),Kt=Pt,Ce=20;function ot(){var ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,te=ie/ne*ie;return isNaN(te)&&(te=0),te=Math.max(te,Ce),Math.floor(te)}var lt=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Wt=[],ct={overflowY:"auto",overflowAnchor:"none"};function $t(ie,ne){var te=ie.prefixCls,oe=te===void 0?"rc-virtual-list":te,se=ie.className,re=ie.height,le=ie.itemHeight,me=ie.fullHeight,Dt=me===void 0?!0:me,Re=ie.style,Fe=ie.data,qe=ie.children,nt=ie.itemKey,st=ie.virtual,we=ie.direction,Be=ie.scrollWidth,It=ie.component,Mt=It===void 0?"div":It,kt=ie.onScroll,Yt=ie.onVirtualScroll,At=ie.onVisibleChange,vn=ie.innerProps,Gt=ie.extraRender,_e=ie.styles,Bt=ie.showScrollBar,Ut=Bt===void 0?"optional":Bt,on=(0,ge.Z)(ie,lt),Le=ve.useCallback(function(In){return typeof nt=="function"?nt(In):In==null?void 0:In[nt]},[nt]),xt=ue(Le,null,null),zt=(0,xe.Z)(xt,4),nn=zt[0],Sn=zt[1],zn=zt[2],rr=zt[3],pr=!!(st!==!1&&re&&le),kn=ve.useMemo(function(){return Object.values(zn.maps).reduce(function(In,er){return In+er},0)},[zn.id,zn.maps]),dr=pr&&Fe&&(Math.max(le*Fe.length,kn)>re||!!Be),Ye=we==="rtl",Qt=Qe()(oe,(0,rt.Z)({},"".concat(oe,"-rtl"),Ye),se),yn=Fe||Wt,xn=(0,ve.useRef)(),qt=(0,ve.useRef)(),En=(0,ve.useRef)(),Fn=(0,ve.useState)(0),Tn=(0,xe.Z)(Fn,2),_t=Tn[0],Cn=Tn[1],Bn=(0,ve.useState)(0),Ln=(0,xe.Z)(Bn,2),Zn=Ln[0],yr=Ln[1],ur=(0,ve.useState)(!1),Jt=(0,xe.Z)(ur,2),wn=Jt[0],un=Jt[1],sn=function(){un(!0)},We=function(){un(!1)},dt={getKey:Le};function ze(In){Cn(function(er){var Rn;typeof In=="function"?Rn=In(er):Rn=In;var bn=Ge(Rn);return xn.current.scrollTop=bn,bn})}var gt=(0,ve.useRef)({start:0,end:yn.length}),$e=(0,ve.useRef)(),St=Xt(yn,Le),Oe=(0,xe.Z)(St,1),Ft=Oe[0];$e.current=Ft;var Zt=ve.useMemo(function(){if(!pr)return{scrollHeight:void 0,start:0,end:yn.length-1,offset:void 0};if(!dr){var In;return{scrollHeight:((In=qt.current)===null||In===void 0?void 0:In.offsetHeight)||0,start:0,end:yn.length-1,offset:void 0}}for(var er=0,Rn,bn,ir,mr=yn.length,On=0;On<mr;On+=1){var Hn=yn[On],Xn=Le(Hn),vr=zn.get(Xn),Ar=er+(vr===void 0?le:vr);Ar>=_t&&Rn===void 0&&(Rn=On,bn=er),Ar>_t+re&&ir===void 0&&(ir=On),er=Ar}return Rn===void 0&&(Rn=0,bn=0,ir=Math.ceil(re/le)),ir===void 0&&(ir=yn.length-1),ir=Math.min(ir+1,yn.length-1),{scrollHeight:er,start:Rn,end:ir,offset:bn}},[dr,pr,_t,yn,rr,re]),De=Zt.scrollHeight,Te=Zt.start,Me=Zt.end,je=Zt.offset;gt.current.start=Te,gt.current.end=Me,ve.useLayoutEffect(function(){var In=zn.getRecord();if(In.size===1){var er=Array.from(In.keys())[0],Rn=In.get(er),bn=yn[Te];if(bn&&Rn===void 0){var ir=Le(bn);if(ir===er){var mr=zn.get(er),On=mr-le;ze(function(Hn){return Hn+On})}}}zn.resetRecord()},[De]);var it=ve.useState({width:0,height:re}),an=(0,xe.Z)(it,2),dn=an[0],hn=an[1],$n=function(er){hn({width:er.offsetWidth,height:er.offsetHeight})},ar=(0,ve.useRef)(),Cr=(0,ve.useRef)(),qn=ve.useMemo(function(){return ot(dn.width,Be)},[dn.width,Be]),Gn=ve.useMemo(function(){return ot(dn.height,De)},[dn.height,De]),Jn=De-re,gr=(0,ve.useRef)(Jn);gr.current=Jn;function Ge(In){var er=In;return Number.isNaN(gr.current)||(er=Math.min(er,gr.current)),er=Math.max(er,0),er}var bt=_t<=0,Vt=_t>=Jn,Ht=Zn<=0,tn=Zn>=Be,An=ft(bt,Vt,Ht,tn),Vn=function(){return{x:Ye?-Zn:Zn,y:_t}},tr=(0,ve.useRef)(Vn()),Nn=(0,de.zX)(function(In){if(Yt){var er=(0,fe.Z)((0,fe.Z)({},Vn()),In);(tr.current.x!==er.x||tr.current.y!==er.y)&&(Yt(er),tr.current=er)}});function or(In,er){var Rn=In;er?((0,Lt.flushSync)(function(){yr(Rn)}),Nn()):ze(Rn)}function cr(In){var er=In.currentTarget.scrollTop;er!==_t&&ze(er),kt==null||kt(In),Nn()}var nr=function(er){var Rn=er,bn=Be?Be-dn.width:0;return Rn=Math.max(Rn,0),Rn=Math.min(Rn,bn),Rn},hr=(0,de.zX)(function(In,er){er?((0,Lt.flushSync)(function(){yr(function(Rn){var bn=Rn+(Ye?-In:In);return nr(bn)})}),Nn()):ze(function(Rn){var bn=Rn+In;return bn})}),lr=jt(pr,bt,Vt,Ht,tn,!!Be,hr),Er=(0,xe.Z)(lr,2),Ir=Er[0],zr=Er[1];et(pr,xn,function(In,er,Rn,bn){var ir=bn;return An(In,er,Rn)?!1:!ir||!ir._virtualHandled?(ir&&(ir._virtualHandled=!0),Ir({preventDefault:function(){},deltaX:In?er:0,deltaY:In?0:er}),!0):!1}),ke(dr,xn,function(In){ze(function(er){return er+In})}),(0,tt.Z)(function(){function In(Rn){var bn=bt&&Rn.detail<0,ir=Vt&&Rn.detail>0;pr&&!bn&&!ir&&Rn.preventDefault()}var er=xn.current;return er.addEventListener("wheel",Ir,{passive:!1}),er.addEventListener("DOMMouseScroll",zr,{passive:!0}),er.addEventListener("MozMousePixelScroll",In,{passive:!1}),function(){er.removeEventListener("wheel",Ir),er.removeEventListener("DOMMouseScroll",zr),er.removeEventListener("MozMousePixelScroll",In)}},[pr,bt,Vt]),(0,tt.Z)(function(){if(Be){var In=nr(Zn);yr(In),Nn({x:In})}},[dn.width,Be]);var Pr=function(){var er,Rn;(er=ar.current)===null||er===void 0||er.delayHidden(),(Rn=Cr.current)===null||Rn===void 0||Rn.delayHidden()},Or=Ct(xn,yn,zn,le,Le,function(){return Sn(!0)},ze,Pr);ve.useImperativeHandle(ne,function(){return{nativeElement:En.current,getScrollInfo:Vn,scrollTo:function(er){function Rn(bn){return bn&&(0,Pe.Z)(bn)==="object"&&("left"in bn||"top"in bn)}Rn(er)?(er.left!==void 0&&yr(nr(er.left)),Or(er.top)):Or(er)}}}),(0,tt.Z)(function(){if(At){var In=yn.slice(Te,Me+1);At(In,yn)}},[Te,Me,yn]);var Sr=Ot(yn,Le,zn,le),Tr=Gt==null?void 0:Gt({start:Te,end:Me,virtual:dr,offsetX:Zn,offsetY:je,rtl:Ye,getSize:Sr}),br=Ze(yn,Te,Me,Be,Zn,nn,qe,dt),wr=null;re&&(wr=(0,fe.Z)((0,rt.Z)({},Dt?"height":"maxHeight",re),ct),pr&&(wr.overflowY="hidden",Be&&(wr.overflowX="hidden"),wn&&(wr.pointerEvents="none")));var _n={};return Ye&&(_n.dir="rtl"),ve.createElement("div",(0,b.Z)({ref:En,style:(0,fe.Z)((0,fe.Z)({},Re),{},{position:"relative"}),className:Qt},_n,on),ve.createElement(Ae.Z,{onResize:$n},ve.createElement(Mt,{className:"".concat(oe,"-holder"),style:wr,ref:xn,onScroll:cr,onMouseEnter:Pr},ve.createElement(Ve,{prefixCls:oe,height:De,offsetX:Zn,offsetY:je,scrollWidth:Be,onInnerResize:Sn,ref:qt,innerProps:vn,rtl:Ye,extra:Tr},br))),dr&&De>re&&ve.createElement(Kt,{ref:ar,prefixCls:oe,scrollOffset:_t,scrollRange:De,rtl:Ye,onScroll:or,onStartMove:sn,onStopMove:We,spinSize:Gn,containerSize:dn.height,style:_e==null?void 0:_e.verticalScrollBar,thumbStyle:_e==null?void 0:_e.verticalScrollBarThumb,showScrollBar:Ut}),dr&&Be>dn.width&&ve.createElement(Kt,{ref:Cr,prefixCls:oe,scrollOffset:Zn,scrollRange:Be,rtl:Ye,onScroll:or,onStartMove:sn,onStopMove:We,spinSize:qn,containerSize:dn.width,horizontal:!0,style:_e==null?void 0:_e.horizontalScrollBar,thumbStyle:_e==null?void 0:_e.horizontalScrollBarThumb,showScrollBar:Ut}))}var vt=ve.forwardRef($t);vt.displayName="List";var gn=vt,Tt=gn},93314:function(Kn){"use strict";Kn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqfTXADBq4byCJLf82Nf3kA3OfD9LgKdgeCzZ4CUTJ1VKQFyKQgpmeMSjiKvQC+oplspN/wOMDcBVFv0Bo+KwYJ4VE50H3Jg7j6CWzkEX74A3MrSgTfeKZpSaBCHcAVn/JunBHlFPDR5BkG9LMjPt7mZLOtbskQADea9wqOW9coqiGHlRPcHBxYcJriQQvB9P+v2cqCwWFxgoOJk6JeTNX4H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0boWFf9jGwKSAjgDMwUkuBXIIkA3QbBBOw4GoeVANoVATjmYBXJaB0syWrR79SSaX33rhuef7zpr2P/u+ad3pjBfz3BXAUEq5lCzUNhj0dQmhUQBRArQWBalBCGoAtBqlqAZAuM9QLzKlvCjgzaHDceCgydslc+Eqk8nNoSiYIRn7r9PpUCEiAn/vMxvAepN1BYTgFkBuUYoUApoCEBYcWEUpuSaRSK/UqIBkQghbZX2W7jhgKKWylCx9WwOPdoTQhylIE0IRbemzzGe9La+oTHGA+aWjBIkE9Byl5JSEw6EaFaRHCCFs+3lH0h0FTHK6bjIFhoNtm8pTOQd8wgGiJsBPtSvLrAIPe6vqOw8YguGg5YDx1oCVl+OCA4SoCb1PAcO6Zt6SAe0IpQ9TigcBRANwHhSxfGaUc8A1B1g4s0RC8B8l5JQE9/mWzFF/iw/9hOjrGkCiYKDmQz9AaxKCqpSSagAtP/S7njRllIIUEELZgT+VgqZwIDeMh34JUUlAr1FaRg/9noxm8bUy1esq6+1cK5vORiS8/FrZEy7fmbzOrpUBqgGImhCoCUqulaU8zSBSWbpEh/SqVYmVz+0700rxpd7RM4z45ng3hz3BJSREoadQSDkSZKBQgPIKUAeCS8IHMiElE16aBZeAnICTWQouCYHUJMQ0Ci9vCy6JlIJKOJOAkqNMcGkrwCTMFJdYCCwtBZilBZbsO5NWwiQPoaUFlsQouGQSS8oTkzCzRHAJGIWVtLTgEryOAtpiwSUTWjJhJqi14JKnKCKEFoKgEITLlxDk63laICXIh4Hme0Nw6d3RvzOl/R8AdGoXzom1qQAAAABJRU5ErkJggg=="},19251:function(Kn,cn,z){"use strict";z.d(cn,{Z:function(){return Pe}});var b=z(3208);function Pe(fe,rt){var xe=typeof Symbol!="undefined"&&fe[Symbol.iterator]||fe["@@iterator"];if(!xe){if(Array.isArray(fe)||(xe=(0,b.Z)(fe))||rt&&fe&&typeof fe.length=="number"){xe&&(fe=xe);var ge=0,Ee=function(){};return{s:Ee,n:function(){return ge>=fe.length?{done:!0}:{done:!1,value:fe[ge++]}},e:function(ve){throw ve},f:Ee}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Qe,Ae=!0,de=!1;return{s:function(){xe=xe.call(fe)},n:function(){var ve=xe.next();return Ae=ve.done,ve},e:function(ve){de=!0,Qe=ve},f:function(){try{Ae||xe.return==null||xe.return()}finally{if(de)throw Qe}}}}},16722:function(Kn,cn,z){"use strict";z.d(cn,{Z:function(){return Qe}});const b=Ae=>typeof Ae=="object"&&Ae!=null&&Ae.nodeType===1,Pe=(Ae,de)=>(!de||Ae!=="hidden")&&Ae!=="visible"&&Ae!=="clip",fe=(Ae,de)=>{if(Ae.clientHeight<Ae.scrollHeight||Ae.clientWidth<Ae.scrollWidth){const tt=getComputedStyle(Ae,null);return Pe(tt.overflowY,de)||Pe(tt.overflowX,de)||(ve=>{const Lt=(at=>{if(!at.ownerDocument||!at.ownerDocument.defaultView)return null;try{return at.ownerDocument.defaultView.frameElement}catch(Ve){return null}})(ve);return!!Lt&&(Lt.clientHeight<ve.scrollHeight||Lt.clientWidth<ve.scrollWidth)})(Ae)}return!1},rt=(Ae,de,tt,ve,Lt,at,Ve,Ne)=>at<Ae&&Ve>de||at>Ae&&Ve<de?0:at<=Ae&&Ne<=tt||Ve>=de&&Ne>=tt?at-Ae-ve:Ve>de&&Ne<tt||at<Ae&&Ne>tt?Ve-de+Lt:0,xe=Ae=>{const de=Ae.parentElement;return de==null?Ae.getRootNode().host||null:de},ge=(Ae,de)=>{var tt,ve,Lt,at;if(typeof document=="undefined")return[];const{scrollMode:Ve,block:Ne,inline:Ze,boundary:pt,skipOverflowHiddenElements:mt}=de,Xt=typeof pt=="function"?pt:Kt=>Kt!==pt;if(!b(Ae))throw new TypeError("Invalid target");const He=document.scrollingElement||document.documentElement,Ke=[];let ut=Ae;for(;b(ut)&&Xt(ut);){if(ut=xe(ut),ut===He){Ke.push(ut);break}ut!=null&&ut===document.body&&fe(ut)&&!fe(document.documentElement)||ut!=null&&fe(ut,mt)&&Ke.push(ut)}const ft=(ve=(tt=window.visualViewport)==null?void 0:tt.width)!=null?ve:innerWidth,jt=(at=(Lt=window.visualViewport)==null?void 0:Lt.height)!=null?at:innerHeight,{scrollX:Ot,scrollY:yt}=window,{height:Et,width:pe,top:Je,right:Xe,bottom:ue,left:Nt}=Ae.getBoundingClientRect(),{top:et,right:wt,bottom:ln,left:ke}=(Kt=>{const Ce=window.getComputedStyle(Kt);return{top:parseFloat(Ce.scrollMarginTop)||0,right:parseFloat(Ce.scrollMarginRight)||0,bottom:parseFloat(Ce.scrollMarginBottom)||0,left:parseFloat(Ce.scrollMarginLeft)||0}})(Ae);let he=Ne==="start"||Ne==="nearest"?Je-et:Ne==="end"?ue+ln:Je+Et/2-et+ln,Ct=Ze==="center"?Nt+pe/2-ke+wt:Ze==="end"?Xe+wt:Nt-ke;const Pt=[];for(let Kt=0;Kt<Ke.length;Kt++){const Ce=Ke[Kt],{height:ot,width:lt,top:Wt,right:ct,bottom:$t,left:vt}=Ce.getBoundingClientRect();if(Ve==="if-needed"&&Je>=0&&Nt>=0&&ue<=jt&&Xe<=ft&&(Ce===He&&!fe(Ce)||Je>=Wt&&ue<=$t&&Nt>=vt&&Xe<=ct))return Pt;const gn=getComputedStyle(Ce),Tt=parseInt(gn.borderLeftWidth,10),ie=parseInt(gn.borderTopWidth,10),ne=parseInt(gn.borderRightWidth,10),te=parseInt(gn.borderBottomWidth,10);let oe=0,se=0;const re="offsetWidth"in Ce?Ce.offsetWidth-Ce.clientWidth-Tt-ne:0,le="offsetHeight"in Ce?Ce.offsetHeight-Ce.clientHeight-ie-te:0,me="offsetWidth"in Ce?Ce.offsetWidth===0?0:lt/Ce.offsetWidth:0,Dt="offsetHeight"in Ce?Ce.offsetHeight===0?0:ot/Ce.offsetHeight:0;if(He===Ce)oe=Ne==="start"?he:Ne==="end"?he-jt:Ne==="nearest"?rt(yt,yt+jt,jt,ie,te,yt+he,yt+he+Et,Et):he-jt/2,se=Ze==="start"?Ct:Ze==="center"?Ct-ft/2:Ze==="end"?Ct-ft:rt(Ot,Ot+ft,ft,Tt,ne,Ot+Ct,Ot+Ct+pe,pe),oe=Math.max(0,oe+yt),se=Math.max(0,se+Ot);else{oe=Ne==="start"?he-Wt-ie:Ne==="end"?he-$t+te+le:Ne==="nearest"?rt(Wt,$t,ot,ie,te+le,he,he+Et,Et):he-(Wt+ot/2)+le/2,se=Ze==="start"?Ct-vt-Tt:Ze==="center"?Ct-(vt+lt/2)+re/2:Ze==="end"?Ct-ct+ne+re:rt(vt,ct,lt,Tt,ne+re,Ct,Ct+pe,pe);const{scrollLeft:Re,scrollTop:Fe}=Ce;oe=Dt===0?0:Math.max(0,Math.min(Fe+oe/Dt,Ce.scrollHeight-ot/Dt+le)),se=me===0?0:Math.max(0,Math.min(Re+se/me,Ce.scrollWidth-lt/me+re)),he+=Fe-oe,Ct+=Re-se}Pt.push({el:Ce,top:oe,left:se})}return Pt},Ee=Ae=>Ae===!1?{block:"end",inline:"nearest"}:(de=>de===Object(de)&&Object.keys(de).length!==0)(Ae)?Ae:{block:"start",inline:"nearest"};function Qe(Ae,de){if(!Ae.isConnected||!(Lt=>{let at=Lt;for(;at&&at.parentNode;){if(at.parentNode===document)return!0;at=at.parentNode instanceof ShadowRoot?at.parentNode.host:at.parentNode}return!1})(Ae))return;const tt=(Lt=>{const at=window.getComputedStyle(Lt);return{top:parseFloat(at.scrollMarginTop)||0,right:parseFloat(at.scrollMarginRight)||0,bottom:parseFloat(at.scrollMarginBottom)||0,left:parseFloat(at.scrollMarginLeft)||0}})(Ae);if((Lt=>typeof Lt=="object"&&typeof Lt.behavior=="function")(de))return de.behavior(ge(Ae,de));const ve=typeof de=="boolean"||de==null?void 0:de.behavior;for(const{el:Lt,top:at,left:Ve}of ge(Ae,Ee(de))){const Ne=at-tt.top+tt.bottom,Ze=Ve-tt.left+tt.right;Lt.scroll({top:Ne,left:Ze,behavior:ve})}}}}]);
|